
    g	                     b    d dl mZ 	 d dlZdZdZd Zd Zd Z G d	 d
      Z	y# e$ r dZY w xY w)    )GeocoderParseErrorNTF)Timezonec                  &    t         st        d      y )Nzpytz must be installed in order to locate timezones. If geopy has been installed with `pip`, then pytz can be installed with `pip install "geopy[timezone]"`.)pytz_availableImportError     N/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/geopy/timezone.pyensure_pytz_is_installedr      s    >
 	
 r	   c                     t                	 t        j                  |       }t        ||      S # t        j                  $ r t	        d| z        t
        $ r t	        d|z        w xY w)NzJpytz could not parse the timezone identifier (%s) returned by the service.z4geopy could not find a timezone in this response: %s)r   pytztimezoneUnknownTimeZoneErrorr   KeyErrorr   )timezone_namerawpytz_timezones      r
   from_timezone_namer      s}    
m4 M3'' $$ 
 ')67
 	
  
 B
 	

s	   - 8A%c                 ^    t                t        j                  | dz        }t        ||      S )N<   )r   r   FixedOffsetr   )gmt_offset_hoursr   r   s      r
   from_fixed_gmt_offsetr   )   s+    $$%5%:;MM3''r	   c                   ^    e Zd ZdZdZd Zed        Zed        Zd Z	d Z
d Zd	 Zd
 Zd Zy)r   z
    Contains a parsed response for a timezone request, which is
    implemented in few geocoders which provide such lookups.
    _pytz_timezone_rawc                      || _         || _        y Nr   )selfr   r   s      r
   __init__zTimezone.__init__7   s    +	r	   c                     | j                   S )zZ
        pytz timezone instance.

        :rtype: :class:`pytz.tzinfo.BaseTzInfo`
        )r   r    s    r
   r   zTimezone.pytz_timezone;   s     """r	   c                     | j                   S )z
        Timezone's raw, unparsed geocoder response. For details on this,
        consult the service's documentation.

        :rtype: dict
        )r   r#   s    r
   r   zTimezone.rawD   s     yyr	   c                 ,    t        | j                        S r   )strr   r#   s    r
   __str__zTimezone.__str__N   s    4&&''r	   c                 2    dt        | j                        z  S )NzTimezone(%s))reprr   r#   s    r
   __repr__zTimezone.__repr__Q   s    T%7%7 888r	   c                 2    | j                   | j                  fS r   r   r#   s    r
   __getstate__zTimezone.__getstate__T   s    ""DII--r	   c                 "    |\  | _         | _        y r   r   )r    states     r
   __setstate__zTimezone.__setstate__W   s    ).&TYr	   c                     t        |t              xr4 | j                  |j                  k(  xr | j                  |j                  k(  S r   )
isinstancer   r   r   r    others     r
   __eq__zTimezone.__eq__Z   s?    uh' "5#7#77"HH		!	
r	   c                     | |k(   S r   r   r2   s     r
   __ne__zTimezone.__ne__a   s    EM""r	   N)__name__
__module____qualname____doc__	__slots__r!   propertyr   r   r'   r*   r,   r/   r4   r6   r   r	   r
   r   r   /   sY    
 +I # #  (9./
#r	   r   )
	geopy.excr   r   r   r   __all__r   r   r   r   r   r	   r
   <module>r?      sL    (N


("(3# 3#S  Ns   $ ..