"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4690],{7641:function(t,e,n){n.d(e,{i:function(){return a}});var r=n(99649);function a(t){let e=(0,r.Q)(t);return e.setHours(23,59,59,999),e}},14690:function(t,e,n){n.d(e,{Q:function(){return h}});var r=n(63497),a=n(99649);function i(t,e){let n=(0,a.Q)(t),r=(0,a.Q)(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var u=n(78198),o=n(81363),s=n(7641),f=n(27742),l=n(5654),c=n(55528),d=n(9340);function h(t,e){return function(t,e,n){var r,h,D,m,M,v;let Q,X,b;let H=(0,c.j)(),g=null!==(h=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:H.locale)&&void 0!==h?h:l._,x=i(t,e);if(isNaN(x))throw RangeError("Invalid time value");let T=Object.assign({},n,{addSuffix:null==n?void 0:n.addSuffix,comparison:x});x>0?(Q=(0,a.Q)(e),X=(0,a.Q)(t)):(Q=(0,a.Q)(t),X=(0,a.Q)(e));let _=(D=X,m=Q,(v=null==void 0?void 0:(void 0).roundingMethod,t=>{let e=(v?Math[v]:Math.trunc)(t);return 0===e?0:e})((+(0,a.Q)(D)-+(0,a.Q)(m))/1e3)),S=Math.round((_-((0,d.D)(X)-(0,d.D)(Q))/1e3)/60);if(S<2){if(null==n?void 0:n.includeSeconds){if(_<5)return g.formatDistance("lessThanXSeconds",5,T);if(_<10)return g.formatDistance("lessThanXSeconds",10,T);if(_<20)return g.formatDistance("lessThanXSeconds",20,T);if(_<40)return g.formatDistance("halfAMinute",0,T);else if(_<60)return g.formatDistance("lessThanXMinutes",1,T);else return g.formatDistance("xMinutes",1,T)}return 0===S?g.formatDistance("lessThanXMinutes",1,T):g.formatDistance("xMinutes",S,T)}if(S<45)return g.formatDistance("xMinutes",S,T);if(S<90)return g.formatDistance("aboutXHours",1,T);if(S<u.H_)return g.formatDistance("aboutXHours",Math.round(S/60),T);if(S<2520)return g.formatDistance("xDays",1,T);if(S<u.fH){let t=Math.round(S/u.H_);return g.formatDistance("xDays",t,T)}if(S<2*u.fH)return b=Math.round(S/u.fH),g.formatDistance("aboutXMonths",b,T);if((b=function(t,e){let n;let r=(0,a.Q)(t),u=(0,a.Q)(e),l=i(r,u),c=Math.abs((0,o.T)(r,u));if(c<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-l*c);let e=i(r,u)===-l;(function(t){let e=(0,a.Q)(t);return+(0,s.i)(e)==+(0,f.V)(e)})((0,a.Q)(t))&&1===c&&1===i(t,u)&&(e=!1),n=l*(c-Number(e))}return 0===n?0:n}(X,Q))<12){let t=Math.round(S/u.fH);return g.formatDistance("xMonths",t,T)}{let t=b%12,e=Math.trunc(b/12);return t<3?g.formatDistance("aboutXYears",e,T):t<9?g.formatDistance("overXYears",e,T):g.formatDistance("almostXYears",e+1,T)}}(t,(0,r.L)(t,Date.now()),e)}}}]);