§
   öFõ\Æã                   óx   — d Z ddlZdZdZdZdZdZdZd	Zd
„ Z	dd„Z
d„ Zdd„Zdd„Zdd„Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )aÇ  Whether the first-run guide is due, and where it stands (docs/plan/onboarding/000-plan.md D4, D16, D27, D28).

Everyone who has not finished the guide gets it (D27), and without a TMDb key the addon never starts (D4). Signed in,
the account decides (D28): every web account counts as finished unless its own guide begun at registration is still
open; an account without a guide comes as an empty step. Nothing heavy here: the service asks at every start.
é    NÚonboarding_stepÚdone)ÚwelcomeÚaccountÚtmdbÚwebshareÚaiÚgenresÚmoviesÚseries)r   r   r   r	   r
   r   r   zmilionar.onboardingzmilionar.onboarding.finishedzmilionar.onboarding.freshc                  ó4   — ddl } |                      d¦  «        S )ziRead fresh: another process (the settings, a key window, a pull of the account) may have just written it.r   Nzplugin.video.milionar)Ú	xbmcaddonÚAddon)r   s    úb/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/wcs/onboarding/state.pyÚ_addonr      s!   € àÐÐÐØ�?Š?Ð2Ñ3Ô3Ð3ó    c                 ó^   — t          t          ¦   «                              d¦  «        ¦  «        S )NÚtmdb_api_key)Úboolr   Ú
getSetting©Úaddons    r   Úhas_keyr      s"   € Ý•‘”×#Ò# NÑ3Ô3Ñ4Ô4Ð4r   c                  ó^   — ddl m}  |                      ¦   «          |                      ¦   «         S )Nr   )Ústate)Úwcs.accountr   Ú
invalidateÚ	signed_in)Úaccount_states    r   Ú
_signed_inr       s8   € Ø2Ð2Ð2Ð2Ð2Ð2Ø×ÒÑÔÐØ×"Ò"Ñ$Ô$Ð$r   c                 óŒ   — t          ¦   «                              t          ¦  «        }|t          k    p|dk    ot	          ¦   «         S )z^The guide is done: on this device, or (signed in) an account without a guide of its own (D28).Ú )r   r   ÚSTEPÚDONEr    ©r   Úcurrents     r   Úfinishedr'   #   s5   € å‰hŒh×!Ò!¥$Ñ'Ô'€GØ•dŠ?Ð>˜w¨"š}Ð=µ±´Ð>r   c                 ó>   — t          ¦   «          pt          ¦   «          S ©N)r   r'   r   s    r   Úpendingr*   )   s   € Ý‰yŒyˆ=Ð*¥¡
¤
˜NÐ*r   c                 óš   — t          ¦   «                              t          ¦  «        }t          ¦   «         r	|t          vrt
          d         S |S )ui   The step the guide opens at: VÃ­tej without a key (D4) or when it never began, else the stored one (D16).r   )r   r   r#   r   ÚSTOREDÚSTEPSr%   s     r   Ústepr.   -   s=   € å‰hŒh×!Ò!¥$Ñ'Ô'€GÝ‰9Œ9ð ˜¥vÐ-Ð-Ý�QŒxˆØ€Nr   c                 óh   — |t           v s|t          k    r|                      t          |¦  «         d S d S r)   )r,   r$   Ú
setSettingr#   )r   Únames     r   Úrememberr2   5   s6   € Ø�v€~€~˜¥š˜Ø×Ò�˜tÑ$Ô$Ð$Ð$Ð$ð &˜r   c                 óÔ   — t          j        d¦  «        }| r|                     t          d¦  «         dS |                     t          ¦  «         |                     t
          ¦  «         dS )zmThe skin's own screen over Home while the guide is due (Home.xml), so no empty Home shows between skin loads.é'  Ú1N)ÚxbmcguiÚWindowÚsetPropertyÚPROPERTYÚclearPropertyÚFRESH)ÚonÚhomes     r   Úcoverr>   :   sc   € åŒ>˜%Ñ Ô €DØ	ð "Ø×Ò� 3Ñ'Ô'Ð'Ð'Ð'à×Ò�8Ñ$Ô$Ð$Ø×Ò�5Ñ!Ô!Ð!Ð!Ð!r   c                  ót   — t          t          j        d¦  «                             t          ¦  «        ¦  «        S ©Nr4   )r   r6   r7   ÚgetPropertyr9   © r   r   ÚcoveredrC   D   s(   € Ý•”˜uÑ%Ô%×1Ò1µ(Ñ;Ô;Ñ<Ô<Ð<r   c                  óØ   — t          ¦   «         sYt          ¦   «                              t          ¦  «        dk    r1t	          j        d¦  «                             t          d¦  «         dS dS dS )zdBefore the cover: this is a new install (no key, the guide never began), not an existing user (D27).r"   r4   r5   N)r   r   r   r#   r6   r7   r8   r;   rB   r   r   Ú
mark_freshrE   H   s`   € å‰9Œ9ð 6�™œ×,Ò,­TÑ2Ô2°bÒ8Ð8ÝŒ�uÑÔ×)Ò)­%°Ñ5Ô5Ð5Ð5Ð5ð6ð 6Ð8Ð8r   c                  ót   — t          t          j        d¦  «                             t          ¦  «        ¦  «        S r@   )r   r6   r7   rA   r;   rB   r   r   ÚfreshrG   N   s(   € Ý•”˜uÑ%Ô%×1Ò1µ%Ñ8Ô8Ñ9Ô9Ð9r   r)   )Ú__doc__r6   r#   r$   r-   r,   r9   ÚFINISHEDr;   r   r   r    r'   r*   r.   r2   r>   rC   rE   rG   rB   r   r   ú<module>rJ      s   ððð ð €€€à€Ø€ØV€Ø	L€Ø €Ø)€Ø#€ð4ð 4ð 4ð5ð 5ð 5ð 5ð%ð %ð %ð?ð ?ð ?ð ?ð+ð +ð +ð +ðð ð ð ð%ð %ð %ð
"ð "ð "ð=ð =ð =ð6ð 6ð 6ð:ð :ð :ð :ð :r   