Ë
    Ã?Æiÿ  ã                  óF   — d Z ddlmZ ddl­ ddlmZmZ d	d„Zd	d„Zd
d„Z	y)uè   VSK number (VirÃ°isaukaskattsnÃºmer, Icelandic VAT number).

The Icelandic VAT number is five or six digits.

>>> validate('IS 00621')
'00621'
>>> validate('IS 0062199')
Traceback (most recent call last):
    ...
InvalidLength: ...
é    )Úannotations)Ú*)ÚcleanÚisdigitsc                ó‚   — t        | d«      j                  «       j                  «       } | j                  d«      r| dd } | S )zˆConvert the number to the minimal representation. This strips the
    number of any valid separators and removes surrounding whitespace.ú ÚISé   N)r   ÚupperÚstripÚ
startswith©Únumbers    úU/var/www/html/myprovider/mon_projet_qr/lib/python3.12/site-packages/stdnum/is_/vsk.pyÚcompactr   '   s@   € ô �6˜3Ó×%Ñ%Ó'×-Ñ-Ó/€FØ×Ñ˜ÔØ˜˜�ˆØ€Mó    c                ót   — t        | «      } t        | «      s
t        «       ‚t        | «      dvr
t	        «       ‚| S )ú^Check if the number provided is a valid VAT number. This checks the
    length and formatting.)é   é   )r   r   ÚInvalidFormatÚlenÚInvalidLengthr   s    r   Úvalidater   0   s6   € ô �V‹_€FÜ�FÔÜ‹oÐÜ
ˆ6ƒ{˜&Ñ Ü‹oÐØ€Mr   c                óJ   — 	 t        t        | «      «      S # t        $ r Y yw xY w)r   F)Úboolr   ÚValidationErrorr   s    r   Úis_validr   ;   s)   € ðÜ”H˜VÓ$Ó%Ð%øÜò Ùðús   ‚ –	"¡"N)r   ÚstrÚreturnr   )r   r   r    r   )
Ú__doc__Ú
__future__r   Ústdnum.exceptionsÚstdnum.utilr   r   r   r   r   © r   r   ú<module>r&      s$   ðñ*
õ #ä ß 'óóôr   