const e=/(Z|[+-]\d{2}:?\d{2})$/i,t=/^\d{4}-\d{2}-\d{2}$/,n=/^\d{4}-\d{2}-\d{2}T/;function r(r){return e.test(r)?r:t.test(r)?`${r}T00:00:00Z`:n.test(r)?`${r}Z`:r}function i(e){let t=e.trim();if(!t)return null;if(/^\d+$/.test(t)){let e=Number(t);if(Number.isFinite(e)&&e>0)return Math.floor(e)}let n=Date.parse(r(t));return Number.isFinite(n)?n:null}function a(e){return e.trim().split(/\s+/).filter(Boolean)}function o(e){let t=a(e);if(t.length===5){let[e,n]=t;return e===`0`&&n.includes(`*`)}if(t.length===6){let[e,n,r]=t;return e===`0`&&n===`0`&&r.includes(`*`)}return!1}function s(e){let t=typeof e==`number`?e:typeof e==`string`&&e.trim()?Number(e):NaN;if(Number.isFinite(t))return Math.max(0,Math.floor(t))}function c(e){return o(e)?3e5:void 0}function l(e){let t=s(e.staggerMs);if(t!==void 0)return t;let n=e.expr;return c(typeof n==`string`?n:``)??0}export{i,l as n,c as r,s as t};
