1import{n as f,g as b,b as T,f as w,c as D,a as S,d as Y}from"./differenceInSeconds-BkiuOB6c.js";import{a as F,b as O}from"./addMonths-ndSlExaS.js";import{t as p,c as v,d as A,e as H,f as z}from"./toDate-REVqqrxt.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"f3c35768d03cf7cbdb16c05b8e4bf996578a057c"};var e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="f2dc46ea-a6ef-440d-9be1-fe5e416f7f52",n._sentryDebugIdIdentifier="sentry-dbid-f2dc46ea-a6ef-440d-9be1-fe5e416f7f52")}catch{}})();function l(n,e,o){const{years:s=0,months:t=0,weeks:i=0,days:r=0,hours:a=0,minutes:c=0,seconds:g=0}=e,d=p(n,o?.in),u=t||s?F(d,t+s*12):d,m=r||i?O(u,r+i*7):u,y=c+a*60,h=(g+y*60)*1e3;return v(n,+m+h)}function I(n,e){const o=p(n,e?.in);return o.setHours(0,0,0,0),o}function E(n,e,o){const[s,t]=f(o?.in,n,e),i=I(s),r=I(t),a=+i-b(i),c=+r-b(r);return Math.round((a-c)/A)}function k(n,e,o){const[s,t]=f(o?.in,n,e);return s.getFullYear()-t.getFullYear()}function L(n,e,o){const[s,t]=f(o?.in,n,e),i=_(s,t),r=Math.abs(E(s,t));s.setDate(s.getDate()-i*r);const a=+(_(s,t)===-i),c=i*(r-a);return c===0?0:c}function _(n,e){const o=n.getFullYear()-e.getFullYear()||n.getMonth()-e.getMonth()||n.getDate()-e.getDate()||n.getHours()-e.getHours()||n.getMinutes()-e.getMinutes()||n.getSeconds()-e.getSeconds()||n.getMilliseconds()-e.getMilliseconds();return o<0?-1:o>0?1:o}function N(n,e,o){const[s,t]=f(o?.in,n,e),i=(+s-+t)/H;return T(o?.roundingMethod)(i)}function R(n,e,o){const s=w(n,e)/z;return T(o?.roundingMethod)(s)}function C(n,e,o){const[s,t]=f(o?.in,n,e),i=D(s,t),r=Math.abs(k(s,t));s.setFullYear(1584),t.setFullYear(1584);const a=D(s,t)===-i,c=i*(r-+a);return c===0?0:c}function W(n,e){const[o,s]=f(n,e.start,e.end);return{start:o,end:s}}function $(n,e){const{start:o,end:s}=W(e?.in,n),t={},i=C(s,o);i&&(t.years=i);const r=l(o,{years:t.years}),a=S(s,r);a&&(t.months=a);const c=l(r,{months:t.months}),g=L(s,c);g&&(t.days=g);const d=l(c,{days:t.days}),u=N(s,d);u&&(t.hours=u);const m=l(d,{hours:t.hours}),y=R(s,m);y&&(t.minutes=y);const M=l(m,{minutes:t.minutes}),h=Y(s,M);return h&&(t.seconds=h),t}function q(n){return new Date(n.getTime()-n.getTimezoneOffset()*60*1e3)}function B(){const e=-new Date().getTimezoneOffset()/60;return`${e>=0?"+":"-"}${Math.abs(e)}`}function G(n){let{years:e,months:o,weeks:s,days:t,hours:i,minutes:r,seconds:a}=$({start:0,end:n*1e3});return t??=0,i??=0,r??=0,a??=0,e!==void 0&&(t+=e*365),o!==void 0&&(t+=o*30),s!==void 0&&(t+=s*7),{days:t,hours:i,minutes:r,seconds:a}}export{l as a,E as d,G as f,B as g,$ as i,q as r}; 2//# sourceMappingURL=date-Ctz5HfUF.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.