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