mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
1 line
369 KiB
JavaScript
1 line
369 KiB
JavaScript
!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function i(e){var t=!!e&&"length"in e&&e.length,i=se.type(e);return"function"!==i&&!se.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function n(e,t,i){if(se.isFunction(t))return se.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return se.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(me.test(t))return se.filter(t,e,i);t=se.filter(t,e)}return se.grep(e,function(e){return J.call(t,e)>-1!==i})}function o(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return se.each(e.match(xe)||[],function(e,i){t[i]=!0}),t}function r(){U.removeEventListener("DOMContentLoaded",r),e.removeEventListener("load",r),se.ready()}function a(){this.expando=se.expando+a.uid++}function l(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(Pe,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Se.test(i)?se.parseJSON(i):i)}catch(e){}Te.set(e,t,i)}else i=void 0;return i}function c(e,t,i,n){var o,s=1,r=20,a=n?function(){return n.cur()}:function(){return se.css(e,t,"")},l=a(),c=i&&i[3]||(se.cssNumber[t]?"":"px"),u=(se.cssNumber[t]||"px"!==c&&+l)&&Me.exec(se.css(e,t));if(u&&u[3]!==c){c=c||u[3],i=i||[],u=+l||1;do{s=s||".5",u/=s,se.style(e,t,u+c)}while(s!==(s=a()/l)&&1!==s&&--r)}return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=o)),o}function u(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&se.nodeName(e,t)?se.merge([e],i):i}function h(e,t){for(var i=0,n=e.length;n>i;i++)_e.set(e[i],"globalEval",!t||_e.get(t[i],"globalEval"))}function d(e,t,i,n,o){for(var s,r,a,l,c,d,p=t.createDocumentFragment(),f=[],m=0,g=e.length;g>m;m++)if((s=e[m])||0===s)if("object"===se.type(s))se.merge(f,s.nodeType?[s]:s);else if(Ie.test(s)){for(r=r||p.appendChild(t.createElement("div")),a=(ze.exec(s)||["",""])[1].toLowerCase(),l=He[a]||He._default,r.innerHTML=l[1]+se.htmlPrefilter(s)+l[2],d=l[0];d--;)r=r.lastChild;se.merge(f,r.childNodes),r=p.firstChild,r.textContent=""}else f.push(t.createTextNode(s));for(p.textContent="",m=0;s=f[m++];)if(n&&se.inArray(s,n)>-1)o&&o.push(s);else if(c=se.contains(s.ownerDocument,s),r=u(p.appendChild(s),"script"),c&&h(r),i)for(d=0;s=r[d++];)Ne.test(s.type||"")&&i.push(s);return p}function p(){return!0}function f(){return!1}function m(){try{return U.activeElement}catch(e){}}function g(e,t,i,n,o,s){var r,a;if("object"==typeof t){"string"!=typeof i&&(n=n||i,i=void 0);for(a in t)g(e,a,i,n,t[a],s);return e}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=f;else if(!o)return e;return 1===s&&(r=o,o=function(e){return se().off(e),r.apply(this,arguments)},o.guid=r.guid||(r.guid=se.guid++)),e.each(function(){se.event.add(this,t,o,n,i)})}function v(e,t){return se.nodeName(e,"table")&&se.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function b(e){var t=Fe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function x(e,t){var i,n,o,s,r,a,l,c;if(1===t.nodeType){if(_e.hasData(e)&&(s=_e.access(e),r=_e.set(t,s),c=s.events)){delete r.handle,r.events={};for(o in c)for(i=0,n=c[o].length;n>i;i++)se.event.add(t,o,c[o][i])}Te.hasData(e)&&(a=Te.access(e),l=se.extend({},a),Te.set(t,l))}}function w(e,t){var i=t.nodeName.toLowerCase();"input"===i&&De.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function k(e,t,i,n){t=K.apply([],t);var o,s,r,a,l,c,h=0,p=e.length,f=p-1,m=t[0],g=se.isFunction(m);if(g||p>1&&"string"==typeof m&&!ne.checkClone&&Re.test(m))return e.each(function(o){var s=e.eq(o);g&&(t[0]=m.call(this,o,s.html())),k(s,t,i,n)});if(p&&(o=d(t,e[0].ownerDocument,!1,e,n),s=o.firstChild,1===o.childNodes.length&&(o=s),s||n)){for(r=se.map(u(o,"script"),y),a=r.length;p>h;h++)l=o,h!==f&&(l=se.clone(l,!0,!0),a&&se.merge(r,u(l,"script"))),i.call(e[h],l,h);if(a)for(c=r[r.length-1].ownerDocument,se.map(r,b),h=0;a>h;h++)l=r[h],Ne.test(l.type||"")&&!_e.access(l,"globalEval")&&se.contains(c,l)&&(l.src?se._evalUrl&&se._evalUrl(l.src):se.globalEval(l.textContent.replace(Ve,"")))}return e}function C(e,t,i){for(var n,o=t?se.filter(t,e):e,s=0;null!=(n=o[s]);s++)i||1!==n.nodeType||se.cleanData(u(n)),n.parentNode&&(i&&se.contains(n.ownerDocument,n)&&h(u(n,"script")),n.parentNode.removeChild(n));return e}function _(e,t){var i=se(t.createElement(e)).appendTo(t.body),n=se.css(i[0],"display");return i.detach(),n}function T(e){var t=U,i=Be[e];return i||(i=_(e,t),"none"!==i&&i||(Xe=(Xe||se("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Xe[0].contentDocument,t.write(),t.close(),i=_(e,t),Xe.detach()),Be[e]=i),i}function S(e,t,i){var n,o,s,r,a=e.style;return i=i||Ue(e),r=i?i.getPropertyValue(t)||i[t]:void 0,""!==r&&void 0!==r||se.contains(e.ownerDocument,e)||(r=se.style(e,t)),i&&!ne.pixelMarginRight()&&Qe.test(r)&&Ye.test(t)&&(n=a.width,o=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=o,a.maxWidth=s),void 0!==r?r+"":r}function P(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function E(e){if(e in it)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=tt.length;i--;)if((e=tt[i]+t)in it)return e}function M(e,t,i){var n=Me.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function A(e,t,i,n,o){for(var s=i===(n?"border":"content")?4:"width"===t?1:0,r=0;4>s;s+=2)"margin"===i&&(r+=se.css(e,i+Ae[s],!0,o)),n?("content"===i&&(r-=se.css(e,"padding"+Ae[s],!0,o)),"margin"!==i&&(r-=se.css(e,"border"+Ae[s]+"Width",!0,o))):(r+=se.css(e,"padding"+Ae[s],!0,o),"padding"!==i&&(r+=se.css(e,"border"+Ae[s]+"Width",!0,o)));return r}function O(e,t,i){var n=!0,o="width"===t?e.offsetWidth:e.offsetHeight,s=Ue(e),r="border-box"===se.css(e,"boxSizing",!1,s);if(0>=o||null==o){if(o=S(e,t,s),(0>o||null==o)&&(o=e.style[t]),Qe.test(o))return o;n=r&&(ne.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+A(e,t,i||(r?"border":"content"),n,s)+"px"}function D(e,t){for(var i,n,o,s=[],r=0,a=e.length;a>r;r++)n=e[r],n.style&&(s[r]=_e.get(n,"olddisplay"),i=n.style.display,t?(s[r]||"none"!==i||(n.style.display=""),""===n.style.display&&Oe(n)&&(s[r]=_e.access(n,"olddisplay",T(n.nodeName)))):(o=Oe(n),"none"===i&&o||_e.set(n,"olddisplay",o?i:se.css(n,"display"))));for(r=0;a>r;r++)n=e[r],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?s[r]||"":"none"));return e}function z(e,t,i,n,o){return new z.prototype.init(e,t,i,n,o)}function N(){return e.setTimeout(function(){nt=void 0}),nt=se.now()}function H(e,t){var i,n=0,o={height:e};for(t=t?1:0;4>n;n+=2-t)i=Ae[n],o["margin"+i]=o["padding"+i]=e;return t&&(o.opacity=o.width=e),o}function I(e,t,i){for(var n,o=(L.tweeners[t]||[]).concat(L.tweeners["*"]),s=0,r=o.length;r>s;s++)if(n=o[s].call(i,t,e))return n}function $(e,t,i){var n,o,s,r,a,l,c,u=this,h={},d=e.style,p=e.nodeType&&Oe(e),f=_e.get(e,"fxshow");i.queue||(a=se._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,se.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],c=se.css(e,"display"),"inline"===("none"===c?_e.get(e,"olddisplay")||T(e.nodeName):c)&&"none"===se.css(e,"float")&&(d.display="inline-block")),i.overflow&&(d.overflow="hidden",u.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(n in t)if(o=t[n],st.exec(o)){if(delete t[n],s=s||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!f||void 0===f[n])continue;p=!0}h[n]=f&&f[n]||se.style(e,n)}else c=void 0;if(se.isEmptyObject(h))"inline"===("none"===c?T(e.nodeName):c)&&(d.display=c);else{f?"hidden"in f&&(p=f.hidden):f=_e.access(e,"fxshow",{}),s&&(f.hidden=!p),p?se(e).show():u.done(function(){se(e).hide()}),u.done(function(){var t;_e.remove(e,"fxshow");for(t in h)se.style(e,t,h[t])});for(n in h)r=I(p?f[n]:0,n,u),n in f||(f[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}}function W(e,t){var i,n,o,s,r;for(i in e)if(n=se.camelCase(i),o=t[n],s=e[i],se.isArray(s)&&(o=s[1],s=e[i]=s[0]),i!==n&&(e[n]=s,delete e[i]),(r=se.cssHooks[n])&&"expand"in r){s=r.expand(s),delete e[n];for(i in s)i in e||(e[i]=s[i],t[i]=o)}else t[n]=o}function L(e,t,i){var n,o,s=0,r=L.prefilters.length,a=se.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=nt||N(),i=Math.max(0,c.startTime+c.duration-t),n=i/c.duration||0,s=1-n,r=0,l=c.tweens.length;l>r;r++)c.tweens[r].run(s);return a.notifyWith(e,[c,s,i]),1>s&&l?i:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:se.extend({},t),opts:se.extend(!0,{specialEasing:{},easing:se.easing._default},i),originalProperties:t,originalOptions:i,startTime:nt||N(),duration:i.duration,tweens:[],createTween:function(t,i){var n=se.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(o)return this;for(o=!0;n>i;i++)c.tweens[i].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(W(u,c.opts.specialEasing);r>s;s++)if(n=L.prefilters[s].call(c,e,u,c.opts))return se.isFunction(n.stop)&&(se._queueHooks(c.elem,c.opts.queue).stop=se.proxy(n.stop,n)),n;return se.map(u,I,c),se.isFunction(c.opts.start)&&c.opts.start.call(e,c),se.fx.timer(se.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function q(e){return e.getAttribute&&e.getAttribute("class")||""}function j(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,o=0,s=t.toLowerCase().match(xe)||[];if(se.isFunction(i))for(;n=s[o++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function R(e,t,i,n){function o(a){var l;return s[a]=!0,se.each(e[a]||[],function(e,a){var c=a(t,i,n);return"string"!=typeof c||r||s[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),l}var s={},r=e===Tt;return o(t.dataTypes[0])||!s["*"]&&o("*")}function F(e,t){var i,n,o=se.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n||(n={}))[i]=t[i]);return n&&se.extend(!0,e,n),e}function V(e,t,i){for(var n,o,s,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)s=l[0];else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}return s?(s!==l[0]&&l.unshift(s),i[s]):void 0}function X(e,t,i,n){var o,s,r,a,l,c={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(s=u.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if(a=o.split(" "),a[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}function B(e,t,i,n){var o;if(se.isArray(t))se.each(t,function(t,o){i||Mt.test(e)?n(e,o):B(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,i,n)});else if(i||"object"!==se.type(t))n(e,t);else for(o in t)B(e+"["+o+"]",t[o],i,n)}function Y(e){return se.isWindow(e)?e:9===e.nodeType&&e.defaultView}var Q=[],U=e.document,G=Q.slice,K=Q.concat,Z=Q.push,J=Q.indexOf,ee={},te=ee.toString,ie=ee.hasOwnProperty,ne={},oe="2.2.4",se=function(e,t){return new se.fn.init(e,t)},re=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,le=/-([\da-z])/gi,ce=function(e,t){return t.toUpperCase()};se.fn=se.prototype={jquery:oe,constructor:se,selector:"",length:0,toArray:function(){return G.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:G.call(this)},pushStack:function(e){var t=se.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return se.each(this,e)},map:function(e){return this.pushStack(se.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:Z,sort:Q.sort,splice:Q.splice},se.extend=se.fn.extend=function(){var e,t,i,n,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||se.isFunction(r)||(r={}),a===l&&(r=this,a--);l>a;a++)if(null!=(e=arguments[a]))for(t in e)i=r[t],n=e[t],r!==n&&(c&&n&&(se.isPlainObject(n)||(o=se.isArray(n)))?(o?(o=!1,s=i&&se.isArray(i)?i:[]):s=i&&se.isPlainObject(i)?i:{},r[t]=se.extend(c,s,n)):void 0!==n&&(r[t]=n));return r},se.extend({expando:"jQuery"+(oe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===se.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!se.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==se.type(e)||e.nodeType||se.isWindow(e))return!1;if(e.constructor&&!ie.call(e,"constructor")&&!ie.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||ie.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ee[te.call(e)]||"object":typeof e},globalEval:function(e){var t,i=eval;(e=se.trim(e))&&(1===e.indexOf("use strict")?(t=U.createElement("script"),t.text=e,U.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(ae,"ms-").replace(le,ce)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,o=0;if(i(e))for(n=e.length;n>o&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(re,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?se.merge(n,"string"==typeof e?[e]:e):Z.call(n,e)),n},inArray:function(e,t,i){return null==t?-1:J.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,o=e.length;i>n;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,i){for(var n=[],o=0,s=e.length,r=!i;s>o;o++)!t(e[o],o)!==r&&n.push(e[o]);return n},map:function(e,t,n){var o,s,r=0,a=[];if(i(e))for(o=e.length;o>r;r++)null!=(s=t(e[r],r,n))&&a.push(s);else for(r in e)null!=(s=t(e[r],r,n))&&a.push(s);return K.apply([],a)},guid:1,proxy:function(e,t){var i,n,o;return"string"==typeof t&&(i=e[t],t=e,e=i),se.isFunction(e)?(n=G.call(arguments,2),o=function(){return e.apply(t||this,n.concat(G.call(arguments)))},o.guid=e.guid=e.guid||se.guid++,o):void 0},now:Date.now,support:ne}),"function"==typeof Symbol&&(se.fn[Symbol.iterator]=Q[Symbol.iterator]),se.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ee["[object "+t+"]"]=t.toLowerCase()});var ue=function(e){function t(e,t,i,n){var o,s,r,a,l,c,h,p,f=t&&t.ownerDocument,m=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return i;if(!n&&((t?t.ownerDocument||t:q)!==D&&O(t),t=t||D,N)){if(11!==m&&(c=ve.exec(e)))if(o=c[1]){if(9===m){if(!(r=t.getElementById(o)))return i;if(r.id===o)return i.push(r),i}else if(f&&(r=f.getElementById(o))&&W(t,r)&&r.id===o)return i.push(r),i}else{if(c[2])return Z.apply(i,t.getElementsByTagName(e)),i;if((o=c[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Z.apply(i,t.getElementsByClassName(o)),i}if(w.qsa&&!X[e+" "]&&(!H||!H.test(e))){if(1!==m)f=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(be,"\\$&"):t.setAttribute("id",a=L),h=T(e),s=h.length,l=de.test(a)?"#"+a:"[id='"+a+"']";s--;)h[s]=l+" "+d(h[s]);p=h.join(","),f=ye.test(e)&&u(t.parentNode)||t}if(p)try{return Z.apply(i,f.querySelectorAll(p)),i}catch(e){}finally{a===L&&t.removeAttribute("id")}}}return P(e.replace(ae,"$1"),t,i,n)}function i(){function e(i,n){return t.push(i+" ")>k.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[L]=!0,e}function o(e){var t=D.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var i=e.split("|"),n=i.length;n--;)k.attrHandle[i[n]]=t}function r(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Y)-(~e.sourceIndex||Y);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function a(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function c(e){return n(function(t){return t=+t,n(function(i,n){for(var o,s=e([],i.length,t),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))})})}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function h(){}function d(e){for(var t=0,i=e.length,n="";i>t;t++)n+=e[t].value;return n}function p(e,t,i){var n=t.dir,o=i&&"parentNode"===n,s=R++;return t.first?function(t,i,s){for(;t=t[n];)if(1===t.nodeType||o)return e(t,i,s)}:function(t,i,r){var a,l,c,u=[j,s];if(r){for(;t=t[n];)if((1===t.nodeType||o)&&e(t,i,r))return!0}else for(;t=t[n];)if(1===t.nodeType||o){if(c=t[L]||(t[L]={}),l=c[t.uniqueID]||(c[t.uniqueID]={}),(a=l[n])&&a[0]===j&&a[1]===s)return u[2]=a[2];if(l[n]=u,u[2]=e(t,i,r))return!0}}}function f(e){return e.length>1?function(t,i,n){for(var o=e.length;o--;)if(!e[o](t,i,n))return!1;return!0}:e[0]}function m(e,i,n){for(var o=0,s=i.length;s>o;o++)t(e,i[o],n);return n}function g(e,t,i,n,o){for(var s,r=[],a=0,l=e.length,c=null!=t;l>a;a++)(s=e[a])&&(i&&!i(s,n,o)||(r.push(s),c&&t.push(a)));return r}function v(e,t,i,o,s,r){return o&&!o[L]&&(o=v(o)),s&&!s[L]&&(s=v(s,r)),n(function(n,r,a,l){var c,u,h,d=[],p=[],f=r.length,v=n||m(t||"*",a.nodeType?[a]:a,[]),y=!e||!n&&t?v:g(v,d,e,a,l),b=i?s||(n?e:f||o)?[]:r:y;if(i&&i(y,b,a,l),o)for(c=g(b,p),o(c,[],a,l),u=c.length;u--;)(h=c[u])&&(b[p[u]]=!(y[p[u]]=h));if(n){if(s||e){if(s){for(c=[],u=b.length;u--;)(h=b[u])&&c.push(y[u]=h);s(null,b=[],c,l)}for(u=b.length;u--;)(h=b[u])&&(c=s?ee(n,h):d[u])>-1&&(n[c]=!(r[c]=h))}}else b=g(b===r?b.splice(f,b.length):b),s?s(null,r,b,l):Z.apply(r,b)})}function y(e){for(var t,i,n,o=e.length,s=k.relative[e[0].type],r=s||k.relative[" "],a=s?1:0,l=p(function(e){return e===t},r,!0),c=p(function(e){return ee(t,e)>-1},r,!0),u=[function(e,i,n){var o=!s&&(n||i!==E)||((t=i).nodeType?l(e,i,n):c(e,i,n));return t=null,o}];o>a;a++)if(i=k.relative[e[a].type])u=[p(f(u),i)];else{if(i=k.filter[e[a].type].apply(null,e[a].matches),i[L]){for(n=++a;o>n&&!k.relative[e[n].type];n++);return v(a>1&&f(u),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),i,n>a&&y(e.slice(a,n)),o>n&&y(e=e.slice(n)),o>n&&d(e))}u.push(i)}return f(u)}function b(e,i){var o=i.length>0,s=e.length>0,r=function(n,r,a,l,c){var u,h,d,p=0,f="0",m=n&&[],v=[],y=E,b=n||s&&k.find.TAG("*",c),x=j+=null==y?1:Math.random()||.1,w=b.length;for(c&&(E=r===D||r||c);f!==w&&null!=(u=b[f]);f++){if(s&&u){for(h=0,r||u.ownerDocument===D||(O(u),a=!N);d=e[h++];)if(d(u,r||D,a)){l.push(u);break}c&&(j=x)}o&&((u=!d&&u)&&p--,n&&m.push(u))}if(p+=f,o&&f!==p){for(h=0;d=i[h++];)d(m,v,r,a);if(n){if(p>0)for(;f--;)m[f]||v[f]||(v[f]=G.call(l));v=g(v)}Z.apply(l,v),c&&!n&&v.length>0&&p+i.length>1&&t.uniqueSort(l)}return c&&(j=x,E=y),m};return o?n(r):r}var x,w,k,C,_,T,S,P,E,M,A,O,D,z,N,H,I,$,W,L="sizzle"+1*new Date,q=e.document,j=0,R=0,F=i(),V=i(),X=i(),B=function(e,t){return e===t&&(A=!0),0},Y=1<<31,Q={}.hasOwnProperty,U=[],G=U.pop,K=U.push,Z=U.push,J=U.slice,ee=function(e,t){for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",ne="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe="\\["+ie+"*("+ne+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+ie+"*\\]",se=":("+ne+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",re=new RegExp(ie+"+","g"),ae=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),le=new RegExp("^"+ie+"*,"+ie+"*"),ce=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),ue=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),he=new RegExp(se),de=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),we=function(e,t,i){var n="0x"+t-65536;return n!==n||i?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ke=function(){O()};try{Z.apply(U=J.call(q.childNodes),q.childNodes),U[q.childNodes.length].nodeType}catch(e){Z={apply:U.length?function(e,t){K.apply(e,J.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}w=t.support={},_=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},O=t.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:q;return n!==D&&9===n.nodeType&&n.documentElement?(D=n,z=D.documentElement,N=!_(D),(i=D.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ke,!1):i.attachEvent&&i.attachEvent("onunload",ke)),w.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=o(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ge.test(D.getElementsByClassName),w.getById=o(function(e){return z.appendChild(e).id=L,!D.getElementsByName||!D.getElementsByName(L).length}),w.getById?(k.find.ID=function(e,t){if(void 0!==t.getElementById&&N){var i=t.getElementById(e);return i?[i]:[]}},k.filter.ID=function(e){var t=e.replace(xe,we);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(xe,we);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),k.find.TAG=w.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],o=0,s=t.getElementsByTagName(e);if("*"===e){for(;i=s[o++];)1===i.nodeType&&n.push(i);return n}return s},k.find.CLASS=w.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&N?t.getElementsByClassName(e):void 0},I=[],H=[],(w.qsa=ge.test(D.querySelectorAll))&&(o(function(e){z.appendChild(e).innerHTML="<a id='"+L+"'></a><select id='"+L+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+ie+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+L+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+L+"+*").length||H.push(".#.+[+~]")}),o(function(e){var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+ie+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(w.matchesSelector=ge.test($=z.matches||z.webkitMatchesSelector||z.mozMatchesSelector||z.oMatchesSelector||z.msMatchesSelector))&&o(function(e){w.disconnectedMatch=$.call(e,"div"),$.call(e,"[s!='']:x"),I.push("!=",se)}),H=H.length&&new RegExp(H.join("|")),I=I.length&&new RegExp(I.join("|")),t=ge.test(z.compareDocumentPosition),W=t||ge.test(z.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},B=t?function(e,t){if(e===t)return A=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!w.sortDetached&&t.compareDocumentPosition(e)===i?e===D||e.ownerDocument===q&&W(q,e)?-1:t===D||t.ownerDocument===q&&W(q,t)?1:M?ee(M,e)-ee(M,t):0:4&i?-1:1)}:function(e,t){if(e===t)return A=!0,0;var i,n=0,o=e.parentNode,s=t.parentNode,a=[e],l=[t];if(!o||!s)return e===D?-1:t===D?1:o?-1:s?1:M?ee(M,e)-ee(M,t):0;if(o===s)return r(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?r(a[n],l[n]):a[n]===q?-1:l[n]===q?1:0},D):D},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==D&&O(e),i=i.replace(ue,"='$1']"),w.matchesSelector&&N&&!X[i+" "]&&(!I||!I.test(i))&&(!H||!H.test(i)))try{var n=$.call(e,i);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return t(i,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&O(e),W(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&O(e);var i=k.attrHandle[t.toLowerCase()],n=i&&Q.call(k.attrHandle,t.toLowerCase())?i(e,t,!N):void 0;return void 0!==n?n:w.attributes||!N?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,o=0;if(A=!w.detectDuplicates,M=!w.sortStable&&e.slice(0),e.sort(B),A){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)e.splice(i[n],1)}return M=null,e},C=t.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=C(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=C(t);return i},k=t.selectors={cacheLength:50,createPseudo:n,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,we),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&he.test(i)&&(t=T(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=F[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&F(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(o){var s=t.attr(o,e);return null==s?"!="===i:!i||(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&&0===s.indexOf(n):"*="===i?n&&s.indexOf(n)>-1:"$="===i?n&&s.slice(-n.length)===n:"~="===i?(" "+s.replace(re," ")+" ").indexOf(n)>-1:"|="===i&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,i,n,o){var s="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===o?function(e){return!!e.parentNode}:function(t,i,l){var c,u,h,d,p,f,m=s!==r?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(s){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?g.firstChild:g.lastChild],r&&y){for(d=g,h=d[L]||(d[L]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[e]||[],p=c[0]===j&&c[1],b=p&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[j,p,b];break}}else if(y&&(d=t,h=d[L]||(d[L]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[e]||[],p=c[0]===j&&c[1],b=p),!1===b)for(;(d=++p&&d&&d[m]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&(h=d[L]||(d[L]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),u[e]=[j,b]),d!==t)););return(b-=o)===n||b%n==0&&b/n>=0}}},PSEUDO:function(e,i){var o,s=k.pseudos[e]||k.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[L]?s(i):s.length>1?(o=[e,e,"",i],k.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,o=s(e,i),r=o.length;r--;)n=ee(e,o[r]),e[n]=!(t[n]=o[r])}):function(e){return s(e,0,o)}):s}},pseudos:{not:n(function(e){var t=[],i=[],o=S(e.replace(ae,"$1"));return o[L]?n(function(e,t,i,n){for(var s,r=o(e,null,n,[]),a=e.length;a--;)(s=r[a])&&(e[a]=!(t[a]=s))}):function(e,n,s){return t[0]=e,o(t,null,s,i),t[0]=null,!i.pop()}}),has:n(function(e){return function(i){return t(e,i).length>0}}),contains:n(function(e){return e=e.replace(xe,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:n(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,we).toLowerCase(),function(t){var i;do{if(i=N?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===z},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,i){return[0>i?i+t:i]}),even:c(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:c(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:c(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:c(function(e,t,i){for(var n=0>i?i+t:i;++n<t;)e.push(n);return e})}},k.pseudos.nth=k.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[x]=a(x);for(x in{submit:!0,reset:!0})k.pseudos[x]=l(x);return h.prototype=k.filters=k.pseudos,k.setFilters=new h,T=t.tokenize=function(e,i){var n,o,s,r,a,l,c,u=V[e+" "];if(u)return i?0:u.slice(0);for(a=e,l=[],c=k.preFilter;a;){n&&!(o=le.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),n=!1,(o=ce.exec(a))&&(n=o.shift(),s.push({value:n,type:o[0].replace(ae," ")}),a=a.slice(n.length));for(r in k.filter)!(o=pe[r].exec(a))||c[r]&&!(o=c[r](o))||(n=o.shift(),s.push({value:n,type:r,matches:o}),a=a.slice(n.length));if(!n)break}return i?a.length:a?t.error(e):V(e,l).slice(0)},S=t.compile=function(e,t){var i,n=[],o=[],s=X[e+" "];if(!s){for(t||(t=T(e)),i=t.length;i--;)s=y(t[i]),s[L]?n.push(s):o.push(s);s=X(e,b(o,n)),s.selector=e}return s},P=t.select=function(e,t,i,n){var o,s,r,a,l,c="function"==typeof e&&e,h=!n&&T(e=c.selector||e);if(i=i||[],1===h.length){if(s=h[0]=h[0].slice(0),s.length>2&&"ID"===(r=s[0]).type&&w.getById&&9===t.nodeType&&N&&k.relative[s[1].type]){if(!(t=(k.find.ID(r.matches[0].replace(xe,we),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=pe.needsContext.test(e)?0:s.length;o--&&(r=s[o],!k.relative[a=r.type]);)if((l=k.find[a])&&(n=l(r.matches[0].replace(xe,we),ye.test(s[0].type)&&u(t.parentNode)||t))){if(s.splice(o,1),!(e=n.length&&d(s)))return Z.apply(i,n),i;break}}return(c||S(e,h))(n,t,!N,i,!t||ye.test(e)&&u(t.parentNode)||t),i},w.sortStable=L.split("").sort(B).join("")===L,w.detectDuplicates=!!A,O(),w.sortDetached=o(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||s(te,function(e,t,i){var n;return i?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),t}(e);se.find=ue,se.expr=ue.selectors,se.expr[":"]=se.expr.pseudos,se.uniqueSort=se.unique=ue.uniqueSort,se.text=ue.getText,se.isXMLDoc=ue.isXML,se.contains=ue.contains;var he=function(e,t,i){for(var n=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&se(e).is(i))break;n.push(e)}return n},de=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},pe=se.expr.match.needsContext,fe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,me=/^.[^:#\[\.,]*$/;se.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?se.find.matchesSelector(n,e)?[n]:[]:se.find.matches(e,se.grep(t,function(e){return 1===e.nodeType}))},se.fn.extend({find:function(e){var t,i=this.length,n=[],o=this;if("string"!=typeof e)return this.pushStack(se(e).filter(function(){for(t=0;i>t;t++)if(se.contains(o[t],this))return!0}));for(t=0;i>t;t++)se.find(e,o[t],n);return n=this.pushStack(i>1?se.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(n(this,e||[],!1))},not:function(e){return this.pushStack(n(this,e||[],!0))},is:function(e){return!!n(this,"string"==typeof e&&pe.test(e)?se(e):e||[],!1).length}});var ge,ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(se.fn.init=function(e,t,i){var n,o;if(!e)return this;if(i=i||ge,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ve.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof se?t[0]:t,se.merge(this,se.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:U,!0)),fe.test(n[1])&&se.isPlainObject(t))for(n in t)se.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return o=U.getElementById(n[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=U,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):se.isFunction(e)?void 0!==i.ready?i.ready(e):e(se):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),se.makeArray(e,this))}).prototype=se.fn,ge=se(U);var ye=/^(?:parents|prev(?:Until|All))/,be={children:!0,contents:!0,next:!0,prev:!0};se.fn.extend({has:function(e){var t=se(e,this),i=t.length;return this.filter(function(){for(var e=0;i>e;e++)if(se.contains(this,t[e]))return!0})},closest:function(e,t){for(var i,n=0,o=this.length,s=[],r=pe.test(e)||"string"!=typeof e?se(e,t||this.context):0;o>n;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&se.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(s.length>1?se.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?J.call(se(e),this[0]):J.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(se.uniqueSort(se.merge(this.get(),se(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),se.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return he(e,"parentNode")},parentsUntil:function(e,t,i){return he(e,"parentNode",i)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return he(e,"nextSibling")},prevAll:function(e){return he(e,"previousSibling")},nextUntil:function(e,t,i){return he(e,"nextSibling",i)},prevUntil:function(e,t,i){return he(e,"previousSibling",i)},siblings:function(e){return de((e.parentNode||{}).firstChild,e)},children:function(e){return de(e.firstChild)},contents:function(e){return e.contentDocument||se.merge([],e.childNodes)}},function(e,t){se.fn[e]=function(i,n){var o=se.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=se.filter(n,o)),this.length>1&&(be[e]||se.uniqueSort(o),ye.test(e)&&o.reverse()),this.pushStack(o)}});var xe=/\S+/g;se.Callbacks=function(e){e="string"==typeof e?s(e):se.extend({},e);var t,i,n,o,r=[],a=[],l=-1,c=function(){for(o=e.once,n=t=!0;a.length;l=-1)for(i=a.shift();++l<r.length;)!1===r[l].apply(i[0],i[1])&&e.stopOnFalse&&(l=r.length,i=!1);e.memory||(i=!1),t=!1,o&&(r=i?[]:"")},u={add:function(){return r&&(i&&!t&&(l=r.length-1,a.push(i)),function t(i){se.each(i,function(i,n){se.isFunction(n)?e.unique&&u.has(n)||r.push(n):n&&n.length&&"string"!==se.type(n)&&t(n)})}(arguments),i&&!t&&c()),this},remove:function(){return se.each(arguments,function(e,t){for(var i;(i=se.inArray(t,r,i))>-1;)r.splice(i,1),l>=i&&l--}),this},has:function(e){return e?se.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=i="",this},disabled:function(){return!r},lock:function(){return o=a=[],i||(r=i=""),this},locked:function(){return!!o},fireWith:function(e,i){return o||(i=i||[],i=[e,i.slice?i.slice():i],a.push(i),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},se.extend({Deferred:function(e){var t=[["resolve","done",se.Callbacks("once memory"),"resolved"],["reject","fail",se.Callbacks("once memory"),"rejected"],["notify","progress",se.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return se.Deferred(function(i){se.each(t,function(t,s){var r=se.isFunction(e[t])&&e[t];o[s[1]](function(){var e=r&&r.apply(this,arguments);e&&se.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[s[0]+"With"](this===n?i.promise():this,r?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?se.extend(e,n):n}},o={};return n.pipe=n.then,se.each(t,function(e,s){var r=s[2],a=s[3];n[s[1]]=r.add,a&&r.add(function(){i=a},t[1^e][2].disable,t[2][2].lock),o[s[0]]=function(){return o[s[0]+"With"](this===o?n:this,arguments),this},o[s[0]+"With"]=r.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t,i,n,o=0,s=G.call(arguments),r=s.length,a=1!==r||e&&se.isFunction(e.promise)?r:0,l=1===a?e:se.Deferred(),c=function(e,i,n){return function(o){i[e]=this,n[e]=arguments.length>1?G.call(arguments):o,n===t?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(r>1)for(t=new Array(r),i=new Array(r),n=new Array(r);r>o;o++)s[o]&&se.isFunction(s[o].promise)?s[o].promise().progress(c(o,i,t)).done(c(o,n,s)).fail(l.reject):--a;return a||l.resolveWith(n,s),l.promise()}});var we;se.fn.ready=function(e){return se.ready.promise().done(e),this},se.extend({isReady:!1,readyWait:1,holdReady:function(e){e?se.readyWait++:se.ready(!0)},ready:function(e){(!0===e?--se.readyWait:se.isReady)||(se.isReady=!0,!0!==e&&--se.readyWait>0||(we.resolveWith(U,[se]),se.fn.triggerHandler&&(se(U).triggerHandler("ready"),se(U).off("ready"))))}}),se.ready.promise=function(t){return we||(we=se.Deferred(),"complete"===U.readyState||"loading"!==U.readyState&&!U.documentElement.doScroll?e.setTimeout(se.ready):(U.addEventListener("DOMContentLoaded",r),e.addEventListener("load",r))),we.promise(t)},se.ready.promise();var ke=function(e,t,i,n,o,s,r){var a=0,l=e.length,c=null==i;if("object"===se.type(i)){o=!0;for(a in i)ke(e,t,a,i[a],!0,s,r)}else if(void 0!==n&&(o=!0,se.isFunction(n)||(r=!0),c&&(r?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(se(e),i)})),t))for(;l>a;a++)t(e[a],i,r?n:n.call(e[a],a,t(e[a],i)));return o?e:c?t.call(e):l?t(e[0],i):s},Ce=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};a.uid=1,a.prototype={register:function(e,t){var i=t||{};return e.nodeType?e[this.expando]=i:Object.defineProperty(e,this.expando,{value:i,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Ce(e))return{};var t=e[this.expando];return t||(t={},Ce(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,o=this.cache(e);if("string"==typeof t)o[t]=i;else for(n in t)o[n]=t[n];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,i){var n;return void 0===t||t&&"string"==typeof t&&void 0===i?(n=this.get(e,t),void 0!==n?n:this.get(e,se.camelCase(t))):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n,o,s=e[this.expando];if(void 0!==s){if(void 0===t)this.register(e);else{se.isArray(t)?n=t.concat(t.map(se.camelCase)):(o=se.camelCase(t),t in s?n=[t,o]:(n=o,n=n in s?[n]:n.match(xe)||[])),i=n.length;for(;i--;)delete s[n[i]]}(void 0===t||se.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!se.isEmptyObject(t)}};var _e=new a,Te=new a,Se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Pe=/[A-Z]/g;se.extend({hasData:function(e){return Te.hasData(e)||_e.hasData(e)},data:function(e,t,i){return Te.access(e,t,i)},removeData:function(e,t){Te.remove(e,t)},_data:function(e,t,i){return _e.access(e,t,i)},_removeData:function(e,t){_e.remove(e,t)}}),se.fn.extend({data:function(e,t){var i,n,o,s=this[0],r=s&&s.attributes;if(void 0===e){if(this.length&&(o=Te.get(s),1===s.nodeType&&!_e.get(s,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=se.camelCase(n.slice(5)),l(s,n,o[n])));_e.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Te.set(this,e)}):ke(this,function(t){var i,n;if(s&&void 0===t){if(void 0!==(i=Te.get(s,e)||Te.get(s,e.replace(Pe,"-$&").toLowerCase())))return i;if(n=se.camelCase(e),void 0!==(i=Te.get(s,n)))return i;if(void 0!==(i=l(s,n,void 0)))return i}else n=se.camelCase(e),this.each(function(){var i=Te.get(this,n);Te.set(this,n,t),e.indexOf("-")>-1&&void 0!==i&&Te.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Te.remove(this,e)})}}),se.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=_e.get(e,t),i&&(!n||se.isArray(i)?n=_e.access(e,t,se.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=se.queue(e,t),n=i.length,o=i.shift(),s=se._queueHooks(e,t),r=function(){se.dequeue(e,t)};"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete s.stop,o.call(e,r,s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return _e.get(e,i)||_e.access(e,i,{empty:se.Callbacks("once memory").add(function(){_e.remove(e,[t+"queue",i])})})}}),se.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?se.queue(this[0],e):void 0===t?this:this.each(function(){var i=se.queue(this,e,t);se._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&se.dequeue(this,e)})},dequeue:function(e){return this.each(function(){se.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,o=se.Deferred(),s=this,r=this.length,a=function(){--n||o.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=_e.get(s[r],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),o.promise(t)}});var Ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+Ee+")([a-z%]*)$","i"),Ae=["Top","Right","Bottom","Left"],Oe=function(e,t){return e=t||e,"none"===se.css(e,"display")||!se.contains(e.ownerDocument,e)},De=/^(?:checkbox|radio)$/i,ze=/<([\w:-]+)/,Ne=/^$|\/(?:java|ecma)script/i,He={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};He.optgroup=He.option,He.tbody=He.tfoot=He.colgroup=He.caption=He.thead,He.th=He.td;var Ie=/<|&#?\w+;/;!function(){var e=U.createDocumentFragment(),t=e.appendChild(U.createElement("div")),i=U.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var $e=/^key/,We=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Le=/^([^.]*)(?:\.(.+)|)/;se.event={global:{},add:function(e,t,i,n,o){var s,r,a,l,c,u,h,d,p,f,m,g=_e.get(e);if(g)for(i.handler&&(s=i,i=s.handler,o=s.selector),i.guid||(i.guid=se.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(t){return void 0!==se&&se.event.triggered!==t.type?se.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(xe)||[""],c=t.length;c--;)a=Le.exec(t[c])||[],p=m=a[1],f=(a[2]||"").split(".").sort(),p&&(h=se.event.special[p]||{},p=(o?h.delegateType:h.bindType)||p,h=se.event.special[p]||{},u=se.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&se.expr.match.needsContext.test(o),namespace:f.join(".")},s),(d=l[p])||(d=l[p]=[],d.delegateCount=0,h.setup&&!1!==h.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(p,r)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),se.event.global[p]=!0)},remove:function(e,t,i,n,o){var s,r,a,l,c,u,h,d,p,f,m,g=_e.hasData(e)&&_e.get(e);if(g&&(l=g.events)){for(t=(t||"").match(xe)||[""],c=t.length;c--;)if(a=Le.exec(t[c])||[],p=m=a[1],f=(a[2]||"").split(".").sort(),p){for(h=se.event.special[p]||{},p=(n?h.delegateType:h.bindType)||p,d=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=d.length;s--;)u=d[s],!o&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(s,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));r&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,f,g.handle)||se.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)se.event.remove(e,p+t[c],i,n,!0);se.isEmptyObject(l)&&_e.remove(e,"handle events")}},dispatch:function(e){e=se.event.fix(e);var t,i,n,o,s,r=[],a=G.call(arguments),l=(_e.get(this,"events")||{})[e.type]||[],c=se.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(r=se.event.handlers.call(this,e,l),t=0;(o=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,i=0;(s=o.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(s.namespace)||(e.handleObj=s,e.data=s.data,void 0!==(n=((se.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,a))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,o,s,r=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(n=[],i=0;a>i;i++)s=t[i],o=s.selector+" ",void 0===n[o]&&(n[o]=s.needsContext?se(o,this).index(l)>-1:se.find(o,this,null,[l]).length),n[o]&&n.push(s);n.length&&r.push({elem:l,handlers:n})}return a<t.length&&r.push({elem:this,handlers:t.slice(a)}),r},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,o,s=t.button;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||U,n=i.documentElement,o=i.body,e.pageX=t.clientX+(n&&n.scrollLeft||o&&o.scrollLeft||0)-(n&&n.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||o&&o.scrollTop||0)-(n&&n.clientTop||o&&o.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[se.expando])return e;var t,i,n,o=e.type,s=e,r=this.fixHooks[o];for(r||(this.fixHooks[o]=r=We.test(o)?this.mouseHooks:$e.test(o)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,e=new se.Event(s),t=n.length;t--;)i=n[t],e[i]=s[i];return e.target||(e.target=U),3===e.target.nodeType&&(e.target=e.target.parentNode),r.filter?r.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==m()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===m()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&se.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return se.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},se.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},se.Event=function(e,t){return this instanceof se.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?p:f):this.type=e,t&&se.extend(this,t),this.timeStamp=e&&e.timeStamp||se.now(),void(this[se.expando]=!0)):new se.Event(e,t)},se.Event.prototype={constructor:se.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=p,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=p,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=p,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},se.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){se.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,o=e.relatedTarget,s=e.handleObj;return o&&(o===n||se.contains(n,o))||(e.type=s.origType,i=s.handler.apply(this,arguments),e.type=t),i}}}),se.fn.extend({on:function(e,t,i,n){return g(this,e,t,i,n)},one:function(e,t,i,n){return g(this,e,t,i,n,1)},off:function(e,t,i){var n,o;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,se(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=f),this.each(function(){se.event.remove(this,e,i,t)})}});var qe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,je=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^true\/(.*)/,Ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;se.extend({htmlPrefilter:function(e){return e.replace(qe,"<$1></$2>")},clone:function(e,t,i){var n,o,s,r,a=e.cloneNode(!0),l=se.contains(e.ownerDocument,e);if(!(ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||se.isXMLDoc(e)))for(r=u(a),s=u(e),n=0,o=s.length;o>n;n++)w(s[n],r[n]);if(t)if(i)for(s=s||u(e),r=r||u(a),n=0,o=s.length;o>n;n++)x(s[n],r[n]);else x(e,a);return r=u(a,"script"),r.length>0&&h(r,!l&&u(e,"script")),a},cleanData:function(e){for(var t,i,n,o=se.event.special,s=0;void 0!==(i=e[s]);s++)if(Ce(i)){if(t=i[_e.expando]){if(t.events)for(n in t.events)o[n]?se.event.remove(i,n):se.removeEvent(i,n,t.handle);i[_e.expando]=void 0}i[Te.expando]&&(i[Te.expando]=void 0)}}}),se.fn.extend({domManip:k,detach:function(e){return C(this,e,!0)},remove:function(e){return C(this,e)},text:function(e){return ke(this,function(e){return void 0===e?se.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return k(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){v(this,e).appendChild(e)}})},prepend:function(){return k(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return k(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return k(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(se.cleanData(u(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return se.clone(this,e,t)})},html:function(e){return ke(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!je.test(e)&&!He[(ze.exec(e)||["",""])[1].toLowerCase()]){e=se.htmlPrefilter(e);try{for(;n>i;i++)t=this[i]||{},1===t.nodeType&&(se.cleanData(u(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return k(this,arguments,function(t){var i=this.parentNode;se.inArray(this,e)<0&&(se.cleanData(u(this)),i&&i.replaceChild(t,this))},e)}}),se.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){se.fn[e]=function(e){for(var i,n=[],o=se(e),s=o.length-1,r=0;s>=r;r++)i=r===s?this:this.clone(!0),se(o[r])[t](i),Z.apply(n,i.get());return this.pushStack(n)}});var Xe,Be={HTML:"block",BODY:"block"},Ye=/^margin/,Qe=new RegExp("^("+Ee+")(?!px)[a-z%]+$","i"),Ue=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},Ge=function(e,t,i,n){var o,s,r={};for(s in t)r[s]=e.style[s],e.style[s]=t[s];o=i.apply(e,n||[]);for(s in t)e.style[s]=r[s];return o},Ke=U.documentElement;!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ke.appendChild(r);var t=e.getComputedStyle(a);i="1%"!==t.top,s="2px"===t.marginLeft,n="4px"===t.width,a.style.marginRight="50%",o="4px"===t.marginRight,Ke.removeChild(r)}var i,n,o,s,r=U.createElement("div"),a=U.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===a.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(a),se.extend(ne,{pixelPosition:function(){return t(),i},boxSizingReliable:function(){return null==n&&t(),n},pixelMarginRight:function(){return null==n&&t(),o},reliableMarginLeft:function(){return null==n&&t(),s},reliableMarginRight:function(){var t,i=a.appendChild(U.createElement("div"));return i.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",a.style.width="1px",Ke.appendChild(r),t=!parseFloat(e.getComputedStyle(i).marginRight),Ke.removeChild(r),a.removeChild(i),t}}))}();var Ze=/^(none|table(?!-c[ea]).+)/,Je={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"},tt=["Webkit","O","Moz","ms"],it=U.createElement("div").style;se.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=S(e,"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:"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,r,a=se.camelCase(t),l=e.style;return t=se.cssProps[a]||(se.cssProps[a]=E(a)||a),r=se.cssHooks[t]||se.cssHooks[a],void 0===i?r&&"get"in r&&void 0!==(o=r.get(e,!1,n))?o:l[t]:(s=typeof i,"string"===s&&(o=Me.exec(i))&&o[1]&&(i=c(e,t,o),s="number"),void(null!=i&&i===i&&("number"===s&&(i+=o&&o[3]||(se.cssNumber[a]?"":"px")),ne.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l[t]=i))))}},css:function(e,t,i,n){var o,s,r,a=se.camelCase(t);return t=se.cssProps[a]||(se.cssProps[a]=E(a)||a),r=se.cssHooks[t]||se.cssHooks[a],r&&"get"in r&&(o=r.get(e,!0,i)),void 0===o&&(o=S(e,t,n)),"normal"===o&&t in et&&(o=et[t]),""===i||i?(s=parseFloat(o),!0===i||isFinite(s)?s||0:o):o}}),se.each(["height","width"],function(e,t){se.cssHooks[t]={get:function(e,i,n){return i?Ze.test(se.css(e,"display"))&&0===e.offsetWidth?Ge(e,Je,function(){return O(e,t,n)}):O(e,t,n):void 0},set:function(e,i,n){var o,s=n&&Ue(e),r=n&&A(e,t,n,"border-box"===se.css(e,"boxSizing",!1,s),s);return r&&(o=Me.exec(i))&&"px"!==(o[3]||"px")&&(e.style[t]=i,i=se.css(e,t)),M(e,i,r)}}}),se.cssHooks.marginLeft=P(ne.reliableMarginLeft,function(e,t){return t?(parseFloat(S(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),se.cssHooks.marginRight=P(ne.reliableMarginRight,function(e,t){return t?Ge(e,{display:"inline-block"},S,[e,"marginRight"]):void 0}),se.each({margin:"",padding:"",border:"Width"},function(e,t){se.cssHooks[e+t]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];4>n;n++)o[e+Ae[n]+t]=s[n]||s[n-2]||s[0];return o}},Ye.test(e)||(se.cssHooks[e+t].set=M)}),se.fn.extend({css:function(e,t){return ke(this,function(e,t,i){var n,o,s={},r=0;if(se.isArray(t)){for(n=Ue(e),o=t.length;o>r;r++)s[t[r]]=se.css(e,t[r],!1,n);return s}return void 0!==i?se.style(e,t,i):se.css(e,t)},e,t,arguments.length>1)},show:function(){return D(this,!0)},hide:function(){return D(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Oe(this)?se(this).show():se(this).hide()})}}),se.Tween=z,z.prototype={constructor:z,init:function(e,t,i,n,o,s){this.elem=e,this.prop=i,this.easing=o||se.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(se.cssNumber[i]?"":"px")},cur:function(){var e=z.propHooks[this.prop];return e&&e.get?e.get(this):z.propHooks._default.get(this)},run:function(e){var t,i=z.propHooks[this.prop];return this.options.duration?this.pos=t=se.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=se.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){se.fx.step[e.prop]?se.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[se.cssProps[e.prop]]&&!se.cssHooks[e.prop]?e.elem[e.prop]=e.now:se.style(e.elem,e.prop,e.now+e.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},se.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},se.fx=z.prototype.init,se.fx.step={};var nt,ot,st=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;se.Animation=se.extend(L,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return c(i.elem,e,Me.exec(t),i),i}]},tweener:function(e,t){se.isFunction(e)?(t=e,e=["*"]):e=e.match(xe);for(var i,n=0,o=e.length;o>n;n++)i=e[n],L.tweeners[i]=L.tweeners[i]||[],L.tweeners[i].unshift(t)},prefilters:[$],prefilter:function(e,t){t?L.prefilters.unshift(e):L.prefilters.push(e)}}),se.speed=function(e,t,i){var n=e&&"object"==typeof e?se.extend({},e):{complete:i||!i&&t||se.isFunction(e)&&e,duration:e,easing:i&&t||t&&!se.isFunction(t)&&t};return n.duration=se.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in se.fx.speeds?se.fx.speeds[n.duration]:se.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){se.isFunction(n.old)&&n.old.call(this),n.queue&&se.dequeue(this,n.queue)},n},se.fn.extend({fadeTo:function(e,t,i,n){return this.filter(Oe).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var o=se.isEmptyObject(e),s=se.speed(t,i,n),r=function(){var t=L(this,se.extend({},e),s);(o||_e.get(this,"finish"))&&t.stop(!0)};return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",s=se.timers,r=_e.get(this);if(o)r[o]&&r[o].stop&&n(r[o]);else for(o in r)r[o]&&r[o].stop&&rt.test(o)&&n(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=e&&s[o].queue!==e||(s[o].anim.stop(i),t=!1,s.splice(o,1));!t&&i||se.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,i=_e.get(this),n=i[e+"queue"],o=i[e+"queueHooks"],s=se.timers,r=n?n.length:0;for(i.finish=!0,se.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;r>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),se.each(["toggle","show","hide"],function(e,t){var i=se.fn[t];se.fn[t]=function(e,n,o){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(H(t,!0),e,n,o)}}),se.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){se.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),se.timers=[],se.fx.tick=function(){var e,t=0,i=se.timers;for(nt=se.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||se.fx.stop(),nt=void 0},se.fx.timer=function(e){se.timers.push(e),e()?se.fx.start():se.timers.pop()},se.fx.interval=13,se.fx.start=function(){ot||(ot=e.setInterval(se.fx.tick,se.fx.interval))},se.fx.stop=function(){e.clearInterval(ot),ot=null},se.fx.speeds={slow:600,fast:200,_default:400},se.fn.delay=function(t,i){return t=se.fx?se.fx.speeds[t]||t:t,i=i||"fx",this.queue(i,function(i,n){var o=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(o)}})},function(){var e=U.createElement("input"),t=U.createElement("select"),i=t.appendChild(U.createElement("option"));e.type="checkbox",ne.checkOn=""!==e.value,ne.optSelected=i.selected,t.disabled=!0,ne.optDisabled=!i.disabled,e=U.createElement("input"),e.value="t",e.type="radio",ne.radioValue="t"===e.value}();var at,lt=se.expr.attrHandle;se.fn.extend({attr:function(e,t){return ke(this,se.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){se.removeAttr(this,e)})}}),se.extend({attr:function(e,t,i){var n,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?se.prop(e,t,i):(1===s&&se.isXMLDoc(e)||(t=t.toLowerCase(),o=se.attrHooks[t]||(se.expr.match.bool.test(t)?at:void 0)),void 0!==i?null===i?void se.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(n=o.get(e,t))?n:(n=se.find.attr(e,t),null==n?void 0:n))},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&se.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n,o=0,s=t&&t.match(xe);if(s&&1===e.nodeType)for(;i=s[o++];)n=se.propFix[i]||i,se.expr.match.bool.test(i)&&(e[n]=!1),e.removeAttribute(i)}}),at={set:function(e,t,i){return!1===t?se.removeAttr(e,i):e.setAttribute(i,i),i}},se.each(se.expr.match.bool.source.match(/\w+/g),function(e,t){var i=lt[t]||se.find.attr;lt[t]=function(e,t,n){var o,s;return n||(s=lt[t],lt[t]=o,o=null!=i(e,t,n)?t.toLowerCase():null,lt[t]=s),o}});var ct=/^(?:input|select|textarea|button)$/i,ut=/^(?:a|area)$/i;se.fn.extend({prop:function(e,t){return ke(this,se.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[se.propFix[e]||e]})}}),se.extend({prop:function(e,t,i){var n,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&se.isXMLDoc(e)||(t=se.propFix[t]||t,o=se.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:e[t]=i:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=se.find.attr(e,"tabindex");return t?parseInt(t,10):ct.test(e.nodeName)||ut.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ne.optSelected||(se.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),se.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){se.propFix[this.toLowerCase()]=this});var ht=/[\t\r\n\f]/g;se.fn.extend({addClass:function(e){var t,i,n,o,s,r,a,l=0;if(se.isFunction(e))return this.each(function(t){se(this).addClass(e.call(this,t,q(this)))});if("string"==typeof e&&e)for(t=e.match(xe)||[];i=this[l++];)if(o=q(i),n=1===i.nodeType&&(" "+o+" ").replace(ht," ")){for(r=0;s=t[r++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");a=se.trim(n),o!==a&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,o,s,r,a,l=0;if(se.isFunction(e))return this.each(function(t){se(this).removeClass(e.call(this,t,q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(xe)||[];i=this[l++];)if(o=q(i),n=1===i.nodeType&&(" "+o+" ").replace(ht," ")){for(r=0;s=t[r++];)for(;n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");a=se.trim(n),o!==a&&i.setAttribute("class",a)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):se.isFunction(e)?this.each(function(i){se(this).toggleClass(e.call(this,i,q(this),t),t)}):this.each(function(){var t,n,o,s;if("string"===i)for(n=0,o=se(this),s=e.match(xe)||[];t=s[n++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||(t=q(this),t&&_e.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":_e.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+q(i)+" ").replace(ht," ").indexOf(t)>-1)return!0;return!1}});var dt=/\r/g,pt=/[\x20\t\r\n\f]+/g;se.fn.extend({val:function(e){var t,i,n,o=this[0];return arguments.length?(n=se.isFunction(e),this.each(function(i){var o;1===this.nodeType&&(o=n?e.call(this,i,se(this).val()):e,null==o?o="":"number"==typeof o?o+="":se.isArray(o)&&(o=se.map(o,function(e){return null==e?"":e+""})),(t=se.valHooks[this.type]||se.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=se.valHooks[o.type]||se.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(i=t.get(o,"value"))?i:(i=o.value,"string"==typeof i?i.replace(dt,""):null==i?"":i)):void 0}}),se.extend({valHooks:{option:{get:function(e){var t=se.find.attr(e,"value");return null!=t?t:se.trim(se.text(e)).replace(pt," ")}},select:{get:function(e){for(var t,i,n=e.options,o=e.selectedIndex,s="select-one"===e.type||0>o,r=s?null:[],a=s?o+1:n.length,l=0>o?a:s?o:0;a>l;l++)if(i=n[l],(i.selected||l===o)&&(ne.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!se.nodeName(i.parentNode,"optgroup"))){if(t=se(i).val(),s)return t;r.push(t)}return r},set:function(e,t){for(var i,n,o=e.options,s=se.makeArray(t),r=o.length;r--;)n=o[r],(n.selected=se.inArray(se.valHooks.option.get(n),s)>-1)&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),se.each(["radio","checkbox"],function(){se.valHooks[this]={set:function(e,t){return se.isArray(t)?e.checked=se.inArray(se(e).val(),t)>-1:void 0}},ne.checkOn||(se.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ft=/^(?:focusinfocus|focusoutblur)$/;se.extend(se.event,{trigger:function(t,i,n,o){var s,r,a,l,c,u,h,d=[n||U],p=ie.call(t,"type")?t.type:t,f=ie.call(t,"namespace")?t.namespace.split("."):[];if(r=a=n=n||U,3!==n.nodeType&&8!==n.nodeType&&!ft.test(p+se.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[se.expando]?t:new se.Event(p,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:se.makeArray(i,[t]),h=se.event.special[p]||{},o||!h.trigger||!1!==h.trigger.apply(n,i))){if(!o&&!h.noBubble&&!se.isWindow(n)){for(l=h.delegateType||p,ft.test(l+p)||(r=r.parentNode);r;r=r.parentNode)d.push(r),a=r;a===(n.ownerDocument||U)&&d.push(a.defaultView||a.parentWindow||e)}for(s=0;(r=d[s++])&&!t.isPropagationStopped();)t.type=s>1?l:h.bindType||p,u=(_e.get(r,"events")||{})[t.type]&&_e.get(r,"handle"),u&&u.apply(r,i),(u=c&&r[c])&&u.apply&&Ce(r)&&(t.result=u.apply(r,i),!1===t.result&&t.preventDefault());return t.type=p,o||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),i)||!Ce(n)||c&&se.isFunction(n[p])&&!se.isWindow(n)&&(a=n[c],a&&(n[c]=null),se.event.triggered=p,n[p](),se.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(e,t,i){var n=se.extend(new se.Event,i,{type:e,isSimulated:!0});se.event.trigger(n,null,t)}}),se.fn.extend({trigger:function(e,t){return this.each(function(){se.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];return i?se.event.trigger(e,t,i,!0):void 0}}),se.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(e,t){se.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),se.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ne.focusin="onfocusin"in e,ne.focusin||se.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){se.event.simulate(t,e.target,se.event.fix(e))};se.event.special[t]={setup:function(){var n=this.ownerDocument||this,o=_e.access(n,t);o||n.addEventListener(e,i,!0),_e.access(n,t,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this,o=_e.access(n,t)-1;o?_e.access(n,t,o):(n.removeEventListener(e,i,!0),_e.remove(n,t))}}});var mt=e.location,gt=se.now(),vt=/\?/;se.parseJSON=function(e){return JSON.parse(e+"")},se.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||se.error("Invalid XML: "+t),i};var yt=/#.*$/,bt=/([?&])_=[^&]*/,xt=/^(.*?):[ \t]*([^\r\n]*)$/gm,wt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kt=/^(?:GET|HEAD)$/,Ct=/^\/\//,_t={},Tt={},St="*/".concat("*"),Pt=U.createElement("a");Pt.href=mt.href,se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mt.href,type:"GET",isLocal:wt.test(mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":St,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":se.parseJSON,"text xml":se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?F(F(e,se.ajaxSettings),t):F(se.ajaxSettings,e)},ajaxPrefilter:j(_t),ajaxTransport:j(Tt),ajax:function(t,i){function n(t,i,n,a){var c,h,y,b,w,C=i;2!==x&&(x=2,l&&e.clearTimeout(l),o=void 0,r=a||"",k.readyState=t>0?4:0,c=t>=200&&300>t||304===t,n&&(b=V(d,k,n)),b=X(d,b,k,c),c?(d.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(se.lastModified[s]=w),(w=k.getResponseHeader("etag"))&&(se.etag[s]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=b.state,h=b.data,y=b.error,c=!y)):(y=C,!t&&C||(C="error",0>t&&(t=0))),k.status=t,k.statusText=(i||C)+"",c?m.resolveWith(p,[h,C,k]):m.rejectWith(p,[k,C,y]),k.statusCode(v),v=void 0,u&&f.trigger(c?"ajaxSuccess":"ajaxError",[k,d,c?h:y]),g.fireWith(p,[k,C]),u&&(f.trigger("ajaxComplete",[k,d]),--se.active||se.event.trigger("ajaxStop")))}"object"==typeof t&&(i=t,t=void 0),i=i||{};var o,s,r,a,l,c,u,h,d=se.ajaxSetup({},i),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?se(p):se.event,m=se.Deferred(),g=se.Callbacks("once memory"),v=d.statusCode||{},y={},b={},x=0,w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!a)for(a={};t=xt.exec(r);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?r:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return x||(e=b[i]=b[i]||e,y[e]=t),this},overrideMimeType:function(e){return x||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)v[t]=[v[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||w;return o&&o.abort(t),n(0,t),this}};if(m.promise(k).complete=g.add,k.success=k.done,k.error=k.fail,d.url=((t||d.url||mt.href)+"").replace(yt,"").replace(Ct,mt.protocol+"//"),d.type=i.method||i.type||d.method||d.type,d.dataTypes=se.trim(d.dataType||"*").toLowerCase().match(xe)||[""],null==d.crossDomain){c=U.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Pt.protocol+"//"+Pt.host!=c.protocol+"//"+c.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=se.param(d.data,d.traditional)),R(_t,d,i,k),2===x)return k;u=se.event&&d.global,u&&0==se.active++&&se.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!kt.test(d.type),s=d.url,d.hasContent||(d.data&&(s=d.url+=(vt.test(s)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=bt.test(s)?s.replace(bt,"$1_="+gt++):s+(vt.test(s)?"&":"?")+"_="+gt++)),d.ifModified&&(se.lastModified[s]&&k.setRequestHeader("If-Modified-Since",se.lastModified[s]),se.etag[s]&&k.setRequestHeader("If-None-Match",se.etag[s])),(d.data&&d.hasContent&&!1!==d.contentType||i.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+St+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)k.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(p,k,d)||2===x))return k.abort();w="abort";for(h in{success:1,error:1,complete:1})k[h](d[h]);if(o=R(Tt,d,i,k)){if(k.readyState=1,u&&f.trigger("ajaxSend",[k,d]),2===x)return k;d.async&&d.timeout>0&&(l=e.setTimeout(function(){k.abort("timeout")},d.timeout));try{x=1,o.send(y,n)}catch(e){if(!(2>x))throw e;n(-1,e)}}else n(-1,"No Transport");return k},getJSON:function(e,t,i){return se.get(e,t,i,"json")},getScript:function(e,t){return se.get(e,void 0,t,"script")}}),se.each(["get","post"],function(e,t){se[t]=function(e,i,n,o){return se.isFunction(i)&&(o=o||n,n=i,i=void 0),se.ajax(se.extend({url:e,type:t,dataType:o,data:i,success:n},se.isPlainObject(e)&&e))}}),se._evalUrl=function(e){return se.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},se.fn.extend({wrapAll:function(e){var t;return se.isFunction(e)?this.each(function(t){se(this).wrapAll(e.call(this,t))}):(this[0]&&(t=se(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return se.isFunction(e)?this.each(function(t){se(this).wrapInner(e.call(this,t))}):this.each(function(){var t=se(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=se.isFunction(e);return this.each(function(i){se(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){se.nodeName(this,"body")||se(this).replaceWith(this.childNodes)}).end()}}),se.expr.filters.hidden=function(e){return!se.expr.filters.visible(e)},se.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Et=/%20/g,Mt=/\[\]$/,At=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;se.param=function(e,t){var i,n=[],o=function(e,t){t=se.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=se.ajaxSettings&&se.ajaxSettings.traditional),se.isArray(e)||e.jquery&&!se.isPlainObject(e))se.each(e,function(){o(this.name,this.value)});else for(i in e)B(i,e[i],t,o);return n.join("&").replace(Et,"+")},se.fn.extend({serialize:function(){return se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=se.prop(this,"elements");return e?se.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!se(this).is(":disabled")&&Dt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!De.test(e))}).map(function(e,t){var i=se(this).val();return null==i?null:se.isArray(i)?se.map(i,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:i.replace(At,"\r\n")}}).get()}}),se.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Nt=se.ajaxSettings.xhr();ne.cors=!!Nt&&"withCredentials"in Nt,ne.ajax=Nt=!!Nt,se.ajaxTransport(function(t){var i,n;return ne.cors||Nt&&!t.crossDomain?{send:function(o,s){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(r in o)a.setRequestHeader(r,o[r]);i=function(e){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(zt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){i&&n()})},i=i("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}:void 0}),se.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return se.globalEval(e),e}}}),se.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),se.ajaxTransport("script",function(e){if(e.crossDomain){var t,i;return{send:function(n,o){t=se("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&o("error"===e.type?404:200,e.type)}),U.head.appendChild(t[0])},abort:function(){i&&i()}}}});var Ht=[],It=/(=)\?(?=&|$)|\?\?/;se.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||se.expando+"_"+gt++;return this[e]=!0,e}}),se.ajaxPrefilter("json jsonp",function(t,i,n){var o,s,r,a=!1!==t.jsonp&&(It.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&It.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(o=t.jsonpCallback=se.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(It,"$1"+o):!1!==t.jsonp&&(t.url+=(vt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return r||se.error(o+" was not called"),r[0]},t.dataTypes[0]="json",s=e[o],e[o]=function(){r=arguments},n.always(function(){void 0===s?se(e).removeProp(o):e[o]=s,t[o]&&(t.jsonpCallback=i.jsonpCallback,Ht.push(o)),r&&se.isFunction(s)&&s(r[0]),r=s=void 0}),"script"):void 0}),se.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||U;var n=fe.exec(e),o=!i&&[];return n?[t.createElement(n[1])]:(n=d([e],t,o),o&&o.length&&se(o).remove(),se.merge([],n.childNodes))};var $t=se.fn.load;se.fn.load=function(e,t,i){if("string"!=typeof e&&$t)return $t.apply(this,arguments);var n,o,s,r=this,a=e.indexOf(" ");return a>-1&&(n=se.trim(e.slice(a)),e=e.slice(0,a)),se.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(o="POST"),r.length>0&&se.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){s=arguments,r.html(n?se("<div>").append(se.parseHTML(e)).find(n):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,s||[e.responseText,t,e])})}),this},se.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){se.fn[t]=function(e){return this.on(t,e)}}),se.expr.filters.animated=function(e){return se.grep(se.timers,function(t){return e===t.elem}).length},se.offset={setOffset:function(e,t,i){var n,o,s,r,a,l,c,u=se.css(e,"position"),h=se(e),d={};"static"===u&&(e.style.position="relative"),a=h.offset(),s=se.css(e,"top"),l=se.css(e,"left"),c=("absolute"===u||"fixed"===u)&&(s+l).indexOf("auto")>-1,c?(n=h.position(),r=n.top,o=n.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),se.isFunction(t)&&(t=t.call(e,i,se.extend({},a))),null!=t.top&&(d.top=t.top-a.top+r),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):h.css(d)}},se.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){se.offset.setOffset(this,e,t)});var t,i,n=this[0],o={top:0,left:0},s=n&&n.ownerDocument;return s?(t=s.documentElement,se.contains(t,n)?(o=n.getBoundingClientRect(),i=Y(s),{top:o.top+i.pageYOffset-t.clientTop,left:o.left+i.pageXOffset-t.clientLeft}):o):void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===se.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),se.nodeName(e[0],"html")||(n=e.offset()),n.top+=se.css(e[0],"borderTopWidth",!0),n.left+=se.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-se.css(i,"marginTop",!0),left:t.left-n.left-se.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===se.css(e,"position");)e=e.offsetParent;return e||Ke})}}),se.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i="pageYOffset"===t;se.fn[e]=function(n){return ke(this,function(e,n,o){var s=Y(e);return void 0===o?s?s[t]:e[n]:void(s?s.scrollTo(i?s.pageXOffset:o,i?o:s.pageYOffset):e[n]=o)},e,n,arguments.length)}}),se.each(["top","left"],function(e,t){se.cssHooks[t]=P(ne.pixelPosition,function(e,i){return i?(i=S(e,t),Qe.test(i)?se(e).position()[t]+"px":i):void 0})}),se.each({Height:"height",Width:"width"},function(e,t){se.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){se.fn[n]=function(n,o){var s=arguments.length&&(i||"boolean"!=typeof n),r=i||(!0===n||!0===o?"margin":"border");return ke(this,function(t,i,n){var o;return se.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===n?se.css(t,i,r):se.style(t,i,n,r)},t,s?n:void 0,s,null)}})}),se.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},size:function(){return this.length}}),se.fn.andSelf=se.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return se});var Wt=e.jQuery,Lt=e.$;return se.noConflict=function(t){return e.$===se&&(e.$=Lt),t&&e.jQuery===se&&(e.jQuery=Wt),se},t||(e.jQuery=e.$=se),se});var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();"undefined"==typeof jQuery&&("function"==typeof require?jQuery=$=require("jquery"):jQuery=$),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?exports=e(require("jquery")):e(jQuery)}(function(e){function t(e){var t=7.5625,i=2.75;return e<1/i?t*e*e:e<2/i?t*(e-=1.5/i)*e+.75:e<2.5/i?t*(e-=2.25/i)*e+.9375:t*(e-=2.625/i)*e+.984375}e.easing.jswing=e.easing.swing;var i=Math.pow,n=Math.sqrt,o=Math.sin,s=Math.cos,r=Math.PI,a=1.70158,l=1.525*a,c=2*r/3,u=2*r/4.5;e.extend(e.easing,{def:"easeOutQuad",swing:function(t){return e.easing[e.easing.def](t)},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-i(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-i(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-i(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-i(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-i(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-i(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-i(-2*e+2,5)/2},easeInSine:function(e){return 1-s(e*r/2)},easeOutSine:function(e){return o(e*r/2)},easeInOutSine:function(e){return-(s(r*e)-1)/2},easeInExpo:function(e){return 0===e?0:i(2,10*e-10)},easeOutExpo:function(e){return 1===e?1:1-i(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?i(2,20*e-10)/2:(2-i(2,-20*e+10))/2},easeInCirc:function(e){return 1-n(1-i(e,2))},easeOutCirc:function(e){return n(1-i(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-n(1-i(2*e,2)))/2:(n(1-i(-2*e+2,2))+1)/2},easeInElastic:function(e){return 0===e?0:1===e?1:-i(2,10*e-10)*o((10*e-10.75)*c)},easeOutElastic:function(e){return 0===e?0:1===e?1:i(2,-10*e)*o((10*e-.75)*c)+1},easeInOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-i(2,20*e-10)*o((20*e-11.125)*u)/2:i(2,-20*e+10)*o((20*e-11.125)*u)/2+1},easeInBack:function(e){return 2.70158*e*e*e-a*e*e},easeOutBack:function(e){return 1+2.70158*i(e-1,3)+a*i(e-1,2)},easeInOutBack:function(e){return e<.5?i(2*e,2)*(7.189819*e-l)/2:(i(2*e-2,2)*((l+1)*(2*e-2)+l)+2)/2},easeInBounce:function(e){return 1-t(1-e)},easeOutBounce:t,easeInOutBounce:function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}})}),jQuery.extend(jQuery.easing,{easeInOutMaterial:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t+i:n/4*((t-=2)*t*t+2)+i}}),jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(e){function t(e){var t=e.length,n=i.type(e);return"function"!==n&&!i.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}if(!e.jQuery){var i=function(e,t){return new i.fn.init(e,t)};i.isWindow=function(e){return null!=e&&e==e.window},i.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?o[r.call(e)]||"object":typeof e},i.isArray=Array.isArray||function(e){return"array"===i.type(e)},i.isPlainObject=function(e){var t;if(!e||"object"!==i.type(e)||e.nodeType||i.isWindow(e))return!1;try{if(e.constructor&&!s.call(e,"constructor")&&!s.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(t in e);return void 0===t||s.call(e,t)},i.each=function(e,i,n){var o=0,s=e.length,r=t(e);if(n){if(r)for(;s>o&&!1!==i.apply(e[o],n);o++);else for(o in e)if(!1===i.apply(e[o],n))break}else if(r)for(;s>o&&!1!==i.call(e[o],o,e[o]);o++);else for(o in e)if(!1===i.call(e[o],o,e[o]))break;return e},i.data=function(e,t,o){if(void 0===o){var s=(r=e[i.expando])&&n[r];if(void 0===t)return s;if(s&&t in s)return s[t]}else if(void 0!==t){var r=e[i.expando]||(e[i.expando]=++i.uuid);return n[r]=n[r]||{},n[r][t]=o,o}},i.removeData=function(e,t){var o=e[i.expando],s=o&&n[o];s&&i.each(t,function(e,t){delete s[t]})},i.extend=function(){var e,t,n,o,s,r,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[l]||{},l++),"object"!=typeof a&&"function"!==i.type(a)&&(a={}),l===c&&(a=this,l--);c>l;l++)if(null!=(s=arguments[l]))for(o in s)e=a[o],a!==(n=s[o])&&(u&&n&&(i.isPlainObject(n)||(t=i.isArray(n)))?(t?(t=!1,r=e&&i.isArray(e)?e:[]):r=e&&i.isPlainObject(e)?e:{},a[o]=i.extend(u,r,n)):void 0!==n&&(a[o]=n));return a},i.queue=function(e,n,o){if(e){n=(n||"fx")+"queue";var s=i.data(e,n);return o?(!s||i.isArray(o)?s=i.data(e,n,function(e,i){var n=i||[];return null!=e&&(t(Object(e))?function(e,t){for(var i=+t.length,n=0,o=e.length;i>n;)e[o++]=t[n++];if(i!==i)for(;void 0!==t[n];)e[o++]=t[n++];e.length=o}(n,"string"==typeof e?[e]:e):[].push.call(n,e)),n}(o)):s.push(o),s):s||[]}},i.dequeue=function(e,t){i.each(e.nodeType?[e]:e,function(e,n){t=t||"fx";var o=i.queue(n,t),s=o.shift();"inprogress"===s&&(s=o.shift()),s&&("fx"===t&&o.unshift("inprogress"),s.call(n,function(){i.dequeue(n,t)}))})},i.fn=i.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),n=this.offset(),o=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:i(e).offset();return n.top-=parseFloat(t.style.marginTop)||0,n.left-=parseFloat(t.style.marginLeft)||0,e.style&&(o.top+=parseFloat(e.style.borderTopWidth)||0,o.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-o.top,left:n.left-o.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var o={},s=o.hasOwnProperty,r=o.toString,a="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<a.length;l++)o["[object "+a[l]+"]"]=a[l].toLowerCase();i.fn.init.prototype=i.fn,e.Velocity={Utilities:i}}}(window),function(e){"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){return function(e,t,i,n){function o(e){for(var t=-1,i=e?e.length:0,n=[];++t<i;){var o=e[t];o&&n.push(o)}return n}function s(e){return m.isWrapped(e)?e=[].slice.call(e):m.isNode(e)&&(e=[e]),e}function r(e){var t=d.data(e,"velocity");return null===t?n:t}function a(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,i,n,o){function s(e,t){return 1-3*t+3*e}function r(e,t){return 3*t-6*e}function a(e){return 3*e}function l(e,t,i){return((s(t,i)*e+r(t,i))*e+a(t))*e}function c(e,t,i){return 3*s(t,i)*e*e+2*r(t,i)*e+a(t)}function u(t,i){for(var o=0;m>o;++o){var s=c(i,e,n);if(0===s)return i;i-=(l(i,e,n)-t)/s}return i}function h(){for(var t=0;b>t;++t)C[t]=l(t*x,e,n)}function d(t,i,o){var s,r,a=0;do{(s=l(r=i+(o-i)/2,e,n)-t)>0?o=r:i=r}while(Math.abs(s)>v&&++a<y);return r}function p(t){for(var i=0,o=1,s=b-1;o!=s&&C[o]<=t;++o)i+=x;var r=i+(t-C[--o])/(C[o+1]-C[o])*x,a=c(r,e,n);return a>=g?u(t,r):0==a?r:d(t,i,i+x)}function f(){_=!0,(e!=i||n!=o)&&h()}var m=4,g=.001,v=1e-7,y=10,b=11,x=1/(b-1),w="Float32Array"in t;if(4!==arguments.length)return!1;for(var k=0;4>k;++k)if("number"!=typeof arguments[k]||isNaN(arguments[k])||!isFinite(arguments[k]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var C=w?new Float32Array(b):new Array(b),_=!1,T=function(t){return _||f(),e===i&&n===o?t:0===t?0:1===t?1:l(p(t),i,o)};T.getControlPoints=function(){return[{x:e,y:i},{x:n,y:o}]};var S="generateBezier("+[e,i,n,o]+")";return T.toString=function(){return S},T}function c(e,t){var i=e;return m.isString(e)?b.Easings[e]||(i=!1):i=m.isArray(e)&&1===e.length?a.apply(null,e):m.isArray(e)&&2===e.length?x.apply(null,e.concat([t])):!(!m.isArray(e)||4!==e.length)&&l.apply(null,e),!1===i&&(i=b.Easings[b.defaults.easing]?b.defaults.easing:y),i}function u(e){if(e){var t=(new Date).getTime(),i=b.State.calls.length;i>1e4&&(b.State.calls=o(b.State.calls));for(var s=0;i>s;s++)if(b.State.calls[s]){var a=b.State.calls[s],l=a[0],c=a[2],p=a[3],f=!!p,g=null;p||(p=b.State.calls[s][3]=t-16);for(var v=Math.min((t-p)/c.duration,1),y=0,x=l.length;x>y;y++){var k=l[y],_=k.element;if(r(_)){var T=!1;if(c.display!==n&&null!==c.display&&"none"!==c.display){if("flex"===c.display){var S=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];d.each(S,function(e,t){w.setPropertyValue(_,"display",t)})}w.setPropertyValue(_,"display",c.display)}c.visibility!==n&&"hidden"!==c.visibility&&w.setPropertyValue(_,"visibility",c.visibility);for(var P in k)if("element"!==P){var E,M=k[P],A=m.isString(M.easing)?b.Easings[M.easing]:M.easing;if(1===v)E=M.endValue;else{var O=M.endValue-M.startValue;if(E=M.startValue+O*A(v,c,O),!f&&E===M.currentValue)continue}if(M.currentValue=E,"tween"===P)g=E;else{if(w.Hooks.registered[P]){var D=w.Hooks.getRoot(P),z=r(_).rootPropertyValueCache[D];z&&(M.rootPropertyValue=z)}var N=w.setPropertyValue(_,P,M.currentValue+(0===parseFloat(E)?"":M.unitType),M.rootPropertyValue,M.scrollData);w.Hooks.registered[P]&&(r(_).rootPropertyValueCache[D]=w.Normalizations.registered[D]?w.Normalizations.registered[D]("extract",null,N[1]):N[1]),"transform"===N[0]&&(T=!0)}}c.mobileHA&&r(_).transformCache.translate3d===n&&(r(_).transformCache.translate3d="(0px, 0px, 0px)",T=!0),T&&w.flushTransformCache(_)}}c.display!==n&&"none"!==c.display&&(b.State.calls[s][2].display=!1),c.visibility!==n&&"hidden"!==c.visibility&&(b.State.calls[s][2].visibility=!1),c.progress&&c.progress.call(a[1],a[1],v,Math.max(0,p+c.duration-t),p,g),1===v&&h(s)}}b.State.isTicking&&C(u)}function h(e,t){if(!b.State.calls[e])return!1;for(var i=b.State.calls[e][0],o=b.State.calls[e][1],s=b.State.calls[e][2],a=b.State.calls[e][4],l=!1,c=0,u=i.length;u>c;c++){var h=i[c].element;if(t||s.loop||("none"===s.display&&w.setPropertyValue(h,"display",s.display),"hidden"===s.visibility&&w.setPropertyValue(h,"visibility",s.visibility)),!0!==s.loop&&(d.queue(h)[1]===n||!/\.velocityQueueEntryFlag/i.test(d.queue(h)[1]))&&r(h)){r(h).isAnimating=!1,r(h).rootPropertyValueCache={};var p=!1;d.each(w.Lists.transforms3D,function(e,t){var i=/^scale/.test(t)?1:0,o=r(h).transformCache[t];r(h).transformCache[t]!==n&&new RegExp("^\\("+i+"[^.]").test(o)&&(p=!0,delete r(h).transformCache[t])}),s.mobileHA&&(p=!0,delete r(h).transformCache.translate3d),p&&w.flushTransformCache(h),w.Values.removeClass(h,"velocity-animating")}if(!t&&s.complete&&!s.loop&&c===u-1)try{s.complete.call(o,o)}catch(e){setTimeout(function(){throw e},1)}a&&!0!==s.loop&&a(o),r(h)&&!0===s.loop&&!t&&(d.each(r(h).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),b(h,"reverse",{loop:!0,delay:s.delay})),!1!==s.queue&&d.dequeue(h,s.queue)}b.State.calls[e]=!1;for(var f=0,m=b.State.calls.length;m>f;f++)if(!1!==b.State.calls[f]){l=!0;break}!1===l&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var d,p=function(){if(i.documentMode)return i.documentMode;for(var e=7;e>4;e--){var t=i.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return n}(),f=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var i,n=(new Date).getTime();return i=Math.max(0,16-(n-e)),e=n+i,setTimeout(function(){t(n+i)},i)}}(),m={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==n&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},g=!1;if(e.fn&&e.fn.jquery?(d=e,g=!0):d=t.Velocity.Utilities,8>=p&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=p)){var v=400,y="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:v,easing:y,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){d.data(e,"velocity",{isSVG:m.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==n?(b.State.scrollAnchor=t,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var x=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,i,n){var o={x:t.x+n.dx*i,v:t.v+n.dv*i,tension:t.tension,friction:t.friction};return{dx:o.v,dv:e(o)}}function i(i,n){var o={dx:i.v,dv:e(i)},s=t(i,.5*n,o),r=t(i,.5*n,s),a=t(i,n,r),l=1/6*(o.dx+2*(s.dx+r.dx)+a.dx),c=1/6*(o.dv+2*(s.dv+r.dv)+a.dv);return i.x=i.x+l*n,i.v=i.v+c*n,i}return function e(t,n,o){var s,r,a,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0;for(t=parseFloat(t)||500,n=parseFloat(n)||20,o=o||null,l.tension=t,l.friction=n,(s=null!==o)?(u=e(t,n),r=u/o*.016):r=.016;a=i(a||l,r),c.push(1+a.x),u+=16,Math.abs(a.x)>1e-4&&Math.abs(a.v)>1e-4;);return s?function(e){return c[e*(c.length-1)|0]}:u}}();b.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){b.Easings[t[0]]=l.apply(null,t[1])});var w=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(s=0;s<w.Lists.colors.length;s++){var e="color"===w.Lists.colors[s]?"0 0 0 1":"255 255 255 1";w.Hooks.templates[w.Lists.colors[s]]=["Red Green Blue Alpha",e]}var t,i,n;if(p)for(t in w.Hooks.templates){n=(i=w.Hooks.templates[t])[0].split(" ");var o=i[1].match(w.RegEx.valueSplit);"Color"===n[0]&&(n.push(n.shift()),o.push(o.shift()),w.Hooks.templates[t]=[n.join(" "),o.join(" ")])}for(t in w.Hooks.templates){n=(i=w.Hooks.templates[t])[0].split(" ");for(var s in n){var r=t+n[s],a=s;w.Hooks.registered[r]=[t,a]}}},getRoot:function(e){var t=w.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return w.RegEx.valueUnwrap.test(t)&&(t=t.match(w.RegEx.valueUnwrap)[1]),w.Values.isCSSNullValue(t)&&(t=w.Hooks.templates[e][1]),t},extractValue:function(e,t){var i=w.Hooks.registered[e];if(i){var n=i[0],o=i[1];return(t=w.Hooks.cleanRootPropertyValue(n,t)).toString().match(w.RegEx.valueSplit)[o]}return t},injectValue:function(e,t,i){var n=w.Hooks.registered[e];if(n){var o,s=n[0],r=n[1];return i=w.Hooks.cleanRootPropertyValue(s,i),o=i.toString().match(w.RegEx.valueSplit),o[r]=t,o.join(" ")}return i}},Normalizations:{registered:{clip:function(e,t,i){switch(e){case"name":return"clip";case"extract":var n;return w.RegEx.wrappedValueAlreadyExtracted.test(i)?n=i:(n=i.toString().match(w.RegEx.valueUnwrap),n=n?n[1].replace(/,(\s+)?/g," "):i),n;case"inject":return"rect("+i+")"}},blur:function(e,t,i){switch(e){case"name":return b.State.isFirefox?"filter":"-webkit-filter";case"extract":var n=parseFloat(i);if(!n&&0!==n){var o=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=o?o[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(e,t,i){if(8>=p)switch(e){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);return i=n?n[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return i}}},register:function(){for(9>=p||b.State.isGingerbread||(w.Lists.transformsBase=w.Lists.transformsBase.concat(w.Lists.transforms3D)),e=0;e<w.Lists.transformsBase.length;e++)!function(){var t=w.Lists.transformsBase[e];w.Normalizations.registered[t]=function(e,i,o){switch(e){case"name":return"transform";case"extract":return r(i)===n||r(i).transformCache[t]===n?/^scale/i.test(t)?1:0:r(i).transformCache[t].replace(/[()]/g,"");case"inject":var s=!1;switch(t.substr(0,t.length-1)){case"translate":s=!/(%|px|em|rem|vw|vh|\d)$/i.test(o);break;case"scal":case"scale":b.State.isAndroid&&r(i).transformCache[t]===n&&1>o&&(o=1),s=!/(\d)$/i.test(o);break;case"skew":s=!/(deg|\d)$/i.test(o);break;case"rotate":s=!/(deg|\d)$/i.test(o)}return s||(r(i).transformCache[t]="("+o+")"),r(i).transformCache[t]}}}();for(var e=0;e<w.Lists.colors.length;e++)!function(){var t=w.Lists.colors[e];w.Normalizations.registered[t]=function(e,i,o){switch(e){case"name":return t;case"extract":var s;if(w.RegEx.wrappedValueAlreadyExtracted.test(o))s=o;else{var r,a={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(o)?r=a[o]!==n?a[o]:a.black:w.RegEx.isHex.test(o)?r="rgb("+w.Values.hexToRgb(o).join(" ")+")":/^rgba?\(/i.test(o)||(r=a.black),s=(r||o).toString().match(w.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=p||3!==s.split(" ").length||(s+=" 1"),s;case"inject":return 8>=p?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(8>=p?"rgb":"rgba")+"("+o.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(p||b.State.isAndroid&&!b.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(b.State.prefixMatches[e])return[b.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],i=0,n=t.length;n>i;i++){var o;if(o=0===i?e:t[i]+e.replace(/^\w/,function(e){return e.toUpperCase()}),m.isString(b.State.prefixElement.style[o]))return b.State.prefixMatches[e]=o,[o,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(i,function(e,t,i,n){return t+t+i+i+n+n}),t=n.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,i,o,s){function a(e,i){function o(){c&&w.setPropertyValue(e,"display","none")}var l=0;if(8>=p)l=d.css(e,i);else{var c=!1;if(/^(width|height)$/.test(i)&&0===w.getPropertyValue(e,"display")&&(c=!0,w.setPropertyValue(e,"display",w.Values.getDisplayType(e))),!s){if("height"===i&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var u=e.offsetHeight-(parseFloat(w.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(w.getPropertyValue(e,"paddingBottom"))||0);return o(),u}if("width"===i&&"border-box"!==w.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var h=e.offsetWidth-(parseFloat(w.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(w.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(w.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(w.getPropertyValue(e,"paddingRight"))||0);return o(),h}}var f;f=r(e)===n?t.getComputedStyle(e,null):r(e).computedStyle?r(e).computedStyle:r(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===i&&(i="borderTopColor"),(""===(l=9===p&&"filter"===i?f.getPropertyValue(i):f[i])||null===l)&&(l=e.style[i]),o()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var m=a(e,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(i))&&(l=d(e).position()[i]+"px")}return l}var l;if(w.Hooks.registered[i]){var c=i,u=w.Hooks.getRoot(c);o===n&&(o=w.getPropertyValue(e,w.Names.prefixCheck(u)[0])),w.Normalizations.registered[u]&&(o=w.Normalizations.registered[u]("extract",e,o)),l=w.Hooks.extractValue(c,o)}else if(w.Normalizations.registered[i]){var h,f;"transform"!==(h=w.Normalizations.registered[i]("name",e))&&(f=a(e,w.Names.prefixCheck(h)[0]),w.Values.isCSSNullValue(f)&&w.Hooks.templates[i]&&(f=w.Hooks.templates[i][1])),l=w.Normalizations.registered[i]("extract",e,f)}if(!/^[\d-]/.test(l))if(r(e)&&r(e).isSVG&&w.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=e.getBBox()[i]}catch(e){l=0}else l=e.getAttribute(i);else l=a(e,w.Names.prefixCheck(i)[0]);return w.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(e,i,n,o,s){var a=i;if("scroll"===i)s.container?s.container["scroll"+s.direction]=n:"Left"===s.direction?t.scrollTo(n,s.alternateValue):t.scrollTo(s.alternateValue,n);else if(w.Normalizations.registered[i]&&"transform"===w.Normalizations.registered[i]("name",e))w.Normalizations.registered[i]("inject",e,n),a="transform",n=r(e).transformCache[i];else{if(w.Hooks.registered[i]){var l=i,c=w.Hooks.getRoot(i);o=o||w.getPropertyValue(e,c),n=w.Hooks.injectValue(l,n,o),i=c}if(w.Normalizations.registered[i]&&(n=w.Normalizations.registered[i]("inject",e,n),i=w.Normalizations.registered[i]("name",e)),a=w.Names.prefixCheck(i)[0],8>=p)try{e.style[a]=n}catch(e){b.debug&&console.log("Browser does not support ["+n+"] for ["+a+"]")}else r(e)&&r(e).isSVG&&w.Names.SVGAttribute(i)?e.setAttribute(i,n):e.style[a]=n;b.debug>=2&&console.log("Set "+i+" ("+a+"): "+n)}return[a,n]},flushTransformCache:function(e){function t(t){return parseFloat(w.getPropertyValue(e,t))}var i="";if((p||b.State.isAndroid&&!b.State.isChrome)&&r(e).isSVG){var n={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};d.each(r(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),n[e]&&(i+=e+"("+n[e].join(" ")+") ",delete n[e])})}else{var o,s;d.each(r(e).transformCache,function(t){return o=r(e).transformCache[t],"transformPerspective"===t?(s=o,!0):(9===p&&"rotateZ"===t&&(t="rotate"),void(i+=t+o+" "))}),s&&(i="perspective"+s+" "+i)}w.setPropertyValue(e,"transform",i)}};w.Hooks.register(),w.Normalizations.register(),b.hook=function(e,t,i){var o=n;return e=s(e),d.each(e,function(e,s){if(r(s)===n&&b.init(s),i===n)o===n&&(o=b.CSS.getPropertyValue(s,t));else{var a=b.CSS.setPropertyValue(s,t,i);"transform"===a[0]&&b.CSS.flushTransformCache(s),o=a}}),o};var k=function(){function e(){return a?S.promise||null:l}function o(){function e(e){function h(e,t){var i=n,o=n,r=n;return m.isArray(e)?(i=e[0],!m.isArray(e[1])&&/^[\d-]/.test(e[1])||m.isFunction(e[1])||w.RegEx.isHex.test(e[1])?r=e[1]:(m.isString(e[1])&&!w.RegEx.isHex.test(e[1])||m.isArray(e[1]))&&(o=t?e[1]:c(e[1],a.duration),e[2]!==n&&(r=e[2]))):i=e,t||(o=o||a.easing),m.isFunction(i)&&(i=i.call(s,_,C)),m.isFunction(r)&&(r=r.call(s,_,C)),[i||0,o,r]}function p(e,t){var i,n;return n=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return i=e,""}),i||(i=w.Values.getUnitType(e)),[n,i]}if(a.begin&&0===_)try{a.begin.call(f,f)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===P){var v,x,k,T=/^x$/i.test(a.axis)?"Left":"Top",E=parseFloat(a.offset)||0;a.container?m.isWrapped(a.container)||m.isNode(a.container)?(a.container=a.container[0]||a.container,v=a.container["scroll"+T],k=v+d(s).position()[T.toLowerCase()]+E):a.container=null:(v=b.State.scrollAnchor[b.State["scrollProperty"+T]],x=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===T?"Top":"Left")]],k=d(s).offset()[T.toLowerCase()]+E),l={scroll:{rootPropertyValue:!1,startValue:v,currentValue:v,endValue:k,unitType:"",easing:a.easing,scrollData:{container:a.container,direction:T,alternateValue:x}},element:s},b.debug&&console.log("tweensContainer (scroll): ",l.scroll,s)}else if("reverse"===P){if(!r(s).tweensContainer)return void d.dequeue(s,a.queue);"none"===r(s).opts.display&&(r(s).opts.display="auto"),"hidden"===r(s).opts.visibility&&(r(s).opts.visibility="visible"),r(s).opts.loop=!1,r(s).opts.begin=null,r(s).opts.complete=null,y.easing||delete a.easing,y.duration||delete a.duration,a=d.extend({},r(s).opts,a),O=d.extend(!0,{},r(s).tweensContainer);for(var M in O)if("element"!==M){var A=O[M].startValue;O[M].startValue=O[M].currentValue=O[M].endValue,O[M].endValue=A,m.isEmptyObject(y)||(O[M].easing=a.easing),b.debug&&console.log("reverse tweensContainer ("+M+"): "+JSON.stringify(O[M]),s)}l=O}else if("start"===P){var O;r(s).tweensContainer&&!0===r(s).isAnimating&&(O=r(s).tweensContainer),d.each(g,function(e,t){if(RegExp("^"+w.Lists.colors.join("$|^")+"$").test(e)){var i=h(t,!0),o=i[0],s=i[1],r=i[2];if(w.RegEx.isHex.test(o)){for(var a=["Red","Green","Blue"],l=w.Values.hexToRgb(o),c=r?w.Values.hexToRgb(r):n,u=0;u<a.length;u++){var d=[l[u]];s&&d.push(s),c!==n&&d.push(c[u]),g[e+a[u]]=d}delete g[e]}}});for(var N in g){var H=h(g[N]),I=H[0],$=H[1],W=H[2];N=w.Names.camelCase(N);var L=w.Hooks.getRoot(N),q=!1;if(r(s).isSVG||"tween"===L||!1!==w.Names.prefixCheck(L)[1]||w.Normalizations.registered[L]!==n){(a.display!==n&&null!==a.display&&"none"!==a.display||a.visibility!==n&&"hidden"!==a.visibility)&&/opacity|filter/.test(N)&&!W&&0!==I&&(W=0),a._cacheValues&&O&&O[N]?(W===n&&(W=O[N].endValue+O[N].unitType),q=r(s).rootPropertyValueCache[L]):w.Hooks.registered[N]?W===n?(q=w.getPropertyValue(s,L),W=w.getPropertyValue(s,N,q)):q=w.Hooks.templates[L][1]:W===n&&(W=w.getPropertyValue(s,N));var j,R,F,V=!1;if(j=p(N,W),W=j[0],F=j[1],j=p(N,I),I=j[0].replace(/^([+-\/*])=/,function(e,t){return V=t,""}),R=j[1],W=parseFloat(W)||0,I=parseFloat(I)||0,"%"===R&&(/^(fontSize|lineHeight)$/.test(N)?(I/=100,R="em"):/^scale/.test(N)?(I/=100,R=""):/(Red|Green|Blue)$/i.test(N)&&(I=I/100*255,R="")),/[\/*]/.test(V))R=F;else if(F!==R&&0!==W)if(0===I)R=F;else{o=o||function(){var e={myParent:s.parentNode||i.body,position:w.getPropertyValue(s,"position"),fontSize:w.getPropertyValue(s,"fontSize")},n=e.position===D.lastPosition&&e.myParent===D.lastParent,o=e.fontSize===D.lastFontSize;D.lastParent=e.myParent,D.lastPosition=e.position,D.lastFontSize=e.fontSize;var a=100,l={};if(o&&n)l.emToPx=D.lastEmToPx,l.percentToPxWidth=D.lastPercentToPxWidth,l.percentToPxHeight=D.lastPercentToPxHeight;else{var c=r(s).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");b.init(c),e.myParent.appendChild(c),d.each(["overflow","overflowX","overflowY"],function(e,t){b.CSS.setPropertyValue(c,t,"hidden")}),b.CSS.setPropertyValue(c,"position",e.position),b.CSS.setPropertyValue(c,"fontSize",e.fontSize),b.CSS.setPropertyValue(c,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){b.CSS.setPropertyValue(c,t,a+"%")}),b.CSS.setPropertyValue(c,"paddingLeft",a+"em"),l.percentToPxWidth=D.lastPercentToPxWidth=(parseFloat(w.getPropertyValue(c,"width",null,!0))||1)/a,l.percentToPxHeight=D.lastPercentToPxHeight=(parseFloat(w.getPropertyValue(c,"height",null,!0))||1)/a,l.emToPx=D.lastEmToPx=(parseFloat(w.getPropertyValue(c,"paddingLeft"))||1)/a,e.myParent.removeChild(c)}return null===D.remToPx&&(D.remToPx=parseFloat(w.getPropertyValue(i.body,"fontSize"))||16),null===D.vwToPx&&(D.vwToPx=parseFloat(t.innerWidth)/100,D.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=D.remToPx,l.vwToPx=D.vwToPx,l.vhToPx=D.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),s),l}();var X=/margin|padding|left|right|width|text|word|letter/i.test(N)||/X$/.test(N)||"x"===N?"x":"y";switch(F){case"%":W*="x"===X?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:W*=o[F+"ToPx"]}switch(R){case"%":W*=1/("x"===X?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:W*=1/o[R+"ToPx"]}}switch(V){case"+":I=W+I;break;case"-":I=W-I;break;case"*":I*=W;break;case"/":I=W/I}l[N]={rootPropertyValue:q,startValue:W,currentValue:W,endValue:I,unitType:R,easing:$},b.debug&&console.log("tweensContainer ("+N+"): "+JSON.stringify(l[N]),s)}else b.debug&&console.log("Skipping ["+L+"] due to a lack of browser support.")}l.element=s}l.element&&(w.Values.addClass(s,"velocity-animating"),z.push(l),""===a.queue&&(r(s).tweensContainer=l,r(s).opts=a),r(s).isAnimating=!0,_===C-1?(b.State.calls.push([z,f,a,null,S.resolver]),!1===b.State.isTicking&&(b.State.isTicking=!0,u())):_++)}var o,s=this,a=d.extend({},b.defaults,y),l={};switch(r(s)===n&&b.init(s),parseFloat(a.delay)&&!1!==a.queue&&d.queue(s,a.queue,function(e){b.velocityQueueEntryFlag=!0,r(s).delayTimer={setTimeout:setTimeout(e,parseFloat(a.delay)),next:e}}),a.duration.toString().toLowerCase()){case"fast":a.duration=200;break;case"normal":a.duration=v;break;case"slow":a.duration=600;break;default:a.duration=parseFloat(a.duration)||1}!1!==b.mock&&(!0===b.mock?a.duration=a.delay=1:(a.duration*=parseFloat(b.mock)||1,a.delay*=parseFloat(b.mock)||1)),a.easing=c(a.easing,a.duration),a.begin&&!m.isFunction(a.begin)&&(a.begin=null),a.progress&&!m.isFunction(a.progress)&&(a.progress=null),a.complete&&!m.isFunction(a.complete)&&(a.complete=null),a.display!==n&&null!==a.display&&(a.display=a.display.toString().toLowerCase(),"auto"===a.display&&(a.display=b.CSS.Values.getDisplayType(s))),a.visibility!==n&&null!==a.visibility&&(a.visibility=a.visibility.toString().toLowerCase()),a.mobileHA=a.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,!1===a.queue?a.delay?setTimeout(e,a.delay):e():d.queue(s,a.queue,function(t,i){return!0===i?(S.promise&&S.resolver(f),!0):(b.velocityQueueEntryFlag=!0,void e(t))}),""!==a.queue&&"fx"!==a.queue||"inprogress"===d.queue(s)[0]||d.dequeue(s)}var a,l,p,f,g,y,x=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||m.isString(arguments[0].properties));if(m.isWrapped(this)?(a=!1,p=0,f=this,l=this):(a=!0,p=1,f=x?arguments[0].elements||arguments[0].e:arguments[0]),f=s(f)){x?(g=arguments[0].properties||arguments[0].p,y=arguments[0].options||arguments[0].o):(g=arguments[p],y=arguments[p+1]);var C=f.length,_=0;if(!/^(stop|finish)$/i.test(g)&&!d.isPlainObject(y)){y={};for(var T=p+1;T<arguments.length;T++)m.isArray(arguments[T])||!/^(fast|normal|slow)$/i.test(arguments[T])&&!/^\d/.test(arguments[T])?m.isString(arguments[T])||m.isArray(arguments[T])?y.easing=arguments[T]:m.isFunction(arguments[T])&&(y.complete=arguments[T]):y.duration=arguments[T]}var S={promise:null,resolver:null,rejecter:null};a&&b.Promise&&(S.promise=new b.Promise(function(e,t){S.resolver=e,S.rejecter=t}));var P;switch(g){case"scroll":P="scroll";break;case"reverse":P="reverse";break;case"finish":case"stop":d.each(f,function(e,t){r(t)&&r(t).delayTimer&&(clearTimeout(r(t).delayTimer.setTimeout),r(t).delayTimer.next&&r(t).delayTimer.next(),delete r(t).delayTimer)});var E=[];return d.each(b.State.calls,function(e,t){t&&d.each(t[1],function(i,o){var s=y===n?"":y;return!0!==s&&t[2].queue!==s&&(y!==n||!1!==t[2].queue)||void d.each(f,function(i,n){n===o&&((!0===y||m.isString(y))&&(d.each(d.queue(n,m.isString(y)?y:""),function(e,t){m.isFunction(t)&&t(null,!0)}),d.queue(n,m.isString(y)?y:"",[])),"stop"===g?(r(n)&&r(n).tweensContainer&&!1!==s&&d.each(r(n).tweensContainer,function(e,t){t.endValue=t.currentValue}),E.push(e)):"finish"===g&&(t[2].duration=1))})})}),"stop"===g&&(d.each(E,function(e,t){h(t,!0)}),S.promise&&S.resolver(f)),e();default:if(!d.isPlainObject(g)||m.isEmptyObject(g)){if(m.isString(g)&&b.Redirects[g]){var M=(H=d.extend({},y)).duration,A=H.delay||0;return!0===H.backwards&&(f=d.extend(!0,[],f).reverse()),d.each(f,function(e,t){parseFloat(H.stagger)?H.delay=A+parseFloat(H.stagger)*e:m.isFunction(H.stagger)&&(H.delay=A+H.stagger.call(t,e,C)),H.drag&&(H.duration=parseFloat(M)||(/^(callout|transition)/.test(g)?1e3:v),H.duration=Math.max(H.duration*(H.backwards?1-e/C:(e+1)/C),.75*H.duration,200)),b.Redirects[g].call(t,t,H||{},e,C,f,S.promise?S:n)}),e()}var O="Velocity: First argument ("+g+") was not a property map, a known action, or a registered redirect. Aborting.";return S.promise?S.rejecter(new Error(O)):console.log(O),e()}P="start"}var D={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},z=[];d.each(f,function(e,t){m.isNode(t)&&o.call(t)});var N,H=d.extend({},b.defaults,y);if(H.loop=parseInt(H.loop),N=2*H.loop-1,H.loop)for(var I=0;N>I;I++){var $={delay:H.delay,progress:H.progress};I===N-1&&($.display=H.display,$.visibility=H.visibility,$.complete=H.complete),k(f,"reverse",$)}return e()}};(b=d.extend(k,b)).animate=k;var C=t.requestAnimationFrame||f;return b.State.isMobile||i.hidden===n||i.addEventListener("visibilitychange",function(){i.hidden?(C=function(e){return setTimeout(function(){e(!0)},16)},u()):C=t.requestAnimationFrame||f}),e.Velocity=b,e!==t&&(e.fn.velocity=k,e.fn.velocity.defaults=b.defaults),d.each(["Down","Up"],function(e,t){b.Redirects["slide"+t]=function(e,i,o,s,r,a){var l=d.extend({},i),c=l.begin,u=l.complete,h={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},p={};l.display===n&&(l.display="Down"===t?"inline"===b.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){c&&c.call(r,r);for(var i in h){p[i]=e.style[i];var n=b.CSS.getPropertyValue(e,i);h[i]="Down"===t?[n,0]:[0,n]}p.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in p)e.style[t]=p[t];u&&u.call(r,r),a&&a.resolver(r)},b(e,h,l)}}),d.each(["In","Out"],function(e,t){b.Redirects["fade"+t]=function(e,i,o,s,r,a){var l=d.extend({},i),c={opacity:"In"===t?1:0},u=l.complete;l.complete=o!==s-1?l.begin=null:function(){u&&u.call(r,r),a&&a.resolver(r)},l.display===n&&(l.display="In"===t?"auto":"none"),b(this,c,l)}}),b}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,document)})),function(e,t,i,n){"use strict";function o(e,t,i){return setTimeout(u(e,i),t)}function s(e,t,i){return!!Array.isArray(e)&&(r(e,i[t],i),!0)}function r(e,t,i){var o;if(e)if(e.forEach)e.forEach(t,i);else if(e.length!==n)for(o=0;o<e.length;)t.call(i,e[o],o,e),o++;else for(o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e)}function a(e,t,i){for(var o=Object.keys(t),s=0;s<o.length;)(!i||i&&e[o[s]]===n)&&(e[o[s]]=t[o[s]]),s++;return e}function l(e,t){return a(e,t,!0)}function c(e,t,i){var n,o=t.prototype;(n=e.prototype=Object.create(o)).constructor=e,n._super=o,i&&a(n,i)}function u(e,t){return function(){return e.apply(t,arguments)}}function h(e,t){return typeof e==ue?e.apply(t?t[0]||n:n,t):e}function d(e,t){return e===n?t:e}function p(e,t,i){r(v(t),function(t){e.addEventListener(t,i,!1)})}function f(e,t,i){r(v(t),function(t){e.removeEventListener(t,i,!1)})}function m(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function g(e,t){return e.indexOf(t)>-1}function v(e){return e.trim().split(/\s+/g)}function y(e,t,i){if(e.indexOf&&!i)return e.indexOf(t);for(var n=0;n<e.length;){if(i&&e[n][i]==t||!i&&e[n]===t)return n;n++}return-1}function b(e){return Array.prototype.slice.call(e,0)}function x(e,t,i){for(var n=[],o=[],s=0;s<e.length;){var r=t?e[s][t]:e[s];y(o,r)<0&&n.push(e[s]),o[s]=r,s++}return i&&(n=t?n.sort(function(e,i){return e[t]>i[t]}):n.sort()),n}function w(e,t){for(var i,o,s=t[0].toUpperCase()+t.slice(1),r=0;r<le.length;){if(i=le[r],(o=i?i+s:t)in e)return o;r++}return n}function k(){return fe++}function C(e){var t=e.ownerDocument;return t.defaultView||t.parentWindow}function _(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){h(e.options.enable,[e])&&i.handler(t)},this.init()}function T(e){return new(e.options.inputClass||(ve?L:ye?R:ge?V:W))(e,S)}function S(e,t,i){var n=i.pointers.length,o=i.changedPointers.length,s=t&ke&&0==n-o,r=t&(_e|Te)&&0==n-o;i.isFirst=!!s,i.isFinal=!!r,s&&(e.session={}),i.eventType=t,P(e,i),e.emit("hammer.input",i),e.recognize(i),e.session.prevInput=i}function P(e,t){var i=e.session,n=t.pointers,o=n.length;i.firstInput||(i.firstInput=A(t)),o>1&&!i.firstMultiple?i.firstMultiple=A(t):1===o&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,l=t.center=O(n);t.timeStamp=pe(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=H(a,l),t.distance=N(a,l),E(i,t),t.offsetDirection=z(t.deltaX,t.deltaY),t.scale=r?$(r.pointers,n):1,t.rotation=r?I(r.pointers,n):0,M(i,t);var c=e.element;m(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function E(e,t){var i=t.center,n=e.offsetDelta||{},o=e.prevDelta||{},s=e.prevInput||{};(t.eventType===ke||s.eventType===_e)&&(o=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=e.offsetDelta={x:i.x,y:i.y}),t.deltaX=o.x+(i.x-n.x),t.deltaY=o.y+(i.y-n.y)}function M(e,t){var i,o,s,r,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=Te&&(l>we||a.velocity===n)){var c=a.deltaX-t.deltaX,u=a.deltaY-t.deltaY,h=D(l,c,u);o=h.x,s=h.y,i=de(h.x)>de(h.y)?h.x:h.y,r=z(c,u),e.lastInterval=t}else i=a.velocity,o=a.velocityX,s=a.velocityY,r=a.direction;t.velocity=i,t.velocityX=o,t.velocityY=s,t.direction=r}function A(e){for(var t=[],i=0;i<e.pointers.length;)t[i]={clientX:he(e.pointers[i].clientX),clientY:he(e.pointers[i].clientY)},i++;return{timeStamp:pe(),pointers:t,center:O(t),deltaX:e.deltaX,deltaY:e.deltaY}}function O(e){var t=e.length;if(1===t)return{x:he(e[0].clientX),y:he(e[0].clientY)};for(var i=0,n=0,o=0;t>o;)i+=e[o].clientX,n+=e[o].clientY,o++;return{x:he(i/t),y:he(n/t)}}function D(e,t,i){return{x:t/e||0,y:i/e||0}}function z(e,t){return e===t?Se:de(e)>=de(t)?e>0?Pe:Ee:t>0?Me:Ae}function N(e,t,i){i||(i=Ne);var n=t[i[0]]-e[i[0]],o=t[i[1]]-e[i[1]];return Math.sqrt(n*n+o*o)}function H(e,t,i){i||(i=Ne);var n=t[i[0]]-e[i[0]],o=t[i[1]]-e[i[1]];return 180*Math.atan2(o,n)/Math.PI}function I(e,t){return H(t[1],t[0],He)-H(e[1],e[0],He)}function $(e,t){return N(t[0],t[1],He)/N(e[0],e[1],He)}function W(){this.evEl=$e,this.evWin=We,this.allow=!0,this.pressed=!1,_.apply(this,arguments)}function L(){this.evEl=je,this.evWin=Re,_.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=Ve,this.evWin=Xe,this.started=!1,_.apply(this,arguments)}function j(e,t){var i=b(e.touches),n=b(e.changedTouches);return t&(_e|Te)&&(i=x(i.concat(n),"identifier",!0)),[i,n]}function R(){this.evTarget=Ye,this.targetIds={},_.apply(this,arguments)}function F(e,t){var i=b(e.touches),n=this.targetIds;if(t&(ke|Ce)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,s,r=b(e.changedTouches),a=[],l=this.target;if(s=i.filter(function(e){return m(e.target,l)}),t===ke)for(o=0;o<s.length;)n[s[o].identifier]=!0,o++;for(o=0;o<r.length;)n[r[o].identifier]&&a.push(r[o]),t&(_e|Te)&&delete n[r[o].identifier],o++;return a.length?[x(s.concat(a),"identifier",!0),a]:void 0}function V(){_.apply(this,arguments);var e=u(this.handler,this);this.touch=new R(this.manager,e),this.mouse=new W(this.manager,e)}function X(e,t){this.manager=e,this.set(t)}function B(e){if(g(e,Je))return Je;var t=g(e,et),i=g(e,tt);return t&&i?et+" "+tt:t||i?t?et:tt:g(e,Ze)?Ze:Ke}function Y(e){this.id=k(),this.manager=null,this.options=l(e||{},this.defaults),this.options.enable=d(this.options.enable,!0),this.state=it,this.simultaneous={},this.requireFail=[]}function Q(e){return e&at?"cancel":e&st?"end":e&ot?"move":e&nt?"start":""}function U(e){return e==Ae?"down":e==Me?"up":e==Pe?"left":e==Ee?"right":""}function G(e,t){var i=t.manager;return i?i.get(e):e}function K(){Y.apply(this,arguments)}function Z(){K.apply(this,arguments),this.pX=null,this.pY=null}function J(){K.apply(this,arguments)}function ee(){Y.apply(this,arguments),this._timer=null,this._input=null}function te(){K.apply(this,arguments)}function ie(){K.apply(this,arguments)}function ne(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function oe(e,t){return t=t||{},t.recognizers=d(t.recognizers,oe.defaults.preset),new se(e,t)}function se(e,t){t=t||{},this.options=l(t,oe.defaults),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.element=e,this.input=T(this),this.touchAction=new X(this,this.options.touchAction),re(this,!0),r(t.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function re(e,t){var i=e.element;r(e.options.cssProps,function(e,n){i.style[w(i.style,n)]=t?e:""})}function ae(e,i){var n=t.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var le=["","webkit","moz","MS","ms","o"],ce=t.createElement("div"),ue="function",he=Math.round,de=Math.abs,pe=Date.now,fe=1,me=/mobile|tablet|ip(ad|hone|od)|android/i,ge="ontouchstart"in e,ve=w(e,"PointerEvent")!==n,ye=ge&&me.test(navigator.userAgent),be="touch",xe="mouse",we=25,ke=1,Ce=2,_e=4,Te=8,Se=1,Pe=2,Ee=4,Me=8,Ae=16,Oe=Pe|Ee,De=Me|Ae,ze=Oe|De,Ne=["x","y"],He=["clientX","clientY"];_.prototype={handler:function(){},init:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(C(this.element),this.evWin,this.domHandler)}};var Ie={mousedown:ke,mousemove:Ce,mouseup:_e},$e="mousedown",We="mousemove mouseup";c(W,_,{handler:function(e){var t=Ie[e.type];t&ke&&0===e.button&&(this.pressed=!0),t&Ce&&1!==e.which&&(t=_e),this.pressed&&this.allow&&(t&_e&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:xe,srcEvent:e}))}});var Le={pointerdown:ke,pointermove:Ce,pointerup:_e,pointercancel:Te,pointerout:Te},qe={2:be,3:"pen",4:xe,5:"kinect"},je="pointerdown",Re="pointermove pointerup pointercancel";e.MSPointerEvent&&(je="MSPointerDown",Re="MSPointerMove MSPointerUp MSPointerCancel"),c(L,_,{handler:function(e){var t=this.store,i=!1,n=e.type.toLowerCase().replace("ms",""),o=Le[n],s=qe[e.pointerType]||e.pointerType,r=s==be,a=y(t,e.pointerId,"pointerId");o&ke&&(0===e.button||r)?0>a&&(t.push(e),a=t.length-1):o&(_e|Te)&&(i=!0),0>a||(t[a]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),i&&t.splice(a,1))}});var Fe={touchstart:ke,touchmove:Ce,touchend:_e,touchcancel:Te},Ve="touchstart",Xe="touchstart touchmove touchend touchcancel";c(q,_,{handler:function(e){var t=Fe[e.type];if(t===ke&&(this.started=!0),this.started){var i=j.call(this,e,t);t&(_e|Te)&&0==i[0].length-i[1].length&&(this.started=!1),this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:be,srcEvent:e})}}});var Be={touchstart:ke,touchmove:Ce,touchend:_e,touchcancel:Te},Ye="touchstart touchmove touchend touchcancel";c(R,_,{handler:function(e){var t=Be[e.type],i=F.call(this,e,t);i&&this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:be,srcEvent:e})}}),c(V,_,{handler:function(e,t,i){var n=i.pointerType==be,o=i.pointerType==xe;if(n)this.mouse.allow=!1;else if(o&&!this.mouse.allow)return;t&(_e|Te)&&(this.mouse.allow=!0),this.callback(e,t,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Qe=w(ce.style,"touchAction"),Ue=Qe!==n,Ge="compute",Ke="auto",Ze="manipulation",Je="none",et="pan-x",tt="pan-y";X.prototype={set:function(e){e==Ge&&(e=this.compute()),Ue&&(this.manager.element.style[Qe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return r(this.manager.recognizers,function(t){h(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),B(e.join(" "))},preventDefaults:function(e){if(!Ue){var t=e.srcEvent,i=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var n=this.actions,o=g(n,Je),s=g(n,tt),r=g(n,et);return o||s&&i&Oe||r&&i&De?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var it=1,nt=2,ot=4,st=8,rt=st,at=16;Y.prototype={defaults:{},set:function(e){return a(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(s(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=G(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return s(e,"dropRecognizeWith",this)?this:(e=G(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(s(e,"requireFailure",this))return this;var t=this.requireFail;return e=G(e,this),-1===y(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(s(e,"dropRequireFailure",this))return this;e=G(e,this);var t=y(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){i.manager.emit(i.options.event+(t?Q(n):""),e)}var i=this,n=this.state;st>n&&t(!0),t(),n>=st&&t(!0)},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=32)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|it)))return!1;e++}return!0},recognize:function(e){var t=a({},e);return h(this.options.enable,[this,t])?(this.state&(rt|at|32)&&(this.state=it),this.state=this.process(t),void(this.state&(nt|ot|st|at)&&this.tryEmit(t))):(this.reset(),void(this.state=32))},process:function(){},getTouchAction:function(){},reset:function(){}},c(K,Y,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,i=e.eventType,n=t&(nt|ot),o=this.attrTest(e);return n&&(i&Te||!o)?t|at:n||o?i&_e?t|st:t&nt?t|ot:nt:32}}),c(Z,K,{defaults:{event:"pan",threshold:10,pointers:1,direction:ze},getTouchAction:function(){var e=this.options.direction,t=[];return e&Oe&&t.push(tt),e&De&&t.push(et),t},directionTest:function(e){var t=this.options,i=!0,n=e.distance,o=e.direction,s=e.deltaX,r=e.deltaY;return o&t.direction||(t.direction&Oe?(o=0===s?Se:0>s?Pe:Ee,i=s!=this.pX,n=Math.abs(e.deltaX)):(o=0===r?Se:0>r?Me:Ae,i=r!=this.pY,n=Math.abs(e.deltaY))),e.direction=o,i&&n>t.threshold&&o&t.direction},attrTest:function(e){return K.prototype.attrTest.call(this,e)&&(this.state&nt||!(this.state&nt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=U(e.direction);t&&this.manager.emit(this.options.event+t,e),this._super.emit.call(this,e)}}),c(J,K,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&nt)},emit:function(e){if(this._super.emit.call(this,e),1!==e.scale){var t=e.scale<1?"in":"out";this.manager.emit(this.options.event+t,e)}}}),c(ee,Y,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Ke]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distance<t.threshold,s=e.deltaTime>t.time;if(this._input=e,!n||!i||e.eventType&(_e|Te)&&!s)this.reset();else if(e.eventType&ke)this.reset(),this._timer=o(function(){this.state=rt,this.tryEmit()},t.time,this);else if(e.eventType&_e)return rt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===rt&&(e&&e.eventType&_e?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=pe(),this.manager.emit(this.options.event,this._input)))}}),c(te,K,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&nt)}}),c(ie,K,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Oe|De,pointers:1},getTouchAction:function(){return Z.prototype.getTouchAction.call(this)},attrTest:function(e){var t,i=this.options.direction;return i&(Oe|De)?t=e.velocity:i&Oe?t=e.velocityX:i&De&&(t=e.velocityY),this._super.attrTest.call(this,e)&&i&e.direction&&e.distance>this.options.threshold&&de(t)>this.options.velocity&&e.eventType&_e},emit:function(e){var t=U(e.direction);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),c(ne,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[Ze]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distance<t.threshold,s=e.deltaTime<t.time;if(this.reset(),e.eventType&ke&&0===this.count)return this.failTimeout();if(n&&s&&i){if(e.eventType!=_e)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||N(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&r?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=o(function(){this.state=rt,this.tryEmit()},t.interval,this),nt):rt}return 32},failTimeout:function(){return this._timer=o(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==rt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),oe.VERSION="2.0.4",oe.defaults={domEvents:!1,touchAction:Ge,enable:!0,inputTarget:null,inputClass:null,preset:[[te,{enable:!1}],[J,{enable:!1},["rotate"]],[ie,{direction:Oe}],[Z,{direction:Oe},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[ee]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},se.prototype={set:function(e){return a(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var i,n=this.recognizers,o=t.curRecognizer;(!o||o&&o.state&rt)&&(o=t.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],2===t.stopped||o&&i!=o&&!i.canRecognizeWith(o)?i.reset():i.recognize(e),!o&&i.state&(nt|ot|st)&&(o=t.curRecognizer=i),s++}},get:function(e){if(e instanceof Y)return e;for(var t=this.recognizers,i=0;i<t.length;i++)if(t[i].options.event==e)return t[i];return null},add:function(e){if(s(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(s(e,"remove",this))return this;var t=this.recognizers;return e=this.get(e),t.splice(y(t,e),1),this.touchAction.update(),this},on:function(e,t){var i=this.handlers;return r(v(e),function(e){i[e]=i[e]||[],i[e].push(t)}),this},off:function(e,t){var i=this.handlers;return r(v(e),function(e){t?i[e].splice(y(i[e],t),1):delete i[e]}),this},emit:function(e,t){this.options.domEvents&&ae(e,t);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](t),n++}},destroy:function(){this.element&&re(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(oe,{INPUT_START:ke,INPUT_MOVE:Ce,INPUT_END:_e,INPUT_CANCEL:Te,STATE_POSSIBLE:it,STATE_BEGAN:nt,STATE_CHANGED:ot,STATE_ENDED:st,STATE_RECOGNIZED:rt,STATE_CANCELLED:at,STATE_FAILED:32,DIRECTION_NONE:Se,DIRECTION_LEFT:Pe,DIRECTION_RIGHT:Ee,DIRECTION_UP:Me,DIRECTION_DOWN:Ae,DIRECTION_HORIZONTAL:Oe,DIRECTION_VERTICAL:De,DIRECTION_ALL:ze,Manager:se,Input:_,TouchAction:X,TouchInput:R,MouseInput:W,PointerEventInput:L,TouchMouseInput:V,SingleTouchInput:q,Recognizer:Y,AttrRecognizer:K,Tap:ne,Pan:Z,Swipe:ie,Pinch:J,Rotate:te,Press:ee,on:p,off:f,each:r,merge:l,extend:a,inherit:c,bindFn:u,prefixed:w}),typeof define==ue&&define.amd?define(function(){return oe}):"undefined"!=typeof module&&module.exports?module.exports=oe:e.Hammer=oe}(window,document),function(e){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],e):"object"==typeof exports?e(require("jquery"),require("hammerjs")):e(jQuery,Hammer)}(function(e,t){function i(i,n){var o=e(i);o.data("hammer")||o.data("hammer",new t(o[0],n))}e.fn.hammer=function(e){return this.each(function(){i(this,e)})},t.Manager.prototype.emit=function(t){return function(i,n){t.call(this,i,n),e(this.element).trigger({type:i,gesture:n})}}(t.Manager.prototype.emit)}),function(e){e.Package?Materialize={}:e.Materialize={}}(window),"undefined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=Materialize),exports.default=Materialize),function(e){for(var t=0,i=["webkit","moz"],n=e.requestAnimationFrame,o=e.cancelAnimationFrame,s=i.length;--s>=0&&!n;)n=e[i[s]+"RequestAnimationFrame"],o=e[i[s]+"CancelRequestAnimationFrame"];n&&o||(n=function(e){var i=+Date.now(),n=Math.max(t+16,i);return setTimeout(function(){e(t=n)},n-i)},o=clearTimeout),e.requestAnimationFrame=n,e.cancelAnimationFrame=o}(window),Materialize.objectSelectorString=function(e){return((e.prop("tagName")||"")+(e.attr("id")||"")+(e.attr("class")||"")).replace(/\s/g,"")},Materialize.guid=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}(),Materialize.escapeHash=function(e){return e.replace(/(:|\.|\[|\]|,|=)/g,"\\$1")},Materialize.elementOrParentIsFixed=function(e){var t=$(e),i=!1;return t.add(t.parents()).each(function(){if("fixed"===$(this).css("position"))return i=!0,!1}),i};var i=Date.now||function(){return(new Date).getTime()};Materialize.throttle=function(e,t,n){var o,s,r,a=null,l=0;n||(n={});var c=function(){l=!1===n.leading?0:i(),a=null,r=e.apply(o,s),o=s=null};return function(){var u=i();l||!1!==n.leading||(l=u);var h=t-(u-l);return o=this,s=arguments,h<=0?(clearTimeout(a),a=null,l=u,r=e.apply(o,s),o=s=null):a||!1===n.trailing||(a=setTimeout(c,h)),r}};var n;n=jQuery?jQuery.Velocity:$?$.Velocity:Velocity,Materialize.Vel=n||Velocity,function(e){e.fn.collapsible=function(t,i){var n={accordion:void 0,onOpen:void 0,onClose:void 0},o=t;return t=e.extend(n,t),this.each(function(){function n(t){d=h.find("> li > .collapsible-header"),t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}),d.not(t).removeClass("active").parent().removeClass("active"),d.not(t).parent().children(".collapsible-body").stop(!0,!1).each(function(){e(this).is(":visible")&&e(this).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height",""),a(e(this).siblings(".collapsible-header"))}})})}function s(t){t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active"),t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}function r(e,i){i||e.toggleClass("active"),t.accordion||"accordion"===p||void 0===p?n(e):s(e),a(e)}function a(e){e.hasClass("active")?"function"==typeof t.onOpen&&t.onOpen.call(this,e.parent()):"function"==typeof t.onClose&&t.onClose.call(this,e.parent())}function l(e){return c(e).length>0}function c(e){return e.closest("li > .collapsible-header")}function u(){h.off("click.collapse","> li > .collapsible-header")}var h=e(this),d=e(this).find("> li > .collapsible-header"),p=h.data("collapsible");if("destroy"!==o)if(i>=0&&i<d.length){var f=d.eq(i);f.length&&("open"===o||"close"===o&&f.hasClass("active"))&&r(f)}else u(),h.on("click.collapse","> li > .collapsible-header",function(t){var i=e(t.target);l(i)&&(i=c(i)),r(i)}),t.accordion||"accordion"===p||void 0===p?r(d.filter(".active").first(),!0):d.filter(".active").each(function(){r(e(this),!0)});else u()})},e(document).ready(function(){e(".collapsible").collapsible()})}(jQuery),function(e){e.fn.scrollTo=function(t){return e(this).scrollTop(e(this).scrollTop()-e(this).offset().top+e(t).offset().top),this},e.fn.dropdown=function(t){var i={inDuration:300,outDuration:225,constrainWidth:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",stopPropagation:!1};return"open"===t?(this.each(function(){e(this).trigger("open")}),!1):"close"===t?(this.each(function(){e(this).trigger("close")}),!1):void this.each(function(){function n(){void 0!==r.data("induration")&&(a.inDuration=r.data("induration")),void 0!==r.data("outduration")&&(a.outDuration=r.data("outduration")),void 0!==r.data("constrainwidth")&&(a.constrainWidth=r.data("constrainwidth")),void 0!==r.data("hover")&&(a.hover=r.data("hover")),void 0!==r.data("gutter")&&(a.gutter=r.data("gutter")),void 0!==r.data("beloworigin")&&(a.belowOrigin=r.data("beloworigin")),void 0!==r.data("alignment")&&(a.alignment=r.data("alignment")),void 0!==r.data("stoppropagation")&&(a.stopPropagation=r.data("stoppropagation"))}function o(t){"focus"===t&&(l=!0),n(),c.addClass("active"),r.addClass("active");var i=r[0].getBoundingClientRect().width;!0===a.constrainWidth?c.css("width",i):c.css("white-space","nowrap");var o=window.innerHeight,u=r.innerHeight(),h=r.offset().left,d=r.offset().top-e(window).scrollTop(),p=a.alignment,f=0,m=0,g=0;!0===a.belowOrigin&&(g=u);var v=0,y=0,b=r.parent();if(b.is("body")||(b[0].scrollHeight>b[0].clientHeight&&(v=b[0].scrollTop),b[0].scrollWidth>b[0].clientWidth&&(y=b[0].scrollLeft)),h+c.innerWidth()>e(window).width()?p="right":h-c.innerWidth()+r.innerWidth()<0&&(p="left"),d+c.innerHeight()>o)if(d+u-c.innerHeight()<0){var x=o-d-g;c.css("max-height",x)}else g||(g+=u),g-=c.innerHeight();"left"===p?(f=a.gutter,m=r.position().left+f):"right"===p&&(c.stop(!0,!0).css({opacity:0,left:0}),m=r.position().left+i-c.width()+(f=-a.gutter)),c.css({position:"absolute",top:r.position().top+g+v,left:m+y}),c.slideDown({queue:!1,duration:a.inDuration,easing:"easeOutCubic",complete:function(){e(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:a.inDuration,easing:"easeOutSine"}),setTimeout(function(){e(document).on("click."+c.attr("id"),function(t){s(),e(document).off("click."+c.attr("id"))})},0)}function s(){l=!1,c.fadeOut(a.outDuration),c.removeClass("active"),r.removeClass("active"),e(document).off("click."+c.attr("id")),setTimeout(function(){c.css("max-height","")},a.outDuration)}var r=e(this),a=e.extend({},i,t),l=!1,c=e("#"+r.attr("data-activates"));if(n(),r.after(c),a.hover){var u=!1;r.off("click."+r.attr("id")),r.on("mouseenter",function(e){!1===u&&(o(),u=!0)}),r.on("mouseleave",function(t){var i=t.toElement||t.relatedTarget;e(i).closest(".dropdown-content").is(c)||(c.stop(!0,!0),s(),u=!1)}),c.on("mouseleave",function(t){var i=t.toElement||t.relatedTarget;e(i).closest(".dropdown-button").is(r)||(c.stop(!0,!0),s(),u=!1)})}else r.off("click."+r.attr("id")),r.on("click."+r.attr("id"),function(t){l||(r[0]!=t.currentTarget||r.hasClass("active")||0!==e(t.target).closest(".dropdown-content").length?r.hasClass("active")&&(s(),e(document).off("click."+c.attr("id"))):(t.preventDefault(),a.stopPropagation&&t.stopPropagation(),o("click")))});r.on("open",function(e,t){o(t)}),r.on("close",s)})},e(document).ready(function(){e(".dropdown-button").dropdown()})}(jQuery),function(i,n){"use strict";var o={opacity:.5,inDuration:250,outDuration:250,ready:void 0,complete:void 0,dismissible:!0,startingTop:"4%",endingTop:"10%"},s=function(){function s(t,n){e(this,s),t[0].M_Modal&&t[0].M_Modal.destroy(),this.$el=t,this.options=i.extend({},s.defaults,n),this.isOpen=!1,this.$el[0].M_Modal=this,this.id=t.attr("id"),this.openingTrigger=void 0,this.$overlay=i('<div class="modal-overlay"></div>'),s._increment++,s._count++,this.$overlay[0].style.zIndex=1e3+2*s._increment,this.$el[0].style.zIndex=1e3+2*s._increment+1,this.setupEventHandlers()}return t(s,[{key:"getInstance",value:function(){return this}},{key:"destroy",value:function(){this.removeEventHandlers(),this.$el[0].removeAttribute("style"),this.$overlay[0].parentNode&&this.$overlay[0].parentNode.removeChild(this.$overlay[0]),this.$el[0].M_Modal=void 0,s._count--}},{key:"setupEventHandlers",value:function(){this.handleOverlayClickBound=this.handleOverlayClick.bind(this),this.handleModalCloseClickBound=this.handleModalCloseClick.bind(this),1===s._count&&document.body.addEventListener("click",this.handleTriggerClick),this.$overlay[0].addEventListener("click",this.handleOverlayClickBound),this.$el[0].addEventListener("click",this.handleModalCloseClickBound)}},{key:"removeEventHandlers",value:function(){0===s._count&&document.body.removeEventListener("click",this.handleTriggerClick),this.$overlay[0].removeEventListener("click",this.handleOverlayClickBound),this.$el[0].removeEventListener("click",this.handleModalCloseClickBound)}},{key:"handleTriggerClick",value:function(e){var t=i(e.target).closest(".modal-trigger");if(e.target&&t.length){var n=t[0].getAttribute("href");n=n?n.slice(1):t[0].getAttribute("data-target");var o=document.getElementById(n).M_Modal;o&&o.open(t),e.preventDefault()}}},{key:"handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"handleModalCloseClick",value:function(e){var t=i(e.target).closest(".modal-close");e.target&&t.length&&this.close()}},{key:"handleKeydown",value:function(e){27===e.keyCode&&this.options.dismissible&&this.close()}},{key:"animateIn",value:function(){var e=this;i.extend(this.$el[0].style,{display:"block",opacity:0}),i.extend(this.$overlay[0].style,{display:"block",opacity:0}),n(this.$overlay[0],{opacity:this.options.opacity},{duration:this.options.inDuration,queue:!1,ease:"easeOutCubic"});var t={duration:this.options.inDuration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof e.options.ready&&e.options.ready.call(e,e.$el,e.openingTrigger)}};this.$el[0].classList.contains("bottom-sheet")?n(this.$el[0],{bottom:0,opacity:1},t):(n.hook(this.$el[0],"scaleX",.7),this.$el[0].style.top=this.options.startingTop,n(this.$el[0],{top:this.options.endingTop,opacity:1,scaleX:1},t))}},{key:"animateOut",value:function(){var e=this;n(this.$overlay[0],{opacity:0},{duration:this.options.outDuration,queue:!1,ease:"easeOutQuart"});var t={duration:this.options.outDuration,queue:!1,ease:"easeOutCubic",complete:function(){e.$el[0].style.display="none","function"==typeof e.options.complete&&e.options.complete.call(e,e.$el),e.$overlay[0].parentNode.removeChild(e.$overlay[0])}};this.$el[0].classList.contains("bottom-sheet")?n(this.$el[0],{bottom:"-100%",opacity:0},t):n(this.$el[0],{top:this.options.startingTop,opacity:0,scaleX:.7},t)}},{key:"open",value:function(e){if(!this.isOpen){this.isOpen=!0;var t=document.body;return t.style.overflow="hidden",this.$el[0].classList.add("open"),t.appendChild(this.$overlay[0]),this.openingTrigger=e||void 0,this.options.dismissible&&(this.handleKeydownBound=this.handleKeydown.bind(this),document.addEventListener("keydown",this.handleKeydownBound)),this.animateIn(),this}}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,this.$el[0].classList.remove("open"),document.body.style.overflow="",this.options.dismissible&&document.removeEventListener("keydown",this.handleKeydownBound),this.animateOut(),this}}],[{key:"init",value:function(e,t){var n=[];return e.each(function(){n.push(new s(i(this),t))}),n}},{key:"defaults",get:function(){return o}}]),s}();s._increment=0,s._count=0,Materialize.Modal=s,i.fn.modal=function(e){return s.prototype[e]?"get"===e.slice(0,3)?this.first()[0].M_Modal[e]():this.each(function(){this.M_Modal[e]()}):"object"!=typeof e&&e?void i.error("Method "+e+" does not exist on jQuery.modal"):(s.init(this,arguments[0]),this)}}(jQuery,Materialize.Vel),function(e){e.fn.materialbox=function(){return this.each(function(){function t(){s=!1;var t=a.parent(".material-placeholder"),n=(window.innerWidth,window.innerHeight,a.data("width")),l=a.data("height");a.velocity("stop",!0),e("#materialbox-overlay").velocity("stop",!0),e(".materialbox-caption").velocity("stop",!0),e(window).off("scroll.materialbox"),e(document).off("keyup.materialbox"),e(window).off("resize.materialbox"),e("#materialbox-overlay").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){o=!1,e(this).remove()}}),a.velocity({width:n,height:l,left:0,top:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){t.css({height:"",width:"",position:"",top:"",left:""}),a.removeAttr("style"),a.attr("style",c),a.removeClass("active"),s=!0,i&&i.css("overflow","")}}),e(".materialbox-caption").velocity({opacity:0},{duration:r,queue:!1,easing:"easeOutQuad",complete:function(){e(this).remove()}})}if(!e(this).hasClass("initialized")){e(this).addClass("initialized");var i,n,o=!1,s=!0,r=200,a=e(this),l=e("<div></div>").addClass("material-placeholder"),c=a.attr("style");a.wrap(l),a.on("click",function(){var r=a.parent(".material-placeholder"),l=window.innerWidth,c=window.innerHeight,u=a.width(),h=a.height();if(!1===s)return t(),!1;if(o&&!0===s)return t(),!1;for(s=!1,a.addClass("active"),o=!0,r.css({width:r[0].getBoundingClientRect().width,height:r[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),i=void 0,n=r[0].parentNode;null!==n&&!e(n).is(document);){var d=e(n);"visible"!==d.css("overflow")&&(d.css("overflow","visible"),i=void 0===i?d:i.add(d)),n=n.parentNode}a.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}).data("width",u).data("height",h);var p=e('<div id="materialbox-overlay"></div>').css({opacity:0}).click(function(){!0===s&&t()});a.before(p);var f=p[0].getBoundingClientRect();if(p.css({width:l,height:c,left:-1*f.left,top:-1*f.top}),p.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"}),""!==a.data("caption")){var m=e('<div class="materialbox-caption"></div>');m.text(a.data("caption")),e("body").append(m),m.css({display:"inline"}),m.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"})}var g=0,v=0;u/l>h/c?(g=.9*l,v=.9*l*(h/u)):(g=.9*c*(u/h),v=.9*c),a.hasClass("responsive-img")?a.velocity({"max-width":g,width:u},{duration:0,queue:!1,complete:function(){a.css({left:0,top:0}).velocity({height:v,width:g,left:e(document).scrollLeft()+l/2-a.parent(".material-placeholder").offset().left-g/2,top:e(document).scrollTop()+c/2-a.parent(".material-placeholder").offset().top-v/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){s=!0}})}}):a.css("left",0).css("top",0).velocity({height:v,width:g,left:e(document).scrollLeft()+l/2-a.parent(".material-placeholder").offset().left-g/2,top:e(document).scrollTop()+c/2-a.parent(".material-placeholder").offset().top-v/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){s=!0}}),e(window).on("scroll.materialbox",function(){o&&t()}),e(window).on("resize.materialbox",function(){o&&t()}),e(document).on("keyup.materialbox",function(e){27===e.keyCode&&!0===s&&o&&t()})})}})},e(document).ready(function(){e(".materialboxed").materialbox()})}(jQuery),function(e){e.fn.parallax=function(){var t=e(window).width();return this.each(function(i){function n(i){var n;n=t<601?o.height()>0?o.height():o.children("img").height():o.height()>0?o.height():500;var s=o.children("img").first(),r=s.height()-n,a=o.offset().top+n,l=o.offset().top,c=e(window).scrollTop(),u=window.innerHeight,h=(c+u-l)/(n+u),d=Math.round(r*h);i&&s.css("display","block"),a>c&&l<c+u&&s.css("transform","translate3D(-50%,"+d+"px, 0)")}var o=e(this);o.addClass("parallax"),o.children("img").one("load",function(){n(!0)}).each(function(){this.complete&&e(this).trigger("load")}),e(window).scroll(function(){t=e(window).width(),n(!1)}),e(window).resize(function(){t=e(window).width(),n(!1)})})}}(jQuery),function(e){var t={init:function(t){var i={onShow:null,swipeable:!1,responsiveThreshold:1/0};t=e.extend(i,t);var n=Materialize.objectSelectorString(e(this));return this.each(function(i){var o,s,r,a,l,c=n+i,u=e(this),h=e(window).width(),d=u.find("li.tab a"),p=u.width(),f=e(),m=Math.max(p,u[0].scrollWidth)/d.length,g=0,v=0,y=!1,b=function(e){return Math.ceil(p-e.position().left-e[0].getBoundingClientRect().width-u.scrollLeft())},x=function(e){return Math.floor(e.position().left+u.scrollLeft())},w=function(e){g-e>=0?(a.velocity({right:b(o)},{duration:300,queue:!1,easing:"easeOutQuad"}),a.velocity({left:x(o)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(a.velocity({left:x(o)},{duration:300,queue:!1,easing:"easeOutQuad"}),a.velocity({right:b(o)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90}))};t.swipeable&&h>t.responsiveThreshold&&(t.swipeable=!1),0===(o=e(d.filter('[href="'+location.hash+'"]'))).length&&(o=e(this).find("li.tab a.active").first()),0===o.length&&(o=e(this).find("li.tab a").first()),o.addClass("active"),(g=d.index(o))<0&&(g=0),void 0!==o[0]&&(s=e(o[0].hash)).addClass("active"),u.find(".indicator").length||u.append('<li class="indicator"></li>'),a=u.find(".indicator"),u.append(a),u.is(":visible")&&setTimeout(function(){a.css({right:b(o)}),a.css({left:x(o)})},0),e(window).off("resize.tabs-"+c).on("resize.tabs-"+c,function(){p=u.width(),m=Math.max(p,u[0].scrollWidth)/d.length,g<0&&(g=0),0!==m&&0!==p&&(a.css({right:b(o)}),a.css({left:x(o)}))}),t.swipeable?(d.each(function(){var t=e(Materialize.escapeHash(this.hash));t.addClass("carousel-item"),f=f.add(t)}),r=f.wrapAll('<div class="tabs-content carousel"></div>'),f.css("display",""),e(".tabs-content.carousel").carousel({fullWidth:!0,noWrap:!0,onCycleTo:function(e){if(!y){var i=g;g=r.index(e),o.removeClass("active"),(o=d.eq(g)).addClass("active"),w(i),"function"==typeof t.onShow&&t.onShow.call(u[0],s)}}})):d.not(o).each(function(){e(Materialize.escapeHash(this.hash)).hide()}),u.off("click.tabs").on("click.tabs","a",function(i){if(e(this).parent().hasClass("disabled"))i.preventDefault();else if(!e(this).attr("target")){y=!0,p=u.width(),m=Math.max(p,u[0].scrollWidth)/d.length,o.removeClass("active");var n=s;o=e(this),s=e(Materialize.escapeHash(this.hash)),d=u.find("li.tab a"),o.position(),o.addClass("active"),v=g,(g=d.index(e(this)))<0&&(g=0),t.swipeable?f.length&&f.carousel("set",g,function(){"function"==typeof t.onShow&&t.onShow.call(u[0],s)}):(void 0!==s&&(s.show(),s.addClass("active"),"function"==typeof t.onShow&&t.onShow.call(this,s)),void 0===n||n.is(s)||(n.hide(),n.removeClass("active"))),l=setTimeout(function(){y=!1},300),w(v),i.preventDefault()}})})},select_tab:function(e){this.find('a[href="#'+e+'"]').trigger("click")}};e.fn.tabs=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist on jQuery.tabs"):t.init.apply(this,arguments)},e(document).ready(function(){e("ul.tabs").tabs()})}(jQuery),function(e){e.fn.tooltip=function(i){var n={delay:350,tooltip:"",position:"bottom",html:!1};return"remove"===i?(this.each(function(){e("#"+e(this).attr("data-tooltip-id")).remove(),e(this).removeAttr("data-tooltip-id"),e(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(i=e.extend(n,i),this.each(function(){var n=Materialize.guid(),o=e(this);o.attr("data-tooltip-id")&&e("#"+o.attr("data-tooltip-id")).remove(),o.attr("data-tooltip-id",n);var s,r,a,l,c,u,h=function(){s=o.attr("data-html")?"true"===o.attr("data-html"):i.html,r=o.attr("data-delay"),r=void 0===r||""===r?i.delay:r,a=o.attr("data-position"),a=void 0===a||""===a?i.position:a,l=o.attr("data-tooltip"),l=void 0===l||""===l?i.tooltip:l};h(),c=function(){var t=e('<div class="material-tooltip"></div>');return l=s?e("<span></span>").html(l):e("<span></span>").text(l),t.append(l).appendTo(e("body")).attr("id",n),(u=e('<div class="backdrop"></div>')).appendTo(t),t}(),o.off("mouseenter.tooltip mouseleave.tooltip");var d,p=!1;o.on({"mouseenter.tooltip":function(e){d=setTimeout(function(){h(),p=!0,c.velocity("stop"),u.velocity("stop"),c.css({visibility:"visible",left:"0px",top:"0px"});var e,i,n,s=o.outerWidth(),r=o.outerHeight(),l=c.outerHeight(),d=c.outerWidth(),f="0px",m="0px",g=u[0].offsetWidth,v=u[0].offsetHeight,y=8,b=8,x=0;"top"===a?(e=o.offset().top-l-5,i=o.offset().left+s/2-d/2,n=t(i,e,d,l),f="-10px",u.css({bottom:0,left:0,borderRadius:"14px 14px 0 0",transformOrigin:"50% 100%",marginTop:l,marginLeft:d/2-g/2})):"left"===a?(e=o.offset().top+r/2-l/2,i=o.offset().left-d-5,n=t(i,e,d,l),m="-10px",u.css({top:"-7px",right:0,width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:l/2,marginLeft:d})):"right"===a?(e=o.offset().top+r/2-l/2,i=o.offset().left+s+5,n=t(i,e,d,l),m="+10px",u.css({top:"-7px",left:0,width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:l/2,marginLeft:"0px"})):(e=o.offset().top+o.outerHeight()+5,i=o.offset().left+s/2-d/2,n=t(i,e,d,l),f="+10px",u.css({top:0,left:0,marginLeft:d/2-g/2})),c.css({top:n.y,left:n.x}),y=Math.SQRT2*d/parseInt(g),b=Math.SQRT2*l/parseInt(v),x=Math.max(y,b),c.velocity({translateY:f,translateX:m},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),u.css({visibility:"visible"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scaleX:x,scaleY:x},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})},r)},"mouseleave.tooltip":function(){p=!1,clearTimeout(d),setTimeout(function(){!0!==p&&(c.velocity({opacity:0,translateY:0,translateX:0},{duration:225,queue:!1}),u.velocity({opacity:0,scaleX:1,scaleY:1},{duration:225,queue:!1,complete:function(){u.css({visibility:"hidden"}),c.css({visibility:"hidden"}),p=!1}}))},225)}})}))};var t=function(t,i,n,o){var s=t,r=i;return s<0?s=4:s+n>window.innerWidth&&(s-=s+n-window.innerWidth),r<0?r=4:r+o>window.innerHeight+e(window).scrollTop&&(r-=r+o-window.innerHeight),{x:s,y:r}};e(document).ready(function(){e(".tooltipped").tooltip()})}(jQuery),function(e){"use strict";function t(e){return null!==e&&e===e.window}function i(e){return t(e)?e:9===e.nodeType&&e.defaultView}function n(e){var t,n,o={top:0,left:0},s=e&&e.ownerDocument;return t=s.documentElement,void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=i(s),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}}function o(e){var t="";for(var i in e)e.hasOwnProperty(i)&&(t+=i+":"+e[i]+";");return t}function s(e){if(!1===u.allowEvent(e))return null;for(var t=null,i=e.target||e.srcElement;null!==i.parentNode;){if(!(i instanceof SVGElement)&&-1!==i.className.indexOf("waves-effect")){t=i;break}i=i.parentNode}return t}function r(t){var i=s(t);null!==i&&(c.show(t,i),"ontouchstart"in e&&(i.addEventListener("touchend",c.hide,!1),i.addEventListener("touchcancel",c.hide,!1)),i.addEventListener("mouseup",c.hide,!1),i.addEventListener("mouseleave",c.hide,!1),i.addEventListener("dragend",c.hide,!1))}var a=a||{},l=document.querySelectorAll.bind(document),c={duration:750,show:function(e,t){if(2===e.button)return!1;var i=t||this,s=document.createElement("div");s.className="waves-ripple",i.appendChild(s);var r=n(i),a=e.pageY-r.top,l=e.pageX-r.left,u="scale("+i.clientWidth/100*10+")";"touches"in e&&(a=e.touches[0].pageY-r.top,l=e.touches[0].pageX-r.left),s.setAttribute("data-hold",Date.now()),s.setAttribute("data-scale",u),s.setAttribute("data-x",l),s.setAttribute("data-y",a);var h={top:a+"px",left:l+"px"};s.className=s.className+" waves-notransition",s.setAttribute("style",o(h)),s.className=s.className.replace("waves-notransition",""),h["-webkit-transform"]=u,h["-moz-transform"]=u,h["-ms-transform"]=u,h["-o-transform"]=u,h.transform=u,h.opacity="1",h["-webkit-transition-duration"]=c.duration+"ms",h["-moz-transition-duration"]=c.duration+"ms",h["-o-transition-duration"]=c.duration+"ms",h["transition-duration"]=c.duration+"ms",h["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",h["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",h["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",h["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",s.setAttribute("style",o(h))},hide:function(e){u.touchup(e);var t=this,i=(t.clientWidth,null),n=t.getElementsByClassName("waves-ripple");if(!(n.length>0))return!1;var s=(i=n[n.length-1]).getAttribute("data-x"),r=i.getAttribute("data-y"),a=i.getAttribute("data-scale"),l=350-(Date.now()-Number(i.getAttribute("data-hold")));l<0&&(l=0),setTimeout(function(){var e={top:r+"px",left:s+"px",opacity:"0","-webkit-transition-duration":c.duration+"ms","-moz-transition-duration":c.duration+"ms","-o-transition-duration":c.duration+"ms","transition-duration":c.duration+"ms","-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,"-o-transform":a,transform:a};i.setAttribute("style",o(e)),setTimeout(function(){try{t.removeChild(i)}catch(e){return!1}},c.duration)},l)},wrapInput:function(e){for(var t=0;t<e.length;t++){var i=e[t];if("input"===i.tagName.toLowerCase()){var n=i.parentNode;if("i"===n.tagName.toLowerCase()&&-1!==n.className.indexOf("waves-effect"))continue;var o=document.createElement("i");o.className=i.className+" waves-input-wrapper";var s=i.getAttribute("style");s||(s=""),o.setAttribute("style",s),i.className="waves-button-input",i.removeAttribute("style"),n.replaceChild(o,i),o.appendChild(i)}}}},u={touches:0,allowEvent:function(e){var t=!0;return"touchstart"===e.type?u.touches+=1:"touchend"===e.type||"touchcancel"===e.type?setTimeout(function(){u.touches>0&&(u.touches-=1)},500):"mousedown"===e.type&&u.touches>0&&(t=!1),t},touchup:function(e){u.allowEvent(e)}};a.displayEffect=function(t){"duration"in(t=t||{})&&(c.duration=t.duration),c.wrapInput(l(".waves-effect")),"ontouchstart"in e&&document.body.addEventListener("touchstart",r,!1),document.body.addEventListener("mousedown",r,!1)},a.attach=function(t){"input"===t.tagName.toLowerCase()&&(c.wrapInput([t]),t=t.parentNode),"ontouchstart"in e&&t.addEventListener("touchstart",r,!1),t.addEventListener("mousedown",r,!1)},e.Waves=a,document.addEventListener("DOMContentLoaded",function(){a.displayEffect()},!1)}(window),function(i,n){"use strict";var o={displayLength:1/0,inDuration:300,outDuration:375,className:void 0,completeCallback:void 0,activationPercent:.8},s=function(){function s(t,n,o,r){if(e(this,s),t){this.options={displayLength:n,className:o,completeCallback:r},this.options=i.extend({},s.defaults,this.options),this.message=t,this.panning=!1,this.timeRemaining=this.options.displayLength,0===s._toasts.length&&s._createContainer(),s._toasts.push(this);var a=this.createToast();a.M_Toast=this,this.el=a,this._animateIn(),this.setTimer()}}return t(s,[{key:"createToast",value:function(){var e=document.createElement("div");if(e.classList.add("toast"),this.options.className){var t=this.options.className.split(" "),n=void 0,o=void 0;for(n=0,o=t.length;n<o;n++)e.classList.add(t[n])}return("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?e.appendChild(this.message):this.message instanceof jQuery?i(e).append(this.message):e.innerHTML=this.message,s._container.appendChild(e),e}},{key:"_animateIn",value:function(){n(this.el,{top:0,opacity:1},{duration:300,easing:"easeOutCubic",queue:!1})}},{key:"setTimer",value:function(){var e=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval(function(){e.panning||(e.timeRemaining-=20),e.timeRemaining<=0&&e.remove()},20))}},{key:"remove",value:function(){var e=this;window.clearInterval(this.counterInterval);var t=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+t+"px)",this.el.style.opacity=0),n(this.el,{opacity:0,marginTop:"-40px"},{duration:this.options.outDuration,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof e.options.completeCallback&&e.options.completeCallback(),e.el.parentNode.removeChild(e.el),s._toasts.splice(s._toasts.indexOf(e),1),0===s._toasts.length&&s._removeContainer()}})}}],[{key:"_createContainer",value:function(){var e=document.createElement("div");e.setAttribute("id","toast-container"),e.addEventListener("touchstart",s._onDragStart),e.addEventListener("touchmove",s._onDragMove),e.addEventListener("touchend",s._onDragEnd),e.addEventListener("mousedown",s._onDragStart),document.addEventListener("mousemove",s._onDragMove),document.addEventListener("mouseup",s._onDragEnd),document.body.appendChild(e),s._container=e}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",s._onDragMove),document.removeEventListener("mouseup",s._onDragEnd),s._container.parentNode.removeChild(s._container),s._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&i(e.target).closest(".toast").length){var t=i(e.target).closest(".toast")[0].M_Toast;t.panning=!0,s._draggedToast=t,t.el.classList.add("panning"),t.el.style.transition="",t.startingXPos=s._xPos(e),t.time=Date.now(),t.xPos=s._xPos(e)}}},{key:"_onDragMove",value:function(e){if(s._draggedToast){e.preventDefault();var t=s._draggedToast;t.deltaX=Math.abs(t.xPos-s._xPos(e)),t.xPos=s._xPos(e),t.velocityX=t.deltaX/(Date.now()-t.time),t.time=Date.now();var i=t.xPos-t.startingXPos,n=t.el.offsetWidth*t.options.activationPercent;t.el.style.transform="translateX("+i+"px)",t.el.style.opacity=1-Math.abs(i/n)}}},{key:"_onDragEnd",value:function(e){if(s._draggedToast){var t=s._draggedToast;t.panning=!1,t.el.classList.remove("panning");var i=t.xPos-t.startingXPos,n=t.el.offsetWidth*t.options.activationPercent;Math.abs(i)>n||t.velocityX>1?(t.wasSwiped=!0,t.remove()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),s._draggedToast=null}}},{key:"_xPos",value:function(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}},{key:"removeAll",value:function(){for(var e in s._toasts)s._toasts[e].remove()}},{key:"defaults",get:function(){return o}}]),s}();s._toasts=[],s._container=null,s._draggedToast=null,Materialize.Toast=s,Materialize.toast=function(e,t,i,n){return new s(e,t,i,n)}}(jQuery,Materialize.Vel),function(e){var t={init:function(t){var i={menuWidth:300,edge:"left",closeOnClick:!1,draggable:!0,onOpen:null,onClose:null};t=e.extend(i,t),e(this).each(function(){var i=e(this),n=i.attr("data-activates"),o=e("#"+n);300!=t.menuWidth&&o.css("width",t.menuWidth);var s=e('.drag-target[data-sidenav="'+n+'"]');t.draggable?(s.length&&s.remove(),s=e('<div class="drag-target"></div>').attr("data-sidenav",n),e("body").append(s)):s=e(),"left"==t.edge?(o.css("transform","translateX(-100%)"),s.css({left:0})):(o.addClass("right-aligned").css("transform","translateX(100%)"),s.css({right:0})),o.hasClass("fixed")&&window.innerWidth>992&&o.css("transform","translateX(0)"),o.hasClass("fixed")&&e(window).resize(function(){window.innerWidth>992?0!==e("#sidenav-overlay").length&&l?r(!0):o.css("transform","translateX(0%)"):!1===l&&("left"===t.edge?o.css("transform","translateX(-100%)"):o.css("transform","translateX(100%)"))}),!0===t.closeOnClick&&o.on("click.itemclick","a:not(.collapsible-header)",function(){window.innerWidth>992&&o.hasClass("fixed")||r()});var r=function(i){a=!1,l=!1,e("body").css({overflow:"",width:""}),e("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){e(this).remove()}}),"left"===t.edge?(s.css({width:"",right:"",left:"0"}),o.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===i&&(o.removeAttr("style"),o.css("width",t.menuWidth))}})):(s.css({width:"",right:"0",left:""}),o.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===i&&(o.removeAttr("style"),o.css("width",t.menuWidth))}})),"function"==typeof t.onClose&&t.onClose.call(this,o)},a=!1,l=!1;t.draggable&&(s.on("click",function(){l&&r()}),s.hammer({prevent_default:!1}).on("pan",function(i){if("touch"==i.gesture.pointerType){i.gesture.direction;var n=i.gesture.center.x,s=i.gesture.center.y;if(i.gesture.velocityX,0===n&&0===s)return;var a=e("body"),c=e("#sidenav-overlay"),u=a.innerWidth();if(a.css("overflow","hidden"),a.width(u),0===c.length&&((c=e('<div id="sidenav-overlay"></div>')).css("opacity",0).click(function(){r()}),"function"==typeof t.onOpen&&t.onOpen.call(this,o),e("body").append(c)),"left"===t.edge&&(n>t.menuWidth?n=t.menuWidth:n<0&&(n=0)),"left"===t.edge)n<t.menuWidth/2?l=!1:n>=t.menuWidth/2&&(l=!0),o.css("transform","translateX("+(n-t.menuWidth)+"px)");else{n<window.innerWidth-t.menuWidth/2?l=!0:n>=window.innerWidth-t.menuWidth/2&&(l=!1);var h=n-t.menuWidth/2;h<0&&(h=0),o.css("transform","translateX("+h+"px)")}var d;"left"===t.edge?(d=n/t.menuWidth,c.velocity({opacity:d},{duration:10,queue:!1,easing:"easeOutQuad"})):(d=Math.abs((n-window.innerWidth)/t.menuWidth),c.velocity({opacity:d},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(i){if("touch"==i.gesture.pointerType){var n=e("#sidenav-overlay"),r=i.gesture.velocityX,c=i.gesture.center.x,u=c-t.menuWidth,h=c-t.menuWidth/2;u>0&&(u=0),h<0&&(h=0),a=!1,"left"===t.edge?l&&r<=.3||r<-.5?(0!==u&&o.velocity({translateX:[0,u]},{duration:300,queue:!1,easing:"easeOutQuad"}),n.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),s.css({width:"50%",right:0,left:""}),l=!0):(!l||r>.3)&&(e("body").css({overflow:"",width:""}),o.velocity({translateX:[-1*t.menuWidth-10,u]},{duration:200,queue:!1,easing:"easeOutQuad"}),n.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){"function"==typeof t.onClose&&t.onClose.call(this,o),e(this).remove()}}),s.css({width:"10px",right:"",left:0})):l&&r>=-.3||r>.5?(0!==h&&o.velocity({translateX:[0,h]},{duration:300,queue:!1,easing:"easeOutQuad"}),n.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),s.css({width:"50%",right:"",left:0}),l=!0):(!l||r<-.3)&&(e("body").css({overflow:"",width:""}),o.velocity({translateX:[t.menuWidth+10,h]},{duration:200,queue:!1,easing:"easeOutQuad"}),n.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){"function"==typeof t.onClose&&t.onClose.call(this,o),e(this).remove()}}),s.css({width:"10px",right:0,left:""}))}})),i.off("click.sidenav").on("click.sidenav",function(){if(!0===l)l=!1,a=!1,r();else{var i=e("body"),n=e('<div id="sidenav-overlay"></div>'),c=i.innerWidth();i.css("overflow","hidden"),i.width(c),e("body").append(s),"left"===t.edge?(s.css({width:"50%",right:0,left:""}),o.velocity({translateX:[0,-1*t.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(s.css({width:"50%",right:"",left:0}),o.velocity({translateX:[0,t.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})),n.css("opacity",0).click(function(){l=!1,a=!1,r(),n.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){e(this).remove()}})}),e("body").append(n),n.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){l=!0,a=!1}}),"function"==typeof t.onOpen&&t.onOpen.call(this,o)}return!1})})},destroy:function(){var t=e("#sidenav-overlay"),i=e('.drag-target[data-sidenav="'+e(this).attr("data-activates")+'"]');t.trigger("click"),i.remove(),e(this).off("click"),t.remove()},show:function(){this.trigger("click")},hide:function(){e("#sidenav-overlay").trigger("click")}};e.fn.sideNav=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist on jQuery.sideNav"):t.init.apply(this,arguments)}}(jQuery),function(e){function t(t,i,n,o){var r=e();return e.each(s,function(e,s){if(s.height()>0){var a=s.offset().top,l=s.offset().left,c=l+s.width(),u=a+s.height();!(l>i||c<o||a>n||u<t)&&r.push(s)}}),r}function i(i){++l;var n=o.scrollTop(),s=o.scrollLeft(),a=s+o.width(),u=n+o.height(),h=t(n+c.top+i||200,a+c.right,u+c.bottom,s+c.left);e.each(h,function(e,t){"number"!=typeof t.data("scrollSpy:ticks")&&t.triggerHandler("scrollSpy:enter"),t.data("scrollSpy:ticks",l)}),e.each(r,function(e,t){var i=t.data("scrollSpy:ticks");"number"==typeof i&&i!==l&&(t.triggerHandler("scrollSpy:exit"),t.data("scrollSpy:ticks",null))}),r=h}function n(){o.trigger("scrollSpy:winSize")}var o=e(window),s=[],r=[],a=!1,l=0,c={top:0,right:0,bottom:0,left:0};e.scrollSpy=function(t,n){var r={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(e){return'a[href="#'+e+'"]'}};n=e.extend(r,n);var l=[];(t=e(t)).each(function(t,i){s.push(e(i)),e(i).data("scrollSpy:id",t),e('a[href="#'+e(i).attr("id")+'"]').click(function(t){t.preventDefault();var i=e(Materialize.escapeHash(this.hash)).offset().top+1;e("html, body").animate({scrollTop:i-n.scrollOffset},{duration:400,queue:!1,easing:"easeOutCubic"})})}),c.top=n.offsetTop||0,c.right=n.offsetRight||0,c.bottom=n.offsetBottom||0,c.left=n.offsetLeft||0;var u=Materialize.throttle(function(){i(n.scrollOffset)},n.throttle||100),h=function(){e(document).ready(u)};return a||(o.on("scroll",h),o.on("resize",h),a=!0),setTimeout(h,0),t.on("scrollSpy:enter",function(){l=e.grep(l,function(e){return 0!=e.height()});var t=e(this);l[0]?(e(n.getActiveElement(l[0].attr("id"))).removeClass(n.activeClass),t.data("scrollSpy:id")<l[0].data("scrollSpy:id")?l.unshift(e(this)):l.push(e(this))):l.push(e(this)),e(n.getActiveElement(l[0].attr("id"))).addClass(n.activeClass)}),t.on("scrollSpy:exit",function(){if((l=e.grep(l,function(e){return 0!=e.height()}))[0]){e(n.getActiveElement(l[0].attr("id"))).removeClass(n.activeClass);var t=e(this);(l=e.grep(l,function(e){return e.attr("id")!=t.attr("id")}))[0]&&e(n.getActiveElement(l[0].attr("id"))).addClass(n.activeClass)}}),t},e.winSizeSpy=function(t){return e.winSizeSpy=function(){return o},t=t||{throttle:100},o.on("resize",Materialize.throttle(n,t.throttle||100))},e.fn.scrollSpy=function(t){return e.scrollSpy(e(this),t)}}(jQuery),function(e){e(document).ready(function(){function t(t){var i=t.css("font-family"),o=t.css("font-size"),s=t.css("line-height"),r=t.css("padding");o&&n.css("font-size",o),i&&n.css("font-family",i),s&&n.css("line-height",s),r&&n.css("padding",r),t.data("original-height")||t.data("original-height",t.height()),"off"===t.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(t.val()+"\n");var a=n.html().replace(/\n/g,"<br>");n.html(a),t.is(":visible")?n.css("width",t.width()):n.css("width",e(window).width()/2),t.data("original-height")<=n.height()?t.css("height",n.height()):t.val().length<t.data("previous-length")&&t.css("height",t.data("original-height")),t.data("previous-length",t.val().length)}Materialize.updateTextFields=function(){e("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(t,i){var n=e(this);e(i).val().length>0||e(i).is(":focus")||i.autofocus||void 0!==n.attr("placeholder")?n.siblings("label").addClass("active"):e(i)[0].validity?n.siblings("label").toggleClass("active",!0===e(i)[0].validity.badInput):n.siblings("label").removeClass("active")})};var i="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";e(document).on("change",i,function(){0===e(this).val().length&&void 0===e(this).attr("placeholder")||e(this).siblings("label").addClass("active"),validate_field(e(this))}),e(document).ready(function(){Materialize.updateTextFields()}),e(document).on("reset",function(t){var n=e(t.target);n.is("form")&&(n.find(i).removeClass("valid").removeClass("invalid"),n.find(i).each(function(){""===e(this).attr("value")&&e(this).siblings("label").removeClass("active")}),n.find("select.initialized").each(function(){var e=n.find("option[selected]").text();n.siblings("input.select-dropdown").val(e)}))}),e(document).on("focus",i,function(){e(this).siblings("label, .prefix").addClass("active")}),e(document).on("blur",i,function(){var t=e(this),i=".prefix";0===t.val().length&&!0!==t[0].validity.badInput&&void 0===t.attr("placeholder")&&(i+=", label"),t.siblings(i).removeClass("active"),validate_field(t)}),window.validate_field=function(e){var t=void 0!==e.attr("data-length"),i=parseInt(e.attr("data-length")),n=e.val().length;0!==e.val().length||!1!==e[0].validity.badInput||e.is(":required")?e.hasClass("validate")&&(e.is(":valid")&&t&&n<=i||e.is(":valid")&&!t?(e.removeClass("invalid"),e.addClass("valid")):(e.removeClass("valid"),e.addClass("invalid"))):e.hasClass("validate")&&(e.removeClass("valid"),e.removeClass("invalid"))},e(document).on("keyup.radio","input[type=radio], input[type=checkbox]",function(t){if(9===t.which)return e(this).addClass("tabbed"),void e(this).one("blur",function(t){e(this).removeClass("tabbed")})});var n=e(".hiddendiv").first();n.length||(n=e('<div class="hiddendiv common"></div>'),e("body").append(n)),e(".materialize-textarea").each(function(){var t=e(this);t.data("original-height",t.height()),t.data("previous-length",t.val().length)}),e("body").on("keyup keydown autoresize",".materialize-textarea",function(){t(e(this))}),e(document).on("change",'.file-field input[type="file"]',function(){for(var t=e(this).closest(".file-field").find("input.file-path"),i=e(this)[0].files,n=[],o=0;o<i.length;o++)n.push(i[o].name);t.val(n.join(", ")),t.trigger("change")});var o="input[type=range]",s=!1;e(o).each(function(){var t=e('<span class="thumb"><span class="value"></span></span>');e(this).after(t)});var r=function(e){var t=-7+parseInt(e.parent().css("padding-left"))+"px";e.velocity({height:"30px",width:"30px",top:"-30px",marginLeft:t},{duration:300,easing:"easeOutExpo"})},a=function(e){var t=e.width()-15,i=parseFloat(e.attr("max")),n=parseFloat(e.attr("min"));return(parseFloat(e.val())-n)/(i-n)*t};e(document).on("change",o,function(t){var i=e(this).siblings(".thumb");i.find(".value").html(e(this).val()),i.hasClass("active")||r(i);var n=a(e(this));i.addClass("active").css("left",n)}),e(document).on("mousedown touchstart",o,function(t){var i=e(this).siblings(".thumb");if(i.length<=0&&(i=e('<span class="thumb"><span class="value"></span></span>'),e(this).after(i)),i.find(".value").html(e(this).val()),s=!0,e(this).addClass("active"),i.hasClass("active")||r(i),"input"!==t.type){var n=a(e(this));i.addClass("active").css("left",n)}}),e(document).on("mouseup touchend",".range-field",function(){s=!1,e(this).removeClass("active")}),e(document).on("input mousemove touchmove",".range-field",function(t){var i=e(this).children(".thumb"),n=e(this).find(o);if(s){i.hasClass("active")||r(i);var l=a(n);i.addClass("active").css("left",l),i.find(".value").html(i.siblings(o).val())}}),e(document).on("mouseout touchleave",".range-field",function(){if(!s){var t=e(this).children(".thumb"),i=7+parseInt(e(this).css("padding-left"))+"px";t.hasClass("active")&&t.velocity({height:"0",width:"0",top:"10px",marginLeft:i},{duration:100}),t.removeClass("active")}}),e.fn.autocomplete=function(t){var i={data:{},limit:1/0,onAutocomplete:null,minLength:1};return t=e.extend(i,t),this.each(function(){var i,n=e(this),o=t.data,s=0,r=-1,a=n.closest(".input-field");if(e.isEmptyObject(o))n.off("keyup.autocomplete focus.autocomplete");else{var l,c=e('<ul class="autocomplete-content dropdown-content"></ul>');a.length?(l=a.children(".autocomplete-content.dropdown-content").first()).length||a.append(c):(l=n.next(".autocomplete-content.dropdown-content")).length||n.after(c),l.length&&(c=l);var u=function(e,t){var i=t.find("img"),n=t.text().toLowerCase().indexOf(""+e.toLowerCase()),o=n+e.length-1,s=t.text().slice(0,n),r=t.text().slice(n,o+1),a=t.text().slice(o+1);t.html("<span>"+s+"<span class='highlight'>"+r+"</span>"+a+"</span>"),i.length&&t.prepend(i)},h=function(){r=-1,c.find(".active").removeClass("active")},d=function(){c.empty(),h(),i=void 0};n.off("blur.autocomplete").on("blur.autocomplete",function(){d()}),n.off("keyup.autocomplete focus.autocomplete").on("keyup.autocomplete focus.autocomplete",function(r){s=0;var a=n.val().toLowerCase();if(13!==r.which&&38!==r.which&&40!==r.which){if(i!==a&&(d(),a.length>=t.minLength))for(var l in o)if(o.hasOwnProperty(l)&&-1!==l.toLowerCase().indexOf(a)){if(s>=t.limit)break;var h=e("<li></li>");o[l]?h.append('<img src="'+o[l]+'" class="right circle"><span>'+l+"</span>"):h.append("<span>"+l+"</span>"),c.append(h),u(a,h),s++}i=a}}),n.off("keydown.autocomplete").on("keydown.autocomplete",function(e){var t,i=e.which,n=c.children("li").length,o=c.children(".active").first();13===i&&r>=0?(t=c.children("li").eq(r)).length&&(t.trigger("mousedown.autocomplete"),e.preventDefault()):38!==i&&40!==i||(e.preventDefault(),38===i&&r>0&&r--,40===i&&r<n-1&&r++,o.removeClass("active"),r>=0&&c.children("li").eq(r).addClass("active"))}),c.off("mousedown.autocomplete touchstart.autocomplete").on("mousedown.autocomplete touchstart.autocomplete","li",function(){var i=e(this).text().trim();n.val(i),n.trigger("change"),d(),"function"==typeof t.onAutocomplete&&t.onAutocomplete.call(this,i)})}})}}),e.fn.material_select=function(t){function i(e,t,i){var o=e.indexOf(t),s=-1===o;return s?e.push(t):e.splice(o,1),i.siblings("ul.dropdown-content").find("li:not(.optgroup)").eq(t).toggleClass("active"),i.find("option").eq(t).prop("selected",s),n(e,i),s}function n(e,t){for(var i="",n=0,o=e.length;n<o;n++){var s=t.find("option").eq(e[n]).text();i+=0===n?s:", "+s}""===i&&(i=t.find("option:disabled").eq(0).text()),t.siblings("input.select-dropdown").val(i)}e(this).each(function(){var n=e(this);if(!n.hasClass("browser-default")){var o=!!n.attr("multiple"),s=n.attr("data-select-id");if(s&&(n.parent().find("span.caret").remove(),n.parent().find("input").remove(),n.unwrap(),e("ul#select-options-"+s).remove()),"destroy"===t)return n.removeAttr("data-select-id").removeClass("initialized"),void e(window).off("click.select");var r=Materialize.guid();n.attr("data-select-id",r);var a=e('<div class="select-wrapper"></div>');a.addClass(n.attr("class")),n.is(":disabled")&&a.addClass("disabled");var l=e('<ul id="select-options-'+r+'" class="dropdown-content select-dropdown '+(o?"multiple-select-dropdown":"")+'"></ul>'),c=n.children("option, optgroup"),u=[],h=!1,d=n.find("option:selected").html()||n.find("option:first").html()||"",p=function(t,i,n){var s=i.is(":disabled")?"disabled ":"",r="optgroup-option"===n?"optgroup-option ":"",a=o?'<input type="checkbox"'+s+"/><label></label>":"",c=i.data("icon"),u=i.attr("class");if(c){var h="";return u&&(h=' class="'+u+'"'),l.append(e('<li class="'+s+r+'"><img alt="" src="'+c+'"'+h+"><span>"+a+i.html()+"</span></li>")),!0}l.append(e('<li class="'+s+r+'"><span>'+a+i.html()+"</span></li>"))};c.length&&c.each(function(){if(e(this).is("option"))o?p(0,e(this),"multiple"):p(0,e(this));else if(e(this).is("optgroup")){var t=e(this).children("option");l.append(e('<li class="optgroup"><span>'+e(this).attr("label")+"</span></li>")),t.each(function(){p(0,e(this),"optgroup-option")})}}),l.find("li:not(.optgroup)").each(function(s){e(this).click(function(r){if(!e(this).hasClass("disabled")&&!e(this).hasClass("optgroup")){var a=!0;o?(e('input[type="checkbox"]',this).prop("checked",function(e,t){return!t}),a=i(u,s,n),g.trigger("focus")):(l.find("li").removeClass("active"),e(this).toggleClass("active"),g.val(e(this).text())),v(l,e(this)),n.find("option").eq(s).prop("selected",a),n.trigger("change"),void 0!==t&&t()}r.stopPropagation()})}),n.wrap(a);var f=e('<span class="caret">▼</span>'),m=d.replace(/"/g,"""),g=e('<input type="text" class="select-dropdown" readonly="true" '+(n.is(":disabled")?"disabled":"")+' data-activates="select-options-'+r+'" value="'+m+'"/>');n.before(g),g.before(f),g.after(l),n.is(":disabled")||g.dropdown({hover:!1}),n.attr("tabindex")&&e(g[0]).attr("tabindex",n.attr("tabindex")),n.addClass("initialized"),g.on({focus:function(){if(e("ul.select-dropdown").not(l[0]).is(":visible")&&(e("input.select-dropdown").trigger("close"),e(window).off("click.select")),!l.is(":visible")){e(this).trigger("open",["focus"]);var t=e(this).val();o&&t.indexOf(",")>=0&&(t=t.split(",")[0]);var i=l.find("li").filter(function(){return e(this).text().toLowerCase()===t.toLowerCase()})[0];v(l,i,!0),e(window).off("click.select").on("click.select",function(){o&&(h||g.trigger("close")),e(window).off("click.select")})}},click:function(e){e.stopPropagation()}}),g.on("blur",function(){o||(e(this).trigger("close"),e(window).off("click.select")),l.find("li.selected").removeClass("selected")}),l.hover(function(){h=!0},function(){h=!1}),o&&n.find("option:selected:not(:disabled)").each(function(){var e=this.index;i(u,e,n),l.find("li:not(.optgroup)").eq(e).find(":checkbox").prop("checked",!0)});var v=function(t,i,n){if(i){t.find("li.selected").removeClass("selected");var s=e(i);s.addClass("selected"),o&&!n||l.scrollTo(s)}},y=[];g.on("keydown",function(t){if(9!=t.which)if(40!=t.which||l.is(":visible")){if(13!=t.which||l.is(":visible")){t.preventDefault();var i=String.fromCharCode(t.which).toLowerCase(),n=[9,13,27,38,40];if(i&&-1===n.indexOf(t.which)){y.push(i);var s=y.join(""),r=l.find("li").filter(function(){return 0===e(this).text().toLowerCase().indexOf(s)})[0];r&&v(l,r)}if(13==t.which){var a=l.find("li.selected:not(.disabled)")[0];a&&(e(a).trigger("click"),o||g.trigger("close"))}40==t.which&&(r=l.find("li.selected").length?l.find("li.selected").next("li:not(.disabled)")[0]:l.find("li:not(.disabled)")[0],v(l,r)),27==t.which&&g.trigger("close"),38==t.which&&(r=l.find("li.selected").prev("li:not(.disabled)")[0])&&v(l,r),setTimeout(function(){y=[]},1e3)}}else g.trigger("open");else g.trigger("close")})}})}}(jQuery),function(e){var t={init:function(t){var i={indicators:!0,height:400,transition:500,interval:6e3};return t=e.extend(i,t),this.each(function(){function i(e,t){e.hasClass("center-align")?e.velocity({opacity:0,translateY:-100},{duration:t,queue:!1}):e.hasClass("right-align")?e.velocity({opacity:0,translateX:100},{duration:t,queue:!1}):e.hasClass("left-align")&&e.velocity({opacity:0,translateX:-100},{duration:t,queue:!1})}function n(e){e>=c.length?e=0:e<0&&(e=c.length-1),(u=l.find(".active").index())!=e&&(o=c.eq(u),$caption=o.find(".caption"),o.removeClass("active"),o.velocity({opacity:0},{duration:t.transition,queue:!1,easing:"easeOutQuad",complete:function(){c.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),i($caption,t.transition),t.indicators&&s.eq(u).removeClass("active"),c.eq(e).velocity({opacity:1},{duration:t.transition,queue:!1,easing:"easeOutQuad"}),c.eq(e).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:t.transition,delay:t.transition,queue:!1,easing:"easeOutQuad"}),c.eq(e).addClass("active"),t.indicators&&s.eq(e).addClass("active"))}var o,s,r,a=e(this),l=a.find("ul.slides").first(),c=l.find("> li"),u=l.find(".active").index();-1!=u&&(o=c.eq(u)),a.hasClass("fullscreen")||(t.indicators?a.height(t.height+40):a.height(t.height),l.height(t.height)),c.find(".caption").each(function(){i(e(this),0)}),c.find("img").each(function(){var t="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";e(this).attr("src")!==t&&(e(this).css("background-image",'url("'+e(this).attr("src")+'")'),e(this).attr("src",t))}),t.indicators&&(s=e('<ul class="indicators"></ul>'),c.each(function(i){var o=e('<li class="indicator-item"></li>');o.click(function(){n(l.parent().find(e(this)).index()),clearInterval(r),r=setInterval(function(){u=l.find(".active").index(),c.length==u+1?u=0:u+=1,n(u)},t.transition+t.interval)}),s.append(o)}),a.append(s),s=a.find("ul.indicators").find("li.indicator-item")),o?o.show():(c.first().addClass("active").velocity({opacity:1},{duration:t.transition,queue:!1,easing:"easeOutQuad"}),u=0,o=c.eq(u),t.indicators&&s.eq(u).addClass("active")),o.find("img").each(function(){o.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:t.transition,queue:!1,easing:"easeOutQuad"})}),r=setInterval(function(){n((u=l.find(".active").index())+1)},t.transition+t.interval);var h=!1,d=!1,p=!1;a.hammer({prevent_default:!1}).on("pan",function(e){if("touch"===e.gesture.pointerType){clearInterval(r);var t=e.gesture.direction,i=e.gesture.deltaX,n=e.gesture.velocityX,o=e.gesture.velocityY;$curr_slide=l.find(".active"),Math.abs(n)>Math.abs(o)&&$curr_slide.velocity({translateX:i},{duration:50,queue:!1,easing:"easeOutQuad"}),4===t&&(i>a.innerWidth()/2||n<-.65)?p=!0:2===t&&(i<-1*a.innerWidth()/2||n>.65)&&(d=!0);var s;d&&(0===(s=$curr_slide.next()).length&&(s=c.first()),s.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),p&&(0===(s=$curr_slide.prev()).length&&(s=c.last()),s.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).on("panend",function(e){"touch"===e.gesture.pointerType&&($curr_slide=l.find(".active"),h=!1,curr_index=l.find(".active").index(),!p&&!d||c.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):d?(n(curr_index+1),$curr_slide.velocity({translateX:-1*a.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):p&&(n(curr_index-1),$curr_slide.velocity({translateX:a.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})),d=!1,p=!1,clearInterval(r),r=setInterval(function(){u=l.find(".active").index(),c.length==u+1?u=0:u+=1,n(u)},t.transition+t.interval))}),a.on("sliderPause",function(){clearInterval(r)}),a.on("sliderStart",function(){clearInterval(r),r=setInterval(function(){u=l.find(".active").index(),c.length==u+1?u=0:u+=1,n(u)},t.transition+t.interval)}),a.on("sliderNext",function(){n((u=l.find(".active").index())+1)}),a.on("sliderPrev",function(){n((u=l.find(".active").index())-1)})})},pause:function(){e(this).trigger("sliderPause")},start:function(){e(this).trigger("sliderStart")},next:function(){e(this).trigger("sliderNext")},prev:function(){e(this).trigger("sliderPrev")}};e.fn.slider=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist on jQuery.tooltip"):t.init.apply(this,arguments)}}(jQuery),function(e){e(document).ready(function(){e(document).on("click.card",".card",function(t){if(e(this).find("> .card-reveal").length){var i=e(t.target).closest(".card");void 0===i.data("initialOverflow")&&i.data("initialOverflow",void 0===i.css("overflow")?"":i.css("overflow")),e(t.target).is(e(".card-reveal .card-title"))||e(t.target).is(e(".card-reveal .card-title i"))?e(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){e(this).css({display:"none"}),i.css("overflow",i.data("initialOverflow"))}}):(e(t.target).is(e(".card .activator"))||e(t.target).is(e(".card .activator i")))&&(i.css("overflow","hidden"),e(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"}))}})})}(jQuery),function(e){var t={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{}};e(document).ready(function(){e(document).on("click",".chip .close",function(t){e(this).closest(".chips").attr("data-initialized")||e(this).closest(".chip").remove()})}),e.fn.material_chip=function(i){var n=this;if(this.$el=e(this),this.$document=e(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".material-icons",SELECTED_CHIP:".selected"},"data"===i)return this.$el.data("chips");var o=e.extend({},t,i);n.hasAutocomplete=!e.isEmptyObject(o.autocompleteOptions.data),this.init=function(){var t=0;n.$el.each(function(){var i=e(this),s=Materialize.guid();n.chipId=s,o.data&&o.data instanceof Array||(o.data=[]),i.data("chips",o.data),i.attr("data-index",t),i.attr("data-initialized",!0),i.hasClass(n.SELS.CHIPS)||i.addClass("chips"),n.chips(i,s),t++})},this.handleEvents=function(){var t=n.SELS;n.$document.off("click.chips-focus",t.CHIPS).on("click.chips-focus",t.CHIPS,function(i){e(i.target).find(t.INPUT).focus()}),n.$document.off("click.chips-select",t.CHIP).on("click.chips-select",t.CHIP,function(i){var o=e(i.target);if(o.length){var s=o.hasClass("selected"),r=o.closest(t.CHIPS);e(t.CHIP).removeClass("selected"),s||n.selectChip(o.index(),r)}}),n.$document.off("keydown.chips").on("keydown.chips",function(i){if(!e(i.target).is("input, textarea")){var o,s=n.$document.find(t.CHIP+t.SELECTED_CHIP),r=s.closest(t.CHIPS),a=s.siblings(t.CHIP).length;if(s.length)if(8===i.which||46===i.which){i.preventDefault(),o=s.index(),n.deleteChip(o,r);var l=null;o+1<a?l=o:o!==a&&o+1!==a||(l=a-1),l<0&&(l=null),null!==l&&n.selectChip(l,r),a||r.find("input").focus()}else if(37===i.which){if((o=s.index()-1)<0)return;e(t.CHIP).removeClass("selected"),n.selectChip(o,r)}else if(39===i.which){if(o=s.index()+1,e(t.CHIP).removeClass("selected"),o>a)return void r.find("input").focus();n.selectChip(o,r)}}}),n.$document.off("focusin.chips",t.CHIPS+" "+t.INPUT).on("focusin.chips",t.CHIPS+" "+t.INPUT,function(i){var n=e(i.target).closest(t.CHIPS);n.addClass("focus"),n.siblings("label, .prefix").addClass("active"),e(t.CHIP).removeClass("selected")}),n.$document.off("focusout.chips",t.CHIPS+" "+t.INPUT).on("focusout.chips",t.CHIPS+" "+t.INPUT,function(i){var n=e(i.target).closest(t.CHIPS);n.removeClass("focus"),void 0!==n.data("chips")&&n.data("chips").length||n.siblings("label").removeClass("active"),n.siblings(".prefix").removeClass("active")}),n.$document.off("keydown.chips-add",t.CHIPS+" "+t.INPUT).on("keydown.chips-add",t.CHIPS+" "+t.INPUT,function(i){var o=e(i.target),s=o.closest(t.CHIPS),r=s.children(t.CHIP).length;if(13===i.which){if(n.hasAutocomplete&&s.find(".autocomplete-content.dropdown-content").length&&s.find(".autocomplete-content.dropdown-content").children().length)return;return i.preventDefault(),n.addChip({tag:o.val()},s),void o.val("")}if((8===i.keyCode||37===i.keyCode)&&""===o.val()&&r)return i.preventDefault(),n.selectChip(r-1,s),void o.blur()}),n.$document.off("click.chips-delete",t.CHIPS+" "+t.DELETE).on("click.chips-delete",t.CHIPS+" "+t.DELETE,function(i){var o=e(i.target),s=o.closest(t.CHIPS),r=o.closest(t.CHIP);i.stopPropagation(),n.deleteChip(r.index(),s),s.find("input").focus()})},this.chips=function(t,i){t.empty(),t.data("chips").forEach(function(e){t.append(n.renderChip(e))}),t.append(e('<input id="'+i+'" class="input" placeholder="">')),n.setPlaceholder(t);var s=t.next("label");s.length&&(s.attr("for",i),void 0!==t.data("chips")&&t.data("chips").length&&s.addClass("active"));var r=e("#"+i);n.hasAutocomplete&&(o.autocompleteOptions.onAutocomplete=function(e){n.addChip({tag:e},t),r.val(""),r.focus()},r.autocomplete(o.autocompleteOptions))},this.renderChip=function(t){if(t.tag){var i=e('<div class="chip"></div>');return i.text(t.tag),t.image&&i.prepend(e("<img />").attr("src",t.image)),i.append(e('<i class="material-icons close">close</i>')),i}},this.setPlaceholder=function(e){void 0!==e.data("chips")&&!e.data("chips").length&&o.placeholder?e.find("input").prop("placeholder",o.placeholder):(void 0===e.data("chips")||e.data("chips").length)&&o.secondaryPlaceholder&&e.find("input").prop("placeholder",o.secondaryPlaceholder)},this.isValid=function(e,t){for(var i=e.data("chips"),n=!1,o=0;o<i.length;o++)if(i[o].tag===t.tag)return void(n=!0);return""!==t.tag&&!n},this.addChip=function(e,t){if(n.isValid(t,e)){for(var i=n.renderChip(e),o=[],s=t.data("chips"),r=0;r<s.length;r++)o.push(s[r]);o.push(e),t.data("chips",o),i.insertBefore(t.find("input")),t.trigger("chip.add",e),n.setPlaceholder(t)}},this.deleteChip=function(e,t){var i=t.data("chips")[e];t.find(".chip").eq(e).remove();for(var o=[],s=t.data("chips"),r=0;r<s.length;r++)r!==e&&o.push(s[r]);t.data("chips",o),t.trigger("chip.delete",i),n.setPlaceholder(t)},this.selectChip=function(e,t){var i=t.find(".chip").eq(e);i&&!1===i.hasClass("selected")&&(i.addClass("selected"),t.trigger("chip.select",t.data("chips")[e]))},this.getChipsElement=function(e,t){return t.eq(e)},this.init(),this.handleEvents()}}(jQuery),function(e){e.fn.pushpin=function(t){var i={top:0,bottom:1/0,offset:0};return"remove"===t?(this.each(function(){(id=e(this).data("pushpin-id"))&&(e(window).off("scroll."+id),e(this).removeData("pushpin-id").removeClass("pin-top pinned pin-bottom").removeAttr("style"))}),!1):(t=e.extend(i,t),$index=0,this.each(function(){function i(e){e.removeClass("pin-top"),e.removeClass("pinned"),e.removeClass("pin-bottom")}function n(n,o){n.each(function(){t.top<=o&&t.bottom>=o&&!e(this).hasClass("pinned")&&(i(e(this)),e(this).css("top",t.offset),e(this).addClass("pinned")),o<t.top&&!e(this).hasClass("pin-top")&&(i(e(this)),e(this).css("top",0),e(this).addClass("pin-top")),o>t.bottom&&!e(this).hasClass("pin-bottom")&&(i(e(this)),e(this).addClass("pin-bottom"),e(this).css("top",t.bottom-r))})}var o=Materialize.guid(),s=e(this),r=e(this).offset().top;e(this).data("pushpin-id",o),n(s,e(window).scrollTop()),e(window).on("scroll."+o,function(){var i=e(window).scrollTop()+t.offset;n(s,i)})}))}}(jQuery),function(e){e(document).ready(function(){e.fn.reverse=[].reverse,e(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(i){var n=e(this);t(n)}),e(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(t){var n=e(this);i(n)}),e(document).on("click.fabClickToggle",".fixed-action-btn.click-to-toggle > a",function(n){var o=e(this).parent();o.hasClass("active")?i(o):t(o)}),e(document).on("click.fabToolbar",".fixed-action-btn.toolbar > a",function(t){var i=e(this).parent();n(i)})}),e.fn.extend({openFAB:function(){t(e(this))},closeFAB:function(){i(e(this))},openToolbar:function(){n(e(this))},closeToolbar:function(){o(e(this))}});var t=function(t){var i=t;if(!1===i.hasClass("active")){var n,o;!0===i.hasClass("horizontal")?o=40:n=40,i.addClass("active"),i.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:n+"px",translateX:o+"px"},{duration:0});var s=0;i.find("ul .btn-floating").reverse().each(function(){e(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:s}),s+=40})}},i=function(e){var t,i,n=e;!0===n.hasClass("horizontal")?i=40:t=40,n.removeClass("active"),n.find("ul .btn-floating").velocity("stop",!0),n.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:t+"px",translateX:i+"px"},{duration:80})},n=function(t){if("true"!==t.attr("data-open")){var i,n,s,r=window.innerWidth,a=window.innerHeight,l=t[0].getBoundingClientRect(),c=t.find("> a").first(),u=t.find("> ul").first(),h=e('<div class="fab-backdrop"></div>'),d=c.css("background-color");c.append(h),i=l.left-r/2+l.width/2,n=a-l.bottom,s=r/h.width(),t.attr("data-origin-bottom",l.bottom),t.attr("data-origin-left",l.left),t.attr("data-origin-width",l.width),t.addClass("active"),t.attr("data-open",!0),t.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+i+"px)",transition:"none"}),c.css({transform:"translateY("+-n+"px)",transition:"none"}),h.css({"background-color":d}),setTimeout(function(){t.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),c.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){t.css({overflow:"hidden","background-color":d}),h.css({transform:"scale("+s+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),u.find("> li > a").css({opacity:1}),e(window).on("scroll.fabToolbarClose",function(){o(t),e(window).off("scroll.fabToolbarClose"),e(document).off("click.fabToolbarClose")}),e(document).on("click.fabToolbarClose",function(i){e(i.target).closest(u).length||(o(t),e(window).off("scroll.fabToolbarClose"),e(document).off("click.fabToolbarClose"))})},100)},0)}},o=function(e){if("true"===e.attr("data-open")){var t,i,n=window.innerWidth,o=window.innerHeight,s=e.attr("data-origin-width"),r=e.attr("data-origin-bottom"),a=e.attr("data-origin-left"),l=e.find("> .btn-floating").first(),c=e.find("> ul").first(),u=e.find(".fab-backdrop"),h=l.css("background-color");t=a-n/2+s/2,i=o-r,u.width(),e.removeClass("active"),e.attr("data-open",!1),e.css({"background-color":"transparent",transition:"none"}),l.css({transition:"none"}),u.css({transform:"scale(0)","background-color":h}),c.find("> li > a").css({opacity:""}),setTimeout(function(){u.remove(),e.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t+"px,0,0)"}),l.css({overflow:"",transform:"translate3d(0,"+i+"px,0)"}),setTimeout(function(){e.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),l.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}}(jQuery),function(e){Materialize.fadeInImage=function(t){var i;if("string"==typeof t)i=e(t);else{if("object"!=typeof t)return;i=t}i.css({opacity:0}),e(i).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),e(i).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(t,i){i.start=100;var n=t/100,o=150-(100-t)/1.75;o<100&&(o=100),t>=0&&e(this).css({"-webkit-filter":"grayscale("+n+")brightness("+o+"%)",filter:"grayscale("+n+")brightness("+o+"%)"})}})},Materialize.showStaggeredList=function(t){var i;if("string"==typeof t)i=e(t);else{if("object"!=typeof t)return;i=t}var n=0;i.find("li").velocity({translateX:"-100px"},{duration:0}),i.find("li").each(function(){e(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:n,easing:[60,10]}),n+=120})},e(document).ready(function(){var t=!1,i=!1;e(".dismissable").each(function(){e(this).hammer({prevent_default:!1}).on("pan",function(n){if("touch"===n.gesture.pointerType){var o=e(this),s=n.gesture.direction,r=n.gesture.deltaX,a=n.gesture.velocityX;o.velocity({translateX:r},{duration:50,queue:!1,easing:"easeOutQuad"}),4===s&&(r>o.innerWidth()/2||a<-.75)&&(t=!0),2===s&&(r<-1*o.innerWidth()/2||a>.75)&&(i=!0)}}).on("panend",function(n){if(Math.abs(n.gesture.deltaX)<e(this).innerWidth()/2&&(i=!1,t=!1),"touch"===n.gesture.pointerType){var o=e(this);if(t||i){var s;s=t?o.innerWidth():-1*o.innerWidth(),o.velocity({translateX:s},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){o.css("border","none"),o.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){o.remove()}})}})}else o.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});t=!1,i=!1}})})})}(jQuery),function(e){var t=!1;Materialize.scrollFire=function(e){var i=function(){for(var t=window.pageYOffset+window.innerHeight,i=0;i<e.length;i++){var n=e[i],o=n.selector,s=n.offset,r=n.callback,a=document.querySelector(o);null!==a&&t>a.getBoundingClientRect().top+window.pageYOffset+s&&!0!==n.done&&("function"==typeof r?r.call(this,a):"string"==typeof r&&new Function(r)(a),n.done=!0)}},n=Materialize.throttle(function(){i()},e.throttle||100);t||(window.addEventListener("scroll",n),window.addEventListener("resize",n),t=!0),setTimeout(n,0)}}(jQuery),function(e){Materialize.Picker=e(jQuery)}(function(e){function t(s,a,u,h){function d(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",_.component.nodes(b.open),w.box),w.wrap),w.frame),w.holder)}function p(){k.data(a,_).addClass(w.input).attr("tabindex",-1).val(k.data("value")?_.get("select",x.format):s.value),x.editable||k.on("focus."+b.id+" click."+b.id,function(e){e.preventDefault(),_.$root.eq(0).focus()}).on("keydown."+b.id,g),o(s,{haspopup:!0,expanded:!1,readonly:!1,owns:s.id+"_root"})}function f(){_.$root.on({keydown:g,focusin:function(e){_.$root.removeClass(w.focused),e.stopPropagation()},"mousedown click":function(t){var i=t.target;i!=_.$root.children()[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(i).is("input, select, textarea, button, option")||(t.preventDefault(),_.$root.eq(0).focus()))}}).on({focus:function(){k.addClass(w.target)},blur:function(){k.removeClass(w.target)}}).on("focus.toOpen",v).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),i=t.data(),n=t.hasClass(w.navDisabled)||t.hasClass(w.disabled),o=r();o=o&&(o.type||o.href)&&o,(n||o&&!e.contains(_.$root[0],o))&&_.$root.eq(0).focus(),!n&&i.nav?_.set("highlight",_.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?(_.set("select",i.pick),x.closeOnSelect&&_.close(!0)):i.clear?(_.clear(),x.closeOnSelect&&_.close(!0)):i.close&&_.close(!0)}),o(_.$root[0],"hidden",!0)}function m(){var t;!0===x.hiddenName?(t=s.name,s.name=""):t=(t=["string"==typeof x.hiddenPrefix?x.hiddenPrefix:"","string"==typeof x.hiddenSuffix?x.hiddenSuffix:"_submit"])[0]+s.name+t[1],_._hidden=e('<input type=hidden name="'+t+'"'+(k.data("value")||s.value?' value="'+_.get("select",x.formatSubmit)+'"':"")+">")[0],k.on("change."+b.id,function(){_._hidden.value=s.value?_.get("select",x.formatSubmit):""}),x.container?e(x.container).append(_._hidden):k.before(_._hidden)}function g(e){var t=e.keyCode,i=/^(8|46)$/.test(t);if(27==t)return _.close(),!1;(32==t||i||!b.open&&_.component.key[t])&&(e.preventDefault(),e.stopPropagation(),i?_.clear().close():_.open())}function v(e){e.stopPropagation(),"focus"==e.type&&_.$root.addClass(w.focused),_.open()}if(!s)return t;var y=!1,b={id:s.id||"P"+Math.abs(~~(Math.random()*new Date))},x=u?e.extend(!0,{},u.defaults,h):h||{},w=e.extend({},t.klasses(),x.klass),k=e(s),C=function(){return this.start()},_=C.prototype={constructor:C,$node:k,start:function(){return b&&b.start?_:(b.methods={},b.start=!0,b.open=!1,b.type=s.type,s.autofocus=s==r(),s.readOnly=!x.editable,s.id=s.id||b.id,"text"!=s.type&&(s.type="text"),_.component=new u(_,x),_.$root=e(t._.node("div",d(),w.picker,'id="'+s.id+'_root" tabindex="0"')),f(),x.formatSubmit&&m(),p(),x.container?e(x.container).append(_.$root):k.before(_.$root),_.on({start:_.component.onStart,render:_.component.onRender,stop:_.component.onStop,open:_.component.onOpen,close:_.component.onClose,set:_.component.onSet}).on({start:x.onStart,render:x.onRender,stop:x.onStop,open:x.onOpen,close:x.onClose,set:x.onSet}),y=i(_.$root.children()[0]),s.autofocus&&_.open(),_.trigger("start").trigger("render"))},render:function(e){return e?_.$root.html(d()):_.$root.find("."+w.box).html(_.component.nodes(b.open)),_.trigger("render")},stop:function(){return b.start?(_.close(),_._hidden&&_._hidden.parentNode.removeChild(_._hidden),_.$root.remove(),k.removeClass(w.input).removeData(a),setTimeout(function(){k.off("."+b.id)},0),s.type=b.type,s.readOnly=!1,_.trigger("stop"),b.methods={},b.start=!1,_):_},open:function(i){return b.open?_:(k.addClass(w.active),o(s,"expanded",!0),setTimeout(function(){_.$root.addClass(w.opened),o(_.$root[0],"hidden",!1)},0),!1!==i&&(b.open=!0,y&&c.css("overflow","hidden").css("padding-right","+="+n()),_.$root.eq(0).focus(),l.on("click."+b.id+" focusin."+b.id,function(e){var t=e.target;t!=s&&t!=document&&3!=e.which&&_.close(t===_.$root.children()[0])}).on("keydown."+b.id,function(i){var n=i.keyCode,o=_.component.key[n],s=i.target;27==n?_.close(!0):s!=_.$root[0]||!o&&13!=n?e.contains(_.$root[0],s)&&13==n&&(i.preventDefault(),s.click()):(i.preventDefault(),o?t._.trigger(_.component.key.go,_,[t._.trigger(o)]):_.$root.find("."+w.highlighted).hasClass(w.disabled)||(_.set("select",_.component.item.highlight),x.closeOnSelect&&_.close(!0)))})),_.trigger("open"))},close:function(e){return e&&(_.$root.off("focus.toOpen").eq(0).focus(),setTimeout(function(){_.$root.on("focus.toOpen",v)},0)),k.removeClass(w.active),o(s,"expanded",!1),setTimeout(function(){_.$root.removeClass(w.opened+" "+w.focused),o(_.$root[0],"hidden",!0)},0),b.open?(b.open=!1,y&&c.css("overflow","").css("padding-right","-="+n()),l.off("."+b.id),_.trigger("close")):_},clear:function(e){return _.set("clear",null,e)},set:function(t,i,n){var o,s,r=e.isPlainObject(t),a=r?t:{};if(n=r&&e.isPlainObject(i)?i:n||{},t){r||(a[t]=i);for(o in a)s=a[o],o in _.component.item&&(void 0===s&&(s=null),_.component.set(o,s,n)),"select"!=o&&"clear"!=o||k.val("clear"==o?"":_.get(o,x.format)).trigger("change");_.render()}return n.muted?_:_.trigger("set",a)},get:function(e,i){if(e=e||"value",null!=b[e])return b[e];if("valueSubmit"==e){if(_._hidden)return _._hidden.value;e="value"}if("value"==e)return s.value;if(e in _.component.item){if("string"==typeof i){var n=_.component.get(e);return n?t._.trigger(_.component.formats.toString,_.component,[i,n]):""}return _.component.get(e)}},on:function(t,i,n){var o,s,r=e.isPlainObject(t),a=r?t:{};if(t){r||(a[t]=i);for(o in a)s=a[o],n&&(o="_"+o),b.methods[o]=b.methods[o]||[],b.methods[o].push(s)}return _},off:function(){var e,t,i=arguments;for(e=0,namesCount=i.length;e<namesCount;e+=1)(t=i[e])in b.methods&&delete b.methods[t];return _},trigger:function(e,i){var n=function(e){var n=b.methods[e];n&&n.map(function(e){t._.trigger(e,_,[i])})};return n("_"+e),n(e),_}};return new C}function i(e){var t;return e.currentStyle?t=e.currentStyle.position:window.getComputedStyle&&(t=getComputedStyle(e).position),"fixed"==t}function n(){if(c.height()<=a.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=t[0].offsetWidth;t.css("overflow","scroll");var n=e('<div style="width:100%" />').appendTo(t)[0].offsetWidth;return t.remove(),i-n}function o(t,i,n){if(e.isPlainObject(i))for(var o in i)s(t,o,i[o]);else s(t,i,n)}function s(e,t,i){e.setAttribute(("role"==t?"":"aria-")+t,i)}function r(){try{return document.activeElement}catch(e){}}var a=e(window),l=e(document),c=e(document.documentElement);return t.klasses=function(e){return e=e||"picker",{picker:e,opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},t._={group:function(e){for(var i,n="",o=t._.trigger(e.min,e);o<=t._.trigger(e.max,e,[o]);o+=e.i)i=t._.trigger(e.item,e,[o]),n+=t._.node(e.node,i[0],i[1],i[2]);return n},node:function(t,i,n,o){return i?(i=e.isArray(i)?i.join(""):i,n=n?' class="'+n+'"':"",o=o?" "+o:"","<"+t+n+o+">"+i+"</"+t+">"):""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,i){return"function"==typeof e?e.apply(t,i||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,i){e.isPlainObject(t)||(t={attribute:i}),i="";for(var n in t){var o=("role"==n?"":"aria-")+n;i+=null==t[n]?"":o+'="'+t[n]+'"'}return i}},t.extend=function(i,n){e.fn[i]=function(o,s){var r=this.data(i);return"picker"==o?r:r&&"string"==typeof o?t._.trigger(r[o],r,[s]):this.each(function(){e(this).data(i)||new t(this,i,n,o)})},e.fn[i].defaults=n.defaults},t}),function(e){e(Materialize.Picker,jQuery)}(function(e,t){function i(e,t){var i=this,n=e.$node[0],o=n.value,s=e.$node.data("value"),r=s||o,a=s?t.formatSubmit:t.format,l=function(){return n.currentStyle?"rtl"==n.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};i.settings=t,i.$node=e.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-function(e){return!0===e[0]?e.shift():-1}(i.item.disable),i.set("min",t.min).set("max",t.max).set("now"),r?i.set("select",r,{format:a}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var i=this.value;i&&(e.set("highlight",[e.get("view").year,i,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var i=this.value;i&&(e.set("highlight",[i,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var n=e._;i.prototype.set=function(e,t,i){var n=this,o=n.item;return null===t?("clear"==e&&(e="select"),o[e]=t,n):(o["enable"==e?"disable":"flip"==e?"enable":e]=n.queue[e].split(" ").map(function(o){return t=n[o](e,t,i)}).pop(),"select"==e?n.set("highlight",o.select,i):"highlight"==e?n.set("view",o.highlight,i):e.match(/^(flip|min|max|disable|enable)$/)&&(o.select&&n.disabled(o.select)&&n.set("select",o.select,i),o.highlight&&n.disabled(o.highlight)&&n.set("highlight",o.highlight,i)),n)},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,i,o){var s,r=this;return i=void 0===i?e:i,i==-1/0||i==1/0?s=i:t.isPlainObject(i)&&n.isInteger(i.pick)?i=i.obj:t.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=n.isDate(i)?i:r.create().obj):i=n.isInteger(i)||n.isDate(i)?r.normalize(new Date(i),o):r.now(e,i,o),{year:s||i.getFullYear(),month:s||i.getMonth(),date:s||i.getDate(),day:s||i.getDay(),obj:s||i,pick:s||i.getTime()}},i.prototype.createRange=function(e,i){var o=this,s=function(e){return!0===e||t.isArray(e)||n.isDate(e)?o.create(e):e};return n.isInteger(e)||(e=s(e)),n.isInteger(i)||(i=s(i)),n.isInteger(e)&&t.isPlainObject(i)?e=[i.year,i.month,i.date+e]:n.isInteger(i)&&t.isPlainObject(e)&&(i=[e.year,e.month,e.date+i]),{from:s(e),to:s(i)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var i=this;return e=i.createRange(e.from,e.to),t=i.createRange(t.from,t.to),i.withinRange(e,t.from)||i.withinRange(e,t.to)||i.withinRange(t,e.from)||i.withinRange(t,e.to)},i.prototype.now=function(e,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)},i.prototype.navigate=function(e,i,n){var o,s,r,a,l=t.isArray(i),c=t.isPlainObject(i),u=this.item.view;if(l||c){for(c?(s=i.year,r=i.month,a=i.date):(s=+i[0],r=+i[1],a=+i[2]),n&&n.nav&&u&&u.month!==r&&(s=u.year,r=u.month),s=(o=new Date(s,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=o.getMonth();new Date(s,r,a).getMonth()!==r;)a-=1;i=[s,r,a]}return i},i.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},i.prototype.measure=function(e,t){var i=this;return t?"string"==typeof t?t=i.parse(e,t):n.isInteger(t)&&(t=i.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},i.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},i.prototype.validate=function(e,i,o){var s,r,a,l,c=this,u=i,h=o&&o.interval?o.interval:1,d=-1===c.item.enable,p=c.item.min,f=c.item.max,m=d&&c.item.disable.filter(function(e){if(t.isArray(e)){var o=c.create(e).pick;o<i.pick?s=!0:o>i.pick&&(r=!0)}return n.isInteger(e)}).length;if((!o||!o.nav)&&(!d&&c.disabled(i)||d&&c.disabled(i)&&(m||s||r)||!d&&(i.pick<=p.pick||i.pick>=f.pick)))for(d&&!m&&(!r&&h>0||!s&&h<0)&&(h*=-1);c.disabled(i)&&(Math.abs(h)>1&&(i.month<u.month||i.month>u.month)&&(i=u,h=h>0?1:-1),i.pick<=p.pick?(a=!0,h=1,i=c.create([p.year,p.month,p.date+(i.pick===p.pick?0:-1)])):i.pick>=f.pick&&(l=!0,h=-1,i=c.create([f.year,f.month,f.date+(i.pick===f.pick?0:1)])),!a||!l);)i=c.create([i.year,i.month,i.date+h]);return i},i.prototype.disabled=function(e){var i=this,o=i.item.disable.filter(function(o){return n.isInteger(o)?e.day===(i.settings.firstDay?o:o-1)%7:t.isArray(o)||n.isDate(o)?e.pick===i.create(o).pick:t.isPlainObject(o)?i.withinRange(o,e):void 0});return o=o.length&&!o.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===i.item.enable?!o:o||e.pick<i.item.min.pick||e.pick>i.item.max.pick},i.prototype.parse=function(e,t,i){var o=this,s={};return t&&"string"==typeof t?(i&&i.format||((i=i||{}).format=o.settings.format),o.formats.toArray(i.format).map(function(e){var i=o.formats[e],r=i?n.trigger(i,o,[t,s]):e.replace(/^!/,"").length;i&&(s[e]=t.substr(0,r)),t=t.substr(r)}),[s.yyyy||s.yy,+(s.mm||s.m)-1,s.dd||s.d]):t},i.prototype.formats=function(){function e(e,t,i){var n=e.match(/\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(n)+1),n.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?n.digits(e):t.date},dd:function(e,t){return e?2:n.lead(t.date)},ddd:function(e,i){return e?t(e):this.settings.weekdaysShort[i.day]},dddd:function(e,i){return e?t(e):this.settings.weekdaysFull[i.day]},m:function(e,t){return e?n.digits(e):t.month+1},mm:function(e,t){return e?2:n.lead(t.month+1)},mmm:function(t,i){var n=this.settings.monthsShort;return t?e(t,n,i):n[i.month]},mmmm:function(t,i){var n=this.settings.monthsFull;return t?e(t,n,i):n[i.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return n.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}}}(),i.prototype.isDateExact=function(e,i){var o=this;return n.isInteger(e)&&n.isInteger(i)||"boolean"==typeof e&&"boolean"==typeof i?e===i:(n.isDate(e)||t.isArray(e))&&(n.isDate(i)||t.isArray(i))?o.create(e).pick===o.create(i).pick:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&o.isDateExact(e.from,i.from)&&o.isDateExact(e.to,i.to)},i.prototype.isDateOverlap=function(e,i){var o=this,s=o.settings.firstDay?1:0;return n.isInteger(e)&&(n.isDate(i)||t.isArray(i))?(e=e%7+s)===o.create(i).day+1:n.isInteger(i)&&(n.isDate(e)||t.isArray(e))?(i=i%7+s)===o.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&o.overlapRanges(e,i)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},i.prototype.deactivate=function(e,i){var o=this,s=o.item.disable.slice(0);return"flip"==i?o.flipEnable():!1===i?(o.flipEnable(1),s=[]):!0===i?(o.flipEnable(-1),s=[]):i.map(function(e){for(var i,r=0;r<s.length;r+=1)if(o.isDateExact(e,s[r])){i=!0;break}i||(n.isInteger(e)||n.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&s.push(e)}),s},i.prototype.activate=function(e,i){var o=this,s=o.item.disable,r=s.length;return"flip"==i?o.flipEnable():!0===i?(o.flipEnable(1),s=[]):!1===i?(o.flipEnable(-1),s=[]):i.map(function(e){var i,a,l,c;for(l=0;l<r;l+=1){if(a=s[l],o.isDateExact(a,e)){i=s[l]=null,c=!0;break}if(o.isDateOverlap(a,e)){t.isPlainObject(e)?(e.inverted=!0,i=e):t.isArray(e)?(i=e)[3]||i.push("inverted"):n.isDate(e)&&(i=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(i)for(l=0;l<r;l+=1)if(o.isDateExact(s[l],e)){s[l]=null;break}if(c)for(l=0;l<r;l+=1)if(o.isDateOverlap(s[l],e)){s[l]=null;break}i&&s.push(i)}),s.filter(function(e){return null!=e})},i.prototype.nodes=function(e){var t=this,i=t.settings,o=t.item,s=o.now,r=o.select,a=o.highlight,l=o.view,c=o.disable,u=o.min,h=o.max,d=function(e,t){return i.firstDay&&(e.push(e.shift()),t.push(t.shift())),n.node("thead",n.node("tr",n.group({min:0,max:6,i:1,node:"th",item:function(n){return[e[n],i.klass.weekdays,'scope=col title="'+t[n]+'"']}})))}((i.showWeekdaysFull?i.weekdaysFull:i.weekdaysLetter).slice(0),i.weekdaysFull.slice(0)),p=function(e){return n.node("div"," ",i.klass["nav"+(e?"Next":"Prev")]+(e&&l.year>=h.year&&l.month>=h.month||!e&&l.year<=u.year&&l.month<=u.month?" "+i.klass.navDisabled:""),"data-nav="+(e||-1)+" "+n.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?i.labelMonthNext:i.labelMonthPrev)+'"')},f=function(o){var s=i.showMonthsShort?i.monthsShort:i.monthsFull;return"short_months"==o&&(s=i.monthsShort),i.selectMonths&&void 0==o?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(e){return[s[e],0,"value="+e+(l.month==e?" selected":"")+(l.year==u.year&&e<u.month||l.year==h.year&&e>h.month?" disabled":"")]}}),i.klass.selectMonth+" browser-default",(e?"":"disabled")+" "+n.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):"short_months"==o?null!=r?s[r.month]:s[l.month]:n.node("div",s[l.month],i.klass.month)},m=function(o){var s=l.year,a=!0===i.selectYears?5:~~(i.selectYears/2);if(a){var c=u.year,d=h.year,p=s-a,f=s+a;if(c>p&&(f+=c-p,p=c),d<f){var m=p-c,g=f-d;p-=m>g?g:m,f=d}if(i.selectYears&&void 0==o)return n.node("select",n.group({min:p,max:f,i:1,node:"option",item:function(e){return[e,0,"value="+e+(s==e?" selected":"")]}}),i.klass.selectYear+" browser-default",(e?"":"disabled")+" "+n.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return"raw"===o&&null!=r?n.node("div",r.year):n.node("div",s,i.klass.year)};return createDayLabel=function(){return null!=r?r.date:s.date},createWeekdayLabel=function(){var e;return e=null!=r?r.day:s.day,i.weekdaysShort[e]},n.node("div",n.node("div",m("raw"),i.klass.year_display)+n.node("span",createWeekdayLabel()+", ","picker__weekday-display")+n.node("span",f("short_months")+" ",i.klass.month_display)+n.node("span",createDayLabel(),i.klass.day_display),i.klass.date_display)+n.node("div",n.node("div",n.node("div",(i.selectYears,f()+m()+p()+p(1)),i.klass.header)+n.node("table",d+n.node("tbody",n.group({min:0,max:5,i:1,node:"tr",item:function(e){var o=i.firstDay&&0===t.create([l.year,l.month,1]).day?-7:0;return[n.group({min:7*e-l.day+o+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=t.create([l.year,l.month,e+(i.firstDay?1:0)]);var o=r&&r.pick==e.pick,d=a&&a.pick==e.pick,p=c&&t.disabled(e)||e.pick<u.pick||e.pick>h.pick,f=n.trigger(t.formats.toString,t,[i.format,e]);return[n.node("div",e.date,function(t){return t.push(l.month==e.month?i.klass.infocus:i.klass.outfocus),s.pick==e.pick&&t.push(i.klass.now),o&&t.push(i.klass.selected),d&&t.push(i.klass.highlighted),p&&t.push(i.klass.disabled),t.join(" ")}([i.klass.day]),"data-pick="+e.pick+" "+n.ariaAttr({role:"gridcell",label:f,selected:!(!o||t.$node.val()!==f)||null,activedescendant:!!d||null,disabled:!!p||null})+" "+(p?"":'tabindex="0"')),"",n.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+t.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0})),i.klass.calendar_container)+n.node("div",n.node("button",i.today,"btn-flat picker__today waves-effect","type=button data-pick="+s.pick+(e&&!t.disabled(s)?"":" disabled")+" "+n.ariaAttr({controls:t.$node[0].id}))+n.node("button",i.clear,"btn-flat picker__clear waves-effect","type=button data-clear=1"+(e?"":" disabled")+" "+n.ariaAttr({controls:t.$node[0].id}))+n.node("button",i.close,"btn-flat picker__close waves-effect","type=button data-close=true "+(e?"":" disabled")+" "+n.ariaAttr({controls:t.$node[0].id})),i.klass.footer),"picker__container__wrapper")},i.defaults=function(e){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Ok",closeOnSelect:!1,format:"d mmmm, yyyy",klass:{table:e+"table",header:e+"header",date_display:e+"date-display",day_display:e+"day-display",month_display:e+"month-display",year_display:e+"year-display",calendar_container:e+"calendar-container",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",i)}),function(e){function t(e){return document.createElementNS(l,e)}function i(e){return(e<10?"0":"")+e}function n(e){var t=++g+"";return e?e+t:t}function o(o,r){function l(e,t){var i=h.offset(),n=/^touch/.test(e.type),o=i.left+v,s=i.top+v,l=(n?e.originalEvent.touches[0]:e).pageX-o,c=(n?e.originalEvent.touches[0]:e).pageY-s,u=Math.sqrt(l*l+c*c),d=!1;if(!t||!(u<y-x||u>y+x)){e.preventDefault();var m=setTimeout(function(){M.popover.addClass("clockpicker-moving")},200);M.setHand(l,c,!t,!0),a.off(p).on(p,function(e){e.preventDefault();var t=/^touch/.test(e.type),i=(t?e.originalEvent.touches[0]:e).pageX-o,n=(t?e.originalEvent.touches[0]:e).pageY-s;(d||i!==l||n!==c)&&(d=!0,M.setHand(i,n,!1,!0))}),a.off(f).on(f,function(e){a.off(f),e.preventDefault();var i=/^touch/.test(e.type),n=(i?e.originalEvent.changedTouches[0]:e).pageX-o,u=(i?e.originalEvent.changedTouches[0]:e).pageY-s;(t||d)&&n===l&&u===c&&M.setHand(n,u),"hours"===M.currentView?M.toggleView("minutes",k/2):r.autoclose&&(M.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){M.done()},k/2)),h.prepend(H),clearTimeout(m),M.popover.removeClass("clockpicker-moving"),a.off(p)})}}var u=e(C),h=u.find(".clockpicker-plate"),m=u.find(".picker__holder"),g=u.find(".clockpicker-hours"),_=u.find(".clockpicker-minutes"),T=u.find(".clockpicker-am-pm-block"),S="INPUT"===o.prop("tagName"),P=S?o:o.find("input"),E=e("label[for="+P.attr("id")+"]"),M=this;this.id=n("cp"),this.element=o,this.holder=m,this.options=r,this.isAppended=!1,this.isShown=!1,this.currentView="hours",this.isInput=S,this.input=P,this.label=E,this.popover=u,this.plate=h,this.hoursView=g,this.minutesView=_,this.amPmBlock=T,this.spanHours=u.find(".clockpicker-span-hours"),this.spanMinutes=u.find(".clockpicker-span-minutes"),this.spanAmPm=u.find(".clockpicker-span-am-pm"),this.footer=u.find(".picker__footer"),this.amOrPm="PM",r.twelvehour&&(r.ampmclickable?(this.spanAmPm.empty(),e('<div id="click-am">AM</div>').on("click",function(){M.spanAmPm.children("#click-am").addClass("text-primary"),M.spanAmPm.children("#click-pm").removeClass("text-primary"),M.amOrPm="AM"}).appendTo(this.spanAmPm),e('<div id="click-pm">PM</div>').on("click",function(){M.spanAmPm.children("#click-pm").addClass("text-primary"),M.spanAmPm.children("#click-am").removeClass("text-primary"),M.amOrPm="PM"}).appendTo(this.spanAmPm)):(this.spanAmPm.empty(),e('<div id="click-am">AM</div>').appendTo(this.spanAmPm),e('<div id="click-pm">PM</div>').appendTo(this.spanAmPm))),e('<button type="button" class="btn-flat picker__clear" tabindex="'+(r.twelvehour?"3":"1")+'">'+r.cleartext+"</button>").click(e.proxy(this.clear,this)).appendTo(this.footer),e('<button type="button" class="btn-flat picker__close" tabindex="'+(r.twelvehour?"3":"1")+'">'+r.canceltext+"</button>").click(e.proxy(this.hide,this)).appendTo(this.footer),e('<button type="button" class="btn-flat picker__close" tabindex="'+(r.twelvehour?"3":"1")+'">'+r.donetext+"</button>").click(e.proxy(this.done,this)).appendTo(this.footer),this.spanHours.click(e.proxy(this.toggleView,this,"hours")),this.spanMinutes.click(e.proxy(this.toggleView,this,"minutes")),P.on("focus.clockpicker click.clockpicker",e.proxy(this.show,this));var A,O,D,z,N=e('<div class="clockpicker-tick"></div>');if(r.twelvehour)for(A=1;A<13;A+=1)O=N.clone(),D=A/6*Math.PI,z=y,O.css({left:v+Math.sin(D)*z-x,top:v-Math.cos(D)*z-x}),O.html(0===A?"00":A),g.append(O),O.on(d,l);else for(A=0;A<24;A+=1)O=N.clone(),D=A/6*Math.PI,z=A>0&&A<13?b:y,O.css({left:v+Math.sin(D)*z-x,top:v-Math.cos(D)*z-x}),O.html(0===A?"00":A),g.append(O),O.on(d,l);for(A=0;A<60;A+=5)O=N.clone(),D=A/30*Math.PI,O.css({left:v+Math.sin(D)*y-x,top:v-Math.cos(D)*y-x}),O.html(i(A)),_.append(O),O.on(d,l);if(h.on(d,function(t){0===e(t.target).closest(".clockpicker-tick").length&&l(t,!0)}),c){var H=u.find(".clockpicker-canvas"),I=t("svg");I.setAttribute("class","clockpicker-svg"),I.setAttribute("width",w),I.setAttribute("height",w);var $=t("g");$.setAttribute("transform","translate("+v+","+v+")");var W=t("circle");W.setAttribute("class","clockpicker-canvas-bearing"),W.setAttribute("cx",0),W.setAttribute("cy",0),W.setAttribute("r",4);var L=t("line");L.setAttribute("x1",0),L.setAttribute("y1",0);var q=t("circle");q.setAttribute("class","clockpicker-canvas-bg"),q.setAttribute("r",x),$.appendChild(L),$.appendChild(q),$.appendChild(W),I.appendChild($),H.append(I),this.hand=L,this.bg=q,this.bearing=W,this.g=$,this.canvas=H}s(this.options.init)}function s(e){e&&"function"==typeof e&&e()}var r=e(window),a=e(document),l="http://www.w3.org/2000/svg",c="SVGAngle"in window&&function(){var e,t=document.createElement("div");return t.innerHTML="<svg/>",e=(t.firstChild&&t.firstChild.namespaceURI)==l,t.innerHTML="",e}(),u=function(){var e=document.createElement("div").style;return"transition"in e||"WebkitTransition"in e||"MozTransition"in e||"msTransition"in e||"OTransition"in e}(),h="ontouchstart"in window,d="mousedown"+(h?" touchstart":""),p="mousemove.clockpicker"+(h?" touchmove.clockpicker":""),f="mouseup.clockpicker"+(h?" touchend.clockpicker":""),m=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,g=0,v=135,y=105,b=70,x=20,w=2*v,k=u?350:1,C=['<div class="clockpicker picker">','<div class="picker__holder">','<div class="picker__frame">','<div class="picker__wrap">','<div class="picker__box">','<div class="picker__date-display">','<div class="clockpicker-display">','<div class="clockpicker-display-column">','<span class="clockpicker-span-hours text-primary"></span>',":",'<span class="clockpicker-span-minutes"></span>',"</div>",'<div class="clockpicker-display-column clockpicker-display-am-pm">','<div class="clockpicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="picker__container__wrapper">','<div class="picker__calendar-container">','<div class="clockpicker-plate">','<div class="clockpicker-canvas"></div>','<div class="clockpicker-dial clockpicker-hours"></div>','<div class="clockpicker-dial clockpicker-minutes clockpicker-dial-out"></div>',"</div>",'<div class="clockpicker-am-pm-block">',"</div>","</div>",'<div class="picker__footer">',"</div>","</div>","</div>","</div>","</div>","</div>","</div>"].join("");o.DEFAULTS={default:"",fromnow:0,donetext:"Ok",cleartext:"Clear",canceltext:"Cancel",autoclose:!1,ampmclickable:!0,darktheme:!1,twelvehour:!0,vibrate:!0},o.prototype.toggle=function(){this[this.isShown?"hide":"show"]()},o.prototype.locate=function(){var e=this.element,t=this.popover;e.offset(),e.outerWidth(),e.outerHeight(),this.options.align,t.show()},o.prototype.show=function(t){if(!this.isShown){s(this.options.beforeShow),e(":input").each(function(){e(this).attr("tabindex",-1)});var n=this;this.input.blur(),this.popover.addClass("picker--opened"),this.input.addClass("picker__input picker__input--active"),e(document.body).css("overflow","hidden");var o=((this.input.prop("value")||this.options.default||"")+"").split(":");if(this.options.twelvehour&&void 0!==o[1]&&(o[1].indexOf("AM")>0?this.amOrPm="AM":this.amOrPm="PM",o[1]=o[1].replace("AM","").replace("PM","")),"now"===o[0]){var l=new Date(+new Date+this.options.fromnow);o=[l.getHours(),l.getMinutes()],this.options.twelvehour&&(this.amOrPm=o[0]>=12&&o[0]<24?"PM":"AM")}if(this.hours=+o[0]||0,this.minutes=+o[1]||0,this.spanHours.html(this.hours),this.spanMinutes.html(i(this.minutes)),!this.isAppended){var c=document.querySelector(this.options.container);this.options.container&&c?c.appendChild(this.popover[0]):this.popover.insertAfter(this.input),this.options.twelvehour&&("PM"===this.amOrPm?(this.spanAmPm.children("#click-pm").addClass("text-primary"),this.spanAmPm.children("#click-am").removeClass("text-primary")):(this.spanAmPm.children("#click-am").addClass("text-primary"),this.spanAmPm.children("#click-pm").removeClass("text-primary"))),r.on("resize.clockpicker"+this.id,function(){n.isShown&&n.locate()}),this.isAppended=!0}this.toggleView("hours"),this.locate(),this.isShown=!0,a.on("click.clockpicker."+this.id+" focusin.clockpicker."+this.id,function(t){var i=e(t.target);0===i.closest(n.popover.find(".picker__wrap")).length&&0===i.closest(n.input).length&&n.hide()}),a.on("keyup.clockpicker."+this.id,function(e){27===e.keyCode&&n.hide()}),s(this.options.afterShow)}},o.prototype.hide=function(){s(this.options.beforeHide),this.input.removeClass("picker__input picker__input--active"),this.popover.removeClass("picker--opened"),e(document.body).css("overflow","visible"),this.isShown=!1,e(":input").each(function(t){e(this).attr("tabindex",t+1)}),a.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id),a.off("keyup.clockpicker."+this.id),this.popover.hide(),s(this.options.afterHide)},o.prototype.toggleView=function(t,i){var n=!1;"minutes"===t&&"visible"===e(this.hoursView).css("visibility")&&(s(this.options.beforeHourSelect),n=!0);var o="hours"===t,r=o?this.hoursView:this.minutesView,a=o?this.minutesView:this.hoursView;this.currentView=t,this.spanHours.toggleClass("text-primary",o),this.spanMinutes.toggleClass("text-primary",!o),a.addClass("clockpicker-dial-out"),r.css("visibility","visible").removeClass("clockpicker-dial-out"),this.resetClock(i),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){a.css("visibility","hidden")},k),n&&s(this.options.afterHourSelect)},o.prototype.resetClock=function(e){var t=this.currentView,i=this[t],n="hours"===t,o=i*(Math.PI/(n?6:30)),s=n&&i>0&&i<13?b:y,r=Math.sin(o)*s,a=-Math.cos(o)*s,l=this;c&&e?(l.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){l.canvas.removeClass("clockpicker-canvas-out"),l.setHand(r,a)},e)):this.setHand(r,a)},o.prototype.setHand=function(t,n,o,s){var r,a=Math.atan2(t,-n),l="hours"===this.currentView,u=Math.PI/(l||o?6:30),h=Math.sqrt(t*t+n*n),d=this.options,p=l&&h<(y+b)/2,f=p?b:y;if(d.twelvehour&&(f=y),a<0&&(a=2*Math.PI+a),r=Math.round(a/u),a=r*u,d.twelvehour?l?0===r&&(r=12):(o&&(r*=5),60===r&&(r=0)):l?(12===r&&(r=0),r=p?0===r?12:r:0===r?0:r+12):(o&&(r*=5),60===r&&(r=0)),this[this.currentView]!==r&&m&&this.options.vibrate&&(this.vibrateTimer||(navigator[m](10),this.vibrateTimer=setTimeout(e.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=r,l?this.spanHours.html(r):this.spanMinutes.html(i(r)),c){var g=Math.sin(a)*(f-x),v=-Math.cos(a)*(f-x),w=Math.sin(a)*f,k=-Math.cos(a)*f;this.hand.setAttribute("x2",g),this.hand.setAttribute("y2",v),this.bg.setAttribute("cx",w),this.bg.setAttribute("cy",k)}else this[l?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var t=e(this);t.toggleClass("active",r===+t.html())})},o.prototype.done=function(){s(this.options.beforeDone),this.hide(),this.label.addClass("active");var e=this.input.prop("value"),t=i(this.hours)+":"+i(this.minutes);this.options.twelvehour&&(t+=this.amOrPm),this.input.prop("value",t),t!==e&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur"),s(this.options.afterDone)},o.prototype.clear=function(){this.hide(),this.label.removeClass("active");var e=this.input.prop("value");this.input.prop("value",""),""!==e&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur")},o.prototype.remove=function(){this.element.removeData("clockpicker"),this.input.off("focus.clockpicker click.clockpicker"),this.isShown&&this.hide(),this.isAppended&&(r.off("resize.clockpicker"+this.id),this.popover.remove())},e.fn.pickatime=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this),s=n.data("clockpicker");if(s)"function"==typeof s[t]&&s[t].apply(s,i);else{var r=e.extend({},o.DEFAULTS,n.data(),"object"==typeof t&&t);n.data("clockpicker",new o(n,r))}})}}(jQuery),function(e){function t(){var t=+e(this).attr("data-length"),i=+e(this).val().length,n=i<=t;e(this).parent().find('span[class="character-counter"]').html(i+"/"+t),o(n,e(this))}function i(t){var i=t.parent().find('span[class="character-counter"]');i.length||(i=e("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),t.parent().append(i))}function n(){e(this).parent().find('span[class="character-counter"]').html("")}function o(e,t){var i=t.hasClass("invalid");e&&i?t.removeClass("invalid"):e||i||(t.removeClass("valid"),t.addClass("invalid"))}e.fn.characterCounter=function(){return this.each(function(){var o=e(this);o.parent().find('span[class="character-counter"]').length||void 0!==o.attr("data-length")&&(o.on("input",t),o.on("focus",t),o.on("blur",n),i(o))})},e(document).ready(function(){e("input, textarea").characterCounter()})}(jQuery),function(e){var t={init:function(t){var i={duration:200,dist:-100,shift:0,padding:0,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null};t=e.extend(i,t);var n=Materialize.objectSelectorString(e(this));return this.each(function(i){function o(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function s(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function r(e){return e>=C?e%C:e<0?r(C+e%C):e}function a(i){M=!0,L.hasClass("scrolling")||L.addClass("scrolling"),null!=$&&window.clearTimeout($),$=window.setTimeout(function(){M=!1,L.removeClass("scrolling")},t.duration);var n,o,s,a,l,c,u,h=x;if(b="number"==typeof i?i:b,x=Math.floor((b+k/2)/k),s=b-x*k,a=s<0?1:-1,l=-a*s*2/k,o=C>>1,t.fullWidth?u="translateX(0)":(u="translateX("+(L[0].clientWidth-g)/2+"px) ",u+="translateY("+(L[0].clientHeight-v)/2+"px)"),j){var d=x%C,p=I.find(".indicator-item.active");p.index()!==d&&(p.removeClass("active"),I.find(".indicator-item").eq(d).addClass("active"))}for((!R||x>=0&&x<C)&&(c=m[r(x)],e(c).hasClass("active")||(L.find(".carousel-item").removeClass("active"),e(c).addClass("active")),c.style[A]=u+" translateX("+-s/2+"px) translateX("+a*t.shift*l*n+"px) translateZ("+t.dist*l+"px)",c.style.zIndex=0,t.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*l,c.style.opacity=tweenedOpacity,c.style.display="block"),n=1;n<=o;++n)t.fullWidth?(zTranslation=t.dist,tweenedOpacity=n===o&&s<0?1-l:1):(zTranslation=t.dist*(2*n+l*a),tweenedOpacity=1-.2*(2*n+l*a)),(!R||x+n<C)&&((c=m[r(x+n)]).style[A]=u+" translateX("+(t.shift+(k*n-s)/2)+"px) translateZ("+zTranslation+"px)",c.style.zIndex=-n,c.style.opacity=tweenedOpacity,c.style.display="block"),t.fullWidth?(zTranslation=t.dist,tweenedOpacity=n===o&&s>0?1-l:1):(zTranslation=t.dist*(2*n-l*a),tweenedOpacity=1-.2*(2*n-l*a)),(!R||x-n>=0)&&((c=m[r(x-n)]).style[A]=u+" translateX("+(-t.shift+(-k*n-s)/2)+"px) translateZ("+zTranslation+"px)",c.style.zIndex=-n,c.style.opacity=tweenedOpacity,c.style.display="block");if((!R||x>=0&&x<C)&&((c=m[r(x)]).style[A]=u+" translateX("+-s/2+"px) translateX("+a*t.shift*l+"px) translateZ("+t.dist*l+"px)",c.style.zIndex=0,t.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*l,c.style.opacity=tweenedOpacity,c.style.display="block"),h!==x&&"function"==typeof t.onCycleTo){var f=L.find(".carousel-item").eq(r(x));t.onCycleTo.call(this,f,N)}"function"==typeof W&&(W.call(this,f,N),W=null)}function l(){var e,t,i;t=(e=Date.now())-D,D=e,i=b-O,O=b,E=1e3*i/(1+t)*.8+.2*E}function c(){var e,i;S&&(e=Date.now()-D,(i=S*Math.exp(-e/t.duration))>2||i<-2?(a(P-i),requestAnimationFrame(c)):a(P))}function u(i){if(N)return i.preventDefault(),i.stopPropagation(),!1;if(!t.fullWidth){var n=e(i.target).closest(".carousel-item").index();0!=r(x)-n&&(i.preventDefault(),i.stopPropagation()),h(n)}}function h(e){var t=x%C-e;R||(t<0?Math.abs(t+C)<Math.abs(t)&&(t+=C):t>0&&Math.abs(t-C)<t&&(t-=C)),t<0?L.trigger("carouselNext",[Math.abs(t)]):t>0&&L.trigger("carouselPrev",[t])}function d(t){"mousedown"===t.type&&e(t.target).is("img")&&t.preventDefault(),w=!0,N=!1,H=!1,_=o(t),T=s(t),E=S=0,O=b,D=Date.now(),clearInterval(z),z=setInterval(l,100)}function p(e){var t,i;if(w)if(t=o(e),y=s(e),i=_-t,Math.abs(T-y)<30&&!H)(i>2||i<-2)&&(N=!0,_=t,a(b+i));else{if(N)return e.preventDefault(),e.stopPropagation(),!1;H=!0}if(N)return e.preventDefault(),e.stopPropagation(),!1}function f(e){if(w)return w=!1,clearInterval(z),P=b,(E>10||E<-10)&&(P=b+(S=.9*E)),P=Math.round(P/k)*k,R&&(P>=k*(C-1)?P=k*(C-1):P<0&&(P=0)),S=P-b,D=Date.now(),requestAnimationFrame(c),N&&(e.preventDefault(),e.stopPropagation()),!1}var m,g,v,b,x,w,k,C,_,T,S,P,E,M,A,O,D,z,N,H,I=e('<ul class="indicators"></ul>'),$=null,W=null,L=e(this),q=L.find(".carousel-item").length>1,j=(L.attr("data-indicators")||t.indicators)&&q,R=L.attr("data-no-wrap")||t.noWrap||!q,F=L.attr("data-namespace")||n+i;L.attr("data-namespace",F);var V=function(t){var i=L.find(".carousel-item.active").length?L.find(".carousel-item.active").first():L.find(".carousel-item").first(),n=i.find("img").first();if(n.length)if(n[0].complete)if(n.height()>0)L.css("height",n.height());else{var o=n[0].naturalWidth,s=n[0].naturalHeight,r=L.width()/o*s;L.css("height",r)}else n.on("load",function(){L.css("height",e(this).height())});else if(!t){var a=i.height();L.css("height",a)}};if(t.fullWidth&&(t.dist=0,V(),j&&L.find(".carousel-fixed-item").addClass("with-indicators")),L.hasClass("initialized"))return e(window).trigger("resize"),L.trigger("carouselNext",[1e-6]),!0;L.addClass("initialized"),w=!1,b=P=0,m=[],g=L.find(".carousel-item").first().innerWidth(),v=L.find(".carousel-item").first().innerHeight(),k=2*g+t.padding,L.find(".carousel-item").each(function(t){if(m.push(e(this)[0]),j){var i=e('<li class="indicator-item"></li>');0===t&&i.addClass("active"),i.click(function(t){t.stopPropagation(),h(e(this).index())}),I.append(i)}}),j&&L.append(I),C=m.length,A="transform",["webkit","Moz","O","ms"].every(function(e){var t=e+"Transform";return void 0===document.body.style[t]||(A=t,!1)});var X=Materialize.throttle(function(){t.fullWidth?(g=L.find(".carousel-item").first().innerWidth(),L.find(".carousel-item.active").height(),k=2*g+t.padding,P=b=2*x*g,V(!0)):a()},200);e(window).off("resize.carousel-"+F).on("resize.carousel-"+F,X),void 0!==window.ontouchstart&&(L.on("touchstart.carousel",d),L.on("touchmove.carousel",p),L.on("touchend.carousel",f)),L.on("mousedown.carousel",d),L.on("mousemove.carousel",p),L.on("mouseup.carousel",f),L.on("mouseleave.carousel",f),L.on("click.carousel",u),a(b),e(this).on("carouselNext",function(e,t,i){void 0===t&&(t=1),"function"==typeof i&&(W=i),P=k*Math.round(b/k)+k*t,b!==P&&(S=P-b,D=Date.now(),requestAnimationFrame(c))}),e(this).on("carouselPrev",function(e,t,i){void 0===t&&(t=1),"function"==typeof i&&(W=i),P=k*Math.round(b/k)-k*t,b!==P&&(S=P-b,D=Date.now(),requestAnimationFrame(c))}),e(this).on("carouselSet",function(e,t,i){void 0===t&&(t=0),"function"==typeof i&&(W=i),h(t)})})},next:function(t,i){e(this).trigger("carouselNext",[t,i])},prev:function(t,i){e(this).trigger("carouselPrev",[t,i])},set:function(t,i){e(this).trigger("carouselSet",[t,i])},destroy:function(){var t=e(this).attr("data-namespace");e(this).removeAttr("data-namespace"),e(this).removeClass("initialized"),e(this).find(".indicators").remove(),e(this).off("carouselNext carouselPrev carouselSet"),e(window).off("resize.carousel-"+t),void 0!==window.ontouchstart&&e(this).off("touchstart.carousel touchmove.carousel touchend.carousel"),e(this).off("mousedown.carousel mousemove.carousel mouseup.carousel mouseleave.carousel click.carousel")}};e.fn.carousel=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist on jQuery.carousel"):t.init.apply(this,arguments)}}(jQuery),function(e){var t={init:function(t){return this.each(function(){var i=e("#"+e(this).attr("data-activates")),n=(e("body"),e(this)),o=n.parent(".tap-target-wrapper"),s=o.find(".tap-target-wave"),r=o.find(".tap-target-origin"),a=n.find(".tap-target-content");o.length||(o=n.wrap(e('<div class="tap-target-wrapper"></div>')).parent()),a.length||(a=e('<div class="tap-target-content"></div>'),n.append(a)),s.length||(s=e('<div class="tap-target-wave"></div>'),r.length||((r=i.clone(!0,!0)).addClass("tap-target-origin"),r.removeAttr("id"),r.removeAttr("style"),s.append(r)),o.append(s));var l=function(){o.is(".open")&&(o.removeClass("open"),r.off("click.tapTarget"),e(document).off("click.tapTarget"),e(window).off("resize.tapTarget"))},c=function(){var t="fixed"===i.css("position");if(!t)for(var r=i.parents(),l=0;l<r.length&&!(t="fixed"==e(r[l]).css("position"));l++);var c=i.outerWidth(),u=i.outerHeight(),h=t?i.offset().top-e(document).scrollTop():i.offset().top,d=t?i.offset().left-e(document).scrollLeft():i.offset().left,p=e(window).width(),f=e(window).height(),m=p/2,g=f/2,v=d<=m,y=d>m,b=h<=g,x=h>g,w=d>=.25*p&&d<=.75*p,k=n.outerWidth(),C=n.outerHeight(),_=h+u/2-C/2,T=d+c/2-k/2,S=t?"fixed":"absolute",P=w?k:k/2+c,E=C/2,M=b?C/2:0,A=v&&!w?k/2-c:0,O=c,D=x?"bottom":"top",z=2*c,N=z,H=C/2-N/2,I=k/2-z/2,$={};$.top=b?_:"",$.right=y?p-T-k:"",$.bottom=x?f-_-C:"",$.left=v?T:"",$.position=S,o.css($),a.css({width:P,height:E,top:M,right:0,bottom:0,left:A,padding:O,verticalAlign:D}),s.css({top:H,left:I,width:z,height:N})};"open"==t&&(c(),o.is(".open")||(o.addClass("open"),setTimeout(function(){r.off("click.tapTarget").on("click.tapTarget",function(e){l(),r.off("click.tapTarget")}),e(document).off("click.tapTarget").on("click.tapTarget",function(t){l(),e(document).off("click.tapTarget")});var t=Materialize.throttle(function(){c()},200);e(window).off("resize.tapTarget").on("resize.tapTarget",t)},0))),"close"==t&&l()})},open:function(){},close:function(){}};e.fn.tapTarget=function(i){if(t[i]||"object"==typeof i)return t.init.apply(this,arguments);e.error("Method "+i+" does not exist on jQuery.tap-target")}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(e){for(var t=e.css("visibility");"inherit"===t;)e=e.parent(),t=e.css("visibility");return"hidden"!==t}e.ui=e.ui||{},e.ui.version="1.12.1";var i=0,n=Array.prototype.slice;e.cleanData=function(t){return function(i){var n,o,s;for(s=0;null!=(o=i[s]);s++)try{(n=e._data(o,"events"))&&n.remove&&e(o).triggerHandler("remove")}catch(e){}t(i)}}(e.cleanData),e.widget=function(t,i,n){var o,s,r,a={},l=t.split(".")[0];t=t.split(".")[1];var c=l+"-"+t;return n||(n=i,i=e.Widget),e.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},o=e[l][t],s=e[l][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new s(e,t)},e.extend(s,o,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),r=new i,r.options=e.widget.extend({},r.options),e.each(n,function(t,n){return e.isFunction(n)?void(a[t]=function(){function e(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,s=this._superApply;return this._super=e,this._superApply=o,t=n.apply(this,arguments),this._super=i,this._superApply=s,t}}()):void(a[t]=n)}),s.prototype=e.widget.extend(r,{widgetEventPrefix:o?r.widgetEventPrefix||t:t},a,{constructor:s,namespace:l,widgetName:t,widgetFullName:c}),o?(e.each(o._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,s,i._proto)}),delete o._childConstructors):i._childConstructors.push(s),e.widget.bridge(t,s),s},e.widget.extend=function(t){for(var i,o,s=n.call(arguments,1),r=0,a=s.length;a>r;r++)for(i in s[r])o=s[r][i],s[r].hasOwnProperty(i)&&void 0!==o&&(t[i]=e.isPlainObject(o)?e.isPlainObject(t[i])?e.widget.extend({},t[i],o):e.widget.extend({},o):o);return t},e.widget.bridge=function(t,i){var o=i.prototype.widgetFullName||t;e.fn[t]=function(s){var r="string"==typeof s,a=n.call(arguments,1),l=this;return r?this.length||"instance"!==s?this.each(function(){var i,n=e.data(this,o);return"instance"===s?(l=n,!1):n?e.isFunction(n[s])&&"_"!==s.charAt(0)?(i=n[s].apply(n,a),i!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+s+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(a.length&&(s=e.widget.extend.apply(null,[s].concat(a))),this.each(function(){var t=e.data(this,o);t?(t.option(s||{}),t._init&&t._init()):e.data(this,o,new i(s,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,o,s,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},n=t.split("."),t=n.shift(),n.length){for(o=r[t]=e.widget.extend({},this.options[t]),s=0;n.length-1>s;s++)o[n[s]]=o[n[s]]||{},o=o[n[s]];if(t=n.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,o;for(i in t)o=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&o&&o.length&&(n=e(o.get()),this._removeClass(o,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function i(i,s){var r,a;for(a=0;i.length>a;a++)r=o.classesElementLookup[i[a]]||e(),r=e(t.add?e.unique(r.get().concat(t.element.get())):r.not(t.element).get()),o.classesElementLookup[i[a]]=r,n.push(i[a]),s&&t.classes[i[a]]&&n.push(t.classes[i[a]])}var n=[],o=this;return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(n,o){-1!==e.inArray(t.target,o)&&(i.classesElementLookup[n]=e(o.not(t.target).get()))})},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var o="string"==typeof e||null===e,s={extra:o?t:i,keys:o?e:t,element:o?this.element:e,add:n};return s.element.toggleClass(this._classes(s),n),this},_on:function(t,i,n){var o,s=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=o=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),e.each(n,function(n,r){function a(){return t||!0!==s.options.disabled&&!e(this).hasClass("ui-state-disabled")?("string"==typeof r?s[r]:r).apply(s,arguments):void 0}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+s.eventNamespace,u=l[2];u?o.on(c,u,a):i.on(c,a)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i).off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var o,s,r=this.options[t];if(n=n||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o]);return this.element.trigger(i,n),!(e.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,o,s){"string"==typeof o&&(o={effect:o});var r,a=o?!0===o||"number"==typeof o?i:o.effect||i:t;o=o||{},"number"==typeof o&&(o={duration:o}),r=!e.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),r&&e.effects&&e.effects.effect[a]?n[t](o):a!==t&&n[a]?n[a](o.duration,o.easing,s):n.queue(function(i){e(this)[t](),s&&s.call(n[0]),i()})}}),e.widget,function(){function t(e,t,i){return[parseFloat(e[0])*(h.test(e[0])?t/100:1),parseFloat(e[1])*(h.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function n(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var o,s=Math.max,r=Math.abs,a=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,h=/%$/,d=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==o)return o;var t,i,n=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=n.children()[0];return e("body").append(n),t=s.offsetWidth,n.css("overflow","scroll"),i=s.offsetWidth,t===i&&(i=n[0].clientWidth),n.remove(),o=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),n=e.isWindow(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:o,offset:n||o?{left:0,top:0}:e(t).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},e.fn.position=function(o){if(!o||!o.of)return d.apply(this,arguments);o=e.extend({},o);var h,p,f,m,g,v,y=e(o.of),b=e.position.getWithinInfo(o.within),x=e.position.getScrollInfo(b),w=(o.collision||"flip").split(" "),k={};return v=n(y),y[0].preventDefault&&(o.at="left top"),p=v.width,f=v.height,m=v.offset,g=e.extend({},m),e.each(["my","at"],function(){var e,t,i=(o[this]||"").split(" ");1===i.length&&(i=a.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=a.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",e=c.exec(i[0]),t=c.exec(i[1]),k[this]=[e?e[0]:0,t?t[0]:0],o[this]=[u.exec(i[0])[0],u.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===o.at[0]?g.left+=p:"center"===o.at[0]&&(g.left+=p/2),"bottom"===o.at[1]?g.top+=f:"center"===o.at[1]&&(g.top+=f/2),h=t(k.at,p,f),g.left+=h[0],g.top+=h[1],this.each(function(){var n,a,l=e(this),c=l.outerWidth(),u=l.outerHeight(),d=i(this,"marginLeft"),v=i(this,"marginTop"),C=c+d+i(this,"marginRight")+x.width,_=u+v+i(this,"marginBottom")+x.height,T=e.extend({},g),S=t(k.my,l.outerWidth(),l.outerHeight());"right"===o.my[0]?T.left-=c:"center"===o.my[0]&&(T.left-=c/2),"bottom"===o.my[1]?T.top-=u:"center"===o.my[1]&&(T.top-=u/2),T.left+=S[0],T.top+=S[1],n={marginLeft:d,marginTop:v},e.each(["left","top"],function(t,i){e.ui.position[w[t]]&&e.ui.position[w[t]][i](T,{targetWidth:p,targetHeight:f,elemWidth:c,elemHeight:u,collisionPosition:n,collisionWidth:C,collisionHeight:_,offset:[h[0]+S[0],h[1]+S[1]],my:o.my,at:o.at,within:b,elem:l})}),o.using&&(a=function(e){var t=m.left-T.left,i=t+p-c,n=m.top-T.top,a=n+f-u,h={target:{element:y,left:m.left,top:m.top,width:p,height:f},element:{element:l,left:T.left,top:T.top,width:c,height:u},horizontal:0>i?"left":t>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};c>p&&p>r(t+i)&&(h.horizontal="center"),u>f&&f>r(n+a)&&(h.vertical="middle"),h.important=s(r(t),r(i))>s(r(n),r(a))?"horizontal":"vertical",o.using.call(this,e,h)}),l.offset(e.extend(T,{using:a}))})},e.ui.position={fit:{left:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,c=a+t.collisionWidth-r-o;t.collisionWidth>r?l>0&&0>=c?(i=e.left+l+t.collisionWidth-r-o,e.left+=l-i):e.left=c>0&&0>=l?o:l>c?o+r-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=s(e.left-a,e.left)},top:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,c=a+t.collisionHeight-r-o;t.collisionHeight>r?l>0&&0>=c?(i=e.top+l+t.collisionHeight-r-o,e.top+=l-i):e.top=c>0&&0>=l?o:l>c?o+r-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=s(e.top-a,e.top)}},flip:{left:function(e,t){var i,n,o=t.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,u=c-l,h=c+t.collisionWidth-a-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(0>(i=e.left+d+p+f+t.collisionWidth-a-s)||r(u)>i)&&(e.left+=d+p+f):h>0&&((n=e.left-t.collisionPosition.marginLeft+d+p+f-l)>0||h>r(n))&&(e.left+=d+p+f)},top:function(e,t){var i,n,o=t.within,s=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,u=c-l,h=c+t.collisionHeight-a-l,d="top"===t.my[1],p=d?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(0>(n=e.top+p+f+m+t.collisionHeight-a-s)||r(u)>n)&&(e.top+=p+f+m):h>0&&((i=e.top-t.collisionPosition.marginTop+p+f+m-l)>0||h>r(i))&&(e.top+=p+f+m)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,n){return!!e.data(t,n[3])}}),e.fn.extend({disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),e.ui.focusable=function(i,n){var o,s,r,a,l,c=i.nodeName.toLowerCase();return"area"===c?(o=i.parentNode,s=o.name,!(!i.href||!s||"map"!==o.nodeName.toLowerCase())&&(r=e("img[usemap='#"+s+"']"),r.length>0&&r.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(c)?(a=!i.disabled)&&(l=e(i).closest("fieldset")[0])&&(a=!l.disabled):a="a"===c?i.href||n:n,a&&e(i).is(":visible")&&t(e(i)))},e.extend(e.expr[":"],{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable,e.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");e.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===e.fn.jquery.substring(0,3)&&(e.each(["Width","Height"],function(t,i){function n(t,i,n,s){return e.each(o,function(){i-=parseFloat(e.css(t,"padding"+this))||0,n&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var o="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),r={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(t){return void 0===t?r["inner"+i].call(this):this.each(function(){e(this).css(s,n(this,t)+"px")})},e.fn["outer"+i]=function(t,o){return"number"!=typeof t?r["outer"+i].call(this,t):this.each(function(){e(this).css(s,n(this,t,!0,o)+"px")})}}),e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.ui.escapeSelector=function(){var e=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(e,"\\$1")}}(),e.fn.labels=function(){var t,i,n,o,s;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(o=this.eq(0).parents("label"),n=this.attr("id"),n&&(t=this.eq(0).parents().last(),s=t.add(t.length?t.siblings():this.siblings()),i="label[for='"+e.ui.escapeSelector(n)+"']",o=o.add(s.find(i).addBack(i))),this.pushStack(o))},e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var t=e(this);return(!n||"static"!==t.css("position"))&&o.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&s.length?s:e(this[0].ownerDocument||document)},e.extend(e.expr[":"],{tabbable:function(t){var i=e.attr(t,"tabindex"),n=null!=i;return(!n||i>=0)&&e.ui.focusable(t,n)}}),e.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var o=!1;e(document).on("mouseup",function(){o=!1}),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,n=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),o=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,i,n){var o,s=e.ui[t].prototype;for(o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])},call:function(e,t,i,n){var o,s=e.plugins[t];if(s&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;s.length>o;o++)e.options[s[o][0]]&&s[o][1].apply(e.element,i)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")},e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper),o=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,o=this.options,s=this.document[0];return this.relativeContainer=null,o.containment?"window"===o.containment?void(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===o.containment?void(this.containment=[0,0,e(s).width()-this.helperProportions.width-this.margins.left,(e(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):o.containment.constructor===Array?void(this.containment=o.containment):("parent"===o.containment&&(o.containment=this.helper[0].parentNode),i=e(o.containment),void((n=i[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,o,s,r=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-r.grid[1]:o+r.grid[1]:o,s=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?s-this.offset.click.left>=i[0]||s-this.offset.click.left>i[2]?s:s-this.offset.click.left>=i[0]?s-r.grid[0]:s+r.grid[0]:s),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var o=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,o))})},stop:function(t,i,n){var o=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,o))})},drag:function(t,i,n){e.each(n.sortables,function(){var o=!1,s=this;s.positionAbs=n.positionAbs,s.helperProportions=n.helperProportions,s.offset.click=n.offset.click,s._intersectsWith(s.containerCache)&&(o=!0,e.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==s&&this._intersectsWith(this.containerCache)&&e.contains(s.element[0],this.element[0])&&(o=!1),o})),o?(s.isOver||(s.isOver=1,n._parent=i.helper.parent(),s.currentItem=i.helper.appendTo(s.element).data("ui-sortable-item",!0),s.options._helper=s.options.helper,s.options.helper=function(){return i.helper[0]},t.target=s.currentItem[0],s._mouseCapture(t,!0),s._mouseStart(t,!0,!0),s.offset.click.top=n.offset.click.top,s.offset.click.left=n.offset.click.left,s.offset.parent.left-=n.offset.parent.left-s.offset.parent.left,s.offset.parent.top-=n.offset.parent.top-s.offset.parent.top,n._trigger("toSortable",t),n.dropped=s.element,e.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,s.fromOutside=n),s.currentItem&&(s._mouseDrag(t),i.position=s.position)):s.isOver&&(s.isOver=0,s.cancelHelperRemoval=!0,s.options._revert=s.options.revert,s.options.revert=!1,s._trigger("out",t,s._uiHash(s)),s._mouseStop(t,!0),s.options.revert=s.options._revert,s.options.helper=s.options._helper,s.placeholder&&s.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var o=e("body"),s=n.options;o.css("cursor")&&(s._cursor=o.css("cursor")),o.css("cursor",s.cursor)},stop:function(t,i,n){var o=n.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var o=e(i.helper),s=n.options;o.css("opacity")&&(s._opacity=o.css("opacity")),o.css("opacity",s.opacity)},stop:function(t,i,n){var o=n.options;o._opacity&&e(i.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var o=n.options,s=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(n.overflowOffset.top+r.offsetHeight-t.pageY<o.scrollSensitivity?r.scrollTop=s=r.scrollTop+o.scrollSpeed:t.pageY-n.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=s=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(n.overflowOffset.left+r.offsetWidth-t.pageX<o.scrollSensitivity?r.scrollLeft=s=r.scrollLeft+o.scrollSpeed:t.pageX-n.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=s=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(t.pageY-e(a).scrollTop()<o.scrollSensitivity?s=e(a).scrollTop(e(a).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<o.scrollSensitivity&&(s=e(a).scrollTop(e(a).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(t.pageX-e(a).scrollLeft()<o.scrollSensitivity?s=e(a).scrollLeft(e(a).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<o.scrollSensitivity&&(s=e(a).scrollLeft(e(a).scrollLeft()+o.scrollSpeed)))),!1!==s&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var o=n.options;n.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,n){var o,s,r,a,l,c,u,h,d,p,f=n.options,m=f.snapTolerance,g=i.offset.left,v=g+n.helperProportions.width,y=i.offset.top,b=y+n.helperProportions.height;for(d=n.snapElements.length-1;d>=0;d--)l=n.snapElements[d].left-n.margins.left,c=l+n.snapElements[d].width,u=n.snapElements[d].top-n.margins.top,h=u+n.snapElements[d].height,l-m>v||g>c+m||u-m>b||y>h+m||!e.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(o=m>=Math.abs(u-b),s=m>=Math.abs(h-y),r=m>=Math.abs(l-v),a=m>=Math.abs(c-g),o&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),s&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),p=o||s||r||a,"outer"!==f.snapMode&&(o=m>=Math.abs(u-y),s=m>=Math.abs(h-b),r=m>=Math.abs(l-g),a=m>=Math.abs(c-v),o&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),s&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(o||s||r||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=o||s||r||a||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var o,s=n.options,r=e.makeArray(e(s.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});r.length&&(o=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var o=e(i.helper),s=n.options;o.css("zIndex")&&(s._zIndex=o.css("zIndex")),o.css("zIndex",s.zIndex)},stop:function(t,i,n){var o=n.options;o._zIndex&&e(i.helper).css("zIndex",o._zIndex)}}),e.ui.draggable,e.widget("ui.resizable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",o=!1;return t[n]>0||(t[n]=1,o=t[n]>0,t[n]=0,o)},_create:function(){var t,i=this.options,n=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var t,i,n,o,s,r=this.options,a=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;n.length>i;i++)t=e.trim(n[i]),o="ui-resizable-"+t,s=e("<div>"),this._addClass(s,"ui-resizable-handle "+o),s.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(s);this._renderAxis=function(t){var i,n,o,s;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),o=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(o,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=s&&s[1]?s[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var i,n,o=!1;for(i in this.handles)((n=e(this.handles[i])[0])===t.target||e.contains(n,t.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(t){var i,n,o,s=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),s.containment&&(i+=e(s.containment).scrollLeft()||0,n+=e(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===o?this.axis+"-resize":o),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,n,o=this.originalMousePosition,s=this.axis,r=t.pageX-o.left||0,a=t.pageY-o.top||0,l=this._change[s];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[t,r,a]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var i,n,o,s,r,a,l,c=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),o=n&&this._hasScroll(i[0],"left")?0:u.sizeDiff.height,s=n?0:u.sizeDiff.width,r={width:u.helper.width()-s,height:u.helper.height()-o},a=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,l=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(e.extend(r,{top:l,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,o,s,r=this.options;s={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=s.minHeight*this.aspectRatio,n=s.minWidth/this.aspectRatio,i=s.maxHeight*this.aspectRatio,o=s.maxWidth/this.aspectRatio,t>s.minWidth&&(s.minWidth=t),n>s.minHeight&&(s.minHeight=n),s.maxWidth>i&&(s.maxWidth=i),s.maxHeight>o&&(s.maxHeight=o)),this._vBoundaries=s},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,o=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,s=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return s&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),o&&(e.height=t.maxHeight),s&&c&&(e.left=a-t.minWidth),n&&c&&(e.left=a-t.maxWidth),r&&u&&(e.top=l-t.minHeight),o&&u&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],o=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];4>t;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(o[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),n=i.options,o=i._proportionallyResizeElements,s=o.length&&/textarea/i.test(o[0].nodeName),r=s&&i._hasScroll(o[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},c=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,u=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};o&&o.length&&e(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,n,o,s,r,a,l=e(this).resizable("instance"),c=l.options,u=l.element,h=c.containment,d=h instanceof e?h.get(0):/parent/.test(h)?u.parent().get(0):h;d&&(l.containerElement=e(d),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(d),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,n){i[e]=l._num(t.css("padding"+n))}),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},n=l.containerOffset,o=l.containerSize.height,s=l.containerSize.width,r=l._hasScroll(d,"left")?d.scrollWidth:s,a=l._hasScroll(d)?d.scrollHeight:o,l.parentData={element:d,left:n.left,top:n.top,width:r,height:a}))},resize:function(t){var i,n,o,s,r=e(this).resizable("instance"),a=r.options,l=r.containerOffset,c=r.position,u=r._aspectRatio||t.shiftKey,h={top:0,left:0},d=r.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-h.left),u&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),o=r.containerElement.get(0)===r.element.parent().get(0),s=/relative|absolute/.test(r.containerElement.css("position")),o&&s?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-h.left:r.offset.left-l.left)),n=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-h.top:r.offset.top-l.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,u&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,u&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,n=t.containerOffset,o=t.containerPosition,s=t.containerElement,r=e(t.helper),a=r.offset(),l=r.outerWidth()-t.sizeDiff.width,c=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(s.css("position"))&&e(this).css({left:a.left-o.left-n.left,width:l,height:c}),t._helper&&!i.animate&&/static/.test(s.css("position"))&&e(this).css({left:a.left-o.left-n.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance"),i=t.options;e(i.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var n=e(this).resizable("instance"),o=n.options,s=n.originalSize,r=n.originalPosition,a={height:n.size.height-s.height||0,width:n.size.width-s.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};e(o.alsoResize).each(function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),o={},s=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(s,function(e,t){var i=(n[t]||0)+(a[t]||0);i&&i>=0&&(o[t]=i||null)}),t.css(o)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),n=i.options,o=i.size,s=i.originalSize,r=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,u=l[1]||1,h=Math.round((o.width-s.width)/c)*c,d=Math.round((o.height-s.height)/u)*u,p=s.width+h,f=s.height+d,m=n.maxWidth&&p>n.maxWidth,g=n.maxHeight&&f>n.maxHeight,v=n.minWidth&&n.minWidth>p,y=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=c),y&&(f+=u),m&&(p-=c),g&&(f-=u),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=r.left-h):((0>=f-u||0>=p-c)&&(t=i._getPaddingPlusBorderDimensions(this)),f-u>0?(i.size.height=f,i.position.top=r.top-d):(f=u-t.height,i.size.height=f,i.position.top=r.top+s.height-f),p-c>0?(i.size.width=p,i.position.left=r.left-h):(p=c-t.width,i.size.width=p,i.position.left=r.left+s.width-p))}}),e.ui.resizable,e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i,n=this.options,o=this.element.find(".ui-slider-handle"),s=[];for(i=n.values&&n.values.length||1,o.length>i&&(o.slice(i).remove(),o=o.slice(0,i)),t=o.length;i>t;t++)s.push("<span tabindex='0'></span>");this.handles=o.add(e(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===t.range||"max"===t.range)&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,n,o,s,r,a,l,c=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var i=Math.abs(n-c.values(t));(o>i||o===i&&(t===c._lastChangedValue||c.values(t)===u.min))&&(o=i,s=e(this),r=t)}),!1!==this._start(t,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),a=s.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-a.left-s.width()/2,top:t.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,o,s;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/t,n>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),s=this._valueMin()+n*o,this._trimAlignValue(s)},_uiHash:function(e,t,i){var n={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==t?t:this.values(e),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var n,o=this.value(),s=this.values();this._hasMultipleValues()&&(n=this.values(t?0:1),o=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(n,i):Math.max(n,i)),s[t]=i),i!==o&&!1!==this._trigger("slide",e,this._uiHash(t,i,s))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,i){var n,o,s;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(n=this.options.values,o=arguments[0],s=0;n.length>s;s+=1)n[s]=this._trimAlignValue(o[s]),this._change(null,s);this._refreshValue()},_setOption:function(t,i){var n,o=0;switch("range"===t&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(o=this.options.values.length),this._super(t,i),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=o-1;n>=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=i>0?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;e=Math.round((e-t)/i)*i+t,e>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,n,o,s,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,u={};this._hasMultipleValues()?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](u,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:a.animate}))),t=i}):(n=this.value(),o=this._valueMin(),s=this._valueMax(),i=s!==o?(n-o)/(s-o)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var i,n,o,s=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,s)))return}switch(o=this.options.step,i=n=this._hasMultipleValues()?this.values(s):this.value(),t.keyCode){case e.ui.keyCode.HOME:n=this._valueMin();break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-o)}this._slide(t,s,n)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(e(t.target),null,"ui-state-active"))}}});var s="ui-effects-",r="ui-effects-style",a="ui-effects-animated",l=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var n=u[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:0>e?0:e>n.max?n.max:e)}function n(i){var n=l(),o=n._rgba=[];return i=i.toLowerCase(),p(a,function(e,s){var r,a=s.re.exec(i),l=a&&s.parse(a),u=s.space||"rgba";return l?(r=n[u](l),n[c[u].cache]=r[c[u].cache],o=n._rgba=r._rgba,!1):t}),o.length?("0,0,0,0"===o.join()&&e.extend(o,s.transparent),n):s[i]}function o(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var s,r=/^([\-+])=\s*(\d+\.?\d*)/,a=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,n,o){return new e.Color.fn.parse(t,i,n,o)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=l.support={},d=e("<p>")[0],p=e.each;d.style.cssText="background-color:rgba(1,1,1,.5)",h.rgba=d.style.backgroundColor.indexOf("rgba")>-1,p(c,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(o,r,a,u){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=e(o).css(r),r=t);var h=this,d=e.type(o),f=this._rgba=[];return r!==t&&(o=[o,r,a,u],d="array"),"string"===d?this.parse(n(o)||s._default):"array"===d?(p(c.rgba.props,function(e,t){f[t.idx]=i(o[t.idx],t)}),this):"object"===d?(o instanceof l?p(c,function(e,t){o[t.cache]&&(h[t.cache]=o[t.cache].slice())}):p(c,function(t,n){var s=n.cache;p(n.props,function(e,t){if(!h[s]&&n.to){if("alpha"===e||null==o[e])return;h[s]=n.to(h._rgba)}h[s][t.idx]=i(o[e],t,!0)}),h[s]&&0>e.inArray(null,h[s].slice(0,3))&&(h[s][3]=1,n.from&&(h._rgba=n.from(h[s])))}),this):t},is:function(e){var i=l(e),n=!0,o=this;return p(c,function(e,s){var r,a=i[s.cache];return a&&(r=o[s.cache]||s.to&&s.to(o._rgba)||[],p(s.props,function(e,i){return null!=a[i.idx]?n=a[i.idx]===r[i.idx]:t})),n}),n},_space:function(){var e=[],t=this;return p(c,function(i,n){t[n.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var n=l(e),o=n._space(),s=c[o],r=0===this.alpha()?l("transparent"):this,a=r[s.cache]||s.to(r._rgba),h=a.slice();return n=n[s.cache],p(s.props,function(e,o){var s=o.idx,r=a[s],l=n[s],c=u[o.type]||{};null!==l&&(null===r?h[s]=l:(c.mod&&(l-r>c.mod/2?r+=c.mod:r-l>c.mod/2&&(r-=c.mod)),h[s]=i((l-r)*t+r,o)))}),this[o](h)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=l(t)._rgba;return l(e.map(i,function(e,t){return(1-n)*o[t]+n*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,o=e[1]/255,s=e[2]/255,r=e[3],a=Math.max(n,o,s),l=Math.min(n,o,s),c=a-l,u=a+l,h=.5*u;return t=l===a?0:n===a?60*(o-s)/c+360:o===a?60*(s-n)/c+120:60*(n-o)/c+240,i=0===c?0:.5>=h?c/u:c/(2-u),[Math.round(t)%360,i,h,null==r?1:r]},c.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],r=.5>=n?n*(1+i):n+i-n*i,a=2*n-r;return[Math.round(255*o(a,r,t+1/3)),Math.round(255*o(a,r,t)),Math.round(255*o(a,r,t-1/3)),s]},p(c,function(n,o){var s=o.props,a=o.cache,c=o.to,u=o.from;l.fn[n]=function(n){if(c&&!this[a]&&(this[a]=c(this._rgba)),n===t)return this[a].slice();var o,r=e.type(n),h="array"===r||"object"===r?n:arguments,d=this[a].slice();return p(s,function(e,t){var n=h["object"===r?e:t.idx];null==n&&(n=d[t.idx]),d[t.idx]=i(n,t)}),u?(o=l(u(d)),o[a]=d,o):l(d)},p(s,function(t,i){l.fn[t]||(l.fn[t]=function(o){var s,a=e.type(o),l="alpha"===t?this._hsla?"hsla":"rgba":n,c=this[l](),u=c[i.idx];return"undefined"===a?u:("function"===a&&(o=o.call(this,u),a=e.type(o)),null==o&&i.empty?this:("string"===a&&(s=r.exec(o))&&(o=u+parseFloat(s[2])*("+"===s[1]?1:-1)),c[i.idx]=o,this[l](c)))})})}),l.hook=function(t){var i=t.split(" ");p(i,function(t,i){e.cssHooks[i]={set:function(t,o){var s,r,a="";if("transparent"!==o&&("string"!==e.type(o)||(s=n(o)))){if(o=l(s||o),!h.rgba&&1!==o._rgba[3]){for(r="backgroundColor"===i?t.parentNode:t;(""===a||"transparent"===a)&&r&&r.style;)try{a=e.css(r,"backgroundColor"),r=r.parentNode}catch(e){}o=o.blend(a&&"transparent"!==a?a:"_default")}o=o.toRgbaString()}try{t.style[i]=o}catch(e){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return p(["Top","Right","Bottom","Left"],function(i,n){t["border"+n+"Color"]=e}),t}},s=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(l),function(){function t(t){var i,n,o=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)i=o[n],"string"==typeof o[i]&&(s[e.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(s[i]=o[i]);return s}function i(t,i){var n,s,r={};for(n in i)s=i[n],t[n]!==s&&(o[n]||(e.fx.step[n]||!isNaN(parseFloat(s)))&&(r[n]=s));return r}var n=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(l.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(o,s,r,a){var l=e.speed(s,r,a);return this.queue(function(){var s,r=e(this),a=r.attr("class")||"",c=l.children?r.find("*").addBack():r;c=c.map(function(){return{el:e(this),start:t(this)}}),s=function(){e.each(n,function(e,t){o[t]&&r[t+"Class"](o[t])})},s(),c=c.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),r.attr("class",a),c=c.map(function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()}),e.when.apply(e,c.get()).done(function(){s(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(r[0])})})},e.fn.extend({addClass:function(t){return function(i,n,o,s){return n?e.effects.animateClass.call(this,{add:i},n,o,s):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,n,o,s){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,o,s):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,o,s,r){return"boolean"==typeof n||void 0===n?o?e.effects.animateClass.call(this,n?{add:i}:{remove:i},o,s,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,o,s)}}(e.fn.toggleClass),switchClass:function(t,i,n,o,s){return e.effects.animateClass.call(this,{add:i,remove:t},n,o,s)}})}(),function(){function t(t,i,n,o){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(o=n,n=i,i={}),e.isFunction(n)&&(o=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=o||i.complete,t}function i(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||(!!e.isFunction(t)||"object"==typeof t&&!t.effect))}function n(e,t){var i=t.outerWidth(),n=t.outerHeight(),o=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,s=o.exec(e)||["",0,i,n,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?i:parseFloat(s[2]),bottom:"auto"===s[3]?n:parseFloat(s[3]),left:parseFloat(s[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=function(t){return function(i){return!!e(i).data(a)||t(i)}}(e.expr.filters.animated)),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,n=t.length;n>i;i++)null!==t[i]&&e.data(s+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,o=t.length;o>n;n++)null!==t[n]&&(i=e.data(s+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch(e){s=document.body}return t.wrap(n),(t[0]===s||e.contains(t[0],s))&&e(s).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(o),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,o="vertical"!==i?(t||100)/100:1;return{height:e.height()*o,width:e.width()*n,outerHeight:e.outerHeight()*o,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(r,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(r)||"",e.removeData(r)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var i,n=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(s+"placeholder",i)),t.css({position:n,left:o.left,top:o.top}),i},removePlaceholder:function(e){var t=s+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,o){return o=o||{},e.each(i,function(e,i){var s=t.cssUnit(i);s[0]>0&&(o[i]=s[0]*n+s[1])}),o}}),e.fn.extend({effect:function(){function i(t){function i(){l.removeData(a),e.effects.cleanUp(l),"hide"===n.mode&&l.hide(),r()}function r(){e.isFunction(c)&&c.call(l[0]),e.isFunction(t)&&t()}var l=e(this);n.mode=h.shift(),!1===e.uiBackCompat||s?"none"===n.mode?(l[u](),r()):o.call(l[0],n,i):(l.is(":hidden")?"hide"===u:"show"===u)?(l[u](),r()):o.call(l[0],n,r)}var n=t.apply(this,arguments),o=e.effects.effect[n.effect],s=o.mode,r=n.queue,l=r||"fx",c=n.complete,u=n.mode,h=[],d=function(t){var i=e(this),n=e.effects.mode(i,u)||s;i.data(a,!0),h.push(n),s&&("show"===n||n===s&&"hide"===n)&&i.show(),s&&"none"===n||e.effects.saveStyle(i),e.isFunction(t)&&t()};return e.fx.off||!o?u?this[u](n.duration,c):this.each(function(){c&&c.call(this)}):!1===r?this.each(d).each(i):this.queue(l,d).queue(l,i)},show:function(e){return function(n){if(i(n))return e.apply(this,arguments);var o=t.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(e.fn.show),hide:function(e){return function(n){if(i(n))return e.apply(this,arguments);var o=t.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(e.fn.hide),toggle:function(e){return function(n){if(i(n)||"boolean"==typeof n)return e.apply(this,arguments);var o=t.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])}),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):n(this.css("clip"),this)},transfer:function(t,i){var n=e(this),o=e(t.to),s="fixed"===o.css("position"),r=e("body"),a=s?r.scrollTop():0,l=s?r.scrollLeft():0,c=o.offset(),u={top:c.top-a,left:c.left-l,height:o.innerHeight(),width:o.innerWidth()},h=n.offset(),d=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:h.top-a,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){d.remove(),e.isFunction(i)&&i()})}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=n(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}();e.effects;e.effects.define("blind","hide",function(t,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=e(this),s=t.direction||"up",r=o.cssClip(),a={clip:e.extend({},r)},l=e.effects.createPlaceholder(o);a.clip[n[s][0]]=a.clip[n[s][1]],"show"===t.mode&&(o.cssClip(a.clip),l&&l.css(e.effects.clipToBox(a)),a.clip=r),l&&l.animate(e.effects.clipToBox(a),t.duration,t.easing),o.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("bounce",function(t,i){var n,o,s,r=e(this),a=t.mode,l="hide"===a,c="show"===a,u=t.direction||"up",h=t.distance,d=t.times||5,p=2*d+(c||l?1:0),f=t.duration/p,m=t.easing,g="up"===u||"down"===u?"top":"left",v="up"===u||"left"===u,y=0,b=r.queue().length;for(e.effects.createPlaceholder(r),s=r.css(g),h||(h=r["top"===g?"outerHeight":"outerWidth"]()/3),c&&(o={opacity:1},o[g]=s,r.css("opacity",0).css(g,v?2*-h:2*h).animate(o,f,m)),l&&(h/=Math.pow(2,d-1)),o={},o[g]=s;d>y;y++)n={},n[g]=(v?"-=":"+=")+h,r.animate(n,f,m).animate(o,f,m),h=l?2*h:h/2;l&&(n={opacity:0},n[g]=(v?"-=":"+=")+h,r.animate(n,f,m)),r.queue(i),e.effects.unshift(r,b,p+1)}),e.effects.define("clip","hide",function(t,i){var n,o={},s=e(this),r=t.direction||"vertical",a="both"===r,l=a||"horizontal"===r,c=a||"vertical"===r;n=s.cssClip(),o.clip={top:c?(n.bottom-n.top)/2:n.top,right:l?(n.right-n.left)/2:n.right,bottom:c?(n.bottom-n.top)/2:n.bottom,left:l?(n.right-n.left)/2:n.left},e.effects.createPlaceholder(s),"show"===t.mode&&(s.cssClip(o.clip),o.clip=n),s.animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("drop","hide",function(t,i){var n,o=e(this),s=t.mode,r="show"===s,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a?"-=":"+=",u="+="===c?"-=":"+=",h={opacity:0};e.effects.createPlaceholder(o),n=t.distance||o["top"===l?"outerHeight":"outerWidth"](!0)/2,h[l]=c+n,r&&(o.css(h),h[l]=u+n,h.opacity=1),o.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("explode","hide",function(t,i){function n(){b.push(this),b.length===h*d&&o()}function o(){p.css({visibility:"visible"}),e(b).remove(),i()}var s,r,a,l,c,u,h=t.pieces?Math.round(Math.sqrt(t.pieces)):3,d=h,p=e(this),f=t.mode,m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),y=Math.ceil(p.outerHeight()/h),b=[];for(s=0;h>s;s++)for(l=g.top+s*y,u=s-(h-1)/2,r=0;d>r;r++)a=g.left+r*v,c=r-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*v,top:-s*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:a+(m?c*v:0),top:l+(m?u*y:0),opacity:m?0:1}).animate({left:a+(m?0:c*v),top:l+(m?0:u*y),opacity:m?1:0},t.duration||500,t.easing,n)}),e.effects.define("fade","toggle",function(t,i){var n="show"===t.mode;e(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("fold","hide",function(t,i){var n=e(this),o=t.mode,s="show"===o,r="hide"===o,a=t.size||15,l=/([0-9]+)%/.exec(a),c=!!t.horizFirst,u=c?["right","bottom"]:["bottom","right"],h=t.duration/2,d=e.effects.createPlaceholder(n),p=n.cssClip(),f={clip:e.extend({},p)},m={clip:e.extend({},p)},g=[p[u[0]],p[u[1]]],v=n.queue().length;l&&(a=parseInt(l[1],10)/100*g[r?0:1]),f.clip[u[0]]=a,m.clip[u[0]]=a,m.clip[u[1]]=0,s&&(n.cssClip(m.clip),d&&d.css(e.effects.clipToBox(m)),m.clip=p),n.queue(function(i){d&&d.animate(e.effects.clipToBox(f),h,t.easing).animate(e.effects.clipToBox(m),h,t.easing),i()}).animate(f,h,t.easing).animate(m,h,t.easing).queue(i),e.effects.unshift(n,v,4)}),e.effects.define("highlight","show",function(t,i){var n=e(this),o={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(o.opacity=0),e.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("size",function(t,i){var n,o,s,r=e(this),a=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=t.mode,h="effect"!==u,d=t.scale||"both",p=t.origin||["middle","center"],f=r.css("position"),m=r.position(),g=e.effects.scaledDimensions(r),v=t.from||g,y=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===u&&(s=v,v=y,y=s),o={from:{y:v.height/g.height,x:v.width/g.width},to:{y:y.height/g.height,x:y.width/g.width}},("box"===d||"both"===d)&&(o.from.y!==o.to.y&&(v=e.effects.setTransition(r,l,o.from.y,v),y=e.effects.setTransition(r,l,o.to.y,y)),o.from.x!==o.to.x&&(v=e.effects.setTransition(r,c,o.from.x,v),y=e.effects.setTransition(r,c,o.to.x,y))),("content"===d||"both"===d)&&o.from.y!==o.to.y&&(v=e.effects.setTransition(r,a,o.from.y,v),y=e.effects.setTransition(r,a,o.to.y,y)),p&&(n=e.effects.getBaseline(p,g),v.top=(g.outerHeight-v.outerHeight)*n.y+m.top,v.left=(g.outerWidth-v.outerWidth)*n.x+m.left,y.top=(g.outerHeight-y.outerHeight)*n.y+m.top,y.left=(g.outerWidth-y.outerWidth)*n.x+m.left),r.css(v),("content"===d||"both"===d)&&(l=l.concat(["marginTop","marginBottom"]).concat(a),c=c.concat(["marginLeft","marginRight"]),r.find("*[width]").each(function(){var i=e(this),n=e.effects.scaledDimensions(i),s={height:n.height*o.from.y,width:n.width*o.from.x,outerHeight:n.outerHeight*o.from.y,outerWidth:n.outerWidth*o.from.x},r={height:n.height*o.to.y,width:n.width*o.to.x,outerHeight:n.height*o.to.y,outerWidth:n.width*o.to.x};o.from.y!==o.to.y&&(s=e.effects.setTransition(i,l,o.from.y,s),r=e.effects.setTransition(i,l,o.to.y,r)),o.from.x!==o.to.x&&(s=e.effects.setTransition(i,c,o.from.x,s),r=e.effects.setTransition(i,c,o.to.x,r)),h&&e.effects.saveStyle(i),i.css(s),i.animate(r,t.duration,t.easing,function(){h&&e.effects.restoreStyle(i)})})),r.animate(y,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===y.opacity&&r.css("opacity",v.opacity),h||(r.css("position","static"===f?"relative":f).offset(t),e.effects.saveStyle(r)),i()}})}),e.effects.define("scale",function(t,i){var n=e(this),o=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==o?0:100),r=e.extend(!0,{from:e.effects.scaledDimensions(n),to:e.effects.scaledDimensions(n,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,i)}),e.effects.define("puff","hide",function(t,i){var n=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,n,i)}),e.effects.define("pulsate","show",function(t,i){var n=e(this),o=t.mode,s="show"===o,r="hide"===o,a=s||r,l=2*(t.times||5)+(a?1:0),c=t.duration/l,u=0,h=1,d=n.queue().length;for((s||!n.is(":visible"))&&(n.css("opacity",0).show(),u=1);l>h;h++)n.animate({opacity:u},c,t.easing),u=1-u;n.animate({opacity:u},c,t.easing),n.queue(i),e.effects.unshift(n,d,l+1)}),e.effects.define("shake",function(t,i){var n=1,o=e(this),s=t.direction||"left",r=t.distance||20,a=t.times||3,l=2*a+1,c=Math.round(t.duration/l),u="up"===s||"down"===s?"top":"left",h="up"===s||"left"===s,d={},p={},f={},m=o.queue().length;for(e.effects.createPlaceholder(o),d[u]=(h?"-=":"+=")+r,p[u]=(h?"+=":"-=")+2*r,f[u]=(h?"-=":"+=")+2*r,o.animate(d,c,t.easing);a>n;n++)o.animate(p,c,t.easing).animate(f,c,t.easing);o.animate(p,c,t.easing).animate(d,c/2,t.easing).queue(i),e.effects.unshift(o,m,l+1)}),e.effects.define("slide","show",function(t,i){var n,o,s=e(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,h=t.distance||s["top"===c?"outerHeight":"outerWidth"](!0),d={};e.effects.createPlaceholder(s),n=s.cssClip(),o=s.position()[c],d[c]=(u?-1:1)*h+o,d.clip=s.cssClip(),d.clip[r[l][1]]=d.clip[r[l][0]],"show"===a&&(s.cssClip(d.clip),s.css(c,d[c]),d.clip=n,d[c]=o),s.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});!1!==e.uiBackCompat&&e.effects.define("transfer",function(t,i){e(this).transfer(t,i)})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){"use strict";function t(e){for(var t,i=e.split(/\s+/),n=[],o=0;t=i[o];o++)t=t.charAt(0).toUpperCase(),n.push(t);return n}function i(t){return t.id&&e('label[for="'+t.id+'"]').val()||t.name}function n(t,o,s){return s||(s=0),o.each(function(){var o,r,a=e(this),l=this,c=this.nodeName.toLowerCase();switch("label"===c&&a.find("input, textarea, select").length&&(o=a.text(),a=a.children().first(),l=a.get(0),c=l.nodeName.toLowerCase()),c){case"menu":r={name:a.attr("label"),items:{}},s=n(r.items,a.children(),s);break;case"a":case"button":r={name:a.text(),disabled:!!a.attr("disabled"),callback:function(){return function(){a.get(0).click()}}()};break;case"menuitem":case"command":switch(a.attr("type")){case void 0:case"command":case"menuitem":r={name:a.attr("label"),disabled:!!a.attr("disabled"),icon:a.attr("icon"),callback:function(){return function(){a.get(0).click()}}()};break;case"checkbox":r={type:"checkbox",disabled:!!a.attr("disabled"),name:a.attr("label"),selected:!!a.attr("checked")};break;case"radio":r={type:"radio",disabled:!!a.attr("disabled"),name:a.attr("label"),radio:a.attr("radiogroup"),value:a.attr("id"),selected:!!a.attr("checked")};break;default:r=void 0}break;case"hr":r="-------";break;case"input":switch(a.attr("type")){case"text":r={type:"text",name:o||i(l),disabled:!!a.attr("disabled"),value:a.val()};break;case"checkbox":r={type:"checkbox",name:o||i(l),disabled:!!a.attr("disabled"),selected:!!a.attr("checked")};break;case"radio":r={type:"radio",name:o||i(l),disabled:!!a.attr("disabled"),radio:!!a.attr("name"),value:a.val(),selected:!!a.attr("checked")};break;default:r=void 0}break;case"select":r={type:"select",name:o||i(l),disabled:!!a.attr("disabled"),selected:a.val(),options:{}},a.children().each(function(){r.options[this.value]=e(this).text()});break;case"textarea":r={type:"textarea",name:o||i(l),disabled:!!a.attr("disabled"),value:a.val()};break;case"label":break;default:r={type:"html",html:a.clone(!0)}}r&&(s++,t["key"+s]=r)}),s}e.support.htmlMenuitem="HTMLMenuItemElement"in window,e.support.htmlCommand="HTMLCommandElement"in window,e.support.eventSelectstart="onselectstart"in document.documentElement,e.ui&&e.widget||(e.cleanData=function(t){return function(i){var n,o,s;for(s=0;null!=i[s];s++){o=i[s];try{n=e._data(o,"events"),n&&n.remove&&e(o).triggerHandler("remove")}catch(e){}}t(i)}}(e.cleanData));var o=null,s=!1,r=e(window),a=0,l={},c={},u={},h={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,hideOnSecondTrigger:!1,selectableSubMenu:!1,classNames:{hover:"context-menu-hover",disabled:"context-menu-disabled",visible:"context-menu-visible",notSelectable:"context-menu-not-selectable",icon:"context-menu-icon",iconEdit:"context-menu-icon-edit",iconCut:"context-menu-icon-cut",iconCopy:"context-menu-icon-copy",iconPaste:"context-menu-icon-paste",iconDelete:"context-menu-icon-delete",iconAdd:"context-menu-icon-add",iconQuit:"context-menu-icon-quit",iconLoadingClass:"context-menu-icon-loading"},determinePosition:function(t){if(e.ui&&e.ui.position)t.css("display","block").position({my:"center top",at:"center bottom",of:this,offset:"0 5",collision:"fit"}).css("display","none");else{var i=this.offset();i.top+=this.outerHeight(),i.left+=this.outerWidth()/2-t.outerWidth()/2,t.css(i)}},position:function(e,t,i){var n;if(!t&&!i)return void e.determinePosition.call(this,e.$menu);if("maintain"===t&&"maintain"===i)n=e.$menu.position();else{var o=e.$menu.offsetParent().offset();n={top:i-o.top,left:t-o.left}}var s=r.scrollTop()+r.height(),a=r.scrollLeft()+r.width(),l=e.$menu.outerHeight(),c=e.$menu.outerWidth();n.top+l>s&&(n.top-=l),n.top<0&&(n.top=0),n.left+c>a&&(n.left-=c),n.left<0&&(n.left=0),e.$menu.css(n)},positionSubmenu:function(t){if(void 0!==t)if(e.ui&&e.ui.position)t.css("display","block").position({my:"left top-5",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var i={top:-9,left:this.outerWidth()-5};t.css(i)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:e.noop,hide:e.noop,activated:e.noop},callback:null,items:{}},d={timer:null,pageX:null,pageY:null},p=function(e){for(var t=0,i=e;;)if(t=Math.max(t,parseInt(i.css("z-index"),10)||0),!(i=i.parent())||!i.length||"html body".indexOf(i.prop("nodeName").toLowerCase())>-1)break;return t},f={abortevent:function(e){e.preventDefault(),e.stopImmediatePropagation()},contextmenu:function(t){var i=e(this);if("right"===t.data.trigger&&(t.preventDefault(),t.stopImmediatePropagation()),!("right"!==t.data.trigger&&"demand"!==t.data.trigger&&t.originalEvent||!(void 0===t.mouseButton||!t.data||"left"===t.data.trigger&&0===t.mouseButton||"right"===t.data.trigger&&2===t.mouseButton)||i.hasClass("context-menu-active")||i.hasClass("context-menu-disabled"))){if(o=i,t.data.build){var n=t.data.build(o,t);if(!1===n)return;if(t.data=e.extend(!0,{},h,t.data,n||{}),!t.data.items||e.isEmptyObject(t.data.items))throw window.console&&(console.error||console.log).call(console,"No items specified to show in contextMenu"),new Error("No Items specified");t.data.$trigger=o,m.create(t.data)}var s=!1;for(var r in t.data.items)if(t.data.items.hasOwnProperty(r)){var a;a=e.isFunction(t.data.items[r].visible)?t.data.items[r].visible.call(e(t.currentTarget),r,t.data):void 0===t.data.items[r]||!t.data.items[r].visible||!0===t.data.items[r].visible,a&&(s=!0)}s&&m.show.call(i,t.data,t.pageX,t.pageY)}},click:function(t){t.preventDefault(),t.stopImmediatePropagation(),e(this).trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))},mousedown:function(t){var i=e(this);o&&o.length&&!o.is(i)&&o.data("contextMenu").$menu.trigger("contextmenu:hide"),2===t.button&&(o=i.data("contextMenuActive",!0))},mouseup:function(t){var i=e(this);i.data("contextMenuActive")&&o&&o.length&&o.is(i)&&!i.hasClass("context-menu-disabled")&&(t.preventDefault(),t.stopImmediatePropagation(),o=i,i.trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))),i.removeData("contextMenuActive")},mouseenter:function(t){var i=e(this),n=e(t.relatedTarget),s=e(document);n.is(".context-menu-list")||n.closest(".context-menu-list").length||o&&o.length||(d.pageX=t.pageX,d.pageY=t.pageY,d.data=t.data,s.on("mousemove.contextMenuShow",f.mousemove),d.timer=setTimeout(function(){d.timer=null,s.off("mousemove.contextMenuShow"),o=i,i.trigger(e.Event("contextmenu",{data:d.data,pageX:d.pageX,pageY:d.pageY}))},t.data.delay))},mousemove:function(e){d.pageX=e.pageX,d.pageY=e.pageY},mouseleave:function(t){var i=e(t.relatedTarget);if(!i.is(".context-menu-list")&&!i.closest(".context-menu-list").length){try{clearTimeout(d.timer)}catch(t){}d.timer=null}},layerClick:function(t){var i,n,o=e(this),s=o.data("contextMenuRoot"),a=t.button,l=t.pageX,c=t.pageY;t.preventDefault(),setTimeout(function(){var o,u="left"===s.trigger&&0===a||"right"===s.trigger&&2===a;if(document.elementFromPoint&&s.$layer){if(s.$layer.hide(),i=document.elementFromPoint(l-r.scrollLeft(),c-r.scrollTop()),i.isContentEditable){var h=document.createRange(),d=window.getSelection();h.selectNode(i),h.collapse(!0),d.removeAllRanges(),d.addRange(h)}e(i).trigger(t),s.$layer.show()}if(s.hideOnSecondTrigger&&u&&null!==s.$menu&&void 0!==s.$menu)return void s.$menu.trigger("contextmenu:hide");if(s.reposition&&u)if(document.elementFromPoint){if(s.$trigger.is(i))return void s.position.call(s.$trigger,s,l,c)}else if(n=s.$trigger.offset(),o=e(window),n.top+=o.scrollTop(),n.top<=t.pageY&&(n.left+=o.scrollLeft(),n.left<=t.pageX&&(n.bottom=n.top+s.$trigger.outerHeight(),n.bottom>=t.pageY&&(n.right=n.left+s.$trigger.outerWidth(),n.right>=t.pageX))))return void s.position.call(s.$trigger,s,l,c);i&&u&&s.$trigger.one("contextmenu:hidden",function(){e(i).contextMenu({x:l,y:c,button:a})}),null!==s&&void 0!==s&&null!==s.$menu&&void 0!==s.$menu&&s.$menu.trigger("contextmenu:hide")},50)},keyStop:function(e,t){t.isInput||e.preventDefault(),e.stopPropagation()},key:function(e){var t={};o&&(t=o.data("contextMenu")||{}),void 0===t.zIndex&&(t.zIndex=0);var i=0,n=function(e){""!==e.style.zIndex?i=e.style.zIndex:null!==e.offsetParent&&void 0!==e.offsetParent?n(e.offsetParent):null!==e.parentElement&&void 0!==e.parentElement&&n(e.parentElement)};if(n(e.target),!(t.$menu&&parseInt(i,10)>parseInt(t.$menu.css("zIndex"),10))){switch(e.keyCode){case 9:case 38:if(f.keyStop(e,t),t.isInput){if(9===e.keyCode&&e.shiftKey)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("prevcommand"));if(38===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault()}else if(9!==e.keyCode||e.shiftKey)return void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("prevcommand"));break;case 40:if(f.keyStop(e,t),!t.isInput)return void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("nextcommand"));if(9===e.keyCode)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("nextcommand"));if(40===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault();break;case 37:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;if(!t.$selected.parent().hasClass("context-menu-root")){var s=t.$selected.parent().parent();return t.$selected.trigger("contextmenu:blur"),void(t.$selected=s)}break;case 39:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;var r=t.$selected.data("contextMenu")||{};if(r.$menu&&t.$selected.hasClass("context-menu-submenu"))return t.$selected=null,r.$selected=null,void r.$menu.trigger("nextcommand");break;case 35:case 36:return t.$selected&&t.$selected.find("input, textarea, select").length?void 0:((t.$selected&&t.$selected.parent()||t.$menu).children(":not(."+t.classNames.disabled+", ."+t.classNames.notSelectable+")")[36===e.keyCode?"first":"last"]().trigger("contextmenu:focus"),void e.preventDefault());case 13:if(f.keyStop(e,t),t.isInput){if(t.$selected&&!t.$selected.is("textarea, select"))return void e.preventDefault();break}return void(void 0!==t.$selected&&null!==t.$selected&&t.$selected.trigger("mouseup"));case 32:case 33:case 34:return void f.keyStop(e,t);case 27:return f.keyStop(e,t),void(null!==t.$menu&&void 0!==t.$menu&&t.$menu.trigger("contextmenu:hide"));default:var a=String.fromCharCode(e.keyCode).toUpperCase();if(t.accesskeys&&t.accesskeys[a])return void t.accesskeys[a].$node.trigger(t.accesskeys[a].$menu?"contextmenu:focus":"mouseup")}e.stopPropagation(),void 0!==t.$selected&&null!==t.$selected&&t.$selected.trigger(e)}},prevItem:function(t){t.stopPropagation();var i=e(this).data("contextMenu")||{},n=e(this).data("contextMenuRoot")||{};if(i.$selected){var o=i.$selected;i=i.$selected.parent().data("contextMenu")||{},i.$selected=o}for(var s=i.$menu.children(),r=i.$selected&&i.$selected.prev().length?i.$selected.prev():s.last(),a=r;r.hasClass(n.classNames.disabled)||r.hasClass(n.classNames.notSelectable)||r.is(":hidden");)if(r=r.prev().length?r.prev():s.last(),r.is(a))return;i.$selected&&f.itemMouseleave.call(i.$selected.get(0),t),f.itemMouseenter.call(r.get(0),t);var l=r.find("input, textarea, select");l.length&&l.focus()},nextItem:function(t){t.stopPropagation();var i=e(this).data("contextMenu")||{},n=e(this).data("contextMenuRoot")||{};if(i.$selected){var o=i.$selected;i=i.$selected.parent().data("contextMenu")||{},i.$selected=o}for(var s=i.$menu.children(),r=i.$selected&&i.$selected.next().length?i.$selected.next():s.first(),a=r;r.hasClass(n.classNames.disabled)||r.hasClass(n.classNames.notSelectable)||r.is(":hidden");)if(r=r.next().length?r.next():s.first(),r.is(a))return;i.$selected&&f.itemMouseleave.call(i.$selected.get(0),t),f.itemMouseenter.call(r.get(0),t);var l=r.find("input, textarea, select");l.length&&l.focus()},focusInput:function(){var t=e(this).closest(".context-menu-item"),i=t.data(),n=i.contextMenu,o=i.contextMenuRoot;o.$selected=n.$selected=t,o.isInput=n.isInput=!0},blurInput:function(){var t=e(this).closest(".context-menu-item"),i=t.data(),n=i.contextMenu;i.contextMenuRoot.isInput=n.isInput=!1},menuMouseenter:function(){e(this).data().contextMenuRoot.hovering=!0},menuMouseleave:function(t){var i=e(this).data().contextMenuRoot;i.$layer&&i.$layer.is(t.relatedTarget)&&(i.hovering=!1)},itemMouseenter:function(t){var i=e(this),n=i.data(),o=n.contextMenu,s=n.contextMenuRoot;if(s.hovering=!0,t&&s.$layer&&s.$layer.is(t.relatedTarget)&&(t.preventDefault(),t.stopImmediatePropagation()),(o.$menu?o:s).$menu.children("."+s.classNames.hover).trigger("contextmenu:blur").children(".hover").trigger("contextmenu:blur"),i.hasClass(s.classNames.disabled)||i.hasClass(s.classNames.notSelectable))return void(o.$selected=null);i.trigger("contextmenu:focus")},itemMouseleave:function(t){var i=e(this),n=i.data(),o=n.contextMenu,s=n.contextMenuRoot;if(s!==o&&s.$layer&&s.$layer.is(t.relatedTarget))return void 0!==s.$selected&&null!==s.$selected&&s.$selected.trigger("contextmenu:blur"),t.preventDefault(),t.stopImmediatePropagation(),void(s.$selected=o.$selected=o.$node);o&&o.$menu&&o.$menu.hasClass("context-menu-visible")||i.trigger("contextmenu:blur")},itemClick:function(t){var i,n=e(this),o=n.data(),s=o.contextMenu,r=o.contextMenuRoot,a=o.contextMenuKey;if(!(!s.items[a]||n.is("."+r.classNames.disabled+", .context-menu-separator, ."+r.classNames.notSelectable)||n.is(".context-menu-submenu")&&!1===r.selectableSubMenu)){if(t.preventDefault(),t.stopImmediatePropagation(),e.isFunction(s.callbacks[a])&&Object.prototype.hasOwnProperty.call(s.callbacks,a))i=s.callbacks[a];else{if(!e.isFunction(r.callback))return;i=r.callback}!1!==i.call(r.$trigger,a,r,t)?r.$menu.trigger("contextmenu:hide"):r.$menu.parent().length&&m.update.call(r.$trigger,r)}},inputClick:function(e){e.stopImmediatePropagation()},hideMenu:function(t,i){var n=e(this).data("contextMenuRoot");m.hide.call(n.$trigger,n,i&&i.force)},focusItem:function(t){t.stopPropagation();var i=e(this),n=i.data(),o=n.contextMenu,s=n.contextMenuRoot;i.hasClass(s.classNames.disabled)||i.hasClass(s.classNames.notSelectable)||(i.addClass([s.classNames.hover,s.classNames.visible].join(" ")).parent().find(".context-menu-item").not(i).removeClass(s.classNames.visible).filter("."+s.classNames.hover).trigger("contextmenu:blur"),o.$selected=s.$selected=i,o&&o.$node&&o.$node.hasClass("context-menu-submenu")&&o.$node.addClass(s.classNames.hover),o.$node&&s.positionSubmenu.call(o.$node,o.$menu))},blurItem:function(t){t.stopPropagation();var i=e(this),n=i.data(),o=n.contextMenu,s=n.contextMenuRoot;o.autoHide&&i.removeClass(s.classNames.visible),i.removeClass(s.classNames.hover),o.$selected=null}},m={show:function(t,i,n){var s=e(this),r={};if(e("#context-menu-layer").trigger("mousedown"),t.$trigger=s,!1===t.events.show.call(s,t))return void(o=null);if(m.update.call(s,t),t.position.call(s,t,i,n),t.zIndex){var a=t.zIndex;"function"==typeof t.zIndex&&(a=t.zIndex.call(s,t)),r.zIndex=p(s)+a}m.layer.call(t.$menu,t,r.zIndex),t.$menu.find("ul").css("zIndex",r.zIndex+1),t.$menu.css(r)[t.animation.show](t.animation.duration,function(){s.trigger("contextmenu:visible"),m.activated(t),t.events.activated()}),s.data("contextMenu",t).addClass("context-menu-active"),e(document).off("keydown.contextMenu").on("keydown.contextMenu",f.key),t.autoHide&&e(document).on("mousemove.contextMenuAutoHide",function(e){var i=s.offset();i.right=i.left+s.outerWidth(),i.bottom=i.top+s.outerHeight(),!t.$layer||t.hovering||e.pageX>=i.left&&e.pageX<=i.right&&e.pageY>=i.top&&e.pageY<=i.bottom||setTimeout(function(){t.hovering||null===t.$menu||void 0===t.$menu||t.$menu.trigger("contextmenu:hide")},50)})},hide:function(t,i){var n=e(this);if(t||(t=n.data("contextMenu")||{}),i||!t.events||!1!==t.events.hide.call(n,t)){if(n.removeData("contextMenu").removeClass("context-menu-active"),t.$layer){setTimeout(function(e){return function(){e.remove()}}(t.$layer),10);try{delete t.$layer}catch(e){t.$layer=null}}o=null,t.$menu.find("."+t.classNames.hover).trigger("contextmenu:blur"),t.$selected=null,t.$menu.find("."+t.classNames.visible).removeClass(t.classNames.visible),e(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),t.$menu&&t.$menu[t.animation.hide](t.animation.duration,function(){t.build&&(t.$menu.remove(),e.each(t,function(e){switch(e){case"ns":case"selector":case"build":case"trigger":return!0;default:t[e]=void 0;try{delete t[e]}catch(e){}return!0}})),setTimeout(function(){n.trigger("contextmenu:hidden")},10)})}},create:function(i,n){function o(t){var i=e("<span></span>");if(t._accesskey)t._beforeAccesskey&&i.append(document.createTextNode(t._beforeAccesskey)),e("<span></span>").addClass("context-menu-accesskey").text(t._accesskey).appendTo(i),t._afterAccesskey&&i.append(document.createTextNode(t._afterAccesskey));else if(t.isHtmlName){if(void 0!==t.accesskey)throw new Error("accesskeys are not compatible with HTML names and cannot be used together in the same item");i.html(t.name)}else i.text(t.name);return i}void 0===n&&(n=i),i.$menu=e('<ul class="context-menu-list"></ul>').addClass(i.className||"").data({contextMenu:i,contextMenuRoot:n}),e.each(["callbacks","commands","inputs"],function(e,t){i[t]={},n[t]||(n[t]={})}),n.accesskeys||(n.accesskeys={}),e.each(i.items,function(s,r){var a=e('<li class="context-menu-item"></li>').addClass(r.className||""),l=null,c=null;if(a.on("click",e.noop),"string"!=typeof r&&"cm_separator"!==r.type||(r={type:"cm_seperator"}),r.$node=a.data({contextMenu:i,contextMenuRoot:n,contextMenuKey:s}),void 0!==r.accesskey)for(var h,d=t(r.accesskey),p=0;h=d[p];p++)if(!n.accesskeys[h]){n.accesskeys[h]=r;var g=r.name.match(new RegExp("^(.*?)("+h+")(.*)$","i"));g&&(r._beforeAccesskey=g[1],r._accesskey=g[2],r._afterAccesskey=g[3]);break}if(r.type&&u[r.type])u[r.type].call(a,r,i,n),e.each([i,n],function(t,n){n.commands[s]=r,!e.isFunction(r.callback)||void 0!==n.callbacks[s]&&void 0!==i.type||(n.callbacks[s]=r.callback)});else{switch("cm_seperator"===r.type?a.addClass("context-menu-separator "+n.classNames.notSelectable):"html"===r.type?a.addClass("context-menu-html "+n.classNames.notSelectable):"sub"===r.type||(r.type?(l=e("<label></label>").appendTo(a),o(r).appendTo(l),a.addClass("context-menu-input"),i.hasTypes=!0,e.each([i,n],function(e,t){t.commands[s]=r,t.inputs[s]=r})):r.items&&(r.type="sub")),r.type){case"cm_seperator":break;case"text":c=e('<input type="text" value="1" name="" />').attr("name","context-menu-input-"+s).val(r.value||"").appendTo(l);break;case"textarea":c=e('<textarea name=""></textarea>').attr("name","context-menu-input-"+s).val(r.value||"").appendTo(l),r.height&&c.height(r.height);break;case"checkbox":c=e('<input type="checkbox" value="1" name="" />').attr("name","context-menu-input-"+s).val(r.value||"").prop("checked",!!r.selected).prependTo(l);break;case"radio":c=e('<input type="radio" value="1" name="" />').attr("name","context-menu-input-"+r.radio).val(r.value||"").prop("checked",!!r.selected).prependTo(l);break;case"select":c=e('<select name=""></select>').attr("name","context-menu-input-"+s).appendTo(l),r.options&&(e.each(r.options,function(t,i){e("<option></option>").val(t).text(i).appendTo(c)}),c.val(r.selected));break;case"sub":o(r).appendTo(a),r.appendTo=r.$node,a.data("contextMenu",r).addClass("context-menu-submenu"),r.callback=null,"function"==typeof r.items.then?m.processPromises(r,n,r.items):m.create(r,n);break;case"html":e(r.html).appendTo(a);break;default:e.each([i,n],function(t,n){n.commands[s]=r,!e.isFunction(r.callback)||void 0!==n.callbacks[s]&&void 0!==i.type||(n.callbacks[s]=r.callback)}),o(r).appendTo(a)}r.type&&"sub"!==r.type&&"html"!==r.type&&"cm_seperator"!==r.type&&(c.on("focus",f.focusInput).on("blur",f.blurInput),r.events&&c.on(r.events,i)),r.icon&&(e.isFunction(r.icon)?r._icon=r.icon.call(this,this,a,s,r):"string"==typeof r.icon&&"fa-"===r.icon.substring(0,3)?r._icon=n.classNames.icon+" "+n.classNames.icon+"--fa fa "+r.icon:r._icon=n.classNames.icon+" "+n.classNames.icon+"-"+r.icon,a.addClass(r._icon))}r.$input=c,r.$label=l,a.appendTo(i.$menu),!i.hasTypes&&e.support.eventSelectstart&&a.on("selectstart.disableTextSelect",f.abortevent)}),i.$node||i.$menu.css("display","none").addClass("context-menu-root"),i.$menu.appendTo(i.appendTo||document.body)},resize:function(t,i){var n;t.css({position:"absolute",display:"block"}),t.data("width",(n=t.get(0)).getBoundingClientRect?Math.ceil(n.getBoundingClientRect().width):t.outerWidth()+1),t.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),t.find("> li > ul").each(function(){m.resize(e(this),!0)}),i||t.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).outerWidth(function(){return e(this).data("width")})},update:function(t,i){var n=this;void 0===i&&(i=t,m.resize(t.$menu)),t.$menu.children().each(function(){var o,s=e(this),r=s.data("contextMenuKey"),a=t.items[r],l=e.isFunction(a.disabled)&&a.disabled.call(n,r,i)||!0===a.disabled;if(o=e.isFunction(a.visible)?a.visible.call(n,r,i):void 0===a.visible||!0===a.visible,s[o?"show":"hide"](),s[l?"addClass":"removeClass"](i.classNames.disabled),e.isFunction(a.icon)&&(s.removeClass(a._icon),a._icon=a.icon.call(this,n,s,r,a),s.addClass(a._icon)),a.type)switch(s.find("input, select, textarea").prop("disabled",l),a.type){case"text":case"textarea":a.$input.val(a.value||"");break;case"checkbox":case"radio":a.$input.val(a.value||"").prop("checked",!!a.selected);break;case"select":a.$input.val((0===a.selected?"0":a.selected)||"")}a.$menu&&m.update.call(n,a,i)})},layer:function(t,i){var n=t.$layer=e('<div id="context-menu-layer"></div>').css({height:r.height(),width:r.width(),display:"block",position:"fixed","z-index":i,top:0,left:0,opacity:0,filter:"alpha(opacity=0)","background-color":"#000"}).data("contextMenuRoot",t).insertBefore(this).on("contextmenu",f.abortevent).on("mousedown",f.layerClick);return void 0===document.body.style.maxWidth&&n.css({position:"absolute",height:e(document).height()}),n},processPromises:function(e,t,i){function n(e,t,i){void 0===i&&o(void 0),s(e,t,i)}function o(e,t,i){void 0===i?(i={error:{name:"No items and no error item",icon:"context-menu-icon context-menu-icon-quit"}},window.console&&(console.error||console.log).call(console,'When you reject a promise, provide an "items" object, equal to normal sub-menu items')):"string"==typeof i&&(i={error:{name:i}}),s(e,t,i)}function s(e,t,i){void 0!==t.$menu&&t.$menu.is(":visible")&&(e.$node.removeClass(t.classNames.iconLoadingClass),e.items=i,m.create(e,t,!0),m.update(e,t),t.positionSubmenu.call(e.$node,e.$menu))}e.$node.addClass(t.classNames.iconLoadingClass),i.then(n.bind(this,e,t),o.bind(this,e,t))},activated:function(t){var i=t.$menu,n=i.offset(),o=e(window).height(),s=e(window).scrollTop(),r=i.height();r>o?i.css({height:o+"px","overflow-x":"hidden","overflow-y":"auto",top:s+"px"}):(n.top<s||n.top+r>s+o)&&i.css({top:"0px"})}};e.fn.contextMenu=function(t){var i=this,n=t;if(this.length>0)if(void 0===t)this.first().trigger("contextmenu");else if(void 0!==t.x&&void 0!==t.y)this.first().trigger(e.Event("contextmenu",{pageX:t.x,pageY:t.y,mouseButton:t.button}));else if("hide"===t){var o=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;o&&o.trigger("contextmenu:hide")}else"destroy"===t?e.contextMenu("destroy",{context:this}):e.isPlainObject(t)?(t.context=this,e.contextMenu("create",t)):t?this.removeClass("context-menu-disabled"):t||this.addClass("context-menu-disabled");else e.each(c,function(){this.selector===i.selector&&(n.data=this,e.extend(n.data,{trigger:"demand"}))}),f.contextmenu.call(n.target,n);return this},e.contextMenu=function(t,i){"string"!=typeof t&&(i=t,t="create"),"string"==typeof i?i={selector:i}:void 0===i&&(i={});var n=e.extend(!0,{},h,i||{}),o=e(document),r=o,u=!1;switch(n.context&&n.context.length?(r=e(n.context).first(),n.context=r.get(0),u=!e(n.context).is(document)):n.context=document,t){case"update":if(u)m.update(r);else for(var d in c)c.hasOwnProperty(d)&&m.update(c[d]);break;case"create":if(!n.selector)throw new Error("No selector specified");if(n.selector.match(/.context-menu-(list|item|input)($|\s)/))throw new Error('Cannot bind to selector "'+n.selector+'" as it contains a reserved className');if(!n.build&&(!n.items||e.isEmptyObject(n.items)))throw new Error("No Items specified");if(a++,n.ns=".contextMenu"+a,u||(l[n.selector]=n.ns),c[n.ns]=n,n.trigger||(n.trigger="right"),!s){var p="click"===n.itemClickEvent?"click.contextMenu":"mouseup.contextMenu",g={"contextmenu:focus.contextMenu":f.focusItem,"contextmenu:blur.contextMenu":f.blurItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.itemMouseenter,"mouseleave.contextMenu":f.itemMouseleave};g[p]=f.itemClick,o.on({"contextmenu:hide.contextMenu":f.hideMenu,"prevcommand.contextMenu":f.prevItem,"nextcommand.contextMenu":f.nextItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.menuMouseenter,"mouseleave.contextMenu":f.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",f.inputClick).on(g,".context-menu-item"),s=!0}switch(r.on("contextmenu"+n.ns,n.selector,n,f.contextmenu),u&&r.on("remove"+n.ns,function(){e(this).contextMenu("destroy")}),n.trigger){case"hover":r.on("mouseenter"+n.ns,n.selector,n,f.mouseenter).on("mouseleave"+n.ns,n.selector,n,f.mouseleave);break;case"left":r.on("click"+n.ns,n.selector,n,f.click);break;case"touchstart":r.on("touchstart"+n.ns,n.selector,n,f.click)}n.build||m.create(n);break;case"destroy":var v;if(u){var y=n.context;e.each(c,function(t,i){if(!i)return!0;if(!e(y).is(i.selector))return!0;v=e(".context-menu-list").filter(":visible"),v.length&&v.data().contextMenuRoot.$trigger.is(e(i.context).find(i.selector))&&v.trigger("contextmenu:hide",{force:!0});try{c[i.ns].$menu&&c[i.ns].$menu.remove(),delete c[i.ns]}catch(e){c[i.ns]=null}return e(i.context).off(i.ns),!0})}else if(n.selector){if(l[n.selector]){v=e(".context-menu-list").filter(":visible"),v.length&&v.data().contextMenuRoot.$trigger.is(n.selector)&&v.trigger("contextmenu:hide",{force:!0});try{c[l[n.selector]].$menu&&c[l[n.selector]].$menu.remove(),delete c[l[n.selector]]}catch(e){c[l[n.selector]]=null}o.off(l[n.selector])}}else o.off(".contextMenu .contextMenuAutoHide"),e.each(c,function(t,i){e(i.context).off(i.ns)}),l={},c={},a=0,s=!1,e("#context-menu-layer, .context-menu-list").remove();break;case"html5":(!e.support.htmlCommand&&!e.support.htmlMenuitem||"boolean"==typeof i&&i)&&e('menu[type="context"]').each(function(){this.id&&e.contextMenu({selector:"[contextmenu="+this.id+"]",items:e.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw new Error('Unknown operation "'+t+'"')}return this},e.contextMenu.setInputValues=function(t,i){void 0===i&&(i={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":t.value=i[e]||"";break;case"checkbox":t.selected=!!i[e];break;case"radio":t.selected=(i[t.radio]||"")===t.value;break;case"select":t.selected=i[e]||""}})},e.contextMenu.getInputValues=function(t,i){return void 0===i&&(i={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":case"select":i[e]=t.$input.val();break;case"checkbox":i[e]=t.$input.prop("checked");break;case"radio":t.$input.prop("checked")&&(i[t.radio]=t.value)}}),i},e.contextMenu.fromMenu=function(t){var i=e(t),o={};return n(o,i.children()),o},e.contextMenu.defaults=h,e.contextMenu.types=u,e.contextMenu.handle=f,e.contextMenu.op=m,e.contextMenu.menus=c}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{},e.ui.version="1.12.1",function(){function t(e,t,i){return[parseFloat(e[0])*(h.test(e[0])?t/100:1),parseFloat(e[1])*(h.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function n(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var o,s=Math.max,r=Math.abs,a=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,h=/%$/,d=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==o)return o;var t,i,n=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=n.children()[0];return e("body").append(n),t=s.offsetWidth,n.css("overflow","scroll"),i=s.offsetWidth,t===i&&(i=n[0].clientWidth),n.remove(),o=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),n=e.isWindow(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:o,offset:n||o?{left:0,top:0}:e(t).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},e.fn.position=function(o){if(!o||!o.of)return d.apply(this,arguments);o=e.extend({},o);var h,p,f,m,g,v,y=e(o.of),b=e.position.getWithinInfo(o.within),x=e.position.getScrollInfo(b),w=(o.collision||"flip").split(" "),k={};return v=n(y),y[0].preventDefault&&(o.at="left top"),p=v.width,f=v.height,m=v.offset,g=e.extend({},m),e.each(["my","at"],function(){var e,t,i=(o[this]||"").split(" ");1===i.length&&(i=a.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=a.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",e=c.exec(i[0]),t=c.exec(i[1]),k[this]=[e?e[0]:0,t?t[0]:0],o[this]=[u.exec(i[0])[0],u.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===o.at[0]?g.left+=p:"center"===o.at[0]&&(g.left+=p/2),"bottom"===o.at[1]?g.top+=f:"center"===o.at[1]&&(g.top+=f/2),h=t(k.at,p,f),g.left+=h[0],g.top+=h[1],this.each(function(){var n,a,l=e(this),c=l.outerWidth(),u=l.outerHeight(),d=i(this,"marginLeft"),v=i(this,"marginTop"),C=c+d+i(this,"marginRight")+x.width,_=u+v+i(this,"marginBottom")+x.height,T=e.extend({},g),S=t(k.my,l.outerWidth(),l.outerHeight());"right"===o.my[0]?T.left-=c:"center"===o.my[0]&&(T.left-=c/2),"bottom"===o.my[1]?T.top-=u:"center"===o.my[1]&&(T.top-=u/2),T.left+=S[0],T.top+=S[1],n={marginLeft:d,marginTop:v},e.each(["left","top"],function(t,i){e.ui.position[w[t]]&&e.ui.position[w[t]][i](T,{targetWidth:p,targetHeight:f,elemWidth:c,elemHeight:u,collisionPosition:n,collisionWidth:C,collisionHeight:_,offset:[h[0]+S[0],h[1]+S[1]],my:o.my,at:o.at,within:b,elem:l})}),o.using&&(a=function(e){var t=m.left-T.left,i=t+p-c,n=m.top-T.top,a=n+f-u,h={target:{element:y,left:m.left,top:m.top,width:p,height:f},element:{element:l,left:T.left,top:T.top,width:c,height:u},horizontal:0>i?"left":t>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};c>p&&p>r(t+i)&&(h.horizontal="center"),u>f&&f>r(n+a)&&(h.vertical="middle"),h.important=s(r(t),r(i))>s(r(n),r(a))?"horizontal":"vertical",o.using.call(this,e,h)}),l.offset(e.extend(T,{using:a}))})},e.ui.position={fit:{left:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,c=a+t.collisionWidth-r-o;t.collisionWidth>r?l>0&&0>=c?(i=e.left+l+t.collisionWidth-r-o,e.left+=l-i):e.left=c>0&&0>=l?o:l>c?o+r-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=s(e.left-a,e.left)},top:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,c=a+t.collisionHeight-r-o;t.collisionHeight>r?l>0&&0>=c?(i=e.top+l+t.collisionHeight-r-o,e.top+=l-i):e.top=c>0&&0>=l?o:l>c?o+r-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=s(e.top-a,e.top)}},flip:{left:function(e,t){var i,n,o=t.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,u=c-l,h=c+t.collisionWidth-a-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(0>(i=e.left+d+p+f+t.collisionWidth-a-s)||r(u)>i)&&(e.left+=d+p+f):h>0&&((n=e.left-t.collisionPosition.marginLeft+d+p+f-l)>0||h>r(n))&&(e.left+=d+p+f)},top:function(e,t){var i,n,o=t.within,s=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,u=c-l,h=c+t.collisionHeight-a-l,d="top"===t.my[1],p=d?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(0>(n=e.top+p+f+m+t.collisionHeight-a-s)||r(u)>n)&&(e.top+=p+f+m):h>0&&((i=e.top-t.collisionPosition.marginTop+p+f+m-l)>0||h>r(i))&&(e.top+=p+f+m)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position})}(); |