0
  $   ˆÉÈÏ646Ça–ßi~” T¾R( 	Å õÆZ¸ËjbÑ¿Í †    ‹      ÕWQoÚ0~ï¯ðü°·ä°UkC¦ŽTZKQË4MÓLì«ÁŽì£´ûõs0iÙTTÐ¶Ž¾ä.Égß÷Ý�-;~•^ôÇ_G§äãøüŒŒ>8ô	 ¾tú é8õ?ºa+8RBÄê`±X„‹N¨ÍÆ—Pà¬ì‚E#39ršÄõ·ä€Ä…`ÜY£ÄR$ÅÅ-Ñ9=G+¹h7p=³`…â¹,EÈÅL‡…3­+€ëÌÖ–º•Ñ`aÜü�eFk{ga¦ù¼PÊ	Cƒì¨ÀŠK<Ñü®¦ý:.ê2l²dU»&‰± 7¬”SÕ£¨+šÄr6%Öd=
2ÓÊÂ¤dê:œÊœVb�~ô/¾;œ‹Y�NbF\ð¼Gß÷{Ãã‹^J“!›‰Øã˜s‡9¡É³HC™KÁ7‚¯<øJþØ<aê1©°™‘J­ à$®KÍti+æ´¾q

³ŽòþT6XöK2F'—§Ãq:¸ô)áõìþ}qi2bF($©4"CmîVâ=“×jb«ãæ•¬¤9-�&„äQäù˜«k¥j=%.Ý�&#ÓFXWHš4Þ:Õß¸µ[í·AÔZi½;êt	Ù t[Ä§?‘ë’³®aSA‹%Òº´7ÞßÐðÌ…�J¢/DãíK!v�µ»/2¶ï'¥QÔÝäí¾ôÒöü+fÜ^�~I¬½l­$:Ü—Uá™ra½}y­dÝö/ë!4¹w÷¥¡v(ƒvã:ÈÑw:îý})ÇB�Éº�–æÒŸ‹Qó÷öIQÐi‘èð¨»y=?³€û.z¶Úòœ	«xËë@þÆòF�7    8   ˆl–Ým_Jµ2Ž¥2 ApMÜjbÑ¿�þZ�§–nQ42…©@þÒ„ât_ÑÐ¿Î ?÷     '''Base classes and helpers for building zone specific tzinfo classes'''

from datetime import datetime, timedelta, tzinfo
from bisect import bisect_right
try:
    set
except NameError:
    from sets import Set as set

import pytz
from pytz.exceptions import AmbiguousTimeError, NonExistentTimeError

__all__ = []

_timedelta_cache = {}


def memorized_timedelta(seconds):
    '''Create only one instance of each distinct timedelta'''
    try:
        return _timedelta_cache[seconds]
    except KeyError:
        delta = timedelta(seconds=seconds)
        _timedelta_cache[seconds] = delta
        return delta

_epoch = datetime.utcfromtimestamp(0)
_datetime_cache = {0: _epoch}


def memorized_datetime(seconds):
    '''Create only one instance of each distinct datetime'''
    try:
        return _datetime_cache[seconds]
    except KeyError:
        # NB. We can't just do datetime.utcfromtimestamp(seconds) as this
        # fails with negative values under Windows (Bug #90096)
        dt = _epoch + timedelta(seconds=seconds)
        _datetime_cache[seconds] = dt
        return dt

_ttinfo_cache = {}


def memorized_ttinfo(*args):
    '''Create only one instance of each distinct tuple'''
    try:
        return _ttinfo_cache[args]
    except KeyError:
        ttinfo = (
            memorized_timedelta(args[0]),
            memorized_timedelta(args[1]),
            args[2]
        )
        _ttinfo_cache[args] = ttinfo
        return ttinfo

_notime = memorized_timedelta(0)


def _to_seconds(td):
    '''Convert a timedelta to seconds'''
    return td.seconds + td.days * 24 * 60 * 60


class BaseTzInfo(tzinfo):
    # Overridden in subclass
    _utcoffset = None
    _tzname = None
    zone = None

    def __str__(self):
        return self.zone


class StaticTzInfo(BaseTzInfo):
    '''A timezone that has a constant offset from UTC

    These timezones are rare, as most locations have changed their
    offset at some point in their history
    '''
    def fromutc(self, dt):
        '''See datetime.tzinfo.fromutc'''
        if dt.tzinfo is not None and dt.tzinfo is not self:
            raise ValueError('fromutc: dt.tzinfo is not self')
        return (dt + self._utcoffset).replace(tzinfo=self)

    def utcoffset(self, dt, is_dst=None):
        '''See datetime.tzinfo.utcoffset

        is_dst is ignored for StaticTzInfo, and exists only to
        retain compatibility with DstTzInfo.
        '''
        return self._utcoffset

    def dst(self, dt, is_dst=None):
        '''See datetime.tzinfo.dst

        is_dst is ignored for StaticTzInfo, and exists only to
        retain compatibility with DstTzInfo.
        '''
        return _notime

    def tzname(self, dt, is_dst=None):
        '''See datetime.tzinfo.tzname

        is_dst is ignored for StaticTzInfo, and exists only to
        retain compatibility with DstTzInfo.
        '''
        return self._tzname

    def localize(self, dt, is_dst=False):
        '''Convert naive time to local time'''
        if dt.tzinfo is not None:
            raise ValueError('Not naive datetime (tzinfo is already set)')
        return dt.replace(tzinfo=self)

    def normalize(self, dt, is_dst=False):
        '''Correct the timezone information on the given datetime.

        This is normally a no-op, as StaticTzInfo timezones never have