tradewex.com
Open in
urlscan Pro
192.243.219.133
Public Scan
Submitted URL: http://tradewex.com/js/site.min.js?v=rKfwa9USRq8sySyILLXMiL5SQg4hEKnwTJavRwVqwzM
Effective URL: https://tradewex.com/js/site.min.js?v=rKfwa9USRq8sySyILLXMiL5SQg4hEKnwTJavRwVqwzM
Submission: On January 09 via api from CH — Scanned from DE
Effective URL: https://tradewex.com/js/site.min.js?v=rKfwa9USRq8sySyILLXMiL5SQg4hEKnwTJavRwVqwzM
Submission: On January 09 via api from CH — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ function sm_format_twitter(n){for(var r,u,i=[],t=0;t<n.length;t++)r=n[t].user.screen_name,u=n[t].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g,function(n){return'<a href="'+n+'" target="_blank">'+n+"<\/a>"}).replace(/\B@([_a-z0-9]+)/ig,function(n){return n.charAt(0)+'<a href="http://twitter.com/'+n.substring(1)+'" target="_blank">'+n.substring(1)+"<\/a>"}),i.push('<li><i class="icon-twitter"><\/i><span>'+u+'<\/span><small><a href="http://twitter.com/'+r+"/statuses/"+n[t].id_str+'" target="_blank">'+relative_time(n[t].created_at)+"<\/a><\/small><\/li>");return i.join("")}function sm_format_twitter2(n){for(var r,u,i=[],t=0;t<n.length;t++)r=n[t].user.screen_name,u=n[t].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g,function(n){return'<a href="'+n+'" target="_blank">'+n+"<\/a>"}).replace(/\B@([_a-z0-9]+)/ig,function(n){return n.charAt(0)+'<a href="http://twitter.com/'+n.substring(1)+'" target="_blank">'+n.substring(1)+"<\/a>"}),i.push('<div class="slide"><span>'+u+'<\/span><small><a href="http://twitter.com/'+r+"/statuses/"+n[t].id_str+'" target="_blank">'+relative_time(n[t].created_at)+"<\/a><\/small><\/div>");return i.join("")}function sm_format_twitter3(n){for(var r,u,i=[],t=0;t<n.length;t++)r=n[t].user.screen_name,u=n[t].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g,function(n){return'<a href="'+n+'" target="_blank">'+n+"<\/a>"}).replace(/\B@([_a-z0-9]+)/ig,function(n){return n.charAt(0)+'<a href="http://twitter.com/'+n.substring(1)+'" target="_blank">'+n.substring(1)+"<\/a>"}),i.push('<div class="slide"><div class="testi-content"><p>'+u+'<\/p><div class="testi-meta"><span><a href="http://twitter.com/'+r+"/statuses/"+n[t].id_str+'" target="_blank">'+relative_time(n[t].created_at)+"<\/a><\/span><\/div><\/div><\/div>");return i.join("")}function relative_time(n){var i=n.split(" ");n=i[1]+" "+i[2]+", "+i[5]+" "+i[3];var u=Date.parse(n),r=arguments.length>1?arguments[1]:new Date,t=parseInt((r.getTime()-u)/1e3);return t=t+r.getTimezoneOffset()*60,t<60?"less than a minute ago":t<120?"about a minute ago":t<3600?parseInt(t/60).toString()+" minutes ago":t<7200?"about an hour ago":t<86400?"about "+parseInt(t/3600).toString()+" hours ago":t<172800?"1 day ago":parseInt(t/86400).toString()+" days ago"}function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function setUnit(n,t){return"string"!=typeof n||n.match(/^[\-0-9\.]+jQuery/)?""+n+t:n}function setFilter(n,t,i){var u=uncamel(t),r=jQuery.browser.mozilla?"":jQuery.CSS.sfx;n[r+"filter"]=n[r+"filter"]||"";i=setUnit(i>jQuery.CSS.filters[t].max?jQuery.CSS.filters[t].max:i,jQuery.CSS.filters[t].unit);n[r+"filter"]+=u+"("+i+") ";delete n[t]}function debounce(n,t,i){var r,u,f,o,e;return function(){f=this;u=arguments;o=new Date;var s=function(){var h=new Date-o;h<t?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u)))},h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u)),e}}function onScrollSliderParallax(){requesting||(requesting=!0,requestAnimationFrame(function(){SEMICOLON.slider.sliderParallax();SEMICOLON.slider.sliderElementsFade()}));killRequesting()}var ssc_uniqueID,ischrome,ytp,getYTPVideoID,nAgt,nameOffset,verOffset,ix,start,end,Swiper,$,requesting,killRequesting,SEMICOLON,_paq;!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ri(n){var t="length"in n&&n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ui(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(re.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function hr(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function ee(n){var t=fi[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function cr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",a,!1),n.removeEventListener("load",a,!1)):(u.detachEvent("onreadystatechange",a),n.detachEvent("onload",a))}function a(){(u.addEventListener||"load"===event.type||"complete"===u.readyState)&&(cr(),i.ready())}function yr(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(vr,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ar.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function ei(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function pr(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),("object"==typeof t||"function"==typeof t)&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function wr(n,t,u){if(i.acceptData(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!ei(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,ei(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=null)}}}function vt(){return!0}function it(){return!1}function dr(){try{return u.activeElement}catch(n){}}function gr(n){var i=nu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,s=0,r=typeof n.getElementsByTagName!==o?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[s]);s++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function we(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function eu(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ou(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function su(n){var t=ve.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function li(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function hu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(ou(t).text=n.text,su(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:("input"===u||"textarea"===u)&&(t.defaultValue=n.defaultValue)}}function cu(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function yt(n){var r=u,t=ai[n];return t||(t=cu(n,r),"none"!==t&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=cu(n,r),ot.detach()),ai[n]=t),t}function au(n,t){return{get:function(){var i=n();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}function pu(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=yu.length;i--;)if(t=yu[i]+r,t in n)return t;return u}function wu(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&et(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=et(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function bu(n,t,i){var r=no.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function ku(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+w[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+w[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function du(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=k(n),s=r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=d(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+ku(n,t,u||(s?"border":"content"),o,e)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function nf(){return setTimeout(function(){rt=void 0}),rt=i.now()}function kt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function tf(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function fo(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;i.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],ro.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=tf(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function eo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function rf(n,t,r){var h,e,o=0,l=bt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=rt||nf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||nf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(eo(s,u.opts.specialEasing);l>o;o++)if(h=bt[o].call(u,n,s,u.opts))return h;return i.map(s,tf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function af(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function vf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===bi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ao(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function di(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||po.test(n)?u(n,i):di(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)di(n+"["+f+"]",t[f],r,u)}function pf(){try{return new n.XMLHttpRequest}catch(t){}}function go(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function wf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var c=[],l=c.slice,ir=c.concat,ii=c.push,rr=c.indexOf,ct={},df=ct.toString,tt=ct.hasOwnProperty,r={},ur="1.11.3",i=function(n,t){return new i.fn.init(n,t)},gf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ne=/^-ms-/,te=/-([\da-z])/gi,ie=function(n,t){return t.toUpperCase()},p,or,sr,h,fi,lt,o,lr,ar,vr,ot,ai,uf,ef,of,gt,gi,ti,nr,tr,bf,kf;i.fn=i.prototype={jquery:ur,constructor:i,selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:l.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ii,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(ur+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)+1>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return tt.call(n,t);for(t in n);return void 0===t||tt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ct[df.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(ne,"ms-").replace(te,ie)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ri(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(gf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ri(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ii.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(rr)return rr.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ri(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return ir.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=l.call(arguments,2),r=function(){return n.apply(t||this,u.concat(l.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ct["[object "+t+"]"]=t.toLowerCase()});p=function(n){function r(n,t,i,r){var p,s,a,c,w,y,d,v,nt,g;if((t?t.ownerDocument||t:h)!==o&&k(t),t=t||o,i=i||[],c=t.nodeType,"string"!=typeof n||!n||1!==c&&9!==c&&11!==c)return i;if(!r&&l){if(11!==c&&(p=hr.exec(n)))if(a=p[1]){if(9===c){if(s=t.getElementById(a),!s||!s.parentNode)return i;if(s.id===a)return i.push(s),i}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&et(t,s)&&s.id===a)return i.push(s),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((a=p[3])&&u.getElementsByClassName)return b.apply(i,t.getElementsByClassName(a)),i}if(u.qsa&&(!e||!e.test(n))){if(v=d=f,nt=t,g=1!==c&&n,1===c&&"object"!==t.nodeName.toLowerCase()){for(y=ft(n),(d=t.getAttribute("id"))?v=d.replace(cr,"\\$&"):t.setAttribute("id",v),v="[id='"+v+"'] ",w=y.length;w--;)y[w]=v+vt(y[w]);nt=dt.test(n)&&ti(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return oi(n.replace(lt,"$1"),t,i,r)}function gt(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function c(n){return n[f]=!0,n}function v(n){var t=o.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ni(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ti(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function bi(){}function vt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ii(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[a,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===a&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ri(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function vr(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function yt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function ui(n,t,i,r,u,e){return r&&!r[f]&&(r=ui(r)),u&&!u[f]&&(u=ui(u,e)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||vr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:yt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=yt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=yt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function fi(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ii(function(n){return n===o},c,!0),a=ii(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];s>i;i++)if(u=t.relative[n[i].type])e=[ii(ri(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;s>r;r++)if(t.relative[n[r].type])break;return ui(i>1&&ri(e),i>1&&vt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(lt,"$1"),u,r>i&&fi(n.slice(i,r)),s>r&&fi(n=n.slice(r)),s>r&&vt(n))}e.push(u)}return ri(e)}function yr(n,i){var u=i.length>0,f=n.length>0,e=function(e,s,h,c,l){var y,d,w,k=0,v="0",g=e&&[],p=[],nt=ht,tt=e||f&&t.find.TAG("*",l),it=a+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ht=s!==o&&s);v!==rt&&null!=(y=tt[v]);v++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(a=it)}u&&((y=!w&&y)&&k--,e&&g.push(y))}if(k+=v,u&&v!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(e){if(k>0)while(v--)g[v]||p[v]||(p[v]=gi.call(c));p=yt(p)}b.apply(c,p);l&&!e&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(a=it,ht=nt),g};return u?c(e):e}var it,u,t,st,ei,ft,pt,oi,ht,w,rt,k,o,s,l,e,d,ct,et,f="sizzle"+1*new Date,h=n.document,a=0,ki=0,si=gt(),hi=gt(),ci=gt(),wt=function(n,t){return n===t&&(rt=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,b=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},bt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ut="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi=ut.replace("w","w#"),yi="\\["+i+"*("+ut+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+vi+"))|)"+i+"*\\]",kt=":("+ut+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+yi+")*)|.*)\\)|)",tr=new RegExp(i+"+","g"),lt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),ir=new RegExp("^"+i+"*,"+i+"*"),rr=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ur=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),fr=new RegExp(kt),er=new RegExp("^"+vi+"$"),at={ID:new RegExp("^#("+ut+")"),CLASS:new RegExp("^\\.("+ut+")"),TAG:new RegExp("^("+ut.replace("w","w*")+")"),ATTR:new RegExp("^"+yi),PSEUDO:new RegExp("^"+kt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+bt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},or=/^(?:input|select|textarea|button)$/i,sr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,hr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,dt=/[+~]/,cr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},pi=function(){k()};try{b.apply(g=ai.call(h.childNodes),h.childNodes);g[h.childNodes.length].nodeType}catch(pr){b={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}u=r.support={};ei=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};k=r.setDocument=function(n){var a,c,r=n?n.ownerDocument||n:h;return r!==o&&9===r.nodeType&&r.documentElement?(o=r,s=r.documentElement,c=r.defaultView,c&&c!==c.top&&(c.addEventListener?c.addEventListener("unload",pi,!1):c.attachEvent&&c.attachEvent("onunload",pi)),l=!ei(r),u.attributes=v(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=v(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=ot.test(r.getElementsByClassName),u.getById=v(function(n){return s.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):u.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(l)return t.getElementsByClassName(n)},d=[],e=[],(u.qsa=ot.test(r.querySelectorAll))&&(v(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\f]' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&e.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||e.push("\\["+i+"*(?:value|"+bt+")");n.querySelectorAll("[id~="+f+"-]").length||e.push("~=");n.querySelectorAll(":checked").length||e.push(":checked");n.querySelectorAll("a#"+f+"+*").length||e.push(".#.+[+~]")}),v(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&e.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||e.push(":enabled",":disabled");n.querySelectorAll("*,:x");e.push(",.*:")})),(u.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&v(function(n){u.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",kt)}),e=e.length&&new RegExp(e.join("|")),d=d.length&&new RegExp(d.join("|")),a=ot.test(s.compareDocumentPosition),et=a||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},wt=a?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===h&&et(h,n)?-1:t===r||t.ownerDocument===h&&et(h,t)?1:w?nt(w,n)-nt(w,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===r?-1:t===r?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===h?-1:e[u]===h?1:0},r):o};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==o&&k(n),t=t.replace(ur,"='$1']"),!(!u.matchesSelector||!l||d&&d.test(t)||e&&e.test(t)))try{var i=ct.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,o,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==o&&k(n),et(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==o&&k(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!l):void 0;return void 0!==r?r:u.attributes||!l?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,w=!u.sortStable&&n.slice(0),n.sort(wt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return w=null,n};st=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=r.selectors={cacheLength:50,createPseudo:c,match:at,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return at.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&si(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var v,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),v=k[n]||[],y=v[0]===a&&v[1],l=v[0]===a&&v[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[a,y,l];break}}else if(d&&(v=(t[f]||(t[f]={}))[n])&&v[0]===a)l=v[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[a,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:c(function(n){var t=[],r=[],i=pt(n.replace(lt,"$1"));return i[f]?c(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:c(function(n){return function(t){return r(n,t).length>0}}),contains:c(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===o.activeElement&&(!o.hasFocus||o.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return sr.test(n.nodeName)},input:function(n){return or.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=lr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=ar(it);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=hi[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=ir.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=rr.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(lt," ")}),u=u.slice(e.length));for(o in t.filter)(f=at[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):hi(n,h).slice(0)},pt=r.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=fi(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,yr(e,u));i.selector=n}return i},oi=r.select=function(n,i,r,f){var s,e,o,a,v,c="function"==typeof n&&n,h=!f&&ft(n=c.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&l&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=at.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(f=v(o.matches[0].replace(y,p),dt.test(e[0].type)&&ti(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&vt(e),!n)return b.apply(r,f),r;break}}}return(c||pt(n,h))(f,i,!l,r,dt.test(n)&&ti(i.parentNode)||i),r},u.sortStable=f.split("").sort(wt).join("")===f,u.detectDuplicates=!!rt,k(),u.sortDetached=v(function(n){return 1&n.compareDocumentPosition(o.createElement("div"))}),v(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ni("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&v(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ni("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),v(function(n){return null==n.getAttribute("disabled")})||ni(bt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var fr=i.expr.match.needsContext,er=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,re=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ui(this,n||[],!1))},not:function(n){return this.pushStack(ui(this,n||[],!0))},is:function(n){return!!ui(this,"string"==typeof n&&fr.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,fe=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:ue.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),er.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof ft.ready?ft.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};fe.prototype=i.fn;ft=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&9!==u.nodeType&&(void 0===r||1!==u.nodeType||!i(u).is(r));)1===u.nodeType&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=fr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(sr[n]||(f=i.unique(f)),or.test(n)&&(f=f.reverse())),this.pushStack(f)}});h=/\S+/g;fi={};i.Callbacks=function(n){n="string"==typeof n?fi[n]||ee(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(lt.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}}});i.ready.promise=function(t){if(!lt)if(lt=i.Deferred(),"complete"===u.readyState)setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",a,!1),n.addEventListener("load",a,!1);else{u.attachEvent("onreadystatechange",a);n.attachEvent("onload",a);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}cr();i.ready()}}()}return lt.promise(t)};o="undefined";for(lr in i(r))break;r.ownLast="0"!==lr;r.inlineBlockNeedsLayout=!1;i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0];n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==o&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");if(null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t};ar=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;vr=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ei(n)},data:function(n,t,i){return pr(n,t,i)},removeData:function(n,t){return wr(n,t)},_data:function(n,t,i){return pr(n,t,i,!0)},_removeData:function(n,t){return wr(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),yr(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?yr(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},b=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},oi=/^(?:checkbox|radio)$/i;!function(){var t=u.createElement("input"),n=u.createElement("div"),i=u.createDocumentFragment();if(n.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",r.leadingWhitespace=3===n.firstChild.nodeType,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}}(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var si=/^(?:input|select|textarea)$/i,oe=/^key/,se=/^(?:mouse|pointer|contextmenu)|click/,br=/^(?:focusinfocus|focusoutblur)$/,kr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,s,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){if(typeof i!==o&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(c.elem,arguments)},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)w=kr.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e&&(s=i.event.special[e]||{},e=(f?s.delegateType:s.bindType)||e,s=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,s.setup&&s.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),s.add&&(s.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(s=kr.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||s&&!s.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=tt.call(t,"type")?t.type:t,v=tt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!br.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,br.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=l.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],o=0;s>o;o++)e=t[o],f=e.selector+" ",void 0===u[f]&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=se.test(r)?this.mouseHooks:oe.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==dr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===dr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:it):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:void 0;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){return si.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;si.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!si.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=it;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var nu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",he=/ jQuery\d+="(?:null|\d+)"/g,tu=new RegExp("<(?:"+nu+")[\\s/>]","i"),hi=/^\s+/,iu=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ru=/<([\w:]+)/,uu=/<tbody/i,ce=/<|&#?\w+;/,le=/<(?:script|style|link)/i,ae=/checked\s*(?:[^=]|=\s*.checked.)/i,fu=/^$|\/(?:java|ecma)script/i,ve=/^true\/(.*)/,ye=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,s={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},pe=gr(u),ci=pe.appendChild(u.createElement("div"));s.optgroup=s.option;s.tbody=s.tfoot=s.colgroup=s.caption=s.thead;s.th=s.td;i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!tu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(ci.innerHTML=n.outerHTML,ci.removeChild(s=ci.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&be(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)hu(c,e[o]);else hu(n,s);return e=f(s,"script"),e.length>0&&li(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,o,b,h,p,w,a,k=n.length,v=gr(t),l=[],y=0;k>y;y++)if(o=n[y],o||0===o)if("object"===i.type(o))i.merge(l,o.nodeType?[o]:o);else if(ce.test(o)){for(h=h||v.appendChild(t.createElement("div")),p=(ru.exec(o)||["",""])[1].toLowerCase(),a=s[p]||s._default,h.innerHTML=a[1]+o.replace(iu,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&hi.test(o)&&l.push(t.createTextNode(hi.exec(o)[0])),!r.tbody)for(o="table"!==p||uu.test(o)?"<table>"!==a[1]||uu.test(o)?0:h:h.firstChild,c=o&&o.childNodes.length;c--;)i.nodeName(w=o.childNodes[c],"tbody")&&!w.childNodes.length&&o.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(o));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),we),y=0;o=l[y++];)if((!e||-1===i.inArray(o,e))&&(b=i.contains(o.ownerDocument,o),h=f(v.appendChild(o),"script"),b&&li(h),u))for(c=0;o=h[c++];)fu.test(o.type||"")&&u.push(o);return h=null,v},cleanData:function(n,t){for(var u,e,f,s,a=0,h=i.expando,l=i.cache,v=r.deleteExpando,y=i.event.special;null!=(u=n[a]);a++)if((t||i.acceptData(u))&&(f=u[h],s=f&&l[f])){if(s.events)for(e in s.events)y[e]?i.event.remove(u,e):i.removeEvent(u,e,s.handle);l[f]&&(delete l[f],v?delete u[h]:typeof u.removeAttribute!==o?u.removeAttribute(h):u[h]=null,c.push(f))}}});i.fn.extend({text:function(n){return b(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eu(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;null!=(r=e[u]);u++)t||1!==r.nodeType||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&li(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return b(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(he,""):void 0;if(!("string"!=typeof n||le.test(n)||!r.htmlSerialize&&tu.test(n)||!r.leadingWhitespace&&hi.test(n)||s[(ru.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(iu,"<$1><\/$2>");try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(o){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ir.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&"string"==typeof a&&!r.checkClone&&ae.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(f(s,"script"),ou),c=o.length;l>e;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,su),e=0;c>e;e++)u=o[e],fu.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(ye,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ii.apply(f,u.get());return this.pushStack(f)}});ai={};!function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),typeof t.style.zoom!==o&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var lu=/^margin/,pt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),k,d,ke=/^(top|right|bottom|left)$/;n.getComputedStyle?(k=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):n.getComputedStyle(t,null)},d=function(n,t,r){var e,o,s,u,f=n.style;return r=r||k(n),u=r?r.getPropertyValue(t)||r[t]:void 0,r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),pt.test(u)&&lu.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0===u?u:u+""}):u.documentElement.currentStyle&&(k=function(n){return n.currentStyle},d=function(n,t,i){var o,f,e,r,u=n.style;return i=i||k(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!ke.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});!function(){var f,t,l,o,s,e,h;if(f=u.createElement("div"),f.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",l=f.getElementsByTagName("a")[0],t=l&&l.style){t.cssText="float:left;opacity:.5";r.opacity="0.5"===t.opacity;r.cssFloat=!!t.cssFloat;f.style.backgroundClip="content-box";f.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===f.style.backgroundClip;r.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing;i.extend(r,{reliableHiddenOffsets:function(){return null==e&&c(),e},boxSizingReliable:function(){return null==s&&c(),s},pixelPosition:function(){return null==o&&c(),o},reliableMarginRight:function(){return null==h&&c(),h}});function c(){var i,r,f,t;r=u.getElementsByTagName("body")[0];r&&r.style&&(i=u.createElement("div"),f=u.createElement("div"),f.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(f).appendChild(i),i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=s=!1,h=!0,n.getComputedStyle&&(o="1%"!==(n.getComputedStyle(i,null)||{}).top,s="4px"===(n.getComputedStyle(i,null)||{width:"4px"}).width,t=i.appendChild(u.createElement("div")),t.style.cssText=i.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",i.style.width="1px",h=!parseFloat((n.getComputedStyle(t,null)||{}).marginRight),i.removeChild(t)),i.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t=i.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===t[0].offsetHeight,e&&(t[0].style.display="",t[1].style.display="none",e=0===t[0].offsetHeight),r.removeChild(f))}}}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var vi=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(none|table(?!-c[ea]).+)/,no=new RegExp("^("+at+")(.*)$","i"),to=new RegExp("^([+-])=("+at+")","i"),io={position:"absolute",visibility:"hidden",display:"block"},vu={letterSpacing:"0",fontWeight:"400"},yu=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=d(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=pu(c,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===u)return e&&"get"in e&&void 0!==(o=e.get(n,!1,f))?o:c[t];if(h=typeof u,"string"===h&&(o=to.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),null!=u&&u===u&&("number"!==h||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(e&&"set"in e&&void 0===(u=e.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=pu(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=d(n,t,u)),"normal"===f&&t in vu&&(f=vu[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return ge.test(i.css(n,"display"))&&0===n.offsetWidth?i.swap(n,io,function(){return du(n,t,u)}):du(n,t,u)},set:function(n,u,f){var e=f&&k(n);return bu(n,u,f?ku(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(vi,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=vi.test(f)?f.replace(vi,e):f+" "+e)}});i.cssHooks.marginRight=au(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},d,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};lu.test(n)||(i.cssHooks[n+t].set=bu)});i.fn.extend({css:function(n,t){return b(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=k(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return wu(this,!0)},hide:function(){return wu(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var t,r=e.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,wt,ro=/^(?:toggle|show|hide)$/,gu=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),uo=/queueHooks$/,bt=[fo],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=gu.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&gu.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(rf,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?bt.unshift(n):bt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=rf(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&uo.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(kt(t,!0),n,i,u)}});i.each({slideDown:kt("show"),slideUp:kt("hide"),slideToggle:kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(wt);wt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var n,t,f,i,e;t=u.createElement("div");t.setAttribute("className","t");t.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value}();uf=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(uf,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==u||(r.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ut,ff,v=i.expr.attrHandle,yi=/^(?:checked|selected)$/i,g=r.getSetAttribute,dt=r.input;i.fn.extend({attr:function(n,t){return b(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===o?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?ff:ut)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?dt&&g||!yi.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});ff={set:function(n,t,r){return t===!1?i.removeAttr(n,r):dt&&g||!yi.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=dt&&g||!yi.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});dt&&g||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ut&&ut.set(n,t,r)}});g||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});ef=/^(?:input|select|textarea|button|object)$/i;of=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return b(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ef.test(n.nodeName)||of.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");gt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(gt," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(gt," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(gt," ").indexOf(i)>=0)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var pi=i.now(),wi=/\?/,oo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(oo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var nt,y,so=/#.*$/,sf=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,co=/^(?:GET|HEAD)$/,lo=/^\/\//,hf=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,cf={},bi={},lf="*/".concat("*");try{y=location.href}catch(ns){y=u.createElement("a");y.href="";y=y.href}nt=hf.exec(y.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(nt[1]),global:!0,processData:!0,"async":!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:af(cf),ajaxTransport:af(bi),ajax:function(n,t){function w(n,t,s,h){var v,it,nt,y,w,c=t;2!==e&&(e=2,k&&clearTimeout(k),a=void 0,b=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=ao(r,u,s)),y=vo(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,nt=y.error,v=!nt)):(nt=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?g.resolveWith(o,[it,c,u]):g.rejectWith(o,[u,c,nt]),u.statusCode(p),p=void 0,l&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:nt]),tt.fireWith(o,[u,c]),l&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0);t=t||{};var s,c,f,b,k,l,a,v,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,g=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!v)for(v={};t=ho.exec(b);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return a&&a.abort(t),w(0,t),this}};if(g.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(so,"").replace(lo,nt[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],null==r.crossDomain&&(s=hf.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===nt[1]&&s[2]===nt[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(nt[3]||("http:"===nt[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),vf(cf,r,t,u),2===e)return u;l=i.event&&r.global;l&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!co.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(wi.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=sf.test(f)?f.replace(sf,"$1_="+pi++):f+(wi.test(f)?"&":"?")+"_="+pi++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+lf+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(a=vf(bi,r,t,u)){u.readyState=1;l&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;a.send(it,w)}catch(ft){if(!(2>e))throw ft;w(-1,ft)}}else w(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script","async":!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&"none"===(n.style&&n.style.display||i.css(n,"display"))};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var yo=/%20/g,po=/\[\]$/,yf=/\r?\n/g,wo=/^(?:submit|button|image|reset|file)$/i,bo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)di(r,n[r],t,f);return u.join("&").replace(yo,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&bo.test(this.nodeName)&&!wo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yf,"\r\n")}}):{name:t.name,value:r.replace(yf,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&pf()||go()}:pf;var ko=0,ni={},ht=i.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in ni)ni[n](void 0,!0)}),r.cors=!!ht&&"withCredentials"in ht,ht=r.ajax=!!ht,ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++ko;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)void 0!==r[e]&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||4===f.readyState))if(delete ni[o],t=void 0,f.onreadystatechange=i.noop,e)4!==f.readyState&&f.abort();else{h={};s=f.status;"string"==typeof f.responseText&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?4===f.readyState?setTimeout(t):f.onreadystatechange=ni[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}),gi=[],ti=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=gi.pop()||i.expando+"_"+pi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ti.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ti.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ti,"$1"+f):t.jsonp!==!1&&(t.url+=(wi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,gi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=er.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},nr=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&nr)return nr.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},tr=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!==o&&(u=r.getBoundingClientRect()),f=wf(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||tr;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||tr})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return b(this,function(n,u,f){var e=wf(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=au(r.pixelPosition,function(n,r){if(r)return(r=d(n,t),pt.test(r)?i(n).position()[t]+"px":r)})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return b(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),bf=n.jQuery,kf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=kf),t&&n.jQuery===i&&(n.jQuery=bf),i},typeof t===o&&(n.jQuery=n.$=i),i});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}); /*! * FitVids 1.0 * * Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ * * Date: Thu Sept 01 18:00:00 2011 -0500 */ (function(n){"use strict";n.fn.fitVids=function(t){var i={customSelector:null},r=document.createElement("div"),u=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return r.className="fit-vids-style",r.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } <\/style>",u.parentNode.insertBefore(r,u),t&&n.extend(i,t),this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.youtube-nocookie.com']","iframe[src*='www.kickstarter.com']","object","embed"],r;i.customSelector&&t.push(i.customSelector);r=n(this).find(t.join(","));r.each(function(){var t=n(this),i;if(!("embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){var r="object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),u=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),f=r/u;t.attr("id")||(i="fitvid"+Math.floor(999999*Math.random()),t.attr("id",i));t.wrap('<div class="fluid-width-video-wrapper"><\/div>').parent(".fluid-width-video-wrapper").css("padding-top",100*f+"%");t.removeAttr("height").removeAttr("width")}})})}})(jQuery),function(n){function t(t,i){function e(n){f||(f=!0,u.start&&u.start(n,r))}function o(n,t){f&&(clearTimeout(s),s=setTimeout(function(){f=!1;u.stop&&u.stop(n,r)},t>=0?t:u.delay))}var u=n.extend({start:null,stop:null,delay:400},i),r=n(t),f=!1,s;r.keypress(e);r.keydown(function(n){(n.keyCode===8||n.keyCode===46)&&e(n)});r.keyup(o);r.blur(function(n){o(n,0)})}n.fn.typing=function(n){return this.each(function(i,r){t(r,n)})}}(jQuery),function(n,t){"use strict";var i=function(){var i={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},e=function(){var i=/iPhone|iPad|iPod/i.test(navigator.userAgent);return i&&n(t).load(function(){n("body").children().on("click",n.noop)}),i}(),a=function(){var n=document.documentElement.style;return"behavior"in n&&"fill"in n&&/iemobile/i.test(navigator.userAgent)}(),v=function(){return!!t.PointerEvent}(),o=function(n,t){var r=i.menuClass;t.cssArrows&&(r+=" "+i.menuArrowClass);n.toggleClass(r)},y=function(t,r){return t.find("li."+r.pathClass).slice(0,r.pathLevels).addClass(r.hoverClass+" "+i.bcClass).filter(function(){return n(this).children(r.popUpSelector).hide().show().length}).removeClass(r.pathClass)},s=function(n){n.children("a").toggleClass(i.anchorClass)},h=function(n){var i=n.css("ms-touch-action"),t=n.css("touch-action");t=t||i;t="pan-y"===t?"auto":"pan-y";n.css({"ms-touch-action":t,"touch-action":t})},p=function(t,i){var o="li:has("+i.popUpSelector+")",u;n.fn.hoverIntent&&!i.disableHI?t.hoverIntent(r,f,o):t.on("mouseenter.superfish",o,r).on("mouseleave.superfish",o,f);u="MSPointerDown.superfish";v&&(u="pointerdown.superfish");e||(u+=" touchend.superfish");a&&(u+=" mousedown.superfish");t.on("focusin.superfish","li",r).on("focusout.superfish","li",f).on(u,"a",i,w)},w=function(t){var i=n(this),u=i.siblings(t.data.popUpSelector);u.length>0&&u.is(":hidden")&&(i.one("click.superfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?i.trigger("focus"):n.proxy(r,i.parent("li"))())},r=function(){var t=n(this),i=u(t);clearTimeout(i.sfTimer);t.siblings().superfish("hide").end().superfish("show")},f=function(){var i=n(this),t=u(i);e?n.proxy(c,i,t)():(clearTimeout(t.sfTimer),t.sfTimer=setTimeout(n.proxy(c,i,t),t.delay))},c=function(t){t.retainPath=n.inArray(this[0],t.$path)>-1;this.superfish("hide");this.parents("."+t.hoverClass).length||(t.onIdle.call(l(this)),t.$path.length&&n.proxy(r,t.$path)())},l=function(n){return n.closest("."+i.menuClass)},u=function(n){return l(n).data("sf-options")};return{hide:function(t){var r,i;if(this.length){if(r=this,i=u(r),!i)return this;var o=i.retainPath===!0?i.$path:"",f=r.find("li."+i.hoverClass).add(this).not(o).removeClass(i.hoverClass).children(i.popUpSelector),e=i.speedOut;t&&(f.show(),e=0);i.retainPath=!1;i.onBeforeHide.call(f);f.stop(!0,!0).animate(i.animationOut,e,function(){var t=n(this);i.onHide.call(t)})}return this},show:function(){var n=u(this),i,t;return n?(i=this.addClass(n.hoverClass),t=i.children(n.popUpSelector),n.onBeforeShow.call(t),t.stop(!0,!0).animate(n.animation,n.speed,function(){n.onShow.call(t)}),this):this},destroy:function(){return this.each(function(){var u,r=n(this),t=r.data("sf-options");return t?(u=r.find(t.popUpSelector).parent("li"),clearTimeout(t.sfTimer),o(r,t),s(u),h(r),r.off(".superfish").off(".hoverIntent"),u.children(t.popUpSelector).attr("style",function(n,t){return t.replace(/display[^;]+;?/g,"")}),t.$path.removeClass(t.hoverClass+" "+i.bcClass).addClass(t.pathClass),r.find("."+t.hoverClass).removeClass(t.hoverClass),t.onDestroy.call(r),r.removeData("sf-options"),void 0):!1})},init:function(t){return this.each(function(){var u=n(this),r,f;if(u.data("sf-options"))return!1;r=n.extend({},n.fn.superfish.defaults,t);f=u.find(r.popUpSelector).parent("li");r.$path=y(u,r);u.data("sf-options",r);o(u,r);s(f);h(u);p(u,r);f.not("."+i.bcClass).superfish("hide",!0);r.onInit.call(this)})}}}();n.fn.superfish=function(t){return i[t]?i[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?n.error("Method "+t+" does not exist on jQuery.fn.superfish"):i.init.apply(this,arguments)};n.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:n.noop,onBeforeShow:n.noop,onShow:n.noop,onBeforeHide:n.noop,onHide:n.noop,onIdle:n.noop,onDestroy:n.noop}}(jQuery,window),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f;s=e;i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX;s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}}(jQuery); /*! jRespond.js v 0.10 | Author: Jeremy Fields [jeremy.fields@viget.com], 2013 | License: MIT */ if(!function(n,t,i){"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(n[t]=i,"function"==typeof define&&define.amd&&define(t,[],function(){return i}))}(this,"jRespond",function(n,t,i){"use strict";return function(n){var r=[],u=[],f=n,t="",e="",s=0,y=100,h=500,o=h,p=function(){return"number"!=typeof innerWidth?0!==document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth:window.innerWidth},w=function(n){if(n.length===i)c(n);else for(var t=0;t<n.length;t++)c(n[t])},c=function(n){var o=n.breakpoint,f=n.enter||i;r.push(n);u.push(!1);a(o)&&(f!==i&&f.call(null,{entering:t,exiting:e}),u[r.length-1]=!0)},l=function(){for(var v,c,l,f=[],o=[],n=0;n<r.length;n++){var y=r[n].breakpoint,s=r[n].enter||i,h=r[n].exit||i;"*"===y?(s!==i&&f.push(s),h!==i&&o.push(h)):a(y)?(s===i||u[n]||f.push(s),u[n]=!0):(h!==i&&u[n]&&o.push(h),u[n]=!1)}for(v={entering:t,exiting:e},c=0;c<o.length;c++)o[c].call(null,v);for(l=0;l<f.length;l++)f[l].call(null,v)},b=function(n){for(var r=!1,i=0;i<f.length;i++)if(n>=f[i].enter&&n<=f[i].exit){r=!0;break}r&&t!==f[i].label?(e=t,t=f[i].label,l()):r||""===t||(t="",l())},a=function(n){if("object"==typeof n){if(n.join().indexOf(t)>=0)return!0}else if("*"===n||"string"==typeof n&&t===n)return!0},v=function(){var n=p();n!==s?(o=y,b(n)):o=h;s=n;setTimeout(v,o)};return v(),{addFunc:function(n){w(n)},getBreakpoint:function(){return t}}}}(this,this.document)),!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){function f(n){var i;if(n in u.style)return n;for(var r=["Moz","Webkit","O","ms"],f=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<r.length;++t)if(i=r[t]+f,i in u.style)return i}function y(){return u.style[t.transform]="",u.style[t.transform]="rotateY(90deg)",""!==u.style[t.transform]}function e(n){return"string"==typeof n&&this.parse(n),this}function c(n,t,i){t===!0?n.queue(i):t?n.queue(t,i):n.each(function(){i.call(this)})}function p(i){var r=[];return n.each(i,function(i){i=n.camelCase(i);i=n.transit.propertyMap[i]||n.cssProps[i]||i;i=a(i);t[i]&&(i=a(t[i]));-1===n.inArray(i,r)&&r.push(i)}),r}function l(t,i,r,u){var o=p(t),f,e;return n.cssEase[r]&&(r=n.cssEase[r]),f=""+h(i)+" "+r,parseInt(u,10)>0&&(f+=" "+h(u)),e=[],n.each(o,function(n,t){e.push(t+" "+f)}),e.join(", ")}function i(i,r){r||(n.cssNumber[i]=!0);n.transit.propertyMap[i]=t.transform;n.cssHooks[i]={get:function(t){var r=n(t).css("transit:transform");return r.get(i)},set:function(t,r){var u=n(t).css("transit:transform");u.setFromString(i,r);n(t).css({"transit:transform":u})}}}function a(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function r(n,t){return"string"!=typeof n||n.match(/^[\-0-9\.]+$/)?""+n+t:n}function h(t){var i=t;return"string"!=typeof i||i.match(/^[\-0-9\.]+/)||(i=n.fx.speeds[i]||n.fx.speeds._default),r(i,"ms")}var v,s,o;n.transit={version:"0.9.12",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var u=document.createElement("div"),t={},w=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;t.transition=f("transition");t.transitionDelay=f("transitionDelay");t.transform=f("transform");t.transformOrigin=f("transformOrigin");t.filter=f("Filter");t.transform3d=y();v={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};s=t.transitionEnd=v[t.transition]||null;for(o in t)t.hasOwnProperty(o)&&"undefined"==typeof n.support[o]&&(n.support[o]=t[o]);return u=null,n.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},n.cssHooks["transit:transform"]={get:function(t){return n(t).data("transform")||new e},set:function(i,r){var u=r;u instanceof e||(u=new e(u));i.style[t.transform]="WebkitTransform"!==t.transform||w?u.toString():u.toString(!0);n(i).data("transform",u)}},n.cssHooks.transform={set:n.cssHooks["transit:transform"].set},n.cssHooks.filter={get:function(n){return n.style[t.filter]},set:function(n,i){n.style[t.filter]=i}},n.fn.jquery<"1.8"&&(n.cssHooks.transformOrigin={get:function(n){return n.style[t.transformOrigin]},set:function(n,i){n.style[t.transformOrigin]=i}},n.cssHooks.transition={get:function(n){return n.style[t.transition]},set:function(n,i){n.style[t.transition]=i}}),i("scale"),i("scaleX"),i("scaleY"),i("translate"),i("rotate"),i("rotateX"),i("rotateY"),i("rotate3d"),i("perspective"),i("skewX"),i("skewY"),i("x",!0),i("y",!0),e.prototype={setFromString:function(n,t){var i="string"==typeof t?t.split(","):t.constructor===Array?t:[t];i.unshift(n);e.prototype.set.apply(this,i)},set:function(n){var t=Array.prototype.slice.apply(arguments,[1]);this.setter[n]?this.setter[n].apply(this,t):this[n]=t.join(",")},get:function(n){return this.getter[n]?this.getter[n].apply(this):this[n]||0},setter:{rotate:function(n){this.rotate=r(n,"deg")},rotateX:function(n){this.rotateX=r(n,"deg")},rotateY:function(n){this.rotateY=r(n,"deg")},scale:function(n,t){void 0===t&&(t=n);this.scale=n+","+t},skewX:function(n){this.skewX=r(n,"deg")},skewY:function(n){this.skewY=r(n,"deg")},perspective:function(n){this.perspective=r(n,"px")},x:function(n){this.set("translate",n,null)},y:function(n){this.set("translate",null,n)},translate:function(n,t){void 0===this._translateX&&(this._translateX=0);void 0===this._translateY&&(this._translateY=0);null!==n&&void 0!==n&&(this._translateX=r(n,"px"));null!==t&&void 0!==t&&(this._translateY=r(t,"px"));this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var n=(this.scale||"1,1").split(",");return n[0]&&(n[0]=parseFloat(n[0])),n[1]&&(n[1]=parseFloat(n[1])),n[0]===n[1]?n[0]:n},rotate3d:function(){for(var n=(this.rotate3d||"0,0,0,0deg").split(","),t=0;3>=t;++t)n[t]&&(n[t]=parseFloat(n[t]));return n[3]&&(n[3]=r(n[3],"deg")),n}},parse:function(n){var t=this;n.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(n,i,r){t.setFromString(i,r)})},toString:function(n){var r=[];for(var i in this)if(this.hasOwnProperty(i)){if(!t.transform3d&&("rotateX"===i||"rotateY"===i||"perspective"===i||"transformOrigin"===i))continue;"_"!==i[0]&&r.push(n&&"scale"===i?i+"3d("+this[i]+",1)":n&&"translate"===i?i+"3d("+this[i]+",0)":i+"("+this[i]+")")}return r.join(" ")}},n.fn.transition=n.fn.transit=function(i,r,u,f){var o=this,v=0,y=!0,e=n.extend(!0,{},i),p;"function"==typeof r&&(f=r,r=void 0);"object"==typeof r&&(u=r.easing,v=r.delay||0,y="undefined"==typeof r.queue?!0:r.queue,f=r.complete,r=r.duration);"function"==typeof u&&(f=u,u=void 0);"undefined"!=typeof e.easing&&(u=e.easing,delete e.easing);"undefined"!=typeof e.duration&&(r=e.duration,delete e.duration);"undefined"!=typeof e.complete&&(f=e.complete,delete e.complete);"undefined"!=typeof e.queue&&(y=e.queue,delete e.queue);"undefined"!=typeof e.delay&&(v=e.delay,delete e.delay);"undefined"==typeof r&&(r=n.fx.speeds._default);"undefined"==typeof u&&(u=n.cssEase._default);r=h(r);var w=l(e,r,u,v),b=n.transit.enabled&&t.transition,a=b?parseInt(r,10)+parseInt(v,10):0;if(0===a)return p=function(n){o.css(e);f&&f.apply(o);n&&n()},c(o,y,p),o;var k={},d=function(i){var u=!1,r=function(){u&&o.unbind(s,r);a>0&&o.each(function(){this.style[t.transition]=k[this]||null});"function"==typeof f&&f.apply(o);"function"==typeof i&&i()};a>0&&s&&n.transit.useTransitionEnd?(u=!0,o.bind(s,r)):window.setTimeout(r,a);o.each(function(){a>0&&(this.style[t.transition]=w);n(this).css(e)})},g=function(n){this.offsetWidth;d(n)};return c(o,y,g),this},n.transit.getTransitionValue=l,n}),navigator.platform.toUpperCase().indexOf("MAC")===-1&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini|BlackBerry)/)&&jQuery(window).width()>991){function ssc_init(){var r;if(document.body){var n=document.body,i=document.documentElement,t=window.innerHeight,u=n.scrollHeight;ssc_root=document.compatMode.indexOf("CSS")>=0?i:n;ssc_activeElement=n;ssc_initdone=!0;top!=self?ssc_frame=!0:u>t&&(n.offsetHeight<=t||i.offsetHeight<=t)&&(ssc_root.style.height="auto",ssc_root.offsetHeight<=t&&(r=document.createElement("div"),r.style.clear="both",n.appendChild(r)));ssc_fixedback||(n.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll");ssc_keyboardsupport&&ssc_addEvent("keydown",ssc_keydown)}}function ssc_scrollArray(n,t,i,r){if(r||(r=1e3),ssc_directionCheck(t,i),ssc_que.push({x:t,y:i,lastX:t<0?.99:-.99,lastY:i<0?.99:-.99,start:+new Date}),!ssc_pending){var u=function(){for(var c,l,y,p,w=+new Date,s=0,h=0,e=0;e<ssc_que.length;e++){var f=ssc_que[e],a=w-f.start,v=a>=ssc_animtime,o=v?1:a/ssc_animtime;ssc_pulseAlgorithm&&(o=ssc_pulse(o));c=f.x*o-f.lastX>>0;l=f.y*o-f.lastY>>0;s+=c;h+=l;f.lastX+=c;f.lastY+=l;v&&(ssc_que.splice(e,1),e--)}t&&(y=n.scrollLeft,n.scrollLeft+=s,s&&n.scrollLeft===y&&(t=0));i&&(p=n.scrollTop,n.scrollTop+=h,h&&n.scrollTop===p&&(i=0));t||i||(ssc_que=[]);ssc_que.length?setTimeout(u,r/ssc_framerate+1):ssc_pending=!1};setTimeout(u,0);ssc_pending=!0}}function ssc_wheel(n){var r,u,i,t;if(ssc_initdone||ssc_init(),r=n.target,u=ssc_overflowingAncestor(r),!u||n.defaultPrevented||ssc_isNodeName(ssc_activeElement,"embed")||ssc_isNodeName(r,"embed")&&/\.pdf/i.test(r.src))return!0;i=n.wheelDeltaX||0;t=n.wheelDeltaY||0;i||t||(t=n.wheelDelta||0);Math.abs(i)>1.2&&(i*=ssc_stepsize/120);Math.abs(t)>1.2&&(t*=ssc_stepsize/120);ssc_scrollArray(u,-i,-t);n.preventDefault()}function ssc_keydown(n){var u=n.target,s=n.ctrlKey||n.altKey||n.metaKey,e;if(/input|textarea|embed/i.test(u.nodeName)||u.isContentEditable||n.defaultPrevented||s||ssc_isNodeName(u,"button")&&n.keyCode===ssc_key.spacebar)return!0;var o,f=0,t=0,i=ssc_overflowingAncestor(ssc_activeElement),r=i.clientHeight;i==document.body&&(r=window.innerHeight);switch(n.keyCode){case ssc_key.up:t=-ssc_arrowscroll;break;case ssc_key.down:t=ssc_arrowscroll;break;case ssc_key.spacebar:o=n.shiftKey?1:-1;t=-o*r*.9;break;case ssc_key.pageup:t=-r*.9;break;case ssc_key.pagedown:t=r*.9;break;case ssc_key.home:t=-i.scrollTop;break;case ssc_key.end:e=i.scrollHeight-i.scrollTop-r;t=e>0?e+10:0;break;case ssc_key.left:f=-ssc_arrowscroll;break;case ssc_key.right:f=ssc_arrowscroll;break;default:return!0}ssc_scrollArray(i,f,t);n.preventDefault()}function ssc_mousedown(n){ssc_activeElement=n.target}function ssc_setCache(n,t){for(var i=n.length;i--;)ssc_cache[ssc_uniqueID(n[i])]=t;return t}function ssc_overflowingAncestor(n){var t=[],r=ssc_root.scrollHeight,i;do{if(i=ssc_cache[ssc_uniqueID(n)],i)return ssc_setCache(t,i);if(t.push(n),r===n.scrollHeight){if(!ssc_frame||ssc_root.clientHeight+10<r)return ssc_setCache(t,document.body)}else if(n.clientHeight+10<n.scrollHeight&&(overflow=getComputedStyle(n,"").getPropertyValue("overflow"),overflow==="scroll"||overflow==="auto"))return ssc_setCache(t,n)}while(n=n.parentNode)}function ssc_addEvent(n,t,i){window.addEventListener(n,t,i||!1)}function ssc_removeEvent(n,t,i){window.removeEventListener(n,t,i||!1)}function ssc_isNodeName(n,t){return n.nodeName.toLowerCase()===t.toLowerCase()}function ssc_directionCheck(n,t){n=n>0?1:-1;t=t>0?1:-1;(ssc_direction.x!==n||ssc_direction.y!==t)&&(ssc_direction.x=n,ssc_direction.y=t,ssc_que=[])}function ssc_pulse_(n){var t,i,r;return n=n*ssc_pulseScale,n<1?t=n-(1-Math.exp(-n)):(i=Math.exp(-1),n-=1,r=1-Math.exp(-n),t=i+r*(1-i)),t*ssc_pulseNormalize}function ssc_pulse(n){return n>=1?1:n<=0?0:(ssc_pulseNormalize==1&&(ssc_pulseNormalize/=ssc_pulse_(1)),ssc_pulse_(n))}var ssc_framerate=150,ssc_animtime=500,ssc_stepsize=150,ssc_pulseAlgorithm=!0,ssc_pulseScale=6,ssc_pulseNormalize=1,ssc_keyboardsupport=!0,ssc_arrowscroll=50,ssc_frame=!1,ssc_direction={x:0,y:0},ssc_initdone=!1,ssc_fixedback=!0,ssc_root=document.documentElement,ssc_activeElement,ssc_key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},ssc_que=[],ssc_pending=!1,ssc_cache={};setInterval(function(){ssc_cache={}},1e4);ssc_uniqueID=function(){var n=0;return function(t){return t.ssc_uniqueID||(t.ssc_uniqueID=n++)}}();ischrome=/chrome/.test(navigator.userAgent.toLowerCase());ischrome&&(ssc_addEvent("mousedown",ssc_mousedown),ssc_addEvent("mousewheel",ssc_wheel),ssc_addEvent("load",ssc_init))}!function(n){var t=0;n.fn.scrolled=function(i,r){"function"==typeof i&&(r=i,i=300);var u="scrollTimer"+t++;this.scroll(function(){var t=n(this),f=t.data(u);f&&clearTimeout(f);f=setTimeout(function(){t.removeData(u);r.call(t[0])},i);t.data(u,f)})}}(jQuery),function(n){n.fn.jflickrfeed=function(t,i){var r,u,f;t=n.extend(!0,{flickrbase:"http://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",limit:20,qstrings:{lang:"en-us",format:"json",jsoncallback:"?"},cleanDescription:!0,useTemplate:!0,itemTemplate:"",itemCallback:function(){}},t);r=t.flickrbase+t.feedapi+"?";u=!0;for(f in t.qstrings)u||(r+="&"),r+=f+"="+t.qstrings[f],u=!1;return n(this).each(function(){var f=n(this),u=this;n.getJSON(r,function(r){n.each(r.items,function(n,i){var e,o,r,s,h;if(n<t.limit){if(t.cleanDescription&&(e=/<p>(.*?)<\/p>/g,o=i.description,e.test(o)&&(i.description=o.match(e)[2],i.description!=undefined&&(i.description=i.description.replace("<p>","").replace("<\/p>","")))),i.image_s=i.media.m.replace("_m","_s"),i.image_t=i.media.m.replace("_m","_t"),i.image_m=i.media.m.replace("_m","_m"),i.image=i.media.m.replace("_m",""),i.image_b=i.media.m.replace("_m","_b"),delete i.media,t.useTemplate){r=t.itemTemplate;for(s in i)h=new RegExp("{{"+s+"}}","g"),r=r.replace(h,i[s]);f.append(r)}t.itemCallback.call(u,i)}});n.isFunction(i)&&i.call(u,r)})})}}(jQuery); /*! * Instafeed 1.3.2 */ (function(){var n,t;n=function(){function n(n,t){var i,r;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},typeof n=="object")for(i in n)r=n[i],this.options[i]=r;this.context=t!=null?t:this;this.unique=this._genKey()}return n.prototype.hasNext=function(){return typeof this.context.nextUrl=="string"&&this.context.nextUrl.length>0},n.prototype.next=function(){return this.hasNext()?this.run(this.context.nextUrl):!1},n.prototype.run=function(t){var u,r,i;if(typeof this.options.clientId!="string"&&typeof this.options.accessToken!="string")throw new Error("Missing clientId or accessToken.");if(typeof this.options.accessToken!="string"&&typeof this.options.clientId!="string")throw new Error("Missing clientId or accessToken.");return this.options.before!=null&&typeof this.options.before=="function"&&this.options.before.call(this),typeof document!="undefined"&&document!==null&&(i=document.createElement("script"),i.id="instafeed-fetcher",i.src=t||this._buildUrl(),u=document.getElementsByTagName("head"),u[0].appendChild(i),r="instafeedCache"+this.unique,window[r]=new n(this.options,this),window[r].unique=this.unique),!0},n.prototype.parse=function(n){var f,u,b,l,t,a,r,i,e,tt,v,k,o,y,p,s,h,c,d,g,nt,w;if(typeof n!="object"){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response");}if(n.meta.code!==200){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,n.meta.error_message),!1;throw new Error("Error from Instagram: "+n.meta.error_message);}if(n.data.length===0){if(this.options.error!=null&&typeof this.options.error=="function")return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram");}if(this.options.success!=null&&typeof this.options.success=="function"&&this.options.success.call(this,n),this.context.nextUrl="",n.pagination!=null&&(this.context.nextUrl=n.pagination.next_url),this.options.sortBy!=="none"){y=this.options.sortBy==="random"?["","random"]:this.options.sortBy.split("-");o=y[0]==="least"?!0:!1;switch(y[1]){case"random":n.data.sort(function(){return.5-Math.random()});break;case"recent":n.data=this._sortBy(n.data,"created_time",o);break;case"liked":n.data=this._sortBy(n.data,"likes.count",o);break;case"commented":n.data=this._sortBy(n.data,"comments.count",o);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.");}}if(typeof document!="undefined"&&document!==null&&this.options.mock===!1){if(i=n.data,this.options.limit!=null&&i.length>this.options.limit&&(i=i.slice(0,this.options.limit+1||9e9)),u=document.createDocumentFragment(),this.options.filter!=null&&typeof this.options.filter=="function"&&(i=this._filter(i,this.options.filter)),this.options.template!=null&&typeof this.options.template=="string"){for(l="",a="",tt="",p=document.createElement("div"),s=0,d=i.length;s<d;s++)t=i[s],r=t.images[this.options.resolution].url,this.options.useHttp||(r=r.replace("http://","//")),a=this._makeTemplate(this.options.template,{model:t,id:t.id,link:t.link,image:r,caption:this._getObjectProperty(t,"caption.text"),likes:t.likes.count,comments:t.comments.count,location:this._getObjectProperty(t,"location.name")}),l+=a;for(p.innerHTML=l,w=[].slice.call(p.childNodes),h=0,g=w.length;h<g;h++)k=w[h],u.appendChild(k)}else for(c=0,nt=i.length;c<nt;c++)t=i[c],e=document.createElement("img"),r=t.images[this.options.resolution].url,this.options.useHttp||(r=r.replace("http://","//")),e.src=r,this.options.links===!0?(f=document.createElement("a"),f.href=t.link,f.appendChild(e),u.appendChild(f)):u.appendChild(e);document.getElementById(this.options.target).appendChild(u);b=document.getElementsByTagName("head")[0];b.removeChild(document.getElementById("instafeed-fetcher"));v="instafeedCache"+this.unique;window[v]=void 0;try{delete window[v]}catch(it){}}return this.options.after!=null&&typeof this.options.after=="function"&&this.options.after.call(this),!0},n.prototype._buildUrl=function(){var i,n,t;i="https://api.instagram.com/v1";switch(this.options.get){case"popular":n="media/popular";break;case"tagged":if(typeof this.options.tagName!="string")throw new Error("No tag name specified. Use the 'tagName' option.");n="tags/"+this.options.tagName+"/media/recent";break;case"location":if(typeof this.options.locationId!="number")throw new Error("No location specified. Use the 'locationId' option.");n="locations/"+this.options.locationId+"/media/recent";break;case"user":if(typeof this.options.userId!="number")throw new Error("No user specified. Use the 'userId' option.");if(typeof this.options.accessToken!="string")throw new Error("No access token. Use the 'accessToken' option.");n="users/"+this.options.userId+"/media/recent";break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.");}return t=""+i+"/"+n,t+=this.options.accessToken!=null?"?access_token="+this.options.accessToken:"?client_id="+this.options.clientId,this.options.limit!=null&&(t+="&count="+this.options.limit),t+="&callback=instafeedCache"+this.unique+".parse",t},n.prototype._genKey=function(){var n;return n=function(){return((1+Math.random())*65536|0).toString(16).substring(1)},""+n()+n()+n()+n()},n.prototype._makeTemplate=function(n,t){for(var u,f,e,r=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,i=n;r.test(i);)u=i.match(r)[1],f=(e=this._getObjectProperty(t,u))!=null?e:"",i=i.replace(r,""+f);return i},n.prototype._getObjectProperty=function(n,t){var i,r;for(t=t.replace(/\[(\w+)\]/g,".$1"),r=t.split(".");r.length;){if(i=r.shift(),!(n!=null&&i in n))return null;n=n[i]}return n},n.prototype._sortBy=function(n,t,i){var r;return r=function(n,r){var u,f;return u=this._getObjectProperty(n,t),f=this._getObjectProperty(r,t),i?u>f?1:-1:u<f?1:-1},n.sort(r.bind(this)),n},n.prototype._filter=function(n,t){var r,u,f,i,e;for(r=[],f=function(n){if(t(n))return r.push(n)},i=0,e=n.length;i<e;i++)u=n[i],f(u);return r},n}();t=typeof exports!="undefined"&&exports!==null?exports:window;t.Instafeed=n}).call(this),function(n){"use strict";n.fn.jribbble=function(){return this.makeRequest=function(t,i,r){var u=function(t){n.isFunction(i)&&i(t)},f=t.replace("//","/");n.ajax({data:r,dataType:"jsonp",success:u,type:"GET",url:n.jribbble.baseUrl+f})},this};n.jribbble={};n.jribbble.baseUrl="http://api.dribbble.com";n.jribbble.paths={shots:"/shots/",rebounds:"/rebounds/",following:"/following/",players:"/players/",followers:"/followers/",draftees:"/draftees/",comments:"/comments/",likes:"/likes/"};n.jribbble.getShotById=function(t,i){var r=n.jribbble.paths.shots+t;n.fn.jribbble().makeRequest(r,i)};n.jribbble.getReboundsOfShot=function(t,i,r){var u=n.jribbble.paths.shots+t+n.jribbble.paths.rebounds;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getShotsByList=function(t,i,r){var u=n.jribbble.paths.shots+t;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getShotsByPlayerId=function(t,i,r){var u=n.jribbble.paths.players+t+n.jribbble.paths.shots;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getShotsThatPlayerFollows=function(t,i,r){var u=n.jribbble.paths.players+t+n.jribbble.paths.shots+n.jribbble.paths.following;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getPlayerById=function(t,i){var r=n.jribbble.paths.players+t;n.fn.jribbble().makeRequest(r,i)};n.jribbble.getPlayerFollowers=function(t,i,r){var u=n.jribbble.paths.players+t+n.jribbble.paths.followers;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getPlayerFollowing=function(t,i,r){var u=n.jribbble.paths.players+t+n.jribbble.paths.following;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getPlayerDraftees=function(t,i,r){var u=n.jribbble.paths.players+t+n.jribbble.paths.draftees;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getCommentsOfShot=function(t,i,r){var u=n.jribbble.paths.shots+t+n.jribbble.paths.comments;n.fn.jribbble().makeRequest(u,i,r)};n.jribbble.getShotsThatPlayerLikes=function(t,i,r){var u=n.jribbble.paths.players+t+n.jribbble.paths.shots+n.jribbble.paths.likes;n.fn.jribbble().makeRequest(u,i,r)}}(jQuery);ytp=ytp||{};getYTPVideoID=function(n){var t,i;return n.indexOf("youtu.be")>0?(t=n.substr(n.lastIndexOf("/")+1,n.length),i=t.indexOf("?list=")>0?t.substr(t.lastIndexOf("="),t.length):null,t=i?t.substr(0,t.lastIndexOf("?")):t):n.indexOf("http")>-1?(t=n.match(/[\\?&]v=([^&#]*)/)[1],i=n.indexOf("list=")>0?n.match(/[\\?&]list=([^&#]*)/)[1]:null):(t=n.length>15?null:n,i=t?null:n),{videoID:t,playlistID:i}};!function(n,t){n.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"2.9.4",build:"{{ build }}",author:"Matteo Bicocchi",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,opacity:1,quality:"default",mute:!1,loop:!0,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,gaTrack:!0,optimizeDisplay:!0,onReady:function(){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},locationProtocol:"https:",buildPlayer:function(i){return this.each(function(){var r=this,u=n(r),f,v,e,c,y,l,o,h,a,s,p;if(r.loop=0,r.opt={},r.state={},r.filtersEnabled=!0,r.filters={grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},u.addClass("mb_YTPlayer"),f=u.data("property")&&"string"==typeof u.data("property")?eval("("+u.data("property")+")"):u.data("property"),"undefined"!=typeof f&&"undefined"!=typeof f.vol&&(f.vol=0===f.vol?f.vol=1:f.vol),n.extend(r.opt,n.mbYTPlayer.defaults,i,f),r.hasChanged||(r.defaultOpt={},n.extend(r.defaultOpt,n.mbYTPlayer.defaults,i,f)),r.isRetina=window.retina||window.devicePixelRatio>1,v=function(){var n=!1;try{self.location.href!=top.location.href&&(n=!0)}catch(t){n=!0}return n},r.canGoFullScreen=!(n.browser.msie||n.browser.opera||v()),r.canGoFullScreen||(r.opt.realfullscreen=!1),u.attr("id")||u.attr("id","video_"+(new Date).getTime()),e="mbYTP_"+r.id,r.isAlone=!1,r.hasFocus=!0,c=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).videoID:u.attr("href")?getYTPVideoID(u.attr("href")).videoID:!1,y=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).playlistID:u.attr("href")?getYTPVideoID(u.attr("href")).playlistID:!1,r.videoID=c,r.playlistID=y,r.opt.showAnnotations=r.opt.showAnnotations?"0":"3",l={autoplay:0,modestbranding:1,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:e,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:r.opt.showAnnotations},document.createElement("video").canPlayType&&n.extend(l,{html5:1}),n.browser.msie&&n.browser.version<9&&(this.opt.opacity=1),o=n("<div/>").attr("id",e).addClass("playerBox"),h=n("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay"),r.isSelf="self"==r.opt.containment,r.defaultOpt.containment=r.opt.containment=n("self"==r.opt.containment?this:r.opt.containment),r.isBackground="body"==r.opt.containment.get(0).tagName.toLowerCase(),!r.isBackground||!t.backgroundIsInited){if(a=r.opt.containment.is(n(this)),r.canPlayOnMobile=a&&0===n(this).children().length,a?r.isPlayer=!0:u.hide(),n.browser.mobile&&!r.canPlayOnMobile)return void u.remove();s=n("<div/>").addClass("mbYTP_wrapper").attr("id","wrapper_"+e);(s.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0}),o.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),s.append(o),r.opt.containment.children().not("script, style").each(function(){"static"==n(this).css("position")&&n(this).css("position","relative")}),r.isBackground?(n("body").css({boxSizing:"border-box"}),s.css({position:"fixed",top:0,left:0,zIndex:0}),u.hide()):"static"==r.opt.containment.css("position")&&r.opt.containment.css({position:"relative"}),r.opt.containment.prepend(s),r.wrapper=s,o.css({opacity:1}),n.browser.mobile||(o.after(h),r.overlay=h),r.isBackground||h.on("mouseenter",function(){r.controlBar&&r.controlBar.addClass("visible")}).on("mouseleave",function(){r.controlBar&&r.controlBar.removeClass("visible")}),t.YTAPIReady)?setTimeout(function(){n(document).trigger("YTAPIReady")},100):(n("#YTAPI").remove(),p=n("<script><\/script>").attr({src:n.mbYTPlayer.locationProtocol+"//www.youtube.com/iframe_api?v="+n.mbYTPlayer.version,id:"YTAPI"}),n("head").prepend(p));n(document).on("YTAPIReady",function(){r.isBackground&&t.backgroundIsInited||r.isInit||(r.isBackground&&(t.backgroundIsInited=!0),r.opt.autoPlay="undefined"==typeof r.opt.autoPlay?r.isBackground?!0:!1:r.opt.autoPlay,r.opt.vol=r.opt.vol?r.opt.vol:100,n.mbYTPlayer.getDataFromAPI(r),n(r).on("YTPChanged",function(){if(!r.isInit){if(r.isInit=!0,n.browser.mobile&&r.canPlayOnMobile){if(r.opt.containment.outerWidth()>n(window).width()){r.opt.containment.css({maxWidth:"100%"});var t=.6*r.opt.containment.outerWidth();r.opt.containment.css({maxHeight:t})}return void new YT.Player(e,{videoId:r.videoID.toString(),height:"100%",width:"100%",events:{onReady:function(n){r.player=n.target;o.css({opacity:1});r.wrapper.css({opacity:1})}}})}new YT.Player(e,{videoId:r.videoID.toString(),playerVars:l,events:{onReady:function(t){if(r.player=t.target,!r.isReady){r.isReady=r.isPlayer&&!r.opt.autoPlay?!1:!0;r.playerEl=r.player.getIframe();u.optimizeDisplay();r.videoID=c;n(window).on("resize.YTP",function(){u.optimizeDisplay()});n.mbYTPlayer.checkForState(r);var i=n.Event("YTPUnstarted");i.time=r.player.time;r.canTrigger&&n(r).trigger(i)}},onStateChange:function(t){var u,i,f;if("function"==typeof t.target.getPlayerState&&(u=t.target.getPlayerState(),r.state!=u)){r.state=u;switch(u){case-1:i="YTPUnstarted";break;case 0:i="YTPEnd";break;case 1:i="YTPStart";r.controlBar&&r.controlBar.find(".mb_YTPPlaypause").html(n.mbYTPlayer.controls.pause);"undefined"!=typeof _gaq&&eval(r.opt.gaTrack)&&_gaq.push(["_trackEvent","YTPlayer","Play",r.hasData?r.videoData.title:r.videoID.toString()]);"undefined"!=typeof ga&&eval(r.opt.gaTrack)&&ga("send","event","YTPlayer","play",r.hasData?r.videoData.title:r.videoID.toString());break;case 2:i="YTPPause";r.controlBar&&r.controlBar.find(".mb_YTPPlaypause").html(n.mbYTPlayer.controls.play);break;case 3:r.player.setPlaybackQuality(r.opt.quality);i="YTPBuffering";r.controlBar&&r.controlBar.find(".mb_YTPPlaypause").html(n.mbYTPlayer.controls.play);break;case 5:i="YTPCued"}f=n.Event(i);f.time=r.player.time;r.canTrigger&&n(r).trigger(f)}},onPlaybackQualityChange:function(t){var u=t.target.getPlaybackQuality(),i=n.Event("YTPQualityChange");i.quality=u;n(r).trigger(i)},onError:function(t){150==t.data&&(console.log("Embedding this video is restricted by Youtube."),r.isPlayList&&n(r).playNext());2==t.data&&r.isPlayList&&n(r).playNext();"function"==typeof r.opt.onError&&r.opt.onError(u,t)}}})}}))})}})},getDataFromAPI:function(t){if(t.videoData=n.mbStorage.get("YYTPlayer_data_"+t.videoID),n(t).off("YTPData.YTPlayer").on("YTPData.YTPlayer",function(){if(t.hasData&&t.isPlayer&&!t.opt.autoPlay){var n=t.videoData.thumb_max||t.videoData.thumb_high||t.videoData.thumb_medium;t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+n+") center center",backgroundSize:"cover"});t.opt.backgroundUrl=n}}),t.videoData)setTimeout(function(){var i,r;t.opt.ratio="auto"==t.opt.ratio?"16/9":t.opt.ratio;t.dataReceived=!0;n(t).trigger("YTPChanged");i=n.Event("YTPData");i.prop={};for(r in t.videoData)i.prop[r]=t.videoData[r];n(t).trigger(i)},500),t.hasData=!0;else if(n.mbYTPlayer.apiKey)n.getJSON(n.mbYTPlayer.locationProtocol+"//www.googleapis.com/youtube/v3/videos?id="+t.videoID+"&key="+n.mbYTPlayer.apiKey+"&part=snippet",function(i){function f(i){t.videoData={};t.videoData.id=t.videoID;t.videoData.channelTitle=i.channelTitle;t.videoData.title=i.title;t.videoData.description=i.description.length<400?i.description:i.description.substring(0,400)+" ...";t.videoData.aspectratio="auto"==t.opt.ratio?"16/9":t.opt.ratio;t.opt.ratio=t.videoData.aspectratio;t.videoData.thumb_max=i.thumbnails.maxres?i.thumbnails.maxres.url:null;t.videoData.thumb_high=i.thumbnails.high?i.thumbnails.high.url:null;t.videoData.thumb_medium=i.thumbnails.medium?i.thumbnails.medium.url:null;n.mbStorage.set("YYTPlayer_data_"+t.videoID,t.videoData)}var r,u;t.dataReceived=!0;n(t).trigger("YTPChanged");f(i.items[0].snippet);t.hasData=!0;r=n.Event("YTPData");r.prop={};for(u in t.videoData)r.prop[u]=t.videoData[u];n(t).trigger(r)});else{if(setTimeout(function(){n(t).trigger("YTPChanged")},50),t.isPlayer&&!t.opt.autoPlay){var i=n.mbYTPlayer.locationProtocol+"//i.ytimg.com/vi/"+t.videoID+"/hqdefault.jpg";t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+i+") center center",backgroundSize:"cover"});t.opt.backgroundUrl=i}t.videoData=null;t.opt.ratio="auto"==t.opt.ratio?"16/9":t.opt.ratio}t.isPlayer&&!t.opt.autoPlay&&(t.loading=n("<div/>").addClass("loading").html("Loading").hide(),n(t).append(t.loading),t.loading.fadeIn())},removeStoredData:function(){n.mbStorage.remove()},getVideoData:function(){var n=this.get(0);return n.videoData},getVideoID:function(){var n=this.get(0);return n.videoID||!1},setVideoQuality:function(t){var i=this.get(0);n.browser.chrome||i.player.setPlaybackQuality(t)},playlist:function(t,i,r){var f=this,u=f.get(0);return u.isPlayList=!0,i&&(t=n.shuffle(t)),u.videoID||(u.videos=t,u.videoCounter=0,u.videoLength=t.length,n(u).data("property",t[0]),n(u).mb_YTPlayer()),"function"==typeof r&&n(u).on("YTPChanged",function(){r(u)}),n(u).on("YTPEnd",function(){n(u).playNext()}),f},playNext:function(){var t=this.get(0);return t.videoCounter++,t.videoCounter>=t.videoLength&&(t.videoCounter=0),n(t).changeMovie(t.videos[t.videoCounter]),this},playPrev:function(){var t=this.get(0);return t.videoCounter--,t.videoCounter<0&&(t.videoCounter=t.videoLength-1),n(t).changeMovie(t.videos[t.videoCounter]),this},changeMovie:function(t){var i=this.get(0);i.opt.startAt=0;i.opt.stopAt=0;i.opt.mute=!0;i.hasData=!1;i.hasChanged=!0;t&&n.extend(i.opt,i.defaultOpt,t);i.videoID=getYTPVideoID(i.opt.videoURL).videoID;n(i.playerEl).CSSAnimate({opacity:0},200,function(){return n(i).YTPGetPlayer().cueVideoByUrl(encodeURI(n.mbYTPlayer.locationProtocol+"//www.youtube.com/v/"+i.videoID),1,i.opt.quality),n.mbYTPlayer.checkForState(i),n(i).optimizeDisplay(),n.mbYTPlayer.getDataFromAPI(i),this})},getPlayer:function(){return n(this).get(0).player},playerDestroy:function(){var i=this.get(0),r;return t.YTAPIReady=!1,t.backgroundIsInited=!1,i.isInit=!1,i.videoID=null,r=i.wrapper,r.remove(),n("#controlBar_"+i.id).remove(),clearInterval(i.checkForStartAt),clearInterval(i.getState),this},fullscreen:function(t){function s(){i.overlay.css({cursor:"none"})}function u(n,t){for(var i,f,r=["webkit","moz","ms","o",""],u=0;u<r.length&&!n[i];){if(i=t,""==r[u]&&(i=i.substr(0,1).toLowerCase()+i.substr(1)),i=r[u]+i,f=typeof n[i],"undefined"!=f)return r=[r[u]],"function"==f?n[i]():n[i];u++}}function h(n){u(n,"RequestFullScreen")}function c(){(u(document,"FullScreen")||u(document,"IsFullScreen"))&&u(document,"CancelFullScreen")}var i=this.get(0),o;"undefined"==typeof t&&(t=i.opt.realfullscreen);t=eval(t);var f=n("#controlBar_"+i.id),e=f.find(".mb_OnlyYT"),r=i.isSelf?i.opt.containment:i.wrapper;if(t){o=n.browser.mozilla?"mozfullscreenchange":n.browser.webkit?"webkitfullscreenchange":"fullscreenchange";n(document).off(o).on(o,function(){var t=u(document,"IsFullScreen")||u(document,"FullScreen");t?(n(i).YTPSetVideoQuality("default"),n(i).trigger("YTPFullScreenStart")):(i.isAlone=!1,e.html(n.mbYTPlayer.controls.onlyYT),n(i).YTPSetVideoQuality(i.opt.quality),r.removeClass("fullscreen"),r.CSSAnimate({opacity:i.opt.opacity},500),r.css({zIndex:0}),i.isBackground?n("body").after(f):i.wrapper.before(f),n(window).resize(),n(i).trigger("YTPFullScreenEnd"))})}return i.isAlone?(n(document).off("mousemove.YTPlayer"),i.overlay.css({cursor:"auto"}),t?c():(r.CSSAnimate({opacity:i.opt.opacity},500),r.css({zIndex:0})),e.html(n.mbYTPlayer.controls.onlyYT),i.isAlone=!1):(n(document).on("mousemove.YTPlayer",function(t){i.overlay.css({cursor:"auto"});clearTimeout(i.hideCursor);n(t.target).parents().is(".mb_YTPBar")||(i.hideCursor=setTimeout(s,3e3))}),s(),t?(r.css({opacity:0}),r.addClass("fullscreen"),h(r.get(0)),setTimeout(function(){r.CSSAnimate({opacity:1},1e3);i.wrapper.append(f);n(i).optimizeDisplay();i.player.seekTo(i.player.getCurrentTime()+.1,!0)},500)):r.css({zIndex:1e4}).CSSAnimate({opacity:1},1e3),e.html(n.mbYTPlayer.controls.showSite),i.isAlone=!0),this},toggleLoops:function(){var t=this.get(0),n=t.opt;return 1==n.loop?n.loop=0:(n.startAt?t.player.seekTo(n.startAt):t.player.playVideo(),n.loop=1),this},play:function(){var t=this.get(0),i,r;if(t.isReady)return i=n("#controlBar_"+t.id),r=i.find(".mb_YTPPlaypause"),r.html(n.mbYTPlayer.controls.pause),t.player.playVideo(),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},2e3),n(t.playerEl).CSSAnimate({opacity:1},1e3),n(t).css("background-image","none"),this},togglePlay:function(n){var t=this.get(0);return 1==t.state?this.YTPPause():this.YTPPlay(),"function"==typeof n&&n(t.state),this},stop:function(){var t=this.get(0),i=n("#controlBar_"+t.id),r=i.find(".mb_YTPPlaypause");return r.html(n.mbYTPlayer.controls.play),t.player.stopVideo(),this},pause:function(){var t=this.get(0),i=n("#controlBar_"+t.id),r=i.find(".mb_YTPPlaypause");return r.html(n.mbYTPlayer.controls.play),t.player.pauseVideo(),this},seekTo:function(n){var t=this.get(0);return t.player.seekTo(n,!0),this},setVolume:function(t){var i=this.get(0);return t||i.opt.vol||0!=i.player.getVolume()?!t&&i.player.getVolume()>0||t&&i.opt.vol==t?i.isMute?n(i).YTPUnmute():n(i).YTPMute():(i.opt.vol=t,i.player.setVolume(i.opt.vol),i.volumeBar&&i.volumeBar.length&&i.volumeBar.updateSliderVal(t)):n(i).YTPUnmute(),this},mute:function(){var t=this.get(0),r,u,i;if(!t.isMute)return t.player.mute(),t.isMute=!0,t.player.setVolume(0),t.volumeBar&&t.volumeBar.length&&t.volumeBar.width()>10&&t.volumeBar.updateSliderVal(0),r=n("#controlBar_"+t.id),u=r.find(".mb_YTPMuteUnmute"),u.html(n.mbYTPlayer.controls.unmute),n(t).addClass("isMuted"),t.volumeBar&&t.volumeBar.length&&t.volumeBar.addClass("muted"),i=n.Event("YTPMuted"),i.time=t.player.time,t.canTrigger&&n(t).trigger(i),this},unmute:function(){var t=this.get(0),r,u,i;if(t.isMute)return t.player.unMute(),t.isMute=!1,t.player.setVolume(t.opt.vol),t.volumeBar&&t.volumeBar.length&&t.volumeBar.updateSliderVal(t.opt.vol>10?t.opt.vol:10),r=n("#controlBar_"+t.id),u=r.find(".mb_YTPMuteUnmute"),u.html(n.mbYTPlayer.controls.mute),n(t).removeClass("isMuted"),t.volumeBar&&t.volumeBar.length&&t.volumeBar.removeClass("muted"),i=n.Event("YTPUnmuted"),i.time=t.player.time,t.canTrigger&&n(t).trigger(i),this},applyFilter:function(n,t){var i=this.get(0);return i.filters[n].value=t,i.filtersEnabled&&this.YTPEnableFilters(),this},applyFilters:function(t){var i=this.get(0);return this.on("YTPReady",function(){for(var r in t)i.filters[r].value=t[r],n(i).YTPApplyFilter(r,t[r]);n(i).trigger("YTPFiltersApplied")}),this},toggleFilter:function(t,i){return this.each(function(){var r=this;r.filters[t].value=r.filters[t].value?0:i;r.filtersEnabled&&n(this).YTPEnableFilters()})},toggleFilters:function(t){return this.each(function(){var i=this;i.filtersEnabled?(n(i).trigger("YTPDisableFilters"),n(i).YTPDisableFilters()):(n(i).YTPEnableFilters(),n(i).trigger("YTPEnableFilters"));"function"==typeof t&&t(i.filtersEnabled)})},disableFilters:function(){return this.each(function(){var t=this,i=n(t.playerEl);i.css("-webkit-filter","");i.css("filter","");t.filtersEnabled=!1})},enableFilters:function(){return this.each(function(){var t=this,u=n(t.playerEl),r="";for(var i in t.filters)t.filters[i].value&&(r+=i.replace("_","-")+"("+t.filters[i].value+t.filters[i].unit+") ");u.css("-webkit-filter",r);u.css("filter",r);t.filtersEnabled=!0})},removeFilter:function(t,i){return this.each(function(){var u,r;if("function"==typeof t&&(i=t,t=null),u=this,t)n(this).YTPApplyFilter(t,0),"function"==typeof i&&i(t);else for(r in u.filters)n(this).YTPApplyFilter(r,0),"function"==typeof i&&i(r)})},manageProgress:function(){var t=this.get(0),i=n("#controlBar_"+t.id),f=i.find(".mb_YTPProgress"),e=i.find(".mb_YTPLoaded"),o=i.find(".mb_YTPseekbar"),s=f.outerWidth(),r=Math.floor(t.player.getCurrentTime()),u=Math.floor(t.player.getDuration()),h=r*s/u,c=100*t.player.getVideoLoadedFraction();return e.css({left:0,width:c+"%"}),o.css({left:0,width:h}),{totalTime:u,currentTime:r}},buildControls:function(t){var i=t.opt,s,f;if(i.showYTLogo=i.showYTLogo||i.printUrl,!n("#controlBar_"+t.id).length){t.controlBar=n("<span/>").attr("id","controlBar_"+t.id).addClass("mb_YTPBar").css({whiteSpace:"noWrap",position:t.isBackground?"fixed":"absolute",zIndex:t.isBackground?1e4:1e3}).hide();var u=n("<div/>").addClass("buttonBar"),h=n("<span>"+n.mbYTPlayer.controls.play+"<\/span>").addClass("mb_YTPPlaypause ytpicon").click(function(){1==t.player.getPlayerState()?n(t).YTPPause():n(t).YTPPlay()}),c=n("<span>"+n.mbYTPlayer.controls.mute+"<\/span>").addClass("mb_YTPMuteUnmute ytpicon").click(function(){0==t.player.getVolume()?n(t).YTPUnmute():n(t).YTPMute()}),e=n("<div/>").addClass("mb_YTPVolumeBar").css({display:"inline-block"});t.volumeBar=e;s=n("<span/>").addClass("mb_YTPTime");f=i.videoURL?i.videoURL:"";f.indexOf("http")<0&&(f=n.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+i.videoURL);var l=n("<span/>").html(n.mbYTPlayer.controls.ytLogo).addClass("mb_YTPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(f,"viewOnYT")}),a=n("<span/>").html(n.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){n(t).YTPFullscreen(i.realfullscreen)}),o=n("<div/>").addClass("mb_YTPProgress").css("position","absolute").click(function(n){r.css({width:n.clientX-r.offset().left});t.timeW=n.clientX-r.offset().left;t.controlBar.find(".mb_YTPLoaded").css({width:0});var i=Math.floor(t.player.getDuration());t.goto=r.outerWidth()*i/o.outerWidth();t.player.seekTo(parseFloat(t.goto),!0);t.controlBar.find(".mb_YTPLoaded").css({width:0})}),v=n("<div/>").addClass("mb_YTPLoaded").css("position","absolute"),r=n("<div/>").addClass("mb_YTPseekbar").css("position","absolute");o.append(v).append(r);u.append(h).append(c).append(e).append(s);i.showYTLogo&&u.append(l);(t.isBackground||eval(t.opt.realfullscreen)&&!t.isBackground)&&u.append(a);t.controlBar.append(u).append(o);t.isBackground?n("body").after(t.controlBar):(t.controlBar.addClass("inlinePlayer"),t.wrapper.before(t.controlBar));e.simpleSlider({initialval:t.opt.vol,scale:100,orientation:"h",callback:function(i){0==i.value?n(t).YTPMute():n(t).YTPUnmute();t.player.setVolume(i.value);t.isMute||(t.opt.vol=i.value)}})}},checkForState:function(t){var i=t.opt.showControls?100:700;return clearInterval(t.getState),n.contains(document,t)?(n.mbYTPlayer.checkForStart(t),void(t.getState=setInterval(function(){var i=n(t).YTPManageProgress(),r=n(t),s=t.opt,f=t.opt.startAt?t.opt.startAt:0,u=t.opt.stopAt>t.opt.startAt?t.opt.stopAt:0,e,o;if((u=u<t.player.getDuration()?u:0,t.player.time!=i.currentTime)&&(e=n.Event("YTPTime"),e.time=t.player.time,n(t).trigger(e)),t.player.time=i.currentTime,0==t.player.getVolume()?r.addClass("isMuted"):r.removeClass("isMuted"),t.opt.showControls&&(i.totalTime?t.controlBar.find(".mb_YTPTime").html(n.mbYTPlayer.formatTime(i.currentTime)+" / "+n.mbYTPlayer.formatTime(i.totalTime)):t.controlBar.find(".mb_YTPTime").html("-- : -- / -- : --")),eval(t.opt.stopMovieOnBlur)&&(document.hasFocus()?document.hasFocus()&&!t.hasFocus&&-1!=t.state&&0!=t.state&&(t.hasFocus=!0,r.YTPPlay()):1==t.state&&(t.hasFocus=!1,r.YTPPause())),t.controlBar&&t.controlBar.outerWidth()<=400&&!t.isCompact?(t.controlBar.addClass("compact"),t.isCompact=!0,!t.isMute&&t.volumeBar&&t.volumeBar.updateSliderVal(t.opt.vol)):t.controlBar&&t.controlBar.outerWidth()>400&&t.isCompact&&(t.controlBar.removeClass("compact"),t.isCompact=!1,!t.isMute&&t.volumeBar&&t.volumeBar.updateSliderVal(t.opt.vol)),1==t.player.getPlayerState()&&(parseFloat(t.player.getDuration()-1.5)<t.player.getCurrentTime()||u>0&&parseFloat(t.player.getCurrentTime())>u)){if(t.isEnded)return;if(t.isEnded=!0,setTimeout(function(){t.isEnded=!1},1e3),t.isPlayList)return clearInterval(t.getState),o=n.Event("YTPEnd"),o.time=t.player.time,void n(t).trigger(o);s.loop?(f=f||1,t.player.pauseVideo(),t.player.seekTo(f,!0),r.YTPPlay()):(t.player.pauseVideo(),t.wrapper.CSSAnimate({opacity:0},1e3,function(){var i=n.Event("YTPEnd");i.time=t.player.time;n(t).trigger(i);t.player.seekTo(f,!0);t.isBackground||t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+t.opt.backgroundUrl+") center center",backgroundSize:"cover"})}))}},i))):(n(t).YTPPlayerDestroy(),clearInterval(t.getState),void clearInterval(t.checkForStartAt))},checkForStart:function(t){var r=n(t),i;if(!n.contains(document,t))return void n(t).YTPPlayerDestroy();(n.browser.chrome&&(t.opt.quality="default"),t.player.pauseVideo(),n(t).muteYTPVolume(),n("#controlBar_"+t.id).remove(),t.opt.showControls&&n.mbYTPlayer.buildControls(t),t.opt.addRaster)?(i="dot"==t.opt.addRaster?"raster-dot":"raster",t.overlay.addClass(t.isRetina?i+" retina":i)):t.overlay.removeClass(function(t,i){var u=i.split(" "),r=[];return n.each(u,function(n,t){/raster.*/.test(t)&&r.push(t)}),r.push("retina"),r.join(" ")});t.checkForStartAt=setInterval(function(){var i,u,f;n(t).YTPMute();i=t.opt.startAt?t.opt.startAt:1;u=t.player.getVideoLoadedFraction()>i/t.player.getDuration();t.player.getDuration()>0&&t.player.getCurrentTime()>=i&&u?(clearInterval(t.checkForStartAt),t.isReady=!0,"function"==typeof t.opt.onReady&&t.opt.onReady(t),f=n.Event("YTPReady"),n(t).trigger(f),t.player.pauseVideo(),t.opt.mute||n(t).YTPUnmute(),t.canTrigger=!0,t.opt.autoPlay?(r.YTPPlay(),r.css("background-image","none"),n(t.playerEl).CSSAnimate({opacity:1},1e3),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},1e3)):(t.player.pauseVideo(),t.isPlayer||(n(t.playerEl).CSSAnimate({opacity:1},1e3),t.wrapper.CSSAnimate({opacity:t.isAlone?1:t.opt.opacity},1e3))),t.isPlayer&&!t.opt.autoPlay&&(t.loading.html("Ready"),setTimeout(function(){t.loading.fadeOut()},100)),t.controlBar&&t.controlBar.slideDown(1e3)):i>=0&&t.player.seekTo(i,!0)},1e3)},formatTime:function(n){var t=Math.floor(n/60),i=Math.floor(n-60*t);return(9>=t?"0"+t:t)+" : "+(9>=i?"0"+i:i)}};n.fn.toggleVolume=function(){var t=this.get(0);if(t)return t.player.isMuted()?(n(t).YTPUnmute(),!0):(n(t).YTPMute(),!1)};n.fn.optimizeDisplay=function(){var f=this.get(0),e=f.opt,s=n(f.playerEl),i={},o=f.wrapper;i.width=o.outerWidth();i.height=o.outerHeight();var r=24,u=100,t={};e.optimizeDisplay?(t.width=i.width+i.width*r/100,t.height="16/9"==e.ratio?Math.ceil(9*i.width/16):Math.ceil(3*i.width/4),t.marginTop=-((t.height-i.height)/2),t.marginLeft=-(i.width*(r/2)/100),t.height<i.height&&(t.height=i.height+i.height*r/100,t.width="16/9"==e.ratio?Math.floor(16*i.height/9):Math.floor(4*i.height/3),t.marginTop=-(i.height*(r/2)/100),t.marginLeft=-((t.width-i.width)/2)),t.width+=u,t.height+=u,t.marginTop-=u/2,t.marginLeft-=u/2):(t.width="100%",t.height="100%",t.marginTop=0,t.marginLeft=0);s.css({width:t.width,height:t.height,marginTop:t.marginTop,marginLeft:t.marginLeft})};n.shuffle=function(n){for(var r,f,t=n.slice(),u=t.length,i=u;i--;)r=parseInt(Math.random()*u),f=t[i],t[i]=t[r],t[r]=f;return t};n.fn.YTPlayer=n.mbYTPlayer.buildPlayer;n.fn.YTPGetPlayer=n.mbYTPlayer.getPlayer;n.fn.YTPGetVideoID=n.mbYTPlayer.getVideoID;n.fn.YTPChangeMovie=n.mbYTPlayer.changeMovie;n.fn.YTPPlayerDestroy=n.mbYTPlayer.playerDestroy;n.fn.YTPPlay=n.mbYTPlayer.play;n.fn.YTPTogglePlay=n.mbYTPlayer.togglePlay;n.fn.YTPStop=n.mbYTPlayer.stop;n.fn.YTPPause=n.mbYTPlayer.pause;n.fn.YTPSeekTo=n.mbYTPlayer.seekTo;n.fn.YTPlaylist=n.mbYTPlayer.playlist;n.fn.YTPPlayNext=n.mbYTPlayer.playNext;n.fn.YTPPlayPrev=n.mbYTPlayer.playPrev;n.fn.YTPMute=n.mbYTPlayer.mute;n.fn.YTPUnmute=n.mbYTPlayer.unmute;n.fn.YTPToggleVolume=n.mbYTPlayer.toggleVolume;n.fn.YTPSetVolume=n.mbYTPlayer.setVolume;n.fn.YTPGetVideoData=n.mbYTPlayer.getVideoData;n.fn.YTPFullscreen=n.mbYTPlayer.fullscreen;n.fn.YTPToggleLoops=n.mbYTPlayer.toggleLoops;n.fn.YTPSetVideoQuality=n.mbYTPlayer.setVideoQuality;n.fn.YTPManageProgress=n.mbYTPlayer.manageProgress;n.fn.YTPApplyFilter=n.mbYTPlayer.applyFilter;n.fn.YTPApplyFilters=n.mbYTPlayer.applyFilters;n.fn.YTPToggleFilter=n.mbYTPlayer.toggleFilter;n.fn.YTPToggleFilters=n.mbYTPlayer.toggleFilters;n.fn.YTPRemoveFilter=n.mbYTPlayer.removeFilter;n.fn.YTPDisableFilters=n.mbYTPlayer.disableFilters;n.fn.YTPEnableFilters=n.mbYTPlayer.enableFilters;n.fn.mb_YTPlayer=n.mbYTPlayer.buildPlayer;n.fn.playNext=n.mbYTPlayer.playNext;n.fn.playPrev=n.mbYTPlayer.playPrev;n.fn.changeMovie=n.mbYTPlayer.changeMovie;n.fn.getVideoID=n.mbYTPlayer.getVideoID;n.fn.getPlayer=n.mbYTPlayer.getPlayer;n.fn.playerDestroy=n.mbYTPlayer.playerDestroy;n.fn.fullscreen=n.mbYTPlayer.fullscreen;n.fn.buildYTPControls=n.mbYTPlayer.buildControls;n.fn.playYTP=n.mbYTPlayer.play;n.fn.toggleLoops=n.mbYTPlayer.toggleLoops;n.fn.stopYTP=n.mbYTPlayer.stop;n.fn.pauseYTP=n.mbYTPlayer.pause;n.fn.seekToYTP=n.mbYTPlayer.seekTo;n.fn.muteYTPVolume=n.mbYTPlayer.mute;n.fn.unmuteYTPVolume=n.mbYTPlayer.unmute;n.fn.setYTPVolume=n.mbYTPlayer.setVolume;n.fn.setVideoQuality=n.mbYTPlayer.setVideoQuality;n.fn.manageYTPProgress=n.mbYTPlayer.manageProgress;n.fn.YTPGetDataFromFeed=n.mbYTPlayer.getVideoData}(jQuery,ytp);jQuery.support.CSStransition=function(){var t=document.body||document.documentElement,n=t.style;return void 0!==n.transition||void 0!==n.WebkitTransition||void 0!==n.MozTransition||void 0!==n.MsTransition||void 0!==n.OTransition}();jQuery.CSS={name:"mb.CSSAnimate",author:"Matteo Bicocchi",version:"2.0.0",transitionEnd:"transitionEnd",sfx:"",filters:{blur:{min:0,max:100,unit:"px"},brightness:{min:0,max:400,unit:"%"},contrast:{min:0,max:400,unit:"%"},grayscale:{min:0,max:100,unit:"%"},hueRotate:{min:0,max:360,unit:"deg"},invert:{min:0,max:100,unit:"%"},saturate:{min:0,max:400,unit:"%"},sepia:{min:0,max:100,unit:"%"}},normalizeCss:function(n){var t=jQuery.extend(!0,{},n),i,r;jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx="-webkit-":jQuery.browser.mozilla?jQuery.CSS.sfx="-moz-":jQuery.browser.msie&&(jQuery.CSS.sfx="-ms-");for(i in t)"transform"===i&&(t[jQuery.CSS.sfx+"transform"]=t[i],delete t[i]),"transform-origin"===i&&(t[jQuery.CSS.sfx+"transform-origin"]=n[i],delete t[i]),"filter"!==i||jQuery.browser.mozilla||(t[jQuery.CSS.sfx+"filter"]=n[i],delete t[i]),"blur"===i&&setFilter(t,"blur",n[i]),"brightness"===i&&setFilter(t,"brightness",n[i]),"contrast"===i&&setFilter(t,"contrast",n[i]),"grayscale"===i&&setFilter(t,"grayscale",n[i]),"hueRotate"===i&&setFilter(t,"hueRotate",n[i]),"invert"===i&&setFilter(t,"invert",n[i]),"saturate"===i&&setFilter(t,"saturate",n[i]),"sepia"===i&&setFilter(t,"sepia",n[i]),r="","x"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateX("+setUnit(n[i],"px")+")",delete t[i]),"y"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateY("+setUnit(n[i],"px")+")",delete t[i]),"z"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" translateZ("+setUnit(n[i],"px")+")",delete t[i]),"rotate"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotate("+setUnit(n[i],"deg")+")",delete t[i]),"rotateX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateX("+setUnit(n[i],"deg")+")",delete t[i]),"rotateY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateY("+setUnit(n[i],"deg")+")",delete t[i]),"rotateZ"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" rotateZ("+setUnit(n[i],"deg")+")",delete t[i]),"scale"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scale("+setUnit(n[i],"")+")",delete t[i]),"scaleX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleX("+setUnit(n[i],"")+")",delete t[i]),"scaleY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleY("+setUnit(n[i],"")+")",delete t[i]),"scaleZ"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" scaleZ("+setUnit(n[i],"")+")",delete t[i]),"skew"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skew("+setUnit(n[i],"deg")+")",delete t[i]),"skewX"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skewX("+setUnit(n[i],"deg")+")",delete t[i]),"skewY"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" skewY("+setUnit(n[i],"deg")+")",delete t[i]),"perspective"===i&&(r=jQuery.CSS.sfx+"transform",t[r]=t[r]||"",t[r]+=" perspective("+setUnit(n[i],"px")+")",delete t[i]);return t},getProp:function(n){var t=[];for(var i in n)t.indexOf(i)<0&&t.push(uncamel(i));return t.join(",")},animate:function(n,t,i,r,u){return this.each(function(){function p(){f.called=!0;f.CSSAIsRunning=!1;o.off(jQuery.CSS.transitionEnd+"."+f.id);clearTimeout(f.timeout);o.css(jQuery.CSS.sfx+"transition","");"function"==typeof u&&u.apply(f);"function"==typeof f.CSSqueue&&(f.CSSqueue(),f.CSSqueue=null)}var f=this,o=jQuery(this),h,a,e,c,l,v,y,s;if(f.id=f.id||"CSSA_"+(new Date).getTime(),h=h||{type:"noEvent"},f.CSSAIsRunning&&f.eventType==h.type&&!jQuery.browser.msie&&jQuery.browser.version<=9)return void(f.CSSqueue=function(){o.CSSAnimate(n,t,i,r,u)});if(f.CSSqueue=null,f.eventType=h.type,0!==o.length&&n){if(n=jQuery.normalizeCss(n),f.CSSAIsRunning=!0,"function"==typeof t&&(u=t,t=jQuery.fx.speeds._default),"function"==typeof i&&(r=i,i=0),"string"==typeof i&&(u=i,i=0),"function"==typeof r&&(u=r,r="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof t)for(a in jQuery.fx.speeds){if(t==a){t=jQuery.fx.speeds[a];break}t=jQuery.fx.speeds._default}if(t||(t=jQuery.fx.speeds._default),"string"==typeof u&&(r=u,u=null),!jQuery.support.CSStransition){for(e in n)("transform"===e&&delete n[e],"filter"===e&&delete n[e],"transform-origin"===e&&delete n[e],"auto"===n[e]&&delete n[e],"x"===e)&&(c=n[e],l="left",n[l]=c,delete n[e]),"y"===e&&(c=n[e],l="top",n[l]=c,delete n[e]),("-ms-transform"===e||"-ms-filter"===e)&&delete n[e];return void o.delay(i).animate(n,t,u)}v={"default":"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};v[r]&&(r=v[r]);o.off(jQuery.CSS.transitionEnd+"."+f.id);y=jQuery.CSS.getProp(n);s={};jQuery.extend(s,n);s[jQuery.CSS.sfx+"transition-property"]=y;s[jQuery.CSS.sfx+"transition-duration"]=t+"ms";s[jQuery.CSS.sfx+"transition-delay"]=i+"ms";s[jQuery.CSS.sfx+"transition-timing-function"]=r;setTimeout(function(){o.one(jQuery.CSS.transitionEnd+"."+f.id,p);o.css(s)},1);f.timeout=setTimeout(function(){return f.called||!u?(f.called=!1,void(f.CSSAIsRunning=!1)):(o.css(jQuery.CSS.sfx+"transition",""),u.apply(f),f.CSSAIsRunning=!1,void("function"==typeof f.CSSqueue&&(f.CSSqueue(),f.CSSqueue=null)))},t+i+10)}})}};jQuery.fn.CSSAnimate=jQuery.CSS.animate;jQuery.normalizeCss=jQuery.CSS.normalizeCss;jQuery.fn.css3=function(n){return this.each(function(){var t=jQuery(this),i=jQuery.normalizeCss(n);t.css(i)})};nAgt=navigator.userAgent;jQuery.browser||(jQuery.browser={},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.msie=!1,jQuery.browser.ua=nAgt,jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10),-1!=(verOffset=nAgt.indexOf("Opera"))?(jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("OPR"))?(jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4)):-1!=(verOffset=nAgt.indexOf("MSIE"))?(jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5)):-1!=nAgt.indexOf("Trident")?(jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",start=nAgt.indexOf("rv:")+3,end=start+4,jQuery.browser.fullVersion=nAgt.substring(start,end)):-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName)),-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion);jQuery.browser.android=/Android/i.test(nAgt);jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt);jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt);jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt);jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt);jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt);jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle;jQuery.isMobile=jQuery.browser.mobile;jQuery.isTablet=jQuery.browser.mobile&&jQuery(window).width()>765;jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt);!function(n){/iphone|ipod|ipad|android|ie|blackberry|fennec/.test(navigator.userAgent.toLowerCase());var t="ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch||!1;n.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1},events:{start:t?"touchstart":"mousedown",end:t?"touchend":"mouseup",move:t?"touchmove":"mousemove"},init:function(i){return this.each(function(){var r=this,u=n(r),e,f;u.addClass("simpleSlider");r.opt={};n.extend(r.opt,n.simpleSlider.defaults,i);n.extend(r.opt,u.data());e="h"==r.opt.orientation?"horizontal":"vertical";f=n("<div/>").addClass("level").addClass(e);u.prepend(f);r.level=f;u.css({cursor:"default"});"auto"==r.opt.scale&&(r.opt.scale=n(r).outerWidth());u.updateSliderVal();r.opt.readonly||(u.on(n.simpleSlider.events.start,function(n){t&&(n=n.changedTouches[0]);r.canSlide=!0;u.updateSliderVal(n);u.css({cursor:"col-resize"});n.preventDefault();n.stopPropagation()}),n(document).on(n.simpleSlider.events.move,function(i){t&&(i=i.changedTouches[0]);r.canSlide&&(n(document).css({cursor:"default"}),u.updateSliderVal(i),i.preventDefault(),i.stopPropagation())}).on(n.simpleSlider.events.end,function(){n(document).css({cursor:"auto"});r.canSlide=!1;u.css({cursor:"auto"})}))})},updateSliderVal:function(t){function e(n,t){return Math.floor(100*n/t)}var r=this,i=r.get(0),u,f;i.opt.initialval="number"==typeof i.opt.initialval?i.opt.initialval:i.opt.initialval(i);u=n(i).outerWidth();f=n(i).outerHeight();i.x="object"==typeof t?t.clientX+document.body.scrollLeft-r.offset().left:"number"==typeof t?t*u/i.opt.scale:i.opt.initialval*u/i.opt.scale;i.y="object"==typeof t?t.clientY+document.body.scrollTop-r.offset().top:"number"==typeof t?(i.opt.scale-i.opt.initialval-t)*f/i.opt.scale:i.opt.initialval*f/i.opt.scale;i.y=r.outerHeight()-i.y;i.scaleX=i.x*i.opt.scale/u;i.scaleY=i.y*i.opt.scale/f;i.outOfRangeX=i.scaleX>i.opt.scale?i.scaleX-i.opt.scale:i.scaleX<0?i.scaleX:0;i.outOfRangeY=i.scaleY>i.opt.scale?i.scaleY-i.opt.scale:i.scaleY<0?i.scaleY:0;i.outOfRange="h"==i.opt.orientation?i.outOfRangeX:i.outOfRangeY;i.value="undefined"!=typeof t?"h"==i.opt.orientation?i.x>=r.outerWidth()?i.opt.scale:i.x<=0?0:i.scaleX:i.y>=r.outerHeight()?i.opt.scale:i.y<=0?0:i.scaleY:"h"==i.opt.orientation?i.scaleX:i.scaleY;"h"==i.opt.orientation?i.level.width(e(i.x,u)+"%"):i.level.height(e(i.y,f));"function"==typeof i.opt.callback&&i.opt.callback(i)}};n.fn.simpleSlider=n.simpleSlider.init;n.fn.updateSliderVal=n.simpleSlider.updateSliderVal}(jQuery);!function(n){n.mbCookie={set:function(n,t,i,r){t=JSON.stringify(t);i||(i=7);r=r?"; domain="+r:"";var f,u=new Date;u.setTime(u.getTime()+864e5*i);f="; expires="+u.toGMTString();document.cookie=n+"="+t+f+"; path=/"+r},get:function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(r))return JSON.parse(t.substring(r.length,t.length))}return null},remove:function(t){n.mbCookie.set(t,"",-1)}};n.mbStorage={set:function(n,t){t=JSON.stringify(t);localStorage.setItem(n,t)},get:function(n){return localStorage[n]?JSON.parse(localStorage[n]):null},remove:function(n){n?localStorage.removeItem(n):localStorage.clear()}}}(jQuery),function(n){return n.easyPieChart=function(t,i){var s,u,f,h,e,o,c,l,r=this;return this.el=t,this.$el=n(t),this.$el.data("easyPieChart",this),this.init=function(){var u,t;return r.options=n.extend({},n.easyPieChart.defaultOptions,i),u=parseInt(r.$el.data("percent"),10),r.percentage=0,r.canvas=n("<canvas width='"+r.options.size+"' height='"+r.options.size+"'><\/canvas>").get(0),r.$el.append(r.canvas),typeof G_vmlCanvasManager!="undefined"&&G_vmlCanvasManager!==null&&G_vmlCanvasManager.initElement(r.canvas),r.ctx=r.canvas.getContext("2d"),window.devicePixelRatio>1&&(t=window.devicePixelRatio,n(r.canvas).css({width:r.options.size,height:r.options.size}),r.canvas.width*=t,r.canvas.height*=t,r.ctx.scale(t,t)),r.ctx.translate(r.options.size/2,r.options.size/2),r.ctx.rotate(r.options.rotate*Math.PI/180),r.$el.addClass("easyPieChart"),r.$el.css({width:r.options.size,height:r.options.size,lineHeight:""+r.options.size+"px"}),r.update(u),r},this.update=function(n){return n=parseFloat(n)||0,r.options.animate===!1?f(n):r.options.delay?(u(r.percentage,0),setTimeout(function(){return u(r.percentage,n)},r.options.delay)):u(r.percentage,n),r},c=function(){var n,t,i;for(r.ctx.fillStyle=r.options.scaleColor,r.ctx.lineWidth=1,i=[],n=t=0;t<=24;n=++t)i.push(s(n));return i},s=function(n){var t;t=n%6==0?0:r.options.size*.017;r.ctx.save();r.ctx.rotate(n*Math.PI/12);r.ctx.fillRect(r.options.size/2-t,0,-r.options.size*.05+t,1);r.ctx.restore()},l=function(){var n;n=r.options.size/2-r.options.lineWidth/2;r.options.scaleColor!==!1&&(n-=r.options.size*.08);r.ctx.beginPath();r.ctx.arc(0,0,n,0,Math.PI*2,!0);r.ctx.closePath();r.ctx.strokeStyle=r.options.trackColor;r.ctx.lineWidth=r.options.lineWidth;r.ctx.stroke()},o=function(){r.options.scaleColor!==!1&&c();r.options.trackColor!==!1&&l()},f=function(t){var i;o();r.ctx.strokeStyle=n.isFunction(r.options.barColor)?r.options.barColor(t):r.options.barColor;r.ctx.lineCap=r.options.lineCap;r.ctx.lineWidth=r.options.lineWidth;i=r.options.size/2-r.options.lineWidth/2;r.options.scaleColor!==!1&&(i-=r.options.size*.08);r.ctx.save();r.ctx.rotate(-Math.PI/2);r.ctx.beginPath();r.ctx.arc(0,0,i,0,Math.PI*2*t/100,!1);r.ctx.stroke();r.ctx.restore()},e=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}(),u=function(n,t){var i,u;r.options.onStart.call(r);r.percentage=t;Date.now||(Date.now=function(){return+new Date});u=Date.now();i=function(){var s,c;return c=Math.min(Date.now()-u,r.options.animate),r.ctx.clearRect(-r.options.size/2,-r.options.size/2,r.options.size,r.options.size),o.call(r),s=[h(c,n,t-n,r.options.animate)],r.options.onStep.call(r,s),f.call(r,s),c>=r.options.animate?r.options.onStop.call(r,s,t):e(i)};e(i)},h=function(n,t,i,r){var u,f;return u=function(n){return Math.pow(n,2)},f=function(n){return n<1?u(n):2-u(n*-1+2)},n/=r/2,i/2*f(n)+t},this.init()},n.easyPieChart.defaultOptions={barColor:"#ef1e25",trackColor:"#f2f2f2",scaleColor:"#dfe0e0",lineCap:"round",rotate:0,size:110,lineWidth:3,animate:!1,delay:!1,onStart:n.noop,onStop:n.noop,onStep:n.noop},n.fn.easyPieChart=function(t){return n.each(this,function(i,r){var u,f;return u=n(r),u.data("easyPieChart")?void 0:(f=n.extend({},t,u.data()),u.data("easyPieChart",new n.easyPieChart(r,f)))})},void 0}(jQuery),function(n){n.fn.appear=function(t,i){var r=n.extend({data:undefined,one:!0,accX:0,accY:0},i);return this.each(function(){var i=n(this);if(i.appeared=!1,!t){i.trigger("appear",r.data);return}var u=n(window),f=function(){if(!i.is(":visible")){i.appeared=!1;return}var n=u.scrollLeft(),t=u.scrollTop(),f=i.offset(),e=f.left,o=f.top,s=r.accX,h=r.accY,c=i.height(),l=u.height(),a=i.width(),v=u.width();o+c+h>=t&&o<=t+l+h&&e+a+s>=n&&e<=n+v+s?i.appeared||i.trigger("appear",r.data):i.appeared=!1},e=function(){if(i.appeared=!0,r.one){u.unbind("scroll",f);var e=n.inArray(f,n.fn.appear.checks);e>=0&&n.fn.appear.checks.splice(e,1)}t.apply(this,arguments)};if(r.one)i.one("appear",r.data,e);else i.bind("appear",r.data,e);u.scroll(f);n.fn.appear.checks.push(f);f()})};n.extend(n.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=n.fn.appear.checks.length;if(t>0)while(t--)n.fn.appear.checks[t]()},run:function(){n.fn.appear.timeout&&clearTimeout(n.fn.appear.timeout);n.fn.appear.timeout=setTimeout(n.fn.appear.checkAll,20)}});n.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,i){var r=n.fn[i];r&&(n.fn[i]=function(){var t=r.apply(this,arguments);return n.fn.appear.run(),t})})}(jQuery); /*! * animsition v3.5.2 * http://blivesta.github.io/animsition/ * Licensed under MIT * Author : blivesta * http://blivesta.com/ */ !function(n){"use strict";var i="animsition",t={init:function(r){var u,f;return(r=n.extend({inClass:"fade-in",outClass:"fade-out",inDuration:1500,outDuration:800,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"animsition-loading",loadingHtml:'<div class="css3-spinner-bounce1"><\/div><div class="css3-spinner-bounce2"><\/div><div class="css3-spinner-bounce3"><\/div>',unSupportCss:["animation-duration","-webkit-animation-duration","-o-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body"},r),u=t.supportCheck.call(this,r),!u)?("console"in window||(window.console={},window.console.log=function(n){return n}),console.log("Animsition does not support this browser."),t.destroy.call(this)):(f=t.optionCheck.call(this,r),f&&t.addOverlay.call(this,r),r.loading&&t.addLoading.call(this,r),this.each(function(){var u=this,f=n(this),e=n(window),o=f.data(i);o||(r=n.extend({},r),f.data(i,{options:r}),e.on("load."+i+" pageshow."+i,function(){t.pageIn.call(u)}),e.on("unload."+i,function(){}),n(r.linkElement).on("click."+i,function(i){i.preventDefault();var r=n(this),f=r.attr("href");2===i.which||i.metaKey||i.shiftKey||-1!==navigator.platform.toUpperCase().indexOf("WIN")&&i.ctrlKey?window.open(f,"_blank"):t.pageOut.call(u,r,f)}))}))},addOverlay:function(t){n(t.overlayParentElement).prepend('<div class="'+t.overlayClass+'"><\/div>')},addLoading:function(t){n(t.loadingParentElement).append('<div class="'+t.loadingClass+'">'+t.loadingHtml+"<\/div>")},removeLoading:function(){var r=n(this),t=r.data(i).options,u=n(t.loadingParentElement).children("."+t.loadingClass);u.fadeOut().remove()},supportCheck:function(t){var e=n(this),u=t.unSupportCss,f=u.length,r=!1,i;for(0===f&&(r=!0),i=0;f>i;i++)if("string"==typeof e.css(u[i])){r=!0;break}return r},optionCheck:function(t){var i=n(this);return t.overlay||i.data("animsition-overlay")?!0:!1},animationCheck:function(t,r,u){var o=n(this),f=o.data(i).options,e=typeof t,s=!r&&"number"===e,h=r&&"string"===e&&t.length>0;return s||h?t=t:r&&u?t=f.inClass:!r&&u?t=f.inDuration:r&&!u?t=f.outClass:r||u||(t=f.outDuration),t},pageIn:function(){var r=this,u=n(this),f=u.data(i).options,s=u.data("animsition-in-duration"),h=u.data("animsition-in"),e=t.animationCheck.call(r,s,!1,!0),o=t.animationCheck.call(r,h,!0,!0),c=t.optionCheck.call(r,f);f.loading&&t.removeLoading.call(r);c?t.pageInOverlay.call(r,o,e):t.pageInBasic.call(r,o,e)},pageInBasic:function(t,i){var r=n(this);r.trigger("animsition.start").css({"animation-duration":i/1e3+"s"}).addClass(t).animateCallback(function(){r.removeClass(t).css({opacity:1}).trigger("animsition.end")})},pageInOverlay:function(t,r){var u=n(this),f=u.data(i).options;u.trigger("animsition.start").css({opacity:1});n(f.overlayParentElement).children("."+f.overlayClass).css({"animation-duration":r/1e3+"s"}).addClass(t).animateCallback(function(){u.trigger("animsition.end")})},pageOut:function(r,u){var f=this,e=n(this),l=e.data(i).options,o=r.data("animsition-out"),a=e.data("animsition-out"),s=r.data("animsition-out-duration"),v=e.data("animsition-out-duration"),y=o?o:a,p=s?s:v,h=t.animationCheck.call(f,y,!0,!1),c=t.animationCheck.call(f,p,!1,!1),w=t.optionCheck.call(f,l);w?t.pageOutOverlay.call(f,h,c,u):t.pageOutBasic.call(f,h,c,u)},pageOutBasic:function(t,i,r){var u=n(this);u.css({"animation-duration":i/1e3+"s"}).addClass(t).animateCallback(function(){location.href=r})},pageOutOverlay:function(r,u,f){var s=this,e=n(this),o=e.data(i).options,h=e.data("animsition-in"),c=t.animationCheck.call(s,h,!0,!0);n(o.overlayParentElement).children("."+o.overlayClass).css({"animation-duration":u/1e3+"s"}).removeClass(c).addClass(r).animateCallback(function(){location.href=f})},destroy:function(){return this.each(function(){var t=n(this);n(window).unbind("."+i);t.css({opacity:1}).removeData(i)})}};n.fn.animateCallback=function(t){var i="animationend webkitAnimationEnd mozAnimationEnd oAnimationEnd MSAnimationEnd";return this.each(function(){n(this).bind(i,function(){return n(this).unbind(i),t.call(this)})})};n.fn.animsition=function(r){return t[r]?t[r].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof r&&r?void n.error("Method "+r+" does not exist on jQuery."+i):t.init.apply(this,arguments)}}(jQuery); /*! Stellar.js v0.6.2 | Copyright 2013, Mark Dalgleish | http://markdalgleish.com/projects/stellar.js | http://markdalgleish.mit-license.org */ (function(n,t,i,r){function f(t,i){this.element=t;this.options=n.extend({},h,i);this._defaults=h;this._name=u;this.init()}var u="stellar",h={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(n){n.hide()},showElement:function(n){n.show()}},e={scroll:{getLeft:function(n){return n.scrollLeft()},setLeft:function(n,t){n.scrollLeft(t)},getTop:function(n){return n.scrollTop()},setTop:function(n,t){n.scrollTop(t)}},position:{getLeft:function(n){return parseInt(n.css("left"),10)*-1},getTop:function(n){return parseInt(n.css("top"),10)*-1}},margin:{getLeft:function(n){return parseInt(n.css("margin-left"),10)*-1},getTop:function(n){return parseInt(n.css("margin-top"),10)*-1}},transform:{getLeft:function(n){var t=getComputedStyle(n[0])[o];return t!=="none"?parseInt(t.match(/(-?[0-9]+)/g)[4],10)*-1:0},getTop:function(n){var t=getComputedStyle(n[0])[o];return t!=="none"?parseInt(t.match(/(-?[0-9]+)/g)[5],10)*-1:0}}},c={position:{setLeft:function(n,t){n.css("left",t)},setTop:function(n,t){n.css("top",t)}},transform:{setPosition:function(n,t,i,r,u){n[0].style[o]="translate3d("+(t-i)+"px, "+(r-u)+"px, 0)"}}},v=function(){var r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=n("script")[0].style,t="";for(var u in i)if(r.test(u)){t=u.match(r)[0];break}return"WebkitOpacity"in i&&(t="Webkit"),"KhtmlOpacity"in i&&(t="Khtml"),function(n){return t+(t.length>0?n.charAt(0).toUpperCase()+n.slice(1):n)}}(),o=v("transform"),l=n("<div />",{style:"background:#fff"}).css("background-position-x")!==r,s=l?function(n,t,i){n.css({"background-position-x":t,"background-position-y":i})}:function(n,t,i){n.css("background-position",t+" "+i)},y=l?function(n){return[n.css("background-position-x"),n.css("background-position-y")]}:function(n){return n.css("background-position").split(" ")},a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,1e3/60)};f.prototype={init:function(){this.options.name=u+"_"+Math.floor(Math.random()*1e9);this._defineElements();this._defineGetters();this._defineSetters();this._handleWindowLoadAndResize();this._detectViewport();this.refresh({firstLoad:!0});this.options.scrollProperty==="scroll"?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===i.body&&(this.element=t);this.$scrollElement=n(this.element);this.$element=this.element===t?n("body"):this.$scrollElement;this.$viewportElement=this.options.viewportElement!==r?n(this.options.viewportElement):this.$scrollElement[0]===t||this.options.scrollProperty==="scroll"?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var n=this,t=e[n.options.scrollProperty];this._getScrollLeft=function(){return t.getLeft(n.$scrollElement)};this._getScrollTop=function(){return t.getTop(n.$scrollElement)}},_defineSetters:function(){var t=this,r=e[t.options.scrollProperty],i=c[t.options.positionProperty],u=r.setLeft,f=r.setTop;this._setScrollLeft=typeof u=="function"?function(n){u(t.$scrollElement,n)}:n.noop;this._setScrollTop=typeof f=="function"?function(n){f(t.$scrollElement,n)}:n.noop;this._setPosition=i.setPosition||function(n,r,u,f,e){t.options.horizontalScrolling&&i.setLeft(n,r,u);t.options.verticalScrolling&&i.setTop(n,f,e)}},_handleWindowLoadAndResize:function(){var i=this,r=n(t);i.options.responsive&&r.bind("load."+this.name,function(){i.refresh()});r.bind("resize."+this.name,function(){i._detectViewport();i.options.responsive&&i.refresh()})},refresh:function(i){var r=this,u=r._getScrollLeft(),f=r._getScrollTop();i&&i.firstLoad||this._reset();this._setScrollLeft(0);this._setScrollTop(0);this._setOffsets();this._findParticles();this._findBackgrounds();i&&i.firstLoad&&/WebKit/.test(navigator.userAgent)&&n(t).load(function(){var n=r._getScrollLeft(),t=r._getScrollTop();r._setScrollLeft(n+1);r._setScrollTop(t+1);r._setScrollLeft(n);r._setScrollTop(t)});this._setScrollLeft(u);this._setScrollTop(f)},_detectViewport:function(){var n=this.$viewportElement.offset(),t=n!==null&&n!==r;this.viewportWidth=this.$viewportElement.width();this.viewportHeight=this.$viewportElement.height();this.viewportOffsetTop=t?n.top:0;this.viewportOffsetLeft=t?n.left:0},_findParticles:function(){var t=this,u=this._getScrollLeft(),f=this._getScrollTop(),i;if(this.particles!==r)for(i=this.particles.length-1;i>=0;i--)this.particles[i].$element.data("stellar-elementIsActive",r);(this.particles=[],this.options.parallaxElements)&&this.$element.find("[data-stellar-ratio]").each(function(){var i=n(this),f,e,o,s,h,c,u,l,a,v=0,y=0,p=0,w=0;if(i.data("stellar-elementIsActive")){if(i.data("stellar-elementIsActive")!==this)return}else i.data("stellar-elementIsActive",this);t.options.showElement(i);i.data("stellar-startingLeft")?(i.css("left",i.data("stellar-startingLeft")),i.css("top",i.data("stellar-startingTop"))):(i.data("stellar-startingLeft",i.css("left")),i.data("stellar-startingTop",i.css("top")));o=i.position().left;s=i.position().top;h=i.css("margin-left")==="auto"?0:parseInt(i.css("margin-left"),10);c=i.css("margin-top")==="auto"?0:parseInt(i.css("margin-top"),10);l=i.offset().left-h;a=i.offset().top-c;i.parents().each(function(){var t=n(this);if(t.data("stellar-offset-parent")===!0)return v=p,y=w,u=t,!1;p+=t.position().left;w+=t.position().top});f=i.data("stellar-horizontal-offset")!==r?i.data("stellar-horizontal-offset"):u!==r&&u.data("stellar-horizontal-offset")!==r?u.data("stellar-horizontal-offset"):t.horizontalOffset;e=i.data("stellar-vertical-offset")!==r?i.data("stellar-vertical-offset"):u!==r&&u.data("stellar-vertical-offset")!==r?u.data("stellar-vertical-offset"):t.verticalOffset;t.particles.push({$element:i,$offsetParent:u,isFixed:i.css("position")==="fixed",horizontalOffset:f,verticalOffset:e,startingPositionLeft:o,startingPositionTop:s,startingOffsetLeft:l,startingOffsetTop:a,parentOffsetLeft:v,parentOffsetTop:y,stellarRatio:i.data("stellar-ratio")!==r?i.data("stellar-ratio"):1,width:i.outerWidth(!0),height:i.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var i=this,u=this._getScrollLeft(),f=this._getScrollTop(),t;(this.backgrounds=[],this.options.parallaxBackgrounds)&&(t=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(t=t.add(this.$element)),t.each(function(){var t=n(this),e=y(t),h,c,l,a,v,p,o,w=0,b=0,k=0,d=0;if(t.data("stellar-backgroundIsActive")){if(t.data("stellar-backgroundIsActive")!==this)return}else t.data("stellar-backgroundIsActive",this);t.data("stellar-backgroundStartingLeft")?s(t,t.data("stellar-backgroundStartingLeft"),t.data("stellar-backgroundStartingTop")):(t.data("stellar-backgroundStartingLeft",e[0]),t.data("stellar-backgroundStartingTop",e[1]));l=t.css("margin-left")==="auto"?0:parseInt(t.css("margin-left"),10);a=t.css("margin-top")==="auto"?0:parseInt(t.css("margin-top"),10);v=t.offset().left-l-u;p=t.offset().top-a-f;t.parents().each(function(){var t=n(this);if(t.data("stellar-offset-parent")===!0)return w=k,b=d,o=t,!1;k+=t.position().left;d+=t.position().top});h=t.data("stellar-horizontal-offset")!==r?t.data("stellar-horizontal-offset"):o!==r&&o.data("stellar-horizontal-offset")!==r?o.data("stellar-horizontal-offset"):i.horizontalOffset;c=t.data("stellar-vertical-offset")!==r?t.data("stellar-vertical-offset"):o!==r&&o.data("stellar-vertical-offset")!==r?o.data("stellar-vertical-offset"):i.verticalOffset;i.backgrounds.push({$element:t,$offsetParent:o,isFixed:t.css("background-attachment")==="fixed",horizontalOffset:h,verticalOffset:c,startingValueLeft:e[0],startingValueTop:e[1],startingBackgroundPositionLeft:isNaN(parseInt(e[0],10))?0:parseInt(e[0],10),startingBackgroundPositionTop:isNaN(parseInt(e[1],10))?0:parseInt(e[1],10),startingPositionLeft:t.position().left,startingPositionTop:t.position().top,startingOffsetLeft:v,startingOffsetTop:p,parentOffsetLeft:w,parentOffsetTop:b,stellarRatio:t.data("stellar-background-ratio")===r?1:t.data("stellar-background-ratio")})}))},_reset:function(){for(var t,r,u,i,n=this.particles.length-1;n>=0;n--)t=this.particles[n],r=t.$element.data("stellar-startingLeft"),u=t.$element.data("stellar-startingTop"),this._setPosition(t.$element,r,r,u,u),this.options.showElement(t.$element),t.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(n=this.backgrounds.length-1;n>=0;n--)i=this.backgrounds[n],i.$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),s(i.$element,i.startingValueLeft,i.startingValueTop)},destroy:function(){this._reset();this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name);this._animationLoop=n.noop;n(t).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var i=this,r=n(t);r.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name);typeof this.options.horizontalOffset=="function"?(this.horizontalOffset=this.options.horizontalOffset(),r.bind("resize.horizontal-"+this.name,function(){i.horizontalOffset=i.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset;typeof this.options.verticalOffset=="function"?(this.verticalOffset=this.options.verticalOffset(),r.bind("resize.vertical-"+this.name,function(){i.verticalOffset=i.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var r=this._getScrollLeft(),u=this._getScrollTop(),n,f,t,l,a,v=!0,y=!0,e,o,h,c,i;if(this.currentScrollLeft!==r||this.currentScrollTop!==u||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=r,this.currentScrollTop=u,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,i=this.particles.length-1;i>=0;i--)n=this.particles[i],f=n.isFixed?1:0,this.options.horizontalScrolling?(e=(r+n.horizontalOffset+this.viewportOffsetLeft+n.startingPositionLeft-n.startingOffsetLeft+n.parentOffsetLeft)*-(n.stellarRatio+f-1)+n.startingPositionLeft,h=e-n.startingPositionLeft+n.startingOffsetLeft):(e=n.startingPositionLeft,h=n.startingOffsetLeft),this.options.verticalScrolling?(o=(u+n.verticalOffset+this.viewportOffsetTop+n.startingPositionTop-n.startingOffsetTop+n.parentOffsetTop)*-(n.stellarRatio+f-1)+n.startingPositionTop,c=o-n.startingPositionTop+n.startingOffsetTop):(o=n.startingPositionTop,c=n.startingOffsetTop),this.options.hideDistantElements&&(y=!this.options.horizontalScrolling||h+n.width>(n.isFixed?0:r)&&h<(n.isFixed?0:r)+this.viewportWidth+this.viewportOffsetLeft,v=!this.options.verticalScrolling||c+n.height>(n.isFixed?0:u)&&c<(n.isFixed?0:u)+this.viewportHeight+this.viewportOffsetTop),y&&v?(n.isHidden&&(this.options.showElement(n.$element),n.isHidden=!1),this._setPosition(n.$element,e,n.startingPositionLeft,o,n.startingPositionTop)):n.isHidden||(this.options.hideElement(n.$element),n.isHidden=!0);for(i=this.backgrounds.length-1;i>=0;i--)t=this.backgrounds[i],f=t.isFixed?0:1,l=this.options.horizontalScrolling?(r+t.horizontalOffset-this.viewportOffsetLeft-t.startingOffsetLeft+t.parentOffsetLeft-t.startingBackgroundPositionLeft)*(f-t.stellarRatio)+"px":t.startingValueLeft,a=this.options.verticalScrolling?(u+t.verticalOffset-this.viewportOffsetTop-t.startingOffsetTop+t.parentOffsetTop-t.startingBackgroundPositionTop)*(f-t.stellarRatio)+"px":t.startingValueTop,s(t.$element,l,a)}},_handleScrollEvent:function(){var i=this,n=!1,r=function(){i._repositionElements();n=!1},t=function(){n||(a(r),n=!0)};this.$scrollElement.bind("scroll."+this.name,t);t()},_startAnimationLoop:function(){var n=this;this._animationLoop=function(){a(n._animationLoop);n._repositionElements()};this._animationLoop()}};n.fn[u]=function(t){var i=arguments;return t===r||typeof t=="object"?this.each(function(){n.data(this,"plugin_"+u)||n.data(this,"plugin_"+u,new f(this,t))}):typeof t=="string"&&t[0]!=="_"&&t!=="init"?this.each(function(){var r=n.data(this,"plugin_"+u);r instanceof f&&typeof r[t]=="function"&&r[t].apply(r,Array.prototype.slice.call(i,1));t==="destroy"&&n.data(this,"plugin_"+u,null)}):void 0};n[u]=function(){var i=n(t);return i.stellar.apply(i,Array.prototype.slice.call(arguments,0))};n[u].scrollProperty=e;n[u].positionProperty=c;t.Stellar=f})(jQuery,this,document),function(){var n=!1;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function t(i){function u(){!n&&this._init&&this._init.apply(this,arguments)}var e=this.prototype,f,r;n=!0;f=new this;n=!1;for(r in i)f[r]=typeof i[r]=="function"&&typeof e[r]=="function"?function(n,t){return function(){var r=this._super,i;return this._super=function(t){return e[n].apply(this,t)},i=t.apply(this,arguments),this._super=r,i}}(r,i[r]):i[r];return u.prototype=f,u.prototype.constructor=u,u.extend=t,u}}(),function(n){function t(n){return n.replace(/-([a-z])/g,function(n,t){return t.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){n.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var i=t(this.name);n[i]=this;n.fn[i]=function(t){var r=Array.prototype.slice.call(arguments,1);return n[i]._isNotChained(t,r)?n[i][t].apply(n[i],[this[0]].concat(r)):this.each(function(){if(typeof t=="string"){if(t[0]==="_"||!n[i][t])throw"Unknown method: "+t;n[i][t].apply(n[i],[this].concat(r))}else n[i]._attach(this,t)})}},setDefaults:function(t){n.extend(this.defaultOptions,t||{})},_isNotChained:function(t,i){return t==="option"&&(i.length===0||i.length===1&&typeof i[0]=="string")?!0:n.inArray(t,this._getters)>-1},_attach:function(t,i){if(t=n(t),!t.hasClass(this._getMarker())){t.addClass(this._getMarker());i=n.extend({},this.defaultOptions,this._getMetadata(t),i||{});var r=n.extend({name:this.name,elem:t,options:i},this._instSettings(t,i));t.data(this.name,r);this._postAttach(t,r);this.option(t,i)}},_instSettings:function(){return{}},_postAttach:function(){},_getMetadata:function(t){var i,u,r;try{i=t.data(this.name.toLowerCase())||"";i=i.replace(/'/g,'"');i=i.replace(/([a-zA-Z0-9]+):/g,function(n,t,r){var u=i.substring(0,r).match(/"/g);return!u||u.length%2==0?'"'+t+'":':t+":"});i=n.parseJSON("{"+i+"}");for(u in i)r=i[u],typeof r=="string"&&r.match(/^new Date\((.*)\)$/)&&(i[u]=eval(r));return i}catch(f){return{}}},_getInst:function(t){return n(t).data(this.name)||{}},option:function(t,i,r){var f,u;if(t=n(t),f=t.data(this.name),!i||typeof i=="string"&&r==null)return u=(f||{}).options,u&&i?u[i]:u;t.hasClass(this._getMarker())&&(u=i||{},typeof i=="string"&&(u={},u[i]=r),this._optionsChanged(t,f,u),n.extend(f.options,u))},_optionsChanged:function(){},destroy:function(t){(t=n(t),t.hasClass(this._getMarker()))&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(){}});n.JQPlugin={createPlugin:function(n,i){typeof n=="object"&&(i=n,n="JQPlugin");n=t(n);var r=t(i.name);JQClass.classes[r]=JQClass.classes[n].extend(i);new JQClass.classes[r]}}}(jQuery),function(n){var s="countdown",t=0,r=1,e=2,o=3,u=4,f=5,i=6;n.JQPlugin.createPlugin({name:s,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:s+"-rtl",_sectionClass:s+"-section",_amountClass:s+"-amount",_periodClass:s+"-period",_rowClass:s+"-row",_holdingClass:s+"-holding",_showClass:s+"-show",_descrClass:s+"-descr",_timerElems:[],_init:function(){function e(n){var o=n<1e12?f?performance.now()+performance.timing.navigationStart:t():n||t();o-r>=1e3&&(u._updateElems(),r=o);i(e)}var u=this,t,f,i,r;this._super();this._serverSyncs=[];t=typeof Date.now=="function"?Date.now:function(){return(new Date).getTime()};f=window.performance&&typeof window.performance.now=="function";i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;r=0;!i||n.noRequestAnimationFrame?(n.noRequestAnimationFrame=null,setInterval(function(){u._updateElems()},980)):(r=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||t(),i(e))},UTCDate:function(n,t,i,r,u,f,e,o){typeof t=="object"&&t.constructor==Date&&(o=t.getMilliseconds(),e=t.getSeconds(),f=t.getMinutes(),u=t.getHours(),r=t.getDate(),i=t.getMonth(),t=t.getFullYear());var s=new Date;return s.setUTCFullYear(t),s.setUTCDate(1),s.setUTCMonth(i||0),s.setUTCDate(r||1),s.setUTCHours(u||0),s.setUTCMinutes((f||0)-(Math.abs(n)<30?n*60:n)),s.setUTCSeconds(e||0),s.setUTCMilliseconds(o||0),s},periodsToSeconds:function(n){return n[0]*31557600+n[1]*2629800+n[2]*604800+n[3]*86400+n[4]*3600+n[5]*60+n[6]},_instSettings:function(){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(n){this._hasElem(n)||this._timerElems.push(n)},_hasElem:function(t){return n.inArray(t,this._timerElems)>-1},_removeElem:function(t){this._timerElems=n.map(this._timerElems,function(n){return n==t?null:n})},_updateElems:function(){for(var n=this._timerElems.length-1;n>=0;n--)this._updateCountdown(this._timerElems[n])},_optionsChanged:function(t,i,r){var f,u;r.layout&&(r.layout=r.layout.replace(/</g,"<").replace(/>/g,">"));this._resetExtraLabels(i.options,r);f=i.options.timezone!=r.timezone;n.extend(i.options,r);this._adjustSettings(t,i,r.until!=null||r.since!=null||f);u=new Date;(i._since&&i._since<u||i._until&&i._until>u)&&this._addElem(t[0]);this._updateCountdown(t,i)},_updateCountdown:function(t,i){var r,u,f;(t=t.jquery?t:n(t),i=i||t.data(this.name),i)&&(t.html(this._generateHTML(i)).toggleClass(this._rtlClass,i.options.isRTL),n.isFunction(i.options.onTick)&&(r=i._hold!="lap"?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date),(i.options.tickInterval==1||this.periodsToSeconds(r)%i.options.tickInterval==0)&&i.options.onTick.apply(t[0],[r])),u=i._hold!="pause"&&(i._since?i._now.getTime()<i._since.getTime():i._now.getTime()>=i._until.getTime()),u&&!i._expiring?(i._expiring=!0,(this._hasElem(t[0])||i.options.alwaysExpire)&&(this._removeElem(t[0]),n.isFunction(i.options.onExpiry)&&i.options.onExpiry.apply(t[0],[]),i.options.expiryText&&(f=i.options.layout,i.options.layout=i.options.expiryText,this._updateCountdown(t[0],i),i.options.layout=f),i.options.expiryUrl&&(window.location=i.options.expiryUrl)),i._expiring=!1):i._hold=="pause"&&this._removeElem(t[0]))},_resetExtraLabels:function(n,t){var r=!1;for(var i in t)if(i!="whichLabels"&&i.match(/[Ll]abels/)){r=!0;break}if(r)for(i in n)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(n[i]=null)},_adjustSettings:function(t,i,r){for(var h,f,e,u=0,s=null,o=0;o<this._serverSyncs.length;o++)if(this._serverSyncs[o][0]==i.options.serverSync){s=this._serverSyncs[o][1];break}s!=null?(u=i.options.serverSync?s:0,e=new Date):(h=n.isFunction(i.options.serverSync)?i.options.serverSync.apply(t[0],[]):null,e=new Date,u=h?e.getTime()-h.getTime():0,this._serverSyncs.push([i.options.serverSync,u]));f=i.options.timezone;f=f==null?-e.getTimezoneOffset():f;(r||!r&&i._until==null&&i._since==null)&&(i._since=i.options.since,i._since!=null&&(i._since=this.UTCDate(f,this._determineTime(i._since,null)),i._since&&u&&i._since.setMilliseconds(i._since.getMilliseconds()+u)),i._until=this.UTCDate(f,this._determineTime(i.options.until,e)),u&&i._until.setMilliseconds(i._until.getMilliseconds()+u));i._show=this._determineShow(i)},_preDestroy:function(n){this._removeElem(n[0]);n.empty()},pause:function(n){this._hold(n,"pause")},lap:function(n){this._hold(n,"lap")},resume:function(n){this._hold(n,null)},toggle:function(t){var i=n.data(t,this.name)||{};this[i._hold?"resume":"pause"](t)},toggleLap:function(t){var i=n.data(t,this.name)||{};this[i._hold?"resume":"lap"](t)},_hold:function(t,i){var r=n.data(t,this.name),u;r&&(r._hold!="pause"||i||(r._periods=r._savePeriods,u=r._since?"-":"+",r[r._since?"_since":"_until"]=this._determineTime(u+r._periods[0]+"y"+u+r._periods[1]+"o"+u+r._periods[2]+"w"+u+r._periods[3]+"d"+u+r._periods[4]+"h"+u+r._periods[5]+"m"+u+r._periods[6]+"s"),this._addElem(t)),r._hold=i,r._savePeriods=i=="pause"?r._periods:null,n.data(t,this.name,r),this._updateCountdown(t,r))},getTimes:function(t){var i=n.data(t,this.name);return i?i._hold=="pause"?i._savePeriods:i._hold?this._calculatePeriods(i,i._show,i.options.significant,new Date):i._periods:null},_determineTime:function(n,t){var r=this,u=function(n){var t=new Date;return t.setTime(t.getTime()+n*1e3),t},f=function(n){n=n.toLowerCase();for(var u=new Date,f=u.getFullYear(),e=u.getMonth(),i=u.getDate(),o=u.getHours(),s=u.getMinutes(),h=u.getSeconds(),c=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,t=c.exec(n);t;){switch(t[2]||"s"){case"s":h+=parseInt(t[1],10);break;case"m":s+=parseInt(t[1],10);break;case"h":o+=parseInt(t[1],10);break;case"d":i+=parseInt(t[1],10);break;case"w":i+=parseInt(t[1],10)*7;break;case"o":e+=parseInt(t[1],10);i=Math.min(i,r._getDaysInMonth(f,e));break;case"y":f+=parseInt(t[1],10);i=Math.min(i,r._getDaysInMonth(f,e))}t=c.exec(n)}return new Date(f,e,i,o,s,h,0)},i=n==null?t:typeof n=="string"?f(n):typeof n=="number"?u(n):n;return i&&i.setMilliseconds(0),i},_getDaysInMonth:function(n,t){return 32-new Date(n,t,32).getDate()},_normalLabels:function(n){return n},_generateHTML:function(s){var a=this,v,h;s._periods=s._hold?s._periods:this._calculatePeriods(s,s._show,s.options.significant,new Date);var w=!1,b=0,p=s.options.significant,c=n.extend({},s._show);for(h=t;h<=i;h++)w|=s._show[h]=="?"&&s._periods[h]>0,c[h]=s._show[h]=="?"&&!w?null:s._show[h],b+=c[h]?1:0,p-=s._periods[h]>0?1:0;for(v=[!1,!1,!1,!1,!1,!1,!1],h=i;h>=t;h--)s._show[h]&&(s._periods[h]?v[h]=!0:(v[h]=p>0,p--));var k=s.options.compact?s.options.compactLabels:s.options.labels,d=s.options.whichLabels||this._normalLabels,y=function(n){var t=s.options["compactLabels"+d(s._periods[n])];return c[n]?a._translateDigits(s,s._periods[n])+(t?t[n]:k[n])+" ":""},g=s.options.padZeroes?2:1,l=function(n){var t=s.options["labels"+d(s._periods[n])];return!s.options.significant&&c[n]||s.options.significant&&v[n]?'<span class="'+a._sectionClass+'"><span class="'+a._amountClass+'">'+a._minDigits(s,s._periods[n],g)+'<\/span><span class="'+a._periodClass+'">'+(t?t[n]:k[n])+"<\/span><\/span>":""};return s.options.layout?this._buildLayout(s,c,s.options.layout,s.options.compact,s.options.significant,v):(s.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(s._hold?" "+this._holdingClass:"")+'">'+y(t)+y(r)+y(e)+y(o)+(c[u]?this._minDigits(s,s._periods[u],2):"")+(c[f]?(c[u]?s.options.timeSeparator:"")+this._minDigits(s,s._periods[f],2):"")+(c[i]?(c[u]||c[f]?s.options.timeSeparator:"")+this._minDigits(s,s._periods[i],2):""):'<span class="'+this._rowClass+" "+this._showClass+(s.options.significant||b)+(s._hold?" "+this._holdingClass:"")+'">'+l(t)+l(r)+l(e)+l(o)+l(u)+l(f)+l(i))+"<\/span>"+(s.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+s.options.description+"<\/span>":"")},_buildLayout:function(s,h,c,l,a,v){for(var k,d,g=s.options[l?"compactLabels":"labels"],nt=s.options.whichLabels||this._normalLabels,p=function(n){return(s.options[(l?"compactLabels":"labels")+nt(s._periods[n])]||g)[n]},y=function(n,t){return s.options.digits[Math.floor(n/t)%10]},tt={desc:s.options.description,sep:s.options.timeSeparator,yl:p(t),yn:this._minDigits(s,s._periods[t],1),ynn:this._minDigits(s,s._periods[t],2),ynnn:this._minDigits(s,s._periods[t],3),y1:y(s._periods[t],1),y10:y(s._periods[t],10),y100:y(s._periods[t],100),y1000:y(s._periods[t],1e3),ol:p(r),on:this._minDigits(s,s._periods[r],1),onn:this._minDigits(s,s._periods[r],2),onnn:this._minDigits(s,s._periods[r],3),o1:y(s._periods[r],1),o10:y(s._periods[r],10),o100:y(s._periods[r],100),o1000:y(s._periods[r],1e3),wl:p(e),wn:this._minDigits(s,s._periods[e],1),wnn:this._minDigits(s,s._periods[e],2),wnnn:this._minDigits(s,s._periods[e],3),w1:y(s._periods[e],1),w10:y(s._periods[e],10),w100:y(s._periods[e],100),w1000:y(s._periods[e],1e3),dl:p(o),dn:this._minDigits(s,s._periods[o],1),dnn:this._minDigits(s,s._periods[o],2),dnnn:this._minDigits(s,s._periods[o],3),d1:y(s._periods[o],1),d10:y(s._periods[o],10),d100:y(s._periods[o],100),d1000:y(s._periods[o],1e3),hl:p(u),hn:this._minDigits(s,s._periods[u],1),hnn:this._minDigits(s,s._periods[u],2),hnnn:this._minDigits(s,s._periods[u],3),h1:y(s._periods[u],1),h10:y(s._periods[u],10),h100:y(s._periods[u],100),h1000:y(s._periods[u],1e3),ml:p(f),mn:this._minDigits(s,s._periods[f],1),mnn:this._minDigits(s,s._periods[f],2),mnnn:this._minDigits(s,s._periods[f],3),m1:y(s._periods[f],1),m10:y(s._periods[f],10),m100:y(s._periods[f],100),m1000:y(s._periods[f],1e3),sl:p(i),sn:this._minDigits(s,s._periods[i],1),snn:this._minDigits(s,s._periods[i],2),snnn:this._minDigits(s,s._periods[i],3),s1:y(s._periods[i],1),s10:y(s._periods[i],10),s100:y(s._periods[i],100),s1000:y(s._periods[i],1e3)},w=c,b=t;b<=i;b++)k="yowdhms".charAt(b),d=new RegExp("\\{"+k+"<\\}([\\s\\S]*)\\{"+k+">\\}","g"),w=w.replace(d,!a&&h[b]||a&&v[b]?"$1":"");return n.each(tt,function(n,t){var i=new RegExp("\\{"+n+"\\}","g");w=w.replace(i,t)}),w},_minDigits:function(n,t,i){return(t=""+t,t.length>=i)?this._translateDigits(n,t):(t="0000000000"+t,this._translateDigits(n,t.substr(t.length-i)))},_translateDigits:function(n,t){return(""+t).replace(/[0-9]/g,function(t){return n.options.digits[t]})},_determineShow:function(n){var s=n.options.format,h=[];return h[t]=s.match("y")?"?":s.match("Y")?"!":null,h[r]=s.match("o")?"?":s.match("O")?"!":null,h[e]=s.match("w")?"?":s.match("W")?"!":null,h[o]=s.match("d")?"?":s.match("D")?"!":null,h[u]=s.match("h")?"?":s.match("H")?"!":null,h[f]=s.match("m")?"?":s.match("M")?"!":null,h[i]=s.match("s")?"?":s.match("S")?"!":null,h},_calculatePeriods:function(n,s,h,c){var a,l,rt,w,y,p,v;if(n._now=c,n._now.setMilliseconds(0),a=new Date(n._now.getTime()),n._since?c.getTime()<n._since.getTime()?n._now=c=a:c=n._since:(a.setTime(n._until.getTime()),c.getTime()>n._until.getTime()&&(n._now=c=a)),l=[0,0,0,0,0,0,0],s[t]||s[r]){var b=this._getDaysInMonth(c.getFullYear(),c.getMonth()),g=this._getDaysInMonth(a.getFullYear(),a.getMonth()),nt=a.getDate()==c.getDate()||a.getDate()>=Math.min(b,g)&&c.getDate()>=Math.min(b,g),tt=function(n){return(n.getHours()*60+n.getMinutes())*60+n.getSeconds()},it=Math.max(0,(a.getFullYear()-c.getFullYear())*12+a.getMonth()-c.getMonth()+(a.getDate()<c.getDate()&&!nt||nt&&tt(a)<tt(c)?-1:0));l[t]=s[t]?Math.floor(it/12):0;l[r]=s[r]?it-l[t]*12:0;c=new Date(c.getTime());rt=c.getDate()==b;w=this._getDaysInMonth(c.getFullYear()+l[t],c.getMonth()+l[r]);c.getDate()>w&&c.setDate(w);c.setFullYear(c.getFullYear()+l[t]);c.setMonth(c.getMonth()+l[r]);rt&&c.setDate(w)}if(y=Math.floor((a.getTime()-c.getTime())/1e3),p=function(n,t){l[n]=s[n]?Math.floor(y/t):0;y-=l[n]*t},p(e,604800),p(o,86400),p(u,3600),p(f,60),p(i,1),y>0&&!n._since){var ut=[1,12,4.3482,7,24,60,60],k=i,d=1;for(v=i;v>=t;v--)s[v]&&(l[k]>=d&&(l[k]=0,y=1),y>0&&(l[v]++,y=0,k=v,d=1)),d*=ut[v]}if(h)for(v=t;v<=i;v++)h&&l[v]?h--:h||(l[v]=0);return l}})}(jQuery),function(n){function t(n,t){return n.toFixed(t.decimals)}n.fn.countTo=function(t){return t=t||{},n(this).each(function(){function c(){r+=l;h++;o(r);typeof i.onUpdate=="function"&&i.onUpdate.call(e,r);h>=s&&(f.removeData("countTo"),clearInterval(u.interval),r=i.to,typeof i.onComplete=="function"&&i.onComplete.call(e,r))}function o(n){var t=i.formatter.call(e,n,i);f.text(t)}var i=n.extend({},n.fn.countTo.defaults,{from:n(this).data("from"),to:n(this).data("to"),speed:n(this).data("speed"),refreshInterval:n(this).data("refresh-interval"),decimals:n(this).data("decimals")},t),s=Math.ceil(i.speed/i.refreshInterval),l=(i.to-i.from)/s,e=this,f=n(this),h=0,r=i.from,u=f.data("countTo")||{};f.data("countTo",u);u.interval&&clearInterval(u.interval);u.interval=setInterval(c,i.refreshInterval);o(r)})};n.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:t,onUpdate:null,onComplete:null}}(jQuery);!function(n,t,i,r){function u(t,i){this.settings=null;this.options=n.extend({},u.Defaults,i);this.$element=n(t);this.drag=n.extend({},o);this.state=n.extend({},s);this.e=n.extend({},h);this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._invalidated={};this._pipe=[];n.each(u.Plugins,n.proxy(function(n,t){this._plugins[n[0].toLowerCase()+n.slice(1)]=new t(this)},this));n.each(u.Pipe,n.proxy(function(t,i){this._pipe.push({filter:i.filter,run:n.proxy(i.run,this)})},this));this.setup();this.initialize()}function f(n){if(n.touches!==r)return{x:n.touches[0].pageX,y:n.touches[0].pageY};if(n.touches===r){if(n.pageX!==r)return{x:n.pageX,y:n.pageY};if(n.pageX===r)return{x:n.clientX,y:n.clientY}}}function e(n){var t,r,u=i.createElement("div"),f=n;for(t in f)if(r=f[t],"undefined"!=typeof u.style[r])return u=null,[r,t];return[!1]}function c(){return e(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function l(){return e(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function a(){return e(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function v(){return"ontouchstart"in t||!!navigator.msMaxTouchPoints}function y(){return t.navigator.msPointerEnabled}var o,s,h;o={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null};s={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1};h={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null};u.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"};u.Width={Default:"default",Inner:"inner",Outer:"outer"};u.Plugins={};u.Pipe=[{filter:["width","items","settings"],run:function(n){n.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var n=this._clones,t=this.$stage.children(".cloned");(t.length!==n.length||!this.settings.loop&&n.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){for(var n=this._clones,t=this._items,u=this.settings.loop?n.length-Math.max(2*this.settings.items,4):0,i=0,r=Math.abs(u/2);r>i;i++)u>0?(this.$stage.children().eq(t.length+n.length-1).remove(),n.pop(),this.$stage.children().eq(0).remove(),n.pop()):(n.push(n.length/2),this.$stage.append(t[n[n.length-1]].clone().addClass("cloned")),n.push(t.length-1-(n.length-1)/2),this.$stage.prepend(t[n[n.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var n,t,i,u=this.settings.rtl?1:-1,f=(this.width()/this.settings.items).toFixed(3),r=0;for(this._coordinates=[],t=0,i=this._clones.length+this._items.length;i>t;t++)n=this._mergers[this.relative(t)],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,r+=(this.settings.autoWidth?this._items[this.relative(t)].width()+this.settings.margin:f*n)*u,this._coordinates.push(r)}},{filter:["width","items","settings"],run:function(){var t,r,u=(this.width()/this.settings.items).toFixed(3),i={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(i),i={width:this.settings.autoWidth?"auto":u-this.settings.margin},i[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&n.grep(this._mergers,function(n){return n>1}).length>0)for(t=0,r=this._coordinates.length;r>t;t++)i.width=Math.abs(this._coordinates[t])-Math.abs(this._coordinates[t-1]||0)-this.settings.margin,this.$stage.children().eq(t).css(i);else this.$stage.children().css(i)}},{filter:["width","items","settings"],run:function(n){n.current&&this.reset(this.$stage.children().index(n.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var t,i,f=this.settings.rtl?1:-1,e=2*this.settings.stagePadding,r=this.coordinates(this.current())+e,o=r+this.width()*f,s=[],n=0,u=this._coordinates.length;u>n;n++)t=this._coordinates[n-1]||0,i=Math.abs(this._coordinates[n])+e*f,(this.op(t,"<=",r)&&this.op(t,">",o)||this.op(i,"<",r)&&this.op(i,">",o))&&s.push(n);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass);this.$stage.children(":eq("+s.join("), :eq(")+")").addClass(this.settings.activeClass);this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}];u.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var t,i,u;if(t=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r,u=this.$element.children(i).width(),t.length&&0>=u)return this.preloadAutoWidthImages(t),!1}this.$element.addClass("owl-loading");this.$stage=n("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">');this.$element.append(this.$stage.parent());this.replace(this.$element.children().not(this.$stage.parent()));this._width=this.$element.width();this.refresh();this.$element.removeClass("owl-loading").addClass("owl-loaded");this.eventsCall();this.internalEvents();this.addTriggerableEvents();this.trigger("initialized")};u.prototype.setup=function(){var u=this.viewport(),r=this.options.responsive,t=-1,i=null;r?(n.each(r,function(n){u>=n&&n>t&&(t=Number(n))}),i=n.extend({},this.options,r[t]),delete i.responsive,i.responsiveClass&&this.$element.attr("class",function(n,t){return t.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+t)):i=n.extend({},this.options);(null===this.settings||this._breakpoint!==t)&&(this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=t,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))};u.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center);this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1);this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)};u.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=n("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data};u.prototype.update=function(){for(var t=0,i=this._pipe.length,r=n.proxy(function(n){return this[n]},this._invalidated),u={};i>t;)(this._invalidated.all||n.grep(this._pipe[t].filter,r).length>0)&&this._pipe[t].run(u),t++;this._invalidated={}};u.prototype.width=function(n){switch(n=n||u.Width.Default){case u.Width.Inner:case u.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}};u.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh");this.setup();this.optionsLogic();this.$stage.addClass("owl-refresh");this.update();this.$stage.removeClass("owl-refresh");this.state.orientation=t.orientation;this.watchVisibility();this.trigger("refreshed")};u.prototype.eventsCall=function(){this.e._onDragStart=n.proxy(function(n){this.onDragStart(n)},this);this.e._onDragMove=n.proxy(function(n){this.onDragMove(n)},this);this.e._onDragEnd=n.proxy(function(n){this.onDragEnd(n)},this);this.e._onResize=n.proxy(function(n){this.onResize(n)},this);this.e._transitionEnd=n.proxy(function(n){this.transitionEnd(n)},this);this.e._preventClick=n.proxy(function(n){this.preventClick(n)},this)};u.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer);this.resizeTimer=t.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)};u.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1};u.prototype.eventsRouter=function(n){var t=n.type;"mousedown"===t||"touchstart"===t?this.onDragStart(n):"mousemove"===t||"touchmove"===t?this.onDragMove(n):"mouseup"===t||"touchend"===t?this.onDragEnd(n):"touchcancel"===t&&this.onDragEnd(n)};u.prototype.internalEvents=function(){var i=(v(),y());this.settings.mouseDrag?(this.$stage.on("mousedown",n.proxy(function(n){this.eventsRouter(n)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on");this.settings.touchDrag&&!i&&this.$stage.on("touchstart touchcancel",n.proxy(function(n){this.eventsRouter(n)},this));this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1);this.settings.responsive!==!1&&this.on(t,"resize",n.proxy(this.onThrottledResize,this))};u.prototype.onDragStart=function(r){var u,e,s,o;if(u=r.originalEvent||r||t.event,3===u.which||this.state.isTouch)return!1;if("mousedown"===u.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,e=f(u).x,s=f(u).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)o=this.getTransformProperty(),this.drag.offsetX=o,this.animate(o),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=e-this.drag.offsetX;this.drag.startY=s-this.drag.offsetY;this.drag.start=e-this.drag.startX;this.drag.targetEl=u.target||u.srcElement;this.drag.updatedX=this.drag.start;("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1);n(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",n.proxy(function(n){this.eventsRouter(n)},this))};u.prototype.onDragMove=function(n){var i,e,o,s,h,u;this.state.isTouch&&(this.state.isScrolling||(i=n.originalEvent||n||t.event,e=f(i).x,o=f(i).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=o-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(s=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),h=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),u=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,s+u),h+u)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==r?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))};u.prototype.onDragEnd=function(t){var u,f,r;if(this.state.isTouch){if("mouseup"===t.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime();u=this.drag.endTime-this.drag.startTime;f=Math.abs(this.drag.distance);(f>3||u>300)&&this.removeClick(this.drag.targetEl);r=this.closest(this.drag.updatedX);this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed);this.current(r);this.invalidate("position");this.update();this.settings.pullDrag||this.drag.updatedX!==this.coordinates(r)||this.transitionEnd();this.drag.distance=0;n(i).off(".owl.dragEvents")}};u.prototype.removeClick=function(i){this.drag.targetEl=i;n(i).on("click.preventClick",this.e._preventClick);t.setTimeout(function(){n(i).off("click.preventClick")},300)};u.prototype.preventClick=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;t.stopPropagation&&t.stopPropagation();n(t.target).off("click.preventClick")};u.prototype.getTransformProperty=function(){var n,i;return n=t.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),n=n.replace(/matrix(3d)?\(|\)/g,"").split(","),i=16===n.length,i!==!0?n[4]:n[12]};u.prototype.closest=function(t){var i=-1,u=30,f=this.width(),r=this.coordinates();return this.settings.freeDrag||n.each(r,n.proxy(function(n,e){return t>e-u&&e+u>t?i=n:this.op(t,"<",e)&&this.op(t,">",r[n+1]||e-f)&&(i="left"===this.state.direction?n+1:n),-1===i},this)),this.settings.loop||(this.op(t,">",r[this.minimum()])?i=t=this.minimum():this.op(t,"<",r[this.maximum()])&&(i=t=this.maximum())),i};u.prototype.animate=function(t){this.trigger("translate");this.state.inMotion=this.speed()>0;this.support3d?this.$stage.css({transform:"translate3d("+t+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:t+"px"}):this.$stage.animate({left:t},this.speed()/1e3,this.settings.fallbackEasing,n.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))};u.prototype.current=function(n){if(n===r)return this._current;if(0===this._items.length)return r;if(n=this.normalize(n),this._current!==n){var t=this.trigger("change",{property:{name:"position",value:n}});t.data!==r&&(n=this.normalize(t.data));this._current=n;this.invalidate("position");this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current};u.prototype.invalidate=function(n){this._invalidated[n]=!0};u.prototype.reset=function(n){n=this.normalize(n);n!==r&&(this._speed=0,this._current=n,this.suppress(["translate","translated"]),this.animate(this.coordinates(n)),this.release(["translate","translated"]))};u.prototype.normalize=function(t,i){var u=i?this._items.length:this._items.length+this._clones.length;return!n.isNumeric(t)||1>u?r:t=this._clones.length?(t%u+u)%u:Math.max(this.minimum(i),Math.min(this.maximum(i),t))};u.prototype.relative=function(n){return n=this.normalize(n),n-=this._clones.length/2,this.normalize(n,!0)};u.prototype.maximum=function(n){var i,r,u,f=0,t=this.settings;if(n)return this._items.length-1;if(!t.loop&&t.center)i=this._items.length-1;else if(t.loop||t.center)if(t.loop||t.center)i=this._items.length+t.items;else{if(!t.autoWidth&&!t.merge)throw"Can not detect maximum absolute position.";for(revert=t.rtl?1:-1,r=this.$stage.width()-this.$element.width();(u=this.coordinates(f))&&!(u*revert>=r);)i=++f}else i=this._items.length-t.items;return i};u.prototype.minimum=function(n){return n?0:this._clones.length/2};u.prototype.items=function(n){return n===r?this._items.slice():(n=this.normalize(n,!0),this._items[n])};u.prototype.mergers=function(n){return n===r?this._mergers.slice():(n=this.normalize(n,!0),this._mergers[n])};u.prototype.clones=function(t){var i=this._clones.length/2,f=i+this._items.length,u=function(n){return n%2==0?f+n/2:i-(n+1)/2};return t===r?n.map(this._clones,function(n,t){return u(t)}):n.map(this._clones,function(n,i){return n===t?u(i):null})};u.prototype.speed=function(n){return n!==r&&(this._speed=n),this._speed};u.prototype.coordinates=function(t){var i=null;return t===r?n.map(this._coordinates,n.proxy(function(n,t){return this.coordinates(t)},this)):(this.settings.center?(i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):i=this._coordinates[t-1]||0,i)};u.prototype.duration=function(n,t,i){return Math.min(Math.max(Math.abs(t-n),1),6)*Math.abs(i||this.settings.smartSpeed)};u.prototype.to=function(i,r){if(this.settings.loop){var f=i-this.relative(this.current()),u=this.current(),e=this.current(),o=this.current()+f,s=0>e-o?!0:!1,h=this._clones.length+this._items.length;o<this.settings.items&&s===!1?(u=e+this._items.length,this.reset(u)):o>=h-this.settings.items&&s===!0&&(u=e-this._items.length,this.reset(u));t.clearTimeout(this.e._goToLoop);this.e._goToLoop=t.setTimeout(n.proxy(function(){this.speed(this.duration(this.current(),u+f,r));this.current(u+f);this.update()},this),30)}else this.speed(this.duration(this.current(),i,r)),this.current(i),this.update()};u.prototype.next=function(n){n=n||!1;this.to(this.relative(this.current())+1,n)};u.prototype.prev=function(n){n=n||!1;this.to(this.relative(this.current())-1,n)};u.prototype.transitionEnd=function(n){return n!==r&&(n.stopPropagation(),(n.target||n.srcElement||n.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))};u.prototype.viewport=function(){var r;if(this.options.responsiveBaseElement!==t)r=n(this.options.responsiveBaseElement).width();else if(t.innerWidth)r=t.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";r=i.documentElement.clientWidth}return r};u.prototype.replace=function(t){this.$stage.empty();this._items=[];t&&(t=t instanceof jQuery?t:n(t));this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector));t.filter(function(){return 1===this.nodeType}).each(n.proxy(function(n,t){t=this.prepare(t);this.$stage.append(t);this._items.push(t);this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this));this.reset(n.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate("items")};u.prototype.add=function(n,t){t=t===r?this._items.length:this.normalize(t,!0);this.trigger("add",{content:n,position:t});0===this._items.length||t===this._items.length?(this.$stage.append(n),this._items.push(n),this._mergers.push(1*n.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[t].before(n),this._items.splice(t,0,n),this._mergers.splice(t,0,1*n.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1));this.invalidate("items");this.trigger("added",{content:n,position:t})};u.prototype.remove=function(n){n=this.normalize(n,!0);n!==r&&(this.trigger("remove",{content:this._items[n],position:n}),this._items[n].remove(),this._items.splice(n,1),this._mergers.splice(n,1),this.invalidate("items"),this.trigger("removed",{content:null,position:n}))};u.prototype.addTriggerableEvents=function(){var t=n.proxy(function(t,i){return n.proxy(function(n){n.relatedTarget!==this&&(this.suppress([i]),t.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);n.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},n.proxy(function(n,i){this.$element.on(n+".owl.carousel",t(i,n+".owl.carousel"))},this))};u.prototype.watchVisibility=function(){function i(n){return n.offsetWidth>0&&n.offsetHeight>0}function r(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),t.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),t.clearInterval(this.e._checkVisibile),this.e._checkVisibile=t.setInterval(n.proxy(r,this),500))};u.prototype.preloadAutoWidthImages=function(t){var u,f,i,r;u=0;f=this;t.each(function(e,o){i=n(o);r=new Image;r.onload=function(){u++;i.attr("src",r.src);i.css("opacity",1);u>=t.length&&(f.state.imagesLoaded=!0,f.initialize())};r.src=i.attr("src")||i.attr("data-src")||i.attr("data-src-retina")})};u.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass);this.settings.responsive!==!1&&n(t).off("resize.owl.carousel");this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var r in this._plugins)this._plugins[r].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),n(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1}));this.$element.off(".owl");this.$stage.children(".cloned").remove();this.e=null;this.$element.removeData("owlCarousel");this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$stage.unwrap()};u.prototype.op=function(n,t,i){var r=this.settings.rtl;switch(t){case"<":return r?n>i:i>n;case">":return r?i>n:n>i;case">=":return r?i>=n:n>=i;case"<=":return r?n>=i:i>=n}};u.prototype.on=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)};u.prototype.off=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)};u.prototype.trigger=function(t,i,r){var e={item:{count:this._items.length,index:this.current()}},f=n.camelCase(n.grep(["on",t,r],function(n){return n}).join("-").toLowerCase()),u=n.Event([t,"owl",r||"carousel"].join(".").toLowerCase(),n.extend({relatedTarget:this},e,i));return this._supress[t]||(n.each(this._plugins,function(n,t){t.onTrigger&&t.onTrigger(u)}),this.$element.trigger(u),this.settings&&"function"==typeof this.settings[f]&&this.settings[f].apply(this,u)),u};u.prototype.suppress=function(t){n.each(t,n.proxy(function(n,t){this._supress[t]=!0},this))};u.prototype.release=function(t){n.each(t,n.proxy(function(n,t){delete this._supress[t]},this))};u.prototype.browserSupport=function(){if(this.support3d=a(),this.support3d){this.transformVendor=l();this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][c()];this.vendorName=this.transformVendor.replace(/Transform/i,"");this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=t.orientation};n.fn.owlCarousel=function(t){return this.each(function(){n(this).data("owlCarousel")||n(this).data("owlCarousel",new u(this,t))})};n.fn.owlCarousel.Constructor=u}(window.Zepto||window.jQuery,window,document),function(n,t){var i=function(t){this._core=t;this._loaded=[];this._handlers={"initialized.owl.carousel change.owl.carousel":n.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var i=this._core.settings,r=i.center&&Math.ceil(i.items/2)||i.items,u=i.center&&-1*r||0,f=(t.property&&t.property.value||this._core.current())+u,e=this._core.clones().length,o=n.proxy(function(n,t){this.load(t)},this);u++<r;)this.load(e/2+this._core.relative(f)),e&&n.each(this._core.clones(this._core.relative(f++)),o)},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1};i.prototype.load=function(i){var r=this._core.$stage.children().eq(i),u=r&&r.find(".owl-lazy");!u||n.inArray(r.get(0),this._loaded)>-1||(u.each(n.proxy(function(i,r){var e,u=n(r),f=t.devicePixelRatio>1&&u.attr("data-src-retina")||u.attr("data-src");this._core.trigger("load",{element:u,url:f},"lazy");u.is("img")?u.one("load.owl.lazy",n.proxy(function(){u.css("opacity",1);this._core.trigger("loaded",{element:u,url:f},"lazy")},this)).attr("src",f):(e=new Image,e.onload=n.proxy(function(){u.css({"background-image":"url("+f+")",opacity:"1"});this._core.trigger("loaded",{element:u,url:f},"lazy")},this),e.src=f)},this)),this._loaded.push(r.get(0)))};i.prototype.destroy=function(){var n,t;for(n in this.handlers)this._core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(n){var t=function(i){this._core=i;this._handlers={"initialized.owl.carousel":n.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":n.proxy(function(n){this._core.settings.autoHeight&&"position"==n.property.name&&this.update()},this),"loaded.owl.lazy":n.proxy(function(n){this._core.settings.autoHeight&&n.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this._core.$element.on(this._handlers)};t.Defaults={autoHeight:!1,autoHeightClass:"owl-height"};t.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)};t.prototype.destroy=function(){var n,t;for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.AutoHeight=t}(window.Zepto||window.jQuery,window,document),function(n,t,i){var r=function(t){this._core=t;this._videos={};this._playing=null;this._fullscreen=!1;this._handlers={"resize.owl.carousel":n.proxy(function(n){this._core.settings.video&&!this.isInFullScreen()&&n.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":n.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":n.proxy(function(t){var i=n(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,n(t.content)))},this)};this._core.options=n.extend({},r.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on("click.owl.video",".owl-video-play-icon",n.proxy(function(n){this.play(n)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1};r.prototype.fetch=function(n,t){var u=n.attr("data-vimeo-id")?"vimeo":"youtube",i=n.attr("data-vimeo-id")||n.attr("data-youtube-id"),f=n.attr("data-width")||this._core.settings.videoWidth,e=n.attr("data-height")||this._core.settings.videoHeight,r=n.attr("href");if(!r)throw new Error("Missing video URL.");if(i=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),i[3].indexOf("youtu")>-1)u="youtube";else{if(!(i[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");u="vimeo"}i=i[6];this._videos[r]={type:u,id:i,width:f,height:e};t.attr("data-video",r);this.thumbnail(n,this._videos[r])};r.prototype.thumbnail=function(t,i){var o,s,r,c=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",u=t.find("img"),f="src",h="",l=this._core.settings,e=function(n){s='<div class="owl-video-play-icon"><\/div>';o=l.lazyLoad?'<div class="owl-video-tn '+h+'" '+f+'="'+n+'"><\/div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+n+')"><\/div>';t.after(o);t.after(s)};return t.wrap('<div class="owl-video-wrapper"'+c+"><\/div>"),this._core.settings.lazyLoad&&(f="data-src",h="owl-lazy"),u.length?(e(u.attr(f)),u.remove(),!1):void("youtube"===i.type?(r="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",e(r)):"vimeo"===i.type&&n.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){r=n[0].thumbnail_large;e(r)}}))};r.prototype.stop=function(){this._core.trigger("stop",null,"video");this._playing.find(".owl-video-frame").remove();this._playing.removeClass("owl-video-playing");this._playing=null};r.prototype.play=function(t){this._core.trigger("play",null,"video");this._playing&&this.stop();var r,o,s=n(t.target||t.srcElement),u=s.closest("."+this._core.settings.itemClass),i=this._videos[u.attr("data-video")],f=i.width||"100%",e=i.height||this._core.$stage.height();"youtube"===i.type?r='<iframe width="'+f+'" height="'+e+'" src="http://www.youtube.com/embed/'+i.id+"?autoplay=1&v="+i.id+'" frameborder="0" allowfullscreen><\/iframe>':"vimeo"===i.type&&(r='<iframe src="http://player.vimeo.com/video/'+i.id+'?autoplay=1" width="'+f+'" height="'+e+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>');u.addClass("owl-video-playing");this._playing=u;o=n('<div style="height:'+e+"px; width:"+f+'px" class="owl-video-frame">'+r+"<\/div>");s.after(o)};r.prototype.isInFullScreen=function(){var r=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return r&&n(r).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),r&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==t.orientation?(this._core.state.orientation=t.orientation,!1):!0};r.prototype.destroy=function(){var n,t;this._core.$element.off("click.owl.video");for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(n,t,i,r){var u=function(t){this.core=t;this.core.options=n.extend({},u.Defaults,this.core.options);this.swapping=!0;this.previous=r;this.next=r;this.handlers={"change.owl.carousel":n.proxy(function(n){"position"==n.property.name&&(this.previous=this.core.current(),this.next=n.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":n.proxy(function(n){this.swapping="translated"==n.type},this),"translate.owl.carousel":n.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)};this.core.$element.on(this.handlers)};u.Defaults={animateOut:!1,animateIn:!1};u.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var t,i=n.proxy(this.clear,this),f=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,u=this.core.settings.animateOut;this.core.current()!==this.previous&&(u&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),f.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)),r&&e.addClass("animated owl-animated-in").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i))}};u.prototype.clear=function(t){n(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.transitionEnd()};u.prototype.destroy=function(){var n,t;for(n in this.handlers)this.core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Animate=u}(window.Zepto||window.jQuery,window,document),function(n,t,i){var r=function(t){this.core=t;this.core.options=n.extend({},r.Defaults,this.core.options);this.handlers={"translated.owl.carousel refreshed.owl.carousel":n.proxy(function(){this.autoplay()},this),"play.owl.autoplay":n.proxy(function(n,t,i){this.play(t,i)},this),"stop.owl.autoplay":n.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)};this.core.$element.on(this.handlers)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1};r.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(t.clearInterval(this.interval),this.interval=t.setInterval(n.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):t.clearInterval(this.interval)};r.prototype.play=function(){if(i.hidden!==!0&&!this.core.state.isTouch&&!this.core.state.isScrolling&&!this.core.state.isSwiping&&!this.core.state.inMotion)return this.core.settings.autoplay===!1?void t.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)};r.prototype.stop=function(){t.clearInterval(this.interval)};r.prototype.pause=function(){t.clearInterval(this.interval)};r.prototype.destroy=function(){var n,i;t.clearInterval(this.interval);for(n in this.handlers)this.core.$element.off(n,this.handlers[n]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)};n.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(n){"use strict";var t=function(i){this._core=i;this._initialized=!1;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={"prepared.owl.carousel":n.proxy(function(t){this._core.settings.dotsData&&this._templates.push(n(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":n.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,n(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":n.proxy(function(n){this._core.settings.dotsData&&this._templates.splice(n.position,1)},this),"change.owl.carousel":n.proxy(function(n){if("position"==n.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var r=this._core.current(),t=this._core.maximum(),i=this._core.minimum();n.data=n.property.value>t?r>=t?i:t:n.property.value<i?t:n.property.value}},this),"changed.owl.carousel":n.proxy(function(n){"position"==n.property.name&&this.draw()},this),"refreshed.owl.carousel":n.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0);this._core.trigger("refresh",null,"navigation");this.update();this.draw();this._core.trigger("refreshed",null,"navigation")},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this.$element.on(this._handlers)};t.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"};t.prototype.initialize=function(){var i,r,t=this._core.settings;t.dotsData||(this._templates=[n("<div>").addClass(t.dotClass).append(n("<span>")).prop("outerHTML")]);t.navContainer&&t.dotsContainer||(this._controls.$container=n("<div>").addClass(t.controlsClass).appendTo(this.$element));this._controls.$indicators=t.dotsContainer?n(t.dotsContainer):n("<div>").hide().addClass(t.dotsClass).appendTo(this._controls.$container);this._controls.$indicators.on("click","div",n.proxy(function(i){var r=n(i.target).parent().is(this._controls.$indicators)?n(i.target).index():n(i.target).parent().index();i.preventDefault();this.to(r,t.dotsSpeed)},this));i=t.navContainer?n(t.navContainer):n("<div>").addClass(t.navContainerClass).prependTo(this._controls.$container);this._controls.$next=n("<"+t.navElement+">");this._controls.$previous=this._controls.$next.clone();this._controls.$previous.addClass(t.navClass[0]).html(t.navText[0]).hide().prependTo(i).on("click",n.proxy(function(){this.prev(t.navSpeed)},this));this._controls.$next.addClass(t.navClass[1]).html(t.navText[1]).hide().appendTo(i).on("click",n.proxy(function(){this.next(t.navSpeed)},this));for(r in this._overrides)this._core[r]=n.proxy(this[r],this)};t.prototype.destroy=function(){var n,r,t,i;for(n in this._handlers)this.$element.off(n,this._handlers[n]);for(r in this._controls)this._controls[r].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};t.prototype.update=function(){var t,i,u,n=this._core.settings,r=this._core.clones().length/2,e=r+this._core.items().length,f=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=r,i=0,u=0;e>t;t++)(i>=f||0===i)&&(this._pages.push({start:t-r,end:t-r+f-1}),i=0,++u),i+=this._core.mergers(this._core.relative(t))};t.prototype.draw=function(){var i,r,u="",t=this._core.settings,f=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!t.nav||t.loop||t.navRewind||(this._controls.$previous.toggleClass("disabled",0>=f),this._controls.$next.toggleClass("disabled",f>=this._core.maximum())),this._controls.$previous.toggle(t.nav),this._controls.$next.toggle(t.nav),t.dots){if(i=this._pages.length-this._controls.$indicators.children().length,t.dotData&&0!==i){for(r=0;r<this._controls.$indicators.children().length;r++)u+=this._templates[this._core.relative(r)];this._controls.$indicators.html(u)}else i>0?(u=new Array(i+1).join(this._templates[0]),this._controls.$indicators.append(u)):0>i&&this._controls.$indicators.children().slice(i).remove();this._controls.$indicators.find(".active").removeClass("active");this._controls.$indicators.children().eq(n.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(t.dots)};t.prototype.onTrigger=function(t){var i=this._core.settings;t.page={index:n.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items)}};t.prototype.current=function(){var t=this._core.relative(this._core.current());return n.grep(this._pages,function(n){return n.start<=t&&n.end>=t}).pop()};t.prototype.getPosition=function(t){var i,r,u=this._core.settings;return"page"==u.slideBy?(i=n.inArray(this.current(),this._pages),r=this._pages.length,t?++i:--i,i=this._pages[(i%r+r)%r].start):(i=this._core.relative(this._core.current()),r=this._core.items().length,t?i+=u.slideBy:i-=u.slideBy),i};t.prototype.next=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)};t.prototype.prev=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)};t.prototype.to=function(t,i,r){var u;r?n.proxy(this._overrides.to,this._core)(t,i):(u=this._pages.length,n.proxy(this._overrides.to,this._core)(this._pages[(t%u+u)%u].start,i))};n.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,window,document),function(n,t){"use strict";var i=function(r){this._core=r;this._hashes={};this.$element=this._core.$element;this._handlers={"initialized.owl.carousel":n.proxy(function(){"URLHash"==this._core.settings.startPosition&&n(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){var i=n(t.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[i]=t.content},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this.$element.on(this._handlers);n(t).on("hashchange.owl.navigation",n.proxy(function(){var n=t.location.hash.substring(1),i=this._core.$stage.children(),r=this._hashes[n]&&i.index(this._hashes[n])||0;return n?void this._core.to(r,!1,!0):!1},this))};i.Defaults={URLhashListener:!1};i.prototype.destroy=function(){var i,r;n(t).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))"function"!=typeof this[r]&&(this[r]=null)};n.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document); /*! Morphext - v2.3.2 - 2014-10-10 */ !function(n){"use strict";function i(t,i){this.element=n(t);this.settings=n.extend({},r,i);this._defaults=r;this._init()}var t="Morphext",r={animation:"bounceIn",separator:",",speed:2e3,complete:n.noop};i.prototype={_init:function(){var t=this;this.phrases=[];n.each(this.element.text().split(this.settings.separator),function(n,i){t.phrases.push(i.trim())});this.index=-1;this.animate();this.start()},animate:function(){this.index+1===this.phrases.length&&(this.index=-1);++this.index;this.element[0].innerHTML='<span class="animated '+this.settings.animation+'">'+this.phrases[this.index]+"<\/span>";n.isFunction(this.settings.complete)&&this.settings.complete.call(this)},start:function(){var n=this;this._interval=setInterval(function(){n.animate()},this.settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}};n.fn[t]=function(r){return this.each(function(){n.data(this,"plugin_"+t)||n.data(this,"plugin_"+t,new i(this,r))})}}(jQuery); /*! * Isotope PACKAGED v2.2.0 * * Licensed GPLv3 for open source use * or Isotope Commercial License for commercial use * * http://isotope.metafizzy.co * Copyright 2015 Metafizzy */ (function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,s;if("string"==typeof f){for(var c=r.call(arguments,1),o=0,l=this.length;l>o;o++)if(h=this[o],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,c),void 0!==s)return s}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):"object"==typeof exports?t(require("jquery")):t(n.jQuery)})(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});r={bind:u,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:n.eventie=r}(window),function(){function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if(n instanceof RegExp){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,r=this.getListenersAsObject(n),f="object"==typeof t;for(i in r)r.hasOwnProperty(i)&&-1===u(r[i],t)&&r[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,r=this.getListenersAsObject(n);for(i in r)r.hasOwnProperty(i)&&(f=u(r[i],t),-1!==f&&r[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if(n instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:r.EventEmitter=t}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function u(){}function f(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)r=t[n],i[r]=0;return i}function r(r){function c(){var f,t,c,l;h||(h=!0,f=n.getComputedStyle,(o=function(){var n=f?function(n){return f(n,null)}:function(n){return n.currentStyle};return function(t){var i=n(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),u=r("boxSizing"))&&(t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[u]="border-box",c=document.body||document.documentElement,c.appendChild(t),l=o(t),s=200===i(l.width),c.removeChild(t)))}function l(n){var e,r,v,h,y,p;if(c(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(e=o(n),"none"===e.display)return f();r={};r.width=n.offsetWidth;r.height=n.offsetHeight;for(var tt=r.isBorderBox=!(!u||!e[u]||"border-box"!==e[u]),l=0,it=t.length;it>l;l++)v=t[l],h=e[v],h=a(n,h),y=parseFloat(h),r[v]=isNaN(y)?0:y;var w=r.paddingLeft+r.paddingRight,b=r.paddingTop+r.paddingBottom,rt=r.marginLeft+r.marginRight,ut=r.marginTop+r.marginBottom,k=r.borderLeftWidth+r.borderRightWidth,d=r.borderTopWidth+r.borderBottomWidth,g=tt&&s,nt=i(e.width);return nt!==!1&&(r.width=nt+(g?0:w+k)),p=i(e.height),p!==!1&&(r.height=p+(g?0:b+d)),r.innerWidth=r.width-(w+k),r.innerHeight=r.height-(b+d),r.outerWidth=r.width+rt,r.outerHeight=r.height+ut,r}}function a(t,i){if(n.getComputedStyle||-1===i.indexOf("%"))return i;var r=t.style,e=r.left,u=t.runtimeStyle,f=u&&u.left;return f&&(u.left=t.currentStyle.left),r.left=i,i=r.pixelLeft,r.left=e,f&&(u.left=f),i}var o,u,s,h=!1;return l}var e="undefined"==typeof console?u:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):"object"==typeof exports?module.exports=r(require("desandro-get-style-property")):n.getSize=r(n.getStyleProperty)}(window),function(n){function t(n){"function"==typeof n&&(t.isReady?n():f.push(n))}function r(n){var r="readystatechange"===n.type&&"complete"!==i.readyState;t.isReady||r||e()}function e(){var n,i,r;for(t.isReady=!0,n=0,i=f.length;i>n;n++)r=f[n],r()}function u(u){return"complete"===i.readyState?e():(u.bind(i,"DOMContentLoaded",r),u.bind(i,"readystatechange",r),u.bind(n,"load",r)),t}var i=n.document,f=[];t.isReady=!1;"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],u):"object"==typeof exports?module.exports=u(require("eventie")):n.docReady=u(n.eventie)}(window),function(n){function i(n,t){return n[u](t)}function r(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function o(n,t){r(n);for(var u=n.parentNode.querySelectorAll(t),i=0,f=u.length;f>i;i++)if(u[i]===n)return!0;return!1}function s(n,t){return r(n),i(n,t)}var t,u=function(){var u,i;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],t=0,f=r.length;f>t;t++)if(u=r[t],i=u+"MatchesSelector",n[i])return i}(),f,e;u?(f=document.createElement("div"),e=i(f,"div"),t=e?i:s):t=o;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(n,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.docReady,n.matchesSelector)}(window,function(n,t,i){var r={},f,u;return r.extend=function(n,t){for(var i in t)n[i]=t[i];return n},r.modulo=function(n,t){return(n%t+t)%t},f=Object.prototype.toString,r.isArray=function(n){return"[object Array]"==f.call(n)},r.makeArray=function(n){var t=[],i,u;if(r.isArray(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,u=n.length;u>i;i++)t.push(n[i]);else t.push(n);return t},r.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},r.removeFrom=function(n,t){var i=r.indexOf(n,t);-1!=i&&n.splice(i,1)},r.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1==n.nodeType&&"string"==typeof n.nodeName},r.setText=function(){function t(t,i){n=n||(void 0!==document.documentElement.textContent?"textContent":"innerText");t[n]=i}var n;return t}(),r.getParent=function(n,t){for(;n!=document.body;)if(n=n.parentNode,i(n,t))return n},r.getQueryElement=function(n){return"string"==typeof n?document.querySelector(n):n},r.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.filterFindElements=function(n,t){var u;n=r.makeArray(n);for(var f=[],e=0,h=n.length;h>e;e++)if(u=n[e],r.isElement(u))if(t){i(u,t)&&f.push(u);for(var s=u.querySelectorAll(t),o=0,c=s.length;c>o;o++)f.push(s[o])}else f.push(u);return f},r.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t);f=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,f);delete n[r]},i||100)}},r.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},u=n.console,r.htmlInit=function(i,f){t(function(){for(var a,t,o,v,s,h=r.toDashed(f),c=document.querySelectorAll(".js-"+h),l="data-"+h+"-options",e=0,y=c.length;y>e;e++){t=c[e];o=t.getAttribute(l);try{a=o&&JSON.parse(o)}catch(p){u&&u.error("Error parsing "+l+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new i(t,a);s=n.jQuery;s&&s.data(t,f,v)}})},r}),function(n,t){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,r,u,f){return t(n,i,r,u,f)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=t(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(n,t,i,r,u){function p(n){for(var t in n)return!1;return t=null,!0}function f(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}var s=n.getComputedStyle,w=s?function(n){return s(n,null)}:function(n){return n.currentStyle},e=r("transition"),o=r("transform"),b=e&&o,k=!!r("perspective"),h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[e],c=["transform","transition","transitionDuration","transitionProperty"],d=function(){for(var n,t,u={},i=0,f=c.length;f>i;i++)n=c[i],t=r(n),t&&t!==n&&(u[n]=t);return u}(),l,a,v,y;return u.extend(f.prototype,t.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},f.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=d[t]||t,r[i]=n[t]},f.prototype.getPosition=function(){var r=w(this.element),u=this.layout.options,f=u.isOriginLeft,e=u.isOriginTop,n=parseInt(r[f?"left":"right"],10),t=parseInt(r[e?"top":"bottom"],10),i;n=isNaN(n)?0:n;t=isNaN(t)?0:t;i=this.layout.size;n-=f?i.paddingLeft:i.paddingRight;t-=e?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},f.prototype.layoutPosition=function(){var i=this.layout.size,n=this.layout.options,t={},f=n.isOriginLeft?"paddingLeft":"paddingRight",e=n.isOriginLeft?"left":"right",o=n.isOriginLeft?"right":"left",r=this.position.x+i[f];r=n.percentPosition&&!n.isHorizontal?100*(r/i.width)+"%":r+"px";t[e]=r;t[o]="";var s=n.isOriginTop?"paddingTop":"paddingBottom",h=n.isOriginTop?"top":"bottom",c=n.isOriginTop?"bottom":"top",u=this.position.y+i[s];u=n.percentPosition&&n.isHorizontal?100*(u/i.height)+"%":u+"px";t[h]=u;t[c]="";this.css(t);this.emitEvent("layout",[this])},l=k?function(n,t){return"translate3d("+n+"px, "+t+"px, 0)"}:function(n,t){return"translate("+n+"px, "+t+"px)"},f.prototype._transitionTo=function(n,t){this.getPosition();var e=this.position.x,o=this.position.y,s=parseInt(n,10),h=parseInt(t,10),c=s===this.position.x&&h===this.position.y;if(this.setPosition(n,t),c&&!this.isTransitioning)return this.layoutPosition(),void 0;var i=n-e,r=t-o,u={},f=this.layout.options;i=f.isOriginLeft?i:-i;r=f.isOriginTop?r:-r;u.transform=l(i,r);this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},f.prototype.moveTo=b?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},f.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},f.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(n),void 0;i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},a=o&&u.toDashed(o)+",opacity",f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:a,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(h,this,!1))},f.prototype.transition=f.prototype[e?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},f.prototype.onotransitionend=function(n){this.ontransitionend(n)},v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},f.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=v[n.propertyName]||n.propertyName,(delete t.ingProperties[i],p(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},f.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(h,this,!1);this.isTransitioning=!1},f.prototype._removeStyles=function(n){var t={};for(var i in n)t[i]="";this.css(t)},y={transitionProperty:"",transitionDuration:""},f.prototype.removeTransitionStyles=function(){this.css(y)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},f.prototype.remove=function(){if(!e||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var n=this;this.once("transitionEnd",function(){n.removeElem()});this.hide()},f.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},f.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(n,t){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f,e){return t(n,i,r,u,f,e)}):"object"==typeof exports?module.exports=t(n,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.eventie,n.EventEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(n,t,i,r,u,f){function e(n,t){var i=u.getQueryElement(n),r;if(!i)return h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n)),void 0;this.element=i;o&&(this.$element=o(this.element));this.options=u.extend({},this.constructor.defaults);this.option(t);r=++l;this.element.outlayerGUID=r;s[r]=this;this._create();this.options.isInitLayout&&this.layout()}var h=n.console,o=n.jQuery,c=function(){},l=0,s={};return e.namespace="outlayer",e.Item=f,e.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},u.extend(e.prototype,i.prototype),e.prototype.option=function(n){u.extend(this.options,n)},e.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);u.extend(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},e.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},e.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;o>t;t++)u=i[t],f=new e(u,this),r.push(f);return r},e.prototype._filterFindItemElements=function(n){return u.filterFindElements(n,this.options.itemSelector)},e.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},e.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},e.prototype._init=e.prototype.layout,e.prototype._resetLayout=function(){this.getSize()},e.prototype.getSize=function(){this.size=r(this.element)},e.prototype._getMeasurement=function(n,t){var f,i=this.options[n];i?("string"==typeof i?f=this.element.querySelector(i):u.isElement(i)&&(f=i),this[n]=f?r(f)[t]:i):this[n]=0},e.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},e.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;u>t;t++)i=n[t],i.isIgnored||r.push(i);return r},e.prototype._layoutItems=function(n,t){var i,r;if(this._emitCompleteOnItems("layout",n),n&&n.length){for(var f=[],u=0,e=n.length;e>u;u++)i=n[u],r=this._getItemLayoutPosition(i),r.item=i,r.isInstant=t||i.isLayoutInstant,f.push(r);this._processLayoutQueue(f)}},e.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},e.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},e.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},e.prototype._postLayout=function(){this.resizeContainer()},e.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},e.prototype._getContainerSize=c,e.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},e.prototype._emitCompleteOnItems=function(n,t){function r(){s.emitEvent(n+"Complete",[t])}function o(){f++;f===u&&r()}var s=this,u=t.length,e;if(!t||!u)return r(),void 0;for(var f=0,i=0,h=t.length;h>i;i++){e=t[i];e.once(n,o)}},e.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},e.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},e.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},e.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],u.removeFrom(this.stamps,i),this.unignore(i)},e.prototype._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u.makeArray(n))},e.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},e.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},e.prototype._manageStamp=c,e.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,u=r(n);return{left:t.left-i.left-u.marginLeft,top:t.top-i.top-u.marginTop,right:i.right-t.right-u.marginRight,bottom:i.bottom-t.bottom-u.marginBottom}},e.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},e.prototype.bindResize=function(){this.isResizeBound||(t.bind(n,"resize",this),this.isResizeBound=!0)},e.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(n,"resize",this);this.isResizeBound=!1},e.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},e.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},e.prototype.needsResizeLayout=function(){var n=r(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},e.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},e.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},e.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},e.prototype.reveal=function(n){var i,t,r;for(this._emitCompleteOnItems("reveal",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.reveal()},e.prototype.hide=function(n){var i,t,r;for(this._emitCompleteOnItems("hide",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.hide()},e.prototype.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},e.prototype.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},e.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;r>t;t++)if(i=this.items[t],i.element===n)return i},e.prototype.getItems=function(n){var f,i;n=u.makeArray(n);for(var r=[],t=0,e=n.length;e>t;t++)f=n[t],i=this.getItem(f),i&&r.push(i);return r},e.prototype.remove=function(n){var t=this.getItems(n),i,f,r;if(this._emitCompleteOnItems("remove",t),t&&t.length)for(i=0,f=t.length;f>i;i++)r=t[i],r.remove(),u.removeFrom(this.items,r)},e.prototype.destroy=function(){var t=this.element.style,n,i,r,u;for(t.height="",t.position="",t.width="",n=0,i=this.items.length;i>n;n++)r=this.items[n],r.destroy();this.unbindResize();u=this.element.outlayerGUID;delete s[u];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=u.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){function i(){e.apply(this,arguments)}return Object.create?i.prototype=Object.create(e.prototype):u.extend(i.prototype,e.prototype),i.prototype.constructor=i,i.defaults=u.extend({},e.defaults),u.extend(i.defaults,t),i.prototype.settings={},i.namespace=n,i.data=e.data,i.Item=function(){f.apply(this,arguments)},i.Item.prototype=new f,u.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},e.Item=f,e}),function(n,t){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):"object"==typeof exports?module.exports=t(require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.Item=t(n.Outlayer))}(window,function(n){function t(){n.Item.apply(this,arguments)}t.prototype=new n.Item;t.prototype._create=function(){this.id=this.layout.itemGUID++;n.Item.prototype._create.call(this);this.sortData={}};t.prototype.updateSortData=function(){var t,i,n,r;if(!this.isIgnored){this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();t=this.layout.options.getSortData;i=this.layout._sorters;for(n in t)r=i[n],this.sortData[n]=r(this.element,this)}};var i=t.prototype.destroy;return t.prototype.destroy=function(){i.apply(this,arguments);this.css({display:""})},t}),function(n,t){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof exports?module.exports=t(require("get-size"),require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.LayoutMode=t(n.getSize,n.Outlayer))}(window,function(n,t){function i(n){this.isotope=n;n&&(this.options=n.options[this.namespace],this.element=n.element,this.items=n.filteredItems,this.size=n.size)}return function(){function f(n){return function(){return t.prototype[n].apply(this.isotope,arguments)}}for(var r,u=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,e=u.length;e>n;n++)r=u[n],i.prototype[r]=f(r)}(),i.prototype.needsVerticalResizeLayout=function(){var t=n(this.isotope.element),i=this.isotope.size&&t;return i&&t.innerHeight!=this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(n,t){var i=n+t,u="outer"+t,r;(this._getMeasurement(i,u),this[i])||(r=this.getFirstItemSize(),this[i]=r&&r[u]||this.isotope.size["inner"+t])},i.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&n(t.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},i.modes={},i.create=function(n,t){function r(){i.apply(this,arguments)}return r.prototype=new i,t&&(r.options=t),r.prototype.namespace=n,i.modes[n]=r,r},i}),function(n,t){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],t):"object"==typeof exports?module.exports=t(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):n.Masonry=t(n.Outlayer,n.getSize,n.fizzyUIUtils)}(window,function(n,t,i){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){var n,i;(this.getContainerWidth(),this.columnWidth)||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&1>e?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i.indexOf(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;i>=r;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r}),function(n,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):"object"==typeof exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(n.Isotope.LayoutMode,n.Masonry)}(window,function(n,t){function f(n,t){for(var i in t)n[i]=t[i];return n}var i=n.create("masonry"),e=i.prototype._getElementOffset,o=i.prototype.layout,s=i.prototype._getMeasurement,r,u;return f(i.prototype,t.prototype),i.prototype._getElementOffset=e,i.prototype.layout=o,i.prototype._getMeasurement=s,r=i.prototype.measureColumns,i.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;r.call(this)},u=i.prototype._manageStamp,i.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;u.apply(this,arguments)},i}),function(n,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){var t=n.create("fitRows");return t.prototype._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")},t.prototype._getItemLayoutPosition=function(n){var t,i,r;return n.getSize(),t=n.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,0!==this.x&&t+this.x>i&&(this.x=0,this.y=this.maxY),r={x:this.x,y:this.y},this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=t,r},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}),function(n,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){var t=n.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(n){n.getSize();var t=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=n.size.outerHeight,{x:t,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t}),function(n,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,r,u,f,e,o){return t(n,i,r,u,f,e,o)}):"object"==typeof exports?module.exports=t(n,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):n.Isotope=t(n,n.Outlayer,n.getSize,n.matchesSelector,n.fizzyUIUtils,n.Isotope.Item,n.Isotope.LayoutMode)}(window,function(n,t,i,r,u,f,e){function l(n,t){return function(i,r){for(var h,c,u=0,s=n.length;s>u;u++){var f=n[u],e=i.sortData[f],o=r.sortData[f];if(e>o||o>e)return h=void 0!==t[f]?t[f]:t,c=h?1:-1,(e>o?1:-1)*c}return 0}}var s=n.jQuery,a=String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},v=document.documentElement,y=v.textContent?function(n){return n.textContent}:function(n){return n.innerText},o=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),h,c;return o.Item=f,o.LayoutMode=e,o.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();t.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var n in e.modes)this._initLayoutMode(n)},o.prototype.reloadItems=function(){this.itemGUID=0;t.prototype.reloadItems.call(this)},o.prototype._itemize=function(){for(var r,n=t.prototype._itemize.apply(this,arguments),i=0,u=n.length;u>i;i++)r=n[i],r.id=this.itemGUID++;return this._updateItemsSortData(n),n},o.prototype._initLayoutMode=function(n){var t=e.modes[n],i=this.options[n]||{};this.options[n]=t.options?u.extend(t.options,i):i;this.modes[n]=new t(this)},o.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?(this.arrange(),void 0):(this._layout(),void 0)},o.prototype._layout=function(){var n=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,n);this._isLayoutInited=!0},o.prototype.arrange=function(n){function r(){i.reveal(t.needReveal);i.hide(t.needHide)}var t,i;this.option(n);this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches;i=this;this._bindArrangeComplete();this._isInstant?this._noTransition(r):r();this._sort();this._layout()},o.prototype._init=o.prototype.arrange,o.prototype._getIsInstant=function(){var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=n,n},o.prototype._bindArrangeComplete=function(){function n(){t&&i&&r&&u.emitEvent("arrangeComplete",[u.filteredItems])}var t,i,r,u=this;this.once("layoutComplete",function(){t=!0;n()});this.once("hideComplete",function(){i=!0;n()});this.once("revealComplete",function(){r=!0;n()})},o.prototype._filter=function(n){var r=this.options.filter,t,i;r=r||"*";for(var f=[],e=[],o=[],s=this._getFilterTest(r),u=0,h=n.length;h>u;u++)t=n[u],t.isIgnored||(i=s(t),i&&f.push(t),i&&t.isHidden?e.push(t):i||t.isHidden||o.push(t));return{matches:f,needReveal:e,needHide:o}},o.prototype._getFilterTest=function(n){return s&&this.options.isJQueryFiltering?function(t){return s(t.element).is(n)}:"function"==typeof n?function(t){return n(t.element)}:function(t){return r(t.element,n)}},o.prototype.updateSortData=function(n){var t;n?(n=u.makeArray(n),t=this.getItems(n)):t=this.items;this._getSorters();this._updateItemsSortData(t)},o.prototype._getSorters=function(){var t=this.options.getSortData,n,i;for(n in t)i=t[n],this._sorters[n]=h(i)},o.prototype._updateItemsSortData=function(n){for(var r,i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.updateSortData()},h=function(){function n(n){if("string"!=typeof n)return n;var i=a(n).split(" "),r=i[0],u=r.match(/^\[(.+)\]$/),s=u&&u[1],f=t(s,r),e=o.sortDataParsers[i[1]];return e?function(n){return n&&e(f(n))}:function(n){return n&&f(n)}}function t(n,t){return n?function(t){return t.getAttribute(n)}:function(n){var i=n.querySelector(t);return i&&y(i)}}return n}(),o.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},o.prototype._sort=function(){var n=this.options.sortBy,t,i;n&&(t=[].concat.apply(n,this.sortHistory),i=l(t,this.options.sortAscending),this.filteredItems.sort(i),n!=this.sortHistory[0]&&this.sortHistory.unshift(n))},o.prototype._mode=function(){var n=this.options.layoutMode,t=this.modes[n];if(!t)throw Error("No layout mode: "+n);return t.options=this.options[n],t},o.prototype._resetLayout=function(){t.prototype._resetLayout.call(this);this._mode()._resetLayout()},o.prototype._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},o.prototype._manageStamp=function(n){this._mode()._manageStamp(n)},o.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},o.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.prototype.appended=function(n){var t=this.addItems(n),i;t.length&&(i=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(i))},o.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(this._resetLayout(),this._manageStamps(),i=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items))},o.prototype._filterRevealAdded=function(n){var t=this._filter(n);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.prototype.insert=function(n){var i=this.addItems(n),t,u,r,f;if(i.length){for(r=i.length,t=0;r>t;t++)u=i[t],this.element.appendChild(u.element);for(f=this._filter(i).matches,t=0;r>t;t++)i[t].isLayoutInstant=!0;for(this.arrange(),t=0;r>t;t++)delete i[t].isLayoutInstant;this.reveal(f)}},c=o.prototype.remove,o.prototype.remove=function(n){var t,r,i,f;if(n=u.makeArray(n),t=this.getItems(n),c.call(this,n),r=t&&t.length,r)for(i=0;r>i;i++)f=t[i],u.removeFrom(this.filteredItems,f)},o.prototype.shuffle=function(){for(var i,n=0,t=this.items.length;t>n;n++)i=this.items[n],i.sortData.random=Math.random();this.options.sortBy="random";this._sort();this._layout()},o.prototype._noTransition=function(n){var i=this.options.transitionDuration,t;return this.options.transitionDuration=0,t=n.call(this),this.options.transitionDuration=i,t},o.prototype.getFilteredItemElements=function(){for(var t=[],n=0,i=this.filteredItems.length;i>n;n++)t.push(this.filteredItems[n].element);return t},o});Swiper=function(n,t){"use strict";function h(n,t){return document.querySelectorAll?(t||document).querySelectorAll(n):jQuery(n,t)}function si(n){return"[object Array]"===Object.prototype.toString.apply(n)?!0:!1}function f(){var n=w-u;return t.freeMode&&(n=w-u),t.slidesPerView>i.slides.length&&!t.centeredSlides&&(n=0),0>n&&(n=0),n}function hi(){function f(n){var r,f,u=function(){"undefined"!=typeof i&&null!==i&&(void 0!==i.imagesLoaded&&i.imagesLoaded++,i.imagesLoaded===i.imagesToLoad.length&&(i.reInit(),t.onImagesReady&&i.fireCallback(t.onImagesReady,i)))};n.complete?u():(f=n.currentSrc||n.getAttribute("src"),f?(r=new Image,r.onload=u,r.onerror=u,r.src=f):u())}var n=i.h.addEventListener,r="wrapper"===t.eventTarget?i.wrapper:i.container,u;if(i.browser.ie10||i.browser.ie11?(n(r,i.touchEvents.touchStart,v),n(document,i.touchEvents.touchMove,y),n(document,i.touchEvents.touchEnd,p)):(i.support.touch&&(n(r,"touchstart",v),n(r,"touchmove",y),n(r,"touchend",p)),t.simulateTouch&&(n(r,"mousedown",v),n(document,"mousemove",y),n(document,"mouseup",p))),t.autoResize&&n(window,"resize",i.resizeFix),gt(),i._wheelEvent=!1,t.mousewheelControl){if(void 0!==document.onmousewheel&&(i._wheelEvent="mousewheel"),!i._wheelEvent)try{new WheelEvent("wheel");i._wheelEvent="wheel"}catch(e){}i._wheelEvent||(i._wheelEvent="DOMMouseScroll");i._wheelEvent&&n(i.container,i._wheelEvent,ft)}if(t.keyboardControl&&n(document,"keydown",ut),t.updateOnImagesReady)for(i.imagesToLoad=h("img",i.container),u=0;u<i.imagesToLoad.length;u++)f(i.imagesToLoad[u])}function gt(){var n,r=i.h.addEventListener,f,u;if(t.preventLinks)for(f=h("a",i.container),n=0;n<f.length;n++)r(f[n],"click",ui);if(t.releaseFormElements)for(u=h("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,et,!0),i.support.touch&&t.simulateTouch&&r(u[n],"mousedown",et,!0);if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",ti);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,ii)}function ni(){var n,r=i.h.removeEventListener,u,f;if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",ti);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,ii);if(t.releaseFormElements)for(u=h("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,et,!0),i.support.touch&&t.simulateTouch&&r(u[n],"mousedown",et,!0);if(t.preventLinks)for(f=h("a",i.container),n=0;n<f.length;n++)r(f[n],"click",ui)}function ut(n){var t=n.keyCode||n.charCode,f;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)){if(37===t||39===t||38===t||40===t){for(var o=!1,u=i.h.getOffset(i.container),s=i.h.windowScroll().left,h=i.h.windowScroll().top,l=i.h.windowWidth(),a=i.h.windowHeight(),c=[[u.left,u.top],[u.left+i.width,u.top],[u.left,u.top+i.height],[u.left+i.width,u.top+i.height]],e=0;e<c.length;e++)f=c[e],f[0]>=s&&f[0]<=s+l&&f[1]>=h&&f[1]<=h+a&&(o=!0);if(!o)return}r?((37===t||39===t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),39===t&&i.swipeNext(),37===t&&i.swipePrev()):((38===t||40===t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),40===t&&i.swipeNext(),38===t&&i.swipePrev())}}function ft(n){var o=i._wheelEvent,u=0,e;if(n.detail)u=-n.detail;else if("mousewheel"===o)if(t.mousewheelControlForceToAxis)if(r){if(!(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY)))return;u=n.wheelDeltaX}else{if(!(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX)))return;u=n.wheelDeltaY}else u=n.wheelDelta;else if("DOMMouseScroll"===o)u=-n.detail;else if("wheel"===o)if(t.mousewheelControlForceToAxis)if(r){if(!(Math.abs(n.deltaX)>Math.abs(n.deltaY)))return;u=-n.deltaX}else{if(!(Math.abs(n.deltaY)>Math.abs(n.deltaX)))return;u=-n.deltaY}else u=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX:-n.deltaY;if(t.freeMode){if(e=i.getWrapperTranslate()+u,e>0&&(e=0),e<-f()&&(e=-f()),i.setWrapperTransition(0),i.setWrapperTranslate(e),i.updateActiveSlide(e),0===e||e===-f())return}else(new Date).getTime()-dt>60&&(0>u?i.swipeNext():i.swipePrev()),dt=(new Date).getTime();return t.autoplay&&i.stopAutoplay(!0),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function ti(n){i.allowSlideClick&&(ri(n),i.fireCallback(t.onSlideClick,i,n))}function ii(n){ri(n);i.fireCallback(t.onSlideTouch,i,n)}function ri(n){if(n.currentTarget)i.clickedSlide=n.currentTarget;else{var r=n.srcElement;do{if(r.className.indexOf(t.slideClass)>-1)break;r=r.parentNode}while(r);i.clickedSlide=r}i.clickedSlideIndex=i.slides.indexOf(i.clickedSlide);i.clickedSlideLoopIndex=i.clickedSlideIndex-(i.loopedSlides||0)}function ui(n){if(!i.allowLinks)return(n.preventDefault?n.preventDefault():n.returnValue=!1,t.preventLinksPropagation&&"stopPropagation"in n&&n.stopPropagation(),!1)}function et(n){return n.stopPropagation?n.stopPropagation():n.returnValue=!1,!1}function v(n){var u,o,f,e;if((t.preventLinks&&(i.allowLinks=!0),i.isTouched||t.onlyExternal)||(u=n.target||n.srcElement,document.activeElement&&document.activeElement!==document.body&&document.activeElement!==u&&document.activeElement.blur(),o="input select textarea".split(" "),t.noSwiping&&u&&ci(u)))return!1;if(rt=!1,i.isTouched=!0,s="touchstart"===n.type,!s&&"which"in n&&3===n.which)return i.isTouched=!1,!1;s&&1!==n.targetTouches.length||(i.callPlugins("onTouchStartBegin"),!s&&!i.isAndroid&&o.indexOf(u.tagName.toLowerCase())<0&&(n.preventDefault?n.preventDefault():n.returnValue=!1),f=s?n.targetTouches[0].pageX:n.pageX||n.clientX,e=s?n.targetTouches[0].pageY:n.pageY||n.clientY,i.touches.startX=i.touches.currentX=f,i.touches.startY=i.touches.currentY=e,i.touches.start=i.touches.current=r?f:e,i.setWrapperTransition(0),i.positions.start=i.positions.current=i.getWrapperTranslate(),i.setWrapperTranslate(i.positions.start),i.times.start=(new Date).getTime(),a=void 0,t.moveStartThreshold>0&&(vt=!1),t.onTouchStart&&i.fireCallback(t.onTouchStart,i,n),i.callPlugins("onTouchStartEnd"))}function y(n){var e,o,h,c,l,v;if(i.isTouched&&!t.onlyExternal&&(!s||"mousemove"!==n.type)){if(e=s?n.targetTouches[0].pageX:n.pageX||n.clientX,o=s?n.targetTouches[0].pageY:n.pageY||n.clientY,"undefined"==typeof a&&r&&(a=!!(a||Math.abs(o-i.touches.startY)>Math.abs(e-i.touches.startX))),"undefined"!=typeof a||r||(a=!!(a||Math.abs(o-i.touches.startY)<Math.abs(e-i.touches.startX))),a)return void(i.isTouched=!1);if(r){if(!t.swipeToNext&&e<i.touches.startX||!t.swipeToPrev&&e>i.touches.startX)return}else if(!t.swipeToNext&&o<i.touches.startY||!t.swipeToPrev&&o>i.touches.startY)return;if(n.assignedToSwiper)return void(i.isTouched=!1);if(n.assignedToSwiper=!0,t.preventLinks&&(i.allowLinks=!1),t.onSlideClick&&(i.allowSlideClick=!1),t.autoplay&&i.stopAutoplay(!0),!s||1===n.touches.length){if((i.isMoved||(i.callPlugins("onTouchMoveStart"),t.loop&&(i.fixLoop(),i.positions.start=i.getWrapperTranslate()),t.onTouchMoveStart&&i.fireCallback(t.onTouchMoveStart,i)),i.isMoved=!0,n.preventDefault?n.preventDefault():n.returnValue=!1,i.touches.current=r?e:o,i.positions.current=(i.touches.current-i.touches.start)*t.touchRatio+i.positions.start,i.positions.current>0&&t.onResistanceBefore&&i.fireCallback(t.onResistanceBefore,i,i.positions.current),i.positions.current<-f()&&t.onResistanceAfter&&i.fireCallback(t.onResistanceAfter,i,Math.abs(i.positions.current+f())),t.resistance&&"100%"!==t.resistance)&&(i.positions.current>0&&(h=1-i.positions.current/u/2,i.positions.current=.5>h?u/2:i.positions.current*h),i.positions.current<-f())&&(c=(i.touches.current-i.touches.start)*t.touchRatio+(f()+i.positions.start),h=(u+c)/u,l=i.positions.current-c*(1-h)/2,v=-f()-u/2,i.positions.current=v>l||0>=h?v:l),t.resistance&&"100%"===t.resistance&&(i.positions.current>0&&(!t.freeMode||t.freeModeFluid)&&(i.positions.current=0),i.positions.current<-f()&&(!t.freeMode||t.freeModeFluid)&&(i.positions.current=-f())),!t.followFinger)return;if(t.moveStartThreshold)if(Math.abs(i.touches.current-i.touches.start)>t.moveStartThreshold||vt){if(!vt)return vt=!0,void(i.touches.start=i.touches.current);i.setWrapperTranslate(i.positions.current)}else i.positions.current=i.positions.start;else i.setWrapperTranslate(i.positions.current);return(t.freeMode||t.watchActiveIndex)&&i.updateActiveSlide(i.positions.current),t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grabbing",i.container.style.cursor="-moz-grabbin",i.container.style.cursor="-webkit-grabbing"),it||(it=i.touches.current),yt||(yt=(new Date).getTime()),i.velocity=(i.touches.current-it)/((new Date).getTime()-yt)/2,Math.abs(i.touches.current-it)<2&&(i.velocity=0),it=i.touches.current,yt=(new Date).getTime(),i.callPlugins("onTouchMoveEnd"),t.onTouchMove&&i.fireCallback(t.onTouchMove,i,n),!1}}}function p(n){var s,h;if(a&&i.swipeReset(),!t.onlyExternal&&i.isTouched){i.isTouched=!1;t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grab",i.container.style.cursor="-moz-grab",i.container.style.cursor="-webkit-grab");i.positions.current||0===i.positions.current||(i.positions.current=i.positions.start);t.followFinger&&i.setWrapperTranslate(i.positions.current);i.times.end=(new Date).getTime();i.touches.diff=i.touches.current-i.touches.start;i.touches.abs=Math.abs(i.touches.diff);i.positions.diff=i.positions.current-i.positions.start;i.positions.abs=Math.abs(i.positions.diff);var nt=i.positions.diff,c=i.positions.abs,l=i.times.end-i.times.start;if(5>c&&300>l&&i.allowLinks===!1&&(t.freeMode||0===c||i.swipeReset(),t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0)),setTimeout(function(){"undefined"!=typeof i&&null!==i&&(t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0))},100),s=f(),!i.isMoved&&t.freeMode)return i.isMoved=!1,t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n),void i.callPlugins("onTouchEnd");if(!i.isMoved||i.positions.current>0||i.positions.current<-s)return i.swipeReset(),t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n),void i.callPlugins("onTouchEnd");if(i.isMoved=!1,t.freeMode){if(t.freeModeFluid){var p,w=1e3*t.momentumRatio,tt=i.velocity*w,o=i.positions.current+tt,b=!1,v=20*Math.abs(i.velocity)*t.momentumBounceRatio;-s>o&&(t.momentumBounce&&i.support.transitions?(-v>o+s&&(o=-s-v),p=-s,b=!0,rt=!0):o=-s);o>0&&(t.momentumBounce&&i.support.transitions?(o>v&&(o=v),p=0,b=!0,rt=!0):o=0);0!==i.velocity&&(w=Math.abs((o-i.positions.current)/i.velocity));i.setWrapperTranslate(o);i.setWrapperTransition(w);t.momentumBounce&&b&&i.wrapperTransitionEnd(function(){rt&&(t.onMomentumBounce&&i.fireCallback(t.onMomentumBounce,i),i.callPlugins("onMomentumBounce"),i.setWrapperTranslate(p),i.setWrapperTransition(300))});i.updateActiveSlide(o)}return(!t.freeModeFluid||l>=300)&&i.updateActiveSlide(i.positions.current),t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n),void i.callPlugins("onTouchEnd")}if(d=0>nt?"toNext":"toPrev","toNext"===d&&300>=l&&(30>c||!t.shortSwipes?i.swipeReset():i.swipeNext(!0,!0)),"toPrev"===d&&300>=l&&(30>c||!t.shortSwipes?i.swipeReset():i.swipePrev(!0,!0)),h=0,"auto"===t.slidesPerView){for(var k,it=Math.abs(i.getWrapperTranslate()),g=0,y=0;y<i.slides.length;y++)if(k=r?i.slides[y].getWidth(!0,t.roundLengths):i.slides[y].getHeight(!0,t.roundLengths),g+=k,g>it){h=k;break}h>u&&(h=u)}else h=e*t.slidesPerView;"toNext"===d&&l>300&&(c>=h*t.longSwipesRatio?i.swipeNext(!0,!0):i.swipeReset());"toPrev"===d&&l>300&&(c>=h*t.longSwipesRatio?i.swipePrev(!0,!0):i.swipeReset());t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n);i.callPlugins("onTouchEnd")}}function ot(n,t){return n&&n.getAttribute("class")&&n.getAttribute("class").indexOf(t)>-1}function ci(n){var i=!1;do ot(n,t.noSwipingClass)&&(i=!0),n=n.parentElement;while(!i&&n.parentElement&&!ot(n,t.wrapperClass));return!i&&ot(n,t.wrapperClass)&&ot(n,t.noSwipingClass)&&(i=!0),i}function fi(n,t){var i,r=document.createElement("div");return r.innerHTML=t,i=r.firstChild,i.className+=" "+n,i.outerHTML}function st(n,r,u){function o(){var s=+new Date,a=s-c;f+=l*a/(1e3/60);h="toNext"===e?f>n:n>f;h?(i.setWrapperTranslate(Math.ceil(f)),i._DOMAnimating=!0,window.setTimeout(function(){o()},1e3/60)):(t.onSlideChangeEnd&&("to"===r?u.runCallbacks===!0&&i.fireCallback(t.onSlideChangeEnd,i,e):i.fireCallback(t.onSlideChangeEnd,i,e)),i.setWrapperTranslate(n),i._DOMAnimating=!1)}var s="to"===r&&u.speed>=0?u.speed:t.speed,c=+new Date;if(i.support.transitions||!t.DOMAnimation)i.setWrapperTranslate(n),i.setWrapperTransition(s);else{var f=i.getWrapperTranslate(),l=Math.ceil((n-f)/s*(1e3/60)),e=f>n?"toNext":"toPrev",h="toNext"===e?f>n:n>f;if(i._DOMAnimating)return;o()}i.updateActiveSlide(n);t.onSlideNext&&"next"===r&&u.runCallbacks===!0&&i.fireCallback(t.onSlideNext,i,n);t.onSlidePrev&&"prev"===r&&u.runCallbacks===!0&&i.fireCallback(t.onSlidePrev,i,n);t.onSlideReset&&"reset"===r&&u.runCallbacks===!0&&i.fireCallback(t.onSlideReset,i,n);"next"!==r&&"prev"!==r&&"to"!==r||u.runCallbacks!==!0||li(r)}function li(n){if(i.callPlugins("onSlideChangeStart"),t.onSlideChangeStart)if(t.queueStartCallbacks&&i.support.transitions){if(i._queueStartCallbacks)return;i._queueStartCallbacks=!0;i.fireCallback(t.onSlideChangeStart,i,n);i.wrapperTransitionEnd(function(){i._queueStartCallbacks=!1})}else i.fireCallback(t.onSlideChangeStart,i,n);if(t.onSlideChangeEnd)if(i.support.transitions)if(t.queueEndCallbacks){if(i._queueEndCallbacks)return;i._queueEndCallbacks=!0;i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)})}else i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)});else t.DOMAnimation||setTimeout(function(){i.fireCallback(t.onSlideChangeEnd,i,n)},10)}function ei(){var t=i.paginationButtons,n;if(t)for(n=0;n<t.length;n++)i.h.removeEventListener(t[n],"click",oi)}function ai(){var t=i.paginationButtons,n;if(t)for(n=0;n<t.length;n++)i.h.addEventListener(t[n],"click",oi)}function oi(n){for(var u,e=n.target||n.srcElement,f=i.paginationButtons,r=0;r<f.length;r++)e===f[r]&&(u=r);t.autoplay&&i.stopAutoplay(!0);i.swipeTo(u)}function pt(){o=setTimeout(function(){t.loop?(i.fixLoop(),i.swipeNext(!0,!0)):i.swipeNext(!0,!0)||(t.autoplayStopOnLast?(clearTimeout(o),o=void 0):i.swipeTo(0));i.wrapperTransitionEnd(function(){"undefined"!=typeof o&&pt()})},t.autoplay)}function vi(){i.calcSlides();t.loader.slides.length>0&&0===i.slides.length&&i.loadSlides();t.loop&&i.createLoop();i.init();hi();t.pagination&&i.createPagination(!0);t.loop||t.initialSlide>0?i.swipeTo(t.initialSlide,0,!1):i.updateActiveSlide(0);t.autoplay&&i.startAutoplay();i.centerIndex=i.activeIndex;t.onSwiperCreated&&i.fireCallback(t.onSwiperCreated,i);i.callPlugins("onSwiperCreated")}var wt,i,ht,e,w,d,a,u,g,c,ct,r,b,k,bt,lt,nt,at,kt,dt,tt,vt,it,yt,s,rt,o,l;if(!document.body.outerHTML&&document.body.__defineGetter__&&HTMLElement&&(wt=HTMLElement.prototype,wt.__defineGetter__&&wt.__defineGetter__("outerHTML",function(){return(new XMLSerializer).serializeToString(this)})),window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(){return arguments[2].toUpperCase()})),n.currentStyle[t]?n.currentStyle[t]:null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;r>i;i++)if(this[i]===n)return i;return-1}),(document.querySelectorAll||window.jQuery)&&"undefined"!=typeof n&&(n.nodeType||0!==h(n).length)){i=this;i.touches={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,diff:0,abs:0};i.positions={start:0,abs:0,diff:0,current:0};i.times={start:0,end:0};i.id=(new Date).getTime();i.container=n.nodeType?n:h(n)[0];i.isTouched=!1;i.isMoved=!1;i.activeIndex=0;i.centerIndex=0;i.activeLoaderIndex=0;i.activeLoopIndex=0;i.previousIndex=null;i.velocity=0;i.snapGrid=[];i.slidesGrid=[];i.imagesToLoad=[];i.imagesLoaded=0;i.wrapperLeft=0;i.wrapperRight=0;i.wrapperTop=0;i.wrapperBottom=0;i.isAndroid=navigator.userAgent.toLowerCase().indexOf("android")>=0;g={eventTarget:"wrapper",mode:"horizontal",touchRatio:1,speed:300,freeMode:!1,freeModeFluid:!1,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,slidesPerView:1,slidesPerGroup:1,slidesPerViewFit:!0,simulateTouch:!0,followFinger:!0,shortSwipes:!0,longSwipesRatio:.5,moveStartThreshold:!1,onlyExternal:!1,createPagination:!0,pagination:!1,paginationElement:"span",paginationClickable:!1,paginationAsRange:!0,resistance:!0,scrollContainer:!1,preventLinks:!0,preventLinksPropagation:!1,noSwiping:!1,noSwipingClass:"swiper-no-swiping",initialSlide:0,keyboardControl:!1,mousewheelControl:!1,mousewheelControlForceToAxis:!1,useCSS3Transforms:!0,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,loop:!1,loopAdditionalSlides:0,roundLengths:!1,calculateHeight:!1,cssWidthAndHeight:!1,updateOnImagesReady:!0,releaseFormElements:!0,watchActiveIndex:!1,visibilityFullFit:!1,offsetPxBefore:0,offsetPxAfter:0,offsetSlidesBefore:0,offsetSlidesAfter:0,centeredSlides:!1,queueStartCallbacks:!1,queueEndCallbacks:!1,autoResize:!0,resizeReInit:!1,DOMAnimation:!0,loader:{slides:[],slidesHTMLType:"inner",surroundGroups:1,logic:"reload",loadAllSlides:!1},swipeToPrev:!0,swipeToNext:!0,slideElement:"div",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",wrapperClass:"swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"};t=t||{};for(c in g)if(c in t&&"object"==typeof t[c])for(ct in g[c])ct in t[c]||(t[c][ct]=g[c][ct]);else c in t||(t[c]=g[c]);for(i.params=t,t.scrollContainer&&(t.freeMode=!0,t.freeModeFluid=!0),t.loop&&(t.resistance="100%"),r="horizontal"===t.mode,b=["mousedown","mousemove","mouseup"],i.browser.ie10&&(b=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.browser.ie11&&(b=["pointerdown","pointermove","pointerup"]),i.touchEvents={touchStart:i.support.touch||!t.simulateTouch?"touchstart":b[0],touchMove:i.support.touch||!t.simulateTouch?"touchmove":b[1],touchEnd:i.support.touch||!t.simulateTouch?"touchend":b[2]},k=i.container.childNodes.length-1;k>=0;k--)if(i.container.childNodes[k].className)for(bt=i.container.childNodes[k].className.split(/\s+/),lt=0;lt<bt.length;lt++)bt[lt]===t.wrapperClass&&(ht=i.container.childNodes[k]);i.wrapper=ht;i._extendSwiperSlide=function(n){return n.append=function(){return t.loop?n.insertAfter(i.slides.length-i.loopedSlides):(i.wrapper.appendChild(n),i.reInit()),n},n.prepend=function(){return t.loop?(i.wrapper.insertBefore(n,i.slides[i.loopedSlides]),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.insertBefore(n,i.wrapper.firstChild),i.reInit(),n},n.insertAfter=function(r){if("undefined"==typeof r)return!1;var u;return t.loop?(u=i.slides[r+1+i.loopedSlides],u?i.wrapper.insertBefore(n,u):i.wrapper.appendChild(n),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):(u=i.slides[r+1],i.wrapper.insertBefore(n,u)),i.reInit(),n},n.clone=function(){return i._extendSwiperSlide(n.cloneNode(!0))},n.remove=function(){i.wrapper.removeChild(n);i.reInit()},n.html=function(t){return"undefined"==typeof t?n.innerHTML:(n.innerHTML=t,n)},n.index=function(){for(var r,t=i.slides.length-1;t>=0;t--)n===i.slides[t]&&(r=t);return r},n.isActive=function(){return n.index()===i.activeIndex?!0:!1},n.swiperSlideDataStorage||(n.swiperSlideDataStorage={}),n.getData=function(t){return n.swiperSlideDataStorage[t]},n.setData=function(t,i){return n.swiperSlideDataStorage[t]=i,n},n.data=function(t,i){return"undefined"==typeof i?n.getAttribute("data-"+t):(n.setAttribute("data-"+t,i),n)},n.getWidth=function(t,r){return i.h.getWidth(n,t,r)},n.getHeight=function(t,r){return i.h.getHeight(n,t,r)},n.getOffset=function(){return i.h.getOffset(n)},n};i.calcSlides=function(n){var f=i.slides?i.slides.length:!1,r;for(i.slides=[],i.displaySlides=[],r=0;r<i.wrapper.childNodes.length;r++)if(i.wrapper.childNodes[r].className)for(var o=i.wrapper.childNodes[r].className,e=o.split(/\s+/),u=0;u<e.length;u++)e[u]===t.slideClass&&i.slides.push(i.wrapper.childNodes[r]);for(r=i.slides.length-1;r>=0;r--)i._extendSwiperSlide(i.slides[r]);f!==!1&&(f!==i.slides.length||n)&&(ni(),gt(),i.updateActiveSlide(),i.params.pagination&&i.createPagination(),i.callPlugins("numberOfSlidesChanged"))};i.createSlide=function(n,r,u){r=r||i.params.slideClass;u=u||t.slideElement;var f=document.createElement(u);return f.innerHTML=n||"",f.className=r,i._extendSwiperSlide(f)};i.appendSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).append():i.createSlide(n,t,r).append()};i.prependSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).prepend():i.createSlide(n,t,r).prepend()};i.insertSlideAfter=function(n,t,r,u){return"undefined"==typeof n?!1:t.nodeType?i._extendSwiperSlide(t).insertAfter(n):i.createSlide(t,r,u).insertAfter(n)};i.removeSlide=function(n){if(i.slides[n]){if(t.loop){if(!i.slides[n+i.loopedSlides])return!1;i.slides[n+i.loopedSlides].remove();i.removeLoopedSlides();i.calcSlides();i.createLoop()}else i.slides[n].remove();return!0}return!1};i.removeLastSlide=function(){return i.slides.length>0?(t.loop?(i.slides[i.slides.length-1-i.loopedSlides].remove(),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.slides[i.slides.length-1].remove(),!0):!1};i.removeAllSlides=function(){for(var t=i.slides.length,n=i.slides.length-1;n>=0;n--)i.slides[n].remove(),n===t-1&&i.setWrapperTranslate(0)};i.getSlide=function(n){return i.slides[n]};i.getLastSlide=function(){return i.slides[i.slides.length-1]};i.getFirstSlide=function(){return i.slides[0]};i.activeSlide=function(){return i.slides[i.activeIndex]};i.fireCallback=function(){var n=arguments[0],r;if("[object Array]"===Object.prototype.toString.call(n))for(r=0;r<n.length;r++)"function"==typeof n[r]&&n[r](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);else"[object String]"===Object.prototype.toString.call(n)?t["on"+n]&&i.fireCallback(t["on"+n],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]):n(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])};i.addCallback=function(n,t){var i,r=this;return r.params["on"+n]?si(this.params["on"+n])?this.params["on"+n].push(t):"function"==typeof this.params["on"+n]?(i=this.params["on"+n],this.params["on"+n]=[],this.params["on"+n].push(i),this.params["on"+n].push(t)):void 0:(this.params["on"+n]=[],this.params["on"+n].push(t))};i.removeCallbacks=function(n){i.params["on"+n]&&(i.params["on"+n]=null)};nt=[];for(at in i.plugins)t[at]&&(kt=i.plugins[at](i,t[at]),kt&&nt.push(kt));i.callPlugins=function(n,t){t||(t={});for(var i=0;i<nt.length;i++)n in nt[i]&&nt[i][n](t)};!i.browser.ie10&&!i.browser.ie11||t.onlyExternal||i.wrapper.classList.add("swiper-wp8-"+(r?"horizontal":"vertical"));t.freeMode&&(i.container.className+=" swiper-free-mode");i.initialized=!1;i.init=function(n,f){var tt=i.h.getWidth(i.container,!1,t.roundLengths),it=i.h.getHeight(i.container,!1,t.roundLengths),a,c,y,p,l,h,s,o,k,d,g,v,b,nt;if(tt!==i.width||it!==i.height||n){if(i.width=tt,i.height=it,u=r?tt:it,o=i.wrapper,n&&i.calcSlides(f),"auto"===t.slidesPerView){for(k=0,d=0,t.slidesOffset>0&&(o.style.paddingLeft="",o.style.paddingRight="",o.style.paddingTop="",o.style.paddingBottom=""),o.style.width="",o.style.height="",t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-this.slides[0].getWidth(!0,t.roundLengths))/2,i.wrapperRight=(u-i.slides[i.slides.length-1].getWidth(!0,t.roundLengths))/2):(i.wrapperTop=(u-i.slides[0].getHeight(!0,t.roundLengths))/2,i.wrapperBottom=(u-i.slides[i.slides.length-1].getHeight(!0,t.roundLengths))/2)),r?(i.wrapperLeft>=0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>=0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>=0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>=0&&(o.style.paddingBottom=i.wrapperBottom+"px")),h=0,g=0,i.snapGrid=[],i.slidesGrid=[],y=0,s=0;s<i.slides.length;s++){if(a=i.slides[s].getWidth(!0,t.roundLengths),c=i.slides[s].getHeight(!0,t.roundLengths),t.calculateHeight&&(y=Math.max(y,c)),v=r?a:c,t.centeredSlides){var rt=s===i.slides.length-1?0:i.slides[s+1].getWidth(!0,t.roundLengths),ut=s===i.slides.length-1?0:i.slides[s+1].getHeight(!0,t.roundLengths),ft=r?rt:ut;if(v>u){if(t.slidesPerViewFit)i.snapGrid.push(h+i.wrapperLeft),i.snapGrid.push(h+v-u+i.wrapperLeft);else for(b=0;b<=Math.floor(v/(u+i.wrapperLeft));b++)i.snapGrid.push(0===b?h+i.wrapperLeft:h+i.wrapperLeft+u*b);i.slidesGrid.push(h+i.wrapperLeft)}else i.snapGrid.push(g),i.slidesGrid.push(g);g+=v/2+ft/2}else{if(v>u)if(t.slidesPerViewFit)i.snapGrid.push(h),i.snapGrid.push(h+v-u);else if(0!==u)for(nt=0;nt<=Math.floor(v/u);nt++)i.snapGrid.push(h+u*nt);else i.snapGrid.push(h);else i.snapGrid.push(h);i.slidesGrid.push(h)}h+=v;k+=a;d+=c}t.calculateHeight&&(i.height=y);r?(w=k+i.wrapperRight+i.wrapperLeft,t.cssWidthAndHeight&&"height"!==t.cssWidthAndHeight||(o.style.width=k+"px"),t.cssWidthAndHeight&&"width"!==t.cssWidthAndHeight||(o.style.height=i.height+"px")):(t.cssWidthAndHeight&&"height"!==t.cssWidthAndHeight||(o.style.width=i.width+"px"),t.cssWidthAndHeight&&"width"!==t.cssWidthAndHeight||(o.style.height=d+"px"),w=d+i.wrapperTop+i.wrapperBottom)}else if(t.scrollContainer)o.style.width="",o.style.height="",p=i.slides[0].getWidth(!0,t.roundLengths),l=i.slides[0].getHeight(!0,t.roundLengths),w=r?p:l,o.style.width=p+"px",o.style.height=l+"px",e=r?p:l;else{if(t.calculateHeight){for(y=0,l=0,r||(i.container.style.height=""),o.style.height="",s=0;s<i.slides.length;s++)i.slides[s].style.height="",y=Math.max(i.slides[s].getHeight(!0),y),r||(l+=i.slides[s].getHeight(!0));c=y;i.height=c;r?l=c:(u=c,i.container.style.height=u+"px")}else c=r?i.height:i.height/t.slidesPerView,t.roundLengths&&(c=Math.ceil(c)),l=r?i.height:i.slides.length*c;for(a=r?i.width/t.slidesPerView:i.width,t.roundLengths&&(a=Math.ceil(a)),p=r?i.slides.length*a:i.width,e=r?a:c,t.offsetSlidesBefore>0&&(r?i.wrapperLeft=e*t.offsetSlidesBefore:i.wrapperTop=e*t.offsetSlidesBefore),t.offsetSlidesAfter>0&&(r?i.wrapperRight=e*t.offsetSlidesAfter:i.wrapperBottom=e*t.offsetSlidesAfter),t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-e)/2,i.wrapperRight=(u-e)/2):(i.wrapperTop=(u-e)/2,i.wrapperBottom=(u-e)/2)),r?(i.wrapperLeft>0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>0&&(o.style.paddingBottom=i.wrapperBottom+"px")),w=r?p+i.wrapperRight+i.wrapperLeft:l+i.wrapperTop+i.wrapperBottom,parseFloat(p)>0&&(!t.cssWidthAndHeight||"height"===t.cssWidthAndHeight)&&(o.style.width=p+"px"),parseFloat(l)>0&&(!t.cssWidthAndHeight||"width"===t.cssWidthAndHeight)&&(o.style.height=l+"px"),h=0,i.snapGrid=[],i.slidesGrid=[],s=0;s<i.slides.length;s++)i.snapGrid.push(h),i.slidesGrid.push(h),h+=e,parseFloat(a)>0&&(!t.cssWidthAndHeight||"height"===t.cssWidthAndHeight)&&(i.slides[s].style.width=a+"px"),parseFloat(c)>0&&(!t.cssWidthAndHeight||"width"===t.cssWidthAndHeight)&&(i.slides[s].style.height=c+"px")}i.initialized?(i.callPlugins("onInit"),t.onInit&&i.fireCallback(t.onInit,i)):(i.callPlugins("onFirstInit"),t.onFirstInit&&i.fireCallback(t.onFirstInit,i));i.initialized=!0}};i.reInit=function(n){i.init(!0,n)};i.resizeFix=function(n){i.callPlugins("beforeResizeFix");i.init(t.resizeReInit||n);t.freeMode?i.getWrapperTranslate()<-f()&&(i.setWrapperTransition(0),i.setWrapperTranslate(-f())):(i.swipeTo(t.loop?i.activeLoopIndex:i.activeIndex,0,!1),t.autoplay&&(i.support.transitions&&"undefined"!=typeof o?"undefined"!=typeof o&&(clearTimeout(o),o=void 0,i.startAutoplay()):"undefined"!=typeof l&&(clearInterval(l),l=void 0,i.startAutoplay())));i.callPlugins("afterResizeFix")};i.destroy=function(n){var r=i.h.removeEventListener,u="wrapper"===t.eventTarget?i.wrapper:i.container,f;if(i.browser.ie10||i.browser.ie11?(r(u,i.touchEvents.touchStart,v),r(document,i.touchEvents.touchMove,y),r(document,i.touchEvents.touchEnd,p)):(i.support.touch&&(r(u,"touchstart",v),r(u,"touchmove",y),r(u,"touchend",p)),t.simulateTouch&&(r(u,"mousedown",v),r(document,"mousemove",y),r(document,"mouseup",p))),t.autoResize&&r(window,"resize",i.resizeFix),ni(),t.paginationClickable&&ei(),t.mousewheelControl&&i._wheelEvent&&r(i.container,i._wheelEvent,ft),t.keyboardControl&&r(document,"keydown",ut),t.autoplay&&i.stopAutoplay(),n)for(i.wrapper.removeAttribute("style"),f=0;f<i.slides.length;f++)i.slides[f].removeAttribute("style");i.callPlugins("onDestroy");window.jQuery&&window.jQuery(i.container).data("swiper")&&window.jQuery(i.container).removeData("swiper");window.Zepto&&window.Zepto(i.container).data("swiper")&&window.Zepto(i.container).removeData("swiper");i=null};i.disableKeyboardControl=function(){t.keyboardControl=!1;i.h.removeEventListener(document,"keydown",ut)};i.enableKeyboardControl=function(){t.keyboardControl=!0;i.h.addEventListener(document,"keydown",ut)};dt=(new Date).getTime();(i.disableMousewheelControl=function(){return i._wheelEvent?(t.mousewheelControl=!1,i.h.removeEventListener(i.container,i._wheelEvent,ft),!0):!1},i.enableMousewheelControl=function(){return i._wheelEvent?(t.mousewheelControl=!0,i.h.addEventListener(i.container,i._wheelEvent,ft),!0):!1},t.grabCursor)&&(tt=i.container.style,tt.cursor="move",tt.cursor="grab",tt.cursor="-moz-grab",tt.cursor="-webkit-grab");i.allowSlideClick=!0;i.allowLinks=!0;s=!1;rt=!0;i.swipeNext=function(n,r){var o,u,s,h;if("undefined"==typeof n&&(n=!0),!r&&t.loop&&i.fixLoop(),!r&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipeNext"),o=i.getWrapperTranslate().toFixed(2),u=o,"auto"===t.slidesPerView){for(s=0;s<i.snapGrid.length;s++)if(-o>=i.snapGrid[s].toFixed(2)&&-o<i.snapGrid[s+1].toFixed(2)){u=-i.snapGrid[s+1];break}}else h=e*t.slidesPerGroup,u=-(Math.floor(Math.abs(o)/Math.floor(h))*h+h);return u<-f()&&(u=-f()),u===o?!1:(st(u,"next",{runCallbacks:n}),!0)};i.swipePrev=function(n,r){var u,o,f,s;if("undefined"==typeof n&&(n=!0),!r&&t.loop&&i.fixLoop(),!r&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipePrev"),o=Math.ceil(i.getWrapperTranslate()),"auto"===t.slidesPerView)for(u=0,f=1;f<i.snapGrid.length;f++){if(-o===i.snapGrid[f]){u=-i.snapGrid[f-1];break}if(-o>i.snapGrid[f]&&-o<i.snapGrid[f+1]){u=-i.snapGrid[f];break}}else s=e*t.slidesPerGroup,u=-(Math.ceil(-o/s)-1)*s;return u>0&&(u=0),u===o?!1:(st(u,"prev",{runCallbacks:n}),!0)};i.swipeReset=function(n){var r,o,h,s;if("undefined"==typeof n&&(n=!0),i.callPlugins("onSwipeReset"),o=i.getWrapperTranslate(),h=e*t.slidesPerGroup,-f(),"auto"===t.slidesPerView){for(r=0,s=0;s<i.snapGrid.length;s++){if(-o===i.snapGrid[s])return;if(-o>=i.snapGrid[s]&&-o<i.snapGrid[s+1]){r=i.positions.diff>0?-i.snapGrid[s+1]:-i.snapGrid[s];break}}-o>=i.snapGrid[i.snapGrid.length-1]&&(r=-i.snapGrid[i.snapGrid.length-1]);o<=-f()&&(r=-f())}else r=0>o?Math.round(o/h)*h:0,o<=-f()&&(r=-f());return t.scrollContainer&&(r=0>o?o:0),r<-f()&&(r=-f()),t.scrollContainer&&u>e&&(r=0),r===o?!1:(st(r,"reset",{runCallbacks:n}),!0)};i.swipeTo=function(n,r,u){var s,o;return n=parseInt(n,10),i.callPlugins("onSwipeTo",{index:n,speed:r}),t.loop&&(n+=i.loopedSlides),s=i.getWrapperTranslate(),(n>i.slides.length-1||0>n)?void 0:(o="auto"===t.slidesPerView?-i.slidesGrid[n]:-n*e,o<-f()&&(o=-f()),o===s?!1:("undefined"==typeof u&&(u=!0),st(o,"to",{index:n,speed:r,runCallbacks:u}),!0))};i._queueStartCallbacks=!1;i._queueEndCallbacks=!1;i.updateActiveSlide=function(n){var r,o,s,u,h,c,f;if(i.initialized&&0!==i.slides.length){if(i.previousIndex=i.activeIndex,"undefined"==typeof n&&(n=i.getWrapperTranslate()),n>0&&(n=0),"auto"===t.slidesPerView){if(i.activeIndex=i.slidesGrid.indexOf(-n),i.activeIndex<0){for(r=0;r<i.slidesGrid.length-1&&!(-n>i.slidesGrid[r]&&-n<i.slidesGrid[r+1]);r++);o=Math.abs(i.slidesGrid[r]+n);s=Math.abs(i.slidesGrid[r+1]+n);i.activeIndex=s>=o?r:r+1}}else i.activeIndex=Math[t.visibilityFullFit?"ceil":"round"](-n/e);if(i.activeIndex===i.slides.length&&(i.activeIndex=i.slides.length-1),i.activeIndex<0&&(i.activeIndex=0),i.slides[i.activeIndex]){if(i.calcVisibleSlides(n),i.support.classList){for(r=0;r<i.slides.length;r++)u=i.slides[r],u.classList.remove(t.slideActiveClass),i.visibleSlides.indexOf(u)>=0?u.classList.add(t.slideVisibleClass):u.classList.remove(t.slideVisibleClass);i.slides[i.activeIndex].classList.add(t.slideActiveClass)}else{for(h=new RegExp("\\s*"+t.slideActiveClass),c=new RegExp("\\s*"+t.slideVisibleClass),r=0;r<i.slides.length;r++)i.slides[r].className=i.slides[r].className.replace(h,"").replace(c,""),i.visibleSlides.indexOf(i.slides[r])>=0&&(i.slides[r].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass}t.loop?(f=i.loopedSlides,i.activeLoopIndex=i.activeIndex-f,i.activeLoopIndex>=i.slides.length-2*f&&(i.activeLoopIndex=i.slides.length-2*f-i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=i.slides.length-2*f+i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=0)):i.activeLoopIndex=i.activeIndex;t.pagination&&i.updatePagination(n)}}};i.createPagination=function(n){var r;if(t.paginationClickable&&i.paginationButtons&&ei(),i.paginationContainer=t.pagination.nodeType?t.pagination:h(t.pagination)[0],t.createPagination){var u="",e=i.slides.length,f=e;for(t.loop&&(f-=2*i.loopedSlides),r=0;f>r;r++)u+="<"+t.paginationElement+' class="'+t.paginationElementClass+'"><\/'+t.paginationElement+">";i.paginationContainer.innerHTML=u}i.paginationButtons=h("."+t.paginationElementClass,i.paginationContainer);n||i.updatePagination();i.callPlugins("onCreatePagination");t.paginationClickable&&ai()};i.updatePagination=function(n){var s,r,o,c,f,e,u;if(t.pagination&&!(i.slides.length<1)&&(s=h("."+t.paginationActiveClass,i.paginationContainer),s&&(r=i.paginationButtons,0!==r.length))){for(o=0;o<r.length;o++)r[o].className=t.paginationElementClass;if(c=t.loop?i.loopedSlides:0,t.paginationAsRange){for(i.visibleSlides||i.calcVisibleSlides(n),e=[],f=0;f<i.visibleSlides.length;f++)u=i.slides.indexOf(i.visibleSlides[f])-c,t.loop&&0>u&&(u=i.slides.length-2*i.loopedSlides+u),t.loop&&u>=i.slides.length-2*i.loopedSlides&&(u=i.slides.length-2*i.loopedSlides-u,u=Math.abs(u)),e.push(u);for(f=0;f<e.length;f++)r[e[f]]&&(r[e[f]].className+=" "+t.paginationVisibleClass);t.loop?void 0!==r[i.activeLoopIndex]&&(r[i.activeLoopIndex].className+=" "+t.paginationActiveClass):r[i.activeIndex]&&(r[i.activeIndex].className+=" "+t.paginationActiveClass)}else t.loop?r[i.activeLoopIndex]&&(r[i.activeLoopIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass):r[i.activeIndex]&&(r[i.activeIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass)}};i.calcVisibleSlides=function(n){var c=[],f=0,l=0,s=0,h,o;for(r&&i.wrapperLeft>0&&(n+=i.wrapperLeft),!r&&i.wrapperTop>0&&(n+=i.wrapperTop),h=0;h<i.slides.length;h++)f+=l,l="auto"===t.slidesPerView?r?i.h.getWidth(i.slides[h],!0,t.roundLengths):i.h.getHeight(i.slides[h],!0,t.roundLengths):e,s=f+l,o=!1,t.visibilityFullFit?(f>=-n&&-n+u>=s&&(o=!0),-n>=f&&s>=-n+u&&(o=!0)):(s>-n&&-n+u>=s&&(o=!0),f>=-n&&-n+u>f&&(o=!0),-n>f&&s>-n+u&&(o=!0)),o&&c.push(i.slides[h]);0===c.length&&(c=[i.slides[i.activeIndex]]);i.visibleSlides=c};i.startAutoplay=function(){if(i.support.transitions){if("undefined"!=typeof o)return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart");t.onAutoplayStart&&i.fireCallback(t.onAutoplayStart,i);pt()}else{if("undefined"!=typeof l)return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart");t.onAutoplayStart&&i.fireCallback(t.onAutoplayStart,i);l=setInterval(function(){t.loop?(i.fixLoop(),i.swipeNext(!0,!0)):i.swipeNext(!0,!0)||(t.autoplayStopOnLast?(clearInterval(l),l=void 0):i.swipeTo(0))},t.autoplay)}};i.stopAutoplay=function(n){if(i.support.transitions){if(!o)return;o&&clearTimeout(o);o=void 0;n&&!t.autoplayDisableOnInteraction&&i.wrapperTransitionEnd(function(){pt()});i.callPlugins("onAutoplayStop");t.onAutoplayStop&&i.fireCallback(t.onAutoplayStop,i)}else l&&clearInterval(l),l=void 0,i.callPlugins("onAutoplayStop"),t.onAutoplayStop&&i.fireCallback(t.onAutoplayStop,i)};i.loopCreated=!1;i.removeLoopedSlides=function(){if(i.loopCreated)for(var n=0;n<i.slides.length;n++)i.slides[n].getData("looped")===!0&&i.wrapper.removeChild(i.slides[n])};i.createLoop=function(){var f,h,c;if(0!==i.slides.length){i.loopedSlides="auto"===t.slidesPerView?t.loopedSlides||1:t.slidesPerView+t.loopAdditionalSlides;i.loopedSlides>i.slides.length&&(i.loopedSlides=i.slides.length);for(var e="",o="",u="",r=i.slides.length,l=Math.floor(i.loopedSlides/r),s=i.loopedSlides%r,n=0;l*r>n;n++)f=n,n>=r&&(h=Math.floor(n/r),f=n-r*h),u+=i.slides[f].outerHTML;for(n=0;s>n;n++)o+=fi(t.slideDuplicateClass,i.slides[n].outerHTML);for(n=r-s;r>n;n++)e+=fi(t.slideDuplicateClass,i.slides[n].outerHTML);for(c=e+u+ht.innerHTML+u+o,ht.innerHTML=c,i.loopCreated=!0,i.calcSlides(),n=0;n<i.slides.length;n++)(n<i.loopedSlides||n>=i.slides.length-i.loopedSlides)&&i.slides[n].setData("looped",!0);i.callPlugins("onCreateLoop")}};i.fixLoop=function(){var n;i.activeIndex<i.loopedSlides?(n=i.slides.length-3*i.loopedSlides+i.activeIndex,i.swipeTo(n,0,!1)):("auto"===t.slidesPerView&&i.activeIndex>=2*i.loopedSlides||i.activeIndex>i.slides.length-2*t.slidesPerView)&&(n=-i.slides.length+i.activeIndex+i.loopedSlides,i.swipeTo(n,0,!1))};i.loadSlides=function(){var u="";i.activeLoaderIndex=0;for(var r=t.loader.slides,f=t.loader.loadAllSlides?r.length:t.slidesPerView*(1+t.loader.surroundGroups),n=0;f>n;n++)u+="outer"===t.loader.slidesHTMLType?r[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+r[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=u;i.calcSlides(!0);t.loader.loadAllSlides||i.wrapperTransitionEnd(i.reloadSlides,!0)};i.reloadSlides=function(){var f=t.loader.slides,u=parseInt(i.activeSlide().data("swiperindex"),10),o,h,v,n,a,c,l,s,r;if(!(0>u||u>f.length-1)){if(i.activeLoaderIndex=u,o=Math.max(0,u-t.slidesPerView*t.loader.surroundGroups),h=Math.min(u+t.slidesPerView*(1+t.loader.surroundGroups)-1,f.length-1),u>0&&(v=-e*(u-o),i.setWrapperTranslate(v),i.setWrapperTransition(0)),"reload"===t.loader.logic){for(i.wrapper.innerHTML="",a="",n=o;h>=n;n++)a+="outer"===t.loader.slidesHTMLType?f[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+f[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=a}else{for(c=1e3,l=0,n=0;n<i.slides.length;n++)s=i.slides[n].data("swiperindex"),o>s||s>h?i.wrapper.removeChild(i.slides[n]):(c=Math.min(s,c),l=Math.max(s,l));for(n=o;h>=n;n++)c>n&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.insertBefore(r,i.wrapper.firstChild)),n>l&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.appendChild(r))}i.reInit(!0)}};vi()}};Swiper.prototype={plugins:{},wrapperTransitionEnd:function(n,t){"use strict";function e(o){if(o.target===f&&(n(r),r.params.queueEndCallbacks&&(r._queueEndCallbacks=!1),!t))for(i=0;i<u.length;i++)r.h.removeEventListener(f,u[i],e)}var i,r=this,f=r.wrapper,u=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"];if(n)for(i=0;i<u.length;i++)r.h.addEventListener(f,u[i],e)},getWrapperTranslate:function(n){"use strict";var i,r,t,u,f=this.wrapper;return"undefined"==typeof n&&(n="horizontal"===this.params.mode?"x":"y"),this.support.transforms&&this.params.useCSS3Transforms?(t=window.getComputedStyle(f,null),window.WebKitCSSMatrix?u=new WebKitCSSMatrix("none"===t.webkitTransform?"":t.webkitTransform):(u=t.MozTransform||t.OTransform||t.MsTransform||t.msTransform||t.transform||t.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=u.toString().split(",")),"x"===n&&(r=window.WebKitCSSMatrix?u.m41:parseFloat(16===i.length?i[12]:i[4])),"y"===n&&(r=window.WebKitCSSMatrix?u.m42:parseFloat(16===i.length?i[13]:i[5]))):("x"===n&&(r=parseFloat(f.style.left,10)||0),"y"===n&&(r=parseFloat(f.style.top,10)||0)),r||0},setWrapperTranslate:function(n,t,i){"use strict";var f,u=this.wrapper.style,r={x:0,y:0,z:0};3===arguments.length?(r.x=n,r.y=t,r.z=i):("undefined"==typeof t&&(t="horizontal"===this.params.mode?"x":"y"),r[t]=n);this.support.transforms&&this.params.useCSS3Transforms?(f=this.support.transforms3d?"translate3d("+r.x+"px, "+r.y+"px, "+r.z+"px)":"translate("+r.x+"px, "+r.y+"px)",u.webkitTransform=u.MsTransform=u.msTransform=u.MozTransform=u.OTransform=u.transform=f):(u.left=r.x+"px",u.top=r.y+"px");this.callPlugins("onSetWrapperTransform",r);this.params.onSetWrapperTransform&&this.fireCallback(this.params.onSetWrapperTransform,this,r)},setWrapperTransition:function(n){"use strict";var t=this.wrapper.style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n/1e3+"s";this.callPlugins("onSetWrapperTransition",{duration:n});this.params.onSetWrapperTransition&&this.fireCallback(this.params.onSetWrapperTransition,this,n)},h:{getWidth:function(n,t,i){"use strict";var u=window.getComputedStyle(n,null).getPropertyValue("width"),r=parseFloat(u);return(isNaN(r)||u.indexOf("%")>0||0>r)&&(r=n.offsetWidth-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),t&&(r+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),i?Math.ceil(r):r},getHeight:function(n,t,i){"use strict";if(t)return n.offsetHeight;var u=window.getComputedStyle(n,null).getPropertyValue("height"),r=parseFloat(u);return(isNaN(r)||u.indexOf("%")>0||0>r)&&(r=n.offsetHeight-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),t&&(r+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),i?Math.ceil(r):r},getOffset:function(n){"use strict";var t=n.getBoundingClientRect(),i=document.body,f=n.clientTop||i.clientTop||0,e=n.clientLeft||i.clientLeft||0,r=window.pageYOffset||n.scrollTop,u=window.pageXOffset||n.scrollLeft;return document.documentElement&&!window.pageYOffset&&(r=document.documentElement.scrollTop,u=document.documentElement.scrollLeft),{top:t.top+r-f,left:t.left+u-e}},windowWidth:function(){"use strict";return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:void 0},windowHeight:function(){"use strict";return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:void 0},windowScroll:function(){"use strict";return"undefined"!=typeof pageYOffset?{left:window.pageXOffset,top:window.pageYOffset}:document.documentElement?{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}:void 0},addEventListener:function(n,t,i,r){"use strict";"undefined"==typeof r&&(r=!1);n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},removeEventListener:function(n,t,i,r){"use strict";"undefined"==typeof r&&(r=!1);n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}},setTransform:function(n,t){"use strict";var i=n.style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t},setTranslate:function(n,t){"use strict";var i=n.style,r={x:t.x||0,y:t.y||0,z:t.z||0},u=this.support.transforms3d?"translate3d("+r.x+"px,"+r.y+"px,"+r.z+"px)":"translate("+r.x+"px,"+r.y+"px)";i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=u;this.support.transforms||(i.left=r.x+"px",i.top=r.y+"px")},setTransition:function(n,t){"use strict";var i=n.style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t+"ms"},support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){"use strict";return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){"use strict";var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),transforms:window.Modernizr&&Modernizr.csstransforms===!0||function(){"use strict";var n=document.createElement("div").style;return"transform"in n||"WebkitTransform"in n||"MozTransform"in n||"msTransform"in n||"MsTransform"in n||"OTransform"in n}(),transitions:window.Modernizr&&Modernizr.csstransitions===!0||function(){"use strict";var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"MsTransition"in n||"OTransition"in n}(),classList:function(){"use strict";var n=document.createElement("div");return"classList"in n}()},browser:{ie8:function(){"use strict";var n=-1,t,i;return"Microsoft Internet Explorer"===navigator.appName&&(t=navigator.userAgent,i=new RegExp(/MSIE ([0-9]{1,}[\.0-9]{0,})/),null!==i.exec(t)&&(n=parseFloat(RegExp.$1))),-1!==n&&9>n}(),ie10:window.navigator.msPointerEnabled,ie11:window.navigator.pointerEnabled}};(window.jQuery||window.Zepto)&&!function(n){"use strict";n.fn.swiper=function(t){var i;return this.each(function(r){var u=n(this),f=new Swiper(u[0],t);r||(i=f);u.data("swiper",f)}),i}}(window.jQuery||window.Zepto);"undefined"!=typeof module&&(module.exports=Swiper);"function"==typeof define&&define.amd&&define([],function(){"use strict";return Swiper}),function(n){function s(n){return typeof n=="string"}function o(n){var t=k.call(arguments,1);return function(){return n.apply(this,t.concat(k.call(arguments)))}}function lt(n){return n.replace(l,"$2")}function at(n){return n.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function ot(r,f,o,h,v){var w,y,p,k,g;return h!==t?(p=o.match(r?l:/^([^#?]*)\??([^#]*)(#?.*)/),g=p[3]||"",v===2&&s(h)?y=h.replace(r?c:ut,""):(k=i(p[2]),h=s(h)?i[r?u:e](h):h,y=v===2?h:v===1?n.extend({},h,k):n.extend({},k,h),y=d(y),r&&(y=y.replace(ft,a))),w=p[1]+(r?b:y||!p[1]?"?":"")+y+g):w=f(o!==t?o:location.href),w}function st(n,r,o){return r===t||typeof r=="boolean"?(o=r,r=f[n?u:e]()):r=s(r)?r.replace(n?c:ut,""):r,i(r,o)}function ht(i,r,u,e){return s(u)||typeof u=="object"||(e=u,u=r,r=t),this.each(function(){var o=n(this),t=r||tt()[(this.nodeName||"").toLowerCase()]||"",s=t&&o.attr(t)||"";o.attr(t,f[i](s,u,e))})}var t,k=Array.prototype.slice,a=decodeURIComponent,f=n.param,d,r,i,v,y=n.bbq=n.bbq||{},g,nt,tt,it=n.event.special,rt="hashchange",e="querystring",u="fragment",p="elemUrlAttr",w="href",h="src",ut=/^.*\?|#.*$/g,c,l,ft,et,b,ct={};f[e]=o(ot,0,at);f[u]=r=o(ot,1,lt);f.sorted=d=function(t,i){var u=[],r={};return n.each(f(t,i).split("&"),function(n,t){var i=t.replace(/(?:%5B|=).*$/,""),f=r[i];f||(f=r[i]=[],u.push(i));f.push(t)}),n.map(u.sort(),function(n){return r[n]}).join("&")};r.noEscape=function(t){t=t||"";var i=n.map(t.split(""),encodeURIComponent);ft=new RegExp(i.join("|"),"g")};r.noEscape(",/");r.ajaxCrawlable=function(n){return n!==t&&(n?(c=/^.*(?:#!|#)/,l=/^([^#]*)(?:#!|#)?(.*)$/,b="#!"):(c=/^.*#/,l=/^([^#]*)#?(.*)$/,b="#"),et=!!n),et};r.ajaxCrawlable(0);n.deparam=i=function(i,r){var u={},f={"true":!0,"false":!1,"null":null};return n.each(i.replace(/\+/g," ").split("&"),function(i,e){var y=e.split("="),h=a(y[0]),o,v=u,l=0,s=h.split("]["),c=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[c])?(s[c]=s[c].replace(/\]$/,""),s=s.shift().split("[").concat(s),c=s.length-1):c=0,y.length===2)if(o=a(y[1]),r&&(o=o&&!isNaN(o)?+o:o==="undefined"?t:f[o]!==t?f[o]:o),c)for(;l<=c;l++)h=s[l]===""?v.length:s[l],v=v[h]=l<c?v[h]||(s[l+1]&&isNaN(s[l+1])?{}:[]):o;else n.isArray(u[h])?u[h].push(o):u[h]=u[h]!==t?[u[h],o]:o;else h&&(u[h]=r?t:"")}),u};i[e]=o(st,0);i[u]=v=o(st,1);n[p]||(n[p]=function(t){return n.extend(ct,t)})({a:w,base:w,iframe:h,img:h,input:h,form:"action",link:w,script:h});tt=n[p];n.fn[e]=o(ht,e);n.fn[u]=o(ht,u);y.pushState=g=function(n,i){s(n)&&/^#/.test(n)&&i===t&&(i=2);var u=n!==t,f=r(location.href,u?n:{},u?i:2);location.href=f};y.getState=nt=function(n,i){return n===t||typeof n=="boolean"?v(n):v(i)[n]};y.removeState=function(i){var r={};i!==t&&(r=nt(),n.each(n.isArray(i)?i:arguments,function(n,t){delete r[t]}));g(r,2)};it[rt]=n.extend(it[rt],{add:function(f){function o(n){var f=n[u]=r();n.getState=function(n,r){return n===t||typeof n=="boolean"?i(f,n):i(f,r)[n]};e.apply(this,arguments)}var e;if(n.isFunction(f))return e=f,o;e=f.handler;f.handler=o}})}(jQuery,this),function(n,t,i){function u(n){return n=n||location.href,"#"+n.replace(/^[^#]*#?(.*)$/,"$1")}var r="hashchange",f=document,e,s=n.event.special,h=f.documentMode,o="on"+r in t&&(h===i||h>7);n.fn[r]=function(n){return n?this.bind(r,n):this.trigger(r)};n.fn[r].delay=50;s[r]=n.extend(s[r],{setup:function(){if(o)return!1;n(e.start)},teardown:function(){if(o)return!1;n(e.stop)}});e=function(){function c(){var f=u(),i=v(h);f!==h?(a(h=f,i),n(t).trigger(r)):i!==h&&(location.href=location.href.replace(/#.*/,"")+i);s=setTimeout(c,n.fn[r].delay)}var e={},s,h=u(),l=function(n){return n},a=l,v=l;return e.start=function(){s||c()},e.stop=function(){s&&clearTimeout(s);s=i},navigator.appName!=="Microsoft Internet Explorer"||o||function(){var t,i;e.start=function(){t||(i=n.fn[r].src,i=i&&i+u(),t=n('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){i||a(u());c()}).attr("src",i||"javascript:0").insertAfter("body")[0].contentWindow,f.onpropertychange=function(){try{event.propertyName==="title"&&(t.document.title=f.title)}catch(n){}})};e.stop=l;v=function(){return u(t.location.href)};a=function(i,u){var e=t.document,o=n.fn[r].domain;i!==u&&(e.title=f.title,e.open(),o&&e.write('<script>document.domain="'+o+'"<\/script>'),e.close(),t.location.hash=i)}}(),e}()}(jQuery,this),function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return(r||(r=i()),t=n("#"+r.containerId),t.length)?t:(u&&(t=nt(r)),t)}function y(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){o=n}function w(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n){var u=i();t||r(u);s(n,u)||g(u)}function d(u){var f=i();if(t||r(f),u&&n(":focus",u).length===0){e(u);return}t.children().length&&t.remove()}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)s(n(u[r]),i)}function s(t,i){return t&&n(":focus",t).length===0?(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0):!1}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:undefined,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:undefined,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:"<button>×<\/button>",newestOnTop:!0,preventDuplicates:!1}}function h(n){o&&o(n)}function u(u){function l(t){if(!n(":focus",o).length||t)return o[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){e(o);f.onHidden&&s.state!=="hidden"&&f.onHidden();s.state="hidden";s.endTime=new Date;h(s)}})}function k(){(f.timeOut>0||f.extendedTimeOut>0)&&(p=setTimeout(l,f.extendedTimeOut))}function d(){clearTimeout(p);o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}var f=i(),y=u.iconClass||f.iconClass;if(f.preventDuplicates){if(u.message===a)return;a=u.message}typeof u.optionsOverride!="undefined"&&(f=n.extend(f,u.optionsOverride),y=u.optionsOverride.iconClass||y);c++;t=r(f,!0);var p=null,o=n("<div/>"),w=n("<div/>"),b=n("<div/>"),v=n(f.closeHtml),s={toastId:c,state:"visible",startTime:new Date,options:f,map:u};return u.iconClass&&o.addClass(f.toastClass).addClass(y),u.title&&(w.append(u.title).addClass(f.titleClass),o.append(w)),u.message&&(b.append(u.message).addClass(f.messageClass),o.append(b)),f.closeButton&&(v.addClass("toast-close-button").attr("role","button"),o.prepend(v)),o.hide(),f.newestOnTop?t.prepend(o):t.append(o),o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(p=setTimeout(l,f.timeOut)),o.hover(d,k),!f.onclick&&f.tapToDismiss&&o.click(l),f.closeButton&&v&&v.click(function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble!==undefined&&n.cancelBubble!==!0&&(n.cancelBubble=!0);l(!0)}),f.onclick&&o.click(function(){f.onclick();l()}),h(s),f.debug&&console&&console.log(s),o}function i(){return n.extend({},tt(),l.options)}function e(n){(t||(t=r()),n.is(":visible"))||(n.remove(),n=null,t.children().length===0&&t.remove())}var t,o,c=0,f={error:"error",info:"info",success:"success",warning:"warning"},l={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.0",warning:b},a;return l}()})}(typeof define=="function"&&define.amd?define:function(n,t){typeof module!="undefined"&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}); /*! * Chart.js * http://chartjs.org/ * Version: 1.0.2 * * Copyright 2015 Nick Downie * Released under the MIT license * https://github.com/nnnick/Chart.js/blob/master/LICENSE.md */ (function(){"use strict";var c=this,g=c.Chart,t=function(t){var r,u;this.canvas=t.canvas;this.ctx=t;var i=function(n,t){return n["offset"+t]?n["offset"+t]:document.defaultView.getComputedStyle(n).getPropertyValue(t)},r=this.width=i(t.canvas,"Width"),u=this.height=i(t.canvas,"Height");return t.canvas.width=r,t.canvas.height=u,r=this.width=t.canvas.width,u=this.height=t.canvas.height,this.aspectRatio=this.width/this.height,n.retinaScale(this),this};t.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= value %>",multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}};t.types={};var n=t.helpers={},i=n.each=function(n,t,i){var f=Array.prototype.slice.call(arguments,3),r,u;if(n)if(n.length===+n.length)for(r=0;r<n.length;r++)t.apply(i,[n[r],r].concat(f));else for(u in n)t.apply(i,[n[u],u].concat(f))},l=n.clone=function(n){var t={};return i(n,function(i,r){n.hasOwnProperty(r)&&(t[r]=i)}),t},r=n.extend=function(n){return i(Array.prototype.slice.call(arguments,1),function(t){i(t,function(i,r){t.hasOwnProperty(r)&&(n[r]=i)})}),n},nt=n.merge=function(){var n=Array.prototype.slice.call(arguments,0);return n.unshift({}),r.apply(null,n)},tt=n.indexOf=function(n,t){if(Array.prototype.indexOf)return n.indexOf(t);for(var i=0;i<n.length;i++)if(n[i]===t)return i;return-1},p=(n.where=function(t,i){var r=[];return n.each(t,function(n){i(n)&&r.push(n)}),r},n.findNextWhere=function(n,t,i){var r,u;for(i||(i=-1),r=i+1;r<n.length;r++)if(u=n[r],t(u))return u},n.findPreviousWhere=function(n,t,i){var r,u;for(i||(i=n.length),r=i-1;r>=0;r--)if(u=n[r],t(u))return u},n.inherits=function(n){var i=this,t=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return i.apply(this,arguments)},u=function(){this.constructor=t};return u.prototype=i.prototype,t.prototype=new u,t.extend=p,n&&r(t.prototype,n),t.__super__=i.prototype,t}),a=n.noop=function(){},it=n.uid=function(){var n=0;return function(){return"chart-"+n++}}(),rt=n.warn=function(n){window.console&&"function"==typeof window.console.warn&&console.warn(n)},ut=n.amd="function"==typeof define&&define.amd,u=n.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},h=n.max=function(n){return Math.max.apply(Math,n)},o=n.min=function(n){return Math.min.apply(Math,n)},w=(n.cap=function(n,t,i){if(u(t)){if(n>t)return t}else if(u(i)&&i>n)return i;return n},n.getDecimalPlaces=function(n){return n%1!=0&&u(n)?n.toString().split(".")[1].length:0}),v=n.radians=function(n){return n*(Math.PI/180)},b=(n.getAngleFromPoint=function(n,t){var i=t.x-n.x,r=t.y-n.y,f=Math.sqrt(i*i+r*r),u=2*Math.PI+Math.atan2(r,i);return 0>i&&0>r&&(u+=2*Math.PI),{angle:u,distance:f}},n.aliasPixel=function(n){return n%2==0?0:.5}),ft=(n.splineCurve=function(n,t,i,r){var u=Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)),f=Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2)),e=r*u/(u+f),o=r*f/(u+f);return{inner:{x:t.x-e*(i.x-n.x),y:t.y-e*(i.y-n.y)},outer:{x:t.x+o*(i.x-n.x),y:t.y+o*(i.y-n.y)}}},n.calculateOrderOfMagnitude=function(n){return Math.floor(Math.log(n)/Math.LN10)}),f=(n.calculateScaleRange=function(n,t,i,r,u){var w=2,v=Math.floor(t/(1.5*i)),y=w>=v,c=h(n),l=o(n);c===l&&(c+=.5,l>=.5&&!r?l-=.5:c+=.5);for(var b=Math.abs(c-l),s=ft(b),k=Math.ceil(c/(1*Math.pow(10,s)))*Math.pow(10,s),p=r?0:Math.floor(l/(1*Math.pow(10,s)))*Math.pow(10,s),a=k-p,f=Math.pow(10,s),e=Math.round(a/f);(e>v||v>2*e)&&!y;)if(e>v)f*=2,e=Math.round(a/f),e%1!=0&&(y=!0);else if(u&&s>=0){if(f/2%1!=0)break;f/=2;e=Math.round(a/f)}else f/=2,e=Math.round(a/f);return y&&(e=w,f=a/e),{steps:e,stepValue:f,min:p,max:p+e*f}},n.template=function(n,t){function r(n,t){var r=/\W/.test(n)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+n.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):i[n]=i[n];return t?r(t):r}if(n instanceof Function)return n(t);var i={};return r(n,t)}),s=(n.generateLabels=function(n,t,r,u){var e=new Array(t);return labelTemplateString&&i(e,function(t,i){e[i]=f(n,{value:r+u*(i+1)})}),e},n.easingEffects={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-1*n*(n-2)},easeInOutQuad:function(n){return(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1*((n=n/1-1)*n*n+1)},easeInOutCubic:function(n){return(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-1*((n=n/1-1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},easeInQuint:function(n){return 1*(n/=1)*n*n*n*n},easeOutQuint:function(n){return 1*((n=n/1-1)*n*n*n*n+1)},easeInOutQuint:function(n){return(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return-1*Math.cos(n/1*(Math.PI/2))+1},easeOutSine:function(n){return 1*Math.sin(n/1*(Math.PI/2))},easeInOutSine:function(n){return-.5*(Math.cos(Math.PI*n/1)-1)},easeInExpo:function(n){return 0===n?1:1*Math.pow(2,10*(n/1-1))},easeOutExpo:function(n){return 1===n?1:1*(-Math.pow(2,-10*n)+1)},easeInOutExpo:function(n){return 0===n?0:1===n?1:(n/=.5)<1?.5*Math.pow(2,10*(n-1)):.5*(-Math.pow(2,-10*--n)+2)},easeInCirc:function(n){return n>=1?n:-1*(Math.sqrt(1-(n/=1)*n)-1)},easeOutCirc:function(n){return 1*Math.sqrt(1-(n=n/1-1)*n)},easeInOutCirc:function(n){return(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1==(n/=1)?1:(t||(t=.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(n-=1))*Math.sin(2*(1*n-r)*Math.PI/t)))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1==(n/=1)?1:(t||(t=.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin(2*(1*n-r)*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:2==(n/=.5)?1:(t||(t=.3*1.5),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),1>n?-.5*i*Math.pow(2,10*(n-=1))*Math.sin(2*(1*n-r)*Math.PI/t):i*Math.pow(2,-10*(n-=1))*Math.sin(2*(1*n-r)*Math.PI/t)*.5+1)},easeInBack:function(n){var t=1.70158;return 1*(n/=1)*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return 1*((n=n/1-1)*n*((t+1)*n+t)+1)},easeInOutBack:function(n){var t=1.70158;return(n/=.5)<1?.5*n*n*(((t*=1.525)+1)*n-t):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:function(n){return 1-s.easeOutBounce(1-n)},easeOutBounce:function(n){return(n/=1)<1/2.75?7.5625*n*n:2/2.75>n?1*(7.5625*(n-=1.5/2.75)*n+.75):2.5/2.75>n?1*(7.5625*(n-=2.25/2.75)*n+.9375):1*(7.5625*(n-=2.625/2.75)*n+.984375)},easeInOutBounce:function(n){return.5>n?.5*s.easeInBounce(2*n):.5*s.easeOutBounce(2*n-1)+.5}}),k=n.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}(),et=n.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(n){return window.clearTimeout(n,1e3/60)}}(),ot=(n.animationLoop=function(n,t,i,r,u,f){var e=0,h=s[i]||s.linear,o=function(){e++;var i=e/t,s=h(i);n.call(f,s,i,e);r.call(f,s,i);t>e?f.animationFrame=k(o):u.apply(f)};k(o)},n.getRelativePosition=function(n){var r,u,t=n.originalEvent||n,f=n.currentTarget||n.srcElement,i=f.getBoundingClientRect();return t.touches?(r=t.touches[0].clientX-i.left,u=t.touches[0].clientY-i.top):(r=t.clientX-i.left,u=t.clientY-i.top),{x:r,y:u}},n.addEvent=function(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i}),st=n.removeEvent=function(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]=a},ht=(n.bindEvents=function(n,t,r){n.events||(n.events={});i(t,function(t){n.events[t]=function(){r.apply(n,arguments)};ot(n.chart.canvas,t,n.events[t])})},n.unbindEvents=function(n,t){i(t,function(t,i){st(n.chart.canvas,i,t)})}),ct=n.getMaximumWidth=function(n){var t=n.parentNode;return t.clientWidth},lt=n.getMaximumHeight=function(n){var t=n.parentNode;return t.clientHeight},at=(n.getMaximumSize=n.getMaximumWidth,n.retinaScale=function(n){var t=n.ctx,i=n.canvas.width,r=n.canvas.height;window.devicePixelRatio&&(t.canvas.style.width=i+"px",t.canvas.style.height=r+"px",t.canvas.height=r*window.devicePixelRatio,t.canvas.width=i*window.devicePixelRatio,t.scale(window.devicePixelRatio,window.devicePixelRatio))}),vt=n.clear=function(n){n.ctx.clearRect(0,0,n.width,n.height)},e=n.fontString=function(n,t,i){return t+" "+n+"px "+i},y=n.longestText=function(n,t,r){n.font=t;var u=0;return i(r,function(t){var i=n.measureText(t).width;u=i>u?i:u}),u},d=n.drawRoundedRectangle=function(n,t,i,r,u,f){n.beginPath();n.moveTo(t+f,i);n.lineTo(t+r-f,i);n.quadraticCurveTo(t+r,i,t+r,i+f);n.lineTo(t+r,i+u-f);n.quadraticCurveTo(t+r,i+u,t+r-f,i+u);n.lineTo(t+f,i+u);n.quadraticCurveTo(t,i+u,t,i+u-f);n.lineTo(t,i+f);n.quadraticCurveTo(t,i,t+f,i);n.closePath()};t.instances={};t.Type=function(n,i,r){this.options=i;this.chart=r;this.id=it();t.instances[this.id]=this;i.responsive&&this.resize();this.initialize.call(this,n)};r(t.Type.prototype,{initialize:function(){return this},clear:function(){return vt(this.chart),this},stop:function(){return et(this.animationFrame),this},resize:function(n){this.stop();var t=this.chart.canvas,i=ct(this.chart.canvas),r=this.options.maintainAspectRatio?i/this.chart.aspectRatio:lt(this.chart.canvas);return t.width=this.chart.width=i,t.height=this.chart.height=r,at(this.chart),"function"==typeof n&&n.apply(this,Array.prototype.slice.call(arguments,1)),this},reflow:a,render:function(t){return t&&this.reflow(),this.options.animation&&!t?n.animationLoop(this.draw,this.options.animationSteps,this.options.animationEasing,this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this.draw(),this.options.onAnimationComplete.call(this)),this},generateLegend:function(){return f(this.options.legendTemplate,this)},destroy:function(){this.clear();ht(this,this.events);var n=this.chart.canvas;n.width=this.chart.width;n.height=this.chart.height;n.style.removeProperty?(n.style.removeProperty("width"),n.style.removeProperty("height")):(n.style.removeAttribute("width"),n.style.removeAttribute("height"));delete t.instances[this.id]},showTooltip:function(r,u){var c,l,e,s;if("undefined"==typeof this.activeElements&&(this.activeElements=[]),c=function(n){var t=!1;return n.length!==this.activeElements.length?t=!0:(i(n,function(n,i){n!==this.activeElements[i]&&(t=!0)},this),t)}.call(this,r),c||u){if(this.activeElements=r,this.draw(),this.options.customTooltips&&this.options.customTooltips(!1),r.length>0)if(this.datasets&&this.datasets.length>1){for(s=this.datasets.length-1;s>=0&&(l=this.datasets[s].points||this.datasets[s].bars||this.datasets[s].segments,e=tt(l,r[0]),-1===e);s--);var a=[],v=[],y=function(){var t,f,s,i,c,l=[],r=[],u=[];return n.each(this.datasets,function(n){t=n.points||n.bars||n.segments;t[e]&&t[e].hasValue()&&l.push(t[e])}),n.each(l,function(t){r.push(t.x);u.push(t.y);a.push(n.template(this.options.multiTooltipTemplate,t));v.push({fill:t._saved.fillColor||t.fillColor,stroke:t._saved.strokeColor||t.strokeColor})},this),c=o(u),s=h(u),i=o(r),f=h(r),{x:i>this.chart.width/2?i:f,y:(c+s)/2}}.call(this,e);new t.MultiTooltip({x:y.x,y:y.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:a,legendColors:v,legendColorBackground:this.options.multiTooltipKeyBackground,title:r[0].label,chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else i(r,function(n){var i=n.tooltipPosition();new t.Tooltip({x:Math.round(i.x),y:Math.round(i.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:f(this.options.tooltipTemplate,n),chart:this.chart,custom:this.options.customTooltips}).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}});t.Type.extend=function(n){var i=this,u=function(){return i.apply(this,arguments)},f,e;return(u.prototype=l(i.prototype),r(u.prototype,n),u.extend=t.Type.extend,n.name||i.prototype.name)?(f=n.name||i.prototype.name,e=t.defaults[i.prototype.name]?l(t.defaults[i.prototype.name]):{},t.defaults[f]=r(e,n.defaults),t.types[f]=u,t.prototype[f]=function(n,i){var r=nt(t.defaults.global,t.defaults[f],i||{});return new u(n,r,this)}):rt("Name not provided for this chart, so it hasn't been registered"),i};t.Element=function(n){r(this,n);this.initialize.apply(this,arguments);this.save()};r(t.Element.prototype,{initialize:function(){},restore:function(n){return n?i(n,function(n){this[n]=this._saved[n]},this):r(this,this._saved),this},save:function(){return this._saved=l(this),delete this._saved._saved,this},update:function(n){return i(n,function(n,t){this._saved[t]=this[t];this[t]=n},this),this},transition:function(n,t){return i(n,function(n,i){this[i]=(n-this._saved[i])*t+this._saved[i]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return u(this.value)}});t.Element.extend=p;t.Point=t.Element.extend({display:!0,inRange:function(n,t){var i=this.hitDetectionRadius+this.radius;return Math.pow(n-this.x,2)+Math.pow(t-this.y,2)<Math.pow(i,2)},draw:function(){if(this.display){var n=this.ctx;n.beginPath();n.arc(this.x,this.y,this.radius,0,2*Math.PI);n.closePath();n.strokeStyle=this.strokeColor;n.lineWidth=this.strokeWidth;n.fillStyle=this.fillColor;n.fill();n.stroke()}}});t.Arc=t.Element.extend({inRange:function(t,i){var r=n.getAngleFromPoint(this,{x:t,y:i}),u=r.angle>=this.startAngle&&r.angle<=this.endAngle,f=r.distance>=this.innerRadius&&r.distance<=this.outerRadius;return u&&f},tooltipPosition:function(){var n=this.startAngle+(this.endAngle-this.startAngle)/2,t=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(n)*t,y:this.y+Math.sin(n)*t}},draw:function(){var n=this.ctx;n.beginPath();n.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle);n.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0);n.closePath();n.strokeStyle=this.strokeColor;n.lineWidth=this.strokeWidth;n.fillStyle=this.fillColor;n.fill();n.lineJoin="bevel";this.showStroke&&n.stroke()}});t.Rectangle=t.Element.extend({draw:function(){var n=this.ctx,f=this.width/2,t=this.x-f,i=this.x+f,r=this.base-(this.base-this.y),u=this.strokeWidth/2;this.showStroke&&(t+=u,i-=u,r+=u);n.beginPath();n.fillStyle=this.fillColor;n.strokeStyle=this.strokeColor;n.lineWidth=this.strokeWidth;n.moveTo(t,this.base);n.lineTo(t,r);n.lineTo(i,r);n.lineTo(i,this.base);n.fill();this.showStroke&&n.stroke()},height:function(){return this.base-this.y},inRange:function(n,t){return n>=this.x-this.width/2&&n<=this.x+this.width/2&&t>=this.y&&t<=this.base}});t.Tooltip=t.Element.extend({draw:function(){var n=this.chart.ctx,r,u;n.font=e(this.fontSize,this.fontStyle,this.fontFamily);this.xAlign="center";this.yAlign="above";var t=this.caretPadding=2,i=n.measureText(this.text).width+2*this.xPadding,f=this.fontSize+2*this.yPadding,o=f+this.caretHeight+t;if(this.x+i/2>this.chart.width?this.xAlign="left":this.x-i/2<0&&(this.xAlign="right"),this.y-o<0&&(this.yAlign="below"),r=this.x-i/2,u=this.y-o,n.fillStyle=this.fillColor,this.custom)this.custom(this);else{switch(this.yAlign){case"above":n.beginPath();n.moveTo(this.x,this.y-t);n.lineTo(this.x+this.caretHeight,this.y-(t+this.caretHeight));n.lineTo(this.x-this.caretHeight,this.y-(t+this.caretHeight));n.closePath();n.fill();break;case"below":u=this.y+t+this.caretHeight;n.beginPath();n.moveTo(this.x,this.y+t);n.lineTo(this.x+this.caretHeight,this.y+t+this.caretHeight);n.lineTo(this.x-this.caretHeight,this.y+t+this.caretHeight);n.closePath();n.fill()}switch(this.xAlign){case"left":r=this.x-i+(this.cornerRadius+this.caretHeight);break;case"right":r=this.x-(this.cornerRadius+this.caretHeight)}d(n,r,u,i,f,this.cornerRadius);n.fill();n.fillStyle=this.textColor;n.textAlign="center";n.textBaseline="middle";n.fillText(this.text,r+i/2,u+f/2)}}});t.MultiTooltip=t.Element.extend({initialize:function(){var n;this.font=e(this.fontSize,this.fontStyle,this.fontFamily);this.titleFont=e(this.titleFontSize,this.titleFontStyle,this.titleFontFamily);this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+1.5*this.titleFontSize;this.ctx.font=this.titleFont;var t=this.ctx.measureText(this.title).width,i=y(this.ctx,this.font,this.labels)+this.fontSize+3,r=h([i,t]);this.width=r+2*this.xPadding;n=this.height/2;this.y-n<0?this.y=n:this.y+n>this.chart.height&&(this.y=this.chart.height-n);this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(n){var t=this.y-this.height/2+this.yPadding,i=n-1;return 0===n?t+this.titleFontSize/2:t+(1.5*this.fontSize*i+this.fontSize/2)+1.5*this.titleFontSize},draw:function(){if(this.custom)this.custom(this);else{d(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius);var t=this.ctx;t.fillStyle=this.fillColor;t.fill();t.closePath();t.textAlign="left";t.textBaseline="middle";t.fillStyle=this.titleTextColor;t.font=this.titleFont;t.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0));t.font=this.font;n.each(this.labels,function(n,i){t.fillStyle=this.textColor;t.fillText(n,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(i+1));t.fillStyle=this.legendColorBackground;t.fillRect(this.x+this.xPadding,this.getLineHeight(i+1)-this.fontSize/2,this.fontSize,this.fontSize);t.fillStyle=this.legendColors[i].fill;t.fillRect(this.x+this.xPadding,this.getLineHeight(i+1)-this.fontSize/2,this.fontSize,this.fontSize)},this)}}});t.Scale=t.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var t=w(this.stepValue),n=0;n<=this.steps;n++)this.yLabels.push(f(this.templateString,{value:(this.min+n*this.stepValue).toFixed(t)}));this.yLabelWidth=this.display&&this.showLabels?y(this.ctx,this.font,this.yLabels):0},addXLabel:function(n){this.xLabels.push(n);this.valuesCount++;this.fit()},removeXLabel:function(){this.xLabels.shift();this.valuesCount--;this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0;this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height;this.startPoint+=this.padding;this.endPoint-=this.padding;var t,n=this.endPoint-this.startPoint;for(this.calculateYRange(n),this.buildYLabels(),this.calculateXLabelRotation();n>this.endPoint-this.startPoint;)n=this.endPoint-this.startPoint,t=this.yLabelWidth,this.calculateYRange(n),this.buildYLabels(),t<this.yLabelWidth&&this.calculateXLabelRotation()},calculateXLabelRotation:function(){var r,e,n,u,t,i,f;if(this.ctx.font=this.font,n=this.ctx.measureText(this.xLabels[0]).width,u=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width,this.xScalePaddingRight=u/2+3,this.xScalePaddingLeft=n/2>this.yLabelWidth+10?n/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display){for(i=y(this.ctx,this.font,this.xLabels),this.xLabelWidth=i,f=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>f&&0===this.xLabelRotation||this.xLabelWidth>f&&this.xLabelRotation<=90&&this.xLabelRotation>0;)t=Math.cos(v(this.xLabelRotation)),r=t*n,e=t*u,r+this.fontSize/2>this.yLabelWidth+8&&(this.xScalePaddingLeft=r+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=t*i;this.xLabelRotation>0&&(this.endPoint-=Math.sin(v(this.xLabelRotation))*i+3)}else this.xLabelWidth=0,this.xScalePaddingRight=this.padding,this.xScalePaddingLeft=this.padding},calculateYRange:a,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(n){var t=this.drawingArea()/(this.min-this.max);return this.endPoint-t*(n-this.min)},calculateX:function(n){var r=(this.xLabelRotation>0,this.width-(this.xScalePaddingLeft+this.xScalePaddingRight)),t=r/Math.max(this.valuesCount-(this.offsetGridLines?0:1),1),i=t*n+this.xScalePaddingLeft;return this.offsetGridLines&&(i+=t/2),Math.round(i)},update:function(t){n.extend(this,t);this.fit()},draw:function(){var t=this.ctx,u=(this.endPoint-this.startPoint)/this.steps,r=Math.round(this.xScalePaddingLeft);this.display&&(t.fillStyle=this.textColor,t.font=this.font,i(this.yLabels,function(i,f){var s=this.endPoint-u*f,e=Math.round(s),o=this.showHorizontalLines;t.textAlign="right";t.textBaseline="middle";this.showLabels&&t.fillText(i,r-10,s);0!==f||o||(o=!0);o&&t.beginPath();f>0?(t.lineWidth=this.gridLineWidth,t.strokeStyle=this.gridLineColor):(t.lineWidth=this.lineWidth,t.strokeStyle=this.lineColor);e+=n.aliasPixel(t.lineWidth);o&&(t.moveTo(r,e),t.lineTo(this.width,e),t.stroke(),t.closePath());t.lineWidth=this.lineWidth;t.strokeStyle=this.lineColor;t.beginPath();t.moveTo(r-5,e);t.lineTo(r,e);t.stroke();t.closePath()},this),i(this.xLabels,function(n,i){var e=this.calculateX(i)+b(this.lineWidth),r=this.calculateX(i-(this.offsetGridLines?.5:0))+b(this.lineWidth),f=this.xLabelRotation>0,u=this.showVerticalLines;0!==i||u||(u=!0);u&&t.beginPath();i>0?(t.lineWidth=this.gridLineWidth,t.strokeStyle=this.gridLineColor):(t.lineWidth=this.lineWidth,t.strokeStyle=this.lineColor);u&&(t.moveTo(r,this.endPoint),t.lineTo(r,this.startPoint-3),t.stroke(),t.closePath());t.lineWidth=this.lineWidth;t.strokeStyle=this.lineColor;t.beginPath();t.moveTo(r,this.endPoint);t.lineTo(r,this.endPoint+5);t.stroke();t.closePath();t.save();t.translate(e,f?this.endPoint+12:this.endPoint+8);t.rotate(-1*v(this.xLabelRotation));t.font=this.font;t.textAlign=f?"right":"center";t.textBaseline=f?"middle":"top";t.fillText(n,0,0);t.restore()},this))}});t.RadialScale=t.Element.extend({initialize:function(){this.size=o([this.height,this.width]);this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(n){var t=this.drawingArea/(this.max-this.min);return(n-this.min)*t},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize();this.buildYLabels()},buildYLabels:function(){this.yLabels=[];for(var t=w(this.stepValue),n=0;n<=this.steps;n++)this.yLabels.push(f(this.templateString,{value:(this.min+n*this.stepValue).toFixed(t)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var t,n,i,h,a,y,v,p,w,b,r,s,k=o([this.height/2-this.pointLabelFontSize-5,this.width/2]),c=this.width,l=0;for(this.ctx.font=e(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),n=0;n<this.valuesCount;n++)t=this.getPointPosition(n,k),i=this.ctx.measureText(f(this.templateString,{value:this.labels[n]})).width+5,0===n||n===this.valuesCount/2?(h=i/2,t.x+h>c&&(c=t.x+h,a=n),t.x-h<l&&(l=t.x-h,v=n)):n<this.valuesCount/2?t.x+i>c&&(c=t.x+i,a=n):n>this.valuesCount/2&&t.x-i<l&&(l=t.x-i,v=n);w=l;b=Math.ceil(c-this.width);y=this.getIndexAngle(a);p=this.getIndexAngle(v);r=b/Math.sin(y+Math.PI/2);s=w/Math.sin(p+Math.PI/2);r=u(r)?r:0;s=u(s)?s:0;this.drawingArea=k-(s+r)/2;this.setCenterPoint(s,r)},setCenterPoint:function(n,t){var i=this.width-t-this.drawingArea,r=n+this.drawingArea;this.xCenter=(r+i)/2;this.yCenter=this.height/2},getIndexAngle:function(n){var t=2*Math.PI/this.valuesCount;return n*t-Math.PI/2},getPointPosition:function(n,t){var i=this.getIndexAngle(n);return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter}},draw:function(){var n,t,u,f;if(this.display&&(n=this.ctx,i(this.yLabels,function(t,i){var r,f,o,u,s;if(i>0){if(f=i*(this.drawingArea/this.steps),o=this.yCenter-f,this.lineWidth>0)if(n.strokeStyle=this.lineColor,n.lineWidth=this.lineWidth,this.lineArc)n.beginPath(),n.arc(this.xCenter,this.yCenter,f,0,2*Math.PI),n.closePath(),n.stroke();else{for(n.beginPath(),u=0;u<this.valuesCount;u++)r=this.getPointPosition(u,this.calculateCenterOffset(this.min+i*this.stepValue)),0===u?n.moveTo(r.x,r.y):n.lineTo(r.x,r.y);n.closePath();n.stroke()}this.showLabels&&((n.font=e(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop)&&(s=n.measureText(t).width,n.fillStyle=this.backdropColor,n.fillRect(this.xCenter-s/2-this.backdropPaddingX,o-this.fontSize/2-this.backdropPaddingY,s+2*this.backdropPaddingX,this.fontSize+2*this.backdropPaddingY)),n.textAlign="center",n.textBaseline="middle",n.fillStyle=this.fontColor,n.fillText(t,this.xCenter,o))}},this),!this.lineArc))for(n.lineWidth=this.angleLineWidth,n.strokeStyle=this.angleLineColor,t=this.valuesCount-1;t>=0;t--){this.angleLineWidth>0&&(u=this.getPointPosition(t,this.calculateCenterOffset(this.max)),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(u.x,u.y),n.stroke(),n.closePath());f=this.getPointPosition(t,this.calculateCenterOffset(this.max)+5);n.font=e(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily);n.fillStyle=this.pointLabelFontColor;var s=this.labels.length,o=this.labels.length/2,r=o/2,h=r>t||t>s-r,c=t===r||t===s-r;n.textAlign=0===t?"center":t===o?"center":o>t?"left":"right";n.textBaseline=c?"middle":h?"bottom":"top";n.fillText(this.labels[t],f.x,f.y)}}});n.addEvent(window,"resize",function(){var n;return function(){clearTimeout(n);n=setTimeout(function(){i(t.instances,function(n){n.options.responsive&&n.resize(n.render,!0)})},50)}}());ut?define(function(){return t}):"object"==typeof module&&module.exports&&(module.exports=t);c.Chart=t;t.noConflict=function(){return c.Chart=g,t}}).call(this),function(){"use strict";var i=this,t=i.Chart,n=t.helpers;t.Type.extend({name:"Bar",defaults:{scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"><\/span><%if(datasets[i].label){%><%=datasets[i].label%><%}%><\/li><%}%><\/ul>'},initialize:function(i){var r=this.options;this.ScaleClass=t.Scale.extend({offsetGridLines:!0,calculateBarX:function(n,t,i){var f=this.calculateBaseWidth(),e=this.calculateX(i)-f/2,u=this.calculateBarWidth(n);return e+u*t+t*r.barDatasetSpacing+u/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*r.barValueSpacing},calculateBarWidth:function(n){var t=this.calculateBaseWidth()-(n-1)*r.barDatasetSpacing;return t/n}});this.datasets=[];this.options.showTooltips&&n.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getBarsAtEvent(t):[];this.eachBars(function(n){n.restore(["fillColor","strokeColor"])});n.each(i,function(n){n.fillColor=n.highlightFill;n.strokeColor=n.highlightStroke});this.showTooltip(i)});this.BarClass=t.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx});n.each(i.datasets,function(t){var r={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,bars:[]};this.datasets.push(r);n.each(t.data,function(n,u){r.bars.push(new this.BarClass({value:n,label:i.labels[u],datasetLabel:t.label,strokeColor:t.strokeColor,fillColor:t.fillColor,highlightFill:t.highlightFill||t.fillColor,highlightStroke:t.highlightStroke||t.strokeColor}))},this)},this);this.buildScale(i.labels);this.BarClass.prototype.base=this.scale.endPoint;this.eachBars(function(t,i,r){n.extend(t,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,r,i),y:this.scale.endPoint});t.save()},this);this.render()},update:function(){this.scale.update();n.each(this.activeElements,function(n){n.restore(["fillColor","strokeColor"])});this.eachBars(function(n){n.save()});this.render()},eachBars:function(t){n.each(this.datasets,function(i,r){n.each(i.bars,t,this,r)},this)},getBarsAtEvent:function(t){for(var i,u=[],f=n.getRelativePosition(t),e=function(n){u.push(n.bars[i])},r=0;r<this.datasets.length;r++)for(i=0;i<this.datasets[r].bars.length;i++)if(this.datasets[r].bars[i].inRange(f.x,f.y))return n.each(this.datasets,e),u;return u},buildScale:function(t){var r=this,u=function(){var n=[];return r.eachBars(function(t){n.push(t.value)}),n},i={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:t.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(t){var i=n.calculateScaleRange(u(),t,this.fontSize,this.beginAtZero,this.integersOnly);n.extend(this,i)},xLabels:t,font:n.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&n.extend(i,{calculateYRange:n.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth});this.scale=new this.ScaleClass(i)},addData:function(t,i){n.each(t,function(n,t){this.datasets[t].bars.push(new this.BarClass({value:n,label:i,x:this.scale.calculateBarX(this.datasets.length,t,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[t].strokeColor,fillColor:this.datasets[t].fillColor}))},this);this.scale.addXLabel(i);this.update()},removeData:function(){this.scale.removeXLabel();n.each(this.datasets,function(n){n.bars.shift()},this);this.update()},reflow:function(){n.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});var t=n.extend({height:this.chart.height,width:this.chart.width});this.scale.update(t)},draw:function(t){var i=t||1;this.clear();this.chart.ctx;this.scale.draw(i);n.each(this.datasets,function(t,r){n.each(t.bars,function(n,t){n.hasValue()&&(n.base=this.scale.endPoint,n.transition({x:this.scale.calculateBarX(this.datasets.length,r,t),y:this.scale.calculateY(n.value),width:this.scale.calculateBarWidth(this.datasets.length)},i).draw())},this)},this)}})}.call(this),function(){"use strict";var r=this,t=r.Chart,n=t.helpers,i={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"><\/span><%if(segments[i].label){%><%=segments[i].label%><%}%><\/li><%}%><\/ul>'};t.Type.extend({name:"Doughnut",defaults:i,initialize:function(i){this.segments=[];this.outerRadius=(n.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2;this.SegmentArc=t.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2});this.options.showTooltips&&n.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getSegmentsAtEvent(t):[];n.each(this.segments,function(n){n.restore(["fillColor"])});n.each(i,function(n){n.fillColor=n.highlightColor});this.showTooltip(i)});this.calculateTotal(i);n.each(i,function(n,t){this.addData(n,t,!0)},this);this.render()},getSegmentsAtEvent:function(t){var i=[],r=n.getRelativePosition(t);return n.each(this.segments,function(n){n.inRange(r.x,r.y)&&i.push(n)},this),i},addData:function(n,t,i){var r=t||this.segments.length;this.segments.splice(r,0,new this.SegmentArc({value:n.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:n.color,highlightColor:n.highlight||n.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(n.value),label:n.label}));i||(this.reflow(),this.update())},calculateCircumference:function(n){return 2*Math.PI*(Math.abs(n)/this.total)},calculateTotal:function(t){this.total=0;n.each(t,function(n){this.total+=Math.abs(n.value)},this)},update:function(){this.calculateTotal(this.segments);n.each(this.activeElements,function(n){n.restore(["fillColor"])});n.each(this.segments,function(n){n.save()});this.render()},removeData:function(t){var i=n.isNumber(t)?t:this.segments.length-1;this.segments.splice(i,1);this.reflow();this.update()},reflow:function(){n.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2});this.outerRadius=(n.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2;n.each(this.segments,function(n){n.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(t){var i=t?t:1;this.clear();n.each(this.segments,function(n,t){n.transition({circumference:this.calculateCircumference(n.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},i);n.endAngle=n.startAngle+n.circumference;n.draw();0===t&&(n.startAngle=1.5*Math.PI);t<this.segments.length-1&&(this.segments[t+1].startAngle=n.endAngle)},this)}});t.types.Doughnut.extend({name:"Pie",defaults:n.merge(i,{percentageInnerCutout:0})})}.call(this),function(){"use strict";var i=this,t=i.Chart,n=t.helpers;t.Type.extend({name:"Line",defaults:{scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"><\/span><%if(datasets[i].label){%><%=datasets[i].label%><%}%><\/li><%}%><\/ul>'},initialize:function(i){this.PointClass=t.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(n){return Math.pow(n-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}});this.datasets=[];this.options.showTooltips&&n.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(n){n.restore(["fillColor","strokeColor"])});n.each(i,function(n){n.fillColor=n.highlightFill;n.strokeColor=n.highlightStroke});this.showTooltip(i)});n.each(i.datasets,function(t){var r={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,pointColor:t.pointColor,pointStrokeColor:t.pointStrokeColor,points:[]};this.datasets.push(r);n.each(t.data,function(n,u){r.points.push(new this.PointClass({value:n,label:i.labels[u],datasetLabel:t.label,strokeColor:t.pointStrokeColor,fillColor:t.pointColor,highlightFill:t.pointHighlightFill||t.pointColor,highlightStroke:t.pointHighlightStroke||t.pointStrokeColor}))},this);this.buildScale(i.labels);this.eachPoints(function(t,i){n.extend(t,{x:this.scale.calculateX(i),y:this.scale.endPoint});t.save()},this)},this);this.render()},update:function(){this.scale.update();n.each(this.activeElements,function(n){n.restore(["fillColor","strokeColor"])});this.eachPoints(function(n){n.save()});this.render()},eachPoints:function(t){n.each(this.datasets,function(i){n.each(i.points,t,this)},this)},getPointsAtEvent:function(t){var i=[],r=n.getRelativePosition(t);return n.each(this.datasets,function(t){n.each(t.points,function(n){n.inRange(r.x,r.y)&&i.push(n)})},this),i},buildScale:function(i){var u=this,f=function(){var n=[];return u.eachPoints(function(t){n.push(t.value)}),n},r={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:i.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(t){var i=n.calculateScaleRange(f(),t,this.fontSize,this.beginAtZero,this.integersOnly);n.extend(this,i)},xLabels:i,font:n.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&n.extend(r,{calculateYRange:n.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth});this.scale=new t.Scale(r)},addData:function(t,i){n.each(t,function(n,t){this.datasets[t].points.push(new this.PointClass({value:n,label:i,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[t].pointStrokeColor,fillColor:this.datasets[t].pointColor}))},this);this.scale.addXLabel(i);this.update()},removeData:function(){this.scale.removeXLabel();n.each(this.datasets,function(n){n.points.shift()},this);this.update()},reflow:function(){var t=n.extend({height:this.chart.height,width:this.chart.width});this.scale.update(t)},draw:function(t){var u=t||1;this.clear();var i=this.chart.ctx,r=function(n){return null!==n.value},e=function(t,i,u){return n.findNextWhere(i,r,u)||t},f=function(t,i,u){return n.findPreviousWhere(i,r,u)||t};this.scale.draw(u);n.each(this.datasets,function(t){var o=n.where(t.points,r);n.each(t.points,function(n,t){n.hasValue()&&n.transition({y:this.scale.calculateY(n.value),x:this.scale.calculateX(t)},u)},this);this.options.bezierCurve&&n.each(o,function(t,i){var r=i>0&&i<o.length-1?this.options.bezierCurveTension:0;t.controlPoints=n.splineCurve(f(t,o,i),t,e(t,o,i),r);t.controlPoints.outer.y>this.scale.endPoint?t.controlPoints.outer.y=this.scale.endPoint:t.controlPoints.outer.y<this.scale.startPoint&&(t.controlPoints.outer.y=this.scale.startPoint);t.controlPoints.inner.y>this.scale.endPoint?t.controlPoints.inner.y=this.scale.endPoint:t.controlPoints.inner.y<this.scale.startPoint&&(t.controlPoints.inner.y=this.scale.startPoint)},this);i.lineWidth=this.options.datasetStrokeWidth;i.strokeStyle=t.strokeColor;i.beginPath();n.each(o,function(n,t){if(0===t)i.moveTo(n.x,n.y);else if(this.options.bezierCurve){var r=f(n,o,t);i.bezierCurveTo(r.controlPoints.outer.x,r.controlPoints.outer.y,n.controlPoints.inner.x,n.controlPoints.inner.y,n.x,n.y)}else i.lineTo(n.x,n.y)},this);i.stroke();this.options.datasetFill&&o.length>0&&(i.lineTo(o[o.length-1].x,this.scale.endPoint),i.lineTo(o[0].x,this.scale.endPoint),i.fillStyle=t.fillColor,i.closePath(),i.fill());n.each(o,function(n){n.draw()})},this)}})}.call(this),function(){"use strict";var i=this,t=i.Chart,n=t.helpers;t.Type.extend({name:"PolarArea",defaults:{scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"><\/span><%if(segments[i].label){%><%=segments[i].label%><%}%><\/li><%}%><\/ul>'},initialize:function(i){this.segments=[];this.SegmentArc=t.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2});this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:i.length});this.updateScaleRange(i);this.scale.update();n.each(i,function(n,t){this.addData(n,t,!0)},this);this.options.showTooltips&&n.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getSegmentsAtEvent(t):[];n.each(this.segments,function(n){n.restore(["fillColor"])});n.each(i,function(n){n.fillColor=n.highlightColor});this.showTooltip(i)});this.render()},getSegmentsAtEvent:function(t){var i=[],r=n.getRelativePosition(t);return n.each(this.segments,function(n){n.inRange(r.x,r.y)&&i.push(n)},this),i},addData:function(n,t,i){var r=t||this.segments.length;this.segments.splice(r,0,new this.SegmentArc({fillColor:n.color,highlightColor:n.highlight||n.color,label:n.label,value:n.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(n.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI}));i||(this.reflow(),this.update())},removeData:function(t){var i=n.isNumber(t)?t:this.segments.length-1;this.segments.splice(i,1);this.reflow();this.update()},calculateTotal:function(t){this.total=0;n.each(t,function(n){this.total+=n.value},this);this.scale.valuesCount=this.segments.length},updateScaleRange:function(t){var i=[],r;n.each(t,function(n){i.push(n.value)});r=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:n.calculateScaleRange(i,n.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);n.extend(this.scale,r,{size:n.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments);n.each(this.segments,function(n){n.save()});this.reflow();this.render()},reflow:function(){n.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2});this.updateScaleRange(this.segments);this.scale.update();n.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2});n.each(this.segments,function(n){n.update({outerRadius:this.scale.calculateCenterOffset(n.value)})},this)},draw:function(t){var i=t||1;this.clear();n.each(this.segments,function(n,t){n.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(n.value)},i);n.endAngle=n.startAngle+n.circumference;0===t&&(n.startAngle=1.5*Math.PI);t<this.segments.length-1&&(this.segments[t+1].startAngle=n.endAngle);n.draw()},this);this.scale.draw()}})}.call(this),function(){"use strict";var i=this,t=i.Chart,n=t.helpers;t.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"><\/span><%if(datasets[i].label){%><%=datasets[i].label%><%}%><\/li><%}%><\/ul>'},initialize:function(i){this.PointClass=t.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx});this.datasets=[];this.buildScale(i);this.options.showTooltips&&n.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(n){n.restore(["fillColor","strokeColor"])});n.each(i,function(n){n.fillColor=n.highlightFill;n.strokeColor=n.highlightStroke});this.showTooltip(i)});n.each(i.datasets,function(t){var r={label:t.label||null,fillColor:t.fillColor,strokeColor:t.strokeColor,pointColor:t.pointColor,pointStrokeColor:t.pointStrokeColor,points:[]};this.datasets.push(r);n.each(t.data,function(n,u){var f;this.scale.animation||(f=this.scale.getPointPosition(u,this.scale.calculateCenterOffset(n)));r.points.push(new this.PointClass({value:n,label:i.labels[u],datasetLabel:t.label,x:this.options.animation?this.scale.xCenter:f.x,y:this.options.animation?this.scale.yCenter:f.y,strokeColor:t.pointStrokeColor,fillColor:t.pointColor,highlightFill:t.pointHighlightFill||t.pointColor,highlightStroke:t.pointHighlightStroke||t.pointStrokeColor}))},this)},this);this.render()},eachPoints:function(t){n.each(this.datasets,function(i){n.each(i.points,t,this)},this)},getPointsAtEvent:function(t){var f=n.getRelativePosition(t),r=n.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},f),e=2*Math.PI/this.scale.valuesCount,i=Math.round((r.angle-1.5*Math.PI)/e),u=[];return(i>=this.scale.valuesCount||0>i)&&(i=0),r.distance<=this.scale.drawingArea&&n.each(this.datasets,function(n){u.push(n.points[i])}),u},buildScale:function(n){this.scale=new t.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:n.labels,valuesCount:n.datasets[0].data.length});this.scale.setScaleSize();this.updateScaleRange(n.datasets);this.scale.buildYLabels()},updateScaleRange:function(t){var i=function(){var i=[];return n.each(t,function(t){t.data?i=i.concat(t.data):n.each(t.points,function(n){i.push(n.value)})}),i}(),r=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:n.calculateScaleRange(i,n.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);n.extend(this.scale,r)},addData:function(t,i){this.scale.valuesCount++;n.each(t,function(n,t){var r=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(n));this.datasets[t].points.push(new this.PointClass({value:n,label:i,x:r.x,y:r.y,strokeColor:this.datasets[t].pointStrokeColor,fillColor:this.datasets[t].pointColor}))},this);this.scale.labels.push(i);this.reflow();this.update()},removeData:function(){this.scale.valuesCount--;this.scale.labels.shift();n.each(this.datasets,function(n){n.points.shift()},this);this.reflow();this.update()},update:function(){this.eachPoints(function(n){n.save()});this.reflow();this.render()},reflow:function(){n.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:n.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2});this.updateScaleRange(this.datasets);this.scale.setScaleSize();this.scale.buildYLabels()},draw:function(t){var r=t||1,i=this.chart.ctx;this.clear();this.scale.draw();n.each(this.datasets,function(t){n.each(t.points,function(n,t){n.hasValue()&&n.transition(this.scale.getPointPosition(t,this.scale.calculateCenterOffset(n.value)),r)},this);i.lineWidth=this.options.datasetStrokeWidth;i.strokeStyle=t.strokeColor;i.beginPath();n.each(t.points,function(n,t){0===t?i.moveTo(n.x,n.y):i.lineTo(n.x,n.y)},this);i.closePath();i.stroke();i.fillStyle=t.fillColor;i.fill();n.each(t.points,function(n){n.hasValue()&&n.draw()})},this)}})}.call(this);window.Modernizr=function(n,t,i){function l(n){p.cssText=n}function u(n,t){return typeof n===t}var r={},y=t.documentElement,a=t.createElement("modernizr"),p=a.style,w,g={}.toString,f={},v=[],s=v.slice,e,h={}.hasOwnProperty,c,o;c=!u(h,"undefined")&&!u(h.call,"undefined")?function(n,t){return h.call(n,t)}:function(n,t){return t in n&&u(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=s.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(s.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(s.call(arguments)))},r});f.canvas=function(){var n=t.createElement("canvas");return!!n.getContext&&!!n.getContext("2d")};for(o in f)c(f,o)&&(e=o.toLowerCase(),r[e]=f[o](),v.push((r[e]?"":"no-")+e));return r.addTest=function(n,t){if(typeof n=="object")for(var u in n)c(n,u)&&r.addTest(u,n[u]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t=typeof t=="function"?t():t;typeof enableClasses!="undefined"&&enableClasses&&(y.className+=" "+(t?"":"no-")+n);r[n]=t}return r},l(""),a=w=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)?f.frag.appendChild(e):e}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;f<h;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var f=u(n);return r.shivCSS&&!e&&!f.hasCSS&&(f.hasCSS=!!v(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||p(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,e,l="_html5shiv",o=0,a={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){e=!0;i=!0}})();r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),r._version="2.6.2",r}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))}; /*! * jQuery Form Plugin * version: 3.51.0-2014.06.20 * Requires jQuery v1.5 or later * Copyright (c) 2014 M. Alsup * Examples and documentation at: http://malsup.com/jquery/form/ * Project repository: https://github.com/malsup/form * Dual licensed under the MIT and GPL licenses. * https://github.com/malsup/form#copyright-and-license */ !function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):n("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(n){"use strict";function r(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),n(t.target).ajaxSubmit(i))}function u(t){var r=t.target,u=n(r),f,i,e;if(!u.is("[type=submit],[type=image]")){if(f=u.closest("[type=submit]"),0===f.length)return;r=f[0]}i=this;(i.clk=r,"image"==r.type)&&(void 0!==t.offsetX?(i.clk_x=t.offsetX,i.clk_y=t.offsetY):"function"==typeof n.fn.offset?(e=u.offset(),i.clk_x=t.pageX-e.left,i.clk_y=t.pageY-e.top):(i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop));setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function t(){if(n.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var i={},f;i.fileapi=void 0!==n("<input type='file'/>").get(0).files;i.formdata=void 0!==window.FormData;f=!!n.fn.prop;n.fn.attr2=function(){if(!f)return this.attr.apply(this,arguments);var n=this.prop.apply(this,arguments);return n&&n.jquery||"string"==typeof n?n:this.attr.apply(this,arguments)};n.fn.ajaxSubmit=function(r){function et(t){for(var f,u=n.param(t,r.traditional).split("&"),o=u.length,e=[],i=0;o>i;i++)u[i]=u[i].replace(/\+/g," "),f=u[i].split("="),e.push([decodeURIComponent(f[0]),decodeURIComponent(f[1])]);return e}function ot(t){for(var f,u,s,o=new FormData,i=0;i<t.length;i++)o.append(t[i].name,t[i].value);if(r.extraData)for(f=et(r.extraData),i=0;i<f.length;i++)f[i]&&o.append(f[i][0],f[i][1]);return r.data=null,u=n.extend(!0,{},n.ajaxSettings,r,{contentType:!1,processData:!1,cache:!1,type:e||"POST"}),r.uploadProgress&&(u.xhr=function(){var t=n.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(n){var t=0,i=n.loaded||n.position,u=n.total;n.lengthComputable&&(t=Math.ceil(i/u*100));r.uploadProgress(n,i,u,t)},!1),t}),u.data=null,s=u.beforeSend,u.beforeSend=function(n,t){t.data=r.formData?r.formData:o;s&&s.call(this,n,t)},n.ajax(u)}function d(i){function ut(n){var i=null;try{n.contentWindow&&(i=n.contentWindow.document)}catch(r){t("cannot get iframe.contentWindow document: "+r)}if(i)return i;try{i=n.contentDocument?n.contentDocument:n.document}catch(r){t("cannot get iframe.contentDocument: "+r);i=n.document}return i}function ft(){function f(){try{var n=ut(a).readyState;t("state = "+n);n&&"uninitialized"==n.toLowerCase()&&setTimeout(f,50)}catch(i){t("Server abort: ",i," (",i.name,")");b(rt);g&&clearTimeout(g);g=void 0}}var s=u.attr2("target"),h=u.attr2("action"),y=u.attr("enctype")||u.attr("encoding")||"multipart/form-data",r,i,c;l.setAttribute("target",d);(!e||/post/i.test(e))&&l.setAttribute("method","POST");h!=o.url&&l.setAttribute("action",o.url);o.skipEncodingOverride||e&&!/post/i.test(e)||u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});o.timeout&&(g=setTimeout(function(){it=!0;b(et)},o.timeout));r=[];try{if(o.extraData)for(i in o.extraData)o.extraData.hasOwnProperty(i)&&r.push(n.isPlainObject(o.extraData[i])&&o.extraData[i].hasOwnProperty("name")&&o.extraData[i].hasOwnProperty("value")?n('<input type="hidden" name="'+o.extraData[i].name+'">').val(o.extraData[i].value).appendTo(l)[0]:n('<input type="hidden" name="'+i+'">').val(o.extraData[i]).appendTo(l)[0]);o.iframeTarget||v.appendTo("body");a.attachEvent?a.attachEvent("onload",b):a.addEventListener("load",b,!1);setTimeout(f,15);try{l.submit()}catch(p){c=document.createElement("form").submit;c.apply(l)}}finally{l.setAttribute("action",h);l.setAttribute("enctype",y);s?l.setAttribute("target",s):u.removeAttr("target");n(r).remove()}}function b(i){var u,r,w,f,k,d,e,c,l;if(!s.aborted&&!ct){if(h=ut(a),h||(t("cannot access response document"),i=rt),i===et&&s)return s.abort("timeout"),void y.reject(s,"timeout");if(i==rt&&s)return s.abort("server abort"),void y.reject(s,"error","server abort");if(h&&h.location.href!=o.iframeSrc||it){a.detachEvent?a.detachEvent("onload",b):a.removeEventListener("load",b,!1);r="success";try{if(it)throw"timeout";if(w="xml"==o.dataType||h.XMLDocument||n.isXMLDoc(h),t("isXml="+w),!w&&window.opera&&(null===h.body||!h.body.innerHTML)&&--lt)return t("requeing onLoad callback, DOM not available"),void setTimeout(b,250);f=h.body?h.body:h.documentElement;s.responseText=f?f.innerHTML:null;s.responseXML=h.XMLDocument?h.XMLDocument:h;w&&(o.dataType="xml");s.getResponseHeader=function(n){var t={"content-type":o.dataType};return t[n.toLowerCase()]};f&&(s.status=Number(f.getAttribute("status"))||s.status,s.statusText=f.getAttribute("statusText")||s.statusText);k=(o.dataType||"").toLowerCase();d=/(json|script|text)/.test(k);d||o.textarea?(e=h.getElementsByTagName("textarea")[0],e?(s.responseText=e.value,s.status=Number(e.getAttribute("status"))||s.status,s.statusText=e.getAttribute("statusText")||s.statusText):d&&(c=h.getElementsByTagName("pre")[0],l=h.getElementsByTagName("body")[0],c?s.responseText=c.textContent?c.textContent:c.innerText:l&&(s.responseText=l.textContent?l.textContent:l.innerText))):"xml"==k&&!s.responseXML&&s.responseText&&(s.responseXML=at(s.responseText));try{ht=yt(s,k,o)}catch(nt){r="parsererror";s.error=u=nt||r}}catch(nt){t("error caught: ",nt);r="error";s.error=u=nt||r}s.aborted&&(t("upload aborted"),r=null);s.status&&(r=s.status>=200&&s.status<300||304===s.status?"success":"error");"success"===r?(o.success&&o.success.call(o.context,ht,"success",s),y.resolve(s.responseText,"success",s),p&&n.event.trigger("ajaxSuccess",[s,o])):r&&(void 0===u&&(u=s.statusText),o.error&&o.error.call(o.context,s,r,u),y.reject(s,"error",u),p&&n.event.trigger("ajaxError",[s,o,u]));p&&n.event.trigger("ajaxComplete",[s,o]);p&&!--n.active&&n.event.trigger("ajaxStop");o.complete&&o.complete.call(o.context,s,r);ct=!0;o.timeout&&clearTimeout(g);setTimeout(function(){o.iframeTarget?v.attr("src",o.iframeSrc):v.remove();s.responseXML=null},100)}}}var tt,nt,o,p,d,v,a,s,k,w,it,g,l=u[0],y=n.Deferred();if(y.abort=function(n){s.abort(n)},i)for(nt=0;nt<c.length;nt++)tt=n(c[nt]),f?tt.prop("disabled",!1):tt.removeAttr("disabled");if(o=n.extend(!0,{},n.ajaxSettings,r),o.context=o.context||o,d="jqFormIO"+(new Date).getTime(),o.iframeTarget?(v=n(o.iframeTarget),w=v.attr2("name"),w?d=w:v.attr2("name",d)):(v=n('<iframe name="'+d+'" src="'+o.iframeSrc+'" />'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),a=v[0],s={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(i){var r="timeout"===i?"timeout":"aborted";t("aborting upload... "+r);this.aborted=1;try{a.contentWindow.document.execCommand&&a.contentWindow.document.execCommand("Stop")}catch(u){}v.attr("src",o.iframeSrc);s.error=r;o.error&&o.error.call(o.context,s,r,i);p&&n.event.trigger("ajaxError",[s,o,r]);o.complete&&o.complete.call(o.context,s,r)}},p=o.global,p&&0==n.active++&&n.event.trigger("ajaxStart"),p&&n.event.trigger("ajaxSend",[s,o]),o.beforeSend&&o.beforeSend.call(o.context,s,o)===!1)return o.global&&n.active--,y.reject(),y;if(s.aborted)return y.reject(),y;k=l.clk;k&&(w=k.name,w&&!k.disabled&&(o.extraData=o.extraData||{},o.extraData[w]=k.value,"image"==k.type&&(o.extraData[w+".x"]=l.clk_x,o.extraData[w+".y"]=l.clk_y)));var et=1,rt=2,ot=n("meta[name=csrf-token]").attr("content"),st=n("meta[name=csrf-param]").attr("content");st&&ot&&(o.extraData=o.extraData||{},o.extraData[st]=ot);o.forceSync?ft():setTimeout(ft,10);var ht,h,ct,lt=50,at=n.parseXML||function(n,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n)):t=(new DOMParser).parseFromString(n,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},vt=n.parseJSON||function(n){return window.eval("("+n+")")},yt=function(t,i,r){var f=t.getResponseHeader("content-type")||"",e="xml"===i||!i&&f.indexOf("xml")>=0,u=e?t.responseXML:t.responseText;return e&&"parsererror"===u.documentElement.nodeName&&n.error&&n.error("parsererror"),r&&r.dataFilter&&(u=r.dataFilter(u,i)),"string"==typeof u&&("json"===i||!i&&f.indexOf("json")>=0?u=vt(u):("script"===i||!i&&f.indexOf("javascript")>=0)&&n.globalEval(u)),u};return y}var e,b,o,u,a,v,y,c,s,l,h,g,nt,tt,p,ft,w;if(!this.length)return t("ajaxSubmit: skipping submit process - no element selected"),this;if(u=this,"function"==typeof r?r={success:r}:void 0===r&&(r={}),e=r.type||this.attr2("method"),b=r.url||this.attr2("action"),o="string"==typeof b?n.trim(b):"",o=o||window.location.href||"",o&&(o=(o.match(/^([^#]+)/)||[])[1]),r=n.extend(!0,{url:o,success:n.ajaxSettings.success,type:e||n.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},r),a={},this.trigger("form-pre-serialize",[this,r,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(r.beforeSerialize&&r.beforeSerialize(this,r)===!1)return t("ajaxSubmit: submit aborted via beforeSerialize callback"),this;if(v=r.traditional,void 0===v&&(v=n.ajaxSettings.traditional),c=[],s=this.formToArray(r.semantic,c),r.data&&(r.extraData=r.data,y=n.param(r.data,v)),r.beforeSubmit&&r.beforeSubmit(s,this,r)===!1)return t("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[s,this,r,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;l=n.param(s,v);y&&(l=l?l+"&"+y:y);"GET"==r.type.toUpperCase()?(r.url+=(r.url.indexOf("?")>=0?"&":"?")+l,r.data=null):r.data=l;h=[];(r.resetForm&&h.push(function(){u.resetForm()}),r.clearForm&&h.push(function(){u.clearForm(r.includeHidden)}),!r.dataType&&r.target)?(g=r.success||function(){},h.push(function(t){var i=r.replaceTarget?"replaceWith":"html";n(r.target)[i](t).each(g,arguments)})):r.success&&h.push(r.success);(r.success=function(n,t,i){for(var e=r.context||this,f=0,o=h.length;o>f;f++)h[f].apply(e,[n,t,i||u,u])},r.error)&&(nt=r.error,r.error=function(n,t,i){var f=r.context||this;nt.apply(f,[n,t,i,u])});r.complete&&(tt=r.complete,r.complete=function(n,t){var i=r.context||this;tt.apply(i,[n,t,u])});var st=n("input[type=file]:enabled",this).filter(function(){return""!==n(this).val()}),it=st.length>0,rt="multipart/form-data",ut=u.attr("enctype")==rt||u.attr("encoding")==rt,k=i.fileapi&&i.formdata;for(t("fileAPI :"+k),ft=(it||ut)&&!k,r.iframe!==!1&&(r.iframe||ft)?r.closeKeepAlive?n.get(r.closeKeepAlive,function(){p=d(s)}):p=d(s):p=(it||ut)&&k?ot(s):n.ajax(r),u.removeData("jqxhr").data("jqxhr",p),w=0;w<c.length;w++)c[w]=null;return this.trigger("form-submit-notify",[this,r]),this};n.fn.ajaxForm=function(i){if(i=i||{},i.delegation=i.delegation&&n.isFunction(n.fn.on),!i.delegation&&0===this.length){var f={s:this.selector,c:this.context};return!n.isReady&&f.s?(t("DOM not ready, queuing ajaxForm"),n(function(){n(f.s,f.c).ajaxForm(i)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this)}return i.delegation?(n(document).off("submit.form-plugin",this.selector,r).off("click.form-plugin",this.selector,u).on("submit.form-plugin",this.selector,i,r).on("click.form-plugin",this.selector,i,u),this):this.ajaxFormUnbind().bind("submit.form-plugin",i,r).bind("click.form-plugin",i,u)};n.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};n.fn.formToArray=function(t,r){var e=[],l,h,f,c,u,b,k,a,p,v;if(0===this.length)return e;var y,o=this[0],w=this.attr("id"),s=t?o.getElementsByTagName("*"):o.elements;if(s&&!/MSIE [678]/.test(navigator.userAgent)&&(s=n(s).get()),w&&(y=n(':input[form="'+w+'"]').get(),y.length&&(s=(s||[]).concat(y))),!s||!s.length)return e;for(l=0,b=s.length;b>l;l++)if(u=s[l],f=u.name,f&&!u.disabled)if(t&&o.clk&&"image"==u.type)o.clk==u&&(e.push({name:f,value:n(u).val(),type:u.type}),e.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));else if(c=n.fieldValue(u,!0),c&&c.constructor==Array)for(r&&r.push(u),h=0,k=c.length;k>h;h++)e.push({name:f,value:c[h]});else if(i.fileapi&&"file"==u.type)if(r&&r.push(u),a=u.files,a.length)for(h=0;h<a.length;h++)e.push({name:f,value:a[h],type:u.type});else e.push({name:f,value:"",type:u.type});else null!==c&&"undefined"!=typeof c&&(r&&r.push(u),e.push({name:f,value:c,type:u.type,required:u.required}));return!t&&o.clk&&(p=n(o.clk),v=p[0],f=v.name,f&&!v.disabled&&"image"==v.type&&(e.push({name:f,value:p.val()}),e.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}))),e};n.fn.formSerialize=function(t){return n.param(this.formToArray(t))};n.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var f=this.name,r,u,e;if(f)if(r=n.fieldValue(this,t),r&&r.constructor==Array)for(u=0,e=r.length;e>u;u++)i.push({name:f,value:r[u]});else null!==r&&"undefined"!=typeof r&&i.push({name:this.name,value:r})}),n.param(i)};n.fn.fieldValue=function(t){for(var f,i,r=[],u=0,e=this.length;e>u;u++)f=this[u],i=n.fieldValue(f,t),null!==i&&"undefined"!=typeof i&&(i.constructor!=Array||i.length)&&(i.constructor==Array?n.merge(r,i):r.push(i));return r};n.fieldValue=function(t,i){var a=t.name,u=t.type,h=t.tagName.toLowerCase(),e,r,f;if(void 0===i&&(i=!0),i&&(!a||t.disabled||"reset"==u||"button"==u||("checkbox"==u||"radio"==u)&&!t.checked||("submit"==u||"image"==u)&&t.form&&t.form.clk!=t||"select"==h&&-1==t.selectedIndex))return null;if("select"==h){if(e=t.selectedIndex,0>e)return null;for(var c=[],l=t.options,o="select-one"==u,v=o?e+1:l.length,s=o?e:0;v>s;s++)if(r=l[s],r.selected){if(f=r.value,f||(f=r.attributes&&r.attributes.value&&!r.attributes.value.specified?r.text:r.value),o)return f;c.push(f)}return c}return n(t).val()};n.fn.clearForm=function(t){return this.each(function(){n("input,select,textarea",this).clearFields(t)})};n.fn.clearFields=n.fn.clearInputs=function(t){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var r=this.type,u=this.tagName.toLowerCase();i.test(r)||"textarea"==u?this.value="":"checkbox"==r||"radio"==r?this.checked=!1:"select"==u?this.selectedIndex=-1:"file"==r?/MSIE/.test(navigator.userAgent)?n(this).replaceWith(n(this).clone(!0)):n(this).val(""):t&&(t===!0&&/hidden/.test(r)||"string"==typeof t&&n(this).is(t))&&(this.value="")})};n.fn.resetForm=function(){return this.each(function(){"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset()})};n.fn.enable=function(n){return void 0===n&&(n=!0),this.each(function(){this.disabled=!n})};n.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type,i;"checkbox"==r||"radio"==r?this.checked=t:"option"==this.tagName.toLowerCase()&&(i=n(this).parent("select"),t&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=t)})};n.fn.ajaxSubmit.debug=!1}); /*! Magnific Popup - v1.0.0 - 2015-01-03 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2015 Dmitry Semenov; */ !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(n){var t,it,o,p,h,pt,c="Close",wt="BeforeClose",ti="AfterClose",ii="BeforeAppend",rt="MarkupParse",ut="Open",bt="Change",ft="mfp",u="."+ft,w="mfp-ready",kt="mfp-removing",et="mfp-prevent-close",b=function(){},ot=!!window.jQuery,f=n(window),r=function(n,i){t.ev.on(ft+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(ft+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},st=function(i){return i===pt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),pt=i),t.currTemplate.closeBtn},ht=function(){n.magnificPopup.instance||(t=new b,t.init(),n.magnificPopup.instance=t)},ri=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==n.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in n)return!0;return!1},a,k,d,g,ct,s,gt,at,ni,nt,yt,tt;b.prototype={constructor:b,init:function(){var i=navigator.appVersion;t.isIE7=-1!==i.indexOf("MSIE 7.");t.isIE8=-1!==i.indexOf("MSIE 8.");t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=ri();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);o=n(document);t.popupsCache={}},open:function(s){var c,l,p,b,a,k,v,d,y;if(s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,p=s.items,c=0;c<p.length;c++)if(l=p[c],l.parsed&&(l=l.el[0]),l===s.el[0]){t.index=c;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen)return void t.updateItemHTML();for(t.types=[],h="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),b=n.magnificPopup.modules,c=0;c<b.length;c++)a=b[c],a=a.charAt(0).toUpperCase()+a.slice(1),t["init"+a].call(t);return i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(rt,function(n,t,i,r){i.close_replaceWith=st(r.type)}),h+=" mfp-close-btn-in"):t.wrap.append(st())),t.st.alignTop&&(h+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:f.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+u,function(n){27===n.keyCode&&t.close()}),f.on("resize"+u,function(){t.updateSize()}),t.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&t.wrap.addClass(h),k=t.wH=f.height(),v={},t.fixedContentPos&&t._hasScrollBar(k)&&(d=t._getScrollbarSize(),d&&(v.marginRight=d)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):v.overflow="hidden"),y=t.st.mainClass,t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),i("BuildControls"),n("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||n(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(w),t._setFocus()):t.bgOverlay.addClass(w);o.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(k),i(ut),s},close:function(){t.isOpen&&(i(wt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(kt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(c);r=kt+" "+w+" ";(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(r+=t.st.mainClass+" "),t._removeClassFromMFP(r),t.fixedContentPos)&&(f={marginRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ti)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;(i("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=u,t.currTemplate[r])||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);p&&p!==u.type&&t.container.removeClass("mfp-"+p+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(bt,u);p=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(st()):t.content=n:t.content="";i(ii);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var o,u=t.items[r],e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;f<e.length;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;i||(i={});r="click.magnificPopup";i.mainEl=n;i.items?(i.isObj=!0,n.off(r).on(r,u)):(i.isObj=!1,i.delegate?n.off(r).on(r,i.delegate,u):(i.items=n,n.off(r).on(r,u)))},_openClick:function(i,r,u){var o=void 0!==u.midClick?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||2!==i.which&&!i.ctrlKey&&!i.metaKey){if(e=void 0!==u.disableOn?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(f.width()<e)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){it!==n&&t.container.removeClass("mfp-s-"+it);r||"loading"!==n||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);it=n}},_checkIfClose:function(i){if(!n(i).hasClass(et)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return(t._setFocus(),!1)},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(rt,[t,r,f]);n.each(r,function(n,i){var r,f;if(void 0===i||i===!1)return!0;(e=n.split("_"),e.length>1)?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],"replaceWith"===f?r[0]!==i[0]&&r.replaceWith(i):"img"===f?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var n=document.createElement("div");n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,i){return ht(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×<\/button>',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return ht(),r=n(this),"string"==typeof i?"open"===i?(f=ot?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),ot?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};g="inline";ct=function(){d&&(k.after(d.addClass(a)).detach(),d=null)};n.magnificPopup.registerModule(g,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(g);r(c+"."+g,function(){ct()})},getInline:function(i,r){var f,u,o;return(ct(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(k||(a=f.hiddenClass,k=e(a),a="mfp-"+a),d=u.after(k).detach().removeClass(a)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});var v,y="ajax",lt=function(){v&&n(document.body).removeClass(v)},dt=function(){lt();t.req&&t.req.abort()};n.magnificPopup.registerModule(y,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(y);v=t.st.ajax.cursor;r(c+"."+y,dt);r("BeforeChange."+y,dt)},getAjax:function(r){v&&n(document.body).addClass(v);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),y);r.finished=!0;lt();t._setFocus();setTimeout(function(){t.wrap.addClass(w)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){lt();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});gt=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,e=".image";t.types.push("image");r(ut+e,function(){"image"===t.currItem.type&&i.cursor&&n(document.body).addClass(i.cursor)});r(c+e,function(){i.cursor&&n(document.body).removeClass(i.cursor);f.off("resize"+u)});r("Resize"+e,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){return u.naturalWidth>0?void t._onImageHasSize(n):(i>200&&clearInterval(s),i++,void(3===i?r(10):40===i?r(50):100===i&&r(500)))},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,200>e?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return l.length&&(f=document.createElement("img"),f.className="mfp-img",r.el&&r.el.find("img").length&&(f.alt=r.el.find("img").attr("alt")),r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:gt(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ni=function(){return void 0===at&&(at=void 0!==document.createElement("p").style.MozTransform),at};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var u,f=t.st.zoom,o=".zoom";if(f.enabled&&t.supportsTransition){var e,n,h=f.duration,l=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")};r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u)return void s();n=l(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},h)},16)}});r(wt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=h,!u){if(u=t._getItemToZoom(),!u)return;n=l(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(c+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(ot?r.innerHeight():r[0].offsetHeight)-o-e},ni()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var l="iframe",ui="//about:blank",vt=function(n){if(t.currTemplate[l]){var i=t.currTemplate[l].find("iframe");i.length&&(n||(i[0].src=ui),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(l,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(l);r("BeforeChange",function(n,t,i){t!==i&&(t===l?vt():i===l&&vt(!0))});r(c+"."+l,function(){vt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return(this.id&&(u="string"==typeof this.id?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1)}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});nt=function(n){var i=t.items.length;return n>i-1?n-i:0>n?i+n:n};yt=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);return t.direction=!0,u&&u.enabled?(h+=" mfp-gallery",r(ut+i,function(){u.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return(t.next(),!1)});o.on("keydown"+i,function(n){37===n.keyCode?t.prev():39===n.keyCode&&t.next()})}),r("UpdateStatus"+i,function(n,i){i.text&&(i.text=yt(i.text,t.currItem.index,t.items.length))}),r(rt+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?yt(u.tCounter,f.index,e):""}),r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(et),r=t.arrowRight=n(o.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(et),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}}),r(bt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)}),void r(c+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null})):!1},next:function(){t.direction=!0;t.index=nt(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=nt(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;n<=(t.direction?u:r);n++)t._preloadItem(t.index+n);for(n=1;n<=(t.direction?r:u);n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=nt(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);"image"===u.type&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});tt="retina";n.magnificPopup.registerModule(tt,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+tt,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/n,width:"100%"})}),r("ElementParse."+tt,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var s,l=n(this),a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){r();h||c>1||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}();ht()});!function(n){n.flexslider=function(t,i){var r=n(t);r.vars=n.extend({},n.flexslider.defaults,i);var f=r.vars.namespace,v=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,y=("ontouchstart"in window||v||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,a="click touchend MSPointerUp keyup",s="",p,h="vertical"===r.vars.direction,o=r.vars.reverse,e=r.vars.itemWidth>0,c="fade"===r.vars.animation,l=""!==r.vars.asNavFor,u={},w=!0;n.data(t,"flexslider",r);u={init:function(){r.animating=!1;r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0,10);isNaN(r.currentSlide)&&(r.currentSlide=0);r.animatingTo=r.currentSlide;r.atEnd=0===r.currentSlide||r.currentSlide===r.last;r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=n(r.vars.selector,r);r.container=n(r.containerSelector,r);r.count=r.slides.length;r.syncExists=n(r.vars.sync).length>0;"slide"===r.vars.animation&&(r.vars.animation="swing");r.prop=h?"top":"marginLeft";r.args={};r.manualPause=!1;r.stopped=!1;r.started=!1;r.startTimeout=null;r.transitions=!r.vars.video&&!c&&r.vars.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var t in n)if(void 0!==i.style[n[t]])return r.pfx=n[t].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}();r.ensureAnimationEnd="";""!==r.vars.controlsContainer&&(r.controlsContainer=n(r.vars.controlsContainer).length>0&&n(r.vars.controlsContainer));""!==r.vars.manualControls&&(r.manualControls=n(r.vars.manualControls).length>0&&n(r.vars.manualControls));""!==r.vars.customDirectionNav&&(r.customDirectionNav=2===n(r.vars.customDirectionNav).length&&n(r.vars.customDirectionNav));r.vars.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides));r.doMath();r.setup("init");r.vars.controlNav&&u.controlNav.setup();r.vars.directionNav&&u.directionNav.setup();r.vars.keyboard&&(1===n(r.containerSelector).length||r.vars.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;r.animating||39!==t&&37!==t||(i=39===t?r.getTarget("next"):37===t?r.getTarget("prev"):!1,r.flexAnimate(i,r.vars.pauseOnAction))});r.vars.mousewheel&&r.bind("mousewheel",function(n,t){n.preventDefault();var i=r.getTarget(0>t?"next":"prev");r.flexAnimate(i,r.vars.pauseOnAction)});r.vars.pausePlay&&u.pausePlay.setup();r.vars.slideshow&&r.vars.pauseInvisible&&u.pauseInvisible.init();r.vars.slideshow&&(r.vars.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.stopped||r.play()}),r.vars.pauseInvisible&&u.pauseInvisible.isHidden()||(r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play()));l&&u.asNav.setup();y&&r.vars.touch&&u.touch();(!c||c&&r.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",u.resize);r.find("img").attr("draggable","false");setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){r.asNav=!0;r.animatingTo=Math.floor(r.currentSlide/r.move);r.currentItem=r.currentSlide;r.slides.removeClass(f+"active-slide").eq(r.currentItem).addClass(f+"active-slide");v?(t._slider=r,r.slides.each(function(){var t=this;t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",function(n){n.preventDefault();n.currentTarget._gesture&&n.currentTarget._gesture.addPointer(n.pointerId)},!1);t.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=n(this),u=i.index();n(r.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})})):r.slides.on(a,function(t){t.preventDefault();var i=n(this),u=i.index(),e=i.offset().left-n(r).scrollLeft();0>=e&&i.hasClass(f+"active-slide")?r.flexAnimate(r.getTarget("prev"),!0):n(r.vars.asNavFor).data("flexslider").animating||i.hasClass(f+"active-slide")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?u.controlNav.setupManual():u.controlNav.setupPaging()},setupPaging:function(){var c="thumbnails"===r.vars.controlNav?"control-thumbs":"control-paging",h=1,e,o,t,i;if(r.controlNavScaffold=n('<ol class="'+f+"control-nav "+f+c+'"><\/ol>'),r.pagingCount>1)for(t=0;t<r.pagingCount;t++)(o=r.slides.eq(t),e="thumbnails"===r.vars.controlNav?'<img src="'+o.attr("data-thumb")+'"/>':"<a>"+h+"<\/a>","thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions)&&(i=o.attr("data-thumbcaption"),""!==i&&void 0!==i&&(e+='<span class="'+f+'caption">'+i+"<\/span>")),r.controlNavScaffold.append('<li data-animate="zoomIn" data-delay="'+t*200+'">'+e+"<\/li>"),h++;r.controlsContainer?n(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold);u.controlNav.set();u.controlNav.active();r.controlNavScaffold.delegate("a, img",a,function(t){if(t.preventDefault(),""===s||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}""===s&&(s=t.type);u.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls;u.controlNav.active();r.controlNav.bind(a,function(t){if(t.preventDefault(),""===s||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}""===s&&(s=t.type);u.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===r.vars.controlNav?"img":"a";r.controlNav=n("."+f+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(f+"active").eq(r.animatingTo).addClass(f+"active")},update:function(t,i){r.pagingCount>1&&"add"===t?r.controlNavScaffold.append(n("<li><a>"+r.count+"<\/a><\/li>")):1===r.pagingCount?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove();u.controlNav.set();r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(i,t):u.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+f+'direction-nav"><li class="'+f+'nav-prev"><a class="'+f+'prev" href="#">'+r.vars.prevText+'<\/a><\/li><li class="'+f+'nav-next"><a class="'+f+'next" href="#">'+r.vars.nextText+"<\/a><\/li><\/ul>");r.customDirectionNav?r.directionNav=r.customDirectionNav:r.controlsContainer?(n(r.controlsContainer).append(t),r.directionNav=n("."+f+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=n("."+f+"direction-nav li a",r));u.directionNav.update();r.directionNav.bind(a,function(t){t.preventDefault();var i;(""===s||s===t.type)&&(i=r.getTarget(n(this).hasClass(f+"next")?"next":"prev"),r.flexAnimate(i,r.vars.pauseOnAction));""===s&&(s=t.type);u.setToClearWatchedEvent()})},update:function(){var n=f+"disabled";1===r.pagingCount?r.directionNav.addClass(n).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(n).removeAttr("tabindex"):0===r.animatingTo?r.directionNav.removeClass(n).filter("."+f+"prev").addClass(n).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(n).filter("."+f+"next").addClass(n).attr("tabindex","-1"):r.directionNav.removeClass(n).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('<div class="'+f+'pauseplay"><a><\/a><\/div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=n("."+f+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=n("."+f+"pauseplay a",r));u.pausePlay.update(r.vars.slideshow?f+"pause":f+"play");r.pausePlay.bind(a,function(t){t.preventDefault();(""===s||s===t.type)&&(n(this).hasClass(f+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play()));""===s&&(s=t.type);u.setToClearWatchedEvent()})},update:function(n){"play"===n?r.pausePlay.removeClass(f+"pause").addClass(f+"play").html(r.vars.playText):r.pausePlay.removeClass(f+"play").addClass(f+"pause").html(r.vars.pauseText)}},touch:function(){function g(n){n.stopPropagation();r.animating?n.preventDefault():(r.pause(),t._gesture.addPointer(n.pointerId),u=0,i=h?r.h:r.w,s=Number(new Date),f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*i:(r.currentSlide+r.cloneOffset)*i)}function nt(r){var e,o,a;return r.stopPropagation(),e=r.target._slider,e?(o=-r.translationX,a=-r.translationY,u+=h?a:o,n=u,l=h?Math.abs(u)<Math.abs(-o):Math.abs(u)<Math.abs(-a),r.detail===r.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){t._gesture.stop()}):void((!l||Number(new Date)-s>500)&&(r.preventDefault(),!c&&e.transitions&&(e.vars.animationLoop||(n=u/(0===e.currentSlide&&0>u||e.currentSlide===e.last&&u>0?Math.abs(u)/i+2:1)),e.setProps(f+n,"setTouch"))))):void 0}function tt(t){var r,e,h;t.stopPropagation();r=t.target._slider;r&&(r.animatingTo!==r.currentSlide||l||null===n||(e=o?-n:n,h=r.getTarget(e>0?"next":"prev"),r.canAdvance(h)&&(Number(new Date)-s<550&&Math.abs(e)>50||Math.abs(e)>i/2)?r.flexAnimate(h,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)),p=null,w=null,n=null,f=null,u=0)}var p,w,f,i,n,s,d,b,k,l=!1,a=0,y=0,u=0;v?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",g,!1),t._slider=r,t.addEventListener("MSGestureChange",nt,!1),t.addEventListener("MSGestureEnd",tt,!1)):(d=function(n){r.animating?n.preventDefault():(window.navigator.msPointerEnabled||1===n.touches.length)&&(r.pause(),i=h?r.h:r.w,s=Number(new Date),a=n.touches[0].pageX,y=n.touches[0].pageY,f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*i:(r.currentSlide+r.cloneOffset)*i,p=h?y:a,w=h?a:y,t.addEventListener("touchmove",b,!1),t.addEventListener("touchend",k,!1))},b=function(t){a=t.touches[0].pageX;y=t.touches[0].pageY;n=h?p-y:p-a;l=h?Math.abs(n)<Math.abs(a-w):Math.abs(n)<Math.abs(y-w);(!l||Number(new Date)-s>500)&&(t.preventDefault(),!c&&r.transitions&&(r.vars.animationLoop||(n/=0===r.currentSlide&&0>n||r.currentSlide===r.last&&n>0?Math.abs(n)/i+2:1),r.setProps(f+n,"setTouch")))},k=function(){if(t.removeEventListener("touchmove",b,!1),r.animatingTo===r.currentSlide&&!l&&null!==n){var u=o?-n:n,e=r.getTarget(u>0?"next":"prev");r.canAdvance(e)&&(Number(new Date)-s<550&&Math.abs(u)>50||Math.abs(u)>i/2)?r.flexAnimate(e,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}t.removeEventListener("touchend",k,!1);p=null;w=null;n=null;f=null},t.addEventListener("touchstart",d,!1))},resize:function(){!r.animating&&r.is(":visible")&&(e||r.doMath(),c?u.smoothHeight():e?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):h?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(r.vars.smoothHeight&&u.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(n){if(!h||c){var t=c?r:r.viewport;n?t.animate({height:r.slides.eq(r.animatingTo).height()},n):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var i=n(r.vars.sync).data("flexslider"),u=r.animatingTo;switch(t){case"animate":i.flexAnimate(u,r.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=n(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var n=u.pauseInvisible.getHiddenProp(),t;n&&(t=n.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(t,function(){u.pauseInvisible.isHidden()?r.startTimeout?clearTimeout(r.startTimeout):r.pause():r.started?r.play():r.vars.initDelay>0?setTimeout(r.play,r.vars.initDelay):r.play()}))},isHidden:function(){var n=u.pauseInvisible.getHiddenProp();return n?document[n]:!1},getHiddenProp:function(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(p);p=setTimeout(function(){s=""},3e3)}};r.flexAnimate=function(t,i,s,a,v){var w,p,d,b,k;if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t>r.currentSlide?"next":"prev"),l&&1===r.pagingCount&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,v)||s)&&r.is(":visible")){if(l&&a){if(w=n(r.vars.asNavFor).data("flexslider"),r.atEnd=0===t||t===r.count-1,w.flexAnimate(t,!0,!1,!0,v),r.direction=r.currentItem<t?"next":"prev",w.direction=r.direction,Math.ceil((t+1)/r.visible)-1===r.currentSlide||0===t)return r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),!1;r.currentItem=t;r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide");t=Math.floor(t/r.visible)}(r.animating=!0,r.animatingTo=t,i&&r.pause(),r.vars.before(r),r.syncExists&&!v&&u.sync("animate"),r.vars.controlNav&&u.controlNav.active(),e||r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),r.atEnd=0===t||t===r.last,r.vars.directionNav&&u.directionNav.update(),t===r.last&&(r.vars.end(r),r.vars.animationLoop||r.pause()),c)?y?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.wrapup(p)):(r.slides.eq(r.currentSlide).css({zIndex:1}).animate({opacity:0},r.vars.animationSpeed,r.vars.easing),r.slides.eq(t).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing,r.wrapup)):(p=h?r.slides.filter(":first").height():r.computedW,e?(d=r.vars.itemMargin,k=(r.itemW+d)*r.move*r.animatingTo,b=k>r.limit&&1!==r.visible?r.limit:k):b=0===r.currentSlide&&t===r.count-1&&r.vars.animationLoop&&"next"!==r.direction?o?(r.count+r.cloneOffset)*p:0:r.currentSlide===r.last&&0===t&&r.vars.animationLoop&&"prev"!==r.direction?o?0:(r.count+1)*p:o?(r.count-1-t+r.cloneOffset)*p:(t+r.cloneOffset)*p,r.setProps(b,"",r.vars.animationSpeed),r.transitions?(r.vars.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(r.ensureAnimationEnd);r.wrapup(p)}),clearTimeout(r.ensureAnimationEnd),r.ensureAnimationEnd=setTimeout(function(){r.wrapup(p)},r.vars.animationSpeed+100)):r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(p)}));r.vars.smoothHeight&&u.smoothHeight(r.vars.animationSpeed)}};r.wrapup=function(n){c||e||(0===r.currentSlide&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(n,"jumpEnd"):r.currentSlide===r.last&&0===r.animatingTo&&r.vars.animationLoop&&r.setProps(n,"jumpStart"));r.animating=!1;r.currentSlide=r.animatingTo;r.vars.after(r)};r.animateSlides=function(){!r.animating&&w&&r.flexAnimate(r.getTarget("next"))};r.pause=function(){clearInterval(r.animatedSlides);r.animatedSlides=null;r.playing=!1;r.vars.pausePlay&&u.pausePlay.update("play");r.syncExists&&u.sync("pause")};r.play=function(){r.playing&&clearInterval(r.animatedSlides);r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed);r.started=r.playing=!0;r.vars.pausePlay&&u.pausePlay.update("pause");r.syncExists&&u.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canAdvance=function(n,t){var i=l?r.pagingCount-1:r.last;return t?!0:l&&r.currentItem===r.count-1&&0===n&&"prev"===r.direction?!0:l&&0===r.currentItem&&n===r.pagingCount-1&&"next"!==r.direction?!1:n!==r.currentSlide||l?r.vars.animationLoop?!0:r.atEnd&&0===r.currentSlide&&n===i&&"next"!==r.direction?!1:r.atEnd&&r.currentSlide===i&&0===n&&"next"===r.direction?!1:!0:!1};r.getTarget=function(n){return r.direction=n,"next"===n?r.currentSlide===r.last?0:r.currentSlide+1:0===r.currentSlide?r.last:r.currentSlide-1};r.setProps=function(n,t,i){var u=function(){var i=n?n:(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo,u=function(){if(e)return"setTouch"===t?n:o&&r.animatingTo===r.last?0:o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:i;switch(t){case"setTotal":return o?(r.count-1-r.currentSlide+r.cloneOffset)*n:(r.currentSlide+r.cloneOffset)*n;case"setTouch":return o?n:n;case"jumpEnd":return o?n:r.count*n;case"jumpStart":return o?r.count*n:n;default:return n}}();return-1*u+"px"}();r.transitions&&(u=h?"translate3d(0,"+u+",0)":"translate3d("+u+",0,0)",i=void 0!==i?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i),r.container.css("transition-duration",i));r.args[r.prop]=u;(r.transitions||void 0===i)&&r.container.css(r.args);r.container.css("transform",u)};r.setup=function(t){if(c)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(y?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):0==r.vars.fadeFirstSlide?r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).css({opacity:1}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing)),r.vars.smoothHeight&&u.smoothHeight();else{var i,s;"init"===t&&(r.viewport=n('<div class="'+f+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,o&&(s=n.makeArray(r.slides).reverse(),r.slides=n(s),r.container.empty().append(r.slides)));r.vars.animationLoop&&!e&&(r.cloneCount=2,r.cloneOffset=1,"init"!==t&&r.container.find(".clone").remove(),r.container.append(u.uniqueID(r.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(u.uniqueID(r.slides.last().clone().addClass("clone")).attr("aria-hidden","true")));r.newSlides=n(r.vars.selector,r);i=o?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset;h&&!e?(r.container.height(200*(r.count+r.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"});r.doMath();r.viewport.height(r.h);r.setProps(i*r.h,"init")},"init"===t?100:0)):(r.container.width(200*(r.count+r.cloneCount)+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath();r.newSlides.css({width:r.computedW,float:"left",display:"block"});r.vars.smoothHeight&&u.smoothHeight()},"init"===t?100:0))}e||r.slides.removeClass(f+"active-slide").eq(r.currentSlide).addClass(f+"active-slide");r.vars.init(r)};r.doMath=function(){var u=r.slides.first(),n=r.vars.itemMargin,t=r.vars.minItems,i=r.vars.maxItems;r.w=void 0===r.viewport?r.width():r.viewport.width();r.h=u.height();r.boxPadding=u.outerWidth()-u.width();e?(r.itemT=r.vars.itemWidth+n,r.minW=t?t*r.itemT:r.w,r.maxW=i?i*r.itemT-n:r.w,r.itemW=r.minW>r.w?(r.w-n*(t-1))/t:r.maxW<r.w?(r.w-n*(i-1))/i:r.vars.itemWidth>r.w?r.w:r.vars.itemWidth,r.visible=Math.floor(r.w/r.itemW),r.move=r.vars.move>0&&r.vars.move<r.visible?r.vars.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=1===r.pagingCount?0:r.vars.itemWidth>r.w?r.itemW*(r.count-1)+n*(r.count-1):(r.itemW+n)*r.count-r.w-n):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1);r.computedW=r.itemW-r.boxPadding};r.update=function(n,t){r.doMath();e||(n<r.currentSlide?r.currentSlide+=1:n<=r.currentSlide&&0!==n&&(r.currentSlide-=1),r.animatingTo=r.currentSlide);r.vars.controlNav&&!r.manualControls&&("add"===t&&!e||r.pagingCount>r.controlNav.length?u.controlNav.update("add"):("remove"===t&&!e||r.pagingCount<r.controlNav.length)&&(e&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),u.controlNav.update("remove",r.last)));r.vars.directionNav&&u.directionNav.update()};r.addSlide=function(t,i){var u=n(t);r.count+=1;r.last=r.count-1;h&&o?void 0!==i?r.slides.eq(r.count-i).after(u):r.container.prepend(u):void 0!==i?r.slides.eq(i).before(u):r.container.append(u);r.update(i,"add");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(n(t)):t;r.count-=1;r.last=r.count-1;isNaN(t)?n(t,r.slides).remove():h&&o?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.doMath();r.update(i,"remove");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};u.init()};n(window).blur(function(){focused=!1}).focus(function(){focused=!0});n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};n.fn.flexslider=function(t){if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);1===r.length&&t.allowOneSlide===!0||0===r.length?(r.fadeIn(400),t.start&&t.start(i)):void 0===i.data("flexslider")&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:"number"==typeof t&&i.flexAnimate(t,!0)}}}(jQuery),function(n){n.fn.pajinate=function(t){function k(i){new_page=parseInt(u.data(o))-1;n(i).siblings(".active").prev(".page_link").length==!0?(p(i,new_page),f(new_page)):t.wrap_around&&f(h-1)}function d(i){new_page=parseInt(u.data(o))+1;n(i).siblings(".active").next(".page_link").length==!0?(y(i,new_page),f(new_page)):t.wrap_around&&f(0)}function f(n){var i,f;n=parseInt(n,10);i=parseInt(u.data(l));start_from=n*i;end_on=start_from+i;f=e.hide().slice(start_from,end_on);f.fadeIn(700);r.find(t.nav_panel_id).children(".page_link[longdesc="+n+"]").addClass("active "+v).siblings(".active").removeClass("active "+v);u.data(o,n);var s=parseInt(u.data(o)+1),h=a.children().size(),c=Math.ceil(h/t.items_per_page);r.find(t.nav_info_id).html(t.nav_label_info.replace("{0}",start_from+1).replace("{1}",start_from+f.length).replace("{2}",e.length).replace("{3}",s).replace("{4}",c));w();b();typeof t.onPageDisplayed!="undefined"&&t.onPageDisplayed.call(this,n+1)}function y(r,u){var f=u,e=n(r).siblings(".active");e.siblings(".page_link[longdesc="+f+"]").css("display")=="none"&&i.each(function(){n(this).children(".page_link").hide().slice(parseInt(f-t.num_page_links_to_display+1),f+1).show()})}function p(r,u){var f=u,e=n(r).siblings(".active");e.siblings(".page_link[longdesc="+f+"]").css("display")=="none"&&i.each(function(){n(this).children(".page_link").hide().slice(f,f+parseInt(t.num_page_links_to_display)).show()})}function w(){}function b(){i.children(".last").hasClass("active")?i.children(".next_link").add(".last_link").addClass("no_more "+c):i.children(".next_link").add(".last_link").removeClass("no_more "+c);i.children(".first").hasClass("active")?i.children(".previous_link").add(".first_link").addClass("no_more "+c):i.children(".previous_link").add(".first_link").removeClass("no_more "+c)}var o="current_page",l="items_per_page",u,t=n.extend({item_container_id:".content",items_per_page:10,nav_panel_id:".page_navigation",nav_info_id:".info_text",num_page_links_to_display:20,start_page:0,wrap_around:!1,nav_label_first:"First",nav_label_prev:"Prev",nav_label_next:"Next",nav_label_last:"Last",nav_order:["first","prev","num","next","last"],nav_label_info:"Showing {0}-{1} of {2} results",show_first_last:!0,abort_on_small_lists:!1,jquery_ui:!1,jquery_ui_active:"ui-state-highlight",jquery_ui_default:"ui-state-default",jquery_ui_disabled:"ui-state-disabled"},t),a,r,e,i,h,s=t.jquery_ui?t.jquery_ui_default:"",v=t.jquery_ui?t.jquery_ui_active:"",c=t.jquery_ui?t.jquery_ui_disabled:"";return this.each(function(){var nt,g;if(r=n(this),a=n(this).find(t.item_container_id),e=r.find(t.item_container_id).children(),t.abort_on_small_lists&&t.items_per_page>=e.size())return r;u=r;u.data(o,0);u.data(l,t.items_per_page);var tt=a.children().size(),it=Math.ceil(tt/t.items_per_page),rt=t.show_first_last?'<li class="first_link '+s+'"><a href="#">'+t.nav_label_first+"<\/a><\/li>":"",ut=t.show_first_last?'<li class="last_link '+s+'"><a href="#">'+t.nav_label_last+"<\/a><\/li>":"",c="";for(nt=0;nt<t.nav_order.length;nt++)switch(t.nav_order[nt]){case"first":c+=rt;break;case"last":c+=ut;break;case"next":c+='<li class="next_link '+s+'"><a href="#">'+t.nav_label_next+"<\/a><\/li>";break;case"prev":c+='<li class="previous_link '+s+'"><a href="#">'+t.nav_label_prev+"<\/a><\/li>";break;case"num":for(c+='<li class="disabled ellipse less"><span>...<\/span><\/li>',g=0;it>g;)c+='<li class="page_link '+s+'" longdesc="'+g+'"><a href="#">'+(g+1)+"<\/a><\/li>",g++;c+='<li class="disabled ellipse more"><span>...<\/span><\/li>'}i=r.find(t.nav_panel_id);i.html(c).each(function(){n(this).find(".page_link:first").addClass("first");n(this).find(".page_link:last").addClass("last")});i.children(".ellipse").hide();i.find(".previous_link").next().next().addClass("active "+v);e.hide();e.slice(0,u.data(l)).show();h=r.find(t.nav_panel_id+":first").children(".page_link").size();t.num_page_links_to_display=Math.min(t.num_page_links_to_display,h);i.children(".page_link").hide();i.each(function(){n(this).children(".page_link").slice(0,t.num_page_links_to_display).show()});r.find(".first_link").click(function(t){t.preventDefault();p(n(this),0);f(0)});r.find(".last_link").click(function(t){t.preventDefault();var i=h-1;y(n(this),i);f(i)});r.find(".previous_link").click(function(t){t.preventDefault();k(n(this))});r.find(".next_link").click(function(t){t.preventDefault();d(n(this))});r.find(".page_link").click(function(t){t.preventDefault();f(n(this).attr("longdesc"))});f(parseInt(t.start_page));w();t.wrap_around||b()})}}(jQuery); /*! -------------------------------- Infinite Scroll -------------------------------- + https://github.com/paulirish/infinite-scroll + version 2.0.2 + Copyright 2011/12 Paul Irish & Luke Shumard + Licensed under the MIT license + Documentation: http://infinite-scroll.com/ */ (function(n,t,i){"use strict";t.infinitescroll=function(n,i,r){this.element=t(r);this._create(n,i)||(this.failed=!0)};t.infinitescroll.defaults={loading:{finished:i,finishedMsg:"<em>Congratulations, you've reached the end of the internet.<\/em>",img:"",msg:null,msgText:"<em>Loading the next set of posts...<\/em>",selector:null,speed:"fast",start:i},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,isBeyondMaxPage:!1,currPage:1},debug:!1,behavior:i,binder:t(n),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:i,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:i,path:i,prefill:!1,maxPage:i};t.infinitescroll.prototype={_binding:function(n){var t=this,r=t.options;if(r.v="2.0b2.120520",!!r.behavior&&this["_binding_"+r.behavior]!==i){this["_binding_"+r.behavior].call(this);return}if(n!=="bind"&&n!=="unbind")return this._debug("Binding value "+n+" not valid"),!1;n==="unbind"?this.options.binder.unbind("smartscroll.infscr."+t.options.infid):this.options.binder[n]("smartscroll.infscr."+t.options.infid,function(){t.scroll()});this._debug("Binding",n)},_create:function(r,u){var f=t.extend(!0,{},t.infinitescroll.defaults,r),o,s,e,h;return(this.options=f,o=t(n),s=this,!s._validate(r))?!1:(e=t(f.nextSelector).attr("href"),!e)?(this._debug("Navigation selector not found"),!1):(f.path=f.path||this._determinepath(e),f.contentSelector=f.contentSelector||this.element,f.loading.selector=f.loading.selector||f.contentSelector,f.loading.msg=f.loading.msg||t('<div id="infscr-loading"><img alt="Loading..." src="'+f.loading.img+'" /><div>'+f.loading.msgText+"<\/div><\/div>"),(new Image).src=f.loading.img,f.pixelsFromNavToBottom===i&&(f.pixelsFromNavToBottom=t(document).height()-t(f.navSelector).offset().top,this._debug("pixelsFromNavToBottom: "+f.pixelsFromNavToBottom)),h=this,f.loading.start=f.loading.start||function(){t(f.navSelector).hide();f.loading.msg.appendTo(f.loading.selector).show(f.loading.speed,t.proxy(function(){this.beginAjax(f)},h))},f.loading.finished=f.loading.finished||function(){f.state.isBeyondMaxPage||f.loading.msg.fadeOut(f.loading.speed)},f.callback=function(n,r,e){!f.behavior||n["_callback_"+f.behavior]===i||n["_callback_"+f.behavior].call(t(f.contentSelector)[0],r,e);u&&u.call(t(f.contentSelector)[0],r,f,e);f.prefill&&o.bind("resize.infinite-scroll",n._prefill)},r.debug&&Function.prototype.bind&&(typeof console=="object"||typeof console=="function")&&typeof console.log=="object"&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(n){console[n]=this.call(console[n],console)},Function.prototype.bind),this._setup(),f.prefill&&this._prefill(),!0)},_prefill:function(){function u(){return i.options.contentSelector.height()<=r.height()}var i=this,r=t(n);this._prefill=function(){u()&&i.scroll();r.bind("resize.infinite-scroll",function(){u()&&(r.unbind("resize.infinite-scroll"),i.scroll())})};this._prefill()},_debug:function(){!0===this.options.debug&&(typeof console!="undefined"&&typeof console.log=="function"?Array.prototype.slice.call(arguments).length===1&&typeof Array.prototype.slice.call(arguments)[0]=="string"?console.log(Array.prototype.slice.call(arguments).toString()):console.log(Array.prototype.slice.call(arguments)):Function.prototype.bind||typeof console=="undefined"||typeof console.log!="object"||Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments)))},_determinepath:function(n){var t=this.options;if(!!t.behavior&&this["_determinepath_"+t.behavior]!==i)return this["_determinepath_"+t.behavior].call(this,n);if(!t.pathParse)if(n.match(/^(.*?)\b2\b(.*?$)/))n=n.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(n.match(/^(.*?)2(.*?$)/)){if(n.match(/^(.*?page=)2(\/.*|$)/))return n.match(/^(.*?page=)2(\/.*|$)/).slice(1);n=n.match(/^(.*?)2(.*?$)/).slice(1)}else{if(n.match(/^(.*?page=)1(\/.*|$)/))return n.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");t.state.isInvalidPage=!0}else return this._debug("pathParse manual"),t.pathParse(n,this.options.state.currPage+1);return this._debug("determinePath",n),n},_error:function(n){var t=this.options;if(!!t.behavior&&this["_error_"+t.behavior]!==i){this["_error_"+t.behavior].call(this,n);return}n!=="destroy"&&n!=="end"&&(n="unknown");this._debug("Error",n);(n==="end"||t.state.isBeyondMaxPage)&&this._showdonemsg();t.state.isDone=!0;t.state.currPage=1;t.state.isPaused=!1;t.state.isBeyondMaxPage=!1;this._binding("unbind")},_loadcallback:function(r,u,f){var e=this.options,c=this.options.callback,l=e.state.isDone?"done":e.appendCallback?"append":"no-append",o,s,h;if(!!e.behavior&&this["_loadcallback_"+e.behavior]!==i){this["_loadcallback_"+e.behavior].call(this,r,u);return}switch(l){case"done":return this._showdonemsg(),!1;case"no-append":e.dataType==="html"&&(u="<div>"+u+"<\/div>",u=t(u).find(e.itemSelector));break;case"append":if(s=r.children(),s.length===0)return this._error("end");for(o=document.createDocumentFragment();r[0].firstChild;)o.appendChild(r[0].firstChild);this._debug("contentSelector",t(e.contentSelector)[0]);t(e.contentSelector)[0].appendChild(o);u=s.get()}e.loading.finished.call(t(e.contentSelector)[0],e);e.animate&&(h=t(n).scrollTop()+t(e.loading.msg).height()+e.extraScrollPx+"px",t("html,body").animate({scrollTop:h},800,function(){e.state.isDuringAjax=!1}));e.animate||(e.state.isDuringAjax=!1);c(this,u,f);e.prefill&&this._prefill()},_nearbottom:function(){var r=this.options,u=0+t(document).height()-r.binder.scrollTop()-t(n).height();return!!r.behavior&&this["_nearbottom_"+r.behavior]!==i?this["_nearbottom_"+r.behavior].call(this):(this._debug("math:",u,r.pixelsFromNavToBottom),u-r.bufferPx<r.pixelsFromNavToBottom)},_pausing:function(n){var t=this.options;if(!!t.behavior&&this["_pausing_"+t.behavior]!==i){this["_pausing_"+t.behavior].call(this,n);return}n!=="pause"&&n!=="resume"&&n!==null&&this._debug("Invalid argument. Toggling pause value instead");n=n&&(n==="pause"||n==="resume")?n:"toggle";switch(n){case"pause":t.state.isPaused=!0;break;case"resume":t.state.isPaused=!1;break;case"toggle":t.state.isPaused=!t.state.isPaused}return this._debug("Paused",t.state.isPaused),!1},_setup:function(){var n=this.options;if(!!n.behavior&&this["_setup_"+n.behavior]!==i){this["_setup_"+n.behavior].call(this);return}return this._binding("bind"),!1},_showdonemsg:function(){var n=this.options;if(!!n.behavior&&this["_showdonemsg_"+n.behavior]!==i){this["_showdonemsg_"+n.behavior].call(this);return}n.loading.msg.find("img").hide().parent().find("div").html(n.loading.finishedMsg).animate({opacity:1},2e3,function(){t(this).parent().fadeOut(n.loading.speed)});n.errorCallback.call(t(n.contentSelector)[0],"done")},_validate:function(n){for(var i in n)if(i.indexOf&&i.indexOf("Selector")>-1&&t(n[i]).length===0)return this._debug("Your "+i+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this.options.loading.finished(),this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(n){var r=this,s=n.path,f,u,e,o;if(n.state.currPage++,n.maxPage!=i&&n.state.currPage>n.maxPage){n.state.isBeyondMaxPage=!0;this.destroy();return}f=t(n.contentSelector).is("table, tbody")?t("<tbody/>"):t("<div/>");u=typeof s=="function"?s(n.state.currPage):s.join(n.state.currPage);r._debug("heading into ajax",u);e=n.dataType==="html"||n.dataType==="json"?n.dataType:"html+callback";n.appendCallback&&n.dataType==="html"&&(e+="+callback");switch(e){case"html+callback":r._debug("Using HTML via .load() method");f.load(u+" "+n.itemSelector,i,function(n){r._loadcallback(f,n,u)});break;case"html":r._debug("Using "+e.toUpperCase()+" via $.ajax() method");t.ajax({url:u,dataType:n.dataType,complete:function(n,t){o=typeof n.isResolved!="undefined"?n.isResolved():t==="success"||t==="notmodified";o?r._loadcallback(f,n.responseText,u):r._error("end")}});break;case"json":r._debug("Using "+e.toUpperCase()+" via $.ajax() method");t.ajax({dataType:"json",type:"GET",url:u,success:function(t,e,s){if(o=typeof s.isResolved!="undefined"?s.isResolved():e==="success"||e==="notmodified",n.appendCallback)if(n.template!==i){var h=n.template(t);f.append(h);o?r._loadcallback(f,h):r._error("end")}else r._debug("template must be defined."),r._error("end");else o?r._loadcallback(f,t,u):r._error("end")},error:function(){r._debug("JSON ajax request failed.");r._error("end")}})}},retrieve:function(n){n=n||null;var u=this,r=u.options;if(!!r.behavior&&this["retrieve_"+r.behavior]!==i){this["retrieve_"+r.behavior].call(this,n);return}if(r.state.isDestroyed)return this._debug("Instance is destroyed"),!1;r.state.isDuringAjax=!0;r.loading.start.call(t(r.contentSelector)[0],r)},scroll:function(){var t=this.options,n=t.state;if(!!t.behavior&&this["scroll_"+t.behavior]!==i){this["scroll_"+t.behavior].call(this);return}n.isDuringAjax||n.isInvalidPage||n.isDone||n.isDestroyed||n.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(n){t.isPlainObject(n)&&(this.options=t.extend(!0,this.options,n))}};t.fn.infinitescroll=function(n,i){var u=typeof n,r;switch(u){case"string":r=Array.prototype.slice.call(arguments,1);this.each(function(){var i=t.data(this,"infinitescroll");if(!i||!t.isFunction(i[n])||n.charAt(0)==="_")return!1;i[n].apply(i,r)});break;case"object":this.each(function(){var r=t.data(this,"infinitescroll");r?r.update(n):(r=new t.infinitescroll(n,i,this),r.failed||t.data(this,"infinitescroll",r))})}return this};var r=t.event,u;r.special.smartscroll={setup:function(){t(this).bind("scroll",r.special.smartscroll.handler)},teardown:function(){t(this).unbind("scroll",r.special.smartscroll.handler)},handler:function(n,i){var r=this,f=arguments;n.type="smartscroll";u&&clearTimeout(u);u=setTimeout(function(){t(r).trigger("smartscroll",f)},i==="execAsap"?0:100)}};t.fn.smartscroll=function(n){return n?this.bind("smartscroll",n):this.trigger("smartscroll",["execAsap"])}})(window,jQuery); /*! jQuery UI - v1.10.3 - 2013-10-16 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.tabs.js, jquery.ui.effect.js, jquery.ui.effect-fade.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ (function(n,t){function i(t,i){var u,f,e,o=t.nodeName.toLowerCase();return"area"===o?(u=t.parentNode,f=u.name,t.href&&f&&"map"===u.nodeName.toLowerCase()?(e=n("img[usemap=#"+f+"]")[0],!!e&&r(e)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&r(t)}function r(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return"hidden"===n.css(this,"visibility")}).length}var u=0,f=/^ui-id-\d+$/;n.ui=n.ui||{};n.extend(n.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});n.fn.extend({focus:function(t){return function(i,r){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){n(t).focus();r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),scrollParent:function(){var t;return t=n.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.css(this,"position"))&&/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var u,f,r=n(this[0]);r.length&&r[0]!==document;){if(u=r.css("position"),("absolute"===u||"relative"===u||"fixed"===u)&&(f=parseInt(r.css("zIndex"),10),!isNaN(f)&&0!==f))return f;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&n(this).removeAttr("id")})}});n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return i(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var r=n.attr(t,"tabindex"),u=isNaN(r);return(u||r>=0)&&i(t,!u)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(i,r){function u(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var o="Width"===r?["Left","Right"]:["Top","Bottom"],f=r.toLowerCase(),e={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?e["inner"+r].call(this):this.each(function(){n(this).css(f,u(this,i)+"px")})};n.fn["outer"+r]=function(t,i){return"number"!=typeof t?e["outer"+r].call(this,t):this.each(function(){n(this).css(f,u(this,t,!0,i)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData));n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());n.support.selectstart="onselectstart"in document.createElement("div");n.fn.extend({disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});n.extend(n.ui,{plugin:{add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i){var r,u=n.plugins[t];if(u&&n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType)for(r=0;u.length>r;r++)n.options[u[r][0]]&&u[r][1].apply(n.element,i)}},hasScroll:function(t,i){if("hidden"===n(t).css("overflow"))return!1;var r=i&&"left"===i?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)}})})(jQuery),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i,r=0;null!=(i=t[r]);r++)try{n(i).triggerHandler("remove")}catch(f){}u(t)};n.widget=function(i,r,u){var h,e,f,s,c={},o=i.split(".")[0];i=i.split(".")[1];h=o+"-"+i;u||(u=r,r=n.Widget);n.expr[":"][h.toLowerCase()]=function(t){return!!n.data(t,h)};n[o]=n[o]||{};e=n[o][i];f=n[o][i]=function(n,i){return this._createWidget?(arguments.length&&this._createWidget(n,i),t):new f(n,i)};n.extend(f,e,{version:u.version,_proto:n.extend({},u),_childConstructors:[]});s=new r;s.options=n.widget.extend({},s.options);n.each(u,function(i,u){return n.isFunction(u)?(c[i]=function(){var n=function(){return r.prototype[i].apply(this,arguments)},t=function(n){return r.prototype[i].apply(this,n)};return function(){var i,r=this._super,f=this._superApply;return this._super=n,this._superApply=t,i=u.apply(this,arguments),this._super=r,this._superApply=f,i}}(),t):(c[i]=u,t)});f.prototype=n.widget.extend(s,{widgetEventPrefix:e?s.widgetEventPrefix:i},c,{constructor:f,namespace:o,widgetName:i,widgetFullName:h});e?(n.each(e._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,f,i._proto)}),delete e._childConstructors):r._childConstructors.push(f);n.widget.bridge(i,f)};n.widget.extend=function(r){for(var u,f,o=i.call(arguments,1),e=0,s=o.length;s>e;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r};n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h="string"==typeof e,o=i.call(arguments,1),s=this;return e=!h&&o.length?n.widget.extend.apply(null,[e].concat(o)):e,h?this.each(function(){var i,u=n.data(this,f);return u?n.isFunction(u[e])&&"_"!==e.charAt(0)?(i=u[e].apply(u,o),i!==u&&i!==t?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):t):n.error("no such method '"+e+"' for "+r+" widget instance"):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),s}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=r++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this.bindings=n();this.hoverable=n();this.focusable=n();i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(i,r){var u,f,e,o=i;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof i)if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;u.length-1>e;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),r===t)return f[i]===t?null:f[i];f[i]=r}else{if(r===t)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,"disabled"===n&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,r,u){var e,f=this;"boolean"!=typeof i&&(u=r,r=i,i=!1);u?(r=e=n(r),this.bindings=this.bindings.add(r)):(u=r,r=this.element,e=this.widget());n.each(u,function(u,o){function s(){return i||f.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled")?("string"==typeof o?f[o]:o).apply(f,arguments):t}"string"!=typeof o&&(s.guid=o.guid=o.guid||s.guid||n.guid++);var h=u.match(/^(\w+)\s*(.*)$/),c=h[1]+f.eventNamespace,l=h[2];l?e.delegate(l,c,s):r.bind(c,s)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return("string"==typeof n?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){"string"==typeof u&&(u={effect:u});var o,e=u?u===!0||"number"==typeof u?i:u.effect||i:t;u=u||{};"number"==typeof u&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}})}(jQuery),function(n){var t=!1;n(document).mouseup(function(){t=!1});n.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){return!0===n.data(i.target,t.widgetName+".preventClickEvent")?(n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i);this._mouseDownEvent=i;var r=this,u=1===i.which,f="string"==typeof this.options.cancel&&i.target.nodeName?n(i.target).closest(this.options.cancel).length:!1;return u&&!f&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===n.data(i.target,this.widgetName+".preventClickEvent")&&n.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},n(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return n.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(n,t){function e(n,t,i){return[parseFloat(n[0])*(a.test(n[0])?t/100:1),parseFloat(n[1])*(a.test(n[1])?i/100:1)]}function r(t,i){return parseInt(n.css(t,i),10)||0}function v(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.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()}}n.ui=n.ui||{};var f,u=Math.max,i=Math.abs,o=Math.round,s=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,y=n.fn.position;n.position={scrollbarWidth:function(){if(f!==t)return f;var u,r,i=n("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),e=i.children()[0];return n("body").append(i),u=e.offsetWidth,i.css("overflow","scroll"),r=e.offsetWidth,u===r&&(r=i[0].clientWidth),i.remove(),f=u-r},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),u="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,f="scroll"===r||"auto"===r&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]);return{element:i,isWindow:r,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:r?i.width():i.outerWidth(),height:r?i.height():i.outerHeight()}}};n.fn.position=function(t){if(!t||!t.of)return y.apply(this,arguments);t=n.extend({},t);var b,f,a,w,p,d,g=n(t.of),tt=n.position.getWithinInfo(t.within),it=n.position.getScrollInfo(tt),k=(t.collision||"flip").split(" "),nt={};return d=v(g),g[0].preventDefault&&(t.at="left top"),f=d.width,a=d.height,w=d.offset,p=n.extend({},w),n.each(["my","at"],function(){var i,r,n=(t[this]||"").split(" ");1===n.length&&(n=s.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]);n[0]=s.test(n[0])?n[0]:"center";n[1]=h.test(n[1])?n[1]:"center";i=c.exec(n[0]);r=c.exec(n[1]);nt[this]=[i?i[0]:0,r?r[0]:0];t[this]=[l.exec(n[0])[0],l.exec(n[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===t.at[0]?p.left+=f:"center"===t.at[0]&&(p.left+=f/2),"bottom"===t.at[1]?p.top+=a:"center"===t.at[1]&&(p.top+=a/2),b=e(nt.at,f,a),p.left+=b[0],p.top+=b[1],this.each(function(){var y,d,h=n(this),c=h.outerWidth(),l=h.outerHeight(),rt=r(this,"marginLeft"),ut=r(this,"marginTop"),ft=c+rt+r(this,"marginRight")+it.width,et=l+ut+r(this,"marginBottom")+it.height,s=n.extend({},p),v=e(nt.my,h.outerWidth(),h.outerHeight());"right"===t.my[0]?s.left-=c:"center"===t.my[0]&&(s.left-=c/2);"bottom"===t.my[1]?s.top-=l:"center"===t.my[1]&&(s.top-=l/2);s.left+=v[0];s.top+=v[1];n.support.offsetFractions||(s.left=o(s.left),s.top=o(s.top));y={marginLeft:rt,marginTop:ut};n.each(["left","top"],function(i,r){n.ui.position[k[i]]&&n.ui.position[k[i]][r](s,{targetWidth:f,targetHeight:a,elemWidth:c,elemHeight:l,collisionPosition:y,collisionWidth:ft,collisionHeight:et,offset:[b[0]+v[0],b[1]+v[1]],my:t.my,at:t.at,within:tt,elem:h})});t.using&&(d=function(n){var r=w.left-s.left,v=r+f-c,e=w.top-s.top,y=e+a-l,o={target:{element:g,left:w.left,top:w.top,width:f,height:a},element:{element:h,left:s.left,top:s.top,width:c,height:l},horizontal:0>v?"left":r>0?"right":"center",vertical:0>y?"top":e>0?"bottom":"middle"};c>f&&f>i(r+v)&&(o.horizontal="center");l>a&&a>i(e+y)&&(o.vertical="middle");o.important=u(i(r),i(v))>u(i(e),i(y))?"horizontal":"vertical";t.using.call(this,n,o)});h.offset(n.extend(s,{using:d}))})};n.ui.position={fit:{left:function(n,t){var h,e=t.within,r=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,i=r-s,f=s+t.collisionWidth-o-r;t.collisionWidth>o?i>0&&0>=f?(h=n.left+i+t.collisionWidth-o-r,n.left+=i-h):n.left=f>0&&0>=i?r:i>f?r+o-t.collisionWidth:r:i>0?n.left+=i:f>0?n.left-=f:n.left=u(n.left-s,n.left)},top:function(n,t){var h,o=t.within,r=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,i=r-s,f=s+t.collisionHeight-e-r;t.collisionHeight>e?i>0&&0>=f?(h=n.top+i+t.collisionHeight-e-r,n.top+=i-h):n.top=f>0&&0>=i?r:i>f?r+e-t.collisionHeight:r:i>0?n.top+=i:f>0?n.top-=f:n.top=u(n.top-s,n.top)}},flip:{left:function(n,t){var o,s,r=t.within,y=r.offset.left+r.scrollLeft,c=r.width,h=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-t.collisionPosition.marginLeft,a=l-h,v=l+t.collisionWidth-c-h,u="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,f="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,e=-2*t.offset[0];0>a?(o=n.left+u+f+e+t.collisionWidth-c-y,(0>o||i(a)>o)&&(n.left+=u+f+e)):v>0&&(s=n.left-t.collisionPosition.marginLeft+u+f+e-h,(s>0||v>i(s))&&(n.left+=u+f+e))},top:function(n,t){var o,s,r=t.within,y=r.offset.top+r.scrollTop,a=r.height,h=r.isWindow?r.scrollTop:r.offset.top,v=n.top-t.collisionPosition.marginTop,c=v-h,l=v+t.collisionHeight-a-h,p="top"===t.my[1],u=p?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,e=-2*t.offset[1];0>c?(s=n.top+u+f+e+t.collisionHeight-a-y,n.top+u+f+e>c&&(0>s||i(c)>s)&&(n.top+=u+f+e)):l>0&&(o=n.top-t.collisionPosition.marginTop+u+f+e-h,n.top+u+f+e>l&&(o>0||l>i(o))&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,r,u,f,e=document.getElementsByTagName("body")[0],o=document.createElement("div");t=document.createElement(e?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};e&&n.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in r)t.style[f]=r[f];t.appendChild(o);i=e||document.documentElement;i.insertBefore(t,i.firstChild);o.style.cssText="position: absolute; left: 10.7432222px;";u=n(o).offset().left;n.support.offsetFractions=u>10&&11>u;t.innerHTML="";i.removeChild(t)}()}(jQuery),function(n,t){function u(){return++f}function i(n){return n.hash.length>1&&decodeURIComponent(n.href.replace(r,""))===decodeURIComponent(location.href.replace(r,""))}var f=0,r=/#.*$/;n.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var i=this,t=this.options;this.running=!1;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",t.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this._processTabs();t.active=this._initialActive();n.isArray(t.disabled)&&(t.disabled=n.unique(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,r=this.options.collapsible,u=location.hash.substring(1);return null===i&&(u&&this.tabs.each(function(r,f){return n(f).attr("aria-controls")===u?(i=r,!1):t}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=this.tabs.length?0:!1)),i!==!1&&(i=this.tabs.index(this.tabs.eq(i)),-1===i&&(i=r?!1:0)),!r&&i===!1&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(i){var u=n(this.document[0].activeElement).closest("li"),r=this.tabs.index(u),f=!0;if(!this._handlePageNav(i)){switch(i.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:r++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:f=!1;r--;break;case n.ui.keyCode.END:r=this.anchors.length-1;break;case n.ui.keyCode.HOME:r=0;break;case n.ui.keyCode.SPACE:return i.preventDefault(),clearTimeout(this.activating),this._activate(r),t;case n.ui.keyCode.ENTER:return i.preventDefault(),clearTimeout(this.activating),this._activate(r===this.options.active?!1:r),t;default:return}i.preventDefault();clearTimeout(this.activating);r=this._focusNextTab(r,f);i.ctrlKey||(u.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",r)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(i){return i.altKey&&i.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):i.altKey&&i.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):t},_findNextTab:function(t,i){function u(){return t>r&&(t=0),0>t&&(t=r),t}for(var r=this.tabs.length-1;-1!==n.inArray(u(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).focus(),n},_setOption:function(n,i){return"active"===n?(this._activate(i),t):"disabled"===n?(this._setupDisabled(i),t):(this._super(n,i),"collapsible"===n&&(this.element.toggleClass("ui-tabs-collapsible",i),i||this.options.active!==!1||this._activate(0)),"event"===n&&this._setupEvents(i),"heightStyle"===n&&this._setupHeightStyle(i),t)},_tabId:function(n){return n.attr("aria-controls")||"ui-tabs-"+u()},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist");this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return n("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=n();this.anchors.each(function(r,u){var e,f,s,h=n(u).uniqueId().attr("id"),o=n(u).closest("li"),c=o.attr("aria-controls");i(u)?(e=u.hash,f=t.element.find(t._sanitizeSelector(e))):(s=t._tabId(o),e="#"+s,f=t.element.find(e),f.length||(f=t._createPanel(s),f.insertAfter(t.panels[r-1]||t.tablist)),f.attr("aria-live","polite"));f.length&&(t.panels=t.panels.add(f));c&&o.data("ui-tabs-aria-controls",c);o.attr({"aria-controls":e.substring(1),"aria-labelledby":h});f.attr("aria-labelledby",h)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){n.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,r=0;i=this.tabs[r];r++)t===!0||-1!==n.inArray(r,t)?n(i).addClass("ui-state-disabled").attr("aria-disabled","true"):n(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={click:function(n){n.preventDefault()}};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();"fill"===t?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");"absolute"!==r&&"fixed"!==r&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};t.preventDefault();i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){u.running=!1;u._trigger("activate",t,i)}function o(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active");r.length&&u.options.show?u._show(r,u.options.show,e):(r.show(),e())}var u=this,r=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");o()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),o());f.attr({"aria-expanded":"false","aria-hidden":"true"});i.oldTab.attr("aria-selected","false");r.length&&f.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===n(this).attr("tabIndex")}).attr("tabIndex",-1);r.attr({"aria-expanded":"true","aria-hidden":"false"});i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(n){return"string"==typeof n&&(n=this.anchors.index(this.anchors.filter("[href$='"+n+"']"))),n},_destroy:function(){this.xhr&&this.xhr.abort();this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var r=this.options.disabled;r!==!1&&(i===t?r=!1:(i=this._getIndex(i),r=n.isArray(r)?n.map(r,function(n){return n!==i?n:null}):n.map(this.tabs,function(n,t){return t!==i?t:null})),this._setupDisabled(r))},disable:function(i){var r=this.options.disabled;if(r!==!0){if(i===t)r=!0;else{if(i=this._getIndex(i),-1!==n.inArray(i,r))return;r=n.isArray(r)?n.merge([i],r).sort():[i]}this._setupDisabled(r)}},load:function(t,r){t=this._getIndex(t);var f=this,u=this.tabs.eq(t),o=u.find(".ui-tabs-anchor"),e=this._getPanelForTab(u),s={tab:u,panel:e};i(o[0])||(this.xhr=n.ajax(this._ajaxSettings(o,r,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(u.addClass("ui-tabs-loading"),e.attr("aria-busy","true"),this.xhr.success(function(n){setTimeout(function(){e.html(n);f._trigger("load",r,s)},1)}).complete(function(n,t){setTimeout(function(){"abort"===t&&f.panels.stop(!1,!0);u.removeClass("ui-tabs-loading");e.removeAttr("aria-busy");n===f.xhr&&delete f.xhr},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href"),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(jQuery),function(n,t){var i="ui-effects-";n.effects={effect:{}},function(n,t){function f(n,t,i){var r=h[t.type]||{};return null==n?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n)?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:n>r.max?r.max:n)}function s(f){var o=i(),s=o._rgba=[];return f=f.toLowerCase(),r(v,function(n,i){var r,h=i.re.exec(f),c=h&&i.parse(h),e=i.space||"rgba";return c?(r=o[e](c),o[u[e].cache]=r[u[e].cache],s=o._rgba=r._rgba,!1):t}),s.length?("0,0,0,0"===s.join()&&n.extend(s,e.transparent),o):e[f]}function o(n,t,i){return i=(i+1)%1,1>6*i?n+6*(t-n)*i:1>2*i?t:2>3*i?n+6*(t-n)*(2/3-i):n}var e,a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[2.55*n[1],2.55*n[2],2.55*n[3],n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={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"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=i.support={},l=n("<p>")[0],r=n.each;l.style.cssText="background-color:rgba(1,1,1,.5)";c.rgba=l.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,h,c,l){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(h),h=t);var a=this,v=n.type(o),y=this._rgba=[];return h!==t&&(o=[o,h,c,l],v="array"),"string"===v?this.parse(s(o)||e._default):"array"===v?(r(u.rgba.props,function(n,t){y[t.idx]=f(o[t.idx],t)}),this):"object"===v?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if("alpha"===n||null==o[n])return;a[u]=i.to(a._rgba)}a[u][t.idx]=f(o[n],t,!0)});a[u]&&0>n.inArray(null,a[u].slice(0,3))&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):t},is:function(n){var o=i(n),f=!0,e=this;return r(u,function(n,i){var s,u=o[i.cache];return u&&(s=e[i.cache]||i.to&&i.to(e._rgba)||[],r(i.props,function(n,i){return null!=u[i.idx]?f=u[i.idx]===s[i.idx]:t})),f}),f},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var e=i(n),c=e._space(),o=u[c],l=0===this.alpha()?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),s=a.slice();return e=e[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=e[c],o=h[i.type]||{};null!==u&&(null===r?s[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),s[c]=f((u-r)*t+r,i)))}),this[c](s)},blend:function(t){if(1===this._rgba[3])return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return null==n?t>2?1:0:n});return 1===t[3]&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return null==n&&(n=t>2?1:0),t&&3>t&&(n=Math.round(100*n)+"%"),n});return 1===t[3]&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(255*r)),"#"+n.map(i,function(n){return n=(n||0).toString(16),1===n.length?"0"+n:n}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var s,h,i=n[0]/255,r=n[1]/255,f=n[2]/255,c=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,l=.5*o;return s=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,h=0===t?0:.5>=l?t/o:t/(2-o),[Math.round(s)%360,h,l,null==c?1:c]};u.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=.5>=t?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(255*o(f,i,r+1/3)),Math.round(255*o(f,i,r)),Math.round(255*o(f,i,r-1/3)),e]};r(u,function(u,e){var s=e.props,o=e.cache,h=e.to,c=e.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v="array"===a||"object"===a?u:arguments,e=this[o].slice();return r(s,function(n,t){var i=v["object"===a?n:t.idx];null==i&&(i=e[t.idx]);e[t.idx]=f(i,t)}),c?(l=i(c(e)),l[o]=e,l):i(e)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f,e=n.type(i),h="alpha"===t?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx];return"undefined"===e?s:("function"===e&&(i=i.call(this,s),e=n.type(i)),null==i&&r.empty?this:("string"===e&&(f=a.exec(i),f&&(i=s+parseFloat(f[2])*("+"===f[1]?1:-1))),o[r.idx]=i,this[h](o)))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if("transparent"!==u&&("string"!==n.type(u)||(o=s(u)))){if(u=i(o||u),!c.rgba&&1!==u._rgba[3]){for(f="backgroundColor"===r?t.parentNode:t;(""===e||"transparent"===e)&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(h){}u=u.blend(e&&"transparent"!==e?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(h){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};e=n.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"}}(jQuery),function(){function i(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],"string"==typeof i[r]&&(f[n.camelCase(r)]=i[r]);else for(r in i)"string"==typeof i[r]&&(f[r]=i[r]);return f}function r(t,i){var r,u,e={};for(r in i)u=i[r],t[r]!==u&&(f[r]||(n.fx.step[r]||!isNaN(parseFloat(u)))&&(e[r]=u));return e}var u=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){("none"===n.end||n.setAttr)&&(1!==n.pos||n.setAttr)||(jQuery.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(t,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var o,e=n(this),h=e.attr("class")||"",f=s.children?e.find("*").addBack():e;f=f.map(function(){var t=n(this);return{el:t,start:i(this)}});o=function(){n.each(u,function(n,i){t[i]&&e[i+"Class"](t[i])})};o();f=f.map(function(){return this.end=i(this.el[0]),this.diff=r(this.start,this.end),this});e.attr("class",h);f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,f.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(e[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(i){return function(r,u,f,e,o){return"boolean"==typeof u||u===t?f?n.effects.animateClass.call(this,u?{add:r}:{remove:r},f,e,o):i.apply(this,arguments):n.effects.animateClass.call(this,{toggle:r},u,f,e)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function r(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),("number"==typeof i||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:"number"==typeof r?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function u(t){return!t||"number"==typeof t||n.fx.speeds[t]?!0:"string"!=typeof t||n.effects.effect[t]?n.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}n.extend(n.effects,{version:"1.10.3",save:function(n,t){for(var r=0;t.length>r;r++)null!==t[r]&&n.data(i+t[r],n[0].style[t[r]])},restore:function(n,r){for(var f,u=0;r.length>u;u++)null!==r[u]&&(f=n.data(i+r[u]),f===t&&(f=""),n.css(r[u],f))},setMode:function(n,t){return"toggle"===t&&(t=n.is(":hidden")?"show":"hide"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},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")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).focus(),u=t.parent(),"static"===t.css("position")?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).focus()),t},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function i(i){function f(){n.isFunction(o)&&o.call(r[0]);n.isFunction(i)&&i()}var r=n(this),o=t.complete,u=t.mode;(r.is(":hidden")?"hide"===u:"show"===u)?(r[u](),f()):e.call(r[0],t,f)}var t=r.apply(this,arguments),u=t.mode,f=t.queue,e=n.effects.effect[t.effect];return n.fx.off||!e?u?this[u](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):f===!1?this.each(i):this.queue(f||"fx",i)},show:function(n){return function(t){if(u(t))return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(n.fn.show),hide:function(n){return function(t){if(u(t))return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(n.fn.hide),toggle:function(n){return function(t){if(u(t)||"boolean"==typeof t)return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r}})}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return 0===n||1===n?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>n;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return.5>n?i(2*n)/2:1-i(-2*n+2)/2}})}()}(jQuery),function(n){n.effects.effect.fade=function(t,i){var r=n(this),u=n.effects.setMode(r,t.mode||"toggle");r.animate({opacity:u},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}}(jQuery); /*! * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.4";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.4";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.4";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var r=n(this),i=u(r),f={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.4";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a";f=o.find('[role="menu"]'+h+', [role="listbox"]'+h);f.length&&(r=f.index(t.target),38==t.which&&r>0&&r--,40==t.which&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.4";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in").attr("aria-hidden",!1);r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.4";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;if(y){var w=i,b=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(b);i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i;r.removeClass(w).addClass(i)}p=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(p,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=u.hoverState&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.4";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.4";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.4";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=u?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n(document.body).height();if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.4";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(n(i).is(document.body)?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.4";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(void 0!==i.style[t])return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery); /*! jQuery Validation Plugin - v1.13.1 - 10/14/2014 * http://jqueryvalidation.org/ * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){n.extend(n.fn,{validate:function(t){if(!this.length)return void(t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(t.target).hasClass("cancel")&&(i.cancelSubmit=!0);void 0!==n(t.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(t){function r(){var u,r;return i.settings.submitHandler?(i.submitButton&&(u=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&u.remove(),void 0!==r?r:!1):!0}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){var t,i;return n(this[0]).is("form")?t=this.validate().form():(t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t})),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var e,s,f,u,o,h,r=this[0];if(t)switch(e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r),t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(t,i){h[i]=f[i];delete f[i];"required"===i&&n(r).removeAttr("aria-required")}),h):(delete s[r.name],f)}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){return!!n.trim(""+n(t).val())},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return 1===arguments.length?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n,t){(9!==t.which||""!==this.elementValue(n))&&(n.name in this.submitted||n===this.lastElement)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var r=n.data(this[0].form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!this.is(i.ignore)&&i[u].call(r,this[0],t)}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var t,r=this.groups={};n.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",i).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",i);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var u=this.clean(t),i=this.validationTargetFor(u),r=!0;return this.lastElement=i,void 0===i?delete this.invalid[u.name]:(this.prepareElement(i),this.currentElements=n(i),r=this.check(i)!==!1,r?delete this.invalid[i.name]:this.invalid[i.name]=!0),n(t).attr("aria-invalid",!r),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),r},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var i,t=0;for(i in n)t++;return t},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&1===n.grep(this.errorList,function(n){return n.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var i,u=n(t),r=t.type;return"radio"===r||"checkbox"===r?n("input[name='"+t.name+"']:checked").val():"number"===r&&"undefined"!=typeof t.validity?t.validity.badInput?!1:u.val():(i=u.val(),"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var i,r,u,f=n(t).rules(),s=n.map(f,function(n,t){return t}).length,e=!1,h=this.elementValue(t);for(r in f){u={method:r,parameters:f[r]};try{if(i=n.validator.methods[r].call(this,h,t,u.parameters),"dependency-mismatch"===i&&1===s){e=!0;continue}if(e=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!i)return this.formatAndAdd(t,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+u.method+"' method.",o),o;}}if(!e)return this.objectLength(f)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(void 0!==arguments[n])return arguments[n];return void 0},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),!this.settings.ignoreTitle&&t.title||void 0,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(t,i){var r=this.defaultMessage(t,i.method),u=/\$?\{(\d+)\}/g;"function"==typeof r?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters));this.errorList.push({message:r,element:t,method:i.method});this.errorMap[t.name]=r;this.submitted[t.name]=r},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,o,e,r=this.errorsFor(t),s=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement(u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",s):0===r.parents("label[for='"+s+"']").length&&(e=r.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),f?f.match(new RegExp("\\b"+e+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),o=this.groups[t.name],o&&n.each(this.groups,function(t,i){i===o&&n("[name='"+t+"']",this.currentForm).attr("aria-describedby",r.attr("id"))})));!i&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.idOrName(t),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+u.replace(/\s+/g,", #")),this.errors().filter(i)},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+t+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var r,i,u={},e=n(t),f=t.getAttribute("type");for(r in n.validator.methods)"required"===r?(i=t.getAttribute(r),""===i&&(i=!0),i=!!i):i=e.attr(r),/min|max/.test(r)&&(null===f||/number|range|text/.test(f))&&(i=Number(i)),i||0===i?u[r]=i:f===r&&"range"!==f&&(u[r]=!0);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(t){var i,r,u={},f=n(t);for(i in n.validator.methods)r=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),void 0!==r&&(u[i]=r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)return void delete t[r];if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=void 0!==u.param?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=void 0!==r?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:n.trim(t).length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var i,f,e=0,r=0,u=!1;if(n=n.replace(/\D/g,""),n.length<13||n.length>19)return!1;for(i=n.length-1;i>=0;i--)f=n.charAt(i),r=parseInt(f,10),u&&(r*=2)>9&&(r-=9),e+=r,u=!u;return e%10==0},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=u},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||i>=n},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()},remote:function(t,i,r){if(this.optional(i))return"dependency-mismatch";var u,e,f=this.previousValue(i);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r="string"==typeof r&&{url:r}||r,f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,context:u.currentForm,success:function(r){var o,e,h,s=r===!0||"true"===r;u.settings.messages[i.name].remote=f.originalMessage;s?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),delete u.invalid[i.name],u.showErrors()):(o={},e=r||u.defaultMessage(i,"remote"),o[i.name]=f.message=n.isFunction(e)?e(t):e,u.invalid[i.name]=!0,u.showErrors(o));f.valid=s;u.stopRequest(i,s)}},r)),"pending")}}});n.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead.";};var i,t={};n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;"abort"===n.mode&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return"abort"===f?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)});n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})});$=jQuery.noConflict();$.fn.inlineStyle=function(n){return this.prop("style")[$.camelCase(n)]};$.fn.doOnce=function(n){return this.length&&n.apply(this),this};$.extend($.infinitescroll.prototype,{_setup_portfolioinfiniteitemsloader:function(){var t=this.options,n=this;$(t.nextSelector).click(function(t){t.which!=1||t.metaKey||t.shiftKey||(t.preventDefault(),n.retrieve())});n.options.loading.start=function(t){t.loading.msg.appendTo(t.loading.selector).show(t.loading.speed,function(){n.beginAjax(t)})}},_showdonemsg_portfolioinfiniteitemsloader:function(){var n=this.options,t=this;n.loading.msg.find("img").hide().parent().find("div").html(n.loading.finishedMsg).animate({opacity:1},500,function(){$(this).parent().fadeOut("normal")});$(n.navSelector).fadeOut("normal");n.errorCallback.call($(n.contentSelector)[0],"done")}}),function(){for(var i=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(n){var t=(new Date).getTime(),r=Math.max(0,16-(t-i)),u=window.setTimeout(function(){n(t+r)},r);return i=t+r,u});window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})}();requesting=!1;killRequesting=debounce(function(){requesting=!1},100);SEMICOLON=SEMICOLON||{},function(n){"use strict";SEMICOLON.initialize={init:function(){SEMICOLON.initialize.responsiveClasses();SEMICOLON.initialize.imagePreload(".portfolio-item:not(:has(.fslider)) img");SEMICOLON.initialize.stickyElements();SEMICOLON.initialize.goToTop();SEMICOLON.initialize.fullScreen();SEMICOLON.initialize.verticalMiddle();SEMICOLON.initialize.lightbox();SEMICOLON.initialize.resizeVideos();SEMICOLON.initialize.imageFade();SEMICOLON.initialize.pageTransition();SEMICOLON.initialize.dataStyles();SEMICOLON.initialize.dataResponsiveHeights();n(".fslider").addClass("preloader2")},responsiveClasses:function(){var n=jRespond([{label:"smallest",enter:0,exit:479},{label:"handheld",enter:480,exit:767},{label:"tablet",enter:768,exit:991},{label:"laptop",enter:992,exit:1199},{label:"desktop",enter:1200,exit:1e4}]);n.addFunc([{breakpoint:"desktop",enter:function(){t.addClass("device-lg")},exit:function(){t.removeClass("device-lg")}},{breakpoint:"laptop",enter:function(){t.addClass("device-md")},exit:function(){t.removeClass("device-md")}},{breakpoint:"tablet",enter:function(){t.addClass("device-sm")},exit:function(){t.removeClass("device-sm")}},{breakpoint:"handheld",enter:function(){t.addClass("device-xs")},exit:function(){t.removeClass("device-xs")}},{breakpoint:"smallest",enter:function(){t.addClass("device-xxs")},exit:function(){t.removeClass("device-xxs")}}])},imagePreload:function(t,i){var r={delay:250,transition:400,easing:"linear"};n.extend(r,i);n(t).each(function(){var t=n(this);t.css({visibility:"hidden",opacity:0,display:"block"});t.wrap('<span class="preloader" />');t.one("load",function(){n(this).delay(r.delay).css({visibility:"visible"}).animate({opacity:1},r.transition,r.easing,function(){n(this).unwrap('<span class="preloader" />')})}).each(function(){this.complete&&n(this).trigger("load")})})},verticalMiddle:function(){yt.length>0&&yt.each(function(){var r=n(this),u=r.outerHeight(),f=i.outerHeight();r.parents("#slider").length>0&&!r.hasClass("ignore-header")&&i.hasClass("transparent-header")&&(t.hasClass("device-lg")||t.hasClass("device-md"))&&(u=u-70,s.next("#header").length>0&&(u=u+f));t.hasClass("device-xs")||t.hasClass("device-xxs")?r.parents(".full-screen").length&&!r.parents(".force-full-screen").length?r.css({position:"relative",top:"0",width:"auto",marginTop:"0",padding:"60px 0"}).addClass("clearfix"):r.css({position:"absolute",top:"50%",width:"100%",marginTop:-(u/2)+"px"}):r.css({position:"absolute",top:"50%",width:"100%",marginTop:-(u/2)+"px"})})},stickyElements:function(){var n,t;tt.length>0&&(n=tt.outerHeight(),tt.css({marginTop:-(n/2)+"px"}));it.length>0&&(t=it.outerHeight(),it.css({marginTop:-(t/2)+"px"}))},goToTop:function(){rt.click(function(){return n("body,html").stop(!0).animate({scrollTop:0},400),!1})},goToTopScroll:function(){(t.hasClass("device-lg")||t.hasClass("device-md")||t.hasClass("device-sm"))&&(r.scrollTop()>450?rt.fadeIn():rt.fadeOut())},fullScreen:function(){pt.length>0&&pt.each(function(){var u=n(this),f=r.height(),e,h,o,c,l;u.attr("id")=="slider"&&(e=s.offset().top,f=f-e,u.hasClass("slider-parallax")&&(h=u.css("transform"),o=h.match(/-?[\d\.]+/g),c=o?o[5]:0,f=r.height()+Number(c)-e),n("#slider.with-header").next("#header:not(.transparent-header)").length>0&&(t.hasClass("device-lg")||t.hasClass("device-md"))&&(l=i.outerHeight(),f=f-l));u.parents(".full-screen").length>0&&(f=u.parents(".full-screen").height());(t.hasClass("device-xs")||t.hasClass("device-xxs"))&&(u.hasClass("force-full-screen")||(f="auto"));u.css("height",f);u.attr("id")!="slider"||u.hasClass("canvas-slider-grid")||u.has(".swiper-slide")&&u.find(".swiper-slide").css("height",f)})},maxHeight:function(){wt.length>0&&wt.each(function(){var t=n(this);t.has(".common-height")&&SEMICOLON.initialize.commonHeight(t.find(".common-height"));SEMICOLON.initialize.commonHeight(t)})},commonHeight:function(t){var i=0;t.children("[class^=col-]").each(function(){var t=n(this).children("div");t.hasClass("max-height")?i=t.outerHeight():t.outerHeight()>i&&(i=t.outerHeight())});t.children("[class^=col-]").each(function(){n(this).height(i)})},testimonialsGrid:function(){if(ut.length>0)if(t.hasClass("device-sm")||t.hasClass("device-md")||t.hasClass("device-lg")){var i=0;ut.each(function(){n(this).find("li > .testimonial").each(function(){n(this).height()>i&&(i=n(this).height())});n(this).find("li").height(i);i=0})}else ut.find("li").css({height:"auto"})},lightbox:function(){var i=n('[data-lightbox="image"]'),r=n('[data-lightbox="gallery"]'),u=n('[data-lightbox="iframe"]'),f=n('[data-lightbox="ajax"]'),e=n('[data-lightbox="ajax-gallery"]');i.length>0&&i.magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-fade",image:{verticalFit:!0}});r.length>0&&r.each(function(){var t=n(this);t.find('a[data-lightbox="gallery-item"]').parent(".clone").hasClass("clone")&&t.find('a[data-lightbox="gallery-item"]').parent(".clone").find('a[data-lightbox="gallery-item"]').attr("data-lightbox","");t.magnificPopup({delegate:'a[data-lightbox="gallery-item"]',type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-fade",image:{verticalFit:!0},gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}})});u.length>0&&u.magnificPopup({disableOn:600,type:"iframe",removalDelay:160,preloader:!1,fixedContentPos:!1});f.length>0&&f.magnificPopup({type:"ajax",closeBtnInside:!1,callbacks:{ajaxContentAdded:function(){SEMICOLON.widget.loadFlexSlider();SEMICOLON.initialize.resizeVideos();SEMICOLON.widget.masonryThumbs()},open:function(){t.addClass("ohidden")},close:function(){t.removeClass("ohidden")}}});e.length>0&&e.magnificPopup({delegate:'a[data-lightbox="ajax-gallery-item"]',type:"ajax",closeBtnInside:!1,gallery:{enabled:!0,preload:0,navigateByImgClick:!1},callbacks:{ajaxContentAdded:function(){SEMICOLON.widget.loadFlexSlider();SEMICOLON.initialize.resizeVideos();SEMICOLON.widget.masonryThumbs()},open:function(){t.addClass("ohidden")},close:function(){t.removeClass("ohidden")}}})},resizeVideos:function(){n().fitVids&&n("#content,#footer,#slider:not(.revslider-wrap),.landing-offer-media,.portfolio-ajax-modal").fitVids({customSelector:"iframe[src^='https://www.dailymotion.com/embed']",ignore:".no-fv"})},imageFade:function(){n(".image_fade").hover(function(){n(this).filter(":not(:animated)").animate({opacity:.8},400)},function(){n(this).animate({opacity:1},400)})},blogTimelineEntries:function(){n(".post-timeline.grid-2").find(".entry").each(function(){var t=n(this).inlineStyle("left");t=="0px"?n(this).removeClass("alt"):n(this).addClass("alt");n(this).find(".entry-timeline").fadeIn()})},pageTransition:function(){if(!t.hasClass("no-transition")){var h=t.attr("data-animation-in"),c=t.attr("data-animation-out"),a=t.attr("data-speed-in"),v=t.attr("data-speed-out"),f=t.attr("data-loader"),s=t.attr("data-loader-color"),r='<div class="css3-spinner-bounce1"><\/div><div class="css3-spinner-bounce2"><\/div><div class="css3-spinner-bounce3"><\/div>',n="",e="",u="",y="",i="",o="";h||(h="fadeIn");c||(c="fadeOut");a||(a=1500);v||(v=800);s&&(s=="theme"?(u=" bgcolor",y=" border-color",i=' class="bgcolor"',o=' class="border-color"'):(n=' style="background-color:'+s+';"',e=' style="border-color:'+s+';"'),r='<div class="css3-spinner-bounce1'+u+'"'+n+'><\/div><div class="css3-spinner-bounce2'+u+'"'+n+'><\/div><div class="css3-spinner-bounce3'+u+'"'+n+"><\/div>");f=="2"?r='<div class="css3-spinner-flipper'+u+'"'+n+"><\/div>":f=="3"?r='<div class="css3-spinner-double-bounce1'+u+'"'+n+'><\/div><div class="css3-spinner-double-bounce2'+u+'"'+n+"><\/div>":f=="4"?r='<div class="css3-spinner-rect1'+u+'"'+n+'><\/div><div class="css3-spinner-rect2'+u+'"'+n+'><\/div><div class="css3-spinner-rect3'+u+'"'+n+'><\/div><div class="css3-spinner-rect4'+u+'"'+n+'><\/div><div class="css3-spinner-rect5'+u+'"'+n+"><\/div>":f=="5"?r='<div class="css3-spinner-cube1'+u+'"'+n+'><\/div><div class="css3-spinner-cube2'+u+'"'+n+"><\/div>":f=="6"?r='<div class="css3-spinner-scaler'+u+'"'+n+"><\/div>":f=="7"?r='<div class="css3-spinner-grid-pulse"><div'+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><\/div>":f=="8"?r='<div class="css3-spinner-clip-rotate"><div'+o+e+"><\/div><\/div>":f=="9"?r='<div class="css3-spinner-ball-rotate"><div'+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><\/div>":f=="10"?r='<div class="css3-spinner-zig-zag"><div'+i+n+"><\/div><div"+i+n+"><\/div><\/div>":f=="11"?r='<div class="css3-spinner-triangle-path"><div'+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><\/div>":f=="12"?r='<div class="css3-spinner-ball-scale-multiple"><div'+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><\/div>":f=="13"?r='<div class="css3-spinner-ball-pulse-sync"><div'+i+n+"><\/div><div"+i+n+"><\/div><div"+i+n+"><\/div><\/div>":f=="14"&&(r='<div class="css3-spinner-scale-ripple"><div'+o+e+"><\/div><div"+o+e+"><\/div><div"+o+e+"><\/div><\/div>");l.animsition({inClass:h,outClass:c,inDuration:Number(a),outDuration:Number(v),linkElement:'#primary-menu ul li a:not([target="_blank"]):not([href^=#])',loading:!0,loadingParentElement:"body",loadingClass:"css3-spinner",loadingHtml:r,unSupportCss:["animation-duration","-webkit-animation-duration","-o-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body"})}},topScrollOffset:function(){var n=0;return(t.hasClass("device-lg")||t.hasClass("device-md"))&&!SEMICOLON.isMobile.any()?(n=i.hasClass("sticky-header")?h.hasClass("dots-menu")?100:144:h.hasClass("dots-menu")?140:184,h.length||(n=i.hasClass("sticky-header")?100:140)):n=40,n},defineColumns:function(n){var i=4;if(n.hasClass("portfolio-full"))i=n.hasClass("portfolio-3")?3:n.hasClass("portfolio-5")?5:n.hasClass("portfolio-6")?6:4,t.hasClass("device-sm")&&(i==4||i==5||i==6)?i=3:t.hasClass("device-xs")&&(i==3||i==4||i==5||i==6)?i=2:t.hasClass("device-xxs")&&(i=1);else if(n.hasClass("masonry-thumbs")){var r=n.attr("data-lg-col"),u=n.attr("data-md-col"),f=n.attr("data-sm-col"),e=n.attr("data-xs-col"),o=n.attr("data-xxs-col");i=n.hasClass("col-2")?2:n.hasClass("col-3")?3:n.hasClass("col-5")?5:n.hasClass("col-6")?6:4;t.hasClass("device-lg")?r&&(i=Number(r)):t.hasClass("device-md")?u&&(i=Number(u)):t.hasClass("device-sm")?f&&(i=Number(f)):t.hasClass("device-xs")?e&&(i=Number(e)):t.hasClass("device-xxs")&&o&&(i=Number(o))}return i},setFullColumnWidth:function(i){var e,u,l,f,h,o,c,s,v;if(i.hasClass("portfolio-full"))e=SEMICOLON.initialize.defineColumns(i),u=i.width(),u==Math.floor(u/e)*e&&(u=u-1),f=Math.floor(u/e),l=t.hasClass("device-xxs")?1:0,i.find(".portfolio-item").each(function(){var t;t=l==0&&n(this).hasClass("wide")?f*2:f;n(this).css({width:t+"px"})});else if(i.hasClass("masonry-thumbs")){var e=SEMICOLON.initialize.defineColumns(i),u=i.innerWidth(),a=r.width();if(u==a&&(u=a*1.004,i.css({width:u+"px"})),f=u/e,f=Math.floor(f),f*e>=u&&i.css({"margin-right":"-1px"}),i.children("a").css({width:f+"px"}),h=i.find("a:eq(0)").outerWidth(),i.isotope({masonry:{columnWidth:h}}),o=i.attr("data-big"),o){for(o=o.split(","),c="",s="",s=0;s<o.length;s++)c=Number(o[s])-1,i.find("a:eq("+c+")").css({width:h*2+"px"});v=setTimeout(function(){i.isotope("layout")},1e3)}}},aspectResizer:function(){var t=n(".aspect-resizer");t.length>0&&t.each(function(){var t=n(this),i=t.inlineStyle("width"),r=t.inlineStyle("height"),u=t.parent().innerWidth()})},dataStyles:function(){var i=n("[data-style-xxs]"),r=n("[data-style-xs]"),u=n("[data-style-sm]"),f=n("[data-style-md]"),e=n("[data-style-lg]");i.length>0&&i.each(function(){var i=n(this),r=i.attr("data-style-xxs");t.hasClass("device-xxs")&&r!=""&&i.attr("style",r)});r.length>0&&r.each(function(){var i=n(this),r=i.attr("data-style-xs");t.hasClass("device-xs")&&r!=""&&i.attr("style",r)});u.length>0&&u.each(function(){var i=n(this),r=i.attr("data-style-sm");t.hasClass("device-sm")&&r!=""&&i.attr("style",r)});f.length>0&&f.each(function(){var i=n(this),r=i.attr("data-style-md");t.hasClass("device-md")&&r!=""&&i.attr("style",r)});e.length>0&&e.each(function(){var i=n(this),r=i.attr("data-style-lg");t.hasClass("device-lg")&&r!=""&&i.attr("style",r)})},dataResponsiveHeights:function(){var i=n("[data-height-xxs]"),r=n("[data-height-xs]"),u=n("[data-height-sm]"),f=n("[data-height-md]"),e=n("[data-height-lg]");i.length>0&&i.each(function(){var i=n(this),r=i.attr("data-height-xxs");t.hasClass("device-xxs")&&r!=""&&i.css("height",r)});r.length>0&&r.each(function(){var i=n(this),r=i.attr("data-height-xs");t.hasClass("device-xs")&&r!=""&&i.css("height",r)});u.length>0&&u.each(function(){var i=n(this),r=i.attr("data-height-sm");t.hasClass("device-sm")&&r!=""&&i.css("height",r)});f.length>0&&f.each(function(){var i=n(this),r=i.attr("data-height-md");t.hasClass("device-md")&&r!=""&&i.css("height",r)});e.length>0&&e.each(function(){var i=n(this),r=i.attr("data-height-lg");t.hasClass("device-lg")&&r!=""&&i.css("height",r)})},stickFooterOnSmall:function(){var n=r.height(),t=l.height();ft.length>0&&l.has("#footer")&&n>t&&ft.css({"margin-top":n-t})}};SEMICOLON.header={init:function(){SEMICOLON.header.superfish();SEMICOLON.header.menufunctions();SEMICOLON.header.fullWidthMenu();SEMICOLON.header.overlayMenu();SEMICOLON.header.stickyMenu();SEMICOLON.header.sideHeader();SEMICOLON.header.sidePanel();SEMICOLON.header.onePageScroll();SEMICOLON.header.onepageScroller();SEMICOLON.header.darkLogo();SEMICOLON.header.topsearch();SEMICOLON.header.topcart()},superfish:function(){n().superfish&&((t.hasClass("device-lg")||t.hasClass("device-md"))&&(n("#primary-menu ul ul, #primary-menu ul .mega-menu-content").css("display","block"),SEMICOLON.header.menuInvert()),n("body:not(.side-header) #primary-menu > ul, body:not(.side-header) #primary-menu > div > ul,.top-links > ul").superfish({popUpSelector:"ul,.mega-menu-content,.top-link-section",delay:250,speed:350,animation:{opacity:"show"},animationOut:{opacity:"hide"},cssArrows:!1}),n("body.side-header #primary-menu > ul").superfish({popUpSelector:"ul",delay:250,speed:350,animation:{opacity:"show",height:"show"},animationOut:{opacity:"hide",height:"hide"},cssArrows:!1}))},menuInvert:function(){n("#primary-menu .mega-menu-content, #primary-menu ul ul").each(function(t,i){var u=n(i),f=r.width(),e=u.offset(),o=u.width(),s=e.left;f-(o+s)<0&&u.addClass("menu-pos-invert")})},menufunctions:function(){if(n("#primary-menu ul li:has(ul)").addClass("sub-menu"),n(".top-links ul li:has(ul) > a").append(' <i class="icon-angle-down"><\/i>'),n(".top-links > ul").addClass("clearfix"),(t.hasClass("device-lg")||t.hasClass("device-md"))&&(n("#primary-menu.sub-title > ul > li").hover(function(){n(this).prev().css({backgroundImage:"none"})},function(){n(this).prev().css({backgroundImage:'url("images/icons/menu-divider.png")'})}),n("#primary-menu.sub-title").children("ul").children(".current").prev().css({backgroundImage:"none"})),SEMICOLON.isMobile.Android())n("#primary-menu ul li.sub-menu").children("a").on("touchstart",function(t){n(this).parent("li.sub-menu").hasClass("sfHover")||t.preventDefault()});SEMICOLON.isMobile.Windows()&&(n("#primary-menu > ul, #primary-menu > div > ul,.top-links > ul").superfish("destroy").addClass("windows-mobile-menu"),n("#primary-menu ul li:has(ul)").append('<a href="#" class="wn-submenu-trigger"><i class="icon-angle-down"><\/i><\/a>'),n("#primary-menu ul li.sub-menu").children("a.wn-submenu-trigger").click(function(){return n(this).parent().toggleClass("open"),n(this).parent().find("> ul, > .mega-menu-content").stop(!0,!0).toggle(),!1}))},fullWidthMenu:function(){t.hasClass("stretched")?(i.find(".container-fullwidth").length>0&&n(".mega-menu .mega-menu-content").css({width:l.width()-120}),i.hasClass("full-header")&&n(".mega-menu .mega-menu-content").css({width:l.width()-60})):(i.find(".container-fullwidth").length>0&&n(".mega-menu .mega-menu-content").css({width:l.width()-120}),i.hasClass("full-header")&&n(".mega-menu .mega-menu-content").css({width:l.width()-80}))},overlayMenu:function(){if(t.hasClass("overlay-menu")){var i=n("#primary-menu").children("ul").children("li"),u=i.outerHeight(),f=i.length*u,e=(r.height()-f)/2;n("#primary-menu").children("ul").children("li:first-child").css({"margin-top":e+"px"})}},stickyMenu:function(i){r.scrollTop()>i?t.hasClass("device-lg")||t.hasClass("device-md")?(n("body:not(.side-header) #header:not(.no-sticky)").addClass("sticky-header"),n("#page-menu:not(.dots-menu,.no-sticky)").addClass("sticky-page-menu"),u.hasClass("force-not-dark")||u.removeClass("not-dark"),SEMICOLON.header.stickyMenuClass()):(t.hasClass("device-xs")||t.hasClass("device-xxs")||t.hasClass("device-sm"))&&(t.hasClass("sticky-responsive-menu")&&(n("#header:not(.no-sticky)").addClass("responsive-sticky-header"),SEMICOLON.header.stickyMenuClass()),t.hasClass("sticky-responsive-pagemenu")&&n("#page-menu:not(.dots-menu,.no-sticky)").addClass("sticky-page-menu")):SEMICOLON.header.removeStickyness()},removeStickyness:function(){i.hasClass("sticky-header")&&(n("body:not(.side-header) #header:not(.no-sticky)").removeClass("sticky-header"),i.removeClass().addClass(et),u.removeClass().addClass(ot),u.hasClass("force-not-dark")||u.removeClass("not-dark"),SEMICOLON.slider.swiperSliderMenu(),SEMICOLON.slider.revolutionSliderMenu());h.hasClass("sticky-page-menu")&&n("#page-menu:not(.dots-menu,.no-sticky)").removeClass("sticky-page-menu");i.hasClass("responsive-sticky-header")&&n("body.sticky-responsive-menu #header").removeClass("responsive-sticky-header");(t.hasClass("device-xs")||t.hasClass("device-xxs")||t.hasClass("device-sm"))&&typeof b=="undefined"&&(i.removeClass().addClass(et),u.removeClass().addClass(ot),u.hasClass("force-not-dark")||u.removeClass("not-dark"))},sideHeader:function(){n("#header-trigger").click(function(){return n("body.open-header").toggleClass("side-header-open"),!1})},sidePanel:function(){n(".side-panel-trigger").click(function(){return t.toggleClass("side-panel-open"),t.hasClass("device-touch")&&t.toggleClass("ohidden"),!1})},onePageScroll:function(){if(e.length>0){var t=e.attr("data-speed"),r=e.attr("data-offset"),i=e.attr("data-easing");t||(t=1e3);i||(i="easeOutQuad");e.find("a[data-href]").click(function(){var f=n(this),o=f.attr("data-href"),s=f.attr("data-speed"),u=f.attr("data-offset"),h=f.attr("data-easing"),c;return n(o).length>0&&(c=r?r:SEMICOLON.initialize.topScrollOffset(),s||(s=t),u||(u=c),h||(h=i),e.hasClass("no-offset")&&(u=0),k=Number(u),e.find("li").removeClass("current"),e.find('a[data-href="'+o+'"]').parent("li").addClass("current"),n("#primary-menu > ul, #primary-menu > .container > ul").toggleClass("show",function(){n("html,body").stop(!0).animate({scrollTop:n(o).offset().top-Number(u)},Number(s),h)},!1),k=Number(u)),!1})}},onepageScroller:function(){e.find("li").removeClass("current");e.find('a[data-href="#'+SEMICOLON.header.onePageCurrentSection()+'"]').parent("li").addClass("current")},onePageCurrentSection:function(){var t="home",i=u.outerHeight();return ni.each(function(){var u=n(this).offset().top,f=r.scrollTop(),e=i+k;f+e>=u&&f<u+n(this).height()&&n(this).attr("id")!=t&&(t=n(this).attr("id"))}),t},darkLogo:function(){(i.hasClass("dark")||t.hasClass("dark"))&&!u.hasClass("not-dark")?(lt&&a.find("img").attr("src",lt),at&&v.find("img").attr("src",at)):(ht&&a.find("img").attr("src",ht),ct&&v.find("img").attr("src",ct))},stickyMenuClass:function(){var t,r,n;if(t=st?st.split(/ +/):"",r=t.length,r>0)for(n=0,n=0;n<r;n++)t[n]=="not-dark"?(i.removeClass("dark"),u.addClass("not-dark")):t[n]=="dark"?(u.removeClass("not-dark force-not-dark"),i.hasClass(t[n])||i.addClass(t[n])):i.hasClass(t[n])||i.addClass(t[n])},responsiveMenuClass:function(){var r,f,n;if(t.hasClass("device-xs")||t.hasClass("device-xxs")||t.hasClass("device-sm")){if(r=b?b.split(/ +/):"",f=r.length,f>0)for(n=0,n=0;n<f;n++)r[n]=="not-dark"?(i.removeClass("dark"),u.addClass("not-dark")):r[n]=="dark"?(u.removeClass("not-dark force-not-dark"),i.hasClass(r[n])||i.addClass(r[n])):i.hasClass(r[n])||i.addClass(r[n]);SEMICOLON.header.darkLogo()}},topsocial:function(){o.length>0&&(t.hasClass("device-md")||t.hasClass("device-lg")?(o.show(),o.find("a").css({width:40}),o.find(".ts-text").each(function(){var i=n(this).clone().css({visibility:"hidden",display:"inline-block","font-size":"13px","font-weight":"bold"}).appendTo(t),r=i.innerWidth()+52;n(this).parent("a").attr("data-hover-width",r);i.remove()}),o.find("a").hover(function(){n(this).find(".ts-text").length>0&&n(this).css({width:n(this).attr("data-hover-width")})},function(){n(this).css({width:40})})):(o.show(),o.find("a").css({width:40}),o.find("a").each(function(){var t=n(this).find(".ts-text").text();n(this).attr("title",t)}),o.find("a").hover(function(){n(this).css({width:40})},function(){n(this).css({width:40})}),t.hasClass("device-xxs")&&(o.hide(),o.slice(0,8).show())))},topsearch:function(){n(document).on("click",function(i){n(i.target).closest("#top-search").length||t.toggleClass("top-search-open",!1);n(i.target).closest("#top-cart").length||w.toggleClass("top-cart-open",!1);n(i.target).closest("#page-menu").length||h.toggleClass("pagemenu-active",!1);n(i.target).closest("#side-panel").length||t.toggleClass("side-panel-open",!1)});n("#top-search-trigger").click(function(i){t.toggleClass("top-search-open");w.toggleClass("top-cart-open",!1);n("#primary-menu > ul, #primary-menu > div > ul").toggleClass("show",!1);h.toggleClass("pagemenu-active",!1);t.hasClass("top-search-open")&>.find("input").focus();i.stopPropagation();i.preventDefault()})},topcart:function(){n("#top-cart-trigger").click(function(n){h.toggleClass("pagemenu-active",!1);w.toggleClass("top-cart-open");n.stopPropagation();n.preventDefault()})}};SEMICOLON.slider={init:function(){SEMICOLON.slider.sliderParallax();SEMICOLON.slider.sliderElementsFade();SEMICOLON.slider.captionPosition()},sliderParallaxOffset:function(){var n=0,r=i.outerHeight(),u;return(t.hasClass("side-header")||i.hasClass("transparent-header"))&&(r=0),vt.length>0?(u=vt.outerHeight(),n=u+r):n=r,s.next("#header").length>0&&(n=0),n},sliderParallax:function(){var i,u,f,e;c.length>0&&((t.hasClass("device-lg")||t.hasClass("device-md"))&&!SEMICOLON.isMobile.any()?(i=SEMICOLON.slider.sliderParallaxOffset(),u=c.outerHeight(),u+i+50>r.scrollTop()?(c.find(".slider-inner").css({display:"block",visibility:"visible"}),r.scrollTop()>i?(f=((r.scrollTop()-i)/1.5).toFixed(2),e=((r.scrollTop()-i)/7).toFixed(2),c.stop(!0,!0).transition({y:f},0),n(".slider-parallax .slider-caption,.ei-title").stop(!0,!0).transition({y:-e},0)):n(".slider-parallax,.slider-parallax .slider-caption,.ei-title").transition({y:0},0)):c.find(".slider-inner").css({display:"none",visibility:"hidden"}),requesting&&requestAnimationFrame(function(){SEMICOLON.slider.sliderParallax();SEMICOLON.slider.sliderElementsFade()})):n(".slider-parallax,.slider-parallax .slider-caption,.ei-title").transition({y:0},0))},sliderElementsFade:function(){var u,f;c.length>0&&((t.hasClass("device-lg")||t.hasClass("device-md"))&&!SEMICOLON.isMobile.any()?(u=SEMICOLON.slider.sliderParallaxOffset(),s.length>0&&(f=i.hasClass("transparent-header")||n("body").hasClass("side-header")?100:0,c.find("#slider-arrow-left,#slider-arrow-right,.vertical-middle:not(.no-fade),.slider-caption,.ei-title,.camera_prev,.camera_next").css({opacity:(100+(s.offset().top+u+f)-r.scrollTop())/90}))):c.find("#slider-arrow-left,#slider-arrow-right,.vertical-middle:not(.no-fade),.slider-caption,.ei-title,.camera_prev,.camera_next").css({opacity:1}))},captionPosition:function(){s.find(".slider-caption").each(function(){var i=n(this).outerHeight(),r=s.outerHeight();n(this).parents("#slider").prev("#header").hasClass("transparent-header")&&(t.hasClass("device-lg")||t.hasClass("device-md"))?n(this).parents("#slider").prev("#header").hasClass("floating-header")?n(this).css({top:(r+160-i)/2+"px"}):n(this).css({top:(r+100-i)/2+"px"}):n(this).css({top:(r-i)/2+"px"})})},swiperSliderMenu:function(){if(t.hasClass("device-lg")||t.hasClass("device-md")){var n=s.find(".swiper-slide.swiper-slide-visible");SEMICOLON.slider.headerSchemeChanger(n)}},revolutionSliderMenu:function(){if(t.hasClass("device-lg")||t.hasClass("device-md")){var n=s.find(".current-sr-slide-visible");SEMICOLON.slider.headerSchemeChanger(n)}},headerSchemeChanger:function(i){i.length>0&&(i.hasClass("dark")?(n("#header.transparent-header:not(.sticky-header,.semi-transparent,.floating-header)").addClass("dark"),n("#header.transparent-header.sticky-header,#header.transparent-header.semi-transparent.sticky-header,#header.transparent-header.floating-header.sticky-header").removeClass("dark"),u.removeClass("not-dark")):t.hasClass("dark")?(i.addClass("not-dark"),n("#header.transparent-header:not(.semi-transparent,.floating-header)").removeClass("dark"),n("#header.transparent-header:not(.sticky-header,.semi-transparent,.floating-header)").find("#header-wrap").addClass("not-dark")):(n("#header.transparent-header:not(.semi-transparent,.floating-header)").removeClass("dark"),u.removeClass("not-dark")),SEMICOLON.header.darkLogo())},owlCaptionInit:function(){bt.length>0&&bt.each(function(){var t=n(this);t.find(".owl-dot").length>0&&t.find(".owl-controls").addClass("with-carousel-dots")})}};SEMICOLON.portfolio={init:function(){SEMICOLON.portfolio.ajaxload()},portfolioDescMargin:function(){var t=n(".portfolio-overlay");t.length>0&&t.each(function(){var t=n(this),i,r,u,f;t.find(".portfolio-desc").length>0&&(i=t.outerHeight(),r=t.find(".portfolio-desc").outerHeight(),u=t.find("a.left-icon").length>0||t.find("a.right-icon").length>0||t.find("a.center-icon").length>0?60:0,f=(i-r-u)/2,t.find(".portfolio-desc").css({"margin-top":f}))})},arrange:function(){SEMICOLON.initialize.setFullColumnWidth(d);n("#portfolio.portfolio-full").isotope("layout")},ajaxload:function(){n(".portfolio-ajax .portfolio-item a.center-icon").click(function(t){var i=n(this).parents(".portfolio-item").attr("id");n(this).parents(".portfolio-item").hasClass("portfolio-active")||SEMICOLON.portfolio.loadItem(i,nt);t.preventDefault()})},newNextPrev:function(t){var i=SEMICOLON.portfolio.getNextItem(t),r=SEMICOLON.portfolio.getPrevItem(t);n("#next-portfolio").attr("data-id",i);n("#prev-portfolio").attr("data-id",r)},loadItem:function(t,i,r){var u,f,e;r||(r=!1);u=SEMICOLON.portfolio.getNextItem(t);f=SEMICOLON.portfolio.getPrevItem(t);r==!1&&(SEMICOLON.portfolio.closeItem(),p.fadeIn(),e=n("#"+t).attr("data-loader"),y.load(e,{portid:t,portnext:u,portprev:f},function(){SEMICOLON.portfolio.initializeAjax(t);SEMICOLON.portfolio.openItem();g.removeClass("portfolio-active");n("#"+t).addClass("portfolio-active")}))},closeItem:function(){f&&f.height()>32&&(p.fadeIn(),f.find("#portfolio-ajax-single").fadeOut("600",function(){n(this).remove()}),f.removeClass("portfolio-ajax-opened"))},openItem:function(){var t=f.find("img").length,i=0,r,u;if(t>0)f.find("img").on("load",function(){var r,u;i++;r=SEMICOLON.initialize.topScrollOffset();t===i&&(y.css({display:"block"}),f.addClass("portfolio-ajax-opened"),p.fadeOut(),u=setTimeout(function(){SEMICOLON.widget.loadFlexSlider();SEMICOLON.initialize.lightbox();SEMICOLON.initialize.resizeVideos();SEMICOLON.widget.masonryThumbs();n("html,body").stop(!0).animate({scrollTop:f.offset().top-r},900,"easeOutQuad")},500))});else r=SEMICOLON.initialize.topScrollOffset(),y.css({display:"block"}),f.addClass("portfolio-ajax-opened"),p.fadeOut(),u=setTimeout(function(){SEMICOLON.widget.loadFlexSlider();SEMICOLON.initialize.lightbox();SEMICOLON.initialize.resizeVideos();SEMICOLON.widget.masonryThumbs();n("html,body").stop(!0).animate({scrollTop:f.offset().top-r},900,"easeOutQuad")},500)},getNextItem:function(t){var i="",r=n("#"+t).next();return r.length!=0&&(i=r.attr("id")),i},getPrevItem:function(t){var i="",r=n("#"+t).prev();return r.length!=0&&(i=r.attr("id")),i},initializeAjax:function(t){nt=n("#"+t);n("#next-portfolio, #prev-portfolio").click(function(){var t=n(this).attr("data-id");return g.removeClass("portfolio-active"),n("#"+t).addClass("portfolio-active"),SEMICOLON.portfolio.loadItem(t,nt),!1});n("#close-portfolio").click(function(){return y.fadeOut("600",function(){f.find("#portfolio-ajax-single").remove()}),f.removeClass("portfolio-ajax-opened"),g.removeClass("portfolio-active"),!1})}};SEMICOLON.widget={init:function(){SEMICOLON.widget.animations();SEMICOLON.widget.youtubeBgVideo();SEMICOLON.widget.tabs();SEMICOLON.widget.tabsJustify();SEMICOLON.widget.toggles();SEMICOLON.widget.accordions();SEMICOLON.widget.counter();SEMICOLON.widget.roundedSkill();SEMICOLON.widget.progress();SEMICOLON.widget.twitterFeed();SEMICOLON.widget.flickrFeed();SEMICOLON.widget.instagramPhotos("36286274.b9e559e.4824cbc1d0c94c23827dc4a2267a9f6b","b9e559ec7c284375bf41e9a9fb72ae01");SEMICOLON.widget.dribbbleShots();SEMICOLON.widget.navTree();SEMICOLON.widget.textRotater();SEMICOLON.widget.linkScroll();SEMICOLON.widget.extras()},parallax:function(){SEMICOLON.isMobile.any()?(ti.addClass("mobile-parallax"),ii.addClass("mobile-parallax")):n.stellar({horizontalScrolling:!1,verticalOffset:150})},animations:function(){var i=n("[data-animate]");i.length>0&&(t.hasClass("device-lg")||t.hasClass("device-md")||t.hasClass("device-sm"))&&i.each(function(){var t=n(this),i=t.attr("data-delay"),r=0,u;r=i?Number(i)+500:500;t.hasClass("animated")||(t.addClass("not-animated"),u=t.attr("data-animate"),t.appear(function(){setTimeout(function(){t.removeClass("not-animated").addClass(u+" animated")},r)},{accX:0,accY:-120},"easeInCubic"))})},loadFlexSlider:function(){var t=n(".fslider:not(.customjs)").find(".flexslider");t.length>0&&t.each(function(){var t=n(this),f=t.parent(".fslider").attr("data-animation"),r=t.parent(".fslider").attr("data-easing"),u=t.parent(".fslider").attr("data-direction"),e=t.parent(".fslider").attr("data-slideshow"),o=t.parent(".fslider").attr("data-pause"),s=t.parent(".fslider").attr("data-speed"),h=t.parent(".fslider").attr("data-video"),i=t.parent(".fslider").attr("data-pagi"),c=t.parent(".fslider").attr("data-arrows"),y=t.parent(".fslider").attr("data-thumbs"),l=t.parent(".fslider").attr("data-hover"),a=!0,v=!1;f||(f="slide");r&&r!="swing"||(r="swing",v=!0);u||(u="horizontal");e=e?!1:!0;o||(o=5e3);s||(s=600);h||(h=!1);u=="vertical"&&(a=!1);i=i=="false"?!1:!0;i=y=="true"?"thumbnails":i;c=c=="false"?!1:!0;l=l=="false"?!1:!0;t.flexslider({selector:".slider-wrap > .slide",animation:f,easing:r,direction:u,slideshow:e,slideshowSpeed:Number(o),animationSpeed:Number(s),pauseOnHover:l,video:h,controlNav:i,directionNav:c,smoothHeight:a,useCSS:v,start:function(t){SEMICOLON.widget.animations();SEMICOLON.initialize.verticalMiddle();t.parent().removeClass("preloader2");var i=setTimeout(function(){n("#portfolio.portfolio-masonry,#portfolio.portfolio-full,#posts.post-masonry").isotope("layout")},1200);SEMICOLON.initialize.lightbox();n(".flex-prev").html('<i class="icon-angle-left"><\/i>');n(".flex-next").html('<i class="icon-angle-right"><\/i>');SEMICOLON.portfolio.portfolioDescMargin()},after:function(){d.has("portfolio-full")&&(n("#portfolio.portfolio-full").isotope("layout"),SEMICOLON.portfolio.portfolioDescMargin())}})})},html5Video:function(){var t=n(".video-wrap:has(video)");t.length>0&&t.each(function(){var i=n(this),t=i.find("video"),h=i.outerWidth(),r=i.outerHeight(),o=t.outerWidth(),u=t.outerHeight(),f,e;if(u<r){var c=o/u,s=r*c,f=(s-h)/2;t.css({width:s+"px",height:r+"px",left:-f+"px"})}else f=(u-r)/2,t.css({width:o+"px",height:u+"px",top:-f+"px"});SEMICOLON.isMobile.any()&&(e=t.attr("poster"),e!=""&&i.append('<div class="video-placeholder" style="background-image: url('+e+');"><\/div>'))})},youtubeBgVideo:function(){kt.length>0&&kt.each(function(){var t=n(this),y=t.attr("data-video"),i=t.attr("data-mute"),r=t.attr("data-ratio"),u=t.attr("data-quality"),f=t.attr("data-opacity"),e=t.attr("data-container"),o=t.attr("data-optimize"),s=t.attr("data-loop"),h=t.attr("data-volume"),c=t.attr("data-start"),l=t.attr("data-stop"),a=t.attr("data-autoplay"),v=t.attr("data-fullscreen");i=i=="false"?!1:!0;r||(r="16/9");u||(u="hd720");f||(f=1);e||(e="self");o=o=="false"?!1:!0;s=s=="false"?!1:!0;h||(h=1);c||(c=0);l||(l=0);a=a=="false"?!1:!0;v=v=="true"?!0:!1;t.mb_YTPlayer({videoURL:y,mute:i,ratio:r,quality:u,opacity:Number(f),containment:e,optimizeDisplay:o,loop:s,vol:Number(h),startAt:Number(c),stopAt:Number(l),autoplay:a,realfullscreen:v,showYTLogo:!1,showControls:!1})})},tabs:function(){var t=n(".tabs:not(.customjs)");t.length>0&&t.each(function(){var i=n(this),r=i.attr("data-speed"),t=i.attr("data-active");r||(r=400);t=t?t-1:0;i.tabs({active:Number(t),show:{effect:"fade",duration:Number(r)}})})},tabsJustify:function(){if(n("body").hasClass("device-xxs")||n("body").hasClass("device-xs"))n(".tabs.tabs-justify").find(".tab-nav > li").css({width:"auto"});else{var t=n(".tabs.tabs-justify");t.length>0&&t.each(function(){var t=n(this),i=t.find(".tab-nav > li"),r=i.length,u=0,f=0;u=t.hasClass("tabs-bordered")||t.hasClass("tabs-bb")?t.find(".tab-nav").outerWidth():t.find("tab-nav").hasClass("tab-nav2")?t.find(".tab-nav").outerWidth()-r*10:t.find(".tab-nav").outerWidth()-30;f=Math.floor(u/r);i.css({width:f+"px"})})}},toggles:function(){var t=n(".toggle");t.length>0&&t.each(function(){var t=n(this),i=t.attr("data-state");i!="open"?t.find(".togglec").hide():t.find(".togglet").addClass("toggleta");t.find(".togglet").click(function(){return n(this).toggleClass("toggleta").next(".togglec").slideToggle(300),!0})})},accordions:function(){var t=n(".accordion");t.length>0&&t.each(function(){var t=n(this),r=t.attr("data-state"),i=t.attr("data-active");i=i?i-1:0;t.find(".acc_content").hide();r!="closed"&&t.find(".acctitle:eq("+Number(i)+")").addClass("acctitlec").next().show();t.find(".acctitle").click(function(){return n(this).next().is(":hidden")&&(t.find(".acctitle").removeClass("acctitlec").next().slideUp("normal"),n(this).toggleClass("acctitlec").next().slideDown("normal")),!1})})},counter:function(){var i=n(".counter:not(.counter-instant)");i.length>0&&i.each(function(){var r=n(this),i=n(this).find("span").attr("data-comma");i=i?!0:!1;t.hasClass("device-lg")||t.hasClass("device-md")?r.appear(function(){SEMICOLON.widget.runCounter(r,i)},{accX:0,accY:-120},"easeInCubic"):SEMICOLON.widget.runCounter(r,i)})},runCounter:function(n,t){t==!0?n.find("span").countTo({formatter:function(n,t){return n=n.toFixed(t.decimals),n.replace(/\B(?=(\d{3})+(?!\d))/g,",")}}):n.find("span").countTo()},roundedSkill:function(){var i=n(".rounded-skill");i.length>0&&i.each(function(){var i=n(this),r=i.attr("data-size"),u=i.attr("data-animate"),f=i.attr("data-width"),e=i.attr("data-color"),o=i.attr("data-trackcolor"),s;r||(r=140);u||(u=2e3);f||(f=8);e||(e="#0093BF");o||(o="rgba(0,0,0,0.04)");s={roundSkillSize:r,roundSkillAnimate:u,roundSkillWidth:f,roundSkillColor:e,roundSkillTrackColor:o};t.hasClass("device-lg")||t.hasClass("device-md")?(i.css({width:r+"px",height:r+"px"}).animate({opacity:"0"},10),i.appear(function(){i.hasClass("skills-animated")||(i.css({opacity:"1"}),SEMICOLON.widget.runRoundedSkills(i,s),i.addClass("skills-animated"))},{accX:0,accY:-120},"easeInCubic")):SEMICOLON.widget.runRoundedSkills(i,s)})},runRoundedSkills:function(n,t){n.easyPieChart({size:Number(t.roundSkillSize),animate:Number(t.roundSkillAnimate),scaleColor:!1,trackColor:t.roundSkillTrackColor,lineWidth:Number(t.roundSkillWidth),lineCap:"square",barColor:t.roundSkillColor})},progress:function(){var i=n(".progress");i.length>0&&i.each(function(){var i=n(this),r=i.parent("li"),u=r.attr("data-percent");t.hasClass("device-lg")||t.hasClass("device-md")?i.appear(function(){r.hasClass("skills-animated")||(i.find(".counter-instant span").countTo(),r.find(".progress").css({width:u+"%"}).addClass("skills-animated"))},{accX:0,accY:-120},"easeInCubic"):(i.find(".counter-instant span").countTo(),r.find(".progress").css({width:u+"%"}))})},twitterFeed:function(){var t=n(".twitter-feed");t.length>0&&t.each(function(){var t=n(this),i=t.attr("data-username"),r=t.attr("data-count");i||(i="twitter");r||(r=3);n.getJSON("include/twitter/tweets.php?username="+i+"&count="+r,function(n){t.hasClass("fslider")?t.find(".slider-wrap").html(sm_format_twitter3(n)).promise().done(function(){var n=setInterval(function(){if(t.find(".slide").length>1){t.removeClass("customjs");var i=setTimeout(function(){SEMICOLON.widget.loadFlexSlider()},500);clearInterval(n)}},500)}):t.html(sm_format_twitter(n))})})},flickrFeed:function(){var t=n(".flickr-feed");t.length>0&&t.each(function(){var t=n(this),u=t.attr("data-id"),i=t.attr("data-count"),f=t.attr("data-type"),r="photos_public.gne";f=="group"&&(r="groups_pool.gne");i||(i=9);t.jflickrfeed({feedapi:r,limit:Number(i),qstrings:{id:u},itemTemplate:'<a href="{{image_b}}" title="{{title}}" data-lightbox="gallery-item"><img src="{{image_s}}" alt="{{title}}" /><\/a>'},function(){SEMICOLON.initialize.lightbox()})})},instagramPhotos:function(t,i){var r=n(".instagram-photos");r.length>0&&r.each(function(){var r=n(this),s=r.attr("id"),h=r.attr("data-user"),l=r.attr("data-tag"),a=r.attr("data-location"),u=r.attr("data-count"),f=r.attr("data-type"),e=r.attr("data-sortBy"),o=r.attr("data-resolution"),c;u||(u=9);e||(e="none");o||(o="thumbnail");c=f=="user"?new Instafeed({target:s,get:f,userId:Number(h),limit:Number(u),sortBy:e,resolution:o,accessToken:t,clientId:i}):f=="tagged"?new Instafeed({target:s,get:f,tagName:l,limit:Number(u),sortBy:e,resolution:o,clientId:i}):f=="location"?new Instafeed({target:s,get:f,locationId:Number(h),limit:Number(u),sortBy:e,resolution:o,clientId:i}):new Instafeed({target:s,get:"popular",limit:Number(u),sortBy:e,resolution:o,clientId:i});c.run()})},dribbbleShots:function(){var t=n(".dribbble-shots");t.length>0&&t.each(function(){var t=n(this),u=t.attr("data-user"),i=t.attr("data-count"),f=t.attr("data-list"),r=t.attr("data-type");i||(i=9);r=="follows"?n.jribbble.getShotsThatPlayerFollows(u,function(i){var r=[];n.each(i.shots,function(n,t){r.push('<a href="'+t.url+'" target="_blank">');r.push('<img src="'+t.image_teaser_url+'" ');r.push('alt="'+t.title+'"><\/a>')});t.html(r.join(""))},{page:1,per_page:Number(i)}):r=="user"?n.jribbble.getShotsByPlayerId(u,function(i){var r=[];n.each(i.shots,function(n,t){r.push('<a href="'+t.url+'" target="_blank">');r.push('<img src="'+t.image_teaser_url+'" ');r.push('alt="'+t.title+'"><\/a>')});t.html(r.join(""))},{page:1,per_page:Number(i)}):r=="list"&&n.jribbble.getShotsByList(f,function(i){var r=[];n.each(i.shots,function(n,t){r.push('<a href="'+t.url+'" target="_blank">');r.push('<img src="'+t.image_teaser_url+'" ');r.push('alt="'+t.title+'"><\/a>')});t.html(r.join(""))},{page:1,per_page:Number(i)})})},navTree:function(){var t=n(".nav-tree");t.length>0&&t.each(function(){var t=n(this),i=t.attr("data-speed"),r=t.attr("data-easing");i||(i=250);r||(r="swing");t.find("ul li:has(ul)").addClass("sub-menu");t.find("ul li:has(ul) > a").append(' <i class="icon-angle-down"><\/i>');t.hasClass("on-hover")?t.find("ul li:has(ul):not(.active)").hover(function(){n(this).children("ul").stop(!0,!0).slideDown(Number(i),r)},function(){n(this).children("ul").delay(250).slideUp(Number(i),r)}):t.find("ul li:has(ul) > a").click(function(u){var f=n(this);t.find("ul li").not(f.parents()).removeClass("active");f.parent().children("ul").slideToggle(Number(i),r,function(){n(this).find("ul").hide();n(this).find("li.active").removeClass("active")});t.find("ul li > ul").not(f.parent().children("ul")).not(f.parents("ul")).slideUp(Number(i),r);f.parent("li:has(ul)").toggleClass("active");u.preventDefault()})})},masonryThumbs:function(){var t=n(".masonry-thumbs");t.length>0&&t.each(function(){var t=n(this);SEMICOLON.widget.masonryThumbsArrange(t)})},masonryThumbsArrange:function(n){SEMICOLON.initialize.setFullColumnWidth(n);n.isotope("layout")},notifications:function(t){toastr.clear();var r=n(t),u=r.attr("data-notify-position"),f=r.attr("data-notify-type"),i=r.attr("data-notify-msg"),e=r.attr("data-notify-close");return u=u?"toast-"+r.attr("data-notify-position"):"toast-top-right",i||(i="Please set a message!"),e=e=="true"?!0:!1,toastr.options.positionClass=u,toastr.options.closeButton=e,toastr.options.closeHtml='<button><i class="icon-remove"><\/i><\/button>',f=="warning"?toastr.warning(i):f=="error"?toastr.error(i):f=="success"?toastr.success(i):toastr.info(i),!1},textRotater:function(){dt.length>0&&dt.each(function(){var f=n(this),t=n(this).attr("data-rotate"),i=n(this).attr("data-speed"),r=n(this).attr("data-separator"),u;t||(t="fade");i||(i=1200);r||(r=",");u=n(this).find(".t-rotate");u.Morphext({animation:t,separator:r,speed:Number(i)})})},linkScroll:function(){n("a[data-scrollto]").click(function(){var t=n(this),f=t.attr("data-scrollto"),i=t.attr("data-speed"),r=t.attr("data-offset"),u=t.attr("data-easing");return i||(i=750),r||(r=SEMICOLON.initialize.topScrollOffset()),u||(u="easeOutQuad"),n("html,body").stop(!0).animate({scrollTop:n(f).offset().top-Number(r)},Number(i),u),!1})},extras:function(){n('[data-toggle="tooltip"]').tooltip({container:"body"});n("#primary-menu-trigger,#overlay-menu-close").click(function(){return n("#primary-menu > ul, #primary-menu > div > ul").toggleClass("show"),!1});n("#page-submenu-trigger").click(function(){return t.toggleClass("top-search-open",!1),h.toggleClass("pagemenu-active"),!1});h.find("nav").click(function(){t.toggleClass("top-search-open",!1);w.toggleClass("top-cart-open",!1)});SEMICOLON.isMobile.any()&&t.addClass("device-touch")}};SEMICOLON.isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return SEMICOLON.isMobile.Android()||SEMICOLON.isMobile.BlackBerry()||SEMICOLON.isMobile.iOS()||SEMICOLON.isMobile.Opera()||SEMICOLON.isMobile.Windows()}};SEMICOLON.custom={functionsOnReady:function(){},functionsOnLoad:function(){if(n(".docs-navigation").length>0){var t=n(".docs-navigation"),u=r.height(),f=i.outerHeight();t.height(u-f)}}};SEMICOLON.documentOnResize={init:function(){var n=setTimeout(function(){SEMICOLON.header.topsocial();SEMICOLON.header.fullWidthMenu();SEMICOLON.header.overlayMenu();SEMICOLON.initialize.fullScreen();SEMICOLON.initialize.verticalMiddle();SEMICOLON.initialize.maxHeight();SEMICOLON.initialize.testimonialsGrid();SEMICOLON.slider.captionPosition();SEMICOLON.portfolio.arrange();SEMICOLON.portfolio.portfolioDescMargin();SEMICOLON.widget.tabsJustify();SEMICOLON.widget.html5Video();SEMICOLON.widget.masonryThumbs();SEMICOLON.initialize.dataStyles();SEMICOLON.initialize.dataResponsiveHeights();SEMICOLON.custom.functionsOnLoad()},500)}};SEMICOLON.documentOnReady={init:function(){SEMICOLON.initialize.init();SEMICOLON.header.init();s.length>0&&SEMICOLON.slider.init();d.length>0&&SEMICOLON.portfolio.init();SEMICOLON.widget.init();SEMICOLON.documentOnReady.windowscroll();SEMICOLON.custom.functionsOnLoad()},windowscroll:function(){var s=0,t=0,f,o;i.length>0&&(s=i.offset().top);i.length>0&&(t=u.offset().top);f=i.attr("data-sticky-offset");typeof f!="undefined"&&(f=="full"?(t=r.height(),o=i.attr("data-sticky-offset-negative"),typeof o!="undefined"&&(t=t-o-1)):t=Number(f));r.on("scroll",function(){SEMICOLON.initialize.goToTopScroll();n("body.open-header.close-header-on-scroll").removeClass("side-header-open");SEMICOLON.header.stickyMenu(t);SEMICOLON.header.darkLogo()});window.addEventListener("scroll",onScrollSliderParallax,!1);e.length>0&&r.scrolled(function(){SEMICOLON.header.onepageScroller()})}};SEMICOLON.documentOnLoad={init:function(){SEMICOLON.slider.captionPosition();SEMICOLON.slider.swiperSliderMenu();SEMICOLON.slider.revolutionSliderMenu();SEMICOLON.initialize.maxHeight();SEMICOLON.initialize.testimonialsGrid();SEMICOLON.initialize.verticalMiddle();SEMICOLON.initialize.stickFooterOnSmall();SEMICOLON.portfolio.portfolioDescMargin();SEMICOLON.portfolio.arrange();SEMICOLON.widget.parallax();SEMICOLON.widget.loadFlexSlider();SEMICOLON.widget.html5Video();SEMICOLON.widget.masonryThumbs();SEMICOLON.slider.owlCaptionInit();SEMICOLON.header.topsocial();SEMICOLON.header.responsiveMenuClass();SEMICOLON.custom.functionsOnLoad()}};var r=n(window),t=n("body"),l=n("#wrapper"),i=n("#header"),u=n("#header-wrap"),ft=n("#footer"),et=i.attr("class"),ot=u.attr("class"),st=i.attr("data-sticky-class"),b=i.attr("data-responsive-class"),a=n("#logo").find(".standard-logo"),ri=a.find("img").outerWidth(),v=n("#logo").find(".retina-logo"),ht=a.find("img").attr("src"),ct=v.find("img").attr("src"),lt=a.attr("data-dark-logo"),at=v.attr("data-dark-logo"),h=n("#page-menu"),e=n(".one-page-menu"),k=0,d=n("#portfolio"),s=n("#slider"),c=n(".slider-parallax"),vt=n("#page-title"),g=n(".portfolio-ajax").find(".portfolio-item"),f=n("#portfolio-ajax-wrap"),y=n("#portfolio-ajax-container"),p=n("#portfolio-ajax-loader"),nt="",gt=n("#top-search"),w=n("#top-cart"),yt=n(".vertical-middle"),o=n("#top-social").find("li"),tt=n(".si-sticky"),it=n(".dots-menu"),rt=n("#gotoTop"),pt=n(".full-screen"),wt=n(".common-height"),ut=n(".testimonials-grid"),ni=n(".page-section"),bt=n(".owl-carousel"),ti=n(".parallax"),ii=n(".page-title-parallax"),kt=n(".yt-bg-player"),dt=n(".text-rotater");n(document).ready(SEMICOLON.documentOnReady.init);r.load(SEMICOLON.documentOnLoad.init);r.on("resize",SEMICOLON.documentOnResize.init)}(jQuery);!window.performance||window.performance.navigation.type!==2||(console.log("Reloading"),window.location.reload());$(function(){location.pathname!=="/"?$('nav a[href^="'+location.pathname+'"]').parent().addClass("current"):$("#homeli").addClass("current")});_paq=_paq||[];_paq.push(["trackPageView"]);_paq.push(["enableLinkTracking"]),function(){var t="//weblogs.wolve.com/";_paq.push(["setTrackerUrl",t+"piwik.php"]);_paq.push(["setSiteId",12]);var i=document,n=i.createElement("script"),r=i.getElementsByTagName("script")[0];n.type="text/javascript";n.async=!0;n.defer=!0;n.src=t+"piwik.js";r.parentNode.insertBefore(n,r)}();window.cookieconsent.initialise({palette:{popup:{background:"#e4e4f0",text:"#915757"},button:{background:"transparent",text:"#455742",border:"#eda96b"}},content:{href:"https://www.tradewex.com/Home/CookiePolicy"}});$(document).ready(function(){function i(){var r=$(document).width(),i;if($(document).width()<t+1)while(n.firstChild)n.removeChild(n.firstChild);$(document).width()>t&&document.querySelectorAll("#bg-video > source").length<1&&(i=document.createElement("source"),i.setAttribute("src","/videos/wex_connect.mp4"),i.setAttribute("type","video/mp4"),n.appendChild(i));$("#bg-video")[0].play()}var t=1024,n=document.getElementById("bg-video");n!==null&&(i(),$(window).blur(function(){$("#bg-video")[0].pause()}),$(window).focus(function(){$(document).width()>t&&$("#bg-video")[0].play()}),$(window).resize(function(){i()}),window.onpopstate=function(){$(document).width()>t&&$("#bg-video")[0].play()})});