1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3998],{33998:function(t,e,n){n.d(e,{Q:function(){return l}});var r=n(22964),a=n(5624);function u(t,e){let n=(0,a.Q)(t),r=(0,a.Q)(e),u=n.getTime()-r.getTime();return u<0?-1:u>0?1:u}var s=n(75065),o=n(83291),i=n(44345),f=n(34824);function l(t,e){return function(t,e,n){var r,l,c,h;let D,m,M;let d=(0,i.j)(),Q=n?.locale??d.locale??o._,g=u(t,e);if(isNaN(g))throw RangeError("Invalid time value");let X=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:g});g>0?(D=(0,a.Q)(e),m=(0,a.Q)(t)):(D=(0,a.Q)(t),m=(0,a.Q)(e));let H=(r=m,l=D,(h=void 0,t=>{let e=(h?Math[h]:Math.trunc)(t);return 0===e?0:e})((+(0,a.Q)(r)-+(0,a.Q)(l))/1e3)),b=Math.round((H-((0,f.D)(m)-(0,f.D)(D))/1e3)/60);if(b<2){if(n?.includeSeconds){if(H<5)return Q.formatDistance("lessThanXSeconds",5,X);if(H<10)return Q.formatDistance("lessThanXSeconds",10,X);if(H<20)return Q.formatDistance("lessThanXSeconds",20,X);if(H<40)return Q.formatDistance("halfAMinute",0,X);else if(H<60)return Q.formatDistance("lessThanXMinutes",1,X);else return Q.formatDistance("xMinutes",1,X)}return 0===b?Q.formatDistance("lessThanXMinutes",1,X):Q.formatDistance("xMinutes",b,X)}if(b<45)return Q.formatDistance("xMinutes",b,X);if(b<90)return Q.formatDistance("aboutXHours",1,X);if(b<s.H_)return Q.formatDistance("aboutXHours",Math.round(b/60),X);if(b<2520)return Q.formatDistance("xDays",1,X);if(b<s.fH){let t=Math.round(b/s.H_);return Q.formatDistance("xDays",t,X)}if(b<2*s.fH)return M=Math.round(b/s.fH),Q.formatDistance("aboutXMonths",M,X);if((M=function(t,e){let n;let r=(0,a.Q)(t),s=(0,a.Q)(e),o=u(r,s),i=Math.abs(function(t,e){let n=(0,a.Q)(t),r=(0,a.Q)(e);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,s));if(i<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*i);let e=u(r,s)===-o;(function(t){let e=(0,a.Q)(t);return+function(t){let e=(0,a.Q)(t);return e.setHours(23,59,59,999),e}(e)==+function(t){let e=(0,a.Q)(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}(e)})((0,a.Q)(t))&&1===i&&1===u(t,s)&&(e=!1),n=o*(i-Number(e))}return 0===n?0:n}(m,D))<12){let t=Math.round(b/s.fH);return Q.formatDistance("xMonths",t,X)}{let t=M%12,e=Math.trunc(M/12);return t<3?Q.formatDistance("aboutXYears",e,X):t<9?Q.formatDistance("overXYears",e,X):Q.formatDistance("almostXYears",e+1,X)}}(t,(0,r.L)(t,Date.now()),e)}}}]);
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.