+
    ^eòjP]  ã                   ód  € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RI	t	^ RI
t
 ^ RIHtHt ^ RIHtHtHt ^ RIHt ]P0                  ! ]4      tR<R	 ltR
 tR tR<R ltR tR t R t!R t" ! R R]4      t# ! R R]]$4      t% ! R R]%4      t& ! R R]$4      t']R8X  EdÐ   ^ RI(t(^ RI)t)^RI*H+t+ ]PX                  ! ]PZ                  R7       ](P\                  ! ](P^                  ] R,           R7      ;t0t1]0Pe                  RRR R!7       ]0Pe                  R"R#R$7       ]0Pe                  R%]3^ R&R'7       ]0Pe                  R(]3^<R)R'7       ]0Pe                  R*R+R,R-7       ]0Pe                  R.RR/R-7       ]1Pi                  4       t5]+! R0]5Pl                  /]5Pn                  4      t8]'! ]5Pr                  R17      ;_uu_ 4       t:]8Pw                  ]5Px                  '       d   ]5Px                  P{                  4       MRR2P}                  ]5P~                  ]:P�                  4       R37      R47      tA]B! ])P†                  ! ]:P‰                  ]AR5,          R6R7R8]5PŠ                  ]AR9,          R:7      ^R;7      4       RRR4       R# R#   ] d!    ^ RIHtHt ^ RIHtHt ^ RIHt ^ RIHt  ELZi ; i  + '       g   i     R# ; i)=a$  A one-stop helper for desktop app to acquire an authorization code.

It starts a web server to listen redirect_uri, waiting for auth code.
It optionally opens a browser window to guide a human user to manually login.
After obtaining an auth code, the web server will automatically shut down.
)ÚdefaultdictN)ÚTemplate)Ú
HTTPServerÚBaseHTTPRequestHandler)ÚurlparseÚparse_qsÚ	urlencode)Úescape)r   r   )r   c                 ó¬   € \        V R 7      ;_uu_ 4       pVP                  VRR7      P                  R4      uuRRR4       #   + '       g   i     R# ; i)©Úportz×<html><body>
                Open this link to <a href='$auth_uri'>Sign In</a>
                (You may want to use incognito window)
                <hr><a href='$abort_uri'>Abort</a>
                </body></html>)Úauth_uriÚwelcome_templateÚcodeN)ÚAuthCodeReceiverÚget_auth_responseÚget)Úlisten_portr   Úreceivers   && ÚŽ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/msal/oauth2cli/authcode.pyÚobtain_auth_coder      sD   € Ü	˜{×	+Õ	+¨xØ×)Ñ)Øð"ð *ó ÷ ‰c�&‹k÷ 
,×	+×	+Ó	+ús   •"AÁA	c                  ó8  a€ \         P                  P                  R 4      '       g&   \         P                  P                  R4      '       d   R#  \        R4      ;_uu_ 4       p V P	                  4        Fu  pVP                  R^4      ^,          P                  4       o\        ;QJ d    V3R lR 4       F  '       g   K   RM	  RM! V3R lR 4       4      '       g   Kl   RRR4       R# 	  RRR4       R#   + '       g   i     R# ; i  \         d     R# i ; i)	z/.dockerenvz/run/.containerenvTz/proc/1/cgroupÚ:c              3   ó,   <"  € T F	  qS9   x € K  	  R # 5i©N© )Ú.0ÚmarkerÚcgroup_paths   & €r   Ú	<genexpr>Ú$_is_inside_docker.<locals>.<genexpr><   s   øé € ð Nñ <M° Ö,ó <Mùó   ƒFN)ÚdockerÚ
containerdÚkubepodsÚlxcÚlibpod)	ÚosÚpathÚexistsÚopenÚ	readlinesÚsplitÚstripÚanyÚIOError)ÚfÚliner   s     @r   Ú_is_inside_dockerr2   +   sç   ø€ ô 
‡w�w‡~�~�m×$Ò$¬¯©¯©Ð7K×(LÒ(LÙðÜÐ"×#Ô# qð Ÿ™ž�Ø"Ÿj™j¨¨aÓ0°Õ3×9Ñ9Ó;�÷ “3ô Nñ <Mó N—3—3’3ô Nñ <Mó N÷ Nô Nà÷ $Ñ#ñ &÷ $ñ ÷ $Ö#ñ ûô ô ØÙðúsI   ÁD
 Á"AC6Â?C6ÃC6Ã D
 Ã*C6Ã,D
 Ã6D	ÄD
 ÄD
 Ä
DÄDc                  óÖ   € ^ RI p V P                  4       p\        VRV^ ,          4      P                  4       p\        VRV^,          4      P                  4       pVR8H  ;'       d    RV9   # )é    NÚsystemÚreleaseÚlinuxÚ	microsoft)ÚplatformÚunameÚgetattrÚlower)r9   r:   Úplatform_namer6   s       r   Úis_wslr>   D   sa   € ó
 Ø�N‰NÓ€EÜ˜E 8¨U°1­XÓ6×<Ñ<Ó>€MÜ�e˜Y¨¨a­Ó1×7Ñ7Ó9€GØ˜GÑ#×>Ð>¨°wÑ(>Ð>ó    c                óø  a €  \        S 4      pVP                  R9  d#   \        P                  RVP                  4       R#  \
        ;QJ d    T 3R lR 4       F  '       g   K   RM	  RM! T 3R lR 4       4      '       d   \        P                  R4       R# ^ RIpT'       d"   TP                  T4      P                  S 4      pMTP                  S 4      pT'       gQ   \        4       '       dA   ^ RI
p TP                  R	S .4      pT^ 8H  pT'       g    TP                  R
S .4      pTR9   pT# T#   \         d    \        P                  RS 4        R# i ; i  \         d     LZi ; i  \         d     T# i ; i)zJBrowse uri with named browser. Default browser is customizable by $BROWSERz"Invalid URI scheme for browser: %sFzInvalid URI: %sc              3   ó,   <"  € T F	  qS9   x € K  	  R # 5ir   r   )r   Úcr   s   & €r   r   Ú_browse.<locals>.<genexpr>Z   s   øé € Ð
+¡(˜Q�Ž=£(ùr!   z
	TzInvalid characters in URINÚwslviewzexplorer.exe)ÚhttpÚhttps)r4   é   )r   ÚschemeÚloggerÚwarningÚ
ValueErrorr.   Ú
webbrowserr   r*   r>   Ú
subprocessÚcallÚFileNotFoundError)r   Úbrowser_nameÚ
parsed_urirL   Úbrowser_openedrM   Ú	exit_codes   f&     r   Ú_browserT   P   sT  ø€ ðÜ˜hÓ'ˆ
Ø×ÑÐ$5Ô5Ü�N‰NÐ?À×ARÑARÔSÙð 6÷ ƒsÔ
+¡(Ó
+‡s‡s‚sÔ
+¡(Ó
+×+Ò+Ü�‰Ð2Ô3ÙãßØ#Ÿ™¨Ó5×:Ñ:¸8ÓD‰ð $Ÿ™¨Ó2ˆ÷ œfŸhšhÛð	à"Ÿ™¨°HÐ(=Ó>ˆIØ&¨!™^ˆN÷ ðð 'ŸO™O¨^¸XÐ,FÓG�	Ø!*¨fÑ!4�ð Ðˆ>Ðøô? ô Ü�‰Ð(¨(Ô3Úðûô* !ô 	Ùð	ûô %ô ØØÐðús5   ƒ<D1 Ã4E ÄE* Ä1!EÅEÅE'Å&E'Å*E9Å8E9c           	     ó¶   € V P                  4        UUu/ uF7  w  rT\        V\        4      '       d   \        V4      ^8X  d
   V^ ,          MTbK9  	  upp# u uppi )z;Flatten parse_qs()'s single-item lists into the item itself)ÚitemsÚ
isinstanceÚlistÚlen)ÚqsÚkÚvs   &  r   Ú_qs2kvr]   y   sR   € ð —H‘H”Jô Ù‰DˆAð ”z !¤T×*Ò*¬s°1«v¸¬{ˆq�ŽtÀÒAÙò ð  ùó  s   ”=Ac                 ó$   € V P                  R 4      # )Ú<)Ú
startswith©Útexts   &r   Ú_is_htmlrc      s   € Ø�?‰?˜3ÓÐr?   c                 ój   € V P                  4        UUu/ uF  w  rV\        V4      bK  	  upp# u uppi r   )rV   r	   )Úkey_value_pairsr[   r\   s   &  r   Ú_escaperf   ƒ   s/   € Ø%4×%:Ñ%:Ô%<Ô=Ñ%<™T˜QˆAŒv�a‹yŠLÑ%<Ò=Ð=ùÓ=s   ”/c                 ót   € \        V \        4      '       d"   V P                  4       '       g   \        V 4      # T # r   )rW   ÚstrÚisprintableÚreprra   s   &r   Ú	_printifyrk   †   s+   € ä# D¬#×.Ò.°t×7GÑ7G×7IÒ7IŒ4�‹:ÐSÈtÐSr?   c                   óB   a € ] tR t^Št o R tR tR tRR ltR tRt	V t
R# )	Ú_AuthCodeHandlerc                ó²  € \        \        V P                  4      P                  4      pVP	                  R R.4      ^ ,          pVP	                  RR.4      ^ ,          pVR8X  d(   V P                  V P                  P                  4       R# VR8X  d   V P                  RRR7       R# V'       d   V P                  RRR7       R# V P                  R	RR7       R# )
ÚwelcomeNÚerrorÚtrueÚabortzAuthentication abortedF©Úis_okz‚response_mode=query is not supported for authentication responses. This application operates in response_mode=form_post mode only.z_Authentication could not be completed. You can close this window and return to the application.)r   r   r(   Úqueryr   Ú_send_full_responseÚserverÚwelcome_page)ÚselfrZ   Úwelcome_paramÚerror_params   &   r   Údo_GETÚ_AuthCodeHandler.do_GET‹   s¿   € Ü”h˜tŸy™yÓ)×/Ñ/Ó0ˆØŸ™˜y¨4¨&Ó1°!Õ4ˆØ—f‘f˜W t fÓ-¨aÕ0ˆØ˜FÔ"Ø×$Ñ$ T§[¡[×%=Ñ%=Ö>Ø˜GÔ#Ø×$Ñ$Ð%=ÀUÐ$ÖKßà×$Ñ$ðRàð %ö ð ×$Ñ$ØqØð %ö r?   c                ót  € \        V P                  P                  R ^ 4      4      pV P                  P	                  V4      P                  R4      p\        V4      pVP                  R4      '       g   VP                  R4      '       d   V P                  \        V4      4       R# V P                  RRR7       R# )zContent-Lengthúutf-8r   rp   zInvalid POST requestFrs   N)
ÚintÚheadersr   ÚrfileÚreadÚdecoder   Ú_process_auth_responser]   rv   )ry   Úcontent_lengthÚ	post_datarZ   s   &   r   Údo_POSTÚ_AuthCodeHandler.do_POST    s†   € ô ˜TŸ\™\×-Ñ-Ð.>ÀÓBÓCˆØ—J‘J—O‘O NÓ3×:Ñ:¸7ÓCˆ	Ü�iÓ ˆØ�6‰6�&�>Š>˜RŸV™V GŸ_š_Ø×'Ñ'¬¨r«
Ö3à×$Ñ$Ð%;À5Ð$ÖIr?   c                ó"  € \         P                  RV4       V P                  P                  '       d@   V P                  P                  VP	                  R4      8w  d   V P                  RRR7       R# RV9   d   V P                  P                  MV P                  P                  p\        VP                  4      '       d   \        V4      pMTp\        \        V4      pV P                  VP                  ! R/ VB 4       WP                  n        R# )	z:Process the auth response from either GET or POST request.zGot auth response: %sÚstatez>State mismatch. Waiting for next response... or you may abort.Frs   r   Nr   )rI   Údebugrw   Ú
auth_stater   rv   Úsuccess_templateÚerror_templaterc   Útemplaterf   r   rh   Úsafe_substituteÚauth_response)ry   r’   r�   Ú	safe_dataÚfilled_datas   &&   r   r…   Ú'_AuthCodeHandler._process_auth_response¬   s×   € ä�‰Ð,¨mÔ<Ø�;‰;×!×!Ð! d§k¡k×&<Ñ&<À×@QÑ@QÐRYÓ@ZÔ&Zð ×$Ñ$ØPÐX]ð %ö _ð ˜]Ô*ð Ÿ™×4Ò4Ø04·±×0JÑ0Jð ä˜×)Ñ)×*Ò*Ü# MÓ2‘	à)�	Ü%¤c¨9Ó5ˆKØ×$Ñ$ X×%=Ò%=Ñ%LÀÑ%LÔMØ(5�K‰KÖ%r?   c                óþ   € T P                  V'       d   ^ÈMR4       \        V4      '       d   RMRpV P                  RV4       V P                  4        V P                  P                  VP                  R4      4       R# )éÈ   i�  z	text/htmlz
text/plainzContent-typer   N)Úsend_responserc   Úsend_headerÚend_headersÚwfileÚwriteÚencode)ry   Úbodyrt   Úcontent_types   &&& r   rv   Ú$_AuthCodeHandler._send_full_response¿   sZ   € Ø×Ñ§%™3¨SÔ1Ü&.¨t§n¢n‘{¸,ˆØ×Ñ˜¨Ô6Ø×ÑÔØ�
‰
×Ñ˜Ÿ™ WÓ-Ö.r?   c                óR   € \         P                  ! V.\        \        V4      O5!   R # r   )rI   rŒ   Úmaprk   )ry   ÚformatÚargss   &&*r   Úlog_messageÚ_AuthCodeHandler.log_messageÆ   s   € ä�Š�VÐ3œc¤)¨TÓ2Ö3r?   r   N)T)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r|   rˆ   r…   rv   r¥   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   rm   rm   Š   s$   ø‡ € òò*	Jò6ô&/÷4ð 4r?   rm   c                   ó8   a a€ ] tR t^Ët oV 3R ltR tRtVtV ;t# )Ú_AuthCodeHttpServerc                ó¨   <€ Vw  rEV'       d-   \         P                  R 8X  g   \        4       '       d   RV n        \        \
        V `  ! V.VO5/ VB  R# )Úwin32FN)Úsysr9   r>   Úallow_reuse_addressÚsuperr°   Ú__init__)ry   Úserver_addressr¤   ÚkwargsÚ_r   Ú	__class__s   &&*,  €r   r¶   Ú_AuthCodeHttpServer.__init__Ì   sB   ø€ Ø ‰ˆß”S—\‘\ WÔ,´·²ð
 (-ˆDÔ$ÜÔ! 4Ò1°.ÐRÀ4ÒRÈ6ÔRr?   c                ó   € \        R 4      h)z"Timeout. No auth response arrived.)ÚRuntimeError©ry   s   &r   Úhandle_timeoutÚ"_AuthCodeHttpServer.handle_timeoutÖ   s   € ô Ð?Ó@Ð@r?   )r´   )	r§   r¨   r©   rª   r¶   r¿   r«   r¬   Ú__classcell__)rº   r®   s   @@r   r°   r°   Ë   s   ù‡ € õS÷Aò Ar?   r°   c                   ó.   € ] tR t^ßt]P
                  tRtR# )Ú_AuthCodeHttpServer6r   N)r§   r¨   r©   rª   ÚsocketÚAF_INET6Úaddress_familyr«   r   r?   r   rÃ   rÃ   ß   s   † Ø—_‘_„Nr?   rÃ   c                   óV   a € ] tR t^ãt o R
R ltR tRR ltRR ltR tR t	R t
R	tV tR# )r   Nc                óÐ   € \        4       '       d   RMRp\        T;'       g    . 4      V n        RV9   d   \        M\        pT! Y1;'       g    ^ 3\
        4      V n        RV n        R# )a˜  Create a Receiver waiting for incoming auth response.

:param port:
    The local web server will listen at http://...:<port>
    You need to use the same port when you register with your app.
    If your Identity Provider supports dynamic port, you can use port=0 here.
    Port 0 means to use an arbitrary unused port, per this official example:
    https://docs.python.org/2.7/library/socketserver.html#asynchronous-mixins

:param scheduled_actions:
    For example, if the input is
    ``[(10, lambda: print("Got stuck during sign in? Call 800-000-0000"))]``
    then the receiver would call that lambda function after
    waiting the response for 10 seconds.
z0.0.0.0ú	127.0.0.1r   FN)r2   ÚsortedÚ_scheduled_actionsrÃ   r°   rm   Ú_serverÚ_closing)ry   r   Úscheduled_actionsÚaddressÚServers   &&&  r   r¶   ÚAuthCodeReceiver.__init__å   s[   € ô   1×2Ò2‘)¸ˆô #)Ð):×)@Ð)@¸bÓ"AˆÔØ),°¬Õ%Ô=Pˆñ ˜w¯	¨	°Ð2Ô4DÓEˆŒØˆŽr?   c                ó<   € V P                   P                  ^,          # )z*The port this server actually listening to)rÌ   r·   r¾   s   &r   Úget_portÚAuthCodeReceiver.get_port  s   € ð �|‰|×*Ñ*¨1Õ-Ð-r?   c                óX  € / p\         P                  ! V P                  V3VR7      pRVn        VP	                  4        \
        P
                  ! 4       pV'       d#   \
        P
                  ! 4       V,
          V8  d¥   M \
        P                  ! ^4       VP                  4       '       g   MuV P                  '       g   Kl  \
        P
                  ! 4       V,
          V P                  ^ ,          ^ ,          8”  g   K§  V P                  P                  ^ 4      w  rgV! 4        Ku  T;'       g    R# )aä  Wait and return the auth response. Raise RuntimeError when timeout.

:param str auth_uri:
    If provided, this function will try to open a local browser.
    Starting from 2026, the built-in http server will require response_mode=form_post.
:param int timeout: In seconds. None means wait indefinitely.
:param str state:
    You may provide the state you used in auth_uri,
    then we will use it to validate incoming response.
:param str welcome_template:
    If provided, your end user will see it instead of the auth_uri.
    When present, it shall be a plaintext or html template following
    `Python Template string syntax <https://docs.python.org/3/library/string.html#template-strings>`_,
    and include some of these placeholders: $auth_uri and $abort_uri.
:param str success_template:
    The page will be displayed when authentication was largely successful.
    Placeholders can be any of these:
    https://tools.ietf.org/html/rfc6749#section-5.1
:param str error_template:
    The page will be displayed when authentication encountered error.
    Placeholders can be any of these:
    https://tools.ietf.org/html/rfc6749#section-5.2
:param callable auth_uri_callback:
    A function with the shape of lambda auth_uri: ...
    When a browser was unable to be launch, this function will be called,
    so that the app could tell user to manually visit the auth_uri.
:param str browser_name:
    If you did
    ``webbrowser.register("xyz", None, BackgroundBrowser("/path/to/browser"))``
    beforehand, you can pass in the name "xyz" to use that browser.
    The default value ``None`` means using default browser,
    which is customizable by env var $BROWSER.
:return:
    The auth response of the first leg of Auth Code flow,
    typically {"code": "...", "state": "..."} or {"error": "...", ...}
    See https://tools.ietf.org/html/rfc6749#section-4.1.2
    and https://openid.net/specs/openid-connect-core-1_0.html#AuthResponse
    Returns None when the state was mismatched, or when timeout occurred.
)Útargetr¤   r¸   TN)
Ú	threadingÚThreadÚ_get_auth_responseÚdaemonÚstartÚtimeÚsleepÚis_aliverË   Úpop)ry   Útimeoutr¸   ÚresultÚtÚbeginr¹   Úcallbacks   &&,     r   r   Ú"AuthCodeReceiver.get_auth_response  sÍ   € ðl ˆÜ×ÒØ×*Ñ*°&°À6ôKˆàˆŒØ	�‰Œ	Ü—	’	“ˆß18Œt�yŠy‹{˜UÕ" WÕ,¸dÜ�JŠJ�qŒMØ—:‘:—<’<ØØ×*×*Ò*ÜŸ	š	› eÕ+¨d×.EÑ.EÀaÕ.HÈÕ.KÖKØ"×5Ñ5×9Ñ9¸!Ó<‘�Ù–
Ø�~ˆ~˜Ðr?   c
                óè  € R P                  V P                  4       R7      p
RP                  V
R7      p\        P                  RV4       V'       dE   \	        \        V4      P                  4      pVP                  RR.4      ^ ,          R8X  g   Q R4       h\        T;'       g    R	4      P                  W+R
7      V P                  n        V'       dŒ   V'       d
   V
R,           MTp\        P                  RV,          4       Rp \        WÙR7      pT'       gF   T'       g6   \        P                  RP                  YÓT P                  4       R7      4       MT! T4       Rp\        T;'       g
    RV,           4      V P                  n        \        T;'       g
    RV,           4      V P                  n        W0P                  n        / V P                  n        W@P                  n        V P*                  '       g:   V P                  P-                  4        V P                  P&                  '       g   KJ   VP/                  V P                  P&                  4       R#    \        P                  R4        ELb; i)zhttp://localhost:{p})Úpz{loc}?error=abort)ÚloczAbort by visit %sÚresponse_modeNÚ	form_postziThe built-in http server supports HTTP POST only. The auth_uri must be built with response_mode=form_postÚ )r   Ú	abort_uriz?welcome=truez*Open a browser on this device to visit: %sF)rP   z_browse(...) unsuccessfulaç  Found no browser in current environment. If this program is being run inside a container which either (1) has access to host network (i.e. started by `docker run --net=host -it ...`), or (2) published port {port} to host network (i.e. started by `docker run -p 127.0.0.1:{port}:{port} -it ...`), you can use browser on host to visit the following link. Otherwise, this auth attempt would either timeout (current timeout setting is {timeout}) or be aborted by CTRL+C. Auth URI: {auth_uri})r   rà   r   z`For your security: Do not share the contents of this page, the address bar, or take screenshots.z\Authentication complete. You can return to the application. Please close this browser tab.

zBAuthentication failed. $error: $error_description. ($error_uri).

)r£   rÓ   rI   rŒ   r   r   ru   r   r   r‘   rÌ   rx   ÚinforT   Ú	exceptionrJ   rŽ   r�   rà   r’   r�   rÍ   Úhandle_requestÚupdate)ry   rá   r   rà   r‹   r   rŽ   r�   Úauth_uri_callbackrP   Únetlocrì   ÚparamsÚ_urirR   Úrecommendations   &&&&&&&&&&      r   rÙ   Ú#AuthCodeReceiver._get_auth_responseS  s  € ð
 (×.Ñ.°·±³Ð.ÓAˆØ'×.Ñ.°6Ð.Ó:ˆ	Ü�‰Ð(¨)Ô4çô œh xÓ0×6Ñ6Ó7ˆFØ—:‘:˜o°¨vÓ6°qÕ9¸[ÔHð KðJóKÐHô %-Ð-=×-CÐ-CÀÓ$D×$TÑ$TØð %Uó %4ˆ�‰Ô!çß1A�F˜_Ö,ÀxˆDÜ�K‰KÐDÀtÕKÔLØ"ˆNð>Ü!(¨Ô!I�÷
 "ß(Ü—N‘Nð	H÷ IOÉØ%)ÀÇÁÃð IOó IRõSñ & dÔ+à{ˆÜ(0Ð1A÷ 2~ð 2~ØlÐo}Õ}ó)ˆ�‰Ô%ä&.¨~÷ 0dð 0dð SÐUcÕcó	'eˆ�‰Ô#ð  '�‰ÔØ%'ˆ�‰Ô"Ø"'�‰ÔØ—-—-�-ð �L‰L×'Ñ'Ô)Ø�|‰|×)×)Ò)ØØ�‰�d—l‘l×0Ñ0Ö1øðQ>ô × Ñ Ð!<×=ús   ÄI ÉI1c                óH   € RV n         V P                  P                  4        R# )zGEither call this eventually; or use the entire class as context managerTN)rÍ   rÌ   Úserver_closer¾   s   &r   ÚcloseÚAuthCodeReceiver.close—  s   € àˆŒØ�‰×!Ñ!Ö#r?   c                ó   € V # r   r   r¾   s   &r   Ú	__enter__ÚAuthCodeReceiver.__enter__œ  s   € Øˆr?   c                ó&   € V P                  4        R # r   )rù   )ry   Úexc_typeÚexc_valÚexc_tbs   &&&&r   Ú__exit__ÚAuthCodeReceiver.__exit__Ÿ  s   € Ø�
‰
Žr?   )rÍ   rË   rÌ   )NNr   )NNNNNNNN)r§   r¨   r©   rª   r¶   rÓ   r   rÙ   rù   rü   r  r«   r¬   r­   s   @r   r   r   ã   s2   ø‡ € ô!òF.ô
DôLB2òH$ò
÷ð r?   r   Ú__main__)ÚClient)Úlevelz/The auth code received will be shown at stdout.)Úformatter_classÚdescriptionz
--endpointzThe auth endpoint for your app.z>https://login.microsoftonline.com/common/oauth2/v2.0/authorize)ÚhelpÚdefaultÚ	client_idz!The client_id of your application)r	  z--portzThe port in redirect_uri)Útyper
  r	  z	--timeoutzTimeout value, in secondz--hostrÉ   zThe host of redirect_uri)r
  r	  z--scopezThe scope listÚauthorization_endpointr   zhttp://{h}:{p})Úhrç   )ÚscopeÚredirect_urir   zB<a href='$auth_uri'>Sign In</a>, or <a href='$abort_uri'>Abort</a>z<html>Oh no. $error</html>zOh yeah. Got $coder‹   )r   r   r�   rŽ   rà   r‹   )Úindentr   )FÚ__doc__Úcollectionsr   Úloggingr'   rÄ   r³   Ústringr   r×   rÜ   Úhttp.serverr   r   Úurllib.parser   r   r   Úhtmlr	   ÚImportErrorÚBaseHTTPServerÚurllibÚcgiÚ	getLoggerr§   rI   r   r2   r>   rT   r]   rc   rf   rk   rm   Úobjectr°   rÃ   r   ÚargparseÚjsonÚoauth2r  ÚbasicConfigÚINFOÚArgumentParserÚArgumentDefaultsHelpFormatterrç   ÚparserÚadd_argumentr€   Ú
parse_argsr¤   Úendpointr  Úclientr   r   Úinitiate_auth_code_flowr  r,   r£   ÚhostrÓ   ÚflowÚprintÚdumpsr   rà   r   r?   r   Ú<module>r0     s†  ðñõ $Û Û 	Û Û 
Ý Û Û ðß>ß:Ñ:Ýð 
×	Ò	˜8Ó	$€ô	òò2	?ô&òR ò ò>òTô>4Ð-ô >4ôBA˜* fô Aô(%Ð.ô %ô}�vô }ðB ˆzÕßÝØ×Ò˜gŸl™lÕ+Ø×(Ò(Ø ×>Ñ>ØÐOÕOôQð Q€Aˆð ‡N�NØÐ<ØPð ô Rð ‡N�N�;Ð%H€NÔIØ‡N�N�8 #¨qÐ7Q€NÔRØ‡N�N�; S°"Ð;U€NÔVØ‡N�N�8 [Ð7Q€NÔRØ‡N�N�9 dÐ1A€NÔBØ×ÑÓ€DÙÐ-¨t¯}©}Ð=¸t¿~¹~ÓN€FÙ	˜tŸy™y×	)Õ	)¨XØ×-Ñ-Ø(,¯
¯
¨
�$—*‘*×"Ñ"Ô$¸Ø)×0Ñ0°4·9±9À×@QÑ@QÓ@SÐ0ÓTð .ó ˆñ 	ˆd�jŠj˜×3Ñ3Ø˜*Õ%àTØ7Ø1Ø—L‘LØ�w•-ð 4ó ð ôô 	÷ 
*Ñ	)ñ# øð_ ô ßAß+Ý ßÐð	ú÷@ 
*×	)Ð	)ús   ¨I4 Æ8B0JÉ4#JÊJÊJ/	