!function(t){t.fn.twentytwenty=function(e){return e=t.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},e),this.each((function(){var i=e.default_offset_pct,o=t(this),n=e.orientation,r="vertical"===n?"down":"left",s="vertical"===n?"up":"right";o.data("before")&&(e.before_label=o.data("before")),o.data("after")&&(e.after_label=o.data("after")),o.wrap("
"),e.no_overlay||(o.append("
"),(v=o.find(".twentytwenty-overlay")).append("
"),v.append("
"));var a=o.find("img:first"),l=o.find("img:last");o.append("
");var c=o.find(".twentytwenty-handle");function d(t){var e,i;e=t,t={w:(i=a.width())+"px",h:(t=a.height())+"px",cw:e*i+"px",ch:e*t+"px"};c.css("vertical"===n?"top":"left","vertical"===n?t.ch:t.cw),t=t,"vertical"===n?(a.css("clip","rect(0,"+t.w+","+t.ch+",0)"),l.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(a.css("clip","rect(0,"+t.cw+","+t.h+",0)"),l.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),o.css("height",t.h)}function u(t,e){var i;return i="vertical"===n?(e-f)/g:(t-h)/m,e=0,t=1,Math.max(e,Math.min(t,i))}function p(t){((t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY)&&"vertical"!==n||(t.distXt.distY&&t.distX>-t.distY)&&"vertical"===n)&&t.preventDefault(),o.addClass("active"),h=o.offset().left,f=o.offset().top,m=a.width(),g=a.height()}c.append(""),c.append(""),o.addClass("twentytwenty-container"),a.addClass("twentytwenty-before"),l.addClass("twentytwenty-after"),t(window).on("resize.twentytwenty",(function(t){d(i)}));var h=0,f=0,m=0,g=0,v=function(t){o.hasClass("active")&&d(i=u(t.pageX,t.pageY))};r=function(){o.removeClass("active")};(s=e.move_with_handle_only?c:o).on("movestart",p),s.on("move",v),s.on("moveend",r),e.move_slider_on_hover&&(o.on("mouseenter",p),o.on("mousemove",v),o.on("mouseleave",r)),c.on("touchmove",(function(t){t.preventDefault()})),o.find("img").on("mousedown",(function(t){t.preventDefault()})),e.click_to_move&&o.on("click",(function(t){h=o.offset().left,f=o.offset().top,m=a.width(),g=a.height(),d(i=u(t.pageX,t.pageY))})),t(window).trigger("resize.twentytwenty")}))}}(jQuery),function(t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:t()}((function(){var t=Object.assign||window.jQuery&&jQuery.extend,e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout((function(){t()}),25)},i={textarea:!0,input:!0,select:!0,button:!0},o="mousemove",n="mouseup dragstart",r="mouseup",s="touchmove",a="touchend",l="touchend",c=/\s+/,d={bubbles:!0,cancelable:!0},u=Symbol("events");function p(t){return t[u]||(t[u]={})}function h(t,e,i,o,n){e=e.split(c);var r,s=p(t),a=e.length;function l(t){i(t,o)}for(;a--;)(s[r=e[a]]||(s[r]=[])).push([i,l]),t.addEventListener(r,l)}function f(t,e,i,o){e=e.split(c);var n,r,s,a=p(t),l=e.length;if(a)for(;l--;)if(r=a[n=e[l]])for(s=r.length;s--;)r[s][0]===i&&(t.removeEventListener(n,r[s][1]),r.splice(s,1))}function m(e,i,o){var n=function(t){return new CustomEvent(t,d)}(i);o&&t(n,o),e.dispatchEvent(n)}function g(t){var i=t,o=!1,n=!1;function r(t){o?(i(),e(r),n=!0,o=!1):n=!1}this.kick=function(t){o=!0,n||r()},this.end=function(t){var e=i;t&&(n?(i=o?function(){e(),t()}:t,o=!0):t())}}function v(){}function y(t){t.preventDefault()}function w(t,e){var i,o;if(t.identifiedTouch)return t.identifiedTouch(e);for(i=-1,o=t.length;++i1&&(r=window.devicePixelRatio,o.style.width=o.style.height=[e.size,"px"].join(""),o.width=o.height=e.size*r,n.scale(r,r)),n.translate(e.size/2,e.size/2),n.rotate((e.rotate/180-.5)*Math.PI);var s=(e.size-e.lineWidth)/2;e.scaleColor&&e.scaleLength&&(s-=e.scaleLength+2),Date.now=Date.now||function(){return+new Date};var a=function(t,e,i){var o=0>=(i=Math.min(Math.max(-1,i||0),1));n.beginPath(),n.arc(0,0,s,0,2*Math.PI*i,o),n.strokeStyle=t,n.lineWidth=e,n.stroke()},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},c=function(){e.scaleColor&&function(){var t,i;n.lineWidth=1,n.fillStyle=e.scaleColor,n.save();for(var o=24;o>0;--o)o%6==0?(i=e.scaleLength,t=0):(i=.6*e.scaleLength,t=e.scaleLength-i),n.fillRect(-e.size/2+t,0,i,1),n.rotate(Math.PI/12);n.restore()}(),e.trackColor&&a(e.trackColor,e.trackWidth||e.lineWidth,1)};this.getCanvas=function(){return o},this.getCtx=function(){return n},this.clear=function(){n.clearRect(e.size/-2,e.size/-2,e.size,e.size)},this.draw=function(t){var o;e.scaleColor||e.trackColor?n.getImageData&&n.putImageData?i?n.putImageData(i,0,0):(c(),i=n.getImageData(0,0,e.size*r,e.size*r)):(this.clear(),c()):this.clear(),n.lineCap=e.lineCap,o="function"==typeof e.barColor?e.barColor(t):e.barColor,a(o,e.lineWidth,t/100)}.bind(this),this.animate=function(t,i){var o=Date.now();e.onStart(t,i);var n=function(){var r=Math.min(Date.now()-o,e.animate.duration),s=e.easing(this,r,t,i-t,e.animate.duration);this.draw(s),e.onStep(t,i,s),r>=e.animate.duration?e.onStop(t,i):l(n)}.bind(this);l(n)}.bind(this)},i=function(t,i){var o={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(t,e,i,o,n){return 1>(e/=n/2)?o/2*e*e+i:-o/2*(--e*(e-2)-1)+i},onStart:function(t,e){},onStep:function(t,e,i){},onStop:function(t,e){}};if(void 0!==e)o.renderer=e;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");o.renderer=SVGRenderer}var n={},r=0,s=function(){for(var e in this.el=t,this.options=n,o)o.hasOwnProperty(e)&&(n[e]=i&&void 0!==i[e]?i[e]:o[e],"function"==typeof n[e]&&(n[e]=n[e].bind(this)));"string"==typeof n.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[n.easing])?n.easing=jQuery.easing[n.easing]:n.easing=o.easing,"number"==typeof n.animate&&(n.animate={duration:n.animate,enabled:!0}),"boolean"!=typeof n.animate||n.animate||(n.animate={duration:1e3,enabled:n.animate}),this.renderer=new n.renderer(t,n),this.renderer.draw(r),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(t){return t=parseFloat(t),n.animate.enabled?this.renderer.animate(r,t):this.renderer.draw(t),r=t,this}.bind(this),this.disableAnimation=function(){return n.animate.enabled=!1,this},this.enableAnimation=function(){return n.animate.enabled=!0,this},s()};t.fn.easyPieChart=function(e){return this.each((function(){var o;t.data(this,"easyPieChart")||(o=t.extend({},e,t(this).data()),t.data(this,"easyPieChart",new i(this,o)))}))}})),function(t){t.fn.downCount=function(e,i){var o=t.extend({date:null,offset:null},e);o.date||t.error("Date is not defined."),Date.parse(o.date)||t.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.");var n=this,r=function(){var t=new Date,e=t.getTime()+6e4*t.getTimezoneOffset();return new Date(e+36e5*o.offset)},s=setInterval((function(){var t=new Date(o.date)-r();if(t<0)return clearInterval(s),void(i&&"function"==typeof i&&i());var e=6e4,a=60*e,l=24*a,c=Math.floor(t/l),d=Math.floor(t%l/a),u=Math.floor(t%a/e),p=Math.floor(t%e/1e3),h=1===(c=String(c).length>=2?c:"0"+c)?"day":"days",f=1===(d=String(d).length>=2?d:"0"+d)?"hour":"hours",m=1===(u=String(u).length>=2?u:"0"+u)?"minute":"minutes",g=1===(p=String(p).length>=2?p:"0"+p)?"second":"seconds";n.find(".days").text(c),n.find(".hours").text(d),n.find(".minutes").text(u),n.find(".seconds").text(p),n.find(".days_ref").text(h),n.find(".hours_ref").text(f),n.find(".minutes_ref").text(m),n.find(".seconds_ref").text(g)}),1e3)}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n