
    h2              
           S SK r S SKJr  S SKJr  S SKJrJr  \" SSS5      \" SS	S5      \" S
SS5      \" SSS5      \" SSS5      \" SSS5      S.r\	" \R                  5       5      r/ SQrSrSS jrSS jrg)    N)avoid_wrapping)is_aware)gettextngettext_lazyz%(num)d yearz%(num)d yearsnumz%(num)d monthz%(num)d monthsz%(num)d weekz%(num)d weeksz%(num)d dayz%(num)d daysz%(num)d hourz%(num)d hoursz%(num)d minutez%(num)d minutes)yearmonthweekdayhourminute)i:	 iQ i  <   )      r      r   r   r   r   r   r   r   r   c           
         Uc  [         nUS::  a  [        S5      e[        U [        R                  5      (       d6  [        R                  " U R                  U R
                  U R                  5      n U(       aU  [        U[        R                  5      (       d6  [        R                  " UR                  UR
                  UR                  5      nU(       d<  [        R                  R                  [        U 5      (       a  U R                  OS5      nO;[        U5      (       a+  [        U 5      (       a  UR                  U R                  5      nU(       a  XpX-
  nUR                  S-  S-  S-  UR                  -   nUS::  a  [        US   SS0-  5      $ UR                  U R                  -
  S-  UR
                  U R
                  -
  -   nU R                  UR                  :  d<  U R                  UR                  :X  a'  U R                  5       UR                  5       :  a  US	-  n[        US5      u  pU(       d  U	(       a  U R                  U-   n
U R
                  U	-   nUS:  a
  US-  nU
S	-  n
[        R                  " U
U[!        ["        US	-
     U R                  5      U R$                  U R&                  U R(                  U R                  S
9nOU nX-
  R+                  5       nX/n[,         H(  n[/        X-  5      nUR1                  U5        XU-  -  nM*     Sn[3        U5       H  u  nnUS:w  d  M    O   [        US   SS0-  5      $ / nSnU[5        [6        5      :  ab  UU:  a\  UU   nUS:X  a  OP[6        U   nUR1                  [        UU   SU0-  5      5        US	-  nUS	-  nU[5        [6        5      :  a  UU:  a  M\  [9        S5      R;                  U5      $ )a  
Take two datetime objects and return the time between d and now as a nicely
formatted string, e.g. "10 minutes". If d occurs after now, return
"0 minutes".

Units used are years, months, weeks, days, hours, and minutes.
Seconds and microseconds are ignored.

The algorithm takes into account the varying duration of years and months.
There is exactly "1 year, 1 month" between 2013/02/10 and 2014/03/10,
but also between 2007/08/10 and 2008/09/10 despite the delta being 393 days
in the former case and 397 in the latter.

Up to `depth` adjacent units will be displayed.  For example,
"2 weeks, 3 days" and "1 year, 3 months" are possible outputs, but
"2 weeks, 3 hours" and "1 year, 5 days" are not.

`time_strings` is an optional dict of strings to replace the default
TIME_STRINGS dict.

`depth` is an optional integer to control the number of adjacent time
units returned.

Originally adapted from
https://web.archive.org/web/20060617175230/http://blog.natbat.co.uk/archive/2003/Jun/14/time_since
Modified to improve results for years and months.
Nr   zdepth must be greater than 0.   r   r   r         )tzinfoz, )TIME_STRINGS
ValueError
isinstancedatetimer   r	   r   nowr   r   
astimezonedayssecondsr   timedivmodminMONTHS_DAYSr   r   secondtotal_secondsTIME_CHUNKSintappend	enumeratelenTIME_STRINGS_KEYSr   join)dr   reversedtime_stringsdepthdeltasincetotal_monthsyearsmonths
pivot_yearpivot_monthpivotremaining_timepartialschunkcountivalueresultcurrent_depthnames                         H/var/www/html/env/lib/python3.13/site-packages/django/utils/timesince.py	timesincerB      sI   8 #z899a**++affaggquu5
:c8#4#455#))SWW= ##AHHF	#8A;;nnQXX&3GE JJOb 2%5Ezl84qzABB HHqvv%+syy177/BCLuusww155CGG+388:0E<,ME
 VVe^
gg&2K!OJ!!K!O,aee4FFHHHH88
 k002NHN+,%-'  	
Ah'5A: ( l84qzABBFM
c#$
$)>A: #n\$%75%.%HIJ	Q c#$
$)> 4=f%%    c                     [        XSX#S9$ )zN
Like timesince, but return a string measuring the time until the given time.
T)r-   r.   r/   )rB   )r,   r   r.   r/   s       rA   	timeuntilrE      s     QdSSrC   )NFN   )NNrF   )r   django.utils.htmlr   django.utils.timezoner   django.utils.translationr   r   r   listkeysr*   r%   r"   rB   rE    rC   rA   <module>rM      s     , * ; ./5A?,<eD./5A>./5A,.?G **,-  ?k&\TrC   