ó
    Ñ]jƒ÷ ã                  óê  • S r SSKJr  SSKrSSKJr  SSKrSSKrSSKrSSK	r	SSK
r
SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SS	K
Jr  SS
K
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSK
Jr  SSKrSSKJ r   SSKJ!r!  SSK"J#r#  SSK"J$r$  SSK%J&r&  SSK%J'r'  SSK%J(r(  SS K%J)r)  SS!K%J*r*  SS"K%J+r+  SS#K%J,r,  SS$K%J-r-  SS%K.J/r/  SS&K.J0r0  SS'K.J1r1  SS(K.J2r2  SS)K.J3r3  SS*K.J4r4  SS+K.J5r5  SS,K.J6r6  SS-K7J8r8  SS.K7J9r9  SS/K7J:r:  S0S1KJ;r<  S0S2KJ=r=  S0S3KJ>r>  S0S4KJ?r?  S0S5KJ@r@  S0S6KJ7r7  S0S7KAJr  S0S8K@JBrB  S0S9K@JCrC  S0S:K@JDrD  S0S;K@JErE  S0S<K@JFrF  S0S=KGJHrH  S0S>KGJIrI  S0S?KJJKrK  S0S@KLJMrM  S0SAKLJNrN  S0SBKOJPrP  S0SCKOJQrQ  S0SDKOJRrR  S0SEKOJSrS  S0SFKOJTrT  S0SGKOJUrU  S0SHKOJVrV  S0SIKOJWrW  S0SJKXJYrY  S0SKKXJZrZ  S0SLKXJ[r[  \
R¸                  (       aº  SSMK"J]r]  SSNK"J^r^  SSOK"J_r_  SSPK"J`r`  SSQK"Jara  SSRK"Jbrb  SSSK"Jcrc  SSTK%Jdrd  SSUKeJfrf  SSVKeJgrg  SSWKhJiri  SSXKjJkrk  SSYKlJmrm  SSZKnJoro  SS[KpJqrq  SS\KrJsrs  SS]KtJuru  SS^K7Jvrv  SS_K7Jwrw  S0S`KGJxrx  S0SaKGJyry  S0SbKGJzrz  S0ScKJJ{r{  S0SdKJJ|r|  S0SeKLJ}r}  S0SfKLJ~r~  S0SgKLJr  S0ShK€J�r�  S0SiK‚Jƒrƒ  S0SjKXJ„r„  S0SkKXJ…r…  \" Sl\Sm9r†\" Sn\Sm9r‡\" So\Sm9rˆ\" Sp\Sm9r‰\" Sq\Sm9rŠ\\‹\\†   \/ \\†   4   SrSs\/ Sr4   \/ Ss4   4   rŒ\ZSt   r�\\‹\H\Ž   4   r�\Su\‹\/ Su4   4   r�\\ZSv   \‹\H\   \/ \H\   4   \/ \\H\      4   \\\‹\H\   4      4   r‘\\‹\\‹\\‹\4   4   4   r’\\M\   \I\   \EGR&                  Sw4   r”\\‹\\”   \/ \\”   4   \/ \”4   \”4   r•\" Sx\H\   Sm9r–\" SySzSm9r—\\\N\   \N\   4      r˜\\\N\   \N\   4      r™\\\N\   \N\   4      ršS�S{ jr›S�S| jrœ\GR:                   " S} S~\\‡\ˆ4   5      5       rž\\ZSv   \\N\   S4   4   rŸ " S€ S�\5      r \>GRB                   " S‚ Sƒ\0\6\†   \>GRD                  5      5       r£S‘S„ jr¤ " S… S†5      r¥ " S‡ Sˆ5      r¦\¦" S‰SŠ5      r§\¦" S‹SŠ5      r¨ " SŒ S�\£\†   \&\†   5      r© " SŽ S�\©\†   \-\†   \)\†   5      rªg)’a
  Heuristics related to join conditions as used in
:func:`_orm.relationship`.

Provides the :class:`.JoinCondition` object, which encapsulates
SQL annotation and aliasing behavior focused on the `primaryjoin`
and `secondaryjoin` aspects of :func:`_orm.relationship`.

é    )ÚannotationsN)Úabc)ÚAny)ÚCallable)Úcast)Ú
Collection)ÚDict)Ú	FrozenSet)ÚGeneric)ÚIterable)ÚIterator)ÚList)Ú
NamedTuple)ÚNoReturn)ÚOptional)ÚSequence)ÚSet)ÚTuple)ÚType)ÚTypeVar)ÚUnioné   )Ú
attributes)Ústrategy_options)Úinsp_is_aliased_class)Úis_has_collection_adapter)Ú_DeclarativeMapped)Ú_is_mapped_class)Úclass_mapper)ÚDynamicMapped)ÚLoaderCallableStatus)ÚPassiveFlag)Ú	state_str)ÚWriteOnlyMapped)Ú_AttributeOptions)Ú_IntrospectsAnnotations)Ú
MANYTOMANY)Ú	MANYTOONE)Ú	ONETOMANY)ÚPropComparator)ÚRelationshipDirection)ÚStrategizedProperty)Ú_orm_annotate)Ú_orm_deannotate)ÚCascadeOptionsé   )Úexc)ÚExists)Úlog)Úschema)Úsql)Úutil)Úinspect)Ú	coercions)Ú
expression)Ú	operators)Úroles)Úvisitors)Ú_ColumnExpressionArgument)Ú_HasClauseElement)Ú_safe_annotate)ÚColumnClause)ÚColumnElement©Ú_deep_annotate)Ú_deep_deannotate)Ú_shallow_annotate)Úadapt_criterion_to_null)ÚClauseAdapter)Újoin_condition)Úselectables_overlap©Úvisit_binary_product)Úde_optionalize_union_types)ÚLiteral)Úresolve_name_to_real_class_name)Ú_EntityType)Ú_ExternalEntityType)Ú_IdentityKeyType)Ú_InstanceDict)Ú_InternalEntityType)Ú_O)Ú_RegistryType)ÚMapped)Ú_class_resolver)Ú_ModNS)Ú_ClassScanMapperConfig)ÚDependencyProcessor)ÚMapper)ÚQuery)ÚSession)ÚInstanceState)Ú
LazyLoader)ÚAliasedClass)ÚAliasedInsp)Ú_CoreAdapterProto)Ú_EquivalentColumnMap)Ú	_InfoType)Ú_AnnotationDict)ÚSupportsAnnotations)ÚBinaryExpression)ÚBindParameter)ÚClauseElement)ÚTable)Ú
FromClause)Ú_AnnotationScanType)ÚRODescriptorReferenceÚ_T)ÚboundÚ_T1Ú_T2Ú_PTÚ_PT2ú
Mapper[_T]zAliasedClass[_T])ÚselectÚjoinedÚselectinÚsubqueryÚraiseÚraise_on_sqlÚnoloadÚ	immediateÚ
write_onlyÚdynamicTFNrk   FzMapped[Any]Ú_CEAÚ_CEúColumnElement[Any]c                ód   • [        [        R                  " [        R                  U 5      SS05      $ )zæAnnotate a portion of a primaryjoin expression
with a 'remote' annotation.

See the section :ref:`relationship_custom_foreign` for a
description of use.

.. seealso::

    :ref:`relationship_custom_foreign`

    :func:`.foreign`

ÚremoteT©Ú_annotate_columnsr8   Úexpectr;   ÚColumnArgumentRole©Úexprs    ÚY/home/mande/repo/quber/.venv/lib/python3.13/site-packages/sqlalchemy/orm/relationships.pyrƒ   rƒ   Ò   s.   € ô Ü×Òœ×1Ñ1°4Ó8¸8ÀTÐ:Jóð ó    c                ód   • [        [        R                  " [        R                  U 5      SS05      $ )zæAnnotate a portion of a primaryjoin expression
with a 'foreign' annotation.

See the section :ref:`relationship_custom_foreign` for a
description of use.

.. seealso::

    :ref:`relationship_custom_foreign`

    :func:`.remote`

ÚforeignTr„   rˆ   s    rŠ   r�   r�   å   s.   € ô Ü×Òœ×1Ñ1°4Ó8¸9ÀdÐ:Kóð r‹   c                  óX   • \ rS rSr% SrSrS\S'   S\S'   S\S	'   SS
 jr    SS jrSr	g)Ú_RelationshipArgéù   zlstores a user-defined parameter value that must be resolved and
parsed later at mapper configuration time.

)ÚnameÚargumentÚresolvedÚstrr‘   rp   r’   zOptional[_T2]r“   c                ó   • U R                   S L$ ©N)r’   ©Úselfs    rŠ   Ú_is_populatedÚ_RelationshipArg._is_populated  s   € Ø�}‰} DÐ(Ð(r‹   c                óì   • U R                   n[        U[        5      (       a   U" X R                  S:H  5      " 5       U l        g [        U5      (       a  [        U5      (       d  U" 5       U l        g X l        g )NÚ	secondary)r’   Ú
isinstancer”   r‘   r“   Úcallabler   )r˜   Úclsregistry_resolverÚ
attr_values      rŠ   Ú_resolve_against_registryÚ*_RelationshipArg._resolve_against_registry  s]   € ð —]‘]ˆ
ä�j¤#×&Ñ&Ù0ØŸI™I¨Ñ4ôó ˆD�Mô �j×!Ñ!Ô*:¸:×*FÑ*FÙ&›LˆD�Mà&�Mr‹   )r“   N©ÚreturnÚbool)rŸ   ú&Callable[[str, bool], _class_resolver]r¤   ÚNone)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__Ú__annotations__r™   r¡   Ú__static_attributes__© r‹   rŠ   r�   r�   ù   s8   ‡ ñð
 /€IØ
ƒIØƒMØÓô)ð'Ø$Jð'à	÷'r‹   r�   .c                  óV   • \ rS rSr% SrS\S'   S\S'   S\S'   S\S	'   S
\S'   S
\S'   Srg)Ú_RelationshipArgsi  zOstores user-passed parameters that are resolved at mapper configuration
time.

zP_RelationshipArg[Optional[_RelationshipSecondaryArgument], Optional[FromClause]]rœ   z\_RelationshipArg[Optional[_RelationshipJoinConditionArgument], Optional[ColumnElement[Any]]]ÚprimaryjoinÚsecondaryjoinz>_RelationshipArg[_ORMOrderByArgument, _RelationshipOrderByArg]Úorder_byzN_RelationshipArg[Optional[_ORMColCollectionArgument], Set[ColumnElement[Any]]]Úforeign_keysÚremote_sider°   N)r¨   r©   rª   r«   r¬   r®   r¯   r°   r‹   rŠ   r²   r²     sB   ‡ ñð
ó ðó ðó ð MÓLðó ðö r‹   r²   c            $      ó0  ^ • \ rS rSr% Sr\R                  rSr Sr	Sr
S\S'   S\S'   \" SSSSSS	9rS
rS\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S '   S!\S"'   S#\S$'     SSS
S
S
S
S
SS
S
SS%SS
S&SSSSS
S
S
S
SSS
SS
S
S
S
S
SSS
SS'."                                                                       STU 4S( jjjjrSUS) jrSVS* jr " S+ S,\R&                  \\   5      r  SW       SXS- jjr   SY         SZS. jjr          S[S/ jr  S\     S]S0 jjrS^S1 jr                  S_S2 jr\R<                  4         S`S3 jjr Sa           SbS4 jjr \!ScS5 j5       r"\#      SdS6 j5       r$SeS7 jr%\RL                  SfS8 j5       r'\RL                  SgS9 j5       r(ShU 4S: jjr)ShS; jr*ShS< jr+                    SiS= jr,\RZ                  " S>5      SaSjS? jj5       r.ShS@ jr/\!  SkSA j5       r0\!  SlSB j5       r1\RL                  \RZ                  " SC5        SmSD j5       5       r2ShSE jr3\!SnSF j5       r4\4Rj                  SoSG j5       r4SpSH jr6SqSI jr7SrSJ jr8SsSK jr9ShSL jr:\RZ                  " SM5      ShSN j5       r;\RL                  ScSO j5       r<\RL                  ScSP j5       r=      St             SuSQ jjr>SRr?U =r@$ )vÚRelationshipPropertyi5  zëDescribes an object property that holds a single item or list
of items that correspond to a related database table.

Public constructor is the :func:`_orm.relationship` function.

.. seealso::

    :ref:`relationship_config_toplevel`

TzSequence[str]Ú	_overlapsr_   Ú_lazy_strategyF©Úpassive_deletesÚpassive_updatesÚenable_typechecksÚactive_historyÚcascade_backrefsNzOptional[DependencyProcessor]Ú_dependency_processorúColumnElement[bool]r³   úOptional[ColumnElement[bool]]r´   úOptional[FromClause]rœ   ÚJoinConditionÚ_join_conditionÚ_RelationshipOrderByArgrµ   úSet[ColumnElement[Any]]Ú_user_defined_foreign_keysÚ_calculated_foreign_keysr·   Úlocal_columnsÚ_ColumnPairsÚsynchronize_pairsúOptional[_ColumnPairs]Úsecondary_synchronize_pairsÚlocal_remote_pairsr+   Ú	directionr²   Ú
_init_argszsave-update, mergeru   )"ÚuselistÚcollection_classr³   r´   Úback_populatesrµ   ÚbackrefÚoverlapsÚpost_updateÚcascadeÚviewonlyÚattribute_optionsÚlazyr½   r¾   rÀ   r¿   r¶   r·   Ú
join_depthÚcomparator_factoryÚsingle_parentÚ	innerjoinÚdistinct_target_keyÚload_on_pendingÚquery_classÚinfoÚ	omit_joinÚsync_backrefÚdocÚbake_queriesrÁ   Ú_local_remote_pairsÚ_legacy_inactive_history_stylec       "        óº  >• [         T%U ]  US9  X0l        Xl        [	        [        SUS 5      [        SUS 5      [        SUS 5      [        SUS 5      [        SUS 5      [        SUS 5      5      U l        X°l        XÐl        U(       a  U R                  UUUUU"S9  U(       a  U(       a  [        R                  " S	5      eUU l        Xðl        UU l        X@l        UU l        U"(       a  [        R                  " S
5      eUU l        UU l        UU l        UU l        UU l        U U l        UU l        U$U l        UU l        U(       a  [4        R6                  " S5        UU l        U#U l        UU l        U=(       d    [>        R@                  U l!        [4        RD                  " U 5        Ub  U RF                  RI                  U5        SU R                  44U l%        [M        5       U l'        U
(       a&  [M        [P        RR                  " SU
5      5      U l*        OSU l*        XÀl+        Xpl,        U RX                  (       a%  U	(       a  [        R                  " S5      eS U l-        g X�l-        g )N)rÜ   rœ   r³   r´   rµ   r¶   r·   r¼   z-sync_backref and viewonly cannot both be TruezSThe 'cascade_backrefs' parameter passed to relationship() may only be set to False.zæsetting omit_join to True is not supported; selectin loading of this relationship may not work correctly if this flag is set explicitly.  omit_join optimization is automatically detected for conditions under which it is supported.rÝ   z\s*,\s*r°   zCbackref and back_populates keyword arguments are mutually exclusive).ÚsuperÚ__init__rÔ   r’   r²   r�   rÓ   rÙ   rÛ   Ú _warn_for_persistence_only_flagsÚsa_excÚArgumentErrorrç   rÝ   rà   rÕ   r½   r¾   r¿   rä   rá   râ   rè   rÀ   rë   rÞ   r6   Úwarnræ   rÑ   rã   r¹   Ú
Comparatorrß   Úset_creation_orderrå   ÚupdateÚstrategy_keyÚsetÚ_reverse_propertyÚreÚsplitrº   rÚ   rÖ   r×   )&r˜   r’   rœ   rÔ   rÕ   r³   r´   rÖ   rµ   r×   rØ   rÙ   rÚ   rÛ   rÜ   rÝ   r½   r¾   rÀ   r¿   r¶   r·   rÞ   rß   rà   rá   râ   rã   rä   rå   ræ   rç   rè   ré   rÁ   rê   rë   Ú	__class__s&                                        €rŠ   rî   ÚRelationshipProperty.__init__n  s3  ø€ ôX 	‰ÑÐ+<ÐÑ=àŒØ Œä+Ü˜[¨)°TÓ:Ü˜]¨K¸Ó>Ü˜_¨m¸TÓBÜ˜Z¨°4Ó8Ü˜^¨\¸4Ó@Ü˜]¨K¸Ó>ó
ˆŒð 'ÔØ ŒÞØ×1Ñ1Ø /Ø /Ø"3Ø-Ø!1ð 2ñ ö žÜ×&Ò&Ø?óð ð )ˆÔØŒ	Ø*ˆÔØ 0ÔØ.ˆÔæÜ×&Ò&ð;óð ð
  /ˆÔØ!2ˆÔØ&ˆÔØ"ˆŒØ#6ˆÔ ØˆŒØ,ˆÔØ.LˆÔ+à$ˆŒÞÜ�IŠIðôð #ˆŒØ"5ˆÔØ.ˆÔà×AÔ"6×"AÑ"Að 	Ôô 	×Ò Ô%àÑØ�I‰I×Ñ˜TÔ"à$ d§i¡iÐ0Ð2ˆÔäADÃˆÔæÜ ¤§¢¨*°hÓ!?Ó@ˆD�NàˆDŒNàŒà,Ôà××ÞÜ×*Ò*ð-óð ð  ˆD�Là"�Lr‹   c                ó”   • UR                  5        H4  u  p#X0R                  U   :w  d  M  [        R                  " SU< S35        M6     g )NzSetting zÌ on relationship() while also setting viewonly=True does not make sense, as a viewonly=True relationship does not perform persistence operations. This configuration may raise an error in a future release.)ÚitemsÚ_persistence_onlyr6   rò   )r˜   ÚkwÚkÚvs       rŠ   rï   Ú5RelationshipProperty._warn_for_persistence_only_flags÷  s=   € Ø—H‘H–J‰DˆAØ×*Ñ*¨1Ñ-Õ-ô —	“	ó
 /0ð	2öò r‹   c                óŽ   • [         R                  " UR                  U R                  U R	                  X5      UU R
                  S9  g )N)Ú
comparatorÚparententityrè   )r   Úregister_descriptorÚclass_Úkeyrß   rè   ©r˜   Úmappers     rŠ   Úinstrument_classÚ%RelationshipProperty.instrument_class	  s6   € Ü×&Ò&Ø�M‰MØ�H‰HØ×.Ñ.¨tÓ<ØØ—‘ó	
r‹   c                  óh  • \ rS rSr% SrSrS\S'   S\S'      S         S S	 jjr    S!S
 jrS\S'    S\S'    S"S jr	S#S jr
S$S jrS%S jrS&S jr    S'S jrS(S jrSrS)S jr S*     S+S jjr S*     S,S jjr S*     S,S jjr      S-S jr    S)S jrS)S jrS.S jrSrg)/ÚRelationshipProperty.Comparatori  aˆ  Produce boolean, comparison, and other operators for
:class:`.RelationshipProperty` attributes.

See the documentation for :class:`.PropComparator` for a brief
overview of ORM level operator definition.

.. seealso::

    :class:`.PropComparator`

    :class:`.ColumnProperty.Comparator`

    :class:`.ColumnOperators`

    :ref:`types_operators`

    :attr:`.TypeEngine.comparator_factory`

)Úentityr  ÚpropertyÚ_of_typeÚ_extra_criteriaz0RODescriptorReference[RelationshipProperty[_PT]]ÚpropúOptional[_EntityType[_PT]]r  Nc                ó^   • Xl         X l        X0l        U(       a  X@l        OSU l        XPl        g)ziConstruction of :class:`.RelationshipProperty.Comparator`
is internal to the ORM's attribute mechanics.

N)r  Ú_parententityÚ_adapt_to_entityr  r  )r˜   r  ÚparentmapperÚadapt_to_entityÚof_typeÚextra_criterias         rŠ   rî   Ú(RelationshipProperty.Comparator.__init__2  s*   € ð ŒIØ!-ÔØ$3Ô!ÞØ '•à $�”Ø#1Õ r‹   c                ób   • U R                  U R                  U R                  UU R                  S9$ )N)r  r  )rû   r  r  r  )r˜   r  s     rŠ   r  Ú/RelationshipProperty.Comparator.adapt_to_entityG  s4   € ð —>‘>Ø—	‘	Ø×"Ñ"Ø /ØŸ™ð	 "ð ð r‹   ú_InternalEntityType[_PT]r  úMapper[_PT]r  c                óz   • U R                   (       a  [        U R                   5      $ U R                  R                  $ r–   )r  r7   r  r  r—   s    rŠ   Ú_memoized_attr_entityÚ5RelationshipProperty.Comparator._memoized_attr_entityf  s(   € Ø�}�}Ü˜tŸ}™}Ó-Ð-à—y‘y×'Ñ'Ð'r‹   c                ó.   • U R                   R                  $ r–   ©r  r  r—   s    rŠ   Ú_memoized_attr_mapperÚ5RelationshipProperty.Comparator._memoized_attr_mapperl  s   € Ø—;‘;×%Ñ%Ð%r‹   c                ó�   • U R                   (       a  U R                   R                  $ U R                  R                  R                  $ r–   )r  Ú
selectabler  ÚparentÚ_with_polymorphic_selectabler—   s    rŠ   Ú_source_selectableÚ2RelationshipProperty.Comparator._source_selectableo  s3   € Ø×$×$Ø×,Ñ,×7Ñ7Ð7à—}‘}×+Ñ+×HÑHÐHr‹   c                óâ   • U R                  5       nU R                  (       a  [        U R                  5      nOS nU R                  R	                  USUSU R
                  S9u  nnnnnnUb  X4-  $ U$ )NT)Úsource_selectableÚsource_polymorphicÚof_type_entityÚalias_secondaryr  )r-  r  r7   r  Ú_create_joinsr  )	r˜   Ú
adapt_fromr2  ÚpjÚsjÚsourceÚdestrœ   Útarget_adapters	            rŠ   Ú__clause_element__Ú2RelationshipProperty.Comparator.__clause_element__u  s‚   € Ø×0Ñ0Ó2ˆJØ�}�}Ü!(¨¯©Ó!7‘à!%�ð —	‘	×'Ñ'Ø",Ø#'Ø-Ø $Ø#×3Ñ3ð (ð ñØØØØØØð ‰~Ø‘w�à�	r‹   c                ó€   • [         R                  U R                  U R                  U R                  UU R
                  S9$ )zpRedefine this object in terms of a polymorphic subclass.

See :meth:`.PropComparator.of_type` for an example.


©r  r  r  )r¹   ró   r  r  r  r  )r˜   r  s     rŠ   r  Ú'RelationshipProperty.Comparator.of_type�  sA   € ô (×2Ñ2Ø—	‘	Ø×"Ñ"Ø $× 5Ñ 5ØØ#×3Ñ3ð 3ð ð r‹   c                óæ   • [        S [        R                  " U5       5       5      n[        R	                  U R
                  U R                  U R                  U R                  U R                  U-   S9$ )z\Add AND criteria.

See :meth:`.PropComparator.and_` for an example.

.. versionadded:: 1.4

c              3  ól   #   • U  H*  n[         R                  " [        R                  U5      v •  M,     g 7fr–   )r8   r†   r;   ÚWhereHavingRole)Ú.0Úclauses     rŠ   Ú	<genexpr>Ú7RelationshipProperty.Comparator.and_.<locals>.<genexpr>¨  s-   é € ð âA�Fô × Ò ¤×!6Ñ!6¸×?Ð?ÚAùs   ‚24r>  )
Útupler6   Úcoerce_generator_argr¹   ró   r  r  r  r  r  )r˜   ÚcriteriaÚexprss      rŠ   Úand_Ú$RelationshipProperty.Comparator.and_ž  sn   € ô ñ ä"×7Ò7¸ÔAóó ˆEô
 (×2Ñ2Ø—	‘	Ø×"Ñ"Ø $× 5Ñ 5ØŸ™Ø#×3Ñ3°eÑ;ð 3ð ð r‹   c                ó   • [        S5      e)zmProduce an IN clause - this is not implemented
for :func:`_orm.relationship`-based attributes at this time.

zvin_() not yet supported for relationships.  For a simple many-to-one, use in_() against the set of foreign key values.)ÚNotImplementedError©r˜   Úothers     rŠ   Úin_Ú#RelationshipProperty.Comparator.in_µ  s   € ô
 &ð1óð r‹   c                óÄ  • Ub  [        U[        R                  5      (       ab  U R                  R                  [
        [        4;   a  U R                  5       ) $ [        U R                  R                  SU R                  S95      $ U R                  R                  (       a  [        R                  " S5      e[        U R                  R                  XR                  S95      $ )a“  Implement the ``==`` operator.

In a many-to-one context, such as:

.. sourcecode:: text

  MyClass.some_prop == <some object>

this will typically produce a
clause such as:

.. sourcecode:: text

  mytable.related_id == <some id>

Where ``<some id>`` is the primary key of the given
object.

The ``==`` operator provides partial functionality for non-
many-to-one comparisons:

* Comparisons against collections are not supported.
  Use :meth:`~.RelationshipProperty.Comparator.contains`.
* Compared to a scalar one-to-many, will produce a
  clause that compares the target columns in the parent to
  the given target.
* Compared to a scalar many-to-many, an alias
  of the association table will be rendered as
  well, forming a natural join that is part of the
  main body of the query. This will not work for
  queries that go beyond simple AND conjunctions of
  comparisons, such as those which use OR. Use
  explicit joins, outerjoins, or
  :meth:`~.RelationshipProperty.Comparator.has` for
  more comprehensive non-many-to-one scalar
  membership tests.
* Comparisons against ``None`` given in a one-to-many
  or many-to-many context produce a NOT EXISTS clause.

N©Úadapt_sourceú]Can't compare a collection to an object or collection; use contains() to test for membership.)r�   r9   ÚNullr  rÒ   r)   r'   Ú_criterion_existsr-   Ú_optimized_compareÚadapterrÔ   rð   ÚInvalidRequestErrorrO  s     rŠ   Ú__eq__Ú&RelationshipProperty.Comparator.__eq__Ä  sÄ   € ðR ‰}¤
¨5´*·/±/× BÑ BØ—=‘=×*Ñ*¬y¼*Ð.EÓEØ ×2Ñ2Ó4Ð4Ð4ä(ØŸ™×8Ñ8Ø ¨t¯|©|ð 9ð óð ð
 —‘×&×&Ü×0Ò0ð=óð ô
 %Ø—M‘M×4Ñ4Ø¯L©Lð 5ð óð r‹   c                óÔ  • Ub%  [         R                  " [        R                  U5      OS n[	        U SS 5      (       a‰  [        U R                  5      nUc   eUR                  UR                  UR                  pvnU R                  R                  (       a  U(       d  UR                  5       nUR                  nUb
  Ub  Xƒ-  nOUnOSnS nU R                  (       a  U R                  5       n	OS n	U R                  R!                  UU	S9u  n
nnnnnU H?  n[	        U R                  R                  R"                  U5      UU   :H  nUc  UnM:  UU-  nMA     Ub  [%        U
5      U-  nO[%        X R                  R&                  S9nUb  U(       a  U(       d  UR)                  U5      nUb  UR+                  SS05      nU[,        R.                  R1                  U5      -  nUbE  [,        R2                  " S5      R5                  U5      R7                  XÞ5      R9                  XÞ5      nU$ [,        R2                  " S5      R5                  U5      R7                  U5      R9                  U5      nU$ )Nr  F)Údest_selectabler0  )ÚexcludeÚno_replacement_traverseTr   )r8   r†   r;   rB  Úgetattrr7   r  r  r*  Úis_aliased_classr  Ú_is_self_referentialÚ_anonymous_fromclauseÚ_single_table_criterionrZ  r-  r4  r  r-   r·   ÚtraverseÚ	_annotater5   ÚTrue_Ú_ifnoneÚexistsÚwhereÚselect_fromÚcorrelate_except)r˜   Ú	criterionÚkwargsÚwhere_criteriarå   Útarget_mapperÚto_selectablerc  Úsingle_critr0  r6  r7  r8  r9  rœ   r:  r  ÚcritÚjÚexs                       rŠ   rX  Ú1RelationshipProperty.Comparator._criterion_exists  sW  € ð Ñ(ô × Ò ¤×!6Ñ!6¸	ÔBàð ô �t˜Z¨×.Ñ.Ü;BØ—M‘Mó<�ð Ñ'Ð'Ð'à—K‘KØ—O‘OØ×)Ñ)ð /?�ð
 —=‘=×5×5Ö>NØ$1×$GÑ$GÓ$I�Mà+×CÑC�ØÑ*Ø%Ñ1Ø)4Ñ)E™à)4˜øà#(Ð Ø $�à�|�|Ø$(×$;Ñ$;Ó$=Ñ!à$(Ð!ð —‘×+Ñ+Ø -Ø"3ð ,ð ñØØØØØØó �Ü˜tŸ}™}×3Ñ3×:Ñ:¸AÓ>À&ÈÁ)ÑK�Ø!Ñ)Ø%)’Nà%3°dÑ%:’Nñ ð ‰~Ü! "Ó%¨Ñ*‘ä! "¯m©m×.GÑ.GÑH�ð Ñ*Þ"Þ(ð "0×!8Ñ!8¸Ó!H�ð Ñ)Ø!/×!9Ñ!9Ø.°Ð5ó"�ð ”s—y‘y×(Ñ(¨Ó8Ñ8ˆDàÑ$ä—J’J˜q“Mß‘U˜4“[ß ‘[ Ó1ß%Ñ% dÓ6ð	 ð ˆIô —J’J˜q“Mß‘U˜4“[ß ‘[ Ó&ß%Ñ% dÓ+ð	 ð ˆIr‹   c                óŠ   • U R                   R                  (       d  [        R                  " S5      eU R                  " U40 UD6$ )aJ  Produce an expression that tests a collection against
particular criterion, using EXISTS.

An expression like::

    session.query(MyClass).filter(
        MyClass.somereference.any(SomeRelated.x == 2)
    )

Will produce a query like:

.. sourcecode:: sql

    SELECT * FROM my_table WHERE
    EXISTS (SELECT 1 FROM related WHERE related.my_id=my_table.id
    AND related.x=2)

Because :meth:`~.RelationshipProperty.Comparator.any` uses
a correlated subquery, its performance is not nearly as
good when compared against large target tables as that of
using a join.

:meth:`~.RelationshipProperty.Comparator.any` is particularly
useful for testing for empty collections::

    session.query(MyClass).filter(~MyClass.somereference.any())

will produce:

.. sourcecode:: sql

    SELECT * FROM my_table WHERE
    NOT (EXISTS (SELECT 1 FROM related WHERE
    related.my_id=my_table.id))

:meth:`~.RelationshipProperty.Comparator.any` is only
valid for collections, i.e. a :func:`_orm.relationship`
that has ``uselist=True``.  For scalar references,
use :meth:`~.RelationshipProperty.Comparator.has`.

z9'any()' not implemented for scalar attributes. Use has().©r  rÔ   rð   r[  rX  ©r˜   ro  rp  s      rŠ   ÚanyÚ#RelationshipProperty.Comparator.anyh  sB   € ð\ —=‘=×(×(Ü×0Ò0ð-óð ð
 ×)Ò)¨)Ñ>°vÑ>Ð>r‹   c                óŠ   • U R                   R                  (       a  [        R                  " S5      eU R                  " U40 UD6$ )a#  Produce an expression that tests a scalar reference against
particular criterion, using EXISTS.

An expression like::

    session.query(MyClass).filter(
        MyClass.somereference.has(SomeRelated.x == 2)
    )

Will produce a query like:

.. sourcecode:: sql

    SELECT * FROM my_table WHERE
    EXISTS (SELECT 1 FROM related WHERE
    related.id==my_table.related_id AND related.x=2)

Because :meth:`~.RelationshipProperty.Comparator.has` uses
a correlated subquery, its performance is not nearly as
good when compared against large target tables as that of
using a join.

:meth:`~.RelationshipProperty.Comparator.has` is only
valid for scalar references, i.e. a :func:`_orm.relationship`
that has ``uselist=False``.  For collection references,
use :meth:`~.RelationshipProperty.Comparator.any`.

z3'has()' not implemented for collections. Use any().rz  r{  s      rŠ   ÚhasÚ#RelationshipProperty.Comparator.hasž  s@   € ðB �}‰}×$×$Ü×0Ò0ØIóð ð ×)Ò)¨)Ñ>°vÑ>Ð>r‹   c                ó  • U R                   R                  (       d  [        R                  " S5      eU R                   R	                  XR
                  S9nU R                   R                  b  U R                  U5      Ul        U$ )aé  Return a simple expression that tests a collection for
containment of a particular item.

:meth:`~.RelationshipProperty.Comparator.contains` is
only valid for a collection, i.e. a
:func:`_orm.relationship` that implements
one-to-many or many-to-many with ``uselist=True``.

When used in a simple one-to-many context, an
expression like::

    MyClass.contains(other)

Produces a clause like:

.. sourcecode:: sql

    mytable.id == <some id>

Where ``<some id>`` is the value of the foreign key
attribute on ``other`` which refers to the primary
key of its parent object. From this it follows that
:meth:`~.RelationshipProperty.Comparator.contains` is
very useful when used with simple one-to-many
operations.

For many-to-many operations, the behavior of
:meth:`~.RelationshipProperty.Comparator.contains`
has more caveats. The association table will be
rendered in the statement, producing an "implicit"
join, that is, includes multiple tables in the FROM
clause which are equated in the WHERE clause::

    query(MyClass).filter(MyClass.contains(other))

Produces a query like:

.. sourcecode:: sql

    SELECT * FROM my_table, my_association_table AS
    my_association_table_1 WHERE
    my_table.id = my_association_table_1.parent_id
    AND my_association_table_1.child_id = <some id>

Where ``<some id>`` would be the primary key of
``other``. From the above, it is clear that
:meth:`~.RelationshipProperty.Comparator.contains`
will **not** work with many-to-many collections when
used in queries that move beyond simple AND
conjunctions, such as multiple
:meth:`~.RelationshipProperty.Comparator.contains`
expressions joined by OR. In such cases subqueries or
explicit "outer joins" will need to be used instead.
See :meth:`~.RelationshipProperty.Comparator.any` for
a less-performant alternative using EXISTS, or refer
to :meth:`_query.Query.outerjoin`
as well as :ref:`orm_queryguide_joins`
for more details on constructing outer joins.

kwargs may be ignored by this operator but are required for API
conformance.
z9'contains' not implemented for scalar attributes.  Use ==rT  )	r  rÔ   rð   r[  rY  rZ  r´   Ú'_Comparator__negated_contains_or_equalsÚnegation_clause)r˜   rP  rp  rD  s       rŠ   ÚcontainsÚ(RelationshipProperty.Comparator.containsÅ  s{   € ðB —9‘9×$×$Ü×0Ò0ð*óð ð
 —Y‘Y×1Ñ1Ø§L¡Lð 2ð ˆFð �y‰y×&Ñ&Ñ2Ø)-×)JÑ)JØó*�Ô&ð ˆMr‹   c                óØ  ^ • T R                   R                  [        :X  a¹  [        R                  " U5      n        SU 4S jjnSU 4S jjnT R
                  R                  (       ap  [        R                  " T R
                  R                   VVs/ s H;  u  pV[        R                  " U" U5      U" U" U5      X&5      :g  U" U5      S :H  5      PM=     snn6 $ [        R                  " [        T R
                  R                  R                  T R
                  R                  R                  U5      5       VVs/ s H	  u  pVXV:H  PM     snn6 nT R                  U5      ) $ s  snnf s  snnf )Nc                óÐ   >• UR                   n[        R                  " U R                  U R                  STR
                  R                  TR
                  R                  XU5      S9$ )NT)Útype_ÚuniqueÚ	callable_)Údictr5   Ú	bindparamr	  Útyper  Ú_get_attr_w_warn_on_noner  )Ú	local_colÚstateÚ
remote_colÚdict_r˜   s       €rŠ   Ústate_bindparamÚURelationshipProperty.Comparator.__negated_contains_or_equals.<locals>.state_bindparam  sS   ø€ ð
 "ŸJ™J�EÜŸ=š=Ø!Ÿ™Ø'Ÿn™nØ#Ø"&§)¡)×"DÑ"DØ ŸI™I×,Ñ,¨e¸Jó#ñ	ð r‹   c                óL   >• TR                   (       a  TR                  U 5      $ U $ r–   )rZ  )Úcolr˜   s    €rŠ   ÚadaptÚKRelationshipProperty.Comparator.__negated_contains_or_equals.<locals>.adapt,  s   ø€ Ø—|—|Ø#Ÿ|™|¨CÓ0Ð0à"˜
r‹   )r�  r�   r�  úInstanceState[Any]r‘  r�   r¤   úBindParameter[Any])r–  r€   r¤   r€   )r  rÒ   r(   r   Úinstance_stater  Ú_use_getr5   rK  rÑ   Úor_Úzipr  Úprimary_keyÚprimary_key_from_instancerX  )r˜   rP  r�  r“  r—  ÚxÚyro  s   `       rŠ   Ú__negated_contains_or_equalsÚ<RelationshipProperty.Comparator.__negated_contains_or_equals  sY  ø€ ð �y‰y×"Ñ"¤iÓ/Ü"×1Ò1°%Ó8�ðØ1ðà-ðð !3ðð (÷	÷#ð —=‘=×)×)ÜŸ8š8ð +/¯-©-×*JÒ*Jôò +K¡ ô  ŸGšGÙ % a£Ù#2±5¸³8¸UÓ#Fñ!Gá % a£¨DÑ 0öñ
 +Kòð	ð 	ô Ÿšô #&ØŸ™×,Ñ,×8Ñ8ØŸ™×,Ñ,×FÑFÀuÓMô#ôò#™˜ð ”Fñ#òðˆIð ×*Ñ*¨9Ó5Ð5Ð5ùó)ùós   ÂAE 
Ä9E&
c                ó”  • Ub  [        U[        R                  5      (       a\  U R                  R                  [
        :X  a.  [        U R                  R                  SU R                  S9) 5      $ U R                  5       $ U R                  R                  (       a  [        R                  " S5      e[        U R                  U5      5      $ )aï  Implement the ``!=`` operator.

In a many-to-one context, such as:

.. sourcecode:: text

  MyClass.some_prop != <some object>

This will typically produce a clause such as:

.. sourcecode:: sql

  mytable.related_id != <some id>

Where ``<some id>`` is the primary key of the
given object.

The ``!=`` operator provides partial functionality for non-
many-to-one comparisons:

* Comparisons against collections are not supported.
  Use
  :meth:`~.RelationshipProperty.Comparator.contains`
  in conjunction with :func:`_expression.not_`.
* Compared to a scalar one-to-many, will produce a
  clause that compares the target columns in the parent to
  the given target.
* Compared to a scalar many-to-many, an alias
  of the association table will be rendered as
  well, forming a natural join that is part of the
  main body of the query. This will not work for
  queries that go beyond simple AND conjunctions of
  comparisons, such as those which use OR. Use
  explicit joins, outerjoins, or
  :meth:`~.RelationshipProperty.Comparator.has` in
  conjunction with :func:`_expression.not_` for
  more comprehensive non-many-to-one scalar
  membership tests.
* Comparisons against ``None`` given in a one-to-many
  or many-to-many context produce an EXISTS clause.

NrT  rV  )r�   r9   rW  r  rÒ   r(   r-   rY  rZ  rX  rÔ   rð   r[  r‚  rO  s     rŠ   Ú__ne__Ú&RelationshipProperty.Comparator.__ne__J  s¬   € ðV ‰}¤
¨5´*·/±/× BÑ BØ—=‘=×*Ñ*¬iÓ7Ü(ØŸ™×9Ñ9Ø ¨t¯|©|ð :ð ð óð ð  ×1Ñ1Ó3Ð3Ø—‘×&×&Ü×0Ò0ð9óð ô % T×%FÑ%FÀuÓ%MÓNÐNr‹   c                ób   • U R                   R                  R                  5         U R                   $ r–   )r  r+  Ú_check_configurer—   s    rŠ   Ú_memoized_attr_propertyÚ7RelationshipProperty.Comparator._memoized_attr_propertyˆ  s"   € Ø�I‰I×Ñ×-Ñ-Ô/Ø—9‘9Ðr‹   )r  r  r  r  r  )NNr°   )
r  úRelationshipProperty[_PT]r  z_InternalEntityType[Any]r  zOptional[AliasedInsp[Any]]r  r  r  úTuple[ColumnElement[bool], ...])r  zAliasedInsp[Any]r¤   z$RelationshipProperty.Comparator[Any])r¤   r   )r¤   r!  )r¤   rk   ©r¤   rÃ   )r  z_EntityType[Any]r¤   zPropComparator[_PT])rI  z_ColumnExpressionArgument[bool]r¤   zPropComparator[Any])rP  r   r¤   r   )rP  r   r¤   rÃ   r–   )ro  ú)Optional[_ColumnExpressionArgument[bool]]rp  r   r¤   r2   )ro  r¯  rp  r   r¤   rÃ   )rP  z_ColumnExpressionArgument[Any]rp  r   r¤   rÃ   )r¤   r¬  )r¨   r©   rª   r«   r¬   r­   r®   rî   r  r#  r'  r-  r;  r  rK  rQ  Ú__hash__r\  rX  r|  r  r„  r‚  r¦  rª  r¯   r°   r‹   rŠ   ró   r    s�  ‡ ñ	ð(
ˆ	ð ?Ó>Ø,Ó,ð ;?Ø26Ø>@ð	2à+ð	2ð 3ð	2ð 8ð		2ð
 0ð	2ð <õ	2ð*	Ø#3ð	à1ô	ð )Ó(ð		ð Óð	ô	(ô	&ô	Iô	ô4	ð	Ø<ð	à ô	ô.
	ð ˆô<	ð@ DHðd	à@ðd	ð ðd	ð õ	d	ðP DHð4	?à@ð4	?ð ð4	?ð !õ	4	?ðp DHð%	?à@ð%	?ð ð%	?ð !õ	%	?ðNP	Ø7ðP	ØCFðP	à ôP	ðd1	6Øð1	6à ô1	6ôf<	O÷|	r‹   ró   c                ó¦   • Uc   eS nUb6  [        U5      nUc   e[        U5      (       a  UR                  R                  nU R	                  USUUS9$ )NT)Úvalue_is_parentrU  r3  )r7   r   Ú_adapterÚadapt_clauserY  )r˜   Úinstancer3  Úfrom_entityrU  Úinsps         rŠ   Ú_with_parentÚ!RelationshipProperty._with_parentŒ  so   € ð Ñ#Ð#Ð#Ø48ˆØÑ"Ü7>¸{Ó7KˆDØÑ#Ð#Ð#Ü$ T×*Ñ*Ø#Ÿ}™}×9Ñ9�Ø×&Ñ&ØØ Ø%Ø+ð	 'ð 
ð 	
r‹   c                ó8  ^ ^^^	^
• Tb:   [        T5      mTb  [        TSS5      (       d  [        R                  " ST -  5      eU(       + nTc  T R                  XSS9$ U(       d.  T R                  R                  T R                  R                  snmO-T R                  R                  T R                  R                  snmU(       a  T R                  m
OT R                  m
[        R                  " TR                  5       5      m	SUU	U
U U4S jjnT R                   b9  U(       a2  [#        T R                   R%                  5       5      R'                  U5      n[(        R*                  " U0 SU05      nU(       a  U" U5      nU$ ! [        R                   a    S m GNƒf = f)NÚis_instanceFzÃMapped instance expected for relationship comparison to object.   Classes, queries and other SQL elements are not accepted in this context; for comparison with a subquery, use %s.has(**criteria).rT  rŒ  c                ót   >• U R                   T;   a'  TR                  TTTTU R                      5      U l        g g r–   )Ú_identifying_keyrŽ  rž   )rŒ  Úbind_to_colr’  r  r˜   r�  s    €€€€€rŠ   Úvisit_bindparamÚ@RelationshipProperty._optimized_compare.<locals>.visit_bindparamÎ  s@   ø€ Ø×)Ñ)¨[Ó8Ø%)×%BÑ%BØØØØ 	× :Ñ :Ñ;ó	&�	Õ"ð 9r‹   )rŒ  rš  r¤   r§   )r7   rð   ÚNoInspectionAvailablerb  rñ   Ú_lazy_none_clauser»   Ú
_lazywhereÚ_bind_to_colÚ_rev_lazywhereÚ_rev_bind_to_colr  r+  r   Úinstance_dictÚobjrœ   rG   re  rg  r<   Úcloned_traverse)r˜   r�  r²  rU  r3  Úreverse_directionro  r¿  r¾  r’  r  s   ``      @@@rŠ   rY  Ú'RelationshipProperty._optimized_compare   sŒ  ü€ ð ÑðÜ ›�ð ‰}¤G¨E°=À%×$HÑ$HÜ×*Ò*ð.ð 15ñ	5óð ð !0Ô/Ðà‰=Ø×)Ñ)Ø!ð *ð ð ö !à×#Ñ#×.Ñ.Ø×#Ñ#×0Ñ0ð #ˆI‘{ð ×#Ñ#×2Ñ2Ø×#Ñ#×4Ñ4ð #ˆI�{ö
 Ø—[‘[‰Fà—[‘[ˆFä×(Ò(¨¯©«Ó5ˆ÷	ó 	ð �>‰>Ñ%®/Ü%Ø—‘×4Ñ4Ó6óç‰h�yÓ!ð ô ×,Ò,Ø�r˜K¨Ð9ó
ˆ	ö Ù$ YÓ/ˆIØÐøôq ×/Ñ/ó Ø“ðús   ŠE? Å?FÆFc                óœ   ^^^^^^• TR                  T5      mTR                  TR                  5        TR                  mSUUUUUU4S jjnU$ )a  Create the callable that is used in a many-to-one expression.

E.g.::

    u1 = s.query(User).get(5)

    expr = Address.user == u1

Above, the SQL should be "address.user_id = 5". The callable
returned by this method produces the value "5" based on the identity
of ``u1``.

c                 óB  >• Tc   eTTR                      =pU [        R                  LnTR                  T	TTT	R                  (       a  [
        R                  O [
        R                  [
        R                  -  S9nU[        R                  L a0  U(       d(  [        R                  " ST< S[        T	5      < S35      eOEU[        R                  L a0  U(       d(  [        R                  " ST< S[        T	5      < S35      eOUnUc  [        R                  " ST-  5        U$ )N©ÚpassivezCan't resolve value for column z on object z'; no value has been set for this columnz2; the object is detached and the value was expiredz Got None for value of column %s; this is unsupported for a relationship comparison and will not currently produce an IS comparison (but may in a future release))r	  r!   ÚNO_VALUEÚ_get_state_attr_by_columnÚ
persistentr"   ÚPASSIVE_OFFÚPASSIVE_NO_FETCHÚINIT_OKÚ	NEVER_SETrð   r[  r#   ÚPASSIVE_NO_RESULTr6   rò   )
Ú
last_knownÚ	to_returnÚexisting_is_availableÚcurrent_valueÚcolumnr’  Ú	lkv_fixedr  r  r�  s
       €€€€€€rŠ   Ú_goÚ:RelationshipProperty._get_attr_w_warn_on_none.<locals>._go  s(  ø€ ØÑ(Ð(Ð(Ø%.¨t¯x©xÑ%8Ð8ˆJàÔ"6×"?Ñ"?Ð?ð "ð #×<Ñ<ØØØð ×'×'ô  ×+Ò+ä$×5Ñ5¼×8KÑ8KÑKð =ð 	ˆMð Ô 4× >Ñ >Ò>Þ,Ü ×4Ó4ó "¤9¨UÖ#3ð5óð ð -ð Ô"6×"HÑ"HÒHÞ,Ü ×4Ó4ó &,¬Y°uÖ-=ð?óð ð -ð *�	ØÑ Ü—	’	ð4ð 7=ñ=ôð Ðr‹   )r¤   r   )Úget_property_by_columnÚ_track_last_known_valuer	  Ú_last_known_values)r˜   r  r�  r’  rÜ  rÞ  rÝ  r  s    ```` @@rŠ   rŽ  Ú-RelationshipProperty._get_attr_w_warn_on_noneä  sG   ý€ ðb ×,Ñ,¨VÓ4ˆð
 	×%Ñ% d§h¡hÔ/à×,Ñ,ˆ	÷-	ô -	ð^ ˆ
r‹   c                óö   • U(       d,  U R                   R                  U R                   R                  pCO+U R                   R                  U R                   R                  pC[        X45      nU(       a  U" U5      nU$ r–   )r»   rÃ  rÄ  rÅ  rÆ  rF   )r˜   rÊ  rU  ro  r¾  s        rŠ   rÂ  Ú&RelationshipProperty._lazy_none_clauseO  sn   € ö
 !à×#Ñ#×.Ñ.Ø×#Ñ#×0Ñ0ñ #ð ×#Ñ#×2Ñ2Ø×#Ñ#×4Ñ4ð #ô
 ,¨IÓCˆ	æÙ$ YÓ/ˆIØÐr‹   c                ót   • [        U R                  R                  R                  5      S-   U R                  -   $ )NÚ.)r”   r+  r  r¨   r	  r—   s    rŠ   Ú__str__ÚRelationshipProperty.__str__e  s+   € Ü�4—;‘;×%Ñ%×.Ñ.Ó/°#Ñ5¸¿¹Ñ@Ð@r‹   c	           	     ó  • U(       a  U R                    H  n	X)4U;   d  M    g    SU R                  ;  a  g U R                  U;  a  g U R                  (       Ga™  UR	                  U R                  5      n
[        U
5      (       d   eU
R                  X#5      nU
R                  (       a  UR                  (       a   e U(       a7  UR	                  U R                  5      R                  XE[        R                  S9  / nU H^  n[        R                  " U5      n[        R                  " U5      nSX~U 4'   UR                  UUUUUS9nUc  MM  UR!                  U5        M`     U(       d<  [        R"                  " XEU R                  5      nU H  nUR%                  U5        M     g UR	                  U R                  5      n[        U5      (       d   eUR'                  UUUS[        R                  S9  g X0R                     nUbF  [        R                  " U5      n[        R                  " U5      nSX~U 4'   UR                  UUUUUS9nOS nU(       d  UXPR                  '   g UR	                  U R                  5      R'                  XEUS 5        g )NÚmergeTrÎ  )ÚloadÚ
_recursiveÚ_resolve_conflict_mapF)Ú_adaptrÏ  )rø   Ú_cascader	  rÔ   Úget_implr   Úget_collectionÚ
collectionÚemptyÚgetr"   ÚPASSIVE_MERGEr   r›  rÇ  Ú_mergeÚappendÚinit_state_collectionÚappend_without_eventr÷   )r˜   ÚsessionÚsource_stateÚsource_dictÚ
dest_stateÚ	dest_dictrì  rí  rî  ÚrÚimplÚinstances_iterableÚ	dest_listÚcurrentÚcurrent_stateÚcurrent_dictrÈ  ÚcollÚcÚ	dest_impls                       rŠ   rë  ÚRelationshipProperty.mergeh  sg  € ö Ø×+Ô+�Ø Ð$¨
Õ2Ùñ ,ð ˜$Ÿ-™-Ó'Øà�8‰8˜;Ó&Øà�<�<ˆ<Ø×(Ñ(¨¯©Ó2ˆDä,¨T×2Ñ2Ð2Ð2Ø!%×!4Ñ!4°\Ó!OÐð
 48·?·?Ð)×/×/ÐLÐLÈæð ×#Ñ# D§H¡HÓ-×1Ñ1Ø´;×3LÑ3Lð 2ñ ð ˆIÛ-�Ü *× 9Ò 9¸'Ó B�Ü)×7Ò7¸Ó@�Ø48�
¨4Ð0Ñ1Ø—n‘nØ!Ø ØØ)Ø*?ð %ð �ð “?Ø×$Ñ$ SÖ)ñ .ö Ü!×7Ò7Ø¨4¯8©8ó�ó #�AØ×-Ñ-¨aÖ0ò #ð '×/Ñ/°·±Ó9�	Ü0°×;Ñ;Ð;Ð;Ø—‘ØØØØ Ü'×5Ñ5ð ò ð "§(¡(Ñ+ˆGØÑ"Ü *× 9Ò 9¸'Ó B�Ü)×7Ò7¸Ó@�Ø48�
¨4Ð0Ñ1Ø—n‘nØ!Ø ØØ)Ø*?ð %ð ‘ð �æØ&)�	Ÿ(™(Ò#à×#Ñ# D§H¡HÓ-×1Ñ1Ø¨3°õr‹   c                óN  • UR                   U   R                  nUR                  XUS9nU[        R                  L d  Uc  / $ [        U5      (       a7  UR                  XXdS9 Vs/ s H  n[        R                  " U5      U4PM     sn$ [        R                  " U5      U4/$ s  snf )z|Return a list of tuples (state, obj) for the given
key.

returns an empty list if the value is None/empty/PASSIVE_NO_RESULT
rÎ  )	Úmanagerr  rõ  r!   r×  r   rò  r   r›  )r˜   r�  r’  r	  rÏ  r  r¡  Úos           rŠ   Ú_value_as_iterableÚ'RelationshipProperty._value_as_iterableÉ  s¯   € ð �}‰}˜SÑ!×&Ñ&ˆØ�H‰H�U¨7ˆHÐ3ˆØÔ$×6Ñ6Ò6¸!¹)ØˆIÜ& t×,Ñ,ð ×,Ñ,¨U¸1Ð,ÑNóâN�Aô ×*Ò*¨1Ó-¨qÓ1ÙNñð ô
  ×.Ò.¨qÓ1°1Ð5Ð6Ð6ùòs   Á$"B"c           
   #  ó‚  #   • US:w  d  U R                   (       a  [        R                  nO![        R                  [        R                  -  nUS:X  a3  UR
                  U R                     R                  R                  X#5      nOU R                  X#U R                  US9nUS:H  =(       a    SU R                  ;  nU Hý  u  pšX”;   a  M  U
c  M  U	c   e[        R                  " U
5      nU(       a  U" U	5      (       a  MB  U(       a  U	R                  (       d  M\  U	R
                  R                  nUR                  U R                  R                  R                  5      (       d@  [!        SU R                  < SU R"                  R$                  < SU
R&                  < S	35      eUR)                  U	5        X¬X›4v •  Mÿ     g 7f)
NÚdeletezsave-updaterÎ  zrefresh-expireúdelete-orphanzAttribute 'z' on class 'z"' doesn't handle objects of type 'Ú')r½   r"   ÚPASSIVE_NO_INITIALIZErÓ  ÚNO_RAISEr  r	  r  Úget_all_pendingr  rð  r   rÇ  r  ÚisaÚclass_managerÚAssertionErrorr+  r  rû   Úadd)r˜   rˆ  r�  r’  Úvisited_statesÚhalt_onrÏ  ÚtuplesÚskip_pendingr›  r  rÇ  Úinstance_mappers                rŠ   Úcascade_iteratorÚ%RelationshipProperty.cascade_iteratorâ  sy  é € ð �HÓ × 4× 4Ü!×7Ñ7‰Gä!×-Ñ-´×0DÑ0DÑDˆGà�MÓ!Ø—]‘] 4§8¡8Ñ,×1Ñ1×AÑAÀ%ÓO‰Fà×,Ñ,Ø˜dŸh™h°ð -ð ˆFð
 Ð%Ñ%×N¨/ÀÇÁÑ*Nð 	ó "(ÑˆNØÓ/Ùà‰yñ
 à!Ñ-Ð-Ð-Ü&×4Ò4°QÓ7ˆMæ™7 >×2Ñ2Ùæ N×$6×$6Ùà,×4Ñ4×;Ñ;ˆOà"×&Ñ& t§{¡{×'@Ñ'@×'GÑ'G×HÑHÝ$ð —x”x §¡×!3Ô!3°Q·[´[ðBóð ð ×Ñ˜~Ô.à nÐCÔCòA "(ùs   ‚F=F?c                óB   • U R                   (       a  gU R                  SL$ )NF)rÛ   rç   r—   s    rŠ   Ú_effective_sync_backrefÚ,RelationshipProperty._effective_sync_backref  s   € à�=�=Øà×$Ñ$¨EÐ1Ð1r‹   c                óü   • U R                   (       a0  UR                  (       a  [        R                  " SU< SU < S35      eU R                   (       a*  UR                   (       d  UR                  SLa  SUl        g g g g )NúRelationship z( cannot specify sync_backref=True since z includes viewonly=True.F)rÛ   rç   rð   r[  )Úrel_aÚrel_bs     rŠ   Ú_check_sync_backrefÚ(RelationshipProperty._check_sync_backref&  se   € ð �>�>˜e×0×0Ü×,Ó,ã-2³Eð;óð ð
 �N�NØ—N—NØ×"Ñ"¨%Ò/à!&ˆEÕð 0ð #ð r‹   c           
     ó
  • U R                   R                  USS9n[        U[        5      (       d  [        R
                  " SU < SU< S35      eU R                  X5        U R                  X 5        U R                  R                  U5        UR                  R                  U 5        UR                  5         UR                   R                  U R                  5      (       d0  [        R                  " SU< SU < SU< S	U R                  < 35      eUR                  (       ab  U R                  [        [         4;   aG  U R                  UR                  :X  a,  [        R                  " U< S
U < SU R                  < S35      eg g g )NF)Ú_configure_mappersz back_populates on relationship 'z' refers to attribute 'z{' that is not a relationship.  The back_populates parameter should refer to the name of a relationship on the target class.zreverse_property z on relationship z references relationship z", which does not reference mapper z and back-reference z  are both of the same direction z<.  Did you mean to set remote_side on the many-to-one side ?)r  Úget_propertyr�   r¹   rð   r[  r)  rø   r  Ú_setup_entityÚcommon_parentr+  rñ   Ú_configure_startedrÒ   r)   r(   )r˜   r	  rP  s      rŠ   Ú_add_reverse_propertyÚ*RelationshipProperty._add_reverse_property6  s<  € Ø—‘×(Ñ(¨ÀÐ(ÐGˆÜ˜%Ô!5×6Ñ6Ü×,Ó,ó !£%ð)óð ð 	× Ñ  Ô-ð 	× Ñ  Ô-à×Ñ×"Ñ" 5Ô)Ø×Ñ×#Ñ# DÔ)à×ÑÔà�|‰|×)Ñ)¨$¯+©+×6Ñ6Ü×&Ó&ó ››e T§[£[ð2óð ð ×$×$Ø—‘¤9¬iÐ"8Ó8Ø—‘ %§/¡/Ó1ä×&Ò&ó ›$ §¤ð0óð ð 2ð 9ð %r‹   c                óN   • U R                   R                  5         U R                  $ )z‘Return the target mapped entity, which is an inspect() of the
class or aliased class that is referenced by this
:class:`.RelationshipProperty`.

)r+  r©  r  r—   s    rŠ   r  ÚRelationshipProperty.entityb  s   € ð 	�‰×$Ñ$Ô&Ø�{‰{Ðr‹   c                ó.   • U R                   R                  $ )zSReturn the targeted :class:`_orm.Mapper` for this
:class:`.RelationshipProperty`.

r&  r—   s    rŠ   r  ÚRelationshipProperty.mapperl  s   € ð �{‰{×!Ñ!Ð!r‹   c                ó¬  >• U R                  5         U R                  5         U R                  5         U R                  5         U R	                  5         U R                  U R                  5        U R                  5         U R                  5         U R                  R                  5         [        TU ]1  5         [        SU R                  S5      5      U l        g )Nr_   ))rÝ   ru   )Ú_check_conflictsÚ_process_dependent_argumentsr.  Ú_setup_registry_dependenciesÚ_setup_join_conditionsÚ_check_cascade_settingsrð  Ú
_post_initÚ_generate_backrefrÇ   Ú"_warn_for_conflicting_sync_targetsrí   Údo_initr   Ú_get_strategyr»   )r˜   rû   s    €rŠ   r@  ÚRelationshipProperty.do_initt  s¡   ø€ Ø×ÑÔØ×)Ñ)Ô+Ø×ÑÔØ×)Ñ)Ô+Ø×#Ñ#Ô%Ø×$Ñ$ T§]¡]Ô3Ø�‰ÔØ×ÑÔ Ø×Ñ×?Ñ?ÔAÜ‰‰ÔÜ"Ø˜$×,Ñ,Ð-BÓCó
ˆÕr‹   c                óž   • U R                   R                  R                  R                  U R                  R                  R                  5        g r–   )r+  r  ÚregistryÚ_set_depends_onr  r—   s    rŠ   r:  Ú1RelationshipProperty._setup_registry_dependenciesƒ  s3   € Ø�‰×Ñ×#Ñ#×3Ñ3Ø�K‰K×Ñ×'Ñ'õ	
r‹   c           	     óÒ  • U R                   nS H,  n[        X5      nUR                  U R                  S   5        M.     S HP  n[        X5      nUR                  nUc  M  [        [        R                  " [        R                  XBS95      Ul        MR     UR                  R                  nUb/  [        U5      (       a  [        R                  " SU< SU < S35      eUR                  R                  S	LaW  UR                  R                  b@  [        S
 [         R"                  " UR                  R                  5       5       5      U l        OS	U l        [         R$                  " S [         R&                  " UR(                  R                  5       5       5      U l        [         R$                  " S [         R&                  " UR,                  R                  5       5       5      U l        g)zrConvert incoming configuration arguments to their
proper form.

Callables are resolved, ORM annotations removed.

)rµ   r³   r´   rœ   r¶   r·   r   )r³   r´   N©Úargnamezsecondary argument z passed to to relationship() z± must be a Table object or other FROM clause; can't send a mapped class directly as rows in 'secondary' are persisted independently of a class that is mapped to that same table.Fc              3  ój   #   • U  H)  n[         R                  " [        R                  US S9v •  M+     g7f)rµ   rH  N©r8   r†   r;   r‡   ©rC  r¡  s     rŠ   rE  ÚDRelationshipProperty._process_dependent_arguments.<locals>.<genexpr>½  s5   é € ð "ò C�Aô × Ò Ü×,Ñ,¨a¸öò Cùó   ‚13c              3  ój   #   • U  H)  n[         R                  " [        R                  US S9v •  M+     g7f)r¶   rH  NrK  rL  s     rŠ   rE  rM  Æ  s5   é € ð :
ò I�ô ×ÒÜ×(Ñ(¨!°^öò IùrN  c              3  ój   #   • U  H)  n[         R                  " [        R                  US S9v •  M+     g7f)r·   rH  NrK  rL  s     rŠ   rE  rM  Í  s5   é € ð +
ò H�ô ×ÒÜ×(Ñ(¨!°]öò HùrN  )rÓ   rb  r¡   Ú_clsregistry_resolversr“   r.   r8   r†   r;   r‡   rœ   r   rð   rñ   rµ   rG  r6   Úto_listÚ
column_setÚto_column_setr¶   rÊ   r·   )r˜   Ú	init_argsÚattrÚrel_argÚvalrœ   s         rŠ   r9  Ú1RelationshipProperty._process_dependent_argumentsˆ  sž  € ð —O‘Oˆ	ó
ˆDô ˜iÓ.ˆGà×-Ñ-¨d×.IÑ.IÈ!Ñ.LÖMñ
ó 3ˆDÜ˜iÓ.ˆGØ×"Ñ"ˆCØ‹Ü#2Ü×$Ò$Ü×0Ñ0°#ñó$�Ö ñ	 3ð ×'Ñ'×0Ñ0ˆ	ØÑ Ô%5°i×%@Ñ%@Ü×&Ó&ó
 *3³Dð	:óð ð ×Ñ×'Ñ'¨uÒ4Ø×"Ñ"×+Ñ+Ñ7ä!ñ "ô Ÿš i×&8Ñ&8×&AÑ&AÔBó	"ó ˆD�Mð "ˆDŒMä*.¯/ª/ñ :
ô ×'Ò'¨	×(>Ñ(>×(GÑ(GÔHó	:
ó +
ˆÔ'ô  Ÿ?š?ñ +
ô ×'Ò'¨	×(=Ñ(=×(FÑ(FÔGó	+
ó 
ˆÕr‹   c
                óÌ  • Uc   U R                   c  U R                  XS5        Og Un
Uc   eUbf  [        U[        5      n[        U[        5      nU(       a  SU l        SU R
                  44U l        O&U(       a  SU l        SU R
                  44U l        OS=p¼[        U
5      n
[        U
S5      (       GaH  U
R                  n[        U[        5      (       ah  [        U[        R                  5      (       aI  U R                  c;  [        R                   " U5      (       a  ["        R$                  " SU S35      eXÐl        OU(       d  U(       d  SU l        U
R(                  (       a  [        U[        5      (       a/  [        U[*        R,                  5      (       a  U
R(                  S   nOU
R(                  S	   n[        US
5      (       a  UR.                  n[1        Xô5      n
OEUn
OB["        R$                  " SU
 S35      e[        U
S
5      (       a  U
R.                  n
[1        X¤5      n
U R                  c  U(       d  U(       d  SU l        U R                   c  [3        SU
5      U l         g g )Nr}   rÝ   r~   FÚ
__origin__zCollection annotation type z£ cannot be instantiated; please provide an explicit 'collection_class' parameter (e.g. list, set, etc.) to the relationship() function to accompany this annotationéÿÿÿÿr   Ú__forward_arg__zGeneric alias z requires an argumentz_RelationshipArgumentType[_T])r’   Ú_raise_for_requiredÚ
issubclassr$   r    rÝ   rö   rL   Úhasattrr[  r�   r�  r   r   rÕ   Ú_py_inspectÚ
isabstractrð   rñ   rÔ   Ú__args__ÚtypingÚMappingr]  rN   r   )r˜   Ú	decl_scanrD  ÚclsÚoriginating_moduler	  Úmapped_containerÚ
annotationÚextracted_mapped_annotationÚis_dataclass_fieldr’   Úis_write_onlyÚ
is_dynamicÚ
arg_originÚtype_argÚstr_arguments                   rŠ   Údeclarative_scanÚ%RelationshipProperty.declarative_scanÔ  s5  € ð 'Ñ.Ø�}‰}Ñ$Ø×(Ñ(¨Õ2àà.ˆØ!Ñ-Ð-Ð-àÑ'Ü&Ð'7¼ÓIˆMÜ#Ð$4´mÓDˆJÞØ(�”	Ø&,¨d¯i©iÐ%8Ð$:�Õ!ÞØ%�”	Ø&,¨d¯i©iÐ%8Ð$:�Ô!øà).Ð.ˆMä-¨hÓ7ˆä�8˜\×*Ò*Ø!×,Ñ,ˆJÜ˜*¤d×+Ñ+´
ØœCŸN™N÷1ñ 1ð ×(Ñ(Ñ0Ü"×-Ò-¨j×9Ñ9Ü$×2Ò2Ø9¸*¸ð F)ð )óð ð -7Ô)øæ"®:Ø$�”à× × Ü˜j¬$×/Ñ/´JØ¤§¡÷5ñ 5ð  (×0Ñ0°Ñ4‘Hà'×0Ñ0°Ñ3�HÜ˜8Ð%6×7Ñ7Ø#+×#;Ñ#;�Lä>Ø$ó ‘Hð  (‘Hä×*Ò*Ø$ X JÐ.CÐDóð ô �XÐ0×1Ñ1Ø×/Ñ/ˆHä6ØóˆHð
 ×!Ñ!Ñ)Þ!Þà ˆDŒLð �=‰=Ñ Ü Ð!@À(ÓKˆD�Mð !r‹   zsqlalchemy.orm.mapperc                óÀ  • SU R                   ;   a  g [        R                  R                  nU(       a  UnOU R                  n[        U[        5      (       a!  [        SU R                  U5      " 5       5      nO;[        U5      (       a)  [        U[        UR                  45      (       d  U" 5       nOUn[        U[        5      (       a  [        USS9nOO [        U5      n[!        US5      (       d2  [        R"                  " SU R$                  < S[        U5      < S35      eXPl        U R&                  R(                  U l        g ! [        R                   a    S n N}f = f)	Nr  z_ExternalEntityType[Any]F©Ú	configurer  úrelationship 'z2' expects a class or a mapper argument (received: Ú))Ú__dict__r6   Ú	preloadedÚ
orm_mapperr’   r�   r”   r   Ú_clsregistry_resolve_namerž   r�  r[   r   r7   rð   rÁ  r`  rñ   r	  r  Úpersist_selectableÚtarget)r˜   Ú_RelationshipProperty__argumentÚ	mapperlibr’   Úresolved_argumentr  s         rŠ   r.  Ú"RelationshipProperty._setup_entity6  s3  € à�t—}‘}Ó$Øä—N‘N×-Ñ-ˆ	æØ!‰Hà—}‘}ˆHô �h¤×$Ñ$ô !%Ø*Ø×.Ñ.¨xÔ8Ó:ó!Ñô �h×Ñ¬
Ø”t˜Y×-Ñ-Ð.÷)
ñ )
ñ !)£
Ñà (Ðô Ð'¬×.Ñ.Ü!Ð"3¸uÑE‰FðÜ Ð!2Ó3�ô ˜6 8×,Ñ,Ü×*Ó*ð —x”x¤Ð&7Ö!8ð:óð ð ŒØ—k‘k×4Ñ4ˆ�øô ×/Ñ/ó Ø’ðús   ÃE ÅEÅEc                óþ  • [        S0 SU R                  R                  _SU R                  R                  _SU R                  R                  _SU R                  R                  _SU R
                  R                  R                  _SU R
                  R                  R                  _SU R
                  R                  R                  _SU R                  R                  _S	U R                  R                  _S
U R                  _SU R                  _SU R                  _SU R                  _SU _SU R                   (       + _SU R"                  _6=U l        nUR                  U l        UR                  U l	        UR                  U l        UR&                  U l        UR                  U l        UR(                  U l        UR*                  U l        UR,                  U l        UR.                  U l        UR2                  U l        g )NÚparent_persist_selectableÚchild_persist_selectableÚparent_local_selectableÚchild_local_selectabler³   rœ   r´   Úparent_equivalentsÚchild_equivalentsÚconsider_as_foreign_keysrÑ   r·   Úself_referentialr  Úsupport_syncÚcan_be_synced_fnr°   )rÆ   r+  r}  r  Úlocal_tablerÓ   r³   r“   rœ   r´   Ú_equivalent_columnsr  rÊ   rÑ   r·   rd  rÛ   Ú_columns_are_mappedrÇ   rÒ   Úremote_columnsrÌ   rÎ   Úforeign_key_columnsrË   rÐ   )r˜   Újcs     rŠ   r;  Ú+RelationshipProperty._setup_join_conditionsf  sÉ  € Ü$1ò %
Ø&*§k¡k×&DÒ&Dð%
à%)§[¡[×%CÒ%Cð%
ð %)§K¡K×$;Ò$;ð%
ð $(§;¡;×#:Ò#:ð	%
ð
 Ÿ™×3Ñ3×<Ò<ð%
ð —o‘o×/Ñ/×8Ò8ð%
ð Ÿ/™/×7Ñ7×@Ò@ð%
ð  $Ÿ{™{×>Ò>ð%
ð #Ÿk™k×=Ò=ð%
ð &*×%DÒ%Dð%
ð  $×6Ò6ð%
ð ×(Ò(ð%
ð "×6Ò6ð%
ñ ð%
ð "Ÿ]™]Õ*ð%
ð  "×5Ò5ð!%
ð 	
ˆÔ˜rð$ Ÿ>™>ˆÔØ×-Ñ-ˆÔØŸ™ˆŒØŸ™ˆŒØ"$×"7Ñ"7ˆÔØ×,Ñ,ˆÔØ×-Ñ-ˆÔØ!#×!5Ñ!5ˆÔØ(*×(>Ñ(>ˆÔ%Ø+-×+IÑ+IˆÕ(r‹   c                ó    • U R                   S   $ )Nr   ©rQ  r—   s    rŠ   Ú_clsregistry_resolve_argÚ-RelationshipProperty._clsregistry_resolve_arg„  ó   € ð ×*Ñ*¨1Ñ-Ð-r‹   c                ó    • U R                   S   $ )Nr   r–  r—   s    rŠ   r|  Ú.RelationshipProperty._clsregistry_resolve_nameŠ  r™  r‹   zsqlalchemy.orm.clsregistryc                ó„   • [         R                  R                  R                  nU" U R                  R
                  U 5      $ r–   )r6   rz  Úorm_clsregistryÚ	_resolverr+  r  )r˜   rž  s     rŠ   rQ  Ú+RelationshipProperty._clsregistry_resolvers�  s0   € ô —N‘N×2Ñ2×<Ñ<ˆ	á˜Ÿ™×+Ñ+¨TÓ2Ð2r‹   c           	     ó†  • U R                   R                  (       a¦  [        U R                   R                  SS9R	                  U R
                  5      (       di  [        R                  " SU R
                  < SU R                   R                  R                  < SU R                   R                  R                  < S35      egg)zGTest that this relationship is legal, warn about
inheritance conflicts.Fru  z)Attempting to assign a new relationship 'z$' to a non-primary mapper on class 'zm'.  New relationships can only be added to the primary mapper, i.e. the very first mapper created for class 'z' N)	r+  Únon_primaryr   r  Úhas_propertyr	  rð   rñ   r¨   r—   s    rŠ   r8  Ú%RelationshipProperty._check_conflictsœ  s‹   € ð �;‰;×"×"¬<Ø�K‰K×Ñ¨%ñ,
ç
‰,�t—x‘xÓ
 õ,!ô ×&Ó&ð —H”HØ—K‘K×&Ñ&×/Ô/Ø—K‘K×&Ñ&×/Ô/ð	óð ð,!Ð"r‹   c                ó   • U R                   $ )zLReturn the current cascade setting for this
:class:`.RelationshipProperty`.
)rð  r—   s    rŠ   rÚ   ÚRelationshipProperty.cascade¯  s   € ð
 �}‰}Ðr‹   c                ó&   • U R                  U5        g r–   )Ú_set_cascade©r˜   rÚ   s     rŠ   rÚ   r¥  ¶  s   € à×Ñ˜'Õ"r‹   c                ó  • [        U5      nU R                  (       a(  [        UR                  [         R                  5      5      nSU R                  ;   a  U R                  U5        X l        U R                  (       a  X R                  l        g g )Nr  )	r/   rÛ   ÚintersectionÚ_viewonly_cascadesry  r<  rð  rÂ   rÚ   )r˜   Úcascade_argrÚ   s      rŠ   r§  Ú!RelationshipProperty._set_cascadeº  sl   € Ü  Ó-ˆà�=�=Ü$Ø×$Ñ$¤^×%FÑ%FÓGóˆGð �t—}‘}Ó$Ø×(Ñ(¨Ô1ØŒà×%×%Ø18×&Ñ&Õ.ð &r‹   c                ó¤  • UR                   (       a¥  U R                  (       d”  U R                  [        L d  U R                  [        L an  [
        R                  " SU U R                  [        L a  SOSU R                  R                  R                  U R                  R                  R                  S.-  SS9eU R                  S:X  a%  SU;   d  S	U;   a  [
        R                  " S
U -  5      eUR                   (       aT  U R                  R                  5       R                  R                  U R                  U R                  R                  45        g g )Naç  For %(direction)s relationship %(rel)s, delete-orphan cascade is normally configured only on the "one" side of a one-to-many relationship, and not on the "many" side of a many-to-one or many-to-many relationship.  To force this relationship to allow a particular "%(relatedcls)s" object to be referenced by only a single "%(clsname)s" object at a time via the %(rel)s relationship, which would allow delete-orphan cascade to take place in this direction, set the single_parent=True flag.zmany-to-onezmany-to-many)ÚrelrÒ   ÚclsnameÚ
relatedclsÚbbf0©ÚcodeÚallr  r  z^On %s, can't set passive_deletes='all' in conjunction with 'delete' or 'delete-orphan' cascade)Údelete_orphanrà   rÒ   r'   r(   rð   rñ   r+  r  r¨   r  r½   Úprimary_mapperÚ_delete_orphansrø  r	  r¨  s     rŠ   r<  Ú,RelationshipProperty._check_cascade_settingsÉ  s  € à×!×!Ø×&×&Ø—‘¤:Ò-°·±Ä9Ò1Lä×&Ò&ð/ð  ð  Ÿ>™>¬YÒ6ñ &à+à#Ÿ{™{×1Ñ1×:Ñ:Ø"&§+¡+×"4Ñ"4×"=Ñ"=ñ	ñð. ñ1ð ð6 ×Ñ 5Ó(Ø˜Ó ?°gÓ#=ä×&Ò&ð;Ø=AñBóð ð
 × × Ø�K‰K×&Ñ&Ó(×8Ñ8×?Ñ?Ø—‘˜4Ÿ;™;×-Ñ-Ð.õð !r‹   c                óx   • U R                   UR                  ;   =(       a    UR                  U R                      U L $ )zQReturn True if this property will persist values on behalf
of the given mapper.

)r	  Úrelationshipsr
  s     rŠ   Ú_persists_forÚ"RelationshipProperty._persists_for÷  s7   € ð �H‰H˜×,Ñ,Ñ,÷ 7Ø×$Ñ$ T§X¡XÑ.°$Ð6ð	
r‹   c                ód  • U R                   R                  R                  nU HŠ  nUb"  UR                  R	                  U5      (       a  M(  U R
                  R                  R                  R	                  U5      (       a  M^  U R                  R                  R	                  U5      (       a  MŠ    g   g)z€Return True if all columns in the given collection are
mapped by the tables referenced by this :class:`.RelationshipProperty`.

FT)rÓ   rœ   r“   r  Úcontains_columnr+  r}  r~  )r˜   Úcolsrœ   r  s       rŠ   r�  Ú(RelationshipProperty._columns_are_mapped  s‡   € ð —O‘O×-Ñ-×6Ñ6ˆ	ÛˆAØÑ$¨¯©×)DÑ)DÀQ×)GÑ)GÙØ—;‘;×1Ñ1×3Ñ3×CÑCØ÷ó à—k‘k—m‘m×3Ñ3°A×6Ó6Ùñ ð r‹   c           
     óÒ  • U R                   R                  (       a  gU R                  Gb�  U R                  (       Gd~  [	        U R                  [
        5      (       a  U R                  0 p!OU R                  u  pU R                  R                  5       nUR                  (       d‡  [        UR                  5       5      R                  UR                  5      nU HO  nUR                  U5      (       d  M  UR                  (       a  M.  [        R                  " SU< SU < SU< S35      e   U R                   bM  UR#                  SU R$                  R&                  5      nUR#                  SU R$                  R(                  5      nOUUR#                  SU R$                  R*                  5      nUR#                  SS5      nU(       a  [        R,                  " S5      eUR#                  S	U R.                  5      nU R                   R                  5       n	UR1                  S
U R2                  5        UR1                  SU R4                  5        UR1                  SU R6                  5        UR1                  SU R8                  5        Xl        [;        U	U R                   4UUUU R<                  S.UD6n
UR?                  XSS9  U R                  (       a  U RA                  U R                  5        gg)zdInterpret the 'backref' instruction to create a
:func:`_orm.relationship` complementary to this one.NzError creating backref 'z' on relationship 'z+': property of that name exists on mapper 'r  r³   r´   zOCan't assign 'secondaryjoin' on a backref against a non-secondary relationship.r¶   rÛ   rÙ   r¾   rç   )r³   r´   r¶   rÖ   T)Úwarn_for_existing)!r+  r¡  r×   rÖ   r�   r”   r  r·  Úconcreter÷   Úiterate_to_rootÚunionÚself_and_descendantsr¢  rð   rñ   rœ   ÚpoprÇ   Úsecondaryjoin_minus_localÚprimaryjoin_minus_localÚprimaryjoin_reverse_remoter[  rÊ   Ú
setdefaultrÛ   rÙ   r¾   rç   r¹   r	  Ú_configure_propertyr1  )r˜   Úbackref_keyrp  r  ÚcheckÚmr6  r7  r¶   r+  Úrelationships              rŠ   r>  Ú&RelationshipProperty._generate_backref  st  € ð �;‰;×"×"ØØ�<‰<Ò#¨D×,?×,?Ð,?ä˜$Ÿ,™,¬×,Ñ,Ø&*§l¡l°B™Và&*§l¡lÑ#�Ø—[‘[×/Ñ/Ó1ˆFà—?—?Ü˜F×2Ñ2Ó4Ó5×;Ñ;Ø×/Ñ/ó�ó �AØ—~‘~ k×2Ó2¸1¿:¿:¹:Ü$×2Ó2ó  +«D³!ð5óð ñ ð �~‰~Ñ)ð —Z‘ZØ!Ø×(Ñ(×BÑBó�ð —Z‘ZØ#Ø×(Ñ(×@Ñ@ó‘ð
 —Z‘ZØ!Ø×(Ñ(×CÑCó�ð —Z‘Z °Ó6�ÞÜ ×4Ò4ð@óð ð
 "Ÿ:™:Ø × ?Ñ ?óˆLð —[‘[×/Ñ/Ó1ˆFØ×Ñ˜j¨$¯-©-Ô8Ø×Ñ˜m¨T×-=Ñ-=Ô>Ø×ÑÐ/°×1EÑ1EÔFØ×Ñ˜n¨d×.?Ñ.?Ô@Ø"-ÔÜ/ØØ—‘ðð Ø Ø)Ø#Ÿx™xñð ñˆLð ×&Ñ&Ø¸Tð 'ñ ð ××Ø×&Ñ& t×':Ñ':Õ;ð r‹   zsqlalchemy.orm.dependencyc                óä   • [         R                  R                  nU R                  c  U R                  [
        LU l        U R                  (       d!  UR                  R                  U 5      U l	        g g r–   )
r6   rz  Úorm_dependencyrÔ   rÒ   r(   rÛ   rZ   Úfrom_relationshiprÂ   )r˜   Ú
dependencys     rŠ   r=  ÚRelationshipProperty._post_initb  sV   € ä—^‘^×2Ñ2ˆ
à�<‰<ÑØŸ>™>´Ð:ˆDŒLØ�}�}à×.Ñ.×@Ñ@Øó0ð Õ&ð r‹   c                ó2   • U R                   nUR                  $ )zHmemoize the 'use_get' attribute of this RelationshipLoader's
lazyloader.)r»   Úuse_get)r˜   Ústrategys     rŠ   rœ  ÚRelationshipProperty._use_getm  s   € ð
 ×&Ñ&ˆØ×ÑÐr‹   c                óL   • U R                   R                  U R                  5      $ r–   )r  r/  r+  r—   s    rŠ   rd  Ú)RelationshipProperty._is_self_referentialu  s   € à�{‰{×(Ñ(¨¯©Ó5Ð5r‹   c                ó‚  • SnU(       a  U R                   b  SnUc8  U(       a1  U R                  R                  (       a  U R                  R                  nU(       a  UR                  nUc  UR
                  nSnOU R                  nUcZ  U R                  R
                  nU R                  R                  (       a  SnU R                  (       a  Uc  UR                  5       nSnO5X0R                  R                  Ld  U R                  R                  (       a  SnUR                  n	U=(       d6    US L=(       a+    UU R                  R                  L=(       d    UR                  nU R                  R                  UUUU	U5      u  n
nnnnUc  U R                  R                  nUc  U R                  R                  nU
UUUUU4$ )NFT)rœ   r+  Úwith_polymorphicr,  r  r*  r  rd  re  rf  Ú_is_subqueryrÇ   Újoin_targetsrŽ  )r˜   r1  r0  r_  r2  r3  r  ÚaliasedÚdest_mapperrt  r³   r´   rœ   r:  s                 rŠ   r4  Ú"RelationshipProperty._create_joinsy  s¤  € ð  ˆæ˜tŸ~™~Ñ9ØˆGàÑ$Þ! d§k¡k×&B×&BØ$(§K¡K×$LÑ$LÐ!æØ(×/Ñ/ˆKØÑ&Ø"0×";Ñ";�Ø�øàŸ+™+ˆKàÑ"Ø"Ÿk™k×4Ñ4ˆOØ�{‰{×+×+Ø�à×(×(Ð->Ñ-FØ"1×"GÑ"GÓ"I�Ø�øà§;¡;×#KÑ#KÒKØ�{‰{×+×+àˆGà!×9Ñ9ˆØ÷ 
Ø TÐ)÷ à!Ø—{‘{×?Ñ?ð@÷ 2à$×1Ñ1ð 	ð × Ñ ×-Ñ-ØØØØØó
ñ	
ØØØØØð Ñ$Ø $§¡× 7Ñ 7ÐØÑ"Ø"Ÿk™k×5Ñ5ˆOàØØØØØð
ð 	
r‹   ).rË   rð  rÂ   rÓ   rÇ   r»   rë   rº   rø   rÊ   rÀ   r’   rÖ   r×   rÚ   rÕ   rß   rÒ   râ   rè   r¿   r  rá   rÞ   rÝ   rã   rÌ   rÑ   ræ   rµ   r½   r¾   rÙ   r³   rä   r·   rœ   rÐ   r´   rà   rö   rç   rÎ   r~  rÔ   rÛ   )NN)Hr’   z'Optional[_RelationshipArgumentType[_T]]rœ   z(Optional[_RelationshipSecondaryArgument]rÔ   úOptional[bool]rÕ   zEOptional[Union[Type[Collection[Any]], Callable[[], Collection[Any]]]]r³   ú,Optional[_RelationshipJoinConditionArgument]r´   ræ  rÖ   úOptional[str]rµ   Ú_ORMOrderByArgumentr×   zOptional[ORMBackrefArgument]rØ   rç  rÙ   r¥   rÚ   r”   rÛ   r¥   rÜ   zOptional[_AttributeOptions]rÝ   Ú_LazyLoadArgumentTyper½   zUnion[Literal['all'], bool]r¾   r¥   rÀ   r¥   r¿   r¥   r¶   ú#Optional[_ORMColCollectionArgument]r·   rê  rÞ   zOptional[int]rß   z4Optional[Type[RelationshipProperty.Comparator[Any]]]rà   r¥   rá   r¥   râ   rå  rã   r¥   rä   zOptional[Type[Query[Any]]]rå   zOptional[_InfoType]ræ   zLiteral[None, False]rç   rå  rè   rç  ré   zLiteral[True]rÁ   zLiteral[False]rê   rÏ   rë   r¥   )r   r   r¤   r§   )r  úMapper[Any]r¤   r§   )TN)rµ  Úobjectr3  r¥   r¶  zOptional[_EntityType[Any]]r¤   rÃ   )FNT)
r�  r   r²  r¥   rU  úOptional[_CoreAdapterProto]r3  r¥   r¤   rÃ   )
r  rë  r�  r™  r’  rR   rÜ  r�   r¤   zCallable[[], Any])FN)rÊ  r¥   rU  rí  r¤   rÃ   ©r¤   r”   )rû  r]   rü  r™  rý  rR   rþ  r™  rÿ  rR   rì  r¥   rí  zDict[Any, object]rî  z#Dict[_IdentityKeyType[Any], object]r¤   r§   )
r�  zInstanceState[_O]r’  rR   r	  r”   rÏ  r"   r¤   z&Sequence[Tuple[InstanceState[_O], _O]]r–   )rˆ  r”   r�  r™  r’  rR   r  zSet[InstanceState[Any]]r  z.Optional[Callable[[InstanceState[Any]], bool]]r¤   zDIterator[Tuple[Any, Mapper[Any], InstanceState[Any], _InstanceDict]]r£   )r'  úRelationshipProperty[Any]r(  rï  r¤   r§   )r	  r”   r¤   r§   )r¤   z_InternalEntityType[_T])r¤   rt   ©r¤   r§   )rf  rY   rD  rU   rg  z	Type[Any]rh  rç  r	  r”   ri  zOptional[Type[Mapped[Any]]]rj  úOptional[_AnnotationScanType]rk  rñ  rl  r¥   r¤   r§   )r  r   r¤   r§   )r¤   r¦   )r¤   z>Callable[[str], Callable[[], Union[Type[Any], Table, _ModNS]]])r¤   zmTuple[Callable[[str], Callable[[], Union[Type[Any], Table, _ModNS]]], Callable[[str, bool], _class_resolver]])r¤   r/   )rÚ   úUnion[str, CascadeOptions]r¤   r§   )r¬  rò  r¤   r§   )rÚ   r/   r¤   r§   )r  rë  r¤   r¥   )rÀ  r�   r¤   r¥   )FNNNFr°   )r1  r¥   r0  rÅ   r_  rÅ   r2  z"Optional[_InternalEntityType[Any]]r3  r¥   r  r­  r¤   z€Tuple[ColumnElement[bool], Optional[ColumnElement[bool]], FromClause, FromClause, Optional[FromClause], Optional[ClauseAdapter]])Ar¨   r©   rª   r«   r¬   r   Ú_RELATIONSHIP_TOKENÚstrategy_wildcard_keyÚinherit_cacheÚ_links_to_entityÚ_is_relationshipr®   r‹  rÿ   rÂ   rî   rï   r  r6   ÚMemoizedSlotsr*   rr   ró   r¸  rY  rŽ  rÂ  rè  rë  r"   rÓ  r  r   r  r#  Ústaticmethodr)  r1  Úmemoized_propertyr  r  r@  r:  r9  rr  Úpreload_moduler.  r;  r—  r|  rQ  r8  rÚ   Úsetterr§  r<  r¼  r�  r>  r=  rœ  rd  r4  r¯   Ú__classcell__)rû   s   @rŠ   r¹   r¹   5  s�  ø‡ ñ	ð -×@Ñ@ÐØ€MØàÐØÐàÓàÓáØØØØØñÐð <@ÐÐ8Ó?à$Ó$Ø0Ó0Ø#Ó#Ø"Ó"Ø%Ó%à 7Ó7Ø5Ó5à(Ó(Ø*Ó*à#Ó#Ø!7Ó7à.Ó.à$Ó$à!Ó!ð =AØ>BðG#ð
 #'ð ØDHØFJØ(,Ø(-Ø04Ø"&Ø!Ø+ØØ9=Ø&.Ø7<Ø $Ø$Ø"&Ø<@Ø;?Ø$(ð Ø#ØØ.2Ø %Ø26Ø$(Ø*.Ø'+Ø!Ø&*Ø+0Ø6:Ø/4ñUG#à9ðG#ð <ðG#ð
  ðG#ð
ðG#ð BðG#ð DðG#ð &ðG#ð &ðG#ð .ðG#ð  ðG#ð ðG#ð  ð!G#ð" ð#G#ð$ 7ð%G#ð& $ð'G#ð( 5ð)G#ð* ð+G#ð, ð-G#ð.  ð/G#ð0 :ð1G#ð2 9ð3G#ð4 "ð5G#ð6
ð7G#ð< ð=G#ð> ð?G#ð@ ,ðAG#ðB ðCG#ðD 0ðEG#ðF "ðGG#ðH (ðIG#ðJ %ðKG#ðL ðMG#ðN $ðOG#ðP )ðQG#ðR 4ðSG#ðT )-÷UG#ñ G#ôRô$
ôx	�T×'Ñ'¨¸Ñ)<ô x	ðz !%Ø26ð	
àð
ð ð
ð 0ð	
ð
 
õ
ð. !&Ø48Ø $ðBàðBð ðBð 2ð	Bð
 ðBð 
õBðHiàðið "ðið ð	ið
 #ðið 
ôiðZ #(Ø48ðàðð 2ðð 
õ	ô,Að_àð_ð )ð_ð #ð	_ð
 'ð_ð !ð_ð ð_ð &ð_ð  Cð_ð 
ô_ðL  +×6Ñ6ð7à ð7ð ð7ð ð	7ð
 ð7ð 
0õ7ð> CGð;Dàð;Dð "ð;Dð ð	;Dð
 0ð;Dð @ð;Dð 
Nõ;Dðz ó2ó ð2ð ð'Ø(ð'Ø1Jð'à	ó'ó ð'ô*ðX 
×Ñóó ðð 
×Ñó"ó ð"÷
ô
ô
J
ðX`Là)ð`Lð  ð`Lð ð	`Lð
 *ð`Lð ð`Lð 6ð`Lð 2ð`Lð &Cð`Lð !ð`Lð 
ô`LðD 
×ÒÐ0Ó1õ-5ó 2ð-5ô^Jð< ð.à	/ó.ó ð.ð
 ð.à	Gó.ó ð.ð
 
×ÑØ	×ÒÐ5Ó6ð3ð
ó3ó 7ó ð3ôð& óó ðð ‡^�^ó#ó ð#ô9ô,ô\	
ôô N<ð` 
×ÒÐ4Ó5óó 6ðð 
×Ñó ó ð ð 
×Ñó6ó ð6ð
 $)Ø26Ø04Ø=AØ %Ø:<ðQ
à ðQ
ð 0ðQ
ð .ð	Q
ð
 ;ðQ
ð ðQ
ð 8ðQ
ð
÷Q
ó Q
r‹   r¹   c                ó6   ^^• SUU4S jjmU b  T" U 5      n S mU $ )Nc                ó¤   >• [        U [        R                  5      (       a   U R                  TR                  " 5       5      n U R                  TS9  U $ )N)Úclone)r�   r9   r@   rh  ÚcopyÚ_copy_internals)Úelemr   r   s    €€rŠ   r   Ú _annotate_columns.<locals>.cloneÎ  sC   ø€ Ü�dœJ×3Ñ3×4Ñ4Ø—>‘> +×"2Ò"2Ó"4Ó5ˆDØ×Ñ 5ÐÑ)Øˆr‹   )r  r€   r¤   r€   r°   )Úelementr   r   s    `@rŠ   r…   r…   Í  s(   ù€ ÷ð ð ÑÙ˜“.ˆØ€EØ€Nr‹   c                  óØ  • \ rS rSr% S\S'   S\S'   S\S'   S\S'   S	\S
'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   SSSSSSSSSSS S.                               SES jjrSFS jrSFS jrSFS jr\	SGS  j5       r
\	SGS! j5       r\R                  SGS" j5       rSHS# jr\R                  SIS$ j5       r\R                  SIS% j5       rSFS& jrSFS' jrSFS( jrSIS) jrSIS* jrSFS+ jrSFS, jr      SJS- jrSFS. jrSFS/ jrSFS0 jrSFS1 jrSFS2 jrSFS3 jrSFS4 jr       SKS5 jr!SFS6 jr"    SLS7 jr#SFS8 jr$\%RL                  " 5       r'S9\S:'   SFS; jr(\R                  SMS< j5       r)\R                  SMS= j5       r*\R                  SMS> j5       r+    SNS? jr,      SOS@ jr-\R                  SPSA j5       r.  SQ           SRSB jjr/SSSTSC jjr0SDr1g)UrÆ   iÚ  rÄ   Úprimaryjoin_initialrÃ   r³   r´   rÅ   rœ   rï  r  rÍ   rÎ   rÐ   r+   rÒ   rk   r„  r…  r†  r‡  rÏ   rê   NFTc                 ó   • g©NTr°   )r  s    rŠ   Ú<lambda>ÚJoinCondition.<lambda>þ  s   € ¸4r‹   )r³   rœ   r´   rˆ  r‰  rŠ  rÑ   r·   r‹  rŒ  r�  c               ó®  • Xl         X0l        X l        X@l        X€l        X�l        XPl        Xpl        X`l        X l	        X°l
        XÀl        Xàl        XÐl        Xðl        UU l        U R!                  5         U R"                  c   eU R%                  5         U R'                  5         U R)                  5         U R+                  5         U R-                  5         U R/                  5         U R1                  U R"                  S5        U R                  b  U R1                  U R                  S5        U R3                  5         U R5                  5         U R7                  5         g ©NTF)r„  r†  r…  r‡  rˆ  r‰  r  r´   rœ   rŠ  rê   Ú_remote_sider  r‹  rŒ  r�  Ú_determine_joinsr³   Ú_sanitize_joinsÚ_annotate_fksÚ_annotate_remoteÚ_annotate_localÚ_annotate_parentmapperÚ_setup_pairsÚ_check_foreign_colsÚ_determine_directionÚ_check_remote_sideÚ
_log_joins)r˜   r„  r…  r†  r‡  r³   rœ   r´   rˆ  r‰  rŠ  rÑ   r·   r‹  r  rŒ  r�  s                    rŠ   rî   ÚJoinCondition.__init__ì  s%  € ð( *CÔ&Ø'>Ô$Ø(@Ô%Ø&<Ô#Ø"4ÔØ!2ÔØ#.Ô Ø*ÔØ"ŒØ(@Ô%Ø#5Ô Ø'ÔØŒ	Ø 0ÔØ(ÔØ 0ˆÔà×ÑÔØ×ÑÑ+Ð+Ð+à×ÑÔØ×ÑÔØ×ÑÔØ×ÑÔØ×#Ñ#Ô%Ø×ÑÔØ× Ñ  ×!1Ñ!1°4Ô8Ø×ÑÑ)Ø×$Ñ$ T×%7Ñ%7¸Ô?Ø×!Ñ!Ô#Ø×ÑÔ!Ø�‰Õr‹   c           	     óž  • U R                   R                  nUR                  " SU R                   U R                  5        UR                  " SU R                   U R                  5        UR                  " SU R                   SR                  S U R                   5       5      5        UR                  " SU R                   SR                  S U R                  =(       d    /  5       5      5        UR                  " SU R                   SR                  S	 U R                   5       5      5        UR                  " S
U R                   SR                  S U R                   5       5      5        UR                  " SU R                   SR                  S U R                   5       5      5        UR                  " SU R                   U R                  5        g )Nz%s setup primary join %sz%s setup secondary join %sz%s synchronize pairs [%s]Ú,c              3  ó<   #   • U  H  u  pS U< SU< S3v •  M     g7f©Ú(z => rx  Nr°   ©rC  Úlr   s      rŠ   rE  Ú+JoinCondition._log_joins.<locals>.<genexpr>(	  s   é € ð Ú4J©&¨1¨a££1Õ%Ò4Jùó   ‚z#%s secondary synchronize pairs [%s]c              3  ó<   #   • U  H  u  pS U< SU< S3v •  M     g7fr  r°   r   s      rŠ   rE  r"  /	  s    é € ð âD‘F�Q˜ó !"£1Õ%ÚDùr#  z%s local/remote pairs [%s]c              3  ó<   #   • U  H  u  pS U< SU< S3v •  M     g7f)r  z / rx  Nr°   r   s      rŠ   rE  r"  7	  s   é € ð Ú3J©¨!¨Q›q£!Õ$Ò3Jùr#  z%s remote columns [%s]c              3  ó,   #   • U  H
  nS U-  v •  M     g7f©z%sNr°   ©rC  r–  s     rŠ   rE  r"  >	  s   é € Ð?Ò+> C�T˜C–ZÒ+>ùó   ‚z%s local columns [%s]c              3  ó,   #   • U  H
  nS U-  v •  M     g7fr'  r°   r(  s     rŠ   rE  r"  C	  s   é € Ð>Ò+= C�T˜C–ZÒ+=ùr)  z%s relationship direction %s)r  Úloggerrå   r³   r´   ÚjoinrÎ   rÐ   rÑ   r‘  rÌ   rÒ   )r˜   r3   s     rŠ   r  ÚJoinCondition._log_joins!	  sm  € Ø�i‰i×ÑˆØ�ŠÐ+¨T¯Y©Y¸×8HÑ8HÔIØ�ŠÐ-¨t¯y©y¸$×:LÑ:LÔMØ�ŠØ'Ø�I‰IØ�H‰Hñ Ø48×4JÒ4Jóó ô	
ð 	�ŠØ1Ø�I‰IØ�H‰Hñ à"×>Ñ>×DÀ"ÐDóó ô	
ð 	�ŠØ(Ø�I‰IØ�H‰Hñ Ø37×3JÒ3Jóó ô	
ð 	�ŠØ$Ø�I‰IØ�H‰HÑ?¨4×+>Ò+>Ó?Ó?ô	
ð
 	�ŠØ#Ø�I‰IØ�H‰HÑ>¨4×+=Ò+=Ó>Ó>ô	
ð
 	�ŠÐ/°·±¸D¿N¹NÕKr‹   c                ó„   • [        U R                  SS9U l        U R                  b  [        U R                  SS9U l        gg)a7  remove the parententity annotation from our join conditions which
can leak in here based on some declarative patterns and maybe others.

"parentmapper" is relied upon both by the ORM evaluator as well as
the use case in _join_fixture_inh_selfref_w_entity
that relies upon it being present, see :ticket:`3364`.

)r  Ú	proxy_key©ÚvaluesN)rD   r³   r´   r—   s    rŠ   r  ÚJoinCondition._sanitize_joinsG	  sI   € ô ,Ø×ÑÐ%Bñ
ˆÔð ×ÑÑ)Ü!1Ø×"Ñ"Ð+Hñ"ˆDÕð *r‹   c                óp  • U R                   b0  U R                  c#  [        R                  " SU R                  -  5      e U R
                  =(       d    SnU R                  b‹  U R                   c/  [        U R                  U R                  U R                  US9U l         U R                  c0  [        U R                  U R                  U R                  US9U l        gU R                  U l        gU R                  c0  [        U R                  U R                  U R                  US9U l        gU R                  U l        g! [        R                   aj  nU R                  b4  [        R                  " SU R                  < SU R                  < S35      Ue[        R                  " SU R                  -  5      UeSnAf[        R                   aj  nU R                  b4  [        R                  " SU R                  < SU R                  < S	35      Ue[        R                  " S
U R                  -  5      UeSnAff = f)zÕDetermine the 'primaryjoin' and 'secondaryjoin' attributes,
if not passed to the constructor already.

This is based on analysis of the foreign key relationships
between the parent and target mapped selectables.

NzMProperty %s specified with secondary join condition but no secondary argument)Úa_subsetrŠ  zOCould not determine join condition between parent/child tables on relationship zG - there are no foreign keys linking these tables via secondary table 'z—'.  Ensure that referencing columns are associated with a ForeignKey or ForeignKeyConstraint, or specify 'primaryjoin' and 'secondaryjoin' expressions.a  Could not determine join condition between parent/child tables on relationship %s - there are no foreign keys linking these tables.  Ensure that referencing columns are associated with a ForeignKey or ForeignKeyConstraint, or specify a 'primaryjoin' expression.zP - there are multiple foreign key paths linking the tables via secondary table 'zÉ'.  Specify the 'foreign_keys' argument, providing a list of those columns which should be counted as containing a foreign key reference from the secondary table to each of the parent and child tables.a'  Could not determine join condition between parent/child tables on relationship %s - there are multiple foreign key paths linking the tables.  Specify the 'foreign_keys' argument, providing a list of those columns which should be counted as containing a foreign key reference to the parent table.)r´   rœ   rð   rñ   r  rŠ  rH   r…  r‡  r  r„  r†  r³   ÚNoForeignKeysErrorÚAmbiguousForeignKeysError)r˜   rŠ  ÚnfeÚafes       rŠ   r  ÚJoinCondition._determine_joinsY	  s  € ð ×ÑÑ)¨d¯n©nÑ.DÜ×&Ò&ð(à*.¯)©)ñ4óð ðI	Ø'+×'DÑ'D×'LÈÐ$Ø�~‰~Ñ)Ø×%Ñ%Ñ-Ü)7Ø×5Ñ5ØŸ™Ø!%×!<Ñ!<Ø1Iñ	*�DÔ&ð ×+Ñ+Ñ3Ü'5Ø×6Ñ6ØŸ™Ø!%×!=Ñ!=Ø1Iñ	(�DÕ$ð (,×'?Ñ'?�DÕ$à×+Ñ+Ñ3Ü'5Ø×6Ñ6Ø×5Ñ5Ø!%×!=Ñ!=Ø1Iñ	(�DÕ$ð (,×'?Ñ'?�DÕ$øÜ×(Ñ(ó 	Ø�~‰~Ñ)Ü×/Ó/ð '+§i¤i°·´ðAó	ð ð	ô ×/Ò/ð:ð =A¿I¹IñFóð ðûô ×/Ñ/ó 	Ø�~‰~Ñ)Ü×6Ó6ð 37·)´)¸T¿^¼^ðMó
ð ð
ô ×6Ò6ðAð DHÇ9Á9ñMóð ðûð	ús8   ¿BD; ÃD; Ã,<D; Ä)D; Ä;H5ÅA%F4Æ4H5ÇA%H0È0H5c                ó*   • [        U R                  SS9$ ©N©Úlocalrƒ   r0  )rD   r³   r—   s    rŠ   rÊ  Ú%JoinCondition.primaryjoin_minus_local¸	  s   € ä × 0Ñ 0Ð9LÑMÐMr‹   c                óH   • U R                   c   e[        U R                   SS9$ r;  )r´   rD   r—   s    rŠ   rÉ  Ú'JoinCondition.secondaryjoin_minus_local¼	  s(   € à×!Ñ!Ñ-Ð-Ð-Ü × 2Ñ 2Ð;NÑOÐOr‹   c                óæ   • U R                   (       a'  SS jn[        R                  " U R                  0 U5      $ U R                  (       a  [        U R                  SS9$ [        U R                  5      $ )zøReturn the primaryjoin condition suitable for the
"reverse" direction.

If the primaryjoin was delivered here with pre-existing
"remote" annotations, the local/remote annotations
are reversed.  Otherwise, the local/remote annotations
are removed.

c                óü   • SU R                   ;   a.  [        U R                   5      nUS	 SUS'   U R                  U5      $ SU R                   ;   a.  [        U R                   5      nUS	 SUS'   U R                  U5      $ g )Nrƒ   Tr=  )Ú_annotationsr‹  Ú_with_annotations)r  r   r  s      rŠ   ÚreplaceÚ9JoinCondition.primaryjoin_reverse_remote.<locals>.replaceÎ	  sƒ   € Ø˜w×3Ñ3Ó3Ü˜W×1Ñ1Ó2�AØ˜(˜Ø!%�A�g‘JØ"×4Ñ4°QÓ7Ð7Ø × 4Ñ 4Ó4Ü˜W×1Ñ1Ó2�AØ˜'˜
Ø"&�A�h‘KØ"×4Ñ4°QÓ7Ð7àr‹   r<  r0  ©r  r€   r   r   r¤   zOptional[_CE])Ú_has_remote_annotationsr<   Úreplacement_traverser³   Ú_has_foreign_annotationsrD   )r˜   rE  s     rŠ   rË  Ú(JoinCondition.primaryjoin_reverse_remoteÁ	  sd   € ð ×'×'ôô ×0Ò0°×1AÑ1AÀ2ÀwÓOÐOà×,×,ä'Ø×$Ñ$Ð-@ñð ô (¨×(8Ñ(8Ó9Ð9r‹   c                ób   • [         R                  " U0 5       H  nX#R                  ;   d  M    g   gr  )r<   ÚiteraterC  )r˜   rD  rj  r–  s       rŠ   Ú_has_annotationÚJoinCondition._has_annotationæ	  s-   € Ü×#Ò# F¨BÖ/ˆCØ×-Ñ-Õ-Ùñ 0ð r‹   c                ó:   • U R                  U R                  S5      $ ©Nr�   ©rN  r³   r—   s    rŠ   rJ  Ú&JoinCondition._has_foreign_annotationsí	  s   € à×#Ñ# D×$4Ñ$4°iÓ@Ð@r‹   c                ó:   • U R                  U R                  S5      $ ©Nrƒ   rR  r—   s    rŠ   rH  Ú%JoinCondition._has_remote_annotationsñ	  s   € à×#Ñ# D×$4Ñ$4°hÓ?Ð?r‹   c                óŒ   • U R                   (       a  gU R                  (       a  U R                  5         gU R                  5         g)zyAnnotate the primaryjoin and secondaryjoin
structures with 'foreign' annotations marking columns
considered as foreign.

N)rJ  rŠ  Ú_annotate_from_fk_listÚ_annotate_present_fksr—   s    rŠ   r  ÚJoinCondition._annotate_fksõ	  s1   € ð ×(×(Øà×(×(Ø×'Ñ'Õ)à×&Ñ&Õ(r‹   c                óÎ   ^ • SU 4S jjn[         R                  " T R                  0 U5      T l        T R                  b(  [         R                  " T R                  0 U5      T l        g g )Nc                óL   >• U TR                   ;   a  U R                  SS05      $ g ©Nr�   T)rŠ  rh  ©r  r   r˜   s     €rŠ   Úcheck_fkÚ6JoinCondition._annotate_from_fk_list.<locals>.check_fk
  s*   ø€ Ø˜$×7Ñ7Ó7Ø×(Ñ(¨)°TÐ):Ó;Ð;Ør‹   rG  )r<   rI  r³   r´   )r˜   r_  s   ` rŠ   rX  Ú$JoinCondition._annotate_from_fk_list
  s]   ø€ ÷	ô
 $×8Ò8Ø×Ñ˜b (ó
ˆÔð ×ÑÑ)Ü!)×!>Ò!>Ø×"Ñ" B¨ó"ˆDÕð *r‹   c                óx  ^^• U R                   b+  [        R                  " U R                   R                  5      mO
[	        5       m      SU4S jjmSU4S jjn[
        R                  " U R                  0 SU05      U l        U R                  b*  [
        R                  " U R                  0 SU05      U l        g g )Nc                ó(  >• [        U [        R                  5      (       aO  [        U[        R                  5      (       a0  U R                  U5      (       a  U $ UR                  U 5      (       a  U$ T(       a  U T;   a  UT;  a  U $ UT;   a  U T;  a  U$ g r–   )r�   r4   ÚColumnÚ
references)ÚaÚbÚsecondarycolss     €rŠ   Ú
is_foreignÚ7JoinCondition._annotate_present_fks.<locals>.is_foreign
  sx   ø€ ô ˜!œVŸ]™]×+Ñ+´
¸1¼f¿m¹m×0LÑ0LØ—<‘< —?‘?Ø�HØ—\‘\ !—_‘_Ø�HæØ˜Ó%¨!°=Ó*@Ø�HØ˜-Ó'¨A°]Ó,BØ�Hàr‹   Úbinaryc                óf  >• [        U R                  [        R                  5      (       a)  [        U R                  [        R                  5      (       d  g SU R                  R
                  ;  aÃ  SU R                  R
                  ;  a¨  T" U R                  U R                  5      nUb‡  UR                  U R                  5      (       a#  U R                  R                  SS05      U l        g UR                  U R                  5      (       a#  U R                  R                  SS05      U l        g g g g g r]  )r�   Úleftr5   rA   ÚrightrC  Úcomparerh  )rk  r–  ri  s     €rŠ   Úvisit_binaryÚ9JoinCondition._annotate_present_fks.<locals>.visit_binary(
  së   ø€ ÜØ—‘œS×.Ñ.÷ñ ä §¡¬c×.?Ñ.?×@Ñ@Øð  §¡×!9Ñ!9Ó9Ø V§\¡\×%>Ñ%>Ó>á  §¡¨f¯l©lÓ;�Ø‘?Ø—{‘{ 6§;¡;×/Ñ/Ø&,§k¡k×&;Ñ&;¸YÈÐ<MÓ&N˜�ØŸ™ V§\¡\×2Ñ2Ø'-§|¡|×'=Ñ'=Ø&¨Ð-ó(˜�ð 3ð #ð ?ð :r‹   )rf  r�   rg  r�   r¤   zOptional[ColumnElement[Any]]©rk  úBinaryExpression[Any]r¤   r§   )	rœ   r6   rS  r  r÷   r<   rÉ  r³   r´   )r˜   rp  ri  rh  s     @@rŠ   rY  Ú#JoinCondition._annotate_present_fks
  s­   ù€ Ø�>‰>Ñ%Ü ŸOšO¨D¯N©N×,<Ñ,<Ó=‰Mä›EˆMð	Ø!ð	Ø&8ð	à)÷	÷"	ô& $×3Ò3Ø×Ñ˜b 8¨\Ð":ó
ˆÔð ×ÑÑ)Ü!)×!9Ò!9Ø×"Ñ" B¨°<Ð(@ó"ˆDÕð *r‹   c                óœ   ^^^• U R                   mU R                  mSmSUUU4S jjn[        R                  " U R                  0 SU05        T$ )zfReturn True if the join condition contains column
comparisons where both columns are in both tables.

Frk  c                óÀ  >• U R                   U R                  p![        U[        R                  5      (       a§  [        U[        R                  5      (       a‡  TR                  UR                  5      (       af  TR                  UR                  5      (       aE  TR                  UR                  5      (       a$  TR                  UR                  5      (       a  Smg g g g g g g r	  )rm  rn  r�   r9   r@   Úis_derived_fromÚtable)rk  r  ÚfÚmtÚptÚresults      €€€rŠ   rp  Ú;JoinCondition._refers_to_parent_table.<locals>.visit_binaryL
  s¯   ø€ à—;‘; §¡ˆqä˜1œj×5Ñ5×6Ñ6Ü˜q¤*×"9Ñ"9×:Ñ:Ø×&Ñ& q§w¡w×/Ñ/Ø×&Ñ& q§w¡w×/Ñ/Ø×&Ñ& q§w¡w×/Ñ/Ø×&Ñ& q§w¡w×/Ñ/à‘ð 0ð 0ð 0ð 0ð ;ð 7r‹   rr  )r„  r…  r<   rg  r³   )r˜   rp  rz  r{  r|  s     @@@rŠ   Ú_refers_to_parent_tableÚ%JoinCondition._refers_to_parent_tableC
  sN   ú€ ð
 ×+Ñ+ˆØ×*Ñ*ˆØˆ÷	ñ 	ô 	×Ò˜$×*Ñ*¨B°¸<Ð0HÔIØˆr‹   c                óB   • [        U R                  U R                  5      $ )z5Return True if parent/child tables have some overlap.)rI   r„  r…  r—   s    rŠ   Ú_tables_overlapÚJoinCondition._tables_overlap\
  s"   € ô #Ø×*Ñ*¨D×,IÑ,Ió
ð 	
r‹   c                óˆ  • U R                   (       a  gU R                  b  U R                  5         gU R                  (       d  U R                  (       a  U R                  5         gU R                  5       (       a  U R                  S S5        gU R                  5       (       a  U R                  5         gU R                  5         g)zŠAnnotate the primaryjoin and secondaryjoin
structures with 'remote' annotations marking columns
considered as part of the 'remote' side.

Nc                ó    • SU R                   ;   $ rQ  )rC  )r–  s    rŠ   r
  Ú0JoinCondition._annotate_remote.<locals>.<lambda>r
  s   € ˜I¨×)9Ñ)9Ò9r‹   F)rH  rœ   Ú_annotate_remote_secondaryrê   r  Ú_annotate_remote_from_argsr~  Ú_annotate_selfrefr�  Ú_annotate_remote_with_overlapÚ%_annotate_remote_distinct_selectablesr—   s    rŠ   r  ÚJoinCondition._annotate_remotec
  sŽ   € ð ×'×'Øà�>‰>Ñ%Ø×+Ñ+Õ-Ø×%×%¨×):×):Ø×+Ñ+Õ-Ø×)Ñ)×+Ñ+Ø×"Ñ"Ù9¸5õð ×!Ñ!×#Ñ#Ø×.Ñ.Õ0à×6Ñ6Õ8r‹   c                ó  ^• U R                   c   eU R                   mSU4S jjn[        R                  " U R                  0 U5      U l        U R                  c   e[        R                  " U R                  0 U5      U l        g)zNannotate 'remote' in primaryjoin, secondaryjoin
when 'secondary' is present.

Nc                ól   >• TR                   R                  U 5      (       a  U R                  SS05      $ g ©Nrƒ   T)r  r¿  rh  )r  r   Úfixed_secondarys     €rŠ   ÚreplÚ6JoinCondition._annotate_remote_secondary.<locals>.repl‚
  s3   ø€ Ø× Ñ ×0Ñ0°×9Ñ9Ø×(Ñ(¨(°DÐ)9Ó:Ð:Ør‹   rG  )rœ   r<   rI  r³   r´   )r˜   r�  r�  s     @rŠ   r†  Ú(JoinCondition._annotate_remote_secondaryy
  sy   ø€ ð �~‰~Ñ)Ð)Ð)ØŸ.™.ˆ÷	ô
 $×8Ò8Ø×Ñ˜b $ó
ˆÔð ×!Ñ!Ñ-Ð-Ð-Ü%×:Ò:Ø×Ñ  Dó
ˆÕr‹   c                óp   ^ ^^• SUUU 4S jjn[         R                  " T R                  0 SU05      T l        g)zhannotate 'remote' in primaryjoin, secondaryjoin
when the relationship is detected as self-referential.

rk  c                ó  >• U R                   R                  U R                  5      n[        U R                   [        R
                  5      (       a¥  [        U R                  [        R
                  5      (       a|  T" U R                   5      (       a"  U R                   R                  SS05      U l         T" U R                  5      (       a+  U(       d#  U R                  R                  SS05      U l        g g g T(       d  TR                  5         g g rŽ  )rm  ro  rn  r�   r9   r@   rh  Ú_warn_non_column_elements)rk  ÚequatedÚfnÚremote_side_givenr˜   s     €€€rŠ   rp  Ú5JoinCondition._annotate_selfref.<locals>.visit_binary˜
  sÁ   ø€ Ø—k‘k×)Ñ)¨&¯,©,Ó7ˆGÜ˜&Ÿ+™+¤z×'>Ñ'>×?Ñ?ÄJØ—‘œj×5Ñ5÷Eñ Eñ �f—k‘k—?‘?Ø"(§+¡+×"7Ñ"7¸À4Ð8HÓ"I�F”KÙ�f—l‘l×#Ñ#®GØ#)§<¡<×#9Ñ#9¸8ÀTÐ:JÓ#K�F•Lð -4Ð#æ&Ø×.Ñ.Õ0ð 'r‹   Nrr  )r<   rÉ  r³   )r˜   r—  r˜  rp  s   ``` rŠ   rˆ  ÚJoinCondition._annotate_selfref�
  s4   ú€ ÷	1ñ 	1ô $×3Ò3Ø×Ñ˜b 8¨\Ð":ó
ˆÕr‹   c                ó”  ^• U R                   (       aI  U R                  (       a  [        R                  " S5      eU R                    VVs/ s H  u  pUPM	     snnmOU R                  mU R	                  5       (       a  U R                  U4S jS5        gSU4S jjn[        R                  " U R                  0 U5      U l        gs  snnf )zuannotate 'remote' in primaryjoin, secondaryjoin
when the 'remote_side' or '_local_remote_pairs'
arguments are used.

zTremote_side argument is redundant against more detailed _local_remote_side argument.c                ó   >• U T;   $ r–   r°   )r–  r·   s    €rŠ   r
  Ú:JoinCondition._annotate_remote_from_args.<locals>.<lambda>¼
  s
   ø€ ¨s°kÒ/Ar‹   Tc                óJ   >• U [        T5      ;   a  U R                  SS05      $ g rŽ  )r÷   rh  )r  r   r·   s     €rŠ   r�  Ú6JoinCondition._annotate_remote_from_args.<locals>.repl¿
  s+   ø€ ð œc +Ó.Ó.Ø"×,Ñ,¨h¸Ð-=Ó>Ð>Ør‹   NrG  )	rê   r  rð   rñ   r~  rˆ  r<   rI  r³   )r˜   r!  r   r�  r·   s       @rŠ   r‡  Ú(JoinCondition._annotate_remote_from_args©
  s§   ø€ ð ×#×#Ø× × Ü×*Ò*ð óð ð ,0×+CÒ+CÔDÒ+C¡ !›1Ñ+CÒD‰Kà×+Ñ+ˆKà×'Ñ'×)Ñ)Ø×"Ñ"Ô#AÀ4ÕH÷ô  (×<Ò<Ø× Ñ  " dó ˆDÕùó Es   Á	Cc                ó  ^ ^^• SU4S jjnT R                   SL=(       a,    T R                   R                  T R                   R                  Lm      SUU 4S jjm[        R                  " T R
                  0 SU05      T l        g)z¦annotate 'remote' in primaryjoin, secondaryjoin
when the parent/child tables have some set of
tables in common, though is not a fully self-referential
relationship.

rk  c                ó®   >• T" U R                   U R                  5      u  U l         U l        T" U R                  U R                   5      u  U l        U l         g r–   )rm  rn  )rk  Úproc_left_rights    €rŠ   rp  ÚAJoinCondition._annotate_remote_with_overlap.<locals>.visit_binaryÒ
  sE   ø€ Ù(7Ø—‘˜VŸ\™\ó)Ñ%ˆFŒK˜œñ )8Ø—‘˜fŸk™kó)Ñ%ˆFŒL˜&�+r‹   Nc                ó¶  >• [        U [        R                  5      (       a‰  [        U[        R                  5      (       aj  TR                  R                  R                  U5      (       a=  TR                  R                  R                  U 5      (       a  UR                  SS05      nX4$ T(       aH  UR                  R                  S5      TR                  R                  L a  UR                  SS05      nX4$ T(       aH  U R                  R                  S5      TR                  R                  L a  U R                  SS05      n X4$ TR                  5         X4$ )Nrƒ   Tr  )r�   r9   r@   r…  r  r¿  r„  rh  rC  rõ  r  r  r•  )rm  rn  Úcheck_entitiesr˜   s     €€rŠ   r£  ÚDJoinCondition._annotate_remote_with_overlap.<locals>.proc_left_rightÞ
  s-  ø€ ô ˜$¤
× 7Ñ 7×8Ñ8¼ZØ”z×.Ñ.÷>ñ >ð ×0Ñ0×2Ñ2×BÑBØ÷ñ à×4Ñ4×6Ñ6×FÑFÀt×LÑLØ!ŸO™O¨X°tÐ,<Ó=�Eð �;Ðö Ø×&Ñ&×*Ñ*¨>Ó:¸d¿i¹i×>NÑ>NÒNàŸ™¨°4Ð(8Ó9�ð �;Ðö Ø×%Ñ%×)Ñ)¨.Ó9¸T¿Y¹Y×=MÑ=MÒMà—~‘~ x°Ð&6Ó7�ð �;Ðð ×.Ñ.Ô0à�;Ðr‹   rr  )rm  r�   rn  r�   r¤   z-Tuple[ColumnElement[Any], ColumnElement[Any]])r  r  r+  r<   rÉ  r³   )r˜   rp  r¦  r£  s   ` @@rŠ   r‰  Ú+JoinCondition._annotate_remote_with_overlapÊ
  s‚   ú€ ÷	ð �I‰I˜TÐ!×N d§i¡i×&6Ñ&6¸d¿i¹i×>NÑ>NÐ&Nð 	ð	Ø$ð	Ø-?ð	à:÷	ð 	ô2 $×3Ò3Ø×Ñ˜b 8¨\Ð":ó
ˆÕr‹   c                ód   ^ • SU 4S jjn[         R                  " T R                  0 U5      T l        g)zeannotate 'remote' in primaryjoin, secondaryjoin
when the parent/child tables are entirely
separate.

c                ó(  >• TR                   R                  R                  U 5      (       ag  TR                  R                  R                  U 5      (       a*  TR                  R                  R                  U 5      (       a  U R                  SS05      $ g rŽ  )r…  r  r¿  r†  r‡  rh  r^  s     €rŠ   r�  ÚAJoinCondition._annotate_remote_distinct_selectables.<locals>.repl  ss   ø€ Ø×,Ñ,×.Ñ.×>Ñ>¸w×GÑGØ×0Ñ0×2Ñ2×BÑBÀ7×KÑKØ×.Ñ.×0Ñ0×@Ñ@À×IÑIà×(Ñ(¨(°DÐ)9Ó:Ð:Ør‹   NrG  ©r<   rI  r³   )r˜   r�  s   ` rŠ   rŠ  Ú3JoinCondition._annotate_remote_distinct_selectablesû
  s*   ø€ ÷	ô $×8Ò8Ø×Ñ˜b $ó
ˆÕr‹   c                óJ   • [         R                  " SU R                  -  5        g )NzƒNon-simple column elements in primary join condition for property %s - consider using remote() annotations to mark the remote side.)r6   rò   r  r—   s    rŠ   r•  Ú'JoinCondition._warn_non_column_elements  s    € Ü�	Š	ð<à>B¿i¹iñHõ	
r‹   c                ó–  ^• U R                  U R                  S5      (       a  gU R                  (       a6  [        R                  " U R                   VVs/ s H  u  pUPM	     snn5      mO*[        R                  " U R
                  R                  5      mSU4S jjn[        R                  " U R                  0 U5      U l        gs  snnf )a  Annotate the primaryjoin and secondaryjoin
structures with 'local' annotations.

This annotates all column elements found
simultaneously in the parent table
and the join condition that don't have a
'remote' annotation set up from
_annotate_remote() or user-defined.

r=  Nc                óX   >• SU R                   ;  a  U T;   a  U R                  SS05      $ g )Nrƒ   r=  T)rC  rh  )r  r   Ú
local_sides     €rŠ   Úlocals_Ú.JoinCondition._annotate_local.<locals>.locals_*  s0   ø€ Ø˜w×3Ñ3Ó3¸À:Ó8MØ×(Ñ(¨'°4¨Ó9Ð9Ør‹   rG  )	rN  r³   rê   r6   rS  r„  r  r<   rI  )r˜   r!  r   r³  r²  s       @rŠ   r  ÚJoinCondition._annotate_local  sœ   ø€ ð ×Ñ × 0Ñ 0°'×:Ñ:Øà×#×#ÜŸšØ!%×!9Ò!9Ô:Ò!9‘v˜“Ñ!9Ò:ó‰Jô Ÿš¨×)GÑ)G×)IÑ)IÓJˆJ÷	ô
 $×8Ò8Ø×Ñ˜b 'ó
ˆÕùó ;s   ÁC
c                ód   ^ • SU 4S jjn[         R                  " T R                  0 U5      T l        g )Nc                óâ   >• SU R                   ;   a'  U R                  STR                  R                  05      $ SU R                   ;   a'  U R                  STR                  R                  05      $ g )Nrƒ   r  r=  )rC  rh  r  r  r+  r^  s     €rŠ   Úparentmappers_Ú<JoinCondition._annotate_parentmapper.<locals>.parentmappers_4  sb   ø€ Ø˜7×/Ñ/Ó/Ø×(Ñ(¨.¸$¿)¹)×:JÑ:JÐ)KÓLÐLØ˜G×0Ñ0Ó0Ø×(Ñ(¨.¸$¿)¹)×:JÑ:JÐ)KÓLÐLØr‹   rG  r¬  )r˜   r¸  s   ` rŠ   r  Ú$JoinCondition._annotate_parentmapper3  s*   ø€ ÷	ô $×8Ò8Ø×Ñ˜b .ó
ˆÕr‹   c                óx  • U R                   (       d%  [        R                  " SU R                  < S35      e[        R
                  " U R                  R                  5      R                  U R                  R                  5      nU R                    H'  u  p#X1;   d  M  [        R                  " SU< S35        M)     g )Nr&  a   could not determine any unambiguous local/remote column pairs based on join condition and remote_side arguments.  Consider using the remote() annotation to accurately mark those elements of the join condition that are on the remote side of the relationship.zExpression zÓ is marked as 'remote', but these column(s) are local to the local side.  The remote() annotation is needed only for a self-referential relationship where both sides of the relationship refer to the same tables.)rÑ   rð   rñ   r  r6   rS  r„  r  Ú
differencer…  rò   )r˜   Ú
not_targetÚ_Úrmts       rŠ   r  Ú JoinCondition._check_remote_side?  s”   € Ø×&×&Ü×&Ó&ð (,§y¤yð3ó	ð 	ô ŸšØ×.Ñ.×0Ñ0óç‰j˜×6Ñ6×8Ñ8Ó9ð ð ×1Ô1‘�ØÕ$Ü—I“Ió ð!öò 2r‹   c                óX  • U R                  US5      n[        U5      nU(       a  [        U R                  5      nO[        U R                  5      nU R                  (       a  U(       d  U R                  (       d  U(       a  gU R                  (       aT  U(       aM  U(       dF  SU=(       a    S=(       d    S< SU< SU R
                  < S3nUS	-  n[        R                  " U5      eS
U=(       a    S=(       d    S< SU< SU R
                  < S3nUS-  n[        R                  " U5      e)z@Check the foreign key columns collected and emit error
messages.r�   NzbCould not locate any simple equality expressions involving locally mapped foreign key columns for Úprimaryrœ   z join condition 'z' on relationship rç  a    Ensure that referencing columns are associated with a ForeignKey or ForeignKeyConstraint, or are annotated in the join condition with the foreign() annotation. To allow comparison operators other than '==', the relationship can be marked as viewonly=True.z6Could not locate any relevant foreign key columns for z¡  Ensure that referencing columns are associated with a ForeignKey or ForeignKeyConstraint, or are annotated in the join condition with the foreign() annotation.)Ú_gather_columns_with_annotationr¥   rÎ   rÐ   rŒ  r  rð   rñ   )r˜   rH   rÂ  Úforeign_colsÚhas_foreignÚcan_syncÚerrs          rŠ   r  Ú!JoinCondition._check_foreign_cols[  s	  € ð
 ×;Ñ;Ø˜Ió
ˆô ˜<Ó(ˆæÜ˜D×2Ñ2Ó3‰Hä˜D×<Ñ<Ó=ˆHð ××ÞØ×%×%®+àð
 ××¦·Xð ×) 	×8¨[Ò8Û"Ø—I”Iðð ð ðIñˆCô ×&Ò& sÓ+Ð+øð ×) 	×8¨[Ò8Û"Ø—I”Iðð ð ðñˆCô ×&Ò& sÓ+Ð+r‹   c                ó  • U R                   b  [        U l        g[        R                  " U R
                  R                  5      n[        R                  " U R                  R                  5      nUR                  U R                  5      nUR                  U R                  5      nU(       Ga  U(       Ga  U R                  U R                  SS5      nU R                  U R                  S5       Vs1 s H  nSUR                  ;  d  M  UiM     nnU(       aN  U(       aG  U R                  R                  U R                  5      nUR                  U5      nUR                  U5      nU(       a  U(       d  [         U l        gU(       a  U(       d  ["        U l        g[$        R&                  " SU R(                  -  5      eU(       a  [         U l        gU(       a  ["        U l        g[$        R&                  " SU R(                  -  5      es  snf )zKDetermine if this relationship is one to many, many to one,
many to many.

Nrƒ   r�   aD  Can't determine relationship direction for relationship '%s' - foreign key columns within the join condition are present in both the parent and the child's mapped tables.  Ensure that only those columns referring to a parent column are marked as foreign, either via the foreign() annotation or via the foreign_keys argument.z’Can't determine relationship direction for relationship '%s' - foreign key columns are present in neither the parent nor the child's mapped tables)r´   r'   rÒ   r6   rS  r„  r  r…  rª  r’  rÃ  r³   rC  r‘  rÌ   r¼  r)   r(   rð   rñ   r  )	r˜   Ú
parentcolsÚ
targetcolsÚonetomany_fkÚmanytoone_fkÚonetomany_localr  Úmanytoone_localÚself_equateds	            rŠ   r  Ú"JoinCondition._determine_directionœ  s¶  € ð
 ×ÑÑ)Ü'ˆD�NäŸš¨×)GÑ)G×)IÑ)IÓJˆJÜŸš¨×)FÑ)F×)HÑ)HÓIˆJð &×2Ñ2°4×3KÑ3KÓLˆLð &×2Ñ2°4×3KÑ3KÓLˆLç§ð #'×"FÑ"FØ×$Ñ$ h°	ó#�ð "×AÑAØ×(Ñ(¨)ôó#ò˜ð   q§~¡~Ñ5÷	 ñð  ð #ö #¦Ø#'×#6Ñ#6×#CÑ#CØ×*Ñ*ó$�Lð '6×&@Ñ&@ÀÓ&N�OØ&5×&@Ñ&@ÀÓ&N�Oö #®?Ü%.�D•NÞ$®_Ü%.�D•Nä ×.Ò.ð9ð <@¿9¹9ñEó	ð 	ö Ü!*�•ÞÜ!*�•ä×*Ò*ð4ð 7;·i±iñ@óð ùòU#s   Ã/HÄHc                óx   • U VVs/ s H%  u  p#UR                  5       UR                  5       4PM'     snn$ s  snnf )z¥provide deannotation for the various lists of
pairs, so that using them in hashes doesn't incur
high-overhead __eq__() comparisons against
original columns mapped.

)Ú_deannotate)r˜   ró  r¡  r¢  s       rŠ   Ú_deannotate_pairsÚJoinCondition._deannotate_pairsî  s1   € ñ @JÔJºz±t°q�—‘“ !§-¡-£/Ó2¹zÒJÐJùÓJs   †,6c                óB  ^ ^• / n[         R                  " / 5      m/ n      SUU 4S jjnT R                  U4T R                  U44 H  u  pEUc  M
  U" XE5        M     T R	                  T5      T l        T R	                  U5      T l        T R	                  U5      T l        g )Nc                óB   >^•         SUUU4S jjn[        X 5        g )Nc                ó  >• SUR                   ;   a9  SUR                   ;  a)  TR                  U5      (       a  TR                  X45        OHSUR                   ;   a8  SUR                   ;  a(  TR                  U5      (       a  TR                  X!45        U R                  [        R
                  L a^  TR                  X5      (       aG  SUR                   ;   a  TR                  X45        g SUR                   ;   a  TR                  X!45        g g g g )Nrƒ   r�   )rC  r�  r  Úoperatorr:   Úeqrø  )rk  rm  rn  ró  Úlrpr˜   s      €€€rŠ   rp  Ú<JoinCondition._setup_pairs.<locals>.go.<locals>.visit_binary  së   ø€ ð  × 2Ñ 2Ó2Ø ¨×(9Ñ(9Ó9Ø×-Ñ-¨d×3Ñ3à—G‘G˜T˜MÕ*à × 1Ñ 1Ó1Ø ¨×(:Ñ(:Ó:Ø×-Ñ-¨e×4Ñ4à—G‘G˜U˜MÔ*Ø—?‘?¤i§l¡lÒ2°t×7LÑ7LØ÷8ñ 8ð ! E×$6Ñ$6Ó6Ø"×)Ñ)¨4¨-Õ8Ø" d×&7Ñ&7Ó7Ø"×)Ñ)¨5¨-Õ8ð 8ð8Ð2r‹   )rk  rs  rm  r�   rn  r�   r¤   r§   rJ   )Újoincondró  rp  rÛ  r˜   s    ` €€rŠ   ÚgoÚ&JoinCondition._setup_pairs.<locals>.go   s;   ù€ ð9Ø-ð9à(ð9ð *ð9ð ÷	9ñ 9ô2 ! Õ8r‹   )rÝ  rÃ   ró  Ú_MutableColumnPairsr¤   r§   )r6   Ú
OrderedSetr³   r´   rÔ  rÑ   rÎ   rÐ   )r˜   Ú
sync_pairsÚsecondary_sync_pairsrÞ  rÝ  ró  rÛ  s   `     @rŠ   r  ÚJoinCondition._setup_pairsù  sÅ   ù€ Ø*,ˆ
ä�OŠO˜BÓð 	ð 57Ðð	9Ø)ð	9à+ð	9ð ÷	9ð 	9ð@ ×Ñ˜zÐ*Ø×ÑÐ!5Ð6ó%
Ñ ˆHð ÑÙÙˆxÖ$ñ%
ð #'×"8Ñ"8¸Ó"=ˆÔØ!%×!7Ñ!7¸
Ó!CˆÔØ+/×+AÑ+AØ ó,
ˆÕ(r‹   zwweakref.WeakKeyDictionary[ColumnElement[Any], weakref.WeakKeyDictionary[RelationshipProperty[Any], ColumnElement[Any]]]Ú_track_overlapping_sync_targetsc                óü  ^• U R                   (       d  g U R                   VVs/ s H  u  pX4PM
     snnU R                   VVs/ s H  u  pX4PM
     snn-    GH  u  nmTU R                  ;  a1  [        R
                  " U R                  U05      U R                  T'   MH  / nU R                  T   nUR                  5        GH   u  pVUR                  R                  (       a  M#  XPR                  R                  ;  d  M>  UR                  U R                  R                  ;  d  Md  U R                  R                  UR                  ;  d  MŠ  SU R                  R                  ;  d  M¦  SUR                  ;  d  M¸  U R                  R                  R                  UR                  5      (       a  Mî  U R                  R                  R                  UR                  5      (       a  GM%  U R                  R                  R                  UR                  5      (       a  GM\  U R                  R                  R                  UR                  5      (       a  GM“  U R                  R                  UR                  :w  d7  U R                  R                  R                  UR                  5      (       a  GMî  UR!                  XV45        GM     U(       aƒ  ["        R$                  " SU R                  < SU< ST< SSR'                  [)        U4S jU 5       5      5      < SS	R'                  [)        S
 U 5       5      5      < SU R                  < S3SS9  XR                  T   U R                  '   GM     g s  snnf s  snnf )Nz__*rw  z' will copy column z to column z(, which conflicts with relationship(s): z, c              3  óF   >#   • U  H  u  pS U< SU< ST< S3v •  M     g7f)r  z
' (copies z to rx  Nr°   )rC  ÚprÚfr_Úto_s      €rŠ   rE  ÚCJoinCondition._warn_for_conflicting_sync_targets.<locals>.<genexpr>~  s%   øé € ð '"â5@©	¨¨Só ACÃCËÕ$MÚ5@ùs   ƒ!a›  . If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards.   To silence this warning, add the parameter 'overlaps="r  c              3  ó>   #   • U  H  u  pUR                   v •  M     g 7fr–   )r	  )rC  rè  Úfrs      rŠ   rE  rë  ƒ  s   é € Ð+MÂ±v°r¨B¯F®FÂùs   ‚z"' to the 'z' relationship.Úqzyxr³  )rŒ  rÎ   rÐ   rå  ÚweakrefÚWeakKeyDictionaryr  rþ   r  Ú_dispose_calledrø   r	  rº   r+  Ú
is_siblingr/  rø  r6   rò   r,  Úsorted)r˜   Úfrom_rê  Úother_propsÚprop_to_fromrè  ré  s     `    rŠ   r?  Ú0JoinCondition._warn_for_conflicting_sync_targets4  s†  ø€ Ø× × Øð .2×-CÒ-Cô
Ú-C™\˜eˆU‹LÑ-Cò
ð .2×-MÒ-Mô
Ú-M™\˜eˆU‹LÑ-Mò
õ
‰JˆE�3ð ˜$×>Ñ>Ó>ä×-Ò-¨t¯y©y¸%Ð.@ÓAð ×4Ñ4°SÓ9ð !�Ø#×CÑCÀCÑH�à+×1Ñ1×3‘G�BàŸI™I×5×5Ñ5Ø§i¡i×&AÑ&AÕAØŸF™F¨$¯)©)×*=Ñ*=Õ=Ø ŸI™IŸM™M°·±Õ=ð "¨¯©×)<Ñ)<Õ<Ø!¨¯©Õ5Ø $§	¡	× 0Ñ 0× ;Ñ ;¸B¿I¹I× FÓ FØ $§	¡	× 0Ñ 0× ;Ñ ;¸B¿I¹I× FÔ FØ $§	¡	× 0Ñ 0× ;Ñ ;¸B¿I¹I× FÔ FØ $§	¡	× 0Ñ 0× ;Ñ ;¸B¿I¹I× FÔ Fà ŸI™IŸM™M¨R¯V©VÓ3Ø#'§9¡9×#3Ñ#3×#AÑ#AÀ"Ç)Á)×#LÔ#Lð $×*Ñ*¨B¨9×5ñ/  4ö2 Ü—I“Ið !ŸIœIÛ!ÛØ ŸI™IÜ &ô '"á5@ó'"ó !"öð  ŸH™H¤VÑ+MÁÓ+MÓ%MÖNØ ŸIœIð1ð4 $ò7ð: HM×4Ñ4°SÑ9¸$¿)¹)ÔDòW
ùó 
ùó
s   £M2ÁM8c                ó$   • U R                  S5      $ rU  ©Ú_gather_join_annotationsr—   s    rŠ   r‘  ÚJoinCondition.remote_columnsŠ  s   € à×,Ñ,¨XÓ6Ð6r‹   c                ó$   • U R                  S5      $ )Nr=  rù  r—   s    rŠ   rÌ   ÚJoinCondition.local_columnsŽ  s   € à×,Ñ,¨WÓ5Ð5r‹   c                ó$   • U R                  S5      $ rQ  rù  r—   s    rŠ   r’  Ú!JoinCondition.foreign_key_columns’  s   € à×,Ñ,¨YÓ7Ð7r‹   c                ó  • [        U R                  U R                  U5      5      nU R                  b+  UR	                  U R                  U R                  U5      5        U Vs1 s H  o3R                  5       iM     sn$ s  snf r–   )r÷   rÃ  r³   r´   rõ   rÓ  )r˜   rj  Úsr¡  s       rŠ   rú  Ú&JoinCondition._gather_join_annotations–  su   € ô Ø×0Ñ0°×1AÑ1AÀ:ÓNó
ˆð ×ÑÑ)Ø�H‰HØ×4Ñ4Ø×&Ñ&¨
óôñ
 *+Ó+ª A—‘–©Ñ+Ð+ùÒ+s   Á"A>c                óà   • [        U5      n[        R                  " U0 5       Vs1 s H<  nUR                  UR                  5      (       d  M%  [        [        [           U5      iM>     sn$ s  snf r–   )r÷   r<   rM  ÚissubsetrC  r   rA   r   )r˜   rD  rj  Úannotation_setr–  s        rŠ   rÃ  Ú-JoinCondition._gather_columns_with_annotation¤  sc   € ô ˜Z›ˆô  ×'Ò'¨°Ô3ó
â3�Ø×&Ñ& s×'7Ñ'7×8ó *ŒD”œsÑ# SÖ)Ù3ñ
ð 	
ùò 
s   ¥$A+ÁA+c                óÚ   • U R                   bJ  [        [        R                  " U R                   R                   Vs/ s H  oR
                  PM     sn6 5      $ [        R                  $ s  snf r–   )rœ   Ú	frozensetÚ	itertoolsÚchainr  Ú	proxy_setr6   Ú	EMPTY_SET©r˜   r  s     rŠ   Ú_secondary_lineage_setÚ$JoinCondition._secondary_lineage_set®  sT   € à�>‰>Ñ%ÜÜ—’°t·~±~×7GÒ7GÓ!HÒ7G°!§+¤+Ñ7GÑ!HÐIóð ô —>‘>Ð!ùò "Is   »A(c                ó<  ^ ^• [        USS05      nT R                  T R                  T R                  p‡nUb  Ub  Xt-  nOXd-  nU(       aS        S
U 4S jjm[	        U4S jU 5       5      nUb  U[
        R                  " U6 -  nOU[
        R                  " U6 -  nU(       añ  Ub„  UR                  SS9n[        U[        S9n	[        UT R                  S9R                  U	5      n
Ub/  [        U[        S9R                  [        UT R                  S95      n	U
R                  U5      nOF[        U[        T R                  S	9n	Ub(  U	R                  [        U[        T R                  S	95        Sn
U	R                  U5      nU
=(       d    U	nSUl        OSnUUUUU4$ )a  Given a source and destination selectable, create a
join between them.

This takes into account aliasing the join clause
to reference the appropriate corresponding columns
in the target objects, as well as the extra child
criterion, equivalent column sets, etc.

ra  TNc                óÚ   >• U R                   R                  SS5      nUTR                  R                  La4  UTR                  R                  La  U TR
                  ;  a  [        X5      $ U $ )z×note unrelated columns in the "extra criteria" as either
should be adapted or not adapted, even though they are not
part of our "local" or "remote" side.

see #9779 for this case, as well as #11010 for a follow up

r  N)rC  rõ  r  r+  r  r  r?   )r  r   Úparentmapper_for_elementr˜   s      €rŠ   Úmark_exclude_colsÚ5JoinCondition.join_targets.<locals>.mark_exclude_colsé  se   ø€ ð ,0×+<Ñ+<×+@Ñ+@Ø" Dó,Ð(ð
 -°D·I±I×4DÑ4DÒDØ0¸¿	¹	×8HÑ8HÒHØ D×$?Ñ$?Ó?ä)¨$Ó<Ð<à�Kr‹   c              3  ó>   >#   • U  H  n[        US S0TS9v •  M     g7f)Úshould_not_adaptT)Úannotate_callableNrB   )rC  r  r  s     €rŠ   rE  Ú-JoinCondition.join_targets.<locals>.<genexpr>  s/   øé € ð #ò +�Dô ØØ'¨Ð.Ø&7öò
 +ùs   ƒ)Úflat)Ú
exclude_fn)Úequivalents)r  r  )r  rf   r   re   r¤   rf   )rE   r³   r´   rœ   rG  r5   rK  re  rG   Ú_local_col_excluder‰  r
  rˆ  rg  Ú_remote_col_excluder  )r˜   r0  r_  râ  rt  r  r³   r´   rœ   Úprimary_aliasizerÚsecondary_aliasizerr:  r  s   `           @rŠ   rá  ÚJoinCondition.join_targets·  sò  ù€ ô6 ,ØÐ7¸Ð>ó
ˆð
 ×ÑØ×ÑØ�N‰Nð %.ˆð Ñ"ØÑ(Ø -Ñ ;‘à)Ñ7�æð Ø)ð Ø8Gð à$÷ ô0 #ô #ñ +ó#ó ˆNð Ñ(Ø -´·²¸.Ð0IÑ I‘à)¬C¯HªH°nÐ,EÑE�æØÑ$Ø%×;Ñ;ÀÐ;ÐF�	Ü$1ØÜ1ñ%Ð!ô '4Ø#°×1GÑ1Gñ'ç‘%Ð)Ó*ð $ð %Ñ0Ü(5Ø!Ü#5ñ)÷ ‘eÜ%Ø-Ø(,×(?Ñ(?ñóð &ð !4× <Ñ <¸]Ó K‘ä$1Ø#Ü1Ø $× 6Ñ 6ñ%Ð!ð
 %Ñ0Ø%×+Ñ+Ü%Ø-Ü':Ø(,×(?Ñ(?ñôð '+Ð#à+×4Ñ4°[ÓAˆKØ0×EÐ4EˆNØ(,ˆNÕ%à!ˆNàØØØØð
ð 	
r‹   c                óÂ  ^^
^^• 0 m
0 nU R                   S LmT(       aI  [        R                  " [        5      mU R                   H  u  p4TU   R                  X445        X2U'   M      O:T(       d  U R                   H	  u  p4X2U'   M     OU R                   H	  u  p4XBU'   M           SU
UUU4S jjnU R                  nU R                   b  T(       d  [        R                  " U0 U5      nU R                   bA  U R                   nT(       a  [        R                  " U0 U5      n[        R                  " Xg5      nT
 Vs0 s H  nT
U   R                  U_M     n	nXiU4$ s  snf )Nc                óè   >• T(       d  SU R                   ;   d+  T(       aS  T(       a  U T;   d  T(       d?  SU R                   ;   a/  U T;  a$  [        R                  " S S U R                  SS9TU '   TU    $ g )Nr=  rƒ   T)rˆ  r‰  )rC  r5   rŒ  r�  )r  r   ÚbindsÚhas_secondaryÚlookuprÊ  s     €€€€rŠ   Úcol_to_bindÚ5JoinCondition.create_lazy_clause.<locals>.col_to_bindX  sj   ø€ ö '¨7°g×6JÑ6JÓ+JÞ$æ" w°&Ó'8Þ)¨h¸'×:NÑ:NÓ.Nð  %Ó'Ü%(§]¢]Ø˜d¨'¯,©,¸tñ&�E˜'‘Nð ˜W‘~Ð%Ør‹   )r  r�   r   r   r¤   zOptional[BindParameter[Any]])r´   ÚcollectionsÚdefaultdictÚlistrÑ   rø  r³   r<   rI  r5   rK  r	  )r˜   rÊ  Úequated_columnsr!  r   r&  Ú	lazywherer´   r–  r¾  r#  r$  r%  s    `        @@@rŠ   Úcreate_lazy_clauseÚ JoinCondition.create_lazy_clauseB  se  û€ ð
 ?AˆØHJˆà×*Ñ*°$Ð6ˆæÜ ×,Ò,¬TÓ2ˆFØ×/Ô/‘�Ø�q‘	× Ñ  ! Ô(Ø%& Ó"ò 0ö #Ø×/Ô/‘�Ø%& Ó"ò 0ð ×/Ô/‘�Ø%& Ó"ñ 0ð	Ø'ð	Ø/2ð	à)÷	ò 	ð$ ×$Ñ$ˆ	Ø×ÑÑ%Ö->Ü ×5Ò5Ø˜2˜{óˆIð ×ÑÑ)Ø ×.Ñ.ˆMÞ Ü (× =Ò =Ø! 2 {ó!�ô Ÿš Ó:ˆIá6;Ó<²e¨s�u˜S‘z—~‘~ sÒ*±eˆÐ<à Ð6Ð6ùò =s   Ä<E)rê   r  r�  r‰  r‡  r…  rŠ  rÒ   rÑ   rˆ  r†  r„  r³   r  r  rœ   rÐ   r´   r‹  rŒ  rÎ   ) r„  rk   r…  rk   r†  rk   r‡  rk   r³   rÄ   rœ   rÅ   r´   rÄ   rˆ  úOptional[_EquivalentColumnMap]r‰  r/  rŠ  r   rÑ   rÏ   r·   r   r‹  r   r  rï  rŒ  r¥   r�  zCallable[..., bool]rð  r®  )rD  ri   rj  r”   r¤   r¥   r£   )r—  z$Callable[[ColumnElement[Any]], bool]r˜  r¥   r¤   r§   )rH   rÃ   rÂ  r¥   r¤   r§   )ró  Ú_ColumnPairIterabler¤   rà  )r¤   rÉ   )rj  r”   r¤   rÉ   )rD  r�   rj  zIterable[str]r¤   rÉ   )r¤   zFrozenSet[ColumnElement[Any]])Nr°   )r0  rÅ   r_  rk   râ  r¥   rt  rÄ   r  r­  r¤   ztTuple[ColumnElement[bool], Optional[ColumnElement[bool]], Optional[FromClause], Optional[ClauseAdapter], FromClause])F)rÊ  r¥   r¤   zgTuple[ColumnElement[bool], Dict[str, ColumnElement[Any]], Dict[ColumnElement[Any], ColumnElement[Any]]])2r¨   r©   rª   r«   r®   rî   r  r  r  r  rÊ  rÉ  r6   rú  rË  rN  rJ  rH  r  rX  rY  r~  r�  r  r†  rˆ  r‡  r‰  rŠ  r•  r  r  r  r  r  rÔ  r  rï  rð  rå  r?  r‘  rÌ   r’  rú  rÃ  r  rá  r-  r¯   r°   r‹   rŠ   rÆ   rÆ   Ú  so  ‡ Ø6Ó6Ø$Ó$Ø0Ó0Ø#Ó#Ø
#Ó#à#Ó#Ø!-Ó-Ø$Ó$à)Ó)Ø(Ó(Ø'Ó'Ø&Ó&à/Ó/ð 6:Ø*.Ø7;Ø=AØ<@Ø(,Ø59ØØ %à!Ù0?ñ%3à#-ð3ð #-ð3ð ",ð	3ð
 !+ð3ð 3ð3ð (ð3ð 5ð3ð ;ð3ð :ð3ð #&ð3ð 3ð3ð ð3ð ð3ð  (ð!3ð" ð#3ð$ .õ%3ôj$LôLô$]ð~ óNó ðNð óPó ðPð 
×Ñó":ó ð":ôHð 
×ÑóAó ðAð 
×Ñó@ó ð@ô)ôô0ôdô2
ô9ô,
ð.
Ø6ð
ØKOð
à	ô
ô2ôB/
ôb
ô&
ô
ô<

ôð8?,Ø1ð?,Ø<@ð?,à	ô?,ôBPðd	KØ-ð	Kà	ô	Kô2
ðr 	×!Ò!Ó#ð $ð &ó $ôTMðl 
×Ñó7ó ð7ð 
×Ñó6ó ð6ð 
×Ñó8ó ð8ð,Øð,à	 ô,ð
Ø(ð
Ø7Dð
à	 ô
ð 
×Ñó"ó ð"ð 6:Ø:<ðI
à/ðI
ð $ðI
ð ð	I
ð
 3ðI
ð 8ðI
ð
õI
÷V87ñ 87r‹   rÆ   c                  ó0   • \ rS rSrSrSrSS jrSS jrSrg)	Ú_ColInAnnotationsi}  zœSerializable object that tests for names in c._annotations.

TODO: does this need to be serializable anymore?  can we find what the
use case was for that?

)Únamesc                ó$   • [        U5      U l        g r–   )r  r3  )r˜   r3  s     rŠ   rî   Ú_ColInAnnotations.__init__‡  s   € Ü˜uÓ%ˆ�
r‹   c                ó^   • [        U R                  R                  UR                  5      5      $ r–   )r¥   r3  rª  rC  r  s     rŠ   Ú__call__Ú_ColInAnnotations.__call__Š  s    € Ü�D—J‘J×+Ñ+¨A¯N©NÓ;Ó<Ð<r‹   N)r3  r”   )r  ri   r¤   r¥   )	r¨   r©   rª   r«   r¬   r­   rî   r7  r¯   r°   r‹   rŠ   r2  r2  }  s   † ñð €Iô&÷=r‹   r2  r=  r  rƒ   c                  ó   • \ rS rSrSrSrSrg)ÚRelationshipi’  au  Describes an object property that holds a single item or list
of items that correspond to a related database table.

Public constructor is the :func:`_orm.relationship` function.

.. seealso::

    :ref:`relationship_config_toplevel`

.. versionchanged:: 2.0 Added :class:`_orm.Relationship` as a Declarative
   compatible subclass for :class:`_orm.RelationshipProperty`.

Tr°   N)r¨   r©   rª   r«   r¬   rõ  r¯   r°   r‹   rŠ   r:  r:  ’  s   † ñð €MÚr‹   r:  c                  ó2   • \ rS rSrSrSr \SS j5       rSrg)Ú_RelationshipDeclaredi¨  z>Relationship subclass used implicitly for declarative mapping.Tc                ó   • g)Nr:  r°   )rg  s    rŠ   Ú_mapper_property_nameÚ+_RelationshipDeclared._mapper_property_name²  s   € àr‹   r°   Nrî  )	r¨   r©   rª   r«   r¬   rõ  Úclassmethodr>  r¯   r°   r‹   rŠ   r<  r<  ¨  s"   † ñ
 Ià€MØàóó ór‹   r<  )r‰   r   r¤   r   )r  r€   r   re   r¤   r€   )«r¬   Ú
__future__r   r(  r   Údataclassesr7   ra  r	  rù   rd  r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   rï  Ú r   r   Ú_typingr   r   Úbaser   r   r   r    r!   r"   r#   r$   Ú
interfacesr%   r&   r'   r(   r)   r*   r+   r,   r6   r-   r.   r/   r1   rð   r2   r3   r4   r5   Ú
inspectionr8   r9   r:   r;   r<   Úsql._typingr=   r>   Úsql.annotationr?   Úsql.elementsr@   rA   Úsql.utilrC   rD   rE   rF   rG   rH   rI   rK   Úutil.typingrL   rM   rN   ÚTYPE_CHECKINGrO   rP   rQ   rR   rS   rT   rU   rV   ÚclsregistryrW   rX   Ú	decl_baserY   rÖ  rZ   r  r[   Úqueryr\   rû  r]   r�  r^   Ú
strategiesr_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   Ú
sql.schemarj   Úsql.selectablerk   rl   rm   rn   rp   rq   rr   rs   r”   Ú_RelationshipArgumentTyperé  r¥   Ú"_RelationshipJoinConditionArgumentÚ_RelationshipSecondaryArgumentrè  ÚORMBackrefArgumentÚDMLColumnRoleÚ_ORMColCollectionElementÚ_ORMColCollectionArgumentr   r€   r0  rÍ   rà  rƒ   r�   Ú	dataclassr�   rÈ   r²   Úclass_loggerÚ
Identifiedr¹   r…   rÆ   r2  r  r  r:  r<  r°   r‹   rŠ   Ú<module>r^     s½  ðñõ #ã Ý Û Û Û Û 	Û Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Û å Ý Ý *Ý .Ý $Ý "Ý Ý Ý &Ý Ý Ý !Ý )Ý /Ý "Ý !Ý !Ý &Ý -Ý +Ý Ý !Ý  Ý Ý Ý Ý Ý Ý Ý  Ý Ý Ý Ý Ý Ý 3Ý +Ý +Ý 'Ý (Ý %Ý 'Ý (Ý .Ý $Ý %Ý *Ý +Ý 4Ý !Ý 9à	××Ý$Ý,Ý)Ý&Ý,ÝÝ&ÝÝ,Ý#Ý1Ý/ÝÝÝ Ý$Ý&Ý"Ý!Ý/Ý2Ý'Ý0Ý4Ý/Ý,Ý,Ý"Ý+Ý1Ý3áˆT˜Ñ€Ùˆe˜3Ñ€Ùˆe˜3Ñ€áˆe˜3Ñ€áˆv˜SÑ!€ð "ØØˆ�HØˆR��b‘ˆ\ÑØØØˆR�ÐÑØˆRÐ#Ð#Ñ$ð&ñÐ ð  ð
ñÐ ð" &+ØÐ	" 4Ñ	(Ð(ñ&Ð "ð "'Ø�#�x  LÐ 0Ñ1Ð1ñ"Ð ð ØˆE�NØØ˜cÑ"ØˆRÐ*¨3Ñ/Ð/Ñ0ØˆR�Ð3°CÑ8Ñ9Ð9Ñ:ØˆU�3Ð1°#Ñ6Ð6Ñ7Ñ8ð:ñÐ ð ˜3  c¨4°°S°©>Ð&9Ñ :Ð:Ñ;Ð à Ø�ÑØ�cÑØ	×ÒØðñÐ ð "ØØÐ%Ñ&ØˆR�Ð2Ñ3Ð3Ñ4ØˆRÐ)Ð)Ñ*Øð	ñÐ ñ ˆvÐ6°sÑ;Ñ<€áˆeÐ/Ñ0€ð ˜u ]°3Ñ%7¸ÀsÑ9KÐ%KÑLÑMÐ à˜˜m¨CÑ0°-ÀÑ2DÐDÑEÑF€à˜5 ¨sÑ!3°]À3Ñ5GÐ!GÑHÑIÐ ôô&ð( ×Òô'�w˜s C˜xÑ(ó 'ó ð'ð:   ¨¡°°mÀCÑ6HÈ#Ð6MÑ0NÐ NÑOÐ ô˜
ô ð6 ×ÒôT
ØÐ0°Ñ4°c·n²nóT
ó ðT
ôn<
÷`7ñ `7÷F%=ñ =ñ" ' wÐ0BÓCÐ Ù'¨Ð2DÓEÐ ôØ˜ÑØ�rÑôô,Ø�ÑØ�BÑØ�"Ñõr‹   