(function(){function t(n,t){return[].slice.call((t||document).querySelectorAll(n))}if(window.addEventListener){var n=window.StyleFix={link:function(t){try{if(t.rel!=="stylesheet"||t.hasAttribute("data-noprefix"))return}catch(o){return}var r=t.href||t.getAttribute("data-href"),u=r.replace(/[^\/]+$/,""),e=t.parentNode,i=new XMLHttpRequest,f;i.onreadystatechange=function(){i.readyState===4&&f()};f=function(){var r=i.responseText,o,f;r&&t.parentNode&&(!i.status||i.status<400||i.status>600)&&(r=n.fix(r,!0,t),u&&(r=r.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(n,t,i){return/^([a-z]{3,10}:|\/|#)/i.test(i)?n:'url("'+u+i+'")'}),o=u.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1"),r=r.replace(RegExp("\\b(behavior:\\s*?url\\('?\"?)"+o,"gi"),"$1")),f=document.createElement("style"),f.textContent=r,f.media=t.media,f.disabled=t.disabled,f.setAttribute("data-href",t.getAttribute("href")),e.insertBefore(f,t),e.removeChild(t),f.media=t.media)};try{i.open("GET",r);i.send(null)}catch(o){typeof XDomainRequest!="undefined"&&(i=new XDomainRequest,i.onerror=i.onprogress=function(){},i.onload=f,i.open("GET",r),i.send(null))}t.setAttribute("data-inprogress","")},styleElement:function(t){if(!t.hasAttribute("data-noprefix")){var i=t.disabled;t.textContent=n.fix(t.textContent,!0,t);t.disabled=i}},styleAttribute:function(t){var i=t.getAttribute("style");i=n.fix(i,!1,t);t.setAttribute("style",i)},process:function(){t('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link);t("style").forEach(StyleFix.styleElement);t("[style]").forEach(StyleFix.styleAttribute)},register:function(t,i){(n.fixers=n.fixers||[]).splice(i===undefined?n.fixers.length:i,0,t)},fix:function(t,i,r){for(var u=0;u<n.fixers.length;u++)t=n.fixers[u](t,i,r)||t;return t},camelCase:function(n){return n.replace(/-([a-z])/g,function(n,t){return t.toUpperCase()}).replace("-","")},deCamelCase:function(n){return n.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()})}};(function(){setTimeout(function(){t('link[rel="stylesheet"]').forEach(StyleFix.link)},10);document.addEventListener("DOMContentLoaded",StyleFix.process,!1)})()}})(),function(n){function i(n,i,r,u,f){if(n=t[n],n.length){var e=RegExp(i+"("+n.join("|")+")"+r,"gi");f=f.replace(e,u)}return f}if(window.StyleFix&&window.getComputedStyle){var t=window.PrefixFree={prefixCSS:function(n,r){var u=t.prefix,f;return t.functions.indexOf("linear-gradient")>-1&&(n=n.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/ig,function(n,t,i,r){return t+(i||"")+"linear-gradient("+(90-r)+"deg"})),n=i("functions","(\\s|:|,)","\\s*\\(","$1"+u+"$2(",n),n=i("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+u+"$2$3",n),n=i("properties","(^|\\{|\\s|;)","\\s*:","$1"+u+"$2:",n),t.properties.length&&(f=RegExp("\\b("+t.properties.join("|")+")(?!:)","gi"),n=i("valueProperties","\\b",":(.+?);",function(n){return n.replace(f,u+"$1")},n)),r&&(n=i("selectors","","\\b",t.prefixSelector,n),n=i("atrules","@","\\b","@"+u+"$1",n)),n=n.replace(RegExp("-"+u,"g"),"-"),n.replace(/-\*-(?=[a-z]+)/gi,t.prefix)},property:function(n){return(t.properties.indexOf(n)?t.prefix:"")+n},value:function(n){return n=i("functions","(^|\\s|,)","\\s*\\(","$1"+t.prefix+"$2(",n),i("keywords","(^|\\s)","(\\s|$)","$1"+t.prefix+"$2$3",n)},prefixSelector:function(n){return n.replace(/^:{1,2}/,function(n){return n+t.prefix})},prefixProperty:function(n,i){var r=t.prefix+n;return i?StyleFix.camelCase(r):r}};(function(){var u={},r=[],f=getComputedStyle(document.documentElement,null),e=document.createElement("div").style,l=function(n){var t,f,i;if(n.charAt(0)==="-")for(r.push(n),t=n.split("-"),f=t[1],u[f]=++u[f]||1;t.length>3;)t.pop(),i=t.join("-"),a(i)&&r.indexOf(i)===-1&&r.push(i)},a=function(n){return StyleFix.camelCase(n)in e},o,s,h,n,i,c;if(f.length>0)for(n=0;n<f.length;n++)l(f[n]);else for(i in f)l(StyleFix.deCamelCase(i));o={uses:0};for(s in u)h=u[s],o.uses<h&&(o={prefix:s,uses:h});for(t.prefix="-"+o.prefix+"-",t.Prefix=StyleFix.camelCase(t.prefix),t.properties=[],n=0;n<r.length;n++)i=r[n],i.indexOf(t.prefix)===0&&(c=i.slice(t.prefix.length),a(c)||t.properties.push(c));t.Prefix!="Ms"||"transform"in e||"MsTransform"in e||!("msTransform"in e)||t.properties.push("transform","transform-origin");t.properties.sort()})(),function(){function u(n,t){return f[t]="",f[t]=n,!!f[t]}var n={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}},o,f,e,r,i;n["repeating-linear-gradient"]=n["repeating-radial-gradient"]=n["radial-gradient"]=n["linear-gradient"];o={initial:"color","zoom-in":"cursor","zoom-out":"cursor",box:"display",flexbox:"display","inline-flexbox":"display",flex:"display","inline-flex":"display"};t.functions=[];t.keywords=[];f=document.createElement("div").style;for(e in n){var s=n[e],i=s.property,h=e+"("+s.params+")";!u(h,i)&&u(t.prefix+h,i)&&t.functions.push(e)}for(r in o)i=o[r],!u(r,i)&&u(t.prefix+r,i)&&t.keywords.push(r)}(),function(){function u(n){return f.textContent=n+"{}",!!f.sheet.cssRules.length}var o={":read-only":null,":read-write":null,":any-link":null,"::selection":null},s={keyframes:"name",viewport:null,document:'regexp(".")'},f,r,e,i;t.selectors=[];t.atrules=[];f=n.appendChild(document.createElement("style"));for(r in o)i=r+(o[r]?"("+o[r]+")":""),!u(i)&&u(t.prefixSelector(i))&&t.selectors.push(r);for(e in s)i=e+" "+(s[e]||""),!u("@"+i)&&u("@"+t.prefix+i)&&t.atrules.push(e);n.removeChild(f)}();t.valueProperties=["transition","transition-property"];n.className+=" "+t.prefix;StyleFix.register(t.prefixCSS)}}(document.documentElement);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){"use strict";function e(n){if(n instanceof Date)return n;if(String(n).match(t))return String(n).match(/^[0-9]*$/)&&(n=Number(n)),String(n).match(/\-/)&&(n=String(n).replace(/\-/g,"/")),new Date(n);throw new Error("Couldn't cast `"+n+"` to a date object.");}function o(n){var t=n.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(t)}function s(n){return function(t){var e=t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi),f,s;if(e)for(f=0,s=e.length;f<s;++f){var r=e[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),l=o(r[0]),c=r[1]||"",a=r[3]||"",i=null;r=r[2];u.hasOwnProperty(r)&&(i=u[r],i=Number(n[i]));null!==i&&("!"===c&&(i=h(a,i)),""===c&&i<10&&(i="0"+i.toString()),t=t.replace(l,i.toString()))}return t.replace(/%%/,"%")}}function h(n,t){var i="s",r="";return n&&(n=n.replace(/(:|;|\s)/gi,"").split(/\,/),1===n.length?i=n[0]:(r=n[0],i=n[1])),Math.abs(t)>1?i:r}var i=[],t=[],f={precision:100,elapse:!1,defer:!1},u,r;t.push(/^[0-9]*$/.source);t.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);t.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);t=new RegExp(t.join("|"));u={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"};r=function(t,r,u){this.el=t;this.$el=n(t);this.interval=null;this.offset={};this.options=n.extend({},f);this.firstTick=!0;this.instanceNumber=i.length;i.push(this);this.$el.data("countdown-instance",this.instanceNumber);u&&("function"==typeof u?(this.$el.on("update.countdown",u),this.$el.on("stoped.countdown",u),this.$el.on("finish.countdown",u)):this.options=n.extend({},f,u));this.setFinalDate(r);this.options.defer===!1&&this.start()};n.extend(r.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var n=this;this.update();this.interval=setInterval(function(){n.update.call(n)},this.options.precision)},stop:function(){clearInterval(this.interval);this.interval=null;this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this);i[this.instanceNumber]=null;delete this.$el.data().countdownInstance},setFinalDate:function(n){this.finalDate=e(n)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var n,t=new Date;return n=this.finalDate.getTime()-t.getTime(),n=Math.ceil(n/1e3),n=!this.options.elapse&&n<0?0:Math.abs(n),this.totalSecsLeft===n||this.firstTick?void(this.firstTick=!1):(this.totalSecsLeft=n,this.elapsed=t>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/3600)%24,days:Math.floor(this.totalSecsLeft/86400)%7,daysToWeek:Math.floor(this.totalSecsLeft/86400)%7,daysToMonth:Math.floor(this.totalSecsLeft/86400%30.4368),weeks:Math.floor(this.totalSecsLeft/604800),weeksToMonth:Math.floor(this.totalSecsLeft/604800)%4,months:Math.floor(this.totalSecsLeft/86400/30.4368),years:Math.abs(this.finalDate.getFullYear()-t.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/86400),totalHours:Math.floor(this.totalSecsLeft/3600),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},void(this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish"))))},dispatchEvent:function(t){var i=n.Event(t+".countdown");i.finalDate=this.finalDate;i.elapsed=this.elapsed;i.offset=n.extend({},this.offset);i.strftime=s(this.offset);this.$el.trigger(i)}});n.fn.countdown=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){var e=n(this).data("countdown-instance"),u,f;void 0!==e?(u=i[e],f=t[0],r.prototype.hasOwnProperty(f)?u[f].apply(u,t.slice(1)):null===String(f).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(u.setFinalDate.call(u,f),u.start()):n.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,f))):new r(this,t[0],t[1])})}})