/**
 * Copyright (c) 2024 Visa, Inc.
 *
 * This source code is licensed under the MIT license
 * https://github.com/visa/visa-chart-components/blob/master/LICENSE
 *
 **/
var n=new Date,t=new Date;function u(r,e,i,f){function o(n){return r(n=arguments.length===0?new Date:new Date(+n)),n}o.floor=function(n){return r(n=new Date(+n)),n};o.ceil=function(n){return r(n=new Date(n-1)),e(n,1),r(n),n};o.round=function(n){var t=o(n),u=o.ceil(n);return n-t<u-n?t:u};o.offset=function(n,t){return e(n=new Date(+n),t==null?1:Math.floor(t)),n};o.range=function(n,t,u){var i=[],f;n=o.ceil(n);u=u==null?1:Math.floor(u);if(!(n<t)||!(u>0))return i;do{i.push(f=new Date(+n)),e(n,u),r(n)}while(f<n&&n<t);return i};o.filter=function(n){return u((function(t){if(t>=t)while(r(t),!n(t))t.setTime(t-1)}),(function(t,u){if(t>=t){if(u<0)while(++u<=0){while(e(t,-1),!n(t)){}}else while(--u>=0){while(e(t,+1),!n(t)){}}}}))};if(i){o.count=function(u,e){n.setTime(+u),t.setTime(+e);r(n),r(t);return Math.floor(i(n,t))};o.every=function(n){n=Math.floor(n);return!isFinite(n)||!(n>0)?null:!(n>1)?o:o.filter(f?function(t){return f(t)%n===0}:function(t){return o.count(0,t)%n===0})}}return o}var r=1e3;var e=6e4;var i=36e5;var f=864e5;var o=6048e5;var a=u((function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*r-n.getMinutes()*e)}),(function(n,t){n.setTime(+n+t*i)}),(function(n,t){return(t-n)/i}),(function(n){return n.getHours()}));const c=a;var s=u((function(n){n.setHours(0,0,0,0)}),(function(n,t){n.setDate(n.getDate()+t)}),(function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*e)/f}),(function(n){return n.getDate()-1}));const l=s;function v(n){return u((function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7);t.setHours(0,0,0,0)}),(function(n,t){n.setDate(n.getDate()+t*7)}),(function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*e)/o}))}var w=v(0);var h=v(1);v(2);v(3);var D=v(4);v(5);v(6);var M=u((function(n){n.setDate(1);n.setHours(0,0,0,0)}),(function(n,t){n.setMonth(n.getMonth()+t)}),(function(n,t){return t.getMonth()-n.getMonth()+(t.getFullYear()-n.getFullYear())*12}),(function(n){return n.getMonth()}));const d=M;var F=u((function(n){n.setMonth(0,1);n.setHours(0,0,0,0)}),(function(n,t){n.setFullYear(n.getFullYear()+t)}),(function(n,t){return t.getFullYear()-n.getFullYear()}),(function(n){return n.getFullYear()}));F.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:u((function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)}),(function(t,u){t.setFullYear(t.getFullYear()+u*n)}))};const b=F;export{l as a,d as b,b as c,r as d,e,f,o as g,D as h,h as m,u as n,w as s,c as t};
//# sourceMappingURL=p-09f6650c.js.map