plasma-banner-scripts
Version:
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
1 lines • 66.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Promotion",[],e):"object"==typeof exports?exports.Promotion=e():t.Promotion=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=5)}([function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=function(){function t(){i(this,t)}return r(t,null,[{key:"getAll",value:function(t){try{var e=document.querySelectorAll(t);return e.length<1?null:e}catch(t){return null}return null}},{key:"get",value:function(t){try{var e=document.querySelector(t);return null===e?null:e}catch(t){return null}return null}},{key:"data",value:function(t){if(void 0===t||null===t)return{};var e=t.dataset,n=Object.keys(e),i={},r=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;return n.forEach(function(t){if(void 0!==e[t]){var n=e[t];"string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1),"null"===n&&(n=null),n===""+ +n&&(n=+n),r.test(n)&&(n=JSON.parse(n))),i[t]=n}}),i}},{key:"addClass",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t;return void 0===t||null===t||void 0===e||null==e||e.length<1?null:(e.forEach(function(e){t.classList?n.classList.add(e):n.className+=" "+e}),n)}},{key:"attr",value:function(t,e,n){return void 0===t||null===t?null:void 0===n?t.getAttribute(e):(t.setAttribute(e,n),t)}},{key:"prepend",value:function(t,e){return void 0===e||null===e||void 0===t||null===t?null:t.insertBefore(e,t.firstChild)}},{key:"removeClass",value:function(t,e){if(void 0===t||null===t||void 0===e||null===e)return null;var n=t;return e.forEach(function(e){t.classList?n.classList.remove(e):n.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}),n}},{key:"hasClass",value:function(t,e){return void 0===t||null===t||void 0===e||null===e?null:t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}},{key:"removeAttribute",value:function(t,e){return void 0===t||null===t||void 0===e||null===e?null:(t.removeAttribute(e),t)}}]),t}();e.default=a},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=function(){function t(){i(this,t)}return r(t,null,[{key:"dispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.eventName)return!1;var e=null;if("function"==typeof CustomEvent?e=new CustomEvent(t.eventName):(e=document.createEvent("CustomEvent"),e.initEvent(t.eventName,!0,!0)),null===e)return!1;document.dispatchEvent(e)}}]),t}();e.default=a},function(t,e,n){var i,r;!function(a){var o=!1;if(i=a,void 0!==(r="function"==typeof i?i.call(e,n,e,t):i)&&(t.exports=r),o=!0,t.exports=a(),o=!0,!o){var s=window.Cookies,l=window.Cookies=a();l.noConflict=function(){return window.Cookies=s,l}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(n){function i(e,r,a){var o;if("undefined"!=typeof document){if(arguments.length>1){if(a=t({path:"/"},i.defaults,a),"number"==typeof a.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*a.expires),a.expires=s}a.expires=a.expires?a.expires.toUTCString():"";try{o=JSON.stringify(r),/^[\{\[]/.test(o)&&(r=o)}catch(t){}r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,!0!==a[c]&&(l+="="+a[c]));return document.cookie=e+"="+r+l}e||(o={});for(var u=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,h=0;h<u.length;h++){var d=u[h].split("="),p=d.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var m=d[0].replace(f,decodeURIComponent);if(p=n.read?n.read(p,m):n(p,m)||p.replace(f,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(t){}if(e===m){o=p;break}e||(o[m]=p)}catch(t){}}return o}}return i.set=i,i.get=function(t){return i.call(i,t)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(e,n){i(e,"",t(n,{expires:-1}))},i.withConverter=e,i}return e(function(){})})},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var a=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<t.length;r++){var o=t[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(t,e,n){function i(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=p[i.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](i.parts[a]);for(;a<i.parts.length;a++)r.parts.push(u(i.parts[a],e))}else{for(var o=[],a=0;a<i.parts.length;a++)o.push(u(i.parts[a],e));p[i.id]={id:i.id,refs:1,parts:o}}}}function r(t,e){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=e.base?a[0]+e.base:a[0],s=a[1],l=a[2],c=a[3],u={css:s,media:l,sourceMap:c};i[o]?i[o].parts.push(u):n.push(i[o]={id:o,parts:[u]})}return n}function a(t,e){var n=y(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=w[w.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),w.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=y(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,r)}}function o(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),a(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),a(t,e),e}function c(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function u(t,e){var n,i,r,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var c=b++;n=v||(v=s(e)),i=f.bind(null,n,c,!1),r=f.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(e),i=d.bind(null,n,e),r=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=h.bind(null,n),r=function(){o(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function f(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=L(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function h(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e,n){var i=n.css,r=n.sourceMap,a=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||a)&&(i=k(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){return document.querySelector(t)},y=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=g.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),v=null,b=0,w=[],k=n(14);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return i(n,e),function(t){for(var a=[],o=0;o<n.length;o++){var s=n[o],l=p[s.id];l.refs--,a.push(l)}if(t){i(r(t,e),e)}for(var o=0;o<a.length;o++){var l=a[o];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete p[l.id]}}}};var L=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){t.exports=n(6)},function(t,e,n){"use strict";function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function i(r,a){try{var o=e[r](a),s=o.value}catch(t){return void n(t)}if(!o.done)return Promise.resolve(s).then(function(t){i("next",t)},function(t){i("throw",t)});t(s)}return i("next")})}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=n(7),o=n(20),s=function(t){return t&&t.__esModule?t:{default:t}}(o);n(21);var l=function t(){var e=this;r(this,t),this.args={},this.run=i(regeneratorRuntime.mark(function t(){var n,i,r,o,l,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(n=a.DomService.get(".PlasmaPromotionJs"))){t.next=3;break}return t.abrupt("return");case 3:if(i=new s.default,e.args=i.parse(".PlasmaPromotionJs"),!e.args.promocodePageId){t.next=8;break}return t.next=8,fetch("/ajax/landing-promocode.php?page-id="+e.args.promocodePageId).then(function(t){return t.json()}).then(function(t){1===t.status&&(e.args=i.update({startDate:t.promocode.start_date,endDate:t.promocode.expiration_date}))}).catch(function(){});case 8:return r=new a.FlipClockInitiator(e.args),o=new a.TagManager(e.args),l=new a.UI.UiBanner(e.args),c=""!==e.args.popupId?new a.UI.UiPopup(e.args):{run:function(){}},r.run(),l.run(o),c.run(l,o),t.abrupt("return",{args:e.args,flipClock:r,banner:l,popup:c,tagManager:o});case 16:case"end":return t.stop()}},t,e)}))};e.default=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.UI=e.EventManager=e.DomService=e.TagManager=e.FlipClockInitiator=void 0;var r=n(8),a=i(r),o=n(9),s=i(o),l=n(10),c=i(l),u=n(19),f=i(u),h=n(0),d=i(h),p=n(1),m=i(p),g={UiBanner:a.default,UiPopup:s.default};e.FlipClockInitiator=c.default,e.TagManager=f.default,e.DomService=d.default,e.EventManager=m.default,e.UI=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),o=i(a),s=n(0),l=i(s),c=n(1),u=i(c),f=function t(e){var n=this;r(this,t),this.args=null,this.run=function(t){var e=o.default.get("promotionBanner_"+n.args.id+"_closed"),i=o.default.get("promotionPopup_"+n.args.id+"_closed");if(n.tagManager=t,!("none"!==n.args.startDate&&n.args.currentDateS>=n.args.endDateS||"none"!==n.args.startDate&&n.args.currentDateS<n.args.startDateS||1===parseInt(e,10)||null!==l.default.get("#"+n.args.popupId)&&1!==parseInt(i,10))){n.args.isSticky&&l.default.addClass(n.bannerWrapper,["PlasmaPromotion__wrapperSticky"]),l.default.addClass(n.bannerWrapper,["PlasmaPromotion__wrapperSticky"]);var r=n.bannerButton;if(n.args.isLink||document.documentElement.clientWidth<1024){var a=document.createElement("a");a.setAttribute("href",n.args.href),a.className="PlasmaPromotion__wrapperLinkJs PlasmaPromotion__wrapperLink",a.setAttribute("target",n.args.targetBlank?"_blank":""),l.default.prepend(n.bannerWrapper,a),r=l.default.get(".PlasmaPromotion__wrapperLinkJs")}else l.default.attr(n.bannerButton,"href",n.args.href),n.args.targetBlank&&l.default.attr(n.bannerButton,"target","_blank");null!==r&&r.addEventListener("click",function(){n.tagManager.onClickBanner()}),n.showBanner();var s=setInterval(function(){var t=(new Date).getTime();n.args.endDateMs<=t&&n.args.startDateMs>=t&&(n.hideBanner(),clearInterval(s))},1e3)}},this.showBanner=function(){u.default.dispatch({eventName:"PlasmaBannerScripts.BeforeShowBanner"}),l.default.removeClass(n.bannerAnimationBlocks,["PlasmaPromotion--moveUp"]),l.default.addClass(n.bannerAnimationBlocks,["PlasmaPromotion--moveDown"]),null!==n.bannerCloseButton&&n.bannerCloseButton.addEventListener("click",n.hideBanner.bind(n)),n.tagManager.onShowBanner(),u.default.dispatch({eventName:"PlasmaBannerScripts.AfterShowBanner"})},this.hideBanner=function(){u.default.dispatch({eventName:"PlasmaBannerScripts.BeforeHideBanner"});var t="-1"!==n.args.closeCookieLifeTime?parseInt(n.args.closeCookieLifeTime,10):Math.ceil((n.args.endDateS-n.args.currentDateS)/3600/24);o.default.set("promotionBanner_"+n.args.id+"_closed","1",{expires:t}),l.default.removeClass(n.bannerAnimationBlocks,["PlasmaPromotion--moveDown"]),l.default.addClass(n.bannerAnimationBlocks,["PlasmaPromotion--moveUp"]),u.default.dispatch({eventName:"PlasmaBannerScripts.AfterHideBanner"})},this.args=e,this.bannerAnimationBlocks=l.default.get(".PlasmaPromotion--animationJs"),this.bannerCloseButton=l.default.get(".PlasmaPromotion__closeButtonJs"),this.bannerWrapper=l.default.get(".PlasmaPromotion__wrapperJs"),this.bannerButton=l.default.get(".PlasmaPromotion__actionButtonJs")};e.default=f},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(2),s=i(o),l=n(0),c=i(l),u=n(1),f=i(u),h=function(){function t(e){var n=this;r(this,t),this.args=null,this.run=function(t,e){var i=s.default.get("promotionPopup_"+n.args.id+"_closed"),r=s.default.get("promotionBanner_"+n.args.id+"_closed");if(1!==parseInt(r,10)&&1!==parseInt(i,10)&&!("none"!==n.args.startDate&&n.args.currentDateS>=n.args.endDateS||"none"!==n.args.startDate&&n.args.currentDateS<n.args.startDateS)){n.banner=t,n.tagManager=e,c.default.attr(n.popupButton,"href",n.args.href),n.showPopup();var a=setInterval(function(){var t=(new Date).getTime();n.args.endDateMs<=t&&n.args.startDateMs>=t&&(n.hidePopup(!1),clearInterval(a))},1e3)}},this.showPopup=function(){f.default.dispatch({eventName:"PlasmaBannerScripts.BeforeShowPopup"});var t=n;c.default.removeClass(n.popupAnimationBlocks,["PlasmaPromotionPopup--hide"]),c.default.addClass(n.popupAnimationBlocks,["PlasmaPromotionPopup--show"]),null!==n.popupCloseButton&&n.popupCloseButton.addEventListener("click",t.hidePopup.bind(n,!1)),document.addEventListener("click",n.outTarget.bind(n)),f.default.dispatch({eventName:"PlasmaBannerScripts.AfterShowPopup"})},this.hidePopup=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f.default.dispatch({eventName:"PlasmaBannerScripts.BeforeHidePopup"});var e="-1"!==n.args.closeCookieLifeTime?parseInt(n.args.closeCookieLifeTime,10):Math.ceil((n.args.endDateS-n.args.currentDateS)/3600/24);s.default.set("promotionPopup_"+n.args.id+"_closed","1",{expires:e}),c.default.removeClass(n.popupAnimationBlocks,["PlasmaPromotionPopup--show"]),c.default.addClass(n.popupAnimationBlocks,["PlasmaPromotionPopup--hide"]),null!==n.popupAnimationBlocks&&n.popupAnimationBlocks.addEventListener("animationend",function(){n.banner.run(n.tagManager),t&&s.default.remove("promotionPopup_"+n.args.id+"_closed"),n.popupAnimationBlocks.removeEventListener("animationend",function(){})}),document.removeEventListener("click",n.outTarget),f.default.dispatch({eventName:"PlasmaBannerScripts.AfterHidePopup"})},this.args=e,this.popupCloseButton=c.default.get(".PlasmaPromotionPopup__closeButtonJs"),this.popupButton=c.default.get(".PlasmaPromotionPopup__actionButtonJs"),this.popupAnimationBlocks=c.default.get("#"+this.args.popupId),this.popupWrapper=c.default.get(".PlasmaPromotionPopup__wrapperJs")}return a(t,[{key:"outTarget",value:function(t){null!==this.popupWrapper&&this.popupWrapper.contains(t.target)&&c.default.hasClass(this.popupAnimationBlocks,"PlasmaPromotionPopup--show")&&this.hidePopup.call(this,!0)}}]),t}();e.default=h},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(11),s=i(o);n(12);var l=n(15),c=i(l),u=n(16);n(17);var f=n(0),h=i(f),d=function t(e){var n=this;r(this,t),this.wrapperObject=null,this.args=null,this.clock=[],this.addExtension=function(){s.default.Lang=a({},s.default.Lang,c.default),s.default.PlasmaDailyCounterFace=s.default.Face.extend(u.DailyCounterFace),s.default.PlasmaHourlyCounterFace=s.default.Face.extend(u.HourlyCounterFace)},this.run=function(){n.args.withoutTimer||null!==n.wrapperObject&&(n.addExtension(),Array.prototype.forEach.call(n.wrapperObject,function(t){var e=new s.default(t,n.args.time,{language:n.args.language,countdown:n.args.countdown,clockFace:n.args.clockFace});"counter"===n.args.clockFace&&h.default.addClass(t,["PlasmaPromotionCounter"]),n.clock.push(e)}),"counter"===n.args.clockFace&&n.clock.forEach(function(t){setTimeout(function(){setInterval(function(){t.decrement()},n.args.timeInterval)})}))},this.args=e,this.wrapperObject=h.default.getAll(".PlasmaPromotion__timerJs")};e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){};r.extend=function(t,e){var n=r.prototype.extend;r._prototyping=!0;var i=new this;n.call(i,t),i.base=function(){},delete r._prototyping;var a=i.constructor,o=i.constructor=function(){if(!r._prototyping)if(this._constructing||this.constructor==o)this._constructing=!0,a.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||n).call(arguments[0],i)};return o.ancestor=this,o.extend=this.extend,o.forEach=this.forEach,o.implement=this.implement,o.prototype=i,o.toString=this.toString,o.valueOf=function(t){return"object"==t?o:a.valueOf()},n.call(o,e),"function"==typeof o.init&&o.init(),o},r.prototype={extend:function(t,e){if(arguments.length>1){var n=this[t];if(n&&"function"==typeof e&&(!n.valueOf||n.valueOf()!=e.valueOf())&&/\bbase\b/.test(e)){var i=e.valueOf();e=function(){var t=this.base||r.prototype.base;this.base=n;var e=i.apply(this,arguments);return this.base=t,e},e.valueOf=function(t){return"object"==t?e:i},e.toString=r.toString}this[t]=e}else if(t){var a=r.prototype.extend;r._prototyping||"function"==typeof this||(a=this.extend||a);for(var o={toSource:null},s=["constructor","toString","valueOf"],l=r._prototyping?0:1;c=s[l++];)t[c]!=o[c]&&a.call(this,c,t[c]);for(var c in t)o[c]||a.call(this,c,t[c])}return this}},e.Base=r=r.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(t,e,n){for(var i in t)void 0===this.prototype[i]&&e.call(n,t[i],i,t)},implement:function(){for(var t=0;t<arguments.length;t++)"function"==typeof arguments[t]?arguments[t](this.prototype):this.prototype.extend(arguments[t]);return this},toString:function(){return String(this.valueOf())}});var a;a=function(t,e,n){return e instanceof Object&&e instanceof Date==!1&&(n=e,e=0),new a.Factory(t,e,n)},a.Lang={},a.Base=r.extend({buildDate:"2014-12-12",version:"0.7.7",constructor:function(t,e){"object"!==(void 0===t?"undefined":i(t))&&(t={}),"object"!==(void 0===e?"undefined":i(e))&&(e={}),this.setOptions(Object.assign(!0,{},t,e))},callback:function(t){if("function"==typeof t){for(var e=[],n=1;n<=arguments.length;n++)arguments[n]&&e.push(arguments[n]);t.apply(this,e)}},log:function(t){window.console&&console.log&&console.log(t)},getOption:function(t){return!!this[t]&&this[t]},getOptions:function(){return this},setOption:function(t,e){this[t]=e},setOptions:function(t){for(var e in t)void 0!==t[e]&&this.setOption(e,t[e])}}),a.Dom=a.Dom||{},a.Dom.getAll=function(t){try{var e=document.querySelectorAll(t);return e.length<1?null:e}catch(t){return null}},a.Dom.get=function(t){try{var e=document.querySelector(t);return null===e?null:e}catch(t){return null}},a.Dom.data=function(t){if(void 0===t||null===t)return{};var e=t.dataset,n=Object.keys(e),i={};return n.map(function(t){void 0!==e[t]&&(i[t]=e[t])}),i},a.Dom.addClass=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return void 0!==t&&null!==t&&void 0!==t&&null!=e&&(e.map(function(e){t.classList?t.classList.add(e):t.className+=" "+e}),t)},a.Dom.attr=function(t,e,n){return void 0===t||null===t?{}:void 0===n?t.getAttribute(e):void t.setAttribute(e,n)},a.Dom.prepend=function(t,e){if(void 0===e||null===e||void 0===t||null===t)return!1;t.insertBefore(e,t.firstChild)},a.Dom.removeClass=function(t,e){if(void 0===t||null===t||"undefined"==typeof className||null===className)return!1;e.map(function(e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")})},a.Dom.hasClass=function(t,e){return void 0!==t&&null!==t&&void 0!==e&&null!==e&&(t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className))},a.Dom.remove=function(t){if(void 0===t||null===t)return null;t.parentNode.removeChild(t)},a.Face=a.Base.extend({autoStart:!0,dividers:[],factory:!1,lists:[],constructor:function(t,e){this.dividers=[],this.lists=[],this.base(e),this.factory=t},build:function(){this.autoStart&&this.start()},createDivider:function(t,e,n){"boolean"!=typeof e&&e||(n=e,e=t);var i=['<span class="'+this.factory.classes.dot+' top"></span>','<span class="'+this.factory.classes.dot+' bottom"></span>'].join("");n&&(i="");var r=document.createElement("span");return r.classList.add(this.factory.classes.divider),e&&r.classList.add(e.toLowerCase()),t=this.factory.localize(t),r.innerHTML=['<span class="'+this.factory.classes.label+'">'+(t||"")+"</span>",i].join(""),this.dividers.push(r),r},createList:function(t,e){"object"===(void 0===t?"undefined":i(t))&&(e=t,t=0);var n=new a.List(this.factory,t,e);return this.lists.push(n),n},reset:function(){this.factory.time=new a.Time(this.factory,this.factory.original?Math.round(this.factory.original):0,{minimumDigits:this.factory.minimumDigits}),this.flip(this.factory.original,!1)},appendDigitToClock:function(t){t.$el.append(!1)},addDigit:function(t){var e=this.createList(t,{classes:{active:this.factory.classes.active,before:this.factory.classes.before,flip:this.factory.classes.flip}});this.appendDigitToClock(e)},start:function(){},stop:function(){},autoIncrement:function(){this.factory.countdown?this.decrement():this.increment()},increment:function(){this.factory.time.addSecond()},decrement:function(){0==this.factory.time.getTimeSeconds()?this.factory.stop():this.factory.time.subSecond()},flip:function(t,e){var n=this;t.forEach(function(t,i){var r=n.lists[i];r?(e||t==r.digit||r.play(),r.select(t)):n.addDigit(t)})}}),a.Factory=a.Base.extend({animationRate:1e3,autoStart:!0,callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},classes:{active:"flip-clock-active",before:"flip-clock-before",divider:"flip-clock-divider",dot:"flip-clock-dot",label:"flip-clock-label",flip:"flip",play:"play",wrapper:"flip-clock-wrapper"},clockFace:"HourlyCounter",countdown:!1,defaultClockFace:"HourlyCounter",defaultLanguage:"english",$el:!1,face:!0,lang:!1,language:"english",minimumDigits:0,original:!1,running:!1,time:!1,timer:!1,$wrapper:!1,constructor:function(t,e,n){n||(n={}),this.lists=[],this.running=!1,this.base(n),this.$el=a.Dom.addClass(t,[this.classes.wrapper]),this.$wrapper=this.$el,this.original=e instanceof Date?e:e?Math.round(e):0,this.time=new a.Time(this,this.original,{minimumDigits:this.minimumDigits,animationRate:this.animationRate}),this.timer=new a.Timer(this,n),this.loadLanguage(this.language),this.loadClockFace(this.clockFace,n),this.autoStart&&this.start()},loadClockFace:function(t,e){var n,i=!1;return t=t.ucfirst()+"Face",this.face.stop&&(this.stop(),i=!0),null!==this.$el&&(this.$el.innerHTML=""),this.time.minimumDigits=this.minimumDigits,n=a[t]?new a[t](this,e):new a[this.defaultClockFace+"Face"](this,e),n.build(),this.face=n,i&&this.start(),this.face},loadLanguage:function(t){var e;return e=a.Lang[t.ucfirst()]?a.Lang[t.ucfirst()]:a.Lang[t]?a.Lang[t]:a.Lang[this.defaultLanguage],this.lang=e},localize:function(t,e){var n=this.lang;if(!t)return null;var r=t.toLowerCase();return"object"==(void 0===e?"undefined":i(e))&&(n=e),n&&n[r]?n[r]:t},start:function(t){var e=this;e.running||e.countdown&&!(e.countdown&&e.time.time>0)?e.log("Trying to start timer when countdown already at 0"):(e.face.start(e.time),e.timer.start(function(){e.flip(),"function"==typeof t&&t()}))},stop:function(t){this.face.stop(),this.timer.stop(t);for(var e in this.lists)this.lists.hasOwnProperty(e)&&this.lists[e].stop()},reset:function(t){this.timer.reset(t),this.face.reset()},setTime:function(t){this.time.time=t,this.flip(!0)},getTime:function(t){return this.time},setCountdown:function(t){var e=this.running;this.countdown=!!t,e&&(this.stop(),this.start())},flip:function(t){this.face.flip(!1,t)}}),a.List=a.Base.extend({digit:0,classes:{active:"flip-clock-active",before:"flip-clock-before",flip:"flip"},factory:!1,$el:!1,$obj:!1,items:[],lastDigit:0,constructor:function(t,e,n){this.factory=t,this.digit=e,this.lastDigit=e,this.$el=this.createList(),this.$obj=this.$el,e>0&&this.select(e),null!==this.factory.$el&&this.factory.$el.appendChild(this.$el)},select:function(t){if(void 0===t?t=this.digit:this.digit=t,this.digit!=this.lastDigit){var e=null,n=null;null!==this.$el&&(e=this.$el.querySelector("."+this.classes.before),n=this.$el.querySelector("."+this.classes.active)),a.Dom.removeClass(e,[this.classes.before]),a.Dom.removeClass(n,[this.classes.active]),a.Dom.addClass(n,[this.classes.before]),this.appendListItem(this.classes.active,this.digit),a.Dom.remove(e),this.lastDigit=this.digit}},play:function(){a.Dom.addClass(this.$el,[this.factory.classes.play])},stop:function(){var t=this;setTimeout(function(){a.Dom.removeClass(t.$el,[t.factory.classes.play])},this.factory.timer.interval)},createListItem:function(t,e){var n=document.createElement("li");return t&&n.classList.add(t),n.innerHTML=['<a href="#">','<div class="up">','<div class="shadow"></div>','<div class="inn">'+(e||"")+"</div>","</div>",'<div class="down">','<div class="shadow"></div>','<div class="inn">'+(e||"")+"</div>","</div>","</a>"].join(""),n},appendListItem:function(t,e){var n=this.createListItem(t,e);this.$el.appendChild(n)},createList:function(){var t=this.getPrevDigit()?this.getPrevDigit():this.digit,e=document.createElement("ul");return e.classList.add(this.classes.flip),this.factory.running&&e.classList.add(this.factory.classes.play),e.appendChild(this.createListItem(this.classes.before,t)),e.appendChild(this.createListItem(this.classes.active,this.digit)),e},getNextDigit:function(){return 9==this.digit?0:this.digit+1},getPrevDigit:function(){return 0==this.digit?9:this.digit-1}}),String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)},a.Time=a.Base.extend({time:0,factory:!1,minimumDigits:0,constructor:function(t,e,n){"object"!=(void 0===n?"undefined":i(n))&&(n={}),n.minimumDigits||(n.minimumDigits=t.minimumDigits),this.base(n),this.factory=t,e&&(this.time=e)},convertDigitsToArray:function(t){var e=[];t=t.toString();for(var n=0;n<t.length;n++)t[n].match(/^\d*$/g)&&e.push(t[n]);return e},digit:function(t){var e=this.toString(),n=e.length;return!!e[n-t]&&e[n-t]},digitize:function(t){var e=[];if(t.forEach(function(t,n){t=t.toString(),1==t.length&&(t="0"+t);for(var i=0;i<t.length;i++)e.push(t.charAt(i))}),e.length>this.minimumDigits&&(this.minimumDigits=e.length),this.minimumDigits>e.length)for(var n=e.length;n<this.minimumDigits;n++)e.unshift("0");return e},getDateObject:function(){return this.time instanceof Date?this.time:new Date((new Date).getTime()+1e3*this.getTimeSeconds())},getDayCounter:function(t){var e=[this.getDays(),this.getHours(!0),this.getMinutes(!0)];return t&&e.push(this.getSeconds(!0)),this.digitize(e)},getDays:function(t){var e=this.getTimeSeconds()/60/60/24;return t&&(e%=7),Math.floor(e)},getHourCounter:function(){return this.digitize([this.getHours(),this.getMinutes(!0),this.getSeconds(!0)])},getHourly:function(){return this.getHourCounter()},getHours:function(t){var e=this.getTimeSeconds()/60/60;return t&&(e%=24),Math.floor(e)},getMilitaryTime:function(t,e){void 0===e&&(e=!0),t||(t=this.getDateObject());var n=[t.getHours(),t.getMinutes()];return!0===e&&n.push(t.getSeconds()),this.digitize(n)},getMinutes:function(t){var e=this.getTimeSeconds()/60;return t&&(e%=60),Math.floor(e)},getMinuteCounter:function(){return this.digitize([this.getMinutes(),this.getSeconds(!0)])},getTimeSeconds:function(t){return t||(t=new Date),this.time instanceof Date?this.factory.countdown?Math.max(this.time.getTime()/1e3-t.getTime()/1e3,0):t.getTime()/1e3-this.time.getTime()/1e3:this.time},getTime:function(t,e){void 0===e&&(e=!0),t||(t=this.getDateObject());var n=t.getHours(),i=[n>12?n-12:0===n?12:n,t.getMinutes()];return!0===e&&i.push(t.getSeconds()),this.digitize(i)},getSeconds:function(t){var e=this.getTimeSeconds();return t&&(60==e?e=0:e%=60),Math.ceil(e)},getWeeks:function(t){var e=this.getTimeSeconds()/60/60/24/7;return t&&(e%=52),Math.floor(e)},removeLeadingZeros:function(t,e){var n=0,i=[];return e.forEach(function(r,a){a<t?n+=parseInt(e[a],10):i.push(e[a])}),0===n?i:e},addSeconds:function(t){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()+t):this.time+=t},addSecond:function(){this.addSeconds(1)},subSeconds:function(t){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()-t):this.time-=t},subSecond:function(){this.subSeconds(1)},toString:function(){return this.getTimeSeconds().toString()}}),a.Timer=a.Base.extend({callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},count:0,factory:!1,interval:1e3,animationRate:1e3,constructor:function(t,e){this.base(e),this.factory=t,this.callback(this.callbacks.init),this.callback(this.callbacks.create)},getElapsed:function(){return this.count*this.interval},getElapsedTime:function(){return new Date(this.time+this.getElapsed())},reset:function(t){clearInterval(this.timer),this.count=0,this._setInterval(t),this.callback(this.callbacks.reset)},start:function(t){this.factory.running=!0,this._createTimer(t),this.callback(this.callbacks.start)},stop:function(t){this.factory.running=!1,this._clearInterval(t),this.callback(this.callbacks.stop),this.callback(t)},_clearInterval:function(){clearInterval(this.timer)},_createTimer:function(t){this._setInterval(t)},_destroyTimer:function(t){this._clearInterval(),this.timer=!1,this.callback(t),this.callback(this.callbacks.destroy)},_interval:function(t){this.callback(this.callbacks.interval),this.callback(t),this.count++},_setInterval:function(t){var e=this;e._interval(t),e.timer=setInterval(function(){e._interval(t)},this.interval)}}),a.TwentyFourHourClockFace=a.Face.extend({constructor:function(t,e){this.base(t,e)},build:function(t){var e=this,n=this.factory.$el.querySelectorAll("ul");this.factory.time.time||(this.factory.original=new Date,this.factory.time=new a.Time(this.factory,this.factory.original));var t=t||this.factory.time.getMilitaryTime(!1,this.showSeconds);null!==n&&t.length>n.length&&t.forEach(function(t,n){e.createList(t)}),this.createDivider(),this.createDivider(),this.lists[this.lists.length-2].$el.insertBefore(this.dividers[0],this.lists[this.lists.length-2].$el.firstChild),this.lists[this.lists.length-4].$el.insertBefore(this.dividers[1],this.lists[this.lists.length-4].$el.firstChild),this.base()},flip:function(t,e){this.autoIncrement(),t=t||this.factory.time.getMilitaryTime(!1,this.showSeconds),this.base(t,e)}}),a.CounterFace=a.Face.extend({shouldAutoIncrement:!1,constructor:function(t,e){"object"!=(void 0===e?"undefined":i(e))&&(e={}),t.autoStart=!!e.autoStart,e.autoStart&&(this.shouldAutoIncrement=!0),t.increment=function(){t.countdown=!1,t.setTime(t.getTime().getTimeSeconds()+1)},t.decrement=function(){t.countdown=!0;var e=t.getTime().getTimeSeconds();e>0&&t.setTime(e-1)},t.setValue=function(e){t.setTime(e)},t.setCounter=function(e){t.setTime(e)},this.base(t,e)},build:function(){var t=this,e=this.factory.$el.querySelectorAll("ul"),n=this.factory.getTime().digitize([this.factory.getTime().time]);null!==e&&n.length>e.length&&n.forEach(function(e,n){t.createList(e).select(e)}),this.lists.forEach(function(t,e){t.play()}),this.base()},flip:function(t,e){this.shouldAutoIncrement&&this.autoIncrement(),t||(t=this.factory.getTime().digitize([this.factory.getTime().time])),this.base(t,e)},reset:function(){this.factory.time=new a.Time(this.factory,this.factory.original?Math.round(this.factory.original):0),this.flip()}}),a.DailyCounterFace=a.Face.extend({showSeconds:!0,constructor:function(t,e){this.base(t,e)},build:function(t){var e=this,n=this.factory.$el.querySelectorAll("ul"),i=0;t=t||this.factory.time.getDayCounter(this.showSeconds),null!==n&&t.length>n.length&&t.forEach(function(t,n){e.createList(t)}),this.showSeconds?this.lists[this.lists.length-2].$el.insertBefore(this.createDivider("Seconds"),this.lists[this.lists.length-2].$el.firstChild):i=2,this.lists[this.lists.length-4+i].$el.insertBefore(this.createDivider("Minutes"),this.lists[this.lists.length-4+i].$el.firstChild),this.lists[this.lists.length-6+i].$el.insertBefore(this.createDivider("Hours"),this.lists[this.lists.length-6+i].$el.firstChild),this.lists[0].$el.insertBefore(this.createDivider("Days"),this.lists[0].$el.firstChild),this.base()},flip:function(t,e){t||(t=this.factory.time.getDayCounter(this.showSeconds)),this.autoIncrement(),this.base(t,e)}}),a.HourlyCounterFace=a.Face.extend({constructor:function(t,e){this.base(t,e)},build:function(t,e){var n=this,i=null;null!==this.factory.$el&&(i=this.factory.$el.querySelectorAll("ul")),e=e||this.factory.time.getHourCounter(),null!==i&&e.length>i.length&&e.forEach(function(t,e){n.createList(t)}),this.lists[this.lists.length-2].$el.insertBefore(this.createDivider("Seconds"),this.lists[this.lists.length-2].$el.firstChild),this.lists[this.lists.length-4].$el.insertBefore(this.createDivider("Minutes"),this.lists[this.lists.length-4].$el.firstChild),t||this.lists[0].$el.insertBefore(this.createDivider("Hours"),this.lists[0].$el.firstChild),this.base()},flip:function(t,e){t||(t=this.factory.time.getHourCounter()),this.autoIncrement(),this.base(t,e)},appendDigitToClock:function(t){this.base(t),this.dividers[0].insertAfter(this.dividers[0].next())}}),a.MinuteCounterFace=a.HourlyCounterFace.extend({clearExcessDigits:!1,constructor:function(t,e){this.base(t,e)},build:function(){this.base(!0,this.factory.time.getMinuteCounter())},flip:function(t,e){t||(t=this.factory.time.getMinuteCounter()),this.base(t,e)}}),a.TwelveHourClockFace=a.TwentyFourHourClockFace.extend({meridium:!1,meridiumText:"AM",build:function(){var t=this.factory.time.getTime(!1,this.showSeconds);this.base(t),this.meridiumText=this.getMeridium(),this.meridium=document.createElement("ul"),this.meridium.classList.add("flip-clock-meridium"),this.meridium.innerHTML=["<li>",'<a href="#">'+this.meridiumText+"</a>","</li>"].join(""),this.lists[this.lists.length-1].$el.insertBefore(this.meridium,this.lists[this.lists.length-1].$el.nextSibling)},flip:function(t,e){this.meridiumText!=this.getMeridium()&&(this.meridiumText=this.getMeridium(),this.meridium.find("a").html(this.meridiumText)),this.base(this.factory.time.getTime(!1,this.showSeconds),e)},getMeridium:function(){return(new Date).getHours()>=12?"PM":"AM"},isPM:function(){return"PM"==this.getMeridium()},isAM:function(){return"AM"==this.getMeridium()}}),a.Lang.Arabic={years:"سنوات",months:"شهور",days:"أيام",hours:"ساعات",minutes:"دقائق",seconds:"ثواني"},a.Lang.ar=a.Lang.Arabic,a.Lang["ar-ar"]=a.Lang.Arabic,a.Lang.arabic=a.Lang.Arabic,a.Lang.Czech={years:"Roky",months:"Měsíce",days:"Dny",hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},a.Lang.cs=a.Lang.Czech,a.Lang["cs-cz"]=a.Lang.Czech,a.Lang.czech=a.Lang.Czech,a.Lang.Czech={years:"Roky",months:"Měsíce",days:"Dny",hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},a.Lang.cz=a.Lang.Czech,a.Lang["cz-cs"]=a.Lang.Czech,a.Lang.czech=a.Lang.Czech,a.Lang.Danish={years:"År",months:"Måneder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},a.Lang.da=a.Lang.Danish,a.Lang["da-dk"]=a.Lang.Danish,a.Lang.danish=a.Lang.Danish,a.Lang.German={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},a.Lang.de=a.Lang.German,a.Lang["de-de"]=a.Lang.German,a.Lang.german=a.Lang.German,a.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},a.Lang.en=a.Lang.English,a.Lang["en-us"]=a.Lang.English,a.Lang.english=a.Lang.English,a.Lang.Spanish={years:"Años",months:"Meses",days:"Días",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},a.Lang.es=a.Lang.Spanish,a.Lang["es-es"]=a.Lang.Spanish,a.Lang.spanish=a.Lang.Spanish,a.Lang.Persian={years:"سال",months:"ماه",days:"روز",hours:"ساعت",minutes:"دقیقه",seconds:"ثانیه"},a.Lang.fa=a.Lang.Persian,a.Lang["fa-ir"]=a.Lang.Persian,a.Lang.persian=a.Lang.Persian,a.Lang.Finnish={years:"Vuotta",months:"Kuukautta",days:"Päivää",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},a.Lang.fi=a.Lang.Finnish,a.Lang["fi-fi"]=a.Lang.Finnish,a.Lang.finnish=a.Lang.Finnish,a.Lang.French={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},a.Lang.fr=a.Lang.French,a.Lang["fr-ca"]=a.Lang.French,a.Lang.french=a.Lang.French,a.Lang.German={years:"év",months:"hónap",days:"nap",hours:"óra",minutes:"perc",seconds:"másodperc"},a.Lang.hu=a.Lang.German,a.Lang["hu-hu"]=a.Lang.German,a.Lang.hungarian=a.Lang.German,a.Lang.Italian={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},a.Lang.it=a.Lang.Italian,a.Lang["it-it"]=a.Lang.Italian,a.Lang.italian=a.Lang.Italian,a.Lang.Japanese={years:"年",months:"月",days:"日",hours:"時",minutes:"分",seconds:"秒"},a.Lang.jp=a.Lang.Japanese,a.Lang["ja-jp"]=a.Lang.Japanese,a.Lang.japanese=a.Lang.Japanese,a.Lang.Korean={years:"년",months:"월",days:"일",hours:"시",minutes:"분",seconds:"초"},a.Lang.ko=a.Lang.Korean,a.Lang["ko-kr"]=a.Lang.Korean,a.Lang.korean=a.Lang.Korean,a.Lang.Latvian={years:"Gadi",months:"Mēneši",days:"Dienas",hours:"Stundas",minutes:"Minūtes",seconds:"Sekundes"},a.Lang.lv=a.Lang.Latvian,a.Lang["lv-lv"]=a.Lang.Latvian,a.Lang.latvian=a.Lang.Latvian,a.Lang.Dutch={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},a.Lang.nl=a.Lang.Dutch,a.Lang["nl-be"]=a.Lang.Dutch,a.Lang.dutch=a.Lang.Dutch,a.Lang.Norwegian={years:"År",months:"Måneder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},a.Lang.no=a.Lang.Norwegian,a.Lang.nb=a.Lang.Norwegian,a.Lang["no-nb"]=a.Lang.Norwegian,a.Lang.norwegian=a.Lang.Norwegian,a.Lang.Portuguese={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},a.Lang.pt=a.Lang.Portuguese,a.Lang["pt-br"]=a.Lang.Portuguese,a.Lang.portuguese=a.Lang.Portuguese,a.Lang.Romanian={years:"ani",months:"luni",days:"zile",hours:"ore",minutes:"minute",seconds:"secunde"},a.Lang.ro=a.Lang.Romanian,a.Lang["ro-ro"]=a.Lang.Romanian,a.Lang.romanian=a.Lang.Romanian,a.Lang.Russian={years:"лет",months:"месяцев",days:"дней",hours:"часов",minutes:"минут",seconds:"секунд"},a.Lang.ru=a.Lang.Russian,a.Lang["ru-ru"]=a.Lang.Russian,a.Lang.russian=a.Lang.Russian,a.Lang.Slovak={years:"Roky",months:"Mesiace",days:"Dni",hours:"Hodiny",minutes:"Minúty",seconds:"Sekundy"},a.Lang.sk=a.Lang.Slovak,a.Lang["sk-sk"]=a.Lang.Slovak,a.Lang.slovak=a.Lang.Slovak,a.Lang.Swedish={years:"År",months:"Månader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},a.Lang.sv=a.Lang.Swedish,a.Lang["sv-se"]=a.Lang.Swedish,a.Lang.swedish=a.Lang.Swedish,a.Lang.Thai={years:"ปี",months:"เดือน",days:"วัน",hours:"ชั่วโมง",minutes:"นาที",seconds:"วินาที"},a.Lang.th=a.Lang.Thai,a.Lang["th-th"]=a.Lang.Thai,a.Lang.thai=a.Lang.Thai,a.Lang.Turkish={years:"Yıl",months:"Ay",days:"Gün",hours:"Saat",minutes:"Dakika",seconds:"Saniye"},a.Lang.tr=a.Lang.Turkish,a.Lang["tr-tr"]=a.Lang.Turkish,a.Lang.turkish=a.Lang.Turkish,a.Lang.Chinese={years:"年",months:"月",days:"日",hours:"时",minutes:"分",seconds:"秒"},a.Lang.zh=a.Lang.Chinese,a.Lang["zh-cn"]=a.Lang.Chinese,a.Lang.chinese=a.Lang.Chinese,a.Lang.TraditionalChinese={years:"年",months:"月",days:"日",hours:"時",minutes:"分",seconds:"秒"},a.Lang["zh-tw"]=a.Lang.TraditionalChinese,e.default=a,e.Base=r},function(t,e,n){var i=n(13);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0};r.transform=void 0,r.insertInto=void 0;n(4)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){e=t.exports=n(3)(!1),e.push([t.i,'.flip-clock-wrapper *{-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;-webkit-backface-visibility:hidden;backface-visibility:hidden}.flip-clock-wrapper a{cursor:pointer;text-decoration:none;color:#ccc}.flip-clock-wrapper a:hover{color:#fff}.flip-clock-wrapper ul{list-style:none}.flip-clock-wrapper.clearfix:after,.flip-clock-wrapper.clearfix:before{content:" ";display:table}.flip-clock-wrapper.clearfix:after{clear:both}.flip-clock-wrapper.clearfix{*zoom:1}.flip-clock-wrapper{font:normal 11px Helvetica Neue,Helvetica,sans-serif;-webkit-user-select:none}.flip-clock-meridium{background:none!important;box-shadow:0 0 0!important;font-size:36px!important}.flip-clock-meridium a{color:#313333}.flip-clock-wrapper{text-align:center;position:relative;width:100%;margin:1em}.flip-clock-wrapper:after,.flip-clock-wrapper:before{content:" ";display:table}.flip-clock-wrapper:after{clear:both}.flip-clock-wrapper ul{position:relative;float:left;margin:5px;width:60px;height:90px;font-size:80px;font-weight:700;line-height:87px;border-radius:6px;background:#000}.flip-clock-wrapper ul li{z-index:1;position:absolute;left:0;top:0;width:100%;height:100%;line-height:87px;text-decoration:none!important}.flip-clock-wrapper ul li:first-child{z-index:2}.flip-clock-wrapper ul li a{display:block;height:100%;-webkit-perspective:200px;perspective:200px;margin:0!important;overflow:visible!important;cursor:default!important}.flip-clock-wrapper ul li a div{z-index:1;position:absolute;left:0;width:100%;height:50%;font-size:80px;overflow:hidden;outline:1px solid transparent}.flip-clock-wrapper ul li a div .shadow{position:absolute;width:100%;height:100%;z-index:2}.flip-clock-wrapper ul li a div.up{-webkit-transform-origin:50% 100%;transform-origin:50% 100%;top:0}.flip-clock-wrapper ul li a div.up:after{content:"";position:absolute;top:44px;left:0;z-index:5;width:100%;height:3px;background-color:#000;background-color:rgba(0,0,0,.4)}.flip-clock-wrapper ul li a div.down{-webkit-transform-origin:50% 0;transform-origin:50% 0;bottom:0;border-bottom-left-radius:6px;border-bottom-right-radius:6px}.flip-clock-wrapper ul li a div div.inn{position:absolute;left:0;z-index:1;width:100%;height:200%;color:#ccc;text-shadow:0 1px 2px #000;text-align:center;background-color:#333;border-radius:6px;font-size:70px}.flip-clock-wrapper ul li a div.up div.inn{top:0}.flip-clock-wrapper ul li a div.down div.inn{bottom:0}.flip-clock-wrapper ul.play li.flip-clock-before{z-index:3}.flip-clock-wrapper .flip{box-shadow:0 2px 5px rgba(0,0,0,.7)}.flip-clock-wrapper ul.play li.flip-clock-active{-webkit-animation:asd .5s .5s linear both;animation:asd .5s .5s linear both;z-index:5}.flip-clock-divider{float:left;display:inline-block;position:relative;width:20px;height:100px}.flip-clock-divider:first-child{width:0}.flip-clock-dot{display:block;background:#323434;width:10px;height:10px;position:absolute;border-radius:50%;box-shadow:0 0 5px rgba(0,0,0,.5);left:5px}.flip-clock-divider .flip-clock-label{position:absolute;top:-1.5em;right:-86px;color:#000;text-shadow:none}.flip-clock-divider.minutes .flip-clock-label{right:-88px}.flip-clock-divider.seconds .flip-clock-label{right:-91px}.flip-clock-dot.top{top:30px}.flip-clock-dot.bottom{bottom:30px}@-webkit-keyframes asd{0%{z-index:2}20%{z-index:4}to{z-index:4}}@keyframes asd{0%{z-index:2}20%{z-index:4}to{z-index:4}}.flip-clock-wrapper ul.play li.flip-clock-active .down{z-index:2;-webkit-animation:turn .3s .5s linear both;animation:turn .3s .5s linear both}@-webkit-keyframes turn{0%{-webkit-transform:rotateX(91deg)}to{-webkit-transform:rotateX(0deg)}}@keyframes turn{0%{-webkit-transform:rotateX(91deg);transform:rotateX(91deg)}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg)}}.flip-clock-wrapper ul.play li.flip-clock-before .up{z-index:2;-webkit-animation:turn2 .5s cubic-bezier(.34,.13,.93,.24) both;animation:turn2 .5s cubic-bezier(.34,.13,.93,.24) both}@-webkit-keyframes turn2{0%{-webkit-transform:rotateX(0deg)}to{-webkit-transform:rotateX(-90deg)}}@keyframes turn2{0%{-webkit-transform:rotateX(0deg);transform:rotateX(0deg)}to{-webkit-transform:rotateX(-90deg);transform:rotateX(-90deg)}}.flip-clock-wrapper ul li.flip-clock-active{z-index:3}.flip-clock-wrapper ul.play li.flip-clock-before .up .shadow{-webkit-animation:show .5s linear both;animation:show .5s linear both}.flip-clock-wrapper ul.play li.flip-clock-active .up .shadow,.flip-clock-wrapper ul.play li.flip-clock-before .up .shadow{background:-moz-linear-gradient(top,rgba(0,0,0,.1) 0,#000 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(0,0,0,.1)),color-stop(100%,#000));background:linear,top,rgba(0,0,0,.1) 0,#000 100%;background:-ms-linear-gradient(top,rgba(0,0,0,.1) 0,#000 100%);background:linear,to bottom,rgba(0,0,0,.1) 0,#000 100%}.flip-clock-wrapper ul.play li.flip-clock-active .up .shadow{-webkit-animation:hide .5s .3s linear both;animation:hide .5s .3s linear both}.flip-clock-wrapper ul.play li.flip-clock-before .down .shadow{-webkit-animation:show .5s linear both;animation:show .5s linear both}.flip-clock-wrapper ul.play li.flip-clock-active .down .shadow,.flip-clock-wrapper ul.play li.flip-clock-before .down .shadow{background:-moz-linear-gradient(top,#000 0,rgba(0,0,0,.1) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#000),color-stop(100%,rgba(0,0,0,.1)));background:linear,top,#000 0,rgba(0,0,0,.1) 100%;background:-ms-linear-gradient(top,#000 0,rgba(0,0,0,.1) 100%);background:linear,to bottom,#000 0,rgba(0,0,0,.1) 100%}.flip-clock-wrapper ul.play li.flip-clock-active .down .shadow{-webkit-animation:hide .5s .3s linear both;animation:hide .5s .2s linear both}@-webkit-keyframes show{0%{opacity:0}to{opacity:1}}@keyframes show{0%{opacity:0}to{opacity:1}}@-webkit-keyframes hide{0%{opacity:1}to{opacity:0}}@keyframes hide{0%{opacity:1}to{opacity:0}}',""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r))return t;var a;return a=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};i.Ukraine={years:"років",months:"місяців",days:"днів",hours:"годин",minutes:"хвилин",secon