§
    BP„j•„  ã                   óö  — d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm	Z	 ddlm
Z
 ddlmZ ddlmZ ddlZddlZddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ 	 ddlmZ n# e$ r dZY nw xY w ej        e¦  «        ZdZdZe€dZdZ dZ!dZ"dZ#dZ$n*ej        Zej         Z ej!        Z!ej%        Z"ej&        Z#ej$        Z$d„ Z' G d„ dej(        ¦  «        Z)d„ Z*d„ Z+ G d„ dej,        ¦  «        Z- G d„ dej.        ¦  «        Z/ G d„ dej.        ¦  «        Z0 G d„ dej1        ¦  «        Z2 G d„ dej(        ¦  «        Z3d„ Z4d „ Z5 G d!„ d"e6¦  «        Z7 G d#„ d$e7¦  «        Z8 ej9        d%¦  «        	 d'd&„¦   «         Z:dS )(zgUtilities for Google App Engine

Utilities for making it easier to use OAuth 2.0 on Google App Engine.
é    N)Úapp_identity)Úmemcache)Úusers)Údb)Úlogin_required)Ú_helpers)Úclient)Úclientsecrets)Ú	transport)Úxsrfutil)Ú_appengine_ndbzoauth2client#nsÚxsrf_secret_keyc                 óV   — t          j        | d¬¦  «                             dd¦  «        S )z’Escape text to make it safe to display.

    Args:
        s: string, The text to escape.

    Returns:
        The escaped text as a string.
    é   )Úquoteú'z&#39;)ÚcgiÚescapeÚreplace)Úss    úc/root/disk_3tb/conda_envs/Huy-visual/lib/python3.11/site-packages/oauth2client/contrib/appengine.pyÚ
_safe_htmlr   F   s)   € õ Œ:�a˜qÐ!Ñ!Ô!×)Ò)¨#¨wÑ7Ô7Ð7ó    c                   ó0   — e Zd ZdZ ej        ¦   «         ZdS )ÚSiteXsrfSecretKeyz…Storage for the sites XSRF secret key.

    There will only be one instance stored of this model, the one used for the
    site.
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚStringPropertyÚsecret© r   r   r   r   R   s*   € € € € € ðð ð
 ˆRÔÑ Ô €F€F€Fr   r   c                  óP   — t          j        d¦  «                             d¦  «        S )z!Returns a random XSRF secret key.é   Úhex)ÚosÚurandomÚencoder"   r   r   Ú_generate_new_xsrf_secret_keyr)   [   s   € åŒ:�b‰>Œ>× Ò  Ñ'Ô'Ð'r   c                  óF  — t          j        t          t          ¬¦  «        } | sqt                               d¬¦  «        }|j        s't          ¦   «         |_        |                     ¦   «          |j        } t          j	        t          | t          ¬¦  «         t          | ¦  «        S )zÆReturn the secret key for use for XSRF protection.

    If the Site entity does not have a secret key, this method will also create
    one and persist it.

    Returns:
        The secret key.
    )Ú	namespaceÚsite)Úkey_name)r   ÚgetÚXSRF_MEMCACHE_IDÚOAUTH2CLIENT_NAMESPACEr   Úget_or_insertr!   r)   ÚputÚaddÚstr)r!   Úmodels     r   r   r   `   s’   € õ Œ\Õ*Õ6LÐMÑMÔM€FØð 7å!×/Ò/¸Ð/Ñ@Ô@ˆØŒ|ð 	Ý8Ñ:Ô:ˆEŒLØ�IŠI‰KŒKˆKØ”ˆÝŒÕ% vÝ5ð	7ñ 	7ô 	7ð 	7õ ˆv‰;Œ;Ðr   c                   ó¨   ‡ — e Zd ZdZ ej        d¦  «        ˆ fd„¦   «         Zed„ ¦   «         Zd„ Z	e
d„ ¦   «         Zd„ Zd„ Zd	„ Ze
d
„ ¦   «         Zˆ xZS )ÚAppAssertionCredentialsa  Credentials object for App Engine Assertion Grants

    This object will allow an App Engine application to identify itself to
    Google and other OAuth 2.0 servers that can verify assertions. It can be
    used for the purpose of accessing data stored under an account assigned to
    the App Engine application itself.

    This credential does not require a flow to instantiate because it
    represents a two legged flow, and therefore has all of the required
    information to generate and refresh its own access tokens.
    é   c                 óÜ   •— t          j        |¦  «        | _        || _        |                     dd¦  «        | _        d| _        t          t          | ¦  «         	                    d¦  «         dS )a¹  Constructor for AppAssertionCredentials

        Args:
            scope: string or iterable of strings, scope(s) of the credentials
                   being requested.
            **kwargs: optional keyword args, including:
            service_account_id: service account id of the application. If None
                                or unspecified, the default service account for
                                the app is used.
        Úservice_account_idN)
r   Úscopes_to_stringÚscopeÚ_kwargsr.   r:   Ú_service_account_emailÚsuperr7   Ú__init__)Úselfr<   ÚkwargsÚ	__class__s      €r   r@   z AppAssertionCredentials.__init__„   sd   ø€ õ Ô.¨uÑ5Ô5ˆŒ
ØˆŒØ"(§*¢*Ð-AÀ4Ñ"HÔ"HˆÔØ&*ˆÔ#õ 	Õ% tÑ,Ô,×5Ò5°dÑ;Ô;Ð;Ð;Ð;r   c                 óT   — t          j        |¦  «        }t          |d         ¦  «        S )Nr<   )ÚjsonÚloadsr7   )ÚclsÚ	json_dataÚdatas      r   Ú	from_jsonz!AppAssertionCredentials.from_json™   s#   € åŒz˜)Ñ$Ô$ˆÝ& t¨G¤}Ñ5Ô5Ð5r   c                 óö   — 	 | j                              ¦   «         }t          j        || j        ¬¦  «        \  }}n8# t          j        $ r&}t          j        t          |¦  «        ¦  «        ‚d}~ww xY w|| _	        dS )aW  Refreshes the access token.

        Since the underlying App Engine app_identity implementation does its
        own caching we can skip all the storage hoops and just to a refresh
        using the API.

        Args:
            http: unused HTTP object

        Raises:
            AccessTokenRefreshError: When the refresh fails.
        )r:   N)
r<   Úsplitr   Úget_access_tokenr:   ÚErrorr	   ÚAccessTokenRefreshErrorr4   Úaccess_token)rA   ÚhttpÚscopesÚtokenÚ_Úes         r   Ú_refreshz AppAssertionCredentials._refreshž   s‰   € ð	9Ø”Z×%Ò%Ñ'Ô'ˆFÝ%Ô6Ø¨4Ô+BðDñ Dô D‰JˆU�A�AøåÔ!ð 	9ð 	9ð 	9ÝÔ0µ°Q±´Ñ8Ô8Ð8øøøøð	9øøøà!ˆÔÐÐs   ‚7: ºA/Á	!A*Á*A/c                 ó    — t          d¦  «        ‚)Nz3Cannot serialize credentials for Google App Engine.)ÚNotImplementedError©rA   s    r   Úserialization_dataz*AppAssertionCredentials.serialization_data³   s   € å!ð #;ñ <ô <ð 	<r   c                 ó   — | j          S ©N)r<   rY   s    r   Úcreate_scoped_requiredz.AppAssertionCredentials.create_scoped_required¸   s   € Ø”:ˆ~Ðr   c                 ó&   — t          |fi | j        ¤ŽS r\   )r7   r=   )rA   rR   s     r   Úcreate_scopedz%AppAssertionCredentials.create_scoped»   s   € Ý& vÐ>Ð>°´Ð>Ð>Ð>r   c                 ó*   — t          j        |¦  «        S )aU  Cryptographically sign a blob (of bytes).

        Implements abstract method
        :meth:`oauth2client.client.AssertionCredentials.sign_blob`.

        Args:
            blob: bytes, Message to be signed.

        Returns:
            tuple, A pair of the private key ID used to sign the blob and
            the signed contents.
        )r   Ú	sign_blob)rA   Úblobs     r   ra   z!AppAssertionCredentials.sign_blob¾   s   € õ Ô% dÑ+Ô+Ð+r   c                 óN   — | j         €t          j        ¦   «         | _         | j         S )zªGet the email for the current service account.

        Returns:
            string, The email associated with the Google App Engine
            service account.
        )r>   r   Úget_service_account_namerY   s    r   Úservice_account_emailz-AppAssertionCredentials.service_account_emailÍ   s*   € ð Ô&Ð.åÔ5Ñ7Ô7ð Ô'àÔ*Ð*r   )r   r   r   r   r   Ú
positionalr@   ÚclassmethodrJ   rV   ÚpropertyrZ   r]   r_   ra   re   Ú__classcell__©rC   s   @r   r7   r7   w   sé   ø€ € € € € ð
ð 
ð €XÔ˜ÑÔð<ð <ð <ð <ñ Ôð<ð( ð6ð 6ñ „[ð6ð"ð "ð "ð* ð<ð <ñ „Xð<ðð ð ð?ð ?ð ?ð,ð ,ð ,ð ð
+ð 
+ñ „Xð
+ð 
+ð 
+ð 
+ð 
+r   r7   c                   óF   ‡ — e Zd ZdZej        Zˆ fd„Zd„ Zˆ fd„Z	d„ Z
ˆ xZS )ÚFlowPropertyz…App Engine datastore Property for Flow.

    Utility property that allows easy storage and retrieval of an
    oauth2client.Flow
    c                 ó    •— t          t          | ¦  «                             |¦  «        }t          j        t          j        |¦  «        ¦  «        S r\   )r?   rl   Úget_value_for_datastorer   ÚBlobÚpickleÚdumps)rA   Úmodel_instanceÚflowrC   s      €r   rn   z$FlowProperty.get_value_for_datastoreæ   s?   ø€ Ý•\ 4Ñ(Ô(×@Ò@Øñô ˆåŒw•v”| DÑ)Ô)Ñ*Ô*Ð*r   c                 ó2   — |€d S t          j        |¦  «        S r\   )rp   rF   ©rA   Úvalues     r   Úmake_value_from_datastorez&FlowProperty.make_value_from_datastoreì   s   € Øˆ=Ø�4ÝŒ|˜EÑ"Ô"Ð"r   c                 óæ   •— |�Gt          |t          j        ¦  «        s-t          j        d                     | j        |¦  «        ¦  «        ‚t          t          | ¦  «         	                    |¦  «        S )NzDProperty {0} must be convertible to a FlowThreeLegged instance ({1}))
Ú
isinstancer	   ÚFlowr   ÚBadValueErrorÚformatÚnamer?   rl   Úvalidate©rA   rv   rC   s     €r   r~   zFlowProperty.validateñ   sh   ø€ ØÐ¥Z°µv´{Ñ%CÔ%CÐÝÔ"ð6ß6<²f¸T¼YÈÑ6NÔ6NñPô Pð Põ •\ 4Ñ(Ô(×1Ò1°%Ñ8Ô8Ð8r   c                 ó   — | S r\   r"   ru   s     r   ÚemptyzFlowProperty.emptyø   s
   € ØˆyÐr   )r   r   r   r   r	   rz   Ú	data_typern   rw   r~   r�   ri   rj   s   @r   rl   rl   Û   s‚   ø€ € € € € ðð ð ”€Ið+ð +ð +ð +ð +ð#ð #ð #ð
9ð 9ð 9ð 9ð 9ðð ð ð ð ð ð r   rl   c                   ó@   ‡ — e Zd ZdZej        Zˆ fd„Zd„ Zˆ fd„Z	ˆ xZ
S )ÚCredentialsPropertyz�App Engine datastore Property for Credentials.

    Utility property that allows easy storage and retrieval of
    oauth2client.Credentials
    c                 ó  •— t                                dt          t          |¦  «        ¦  «        z   ¦  «         t	          t
          | ¦  «                             |¦  «        }|€d}n|                     ¦   «         }t          j	        |¦  «        S )Nzget: Got type Ú )
ÚloggerÚinfor4   Útyper?   r„   rn   Úto_jsonr   ro   )rA   rr   ÚcredrC   s      €r   rn   z+CredentialsProperty.get_value_for_datastore  su   ø€ Ý�ŠÐ$¥s­4°Ñ+?Ô+?Ñ'@Ô'@Ñ@ÑAÔAÐAÝÕ(¨$Ñ/Ô/×GÒGØñô ˆàˆ<ØˆDˆDà—<’<‘>”>ˆDÝŒw�t‰}Œ}Ðr   c                 ó  — t                                dt          t          |¦  «        ¦  «        z   ¦  «         |€d S t	          |¦  «        dk    rd S 	 t
          j                             |¦  «        }n# t          $ r d }Y nw xY w|S )Nzmake: Got type r   )	r‡   rˆ   r4   r‰   Úlenr	   ÚCredentialsÚnew_from_jsonÚ
ValueError)rA   rv   Úcredentialss      r   rw   z-CredentialsProperty.make_value_from_datastore  s�   € Ý�ŠÐ%­­D°©K¬KÑ(8Ô(8Ñ8Ñ9Ô9Ð9Øˆ=Ø�4Ýˆu‰:Œ:˜Š?ˆ?Ø�4ð	Ý Ô,×:Ò:¸5ÑAÔAˆKˆKøÝð 	ð 	ð 	ØˆKˆKˆKð	øøøàÐs   ÁA2 Á2BÂ Bc                 óX  •— t          t          | ¦  «                             |¦  «        }t                               dt          t          |¦  «        ¦  «        z   ¦  «         |�Gt          |t          j	        ¦  «        s-t          j        d                     | j        |¦  «        ¦  «        ‚|S )Nzvalidate: Got type z@Property {0} must be convertible to a Credentials instance ({1}))r?   r„   r~   r‡   rˆ   r4   r‰   ry   r	   rŽ   r   r{   r|   r}   r   s     €r   r~   zCredentialsProperty.validate  s”   ø€ ÝÕ)¨4Ñ0Ô0×9Ò9¸%Ñ@Ô@ˆÝ�ŠÐ)­Cµ°U±´Ñ,<Ô,<Ñ<Ñ=Ô=Ð=ØÐ¥Z°µvÔ7IÑ%JÔ%JÐÝÔ"ð2ß28²&¸¼ÀEÑ2JÔ2JñLô Lð Lð ˆr   )r   r   r   r   r	   rŽ   r‚   rn   rw   r~   ri   rj   s   @r   r„   r„   ü   st   ø€ € € € € ðð ð Ô"€Iðð ð ð ð ð
ð 
ð 
ðð ð ð ð ð ð ð ð r   r„   c                   óþ   ‡ — e Zd ZdZ ej        d¦  «        dˆ fd„	¦   «         Zd„ Zd„ Zd„ Z	 e
j        d¬	¦  «        d
„ ¦   «         Z e
j        d¬	¦  «        d„ ¦   «         Z e
j        d¬	¦  «        d„ ¦   «         Zˆ xZS )ÚStorageByKeyNamea  Store and retrieve a credential to and from the App Engine datastore.

    This Storage helper presumes the Credentials have been stored as a
    CredentialsProperty or CredentialsNDBProperty on a datastore model class,
    and that entities are stored by key_name.
    é   Nc                 óÜ   •— t          t          | ¦  «                             ¦   «          |€%|€t          d¦  «        ‚|                     ¦   «         }|| _        || _        || _        || _        dS )aà  Constructor for Storage.

        Args:
            model: db.Model or ndb.Model, model class
            key_name: string, key name for the entity that has the credentials
            property_name: string, name of the property that is a
                           CredentialsProperty or CredentialsNDBProperty.
            cache: memcache, a write-through cache to put in front of the
                   datastore. If the model you are using is an NDB model, using
                   a cache will be redundant since the model uses an instance
                   cache and memcache for you.
            user: users.User object, optional. Can be used to grab user ID as a
                  key_name if no key name is specified.
        Nz1StorageByKeyName called with no key name or user.)	r?   r”   r@   r�   Úuser_idÚ_modelÚ	_key_nameÚ_property_nameÚ_cache)rA   r5   r-   Úproperty_nameÚcacheÚuserrC   s         €r   r@   zStorageByKeyName.__init__0  sr   ø€ õ  	Õ Ñ%Ô%×.Ò.Ñ0Ô0Ð0àÐØˆ|Ý ð "5ñ 6ô 6ð 6à—|’|‘~”~ˆHàˆŒØ!ˆŒØ+ˆÔØˆŒˆˆr   c                 ó  — t          | j        t          ¦  «        rDt          �t	          | j        t          ¦  «        rdS t	          | j        t
          j        ¦  «        rdS t          d                     | j        ¦  «        ¦  «        ‚)z¦Determine whether the model of the instance is an NDB model.

        Returns:
            Boolean indicating whether or not the model is an NDB or DB model.
        NTFz(Model class not an NDB or DB model: {0}.)	ry   r˜   r‰   Ú
_NDB_MODELÚ
issubclassr   ÚModelÚ	TypeErrorr|   rY   s    r   Ú_is_ndbzStorageByKeyName._is_ndbM  sw   € õ �d”k¥4Ñ(Ô(ð 	ÝÐ%­*°T´[Å*Ñ*MÔ*MÐ%Ø�tÝ˜DœK­¬Ñ2Ô2ð Ø�uåØ6×=Ò=¸d¼kÑJÔJñLô Lð 	Lr   c                 ó¦   — |                       ¦   «         r| j                             | j        ¦  «        S | j                             | j        ¦  «        S )a  Retrieve entity from datastore.

        Uses a different model method for db or ndb models.

        Returns:
            Instance of the model corresponding to the current storage object
            and stored using the key name of the storage object.
        )r¤   r˜   Ú	get_by_idr™   Úget_by_key_namerY   s    r   Ú_get_entityzStorageByKeyName._get_entity_  sD   € ð �<Š<‰>Œ>ð 	?Ø”;×(Ò(¨¬Ñ8Ô8Ð8à”;×.Ò.¨t¬~Ñ>Ô>Ð>r   c                 ó*  — |                       ¦   «         r.t          | j        | j        ¦  «                             ¦   «          dS t
          j                             | j                             ¦   «         | j        ¦  «        }t          j        |¦  «         dS )z¥Delete entity from datastore.

        Attempts to delete using the key_name stored on the object, whether or
        not the given key is in the datastore.
        N)	r¤   Ú_NDB_KEYr˜   r™   Údeleter   ÚKeyÚ	from_pathÚkind)rA   Ú
entity_keys     r   Ú_delete_entityzStorageByKeyName._delete_entitym  sw   € ð �<Š<‰>Œ>ð 	"Ý�T”[ $¤.Ñ1Ô1×8Ò8Ñ:Ô:Ð:Ð:Ð:åœ×)Ò)¨$¬+×*:Ò*:Ñ*<Ô*<¸d¼nÑMÔMˆJÝŒI�jÑ!Ô!Ð!Ð!Ð!r   T)Úallow_existingc                 ó²  — d}| j         r@| j                              | j        ¦  «        }|rt          j                             |¦  «        }|€d|                      ¦   «         }|�Nt          || j        ¦  «        }| j         r2| j          	                    | j        | 
                    ¦   «         ¦  «         |r%t          |d¦  «        r|                     | ¦  «         |S )zcRetrieve Credential from datastore.

        Returns:
            oauth2client.Credentials
        NÚ	set_store)r›   r.   r™   r	   rŽ   r�   r¨   Úgetattrrš   ÚsetrŠ   Úhasattrr³   )rA   r‘   rE   Úentitys       r   Ú
locked_getzStorageByKeyName.locked_gety  sÙ   € ð ˆØŒ;ð 	EØ”;—?’? 4¤>Ñ2Ô2ˆDØð EÝ$Ô0×>Ò>¸tÑDÔD�ØÐØ×%Ò%Ñ'Ô'ˆFØÐ!Ý% f¨dÔ.AÑBÔB�Ø”;ð KØ”K—O’O D¤N°K×4GÒ4GÑ4IÔ4IÑJÔJÐJàð 	(�7 ;°Ñ<Ô<ð 	(Ø×!Ò! $Ñ'Ô'Ð'ØÐr   c                 ó  — | j                              | j        ¦  «        }t          || j        |¦  «         |                     ¦   «          | j        r4| j                             | j        |                     ¦   «         ¦  «         dS dS )z}Write a Credentials to the datastore.

        Args:
            credentials: Credentials, the credentials to store.
        N)	r˜   r1   r™   Úsetattrrš   r2   r›   rµ   rŠ   )rA   r‘   r·   s      r   Ú
locked_putzStorageByKeyName.locked_put�  s~   € ð ”×*Ò*¨4¬>Ñ:Ô:ˆÝ�˜Ô+¨[Ñ9Ô9Ð9Ø�
Š
‰ŒˆØŒ;ð 	CØŒK�OŠO˜DœN¨K×,?Ò,?Ñ,AÔ,AÑBÔBÐBÐBÐBð	Cð 	Cr   c                 óz   — | j         r| j                              | j        ¦  «         |                      ¦   «          dS )z!Delete Credential from datastore.N)r›   r«   r™   r°   rY   s    r   Úlocked_deletezStorageByKeyName.locked_delete�  s>   € ð Œ;ð 	/ØŒK×Ò˜tœ~Ñ.Ô.Ð.à×ÒÑÔÐÐÐr   ©NN)r   r   r   r   r   rf   r@   r¤   r¨   r°   r   Únon_transactionalr¸   r»   r½   ri   rj   s   @r   r”   r”   (  s  ø€ € € € € ðð ð €XÔ˜ÑÔðð ð ð ð ñ Ôðð8Lð Lð Lð$?ð ?ð ?ð
"ð 
"ð 
"ð €RÔ¨Ð.Ñ.Ô.ðð ñ /Ô.ðð, €RÔ¨Ð.Ñ.Ô.ð
Cð 
Cñ /Ô.ð
Cð €RÔ¨Ð.Ñ.Ô.ðð ñ /Ô.ðð ð ð ð r   r”   c                   ó&   — e Zd ZdZ e¦   «         ZdS )ÚCredentialsModelz`Storage for OAuth 2.0 Credentials

    Storage of the model is keyed by the user.user_id().
    N)r   r   r   r   r„   r‘   r"   r   r   rÁ   rÁ   §  s(   € € € € € ðð ð &Ð%Ñ'Ô'€K€K€Kr   rÁ   c                 ó®   — | j         j        }t          j        t	          ¦   «         |                     ¦   «         t          |¦  «        ¬¦  «        }|dz   |z   S )aˆ  Composes the value for the 'state' parameter.

    Packs the current request URI and an XSRF token into an opaque string that
    can be passed to the authentication server via the 'state' parameter.

    Args:
        request_handler: webapp.RequestHandler, The request.
        user: google.appengine.api.users.User, The current user.

    Returns:
        The state value as a string.
    ©Ú	action_idú:)ÚrequestÚurlr   Úgenerate_tokenr   r—   r4   )Úrequest_handlerrž   ÚurirS   s       r   Ú_build_state_valuerË   ¯  sP   € ð Ô
!Ô
%€CÝÔ#¥OÑ$5Ô$5°t·|²|±~´~Ý.1°#©h¬hð8ñ 8ô 8€Eà�‰9�uÑÐr   c                 ó¨   — |                       dd¦  «        \  }}t          j        t          ¦   «         ||                     ¦   «         |¬¦  «        r|S dS )aJ  Parse the value of the 'state' parameter.

    Parses the value and validates the XSRF token in the state parameter.

    Args:
        state: string, The value of the state parameter.
        user: google.appengine.api.users.User, The current user.

    Returns:
        The redirect URI, or None if XSRF token is not valid.
    rÅ   r   rÃ   N)Úrsplitr   Úvalidate_tokenr   r—   )Ústaterž   rÊ   rS   s       r   Ú_parse_state_valuerÐ   Â  sV   € ð —’˜c 1Ñ%Ô%�J€CˆÝÔ�Ñ0Ô0°%¸¿º¹¼Ø),ð.ñ .ô .ð àˆ
àˆtr   c                   ó  — e Zd ZdZd„ Zd„ Z eee¦  «        Zd„ Zd„ Z	 ee	e¦  «        Z
 ej        d¦  «        ej        ej        ej        ddddeed	f
d
„¦   «         Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zed„ ¦   «         Zd„ Zd„ ZdS )ÚOAuth2Decoratora`  Utility for making OAuth 2.0 easier.

    Instantiate and then use with oauth_required or oauth_aware
    as decorators on webapp.RequestHandler methods.

    ::

        decorator = OAuth2Decorator(
            client_id='837...ent.com',
            client_secret='Qh...wwI',
            scope='https://www.googleapis.com/auth/plus')

        class MainHandler(webapp.RequestHandler):
            @decorator.oauth_required
            def get(self):
                http = decorator.http()
                # http is authorized with the user's Credentials and can be
                # used in API calls

    c                 ó   — || j         _        d S r\   )Ú_tlsr‘   )rA   r‘   s     r   Úset_credentialszOAuth2Decorator.set_credentialsì  s   € Ø +ˆŒ	ÔÐÐr   c                 ó.   — t          | j        dd¦  «        S )zûA thread local Credentials object.

        Returns:
            A client.Credentials object, or None if credentials hasn't been set
            in this thread yet, which may happen when calling has_credentials
            inside oauth_aware.
        r‘   N©r´   rÔ   rY   s    r   Úget_credentialszOAuth2Decorator.get_credentialsï  s   € õ �t”y -°Ñ6Ô6Ð6r   c                 ó   — || j         _        d S r\   )rÔ   rs   )rA   rs   s     r   Úset_flowzOAuth2Decorator.set_flowû  s   € ØˆŒ	Œˆˆr   c                 ó.   — t          | j        dd¦  «        S )zíA thread local Flow object.

        Returns:
            A credentials.Flow object, or None if the flow hasn't been set in
            this thread yet, which happens in _create_flow() since Flows are
            created lazily.
        rs   Nr×   rY   s    r   Úget_flowzOAuth2Decorator.get_flowþ  s   € õ �t”y &¨$Ñ/Ô/Ð/r   r•   Nz/oauth2callbackr‘   c                 óH  — t          j        ¦   «         | _        d| _        d| _        || _        || _        t          j        |¦  «        | _	        || _
        || _        || _        || _        || _        || _        d| _        |	| _        |
| _        || _        || _        || _        dS )a  Constructor for OAuth2Decorator

        Args:
            client_id: string, client identifier.
            client_secret: string client secret.
            scope: string or iterable of strings, scope(s) of the credentials
                   being requested.
            auth_uri: string, URI for authorization endpoint. For convenience
                      defaults to Google's endpoints but any OAuth 2.0 provider
                      can be used.
            token_uri: string, URI for token endpoint. For convenience defaults
                       to Google's endpoints but any OAuth 2.0 provider can be
                       used.
            revoke_uri: string, URI for revoke endpoint. For convenience
                        defaults to Google's endpoints but any OAuth 2.0
                        provider can be used.
            user_agent: string, User agent of your application, default to
                        None.
            message: Message to display if there are problems with the
                     OAuth 2.0 configuration. The message may contain HTML and
                     will be presented on the web interface for any method that
                     uses the decorator.
            callback_path: string, The absolute path to use as the callback
                           URI. Note that this must match up with the URI given
                           when registering the application in the APIs
                           Console.
            token_response_param: string. If provided, the full JSON response
                                  to the access token request will be encoded
                                  and included in this query parameter in the
                                  callback URI. This is useful with providers
                                  (e.g. wordpress.com) that include extra
                                  fields that the client may want.
            _storage_class: "Protected" keyword argument not typically provided
                            to this constructor. A storage class to aid in
                            storing a Credentials object for a user in the
                            datastore. Defaults to StorageByKeyName.
            _credentials_class: "Protected" keyword argument not typically
                                provided to this constructor. A db or ndb Model
                                class to hold credentials. Defaults to
                                CredentialsModel.
            _credentials_property_name: "Protected" keyword argument not
                                        typically provided to this constructor.
                                        A string indicating the name of the
                                        field on the _credentials_class where a
                                        Credentials object will be stored.
                                        Defaults to 'credentials'.
            **kwargs: dict, Keyword arguments are passed along as kwargs to
                      the OAuth2WebServerFlow constructor.
        NF)Ú	threadingÚlocalrÔ   rs   r‘   Ú
_client_idÚ_client_secretr   r;   Ú_scopeÚ	_auth_uriÚ
_token_uriÚ_revoke_uriÚ_user_agentr=   Ú_messageÚ	_in_errorÚ_callback_pathÚ_token_response_paramÚ_storage_classÚ_credentials_classÚ_credentials_property_name)rA   Ú	client_idÚclient_secretr<   Úauth_uriÚ	token_uriÚ
revoke_uriÚ
user_agentÚmessageÚcallback_pathÚtoken_response_paramrë   rì   rí   rB   s                  r   r@   zOAuth2Decorator.__init__
  s¥   € õ| ”OÑ%Ô%ˆŒ	ØˆŒ	ØˆÔØ#ˆŒØ+ˆÔÝÔ/°Ñ6Ô6ˆŒØ!ˆŒØ#ˆŒØ%ˆÔØ%ˆÔØˆŒØˆŒØˆŒØ+ˆÔØ%9ˆÔ"Ø,ˆÔØ"4ˆÔØ*DˆÔ'Ð'Ð'r   c                 óä   — |j         j                             d¦  «         |j         j                             t          | j        ¦  «        ¦  «         |j         j                             d¦  «         d S )Nz<html><body>z</body></html>)ÚresponseÚoutÚwriter   rç   )rA   rÉ   s     r   Ú_display_error_messagez&OAuth2Decorator._display_error_message[  sa   € ØÔ Ô$×*Ò*¨>Ñ:Ô:Ð:ØÔ Ô$×*Ò*­:°d´mÑ+DÔ+DÑEÔEÐEØÔ Ô$×*Ò*Ð+;Ñ<Ô<Ð<Ð<Ð<r   c                 ó   ‡ ‡— ˆˆ fd„}|S )a,  Decorator that starts the OAuth 2.0 dance.

        Starts the OAuth dance for the logged in user if they haven't already
        granted access for this application.

        Args:
            method: callable, to be decorated method of a webapp.RequestHandler
                    instance.
        c                 óî  •— ‰j         r‰                     | ¦  «         d S t          j        ¦   «         }|s3|                      t          j        | j        j        ¦  «        ¦  «         d S ‰                     | ¦  «         t          | |¦  «        ‰j
        j        d<   ‰                     ‰j        d ‰j        |¬¦  «                             ¦   «         ‰_        ‰                     ¦   «         s'|                      ‰                     ¦   «         ¦  «        S 	  ‰| g|¢R i |¤Ž}nC# t&          j        $ r1 |                      ‰                     ¦   «         ¦  «        cY d ‰_        S w xY w	 d ‰_        n# d ‰_        w xY w|S ©NrÏ   ©rž   )rè   rû   r   Úget_current_userÚredirectÚcreate_login_urlrÆ   rÊ   Ú_create_flowrË   rs   Úparamsrë   rì   rí   r.   r‘   Úhas_credentialsÚauthorize_urlr	   rO   ©rÉ   ÚargsrB   rž   ÚrespÚmethodrA   s        €€r   Úcheck_oauthz3OAuth2Decorator.oauth_required.<locals>.check_oauthk  s¸  ø€ ØŒ~ð Ø×+Ò+¨OÑ<Ô<Ð<Ø�åÔ)Ñ+Ô+ˆDð ð Ø×(Ò(­Ô)?Ø#Ô+Ô/ñ*1ô *1ñ 2ô 2ð 2à�à×Ò˜oÑ.Ô.Ð.õ );Ø ñ)'ô )'ˆDŒIÔ˜WÑ%à#×2Ò2ØÔ'¨ØÔ/°dð  3ñ  <ô  <ç<?ºC¹E¼Eð Ôð ×'Ò'Ñ)Ô)ð FØ&×/Ò/°×0BÒ0BÑ0DÔ0DÑEÔEÐEð(Ø�v˜oÐ?°Ð?Ð?Ð?¸Ð?Ð?��øÝÔ1ð Fð Fð FØ&×/Ò/°×0BÒ0BÑ0DÔ0DÑEÔEÐEÐEà#'�Ô Ð ðFøøøð ð $(�Ô Ð ø 4�Ô Ð'Ð'Ð'Ð'ØˆKs*   ÄD ÄE) Ä6EÅE) ÅEÅE) Å)	E2r"   )rA   r
  r  s   `` r   Úoauth_requiredzOAuth2Decorator.oauth_required`  s+   øø€ ð	ð 	ð 	ð 	ð 	ð 	ð@ Ðr   c           	      óä   — | j         €h|j                             | j        ¦  «        }t	          j        | j        | j        | j        f|| j	        | j
        | j        | j        dœ| j        ¤Ž| _         dS dS )aU  Create the Flow object.

        The Flow is calculated lazily since we don't know where this app is
        running until it receives a request, at which point redirect_uri can be
        calculated and then the Flow object can be constructed.

        Args:
            request_handler: webapp.RequestHandler, the request handler.
        N)Úredirect_uriró   rð   rñ   rò   )rs   rÆ   Úrelative_urlré   r	   ÚOAuth2WebServerFlowrà   rá   râ   ræ   rã   rä   rå   r=   )rA   rÉ   r  s      r   r  zOAuth2Decorator._create_flow�  s…   € ð Œ9ÐØ*Ô2×?Ò?ØÔ#ñ%ô %ˆLåÔ2Ø” Ô!4°d´kð=à)°dÔ6FØœ°4´?ØÔ+ð	=ð =ð 04¬|ð	=ð =ˆDŒIˆIˆIð Ðr   c                 ó   ‡ ‡— ˆˆ fd„}|S )a!  Decorator that sets up for OAuth 2.0 dance, but doesn't do it.

        Does all the setup for the OAuth dance, but doesn't initiate it.
        This decorator is useful if you want to create a page that knows
        whether or not the user has granted access to this application.
        From within a method decorated with @oauth_aware the has_credentials()
        and authorize_url() methods can be called.

        Args:
            method: callable, to be decorated method of a webapp.RequestHandler
                    instance.
        c                 óî  •— ‰j         r‰                     | ¦  «         d S t          j        ¦   «         }|s3|                      t          j        | j        j        ¦  «        ¦  «         d S ‰                     | ¦  «         t          | |¦  «        ‰j
        j        d<   ‰                     ‰j        d ‰j        |¬¦  «                             ¦   «         ‰_        	  ‰| g|¢R i |¤Ž}d ‰_        n# d ‰_        w xY w|S rþ   )rè   rû   r   r   r  r  rÆ   rÊ   r  rË   rs   r  rë   rì   rí   r.   r‘   r  s        €€r   Úsetup_oauthz0OAuth2Decorator.oauth_aware.<locals>.setup_oauth®  s(  ø€ ØŒ~ð Ø×+Ò+¨OÑ<Ô<Ð<Ø�åÔ)Ñ+Ô+ˆDð ð Ø×(Ò(­Ô)?Ø#Ô+Ô/ñ*1ô *1ñ 2ô 2ð 2à�à×Ò˜oÑ.Ô.Ð.å(:¸?Ø;?ñ)Aô )AˆDŒIÔ˜WÑ%à#×2Ò2ØÔ'¨ØÔ/°dð  3ñ  <ô  <ç<?ºC¹E¼Eð Ôð(Ø�v˜oÐ?°Ð?Ð?Ð?¸Ð?Ð?�à#'�Ô Ð ø 4�Ô Ð'Ð'Ð'Ð'ØˆKs   ÃC) Ã)	C2r"   )rA   r
  r  s   `` r   Úoauth_awarezOAuth2Decorator.oauth_aware   s*   øø€ ð	ð 	ð 	ð 	ð 	ð 	ð2 Ðr   c                 ó.   — | j         duo| j         j         S )zéTrue if for the logged in user there are valid access Credentials.

        Must only be called from with a webapp.RequestHandler subclassed method
        that had been decorated with either @oauth_required or @oauth_aware.
        N)r‘   ÚinvalidrY   s    r   r  zOAuth2Decorator.has_credentialsÉ  s    € ð Ô tÐ+ÐL°DÔ4DÔ4LÐ0LÐLr   c                 óR   — | j                              ¦   «         }t          |¦  «        S )zÐReturns the URL to start the OAuth dance.

        Must only be called from with a webapp.RequestHandler subclassed method
        that had been decorated with either @oauth_required or @oauth_aware.
        )rs   Ústep1_get_authorize_urlr4   )rA   rÇ   s     r   r  zOAuth2Decorator.authorize_urlÑ  s"   € ð Œi×/Ò/Ñ1Ô1ˆÝ�3‰xŒxˆr   c                 óT   — | j                              t          j        |i |¤Ž¦  «        S )a�  Returns an authorized http instance.

        Must only be called from within an @oauth_required decorated method, or
        from within an @oauth_aware decorated method where has_credentials()
        returns True.

        Args:
            *args: Positional arguments passed to httplib2.Http constructor.
            **kwargs: Positional arguments passed to httplib2.Http constructor.
        )r‘   Ú	authorizer   Úget_http_object)rA   r  rB   s      r   rQ   zOAuth2Decorator.httpÚ  s2   € ð Ô×)Ò)ÝÔ% tÐ6¨vÐ6Ð6ñ8ô 8ð 	8r   c                 ó   — | j         S )a.  The absolute path where the callback will occur.

        Note this is the absolute path, not the absolute URI, that will be
        calculated by the decorator at runtime. See callback_handler() for how
        this should be used.

        Returns:
            The callback path as a string.
        )ré   rY   s    r   rõ   zOAuth2Decorator.callback_pathè  s   € ð Ô"Ð"r   c                 ó@   ‡— | Š G ˆfd„dt           j        ¦  «        }|S )až  RequestHandler for the OAuth 2.0 redirect callback.

        Usage::

            app = webapp.WSGIApplication([
                ('/index', MyIndexHandler),
                ...,
                (decorator.callback_path, decorator.callback_handler())
            ])

        Returns:
            A webapp.RequestHandler that handles the redirect back from the
            server during the OAuth 2.0 dance.
        c                   ó.   •— e Zd ZdZeˆ fd„¦   «         ZdS )ú7OAuth2Decorator.callback_handler.<locals>.OAuth2Handlerz4Handler for the redirect_uri of the OAuth 2.0 dance.c                 óZ  •— | j                              d¦  «        }|r\| j                              d|¦  «        }| j        j                             d                     t          |¦  «        ¦  «        ¦  «         d S t          j        ¦   «         }‰ 	                    | ¦  «         ‰j
                             | j         j        ¦  «        }‰                     ‰j        d ‰j        |¬¦  «                             |¦  «         t#          t%          | j                              d¦  «        ¦  «        |¦  «        }|€!| j        j                             d¦  «         d S ‰j        r;|j        r4t+          j        |j        ¦  «        }t/          j        |‰j        |¦  «        }|                      |¦  «         d S )NÚerrorÚerror_descriptionz%The authorization request failed: {0}rÿ   rÏ   z The authorization request failed)rÆ   r.   rø   rù   rú   r|   r   r   r   r  rs   Ústep2_exchanger  rë   rì   rí   r2   rÐ   r4   rê   Útoken_responserE   rq   r   Ú_add_query_parameterr  )rA   r!  Úerrormsgrž   r‘   r  Ú	resp_jsonÚ	decorators          €r   r.   z;OAuth2Decorator.callback_handler.<locals>.OAuth2Handler.get	  s´  ø€ àœ×(Ò(¨Ñ1Ô1�Øð 0Ø#œ|×/Ò/Ð0CÀUÑKÔK�HØ”MÔ%×+Ò+Ø?×FÒFÝ& xÑ0Ô0ñ2ô 2ñ3ô 3ð 3ð 3ð 3õ !Ô1Ñ3Ô3�DØ×*Ò*¨4Ñ0Ô0Ð0Ø"+¤.×"?Ò"?ØœÔ+ñ#-ô #-�Kà×,Ò,Ø!Ô4°dØ!Ô<Ø!ð -ñ #ô #÷ $'¢3 {Ñ#3Ô#3Ð#3Ý#5Ý˜DœL×,Ò,¨WÑ5Ô5Ñ6Ô6¸ñ$>ô $>�Là#Ð+ØœÔ)×/Ò/Ø>ñ@ô @ð @à˜à!Ô7ð 'Ø'Ô6ð'å$(¤J¨{Ô/IÑ$JÔ$J˜	Ý'/Ô'DØ(¨)Ô*IØ%ñ('ô ('˜ð —M’M ,Ñ/Ô/Ð/Ð/Ð/r   N)r   r   r   r   r   r.   )r(  s   €r   ÚOAuth2Handlerr    s>   ø€ € € € € ØFÐFàð0ð 0ð 0ð 0ñ Œ^ð0ð 0ð 0r   r)  )ÚwebappÚRequestHandler)rA   r)  r(  s     @r   Úcallback_handlerz OAuth2Decorator.callback_handlerõ  sJ   ø€ ð ˆ	ð"	0ð "	0ð "	0ð "	0ð "	0ð "	0ð "	0�FÔ1ñ "	0ô "	0ð "	0ðH Ðr   c                 ó^   — t          j        | j        |                      ¦   «         fg¦  «        S )aM  WSGI application for handling the OAuth 2.0 redirect callback.

        If you need finer grained control use `callback_handler` which returns
        just the webapp.RequestHandler.

        Returns:
            A webapp.WSGIApplication that handles the redirect back from the
            server during the OAuth 2.0 dance.
        )r*  ÚWSGIApplicationrõ   r,  rY   s    r   Úcallback_applicationz$OAuth2Decorator.callback_application,  s5   € õ Ô%ØÔ ×!6Ò!6Ñ!8Ô!8Ð9ð'
ñ ô ð 	r   )r   r   r   r   rÕ   rØ   rh   r‘   rÚ   rÜ   rs   r   rf   Úoauth2clientÚGOOGLE_AUTH_URIÚGOOGLE_TOKEN_URIÚGOOGLE_REVOKE_URIr”   rÁ   r@   rû   r  r  r  r  r  rQ   rõ   r,  r/  r"   r   r   rÒ   rÒ   Ö  s„  € € € € € ðð ð*,ð ,ð ,ð7ð 7ð 7ð �(˜?¨OÑ<Ô<€Kðð ð ð0ð 0ð 0ð ˆ8�H˜hÑ'Ô'€Dà€XÔ˜ÑÔà&Ô6Ø'Ô8Ø(Ô:Ø ØØ0Ø&*Ø 0Ø$4Ø,9ðNEð NEð NEñ ÔðNEð`=ð =ð =ð
+ð +ð +ðZ=ð =ð =ð&'ð 'ð 'ðRMð Mð Mðð ð ð8ð 8ð 8ð ð
#ð 
#ñ „Xð
#ð5ð 5ð 5ðnð ð ð ð r   rÒ   c                   óP   ‡ — e Zd ZdZ ej        d¦  «        dˆ fd„	¦   «         Zˆ xZS )Ú OAuth2DecoratorFromClientSecretsa~  An OAuth2Decorator that builds from a clientsecrets file.

    Uses a clientsecrets file as the source for all the information when
    constructing an OAuth2Decorator.

    ::

        decorator = OAuth2DecoratorFromClientSecrets(
            os.path.join(os.path.dirname(__file__), 'client_secrets.json')
            scope='https://www.googleapis.com/auth/plus')

        class MainHandler(webapp.RequestHandler):
            @decorator.oauth_required
            def get(self):
                http = decorator.http()
                # http is authorized with the user's Credentials and can be
                # used in API calls

    é   Nc                 ó¸  •— t          j        ||¬¦  «        \  }}|t           j        t           j        fvrt          j        d¦  «        ‚t          |¦  «        }|                     |d         |d         |dœ¦  «         |                     d¦  «        }	|	�|	|d<    t          t          | ¦  «        j
        |d         |d	         |fi |¤Ž |�	|| _        dS d
| _        dS )a#  Constructor

        Args:
            filename: string, File name of client secrets.
            scope: string or iterable of strings, scope(s) of the credentials
                   being requested.
            message: string, A friendly string to display to the user if the
                     clientsecrets file is missing or invalid. The message may
                     contain HTML and will be presented on the web interface
                     for any method that uses the decorator.
            cache: An optional cache service client that implements get() and
                   set()
            methods. See clientsecrets.loadfile() for details.
            **kwargs: dict, Keyword arguments are passed along as kwargs to
                      the OAuth2WebServerFlow constructor.
        )r�   z4OAuth2Decorator doesn't support this OAuth 2.0 flow.rð   rñ   )rð   rñ   rô   rò   Nrî   rï   z0Please configure your application for OAuth 2.0.)r
   ÚloadfileÚTYPE_WEBÚTYPE_INSTALLEDÚInvalidClientSecretsErrorÚdictÚupdater.   r?   r5  r@   rç   )rA   Úfilenamer<   rô   r�   rB   Úclient_typeÚclient_infoÚconstructor_kwargsrò   rC   s             €r   r@   z)OAuth2DecoratorFromClientSecrets.__init__P  s'  ø€ õ$ $1Ô#9¸(Ø@Eð$Gñ $Gô $GÑ ˆ�[à�}Ô5Ý,Ô;ð=ð =ð =åÔ9ØFñHô Hð Hõ " &™\œ\ÐØ×!Ò!Ø# JÔ/Ø$ [Ô1Øð#
ð #
ñ 	ô 	ð 	ð
 !—_’_ \Ñ2Ô2ˆ
ØÐ!Ø/9Ð˜|Ñ,Ø>�Õ.°Ñ5Ô5Ô>Ø˜Ô$ k°/Ô&BØð	)ð 	)à'ð	)ð 	)ð 	)ð ÐØ#ˆDŒMˆMˆMàNˆDŒMˆMˆMr   r¾   )r   r   r   r   r   rf   r@   ri   rj   s   @r   r5  r5  ;  sk   ø€ € € € € ðð ð( €XÔ˜ÑÔð'Oð 'Oð 'Oð 'Oð 'Oñ Ôð'Oð 'Oð 'Oð 'Oð 'Or   r5  r8   c                 ó(   — t          | |||¬¦  «        S )aµ  Creates an OAuth2Decorator populated from a clientsecrets file.

    Args:
        filename: string, File name of client secrets.
        scope: string or list of strings, scope(s) of the credentials being
               requested.
        message: string, A friendly string to display to the user if the
                 clientsecrets file is missing or invalid. The message may
                 contain HTML and will be presented on the web interface for
                 any method that uses the decorator.
        cache: An optional cache service client that implements get() and set()
               methods. See clientsecrets.loadfile() for details.

    Returns: An OAuth2Decorator
    )rô   r�   )r5  )r>  r<   rô   r�   s       r   Ú"oauth2decorator_from_clientsecretsrC  {  s(   € õ$ ,¨H°eØ4;À5ðJñ Jô Jð Jr   r¾   );r   r   rE   Úloggingr&   rp   rÞ   Úgoogle.appengine.apir   r   r   Úgoogle.appengine.extr   Ú google.appengine.ext.webapp.utilr   Úwebapp2r*  r0  r   r	   r
   r   Úoauth2client.contribr   r   ÚImportErrorÚ	getLoggerr   r‡   r0   r/   ÚCredentialsNDBModelÚCredentialsNDBPropertyÚFlowNDBPropertyrª   r    ÚSiteXsrfSecretKeyNDBÚNDB_KEYÚ	NDB_MODELr   r¢   r   r)   r   ÚAssertionCredentialsr7   ÚPropertyrl   r„   ÚStorager”   rÁ   rË   rÐ   ÚobjectrÒ   r5  rf   rC  r"   r   r   ú<module>rV     sà  ððð ð
 €
€
€
Ø €€€Ø €€€Ø 	€	€	€	Ø €€€Ø Ð Ð Ð à -Ð -Ð -Ð -Ð -Ð -Ø )Ð )Ð )Ð )Ð )Ð )Ø &Ð &Ð &Ð &Ð &Ð &Ø #Ð #Ð #Ð #Ð #Ð #Ø ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø Ð Ð Ð à Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !Ø Ð Ð Ð Ð Ð Ø &Ð &Ð &Ð &Ð &Ð &Ø "Ð "Ð "Ð "Ð "Ð "Ø )Ð )Ð )Ð )Ð )Ð )ðØ3Ð3Ð3Ð3Ð3Ð3Ð3øØð ð ð Ø€N€N€Nðøøøð 
ˆÔ	˜8Ñ	$Ô	$€à*Ð à$Ð àÐØÐØ!ÐØ€OØ€HØ€JØÐÐà(Ô<ÐØ+ÔBÐØ$Ô4€OØÔ%€HØÔ)€JØ)Ô>Ðð	8ð 	8ð 	8ð!ð !ð !ð !ð !˜œñ !ô !ð !ð(ð (ð (ð
ð ð ð.a+ð a+ð a+ð a+ð a+˜fÔ9ñ a+ô a+ð a+ðHð ð ð ð �2”;ñ ô ð ðB)ð )ð )ð )ð )˜"œ+ñ )ô )ð )ðX|ð |ð |ð |ð |�v”~ñ |ô |ð |ð~(ð (ð (ð (ð (�r”xñ (ô (ð (ðð ð ð&ð ð ð(bð bð bð bð b�fñ bô bð bðJ=Oð =Oð =Oð =Oð =O ñ =Oô =Oð =Oð@ €Ô�QÑÔà;?ðJð Jð Jñ ÔðJð Jð Js   Á A' Á'A1Á0A1