New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ampproject/amp-date-countdown

Package Overview
Dependencies
Maintainers
16
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/amp-date-countdown - npm Package Compare versions

Comparing version 1.2104150129.0 to 1.2104150129.1

dist/component-preact.max.module.js

2

dist/component-preact.js

@@ -1,2 +0,2 @@

var Oe=Object.create,N=Object.defineProperty,xe=Object.getPrototypeOf,Se=Object.prototype.hasOwnProperty,Ee=Object.getOwnPropertyNames,we=Object.getOwnPropertyDescriptor,oe=function(e){return N(e,"__esModule",{value:!0})},Ae=function(e,t){for(var r in t)N(e,r,{get:t[r],enumerable:!0})},Pe=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=Ee(t),a=0,u=o.length;a<u;a++)n=o[a],!Se.call(e,n)&&"default"!==n&&N(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=we(t,n))||r.enumerable});return e},_=function(e){return Pe(oe(N(null!=e?Oe(xe(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};oe(exports),Ae(exports,{DateCountdown:function(){return ir}});var s=_(require("preact/hooks")),v=_(require("preact")),ae=_(require("preact"));function m(e,t,r){return v.createElement.apply(void 0,arguments)}function ie(e){return v.createContext(e)}function j(e){return s.useState(e)}function G(e){return s.useRef(e)}function ue(e,t){s.useEffect(e,t)}function C(e,t){s.useLayoutEffect(e,t)}function se(e){return s.useContext(e)}function x(e,t){return s.useMemo(e,t)}var I=_(require("preact/compat"));function R(e){return I.forwardRef(e)}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e,t){if(null==e)return{};var r,n,o=Ne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ne(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var je=[null,"paint","layout","content","size","size paint","size layout","strict"],Ce={position:"relative",width:"100%",height:"100%"};function Ie(e,t){var r=e.as,n=void 0===r?"div":r,o=e.size,a=void 0!==o&&o,u=e.layout,c=void 0!==u&&u,i=e.paint,l=void 0!==i&&i,f=e.wrapperClassName,s=e.wrapperStyle,y=e.contentAs,b=void 0===y?"div":y,d=e.contentRef,O=e.contentClassName,v=e.contentProps,h=e.contentStyle,g=e.children,j=e.className,w=e.style,S=(a?4:0)+(c?2:0)+(l?1:0);return m(n,p(p({},_e(e,["as","size","layout","paint","wrapperClassName","wrapperStyle","contentAs","contentRef","contentClassName","contentProps","contentStyle","children","className","style"])),{},{ref:t,className:"".concat(j||""," ").concat(f||"").trim()||null,style:p(p(p({},w),s),{},{contain:je[S]})}),m(b,p(p({},v),{},{ref:d,className:O,style:p(p({},a&&Ce),{},{overflow:l?"hidden":"visible"},h)}),g))}var Re=R(Ie);function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){Le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e,t){if(null==e)return{};var r,n,o=Me(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Me(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Ue(e,t){var r=e.as,n=void 0===r?"div":r,o=e.wrapperClassName,a=e.wrapperStyle,u=e.children,c=e.className,i=e.style;return m(n,L(L({},Te(e,["as","wrapperClassName","wrapperStyle","children","className","style"])),{},{ref:t,className:"".concat(c||""," ").concat(o||"").trim()||null,style:L(L({},i),a)}),u)}var Z=R(Ue);function Fe(e,t){return ke(e)||$e(e,t)||He(e,t)||We()}function We(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function He(e,t){if(e){if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,t)}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&null!=c.return&&c.return()}finally{if(o)throw a}}return r}}function ke(e){if(Array.isArray(e))return e}function K(e,t){var r=Fe(j(null),2),n=r[0],o=r[1];return C((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}function B(e){return e||{}}var $r=Array.isArray;function Ye(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function pe(e){return e?"number"==typeof e?e:"string"==typeof e?Ye(e):e.getTime():null}function V(e){return ze[e]}var h,ze={de:["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],en:["Years","Months","Days","Hours","Minutes","Seconds"],es:["años","meses","días","horas","minutos","segundos"],fr:["ans","mois","jours","heures","minutes","secondes"],id:["tahun","bulan","hari","jam","menit","detik"],it:["anni","mesi","giorni","ore","minuti","secondi"],ja:["年","ヶ月","日","時間","分","秒"],ko:["년","달","일","시간","분","초"],nl:["jaar","maanden","dagen","uur","minuten","seconden"],pt:["anos","meses","dias","horas","minutos","segundos"],ru:["год","месяц","день","час","минута","секунда"],th:["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],tr:["yıl","ay","gün","saat","dakika","saniye"],vi:["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var me,l={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},rt=[l.AUTO,l.LAZY,l.EAGER,l.UNLOAD],tt=(M(h={},l.AUTO,0),M(h,l.LAZY,1),M(h,l.EAGER,2),M(h,l.UNLOAD,3),h);function qe(){return me||(me=ie({renderable:!0,playable:!0,loading:l.AUTO}))}function T(){return se(qe())}function de(){var e=T().notify;C((function(){e&&e()}))}function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){Ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){return Ve(e)||Be(e,t)||Ke(e,t)||Ze()}function Ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ke(e,t){if(e){if("string"==typeof e)return ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ye(e,t)}}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Be(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&null!=c.return&&c.return()}finally{if(o)throw a}}return r}}function Ve(e){if(Array.isArray(e))return e}function Xe(e,t){if(null==e)return{};var r,n,o=Qe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Qe(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var er="DateCountdown",he=864e5,J=36e5,Q=6e4,ge=1e3,X=1e3,c={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},ee="en",be="stop",rr="DAYS",tr=!1,nr=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function ir(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?be:r,o=e.locale,a=void 0===o?ee:o,u=e.biggestUnit,c=void 0===u?rr:u,i=e.countUp,l=void 0===i?tr:i,f=e.render,s=void 0===f?nr:f,y=Xe(e,["datetime","whenEnded","locale","biggestUnit","countUp","render"]);de();var p=T().playable,b=x((function(){return pe(t)}),[t]),d=x((function(){return ar(a)}),[a]),O=Je(j(b-Date.now()+X),2),v=O[0],h=O[1],g=x((function(){return or(v,c,d,l)}),[v,c,d,l]),w=G(null);ue((function(){if(p&&w.current){var e=w.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=b-Date.now()+X;h(r),n===be&&r<1e3&&e.clearInterval(t)}),X);return function(){return e.clearInterval(t)}}}),[p,b,n]);var S=K(s,g),P=S&&"object"==W(S)&&"__html"in S;return m(Z,U(U({},y),{},{ref:w,dangerouslySetInnerHTML:P?S:null}),P?null:S)}function or(e,t,r,n){return U(U({},ur(e,t,n)),r)}function ar(e){void 0===V(e)&&(sr("Invalid locale ".concat(e,", defaulting to ").concat(ee,". ").concat(er)),e=ee);var t=V(e);return B({years:t[0],months:t[1],days:t[2],hours:t[3],minutes:t[4],seconds:t[5]})}function ur(e,t,r){r&&(e*=-1);var n=c[t]==c.DAYS?y(Math.floor(e/he)):0,o=c[t]==c.HOURS?y(Math.floor(e/J)):c[t]<c.HOURS?y(Math.floor(e%he/J)):0,a=c[t]==c.MINUTES?y(Math.floor(e/Q)):c[t]<c.MINUTES?y(Math.floor(e%J/Q)):0,u=c[t]==c.SECONDS?y(Math.floor(e/ge)):y(Math.floor(e%Q/ge));return B({d:n,dd:H(n),h:o,hh:H(o),m:a,mm:H(a),s:u,ss:H(u)})}function H(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function y(e){return e<0?e+1:e}function sr(e){console.warn(e)}
var xe=Object.create,_=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Ee=Object.getOwnPropertyNames,Ae=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty,oe=function(e){return _(e,"__esModule",{value:!0})},Ce=function(e,t){for(var r in t)_(e,r,{get:t[r],enumerable:!0})},_e=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=Ee(t),u=0,a=o.length;u<a;u++)n=o[u],!Pe.call(e,n)&&"default"!==n&&_(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=we(t,n))||r.enumerable});return e},D=function(e){return _e(oe(_(null!=e?xe(Ae(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};oe(exports),Ce(exports,{DateCountdown:function(){return ir}});var c=D(require("preact/hooks")),y=D(require("preact")),ae=D(require("preact"));function m(e,t,r){return y.createElement.apply(void 0,arguments)}function ie(e){return y.createContext(e,void 0)}function j(e){return c.useState(e)}function G(e){return c.useRef(e)}function ue(e,t){c.useEffect(e,t)}function N(e,t){c.useLayoutEffect(e,t)}function ce(e){return c.useContext(e)}function S(e,t){return c.useMemo(e,t)}var I=D(require("preact/compat"));function T(e){return I.forwardRef(e)}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e,t){if(null==e)return{};var r,n,o=Ne(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ne(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Ie=[null,"paint","layout","content","size","size paint","size layout","strict"],Te={position:"relative",width:"100%",height:"100%"};function Le(e,t){var r=e.as,n=void 0===r?"div":r,o=e.size,u=void 0!==o&&o,a=e.layout,c=void 0!==a&&a,i=e.paint,l=void 0!==i&&i,f=e.wrapperClassName,p=e.wrapperStyle,y=e.contentAs,b=void 0===y?"div":y,O=e.contentRef,d=e.contentClassName,v=e.contentProps,h=e.contentStyle,g=e.children,j=e.className,w=e.style,S=(u?4:0)+(c?2:0)+(l?1:0);return m(n,s(s({},je(e,["as","size","layout","paint","wrapperClassName","wrapperStyle","contentAs","contentRef","contentClassName","contentProps","contentStyle","children","className","style"])),{},{ref:t,className:"".concat(j||""," ").concat(f||"").trim()||null,style:s(s(s({},w),p),{},{contain:Ie[S]})}),m(b,s(s({},v),{},{ref:O,className:d,style:s(s({},u&&Te),{},{overflow:l?"hidden":"visible"},h)}),g))}var Re=T(Le);function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ue(e,t){if(null==e)return{};var r,n,o=We(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function We(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function ke(e,t){var r=e.as,n=void 0===r?"div":r,o=e.wrapperClassName,u=e.wrapperStyle,a=e.children,c=e.className,i=e.style;return m(n,L(L({},Ue(e,["as","wrapperClassName","wrapperStyle","children","className","style"])),{},{ref:t,className:"".concat(c||""," ").concat(o||"").trim()||null,style:L(L({},i),u)}),a)}var B=T(ke);function He(e,t){return ze(e)||Ye(e,t)||Fe(e,t)||$e()}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fe(e,t){if(e){if("string"==typeof e)return pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pe(e,t)}}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ye(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,u=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(u.push(n.value),!t||u.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{!a&&null!=r.return&&r.return()}finally{if(c)throw o}}return u}}function ze(e){if(Array.isArray(e))return e}function K(e,t){var r=He(j(null),2),n=r[0],o=r[1];return N((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}var se=Object.prototype,Rr=se.toString,Mr=se.hasOwnProperty;function V(e){return e||{}}function me(e){return"string"==typeof e}function Ze(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function de(e){return e?"number"==typeof e?e:me(e)?Ze(e):(e=e).getTime():null}function J(e){return Ge[e]}var h,Ge={de:["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],en:["Years","Months","Days","Hours","Minutes","Seconds"],es:["años","meses","días","horas","minutos","segundos"],fr:["ans","mois","jours","heures","minutes","secondes"],id:["tahun","bulan","hari","jam","menit","detik"],it:["anni","mesi","giorni","ore","minuti","secondi"],ja:["年","ヶ月","日","時間","分","秒"],ko:["년","달","일","시간","분","초"],nl:["jaar","maanden","dagen","uur","minuten","seconden"],pt:["anos","meses","dias","horas","minutos","segundos"],ru:["год","месяц","день","час","минута","секунда"],th:["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],tr:["yıl","ay","gün","saat","dakika","saniye"],vi:["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye,p={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Fr=[p.AUTO,p.LAZY,p.EAGER,p.UNLOAD],Yr=(R(h={},p.AUTO,0),R(h,p.LAZY,1),R(h,p.EAGER,2),R(h,p.UNLOAD,3),h);function Be(){return ye||(ye=ie({renderable:!0,playable:!0,loading:p.AUTO}))}function M(){return ce(Be())}function ve(){var e=M().notify;N((function(){e&&e()}))}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){Ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){return Xe(e)||Qe(e,t)||qe(e,t)||Je()}function Je(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qe(e,t){if(e){if("string"==typeof e)return be(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return be(e,t)}}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qe(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,u=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(u.push(n.value),!t||u.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{!a&&null!=r.return&&r.return()}finally{if(c)throw o}}return u}}function Xe(e){if(Array.isArray(e))return e}function er(e,t){if(null==e)return{};var r,n,o=rr(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function rr(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var tr="DateCountdown",ge=864e5,q=36e5,Q=6e4,Oe=1e3,X=1e3,l={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},ee="en",Se="stop",nr="DAYS",or=!1,ar=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function ir(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?Se:r,o=e.locale,u=void 0===o?ee:o,a=e.biggestUnit,c=void 0===a?nr:a,i=e.countUp,l=void 0===i?or:i,f=e.render,s=void 0===f?ar:f,p=er(e,["datetime","whenEnded","locale","biggestUnit","countUp","render"]);ve();var y=M().playable,b=S((function(){return de(t)}),[t]),O=S((function(){return cr(u)}),[u]),d=Ve(j(b-Date.now()+X),2),v=d[0],h=d[1],g=S((function(){return ur(v,c,O,l)}),[v,c,O,l]),w=G(null);ue((function(){if(y&&w.current){var e=w.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=b-Date.now()+X;h(r),n===Se&&r<1e3&&e.clearInterval(t)}),X);return function(){return e.clearInterval(t)}}}),[y,b,n]);var P=K(s,g),D=P&&"object"==W(P)&&"__html"in P;return m(B,U(U({},p),{},{ref:w,dangerouslySetInnerHTML:D?P:null}),D?null:P)}function ur(e,t,r,n){return U(U({},fr(e,t,n)),r)}function cr(e){void 0===J(e)&&(lr("Invalid locale ".concat(e,", defaulting to ").concat(ee,". ").concat(tr)),e=ee);var t=J(e);return V({years:t[0],months:t[1],days:t[2],hours:t[3],minutes:t[4],seconds:t[5]})}function fr(e,t,r){r&&(e*=-1);var n=l[t]==l.DAYS?v(Math.floor(e/ge)):0,o=l[t]==l.HOURS?v(Math.floor(e/q)):l[t]<l.HOURS?v(Math.floor(e%ge/q)):0,u=l[t]==l.MINUTES?v(Math.floor(e/Q)):l[t]<l.MINUTES?v(Math.floor(e%q/Q)):0,a=l[t]==l.SECONDS?v(Math.floor(e/Oe)):v(Math.floor(e%Q/Oe));return V({d:n,dd:k(n),h:o,hh:k(o),m:u,mm:k(u),s:a,ss:k(a)})}function k(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function v(e){return e<0?e+1:e}function lr(e){console.warn(e)}
//# sourceMappingURL=component-preact.js.map
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __markAsModule = function(target) {
return __defProp(target, "__esModule", {value: true});
return __defProp(target, "__esModule", { value: true });
};
var __export = function(target, all) {
for (var name in all)
__defProp(target, name, {get: all[name], enumerable: true});
__defProp(target, name, { get: all[name], enumerable: true });
};
var __exportStar = function(target, module2, desc) {
var __reExport = function(target, module2, desc) {
if (module2 && typeof module2 === "object" || typeof module2 === "function")

@@ -19,5 +19,5 @@ for (var keys = __getOwnPropNames(module2), i = 0, n = keys.length, key; i < n; i++) {

if (!__hasOwnProp.call(target, key) && key !== "default")
__defProp(target, key, {get: function(k) {
__defProp(target, key, { get: function(k) {
return module2[k];
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
}

@@ -27,5 +27,5 @@ return target;

var __toModule = function(module2) {
return __exportStar(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: function() {
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: function() {
return module2.default;
}, enumerable: true} : {value: module2, enumerable: true})), module2);
}, enumerable: true } : { value: module2, enumerable: true })), module2);
};

@@ -49,3 +49,3 @@

function createContext2(value) {
return preact.createContext(value);
return preact.createContext(value, void 0);
}

@@ -117,5 +117,5 @@ function useState2(initial) {

var SIZE_CONTENT_STYLE = {
position: "relative",
width: "100%",
height: "100%"
"position": "relative",
"width": "100%",
"height": "100%"
};

@@ -135,3 +135,3 @@ function ContainWrapperWithRef(_ref, ref) {

style: _extends({}, size && SIZE_CONTENT_STYLE, {
overflow: paint ? "hidden" : "visible"
"overflow": paint ? "hidden" : "visible"
}, contentStyle)

@@ -203,3 +203,6 @@ }), children));

// src/utils/object.js
// src/core/types/object/index.js
var _Object$prototype = Object.prototype;
var toString_ = _Object$prototype.toString;
var hasOwn_ = _Object$prototype.hasOwnProperty;
function dict(opt_initial) {

@@ -209,6 +212,8 @@ return opt_initial || {};

// src/core/types/array.js
var isArray = Array.isArray;
// src/core/types/string/index.js
function isString(s) {
return typeof s == "string";
}
// src/utils/date.js
// src/core/types/date.js
function parseDate(s) {

@@ -231,5 +236,6 @@ if (!s) {

}
if (typeof value == "string") {
if (isString(value)) {
return parseDate(value);
}
value = value;
return value.getTime();

@@ -243,16 +249,16 @@ }

var LOCALE_WORD = {
de: ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"],
en: ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"],
es: ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"],
fr: ["ans", "mois", "jours", "heures", "minutes", "secondes"],
id: ["tahun", "bulan", "hari", "jam", "menit", "detik"],
it: ["anni", "mesi", "giorni", "ore", "minuti", "secondi"],
ja: ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"],
ko: ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"],
nl: ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"],
pt: ["anos", "meses", "dias", "horas", "minutos", "segundos"],
ru: ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"],
th: ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"],
tr: ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"],
vi: ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"],
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"],
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"],
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"],
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"],
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"],
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"],
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"],
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"],
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"],
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"],
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"],
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"],
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"],
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"],
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"],

@@ -393,8 +399,8 @@ "zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"]

return dict({
years: localeWordList[0],
months: localeWordList[1],
days: localeWordList[2],
hours: localeWordList[3],
minutes: localeWordList[4],
seconds: localeWordList[5]
"years": localeWordList[0],
"months": localeWordList[1],
"days": localeWordList[2],
"hours": localeWordList[3],
"minutes": localeWordList[4],
"seconds": localeWordList[5]
});

@@ -411,10 +417,10 @@ }

return dict({
d: d,
dd: padStart(d),
h: h,
hh: padStart(h),
m: m,
mm: padStart(m),
s: s,
ss: padStart(s)
"d": d,
"dd": padStart(d),
"h": h,
"hh": padStart(h),
"m": m,
"mm": padStart(m),
"s": s,
"ss": padStart(s)
});

@@ -421,0 +427,0 @@ }

@@ -1,2 +0,2 @@

var Oe=Object.create,N=Object.defineProperty,xe=Object.getPrototypeOf,Se=Object.prototype.hasOwnProperty,Ee=Object.getOwnPropertyNames,we=Object.getOwnPropertyDescriptor,oe=function(e){return N(e,"__esModule",{value:!0})},Ae=function(e,t){for(var r in t)N(e,r,{get:t[r],enumerable:!0})},Pe=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=Ee(t),a=0,u=o.length;a<u;a++)n=o[a],!Se.call(e,n)&&"default"!==n&&N(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=we(t,n))||r.enumerable});return e},_=function(e){return Pe(oe(N(null!=e?Oe(xe(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};oe(exports),Ae(exports,{DateCountdown:function(){return ir}});var s=_(require("react")),v=_(require("react")),ae=_(require("react-dom"));function m(e,t,r){return v.createElement.apply(void 0,arguments)}function ie(e){return v.createContext(e)}function j(e){return s.useState(e)}function G(e){return s.useRef(e)}function ue(e,t){s.useEffect(e,t)}function C(e,t){s.useLayoutEffect(e,t)}function se(e){return s.useContext(e)}function x(e,t){return s.useMemo(e,t)}var I=_(require("react"));function R(e){return I.forwardRef(e)}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e,t){if(null==e)return{};var r,n,o=Ne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ne(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var je=[null,"paint","layout","content","size","size paint","size layout","strict"],Ce={position:"relative",width:"100%",height:"100%"};function Ie(e,t){var r=e.as,n=void 0===r?"div":r,o=e.size,a=void 0!==o&&o,u=e.layout,c=void 0!==u&&u,i=e.paint,l=void 0!==i&&i,f=e.wrapperClassName,s=e.wrapperStyle,y=e.contentAs,b=void 0===y?"div":y,d=e.contentRef,O=e.contentClassName,v=e.contentProps,h=e.contentStyle,g=e.children,j=e.className,w=e.style,S=(a?4:0)+(c?2:0)+(l?1:0);return m(n,p(p({},_e(e,["as","size","layout","paint","wrapperClassName","wrapperStyle","contentAs","contentRef","contentClassName","contentProps","contentStyle","children","className","style"])),{},{ref:t,className:"".concat(j||""," ").concat(f||"").trim()||null,style:p(p(p({},w),s),{},{contain:je[S]})}),m(b,p(p({},v),{},{ref:d,className:O,style:p(p({},a&&Ce),{},{overflow:l?"hidden":"visible"},h)}),g))}var Re=R(Ie);function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){Le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e,t){if(null==e)return{};var r,n,o=Me(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Me(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function Ue(e,t){var r=e.as,n=void 0===r?"div":r,o=e.wrapperClassName,a=e.wrapperStyle,u=e.children,c=e.className,i=e.style;return m(n,L(L({},Te(e,["as","wrapperClassName","wrapperStyle","children","className","style"])),{},{ref:t,className:"".concat(c||""," ").concat(o||"").trim()||null,style:L(L({},i),a)}),u)}var Z=R(Ue);function Fe(e,t){return ke(e)||$e(e,t)||He(e,t)||We()}function We(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function He(e,t){if(e){if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,t)}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&null!=c.return&&c.return()}finally{if(o)throw a}}return r}}function ke(e){if(Array.isArray(e))return e}function K(e,t){var r=Fe(j(null),2),n=r[0],o=r[1];return C((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}function B(e){return e||{}}var $r=Array.isArray;function Ye(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function pe(e){return e?"number"==typeof e?e:"string"==typeof e?Ye(e):e.getTime():null}function V(e){return ze[e]}var h,ze={de:["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],en:["Years","Months","Days","Hours","Minutes","Seconds"],es:["años","meses","días","horas","minutos","segundos"],fr:["ans","mois","jours","heures","minutes","secondes"],id:["tahun","bulan","hari","jam","menit","detik"],it:["anni","mesi","giorni","ore","minuti","secondi"],ja:["年","ヶ月","日","時間","分","秒"],ko:["년","달","일","시간","분","초"],nl:["jaar","maanden","dagen","uur","minuten","seconden"],pt:["anos","meses","dias","horas","minutos","segundos"],ru:["год","месяц","день","час","минута","секунда"],th:["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],tr:["yıl","ay","gün","saat","dakika","saniye"],vi:["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var me,l={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},rt=[l.AUTO,l.LAZY,l.EAGER,l.UNLOAD],tt=(M(h={},l.AUTO,0),M(h,l.LAZY,1),M(h,l.EAGER,2),M(h,l.UNLOAD,3),h);function qe(){return me||(me=ie({renderable:!0,playable:!0,loading:l.AUTO}))}function T(){return se(qe())}function de(){var e=T().notify;C((function(){e&&e()}))}function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){Ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){return Ve(e)||Be(e,t)||Ke(e,t)||Ze()}function Ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ke(e,t){if(e){if("string"==typeof e)return ye(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ye(e,t)}}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Be(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&null!=c.return&&c.return()}finally{if(o)throw a}}return r}}function Ve(e){if(Array.isArray(e))return e}function Xe(e,t){if(null==e)return{};var r,n,o=Qe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Qe(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var er="DateCountdown",he=864e5,J=36e5,Q=6e4,ge=1e3,X=1e3,c={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},ee="en",be="stop",rr="DAYS",tr=!1,nr=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function ir(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?be:r,o=e.locale,a=void 0===o?ee:o,u=e.biggestUnit,c=void 0===u?rr:u,i=e.countUp,l=void 0===i?tr:i,f=e.render,s=void 0===f?nr:f,y=Xe(e,["datetime","whenEnded","locale","biggestUnit","countUp","render"]);de();var p=T().playable,b=x((function(){return pe(t)}),[t]),d=x((function(){return ar(a)}),[a]),O=Je(j(b-Date.now()+X),2),v=O[0],h=O[1],g=x((function(){return or(v,c,d,l)}),[v,c,d,l]),w=G(null);ue((function(){if(p&&w.current){var e=w.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=b-Date.now()+X;h(r),n===be&&r<1e3&&e.clearInterval(t)}),X);return function(){return e.clearInterval(t)}}}),[p,b,n]);var S=K(s,g),P=S&&"object"==W(S)&&"__html"in S;return m(Z,U(U({},y),{},{ref:w,dangerouslySetInnerHTML:P?S:null}),P?null:S)}function or(e,t,r,n){return U(U({},ur(e,t,n)),r)}function ar(e){void 0===V(e)&&(sr("Invalid locale ".concat(e,", defaulting to ").concat(ee,". ").concat(er)),e=ee);var t=V(e);return B({years:t[0],months:t[1],days:t[2],hours:t[3],minutes:t[4],seconds:t[5]})}function ur(e,t,r){r&&(e*=-1);var n=c[t]==c.DAYS?y(Math.floor(e/he)):0,o=c[t]==c.HOURS?y(Math.floor(e/J)):c[t]<c.HOURS?y(Math.floor(e%he/J)):0,a=c[t]==c.MINUTES?y(Math.floor(e/Q)):c[t]<c.MINUTES?y(Math.floor(e%J/Q)):0,u=c[t]==c.SECONDS?y(Math.floor(e/ge)):y(Math.floor(e%Q/ge));return B({d:n,dd:H(n),h:o,hh:H(o),m:a,mm:H(a),s:u,ss:H(u)})}function H(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function y(e){return e<0?e+1:e}function sr(e){console.warn(e)}
var xe=Object.create,_=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Ee=Object.getOwnPropertyNames,Ae=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty,oe=function(e){return _(e,"__esModule",{value:!0})},Ce=function(e,t){for(var r in t)_(e,r,{get:t[r],enumerable:!0})},_e=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=Ee(t),u=0,a=o.length;u<a;u++)n=o[u],!Pe.call(e,n)&&"default"!==n&&_(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=we(t,n))||r.enumerable});return e},D=function(e){return _e(oe(_(null!=e?xe(Ae(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};oe(exports),Ce(exports,{DateCountdown:function(){return ir}});var c=D(require("react")),y=D(require("react")),ae=D(require("react-dom"));function m(e,t,r){return y.createElement.apply(void 0,arguments)}function ie(e){return y.createContext(e,void 0)}function j(e){return c.useState(e)}function G(e){return c.useRef(e)}function ue(e,t){c.useEffect(e,t)}function N(e,t){c.useLayoutEffect(e,t)}function ce(e){return c.useContext(e)}function S(e,t){return c.useMemo(e,t)}var I=D(require("react"));function T(e){return I.forwardRef(e)}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e,t){if(null==e)return{};var r,n,o=Ne(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ne(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Ie=[null,"paint","layout","content","size","size paint","size layout","strict"],Te={position:"relative",width:"100%",height:"100%"};function Le(e,t){var r=e.as,n=void 0===r?"div":r,o=e.size,u=void 0!==o&&o,a=e.layout,c=void 0!==a&&a,i=e.paint,l=void 0!==i&&i,f=e.wrapperClassName,y=e.wrapperStyle,p=e.contentAs,b=void 0===p?"div":p,d=e.contentRef,O=e.contentClassName,v=e.contentProps,h=e.contentStyle,g=e.children,j=e.className,w=e.style,S=(u?4:0)+(c?2:0)+(l?1:0);return m(n,s(s({},je(e,["as","size","layout","paint","wrapperClassName","wrapperStyle","contentAs","contentRef","contentClassName","contentProps","contentStyle","children","className","style"])),{},{ref:t,className:"".concat(j||""," ").concat(f||"").trim()||null,style:s(s(s({},w),y),{},{contain:Ie[S]})}),m(b,s(s({},v),{},{ref:d,className:O,style:s(s({},u&&Te),{},{overflow:l?"hidden":"visible"},h)}),g))}var Re=T(Le);function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ue(e,t){if(null==e)return{};var r,n,o=We(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function We(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function ke(e,t){var r=e.as,n=void 0===r?"div":r,o=e.wrapperClassName,u=e.wrapperStyle,a=e.children,c=e.className,i=e.style;return m(n,L(L({},Ue(e,["as","wrapperClassName","wrapperStyle","children","className","style"])),{},{ref:t,className:"".concat(c||""," ").concat(o||"").trim()||null,style:L(L({},i),u)}),a)}var B=T(ke);function He(e,t){return ze(e)||Ye(e,t)||Fe(e,t)||$e()}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fe(e,t){if(e){if("string"==typeof e)return pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pe(e,t)}}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ye(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,u=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(u.push(n.value),!t||u.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{!a&&null!=r.return&&r.return()}finally{if(c)throw o}}return u}}function ze(e){if(Array.isArray(e))return e}function K(e,t){var r=He(j(null),2),n=r[0],o=r[1];return N((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}var se=Object.prototype,Rr=se.toString,Mr=se.hasOwnProperty;function V(e){return e||{}}function me(e){return"string"==typeof e}function Ze(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function de(e){return e?"number"==typeof e?e:me(e)?Ze(e):(e=e).getTime():null}function J(e){return Ge[e]}var h,Ge={de:["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],en:["Years","Months","Days","Hours","Minutes","Seconds"],es:["años","meses","días","horas","minutos","segundos"],fr:["ans","mois","jours","heures","minutes","secondes"],id:["tahun","bulan","hari","jam","menit","detik"],it:["anni","mesi","giorni","ore","minuti","secondi"],ja:["年","ヶ月","日","時間","分","秒"],ko:["년","달","일","시간","분","초"],nl:["jaar","maanden","dagen","uur","minuten","seconden"],pt:["anos","meses","dias","horas","minutos","segundos"],ru:["год","месяц","день","час","минута","секунда"],th:["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],tr:["yıl","ay","gün","saat","dakika","saniye"],vi:["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye,p={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Fr=[p.AUTO,p.LAZY,p.EAGER,p.UNLOAD],Yr=(R(h={},p.AUTO,0),R(h,p.LAZY,1),R(h,p.EAGER,2),R(h,p.UNLOAD,3),h);function Be(){return ye||(ye=ie({renderable:!0,playable:!0,loading:p.AUTO}))}function M(){return ce(Be())}function ve(){var e=M().notify;N((function(){e&&e()}))}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){Ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){return Xe(e)||Qe(e,t)||qe(e,t)||Je()}function Je(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qe(e,t){if(e){if("string"==typeof e)return be(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return be(e,t)}}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qe(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,u=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(u.push(n.value),!t||u.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{!a&&null!=r.return&&r.return()}finally{if(c)throw o}}return u}}function Xe(e){if(Array.isArray(e))return e}function er(e,t){if(null==e)return{};var r,n,o=rr(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function rr(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var tr="DateCountdown",ge=864e5,q=36e5,Q=6e4,Oe=1e3,X=1e3,l={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},ee="en",Se="stop",nr="DAYS",or=!1,ar=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function ir(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?Se:r,o=e.locale,u=void 0===o?ee:o,a=e.biggestUnit,c=void 0===a?nr:a,i=e.countUp,l=void 0===i?or:i,f=e.render,s=void 0===f?ar:f,y=er(e,["datetime","whenEnded","locale","biggestUnit","countUp","render"]);ve();var p=M().playable,b=S((function(){return de(t)}),[t]),d=S((function(){return cr(u)}),[u]),O=Ve(j(b-Date.now()+X),2),v=O[0],h=O[1],g=S((function(){return ur(v,c,d,l)}),[v,c,d,l]),w=G(null);ue((function(){if(p&&w.current){var e=w.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=b-Date.now()+X;h(r),n===Se&&r<1e3&&e.clearInterval(t)}),X);return function(){return e.clearInterval(t)}}}),[p,b,n]);var P=K(s,g),D=P&&"object"==W(P)&&"__html"in P;return m(B,U(U({},y),{},{ref:w,dangerouslySetInnerHTML:D?P:null}),D?null:P)}function ur(e,t,r,n){return U(U({},fr(e,t,n)),r)}function cr(e){void 0===J(e)&&(lr("Invalid locale ".concat(e,", defaulting to ").concat(ee,". ").concat(tr)),e=ee);var t=J(e);return V({years:t[0],months:t[1],days:t[2],hours:t[3],minutes:t[4],seconds:t[5]})}function fr(e,t,r){r&&(e*=-1);var n=l[t]==l.DAYS?v(Math.floor(e/ge)):0,o=l[t]==l.HOURS?v(Math.floor(e/q)):l[t]<l.HOURS?v(Math.floor(e%ge/q)):0,u=l[t]==l.MINUTES?v(Math.floor(e/Q)):l[t]<l.MINUTES?v(Math.floor(e%q/Q)):0,a=l[t]==l.SECONDS?v(Math.floor(e/Oe)):v(Math.floor(e%Q/Oe));return V({d:n,dd:k(n),h:o,hh:k(o),m:u,mm:k(u),s:a,ss:k(a)})}function k(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function v(e){return e<0?e+1:e}function lr(e){console.warn(e)}
//# sourceMappingURL=component-react.js.map
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __markAsModule = function(target) {
return __defProp(target, "__esModule", {value: true});
return __defProp(target, "__esModule", { value: true });
};
var __export = function(target, all) {
for (var name in all)
__defProp(target, name, {get: all[name], enumerable: true});
__defProp(target, name, { get: all[name], enumerable: true });
};
var __exportStar = function(target, module2, desc) {
var __reExport = function(target, module2, desc) {
if (module2 && typeof module2 === "object" || typeof module2 === "function")

@@ -19,5 +19,5 @@ for (var keys = __getOwnPropNames(module2), i = 0, n = keys.length, key; i < n; i++) {

if (!__hasOwnProp.call(target, key) && key !== "default")
__defProp(target, key, {get: function(k) {
__defProp(target, key, { get: function(k) {
return module2[k];
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
}

@@ -27,5 +27,5 @@ return target;

var __toModule = function(module2) {
return __exportStar(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: function() {
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: function() {
return module2.default;
}, enumerable: true} : {value: module2, enumerable: true})), module2);
}, enumerable: true } : { value: module2, enumerable: true })), module2);
};

@@ -49,3 +49,3 @@

function createContext2(value) {
return preact.createContext(value);
return preact.createContext(value, void 0);
}

@@ -117,5 +117,5 @@ function useState2(initial) {

var SIZE_CONTENT_STYLE = {
position: "relative",
width: "100%",
height: "100%"
"position": "relative",
"width": "100%",
"height": "100%"
};

@@ -135,3 +135,3 @@ function ContainWrapperWithRef(_ref, ref) {

style: _extends({}, size && SIZE_CONTENT_STYLE, {
overflow: paint ? "hidden" : "visible"
"overflow": paint ? "hidden" : "visible"
}, contentStyle)

@@ -203,3 +203,6 @@ }), children));

// src/utils/object.js
// src/core/types/object/index.js
var _Object$prototype = Object.prototype;
var toString_ = _Object$prototype.toString;
var hasOwn_ = _Object$prototype.hasOwnProperty;
function dict(opt_initial) {

@@ -209,6 +212,8 @@ return opt_initial || {};

// src/core/types/array.js
var isArray = Array.isArray;
// src/core/types/string/index.js
function isString(s) {
return typeof s == "string";
}
// src/utils/date.js
// src/core/types/date.js
function parseDate(s) {

@@ -231,5 +236,6 @@ if (!s) {

}
if (typeof value == "string") {
if (isString(value)) {
return parseDate(value);
}
value = value;
return value.getTime();

@@ -243,16 +249,16 @@ }

var LOCALE_WORD = {
de: ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"],
en: ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"],
es: ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"],
fr: ["ans", "mois", "jours", "heures", "minutes", "secondes"],
id: ["tahun", "bulan", "hari", "jam", "menit", "detik"],
it: ["anni", "mesi", "giorni", "ore", "minuti", "secondi"],
ja: ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"],
ko: ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"],
nl: ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"],
pt: ["anos", "meses", "dias", "horas", "minutos", "segundos"],
ru: ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"],
th: ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"],
tr: ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"],
vi: ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"],
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"],
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"],
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"],
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"],
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"],
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"],
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"],
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"],
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"],
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"],
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"],
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"],
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"],
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"],
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"],

@@ -393,8 +399,8 @@ "zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"]

return dict({
years: localeWordList[0],
months: localeWordList[1],
days: localeWordList[2],
hours: localeWordList[3],
minutes: localeWordList[4],
seconds: localeWordList[5]
"years": localeWordList[0],
"months": localeWordList[1],
"days": localeWordList[2],
"hours": localeWordList[3],
"minutes": localeWordList[4],
"seconds": localeWordList[5]
});

@@ -411,10 +417,10 @@ }

return dict({
d: d,
dd: padStart(d),
h: h,
hh: padStart(h),
m: m,
mm: padStart(m),
s: s,
ss: padStart(s)
"d": d,
"dd": padStart(d),
"h": h,
"hh": padStart(h),
"m": m,
"mm": padStart(m),
"s": s,
"ss": padStart(s)
});

@@ -421,0 +427,0 @@ }

{
"name": "@ampproject/amp-date-countdown",
"version": "v1.2104150129.000",
"description": "AMP Date Countdown Component",
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"main": "dist/component.js",
"module": "dist/component.mjs",
"exports": {
".": "./preact",
"./preact": {
"import": "dist/component-preact.mjs",
"require": "dist/component-preact.js"
},
"./react": {
"import": "dist/component-react.mjs",
"require": "dist/component-react.js"
}
"name": "@ampproject/amp-date-countdown",
"version": "1.2104150129.1",
"description": "AMP Date Countdown Component",
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"main": "./dist/component.js",
"module": "./dist/component-preact.module.js",
"exports": {
".": "./preact",
"./preact": {
"import": "./dist/component-preact.module.js",
"require": "./dist/component-preact.js"
},
"files": ["dist/*"],
"repository": {
"type": "git",
"url": "https://github.com/ampproject/amphtml.git",
"directory": "extensions/amp-date-countdown/1.0"
},
"homepage": "https://github.com/ampproject/amphtml/tree/main/extensions/amp-date-countdown/1.0",
"peerDependencies": {
"preact": "^10.2.1",
"react": "^17.0.0"
"./react": {
"import": "./dist/component-react.module.js",
"require": "./dist/component-react.js"
}
},
"files": ["dist/*", "react.js"],
"repository": {
"type": "git",
"url": "https://github.com/ampproject/amphtml.git",
"directory": "extensions/amp-date-countdown/1.0"
},
"homepage": "https://github.com/ampproject/amphtml/tree/main/extensions/amp-date-countdown/1.0",
"peerDependencies": {
"preact": "^10.2.1",
"react": "^17.0.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc