1import{a as w}from"/build/_shared/chunk-KORNKLM7.js";import{a as X,b as T}from"/build/_shared/chunk-UCVGISZR.js";import{a as y}from"/build/_shared/chunk-RGNJNZAY.js";import{a as S,f as b}from"/build/_shared/chunk-YCC2OL4I.js";import{e as h,f as g,g as O,h as i,i as I,j as M}from"/build/_shared/chunk-VUMSG2CF.js";function N(o){return O(o,Date.now())}function D(o,n){let r=+i(o)-+i(n);return r<0?-1:r>0?1:r}function _(o,n){let r=i(o,n?.in);return r.setHours(23,59,59,999),r}function A(o,n){let r=i(o,n?.in);return+_(r,n)==+T(r,n)}function L(o,n,r){let[c,t,m]=M(r?.in,o,o,n),f=D(t,m),e=Math.abs(X(t,m));if(e<1)return 0;t.getMonth()===1&&t.getDate()>27&&t.setDate(30),t.setMonth(t.getMonth()-f*e);let u=D(t,m)===-f;A(c)&&e===1&&D(c,m)===1&&(u=!1);let l=f*(e-+u);return l===0?0:l}function z(o,n,r){let c=w(o,n)/1e3;return y(r?.roundingMethod)(c)}function Y(o,n,r){let c=S(),t=r?.locale??c.locale??b,m=2520,f=D(o,n);if(isNaN(f))throw new RangeError("Invalid time value");let e=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:f}),[u,l]=M(r?.in,...f>0?[n,o]:[o,n]),d=z(l,u),v=(I(l)-I(u))/1e3,s=Math.round((d-v)/60),p;if(s<2)return r?.includeSeconds?d<5?t.formatDistance("lessThanXSeconds",5,e):d<10?t.formatDistance("lessThanXSeconds",10,e):d<20?t.formatDistance("lessThanXSeconds",20,e):d<40?t.formatDistance("halfAMinute",0,e):d<60?t.formatDistance("lessThanXMinutes",1,e):t.formatDistance("xMinutes",1,e):s===0?t.formatDistance("lessThanXMinutes",1,e):t.formatDistance("xMinutes",s,e);if(s<45)return t.formatDistance("xMinutes",s,e);if(s<90)return t.formatDistance("aboutXHours",1,e);if(s<g){let a=Math.round(s/60);return t.formatDistance("aboutXHours",a,e)}else{if(s<m)return t.formatDistance("xDays",1,e);if(s<h){let a=Math.round(s/g);return t.formatDistance("xDays",a,e)}else if(s<h*2)return p=Math.round(s/h),t.formatDistance("aboutXMonths",p,e)}if(p=L(l,u),p<12){let a=Math.round(s/h);return t.formatDistance("xMonths",a,e)}else{let a=p%12,x=Math.trunc(p/12);return a<3?t.formatDistance("aboutXYears",x,e):a<9?t.formatDistance("overXYears",x,e):t.formatDistance("almostXYears",x+1,e)}}function mt(o,n){return Y(o,N(o),n)}export{mt as a};
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.