§
    ‹hþhY&  ã                   óD   — d „ Z d„ Zd„ Zd„ Zd„ Zdd„Zd„ Zd„ Zd	„ Zd
„ Z	dS )c                 óž   — t          | ¦  «        dk    rt          d¦  «        ‚t          t          | ¦  «        ¦  «        t          | ¦  «        z  S )Né    zx must have positive length)ÚlenÚ
ValueErrorÚfloatÚsum©Úxs    úM/var/www/histauto/venv/lib/python3.11/site-packages/plotly/shapeannotation.pyÚ_meanr      s=   € Ý
ˆ1�v„v�‚{€{ÝÐ6Ñ7Ô7Ð7Ý•�Q‘”‰=Œ=�3˜q™6œ6Ñ!Ð!ó    c                 óX   — t          t          | ¦  «        d„ ¬¦  «        d         d         S )Nc                 ó   — | d         S ©Né   © ©Úts    r
   ú<lambda>z_argmin.<locals>.<lambda>   ó
   € ¨a°¬d€ r   )Úkeyr   ©ÚsortedÚ	enumerater   s    r
   Ú_argminr   
   s'   € Ý•)˜A‘,”, N NÐ3Ñ3Ô3°AÔ6°qÔ9Ð9r   c                 óZ   — t          t          | ¦  «        d„ d¬¦  «        d         d         S )Nc                 ó   — | d         S r   r   r   s    r
   r   z_argmax.<locals>.<lambda>   r   r   T)r   Úreverser   r   r   s    r
   Ú_argmaxr      s)   € Ý•)˜A‘,”, N N¸DÐAÑAÔAÀ!ÔDÀQÔGÐGr   c                 ó*   — t          | |||d¬¦  «        S )zDefault annotation parametersF)ÚxanchorÚyanchorr	   ÚyÚ	showarrow)Údict)r    r!   r	   r"   s       r
   Ú_df_annor%      s   € å˜¨°A¸ÀeÐLÑLÔLÐLr   c                 ó@   — d| v sd| v s|                       d¦  «         | S )NÚinsideÚoutside)Úadd)Úposs    r
   Ú_add_inside_to_positionr+      s,   € Ø˜ˆOˆO˜y¨CÐ/Ð/Ø�Š�ÑÔÐØ€Jr   Fc                 ó|   — | €d} | }t          |                      d¦  «        ¦  «        } |rt          | ¦  «        } | |fS )Nz	top rightú )ÚsetÚsplitr+   )ÚpositionÚprepend_insideÚpos_strs      r
   Ú_prepare_positionr3      sK   € ØÐØˆØ€GÝ�8—>’> #Ñ&Ô&Ñ'Ô'€HØð 5Ý*¨8Ñ4Ô4ˆØ�WÐÐr   c                 ó`  — |d         }|d         }|d         }|d         }||g}||g}d}	d}
d}d}d	}d
}t          |¦  «        }t          |¦  «        }t          |¦  «        }t          |¦  «        }t	          |¦  «        }t          |¦  «        }t          |¦  «        }t          |¦  «        }t          |¦  «        }t	          |¦  «        }t          |¦  «        \  }}| dk    �rZ|t          ddg¦  «        k    rt          |	|
||         |¦  «        S |t          ddg¦  «        k    rt          ||
||         |¦  «        S |t          dg¦  «        k    rt          ||||         |¦  «        S |t          d	dg¦  «        k    rt          |	|||         |¦  «        S |t          d	dg¦  «        k    rt          ||||         |¦  «        S |t          d	g¦  «        k    rt          ||
||         |¦  «        S |t          dg¦  «        k    rt          |	|||¦  «        S |t          dg¦  «        k    rt          ||||¦  «        S �n_| dk    �rX|t          ddg¦  «        k    rt          |||||         ¦  «        S |t          ddg¦  «        k    rt          |	||||         ¦  «        S |t          dg¦  «        k    rt          ||||¦  «        S |t          d	dg¦  «        k    rt          ||
|||         ¦  «        S |t          d	dg¦  «        k    rt          |	|
|||         ¦  «        S |t          d	g¦  «        k    rt          ||
||¦  «        S |t          dg¦  «        k    rt          |	||||         ¦  «        S |t          dg¦  «        k    rt          |||||         ¦  «        S t          d|›d�¦  «        ‚)NÚx0Úx1Úy0Úy1ÚrightÚtopÚleftÚcenterÚbottomÚmiddleÚvlineÚhlinezInvalid annotation position "ú")	ÚmaxÚminr   r   r   r3   r.   r%   r   )Ú
shape_typeÚ
shape_argsr0   r5   r6   r7   r8   ÚXÚYÚRÚTÚLÚCÚBÚMÚaYÚiYÚeYÚaaYÚaiYÚaXÚiXÚeXÚaaXÚaiXr2   s                             r
   Úannotation_params_for_linerX   '   sÔ  € ð
 
�DÔ	€BØ	�DÔ	€BØ	�DÔ	€BØ	�DÔ	€BØ	ˆRˆ€AØ	ˆRˆ€AØ€AØ€AØ€AØ€AØ€AØ€AÝ	ˆQ‰Œ€BÝ	ˆQ‰Œ€BÝ	ˆq‰Œ€BÝ
�!‰*Œ*€CÝ
�!‰*Œ*€CÝ	ˆQ‰Œ€BÝ	ˆQ‰Œ€BÝ	ˆq‰Œ€BÝ
�!‰*Œ*€CÝ
�!‰*Œ*€CÝ)¨(Ñ3Ô3Ñ€HˆgØ�WÒÑØ•s˜E 6˜?Ñ+Ô+Ò+Ð+Ý˜A˜q ! C¤&¨"Ñ-Ô-Ð-Ø•s˜E 7Ð+Ñ,Ô,Ò,Ð,Ý˜A˜q ! C¤&¨"Ñ-Ô-Ð-Ø•s˜E˜7‘|”|Ò#Ð#Ý˜A˜q ! C¤&¨"Ñ-Ô-Ð-Ø•s˜H fÐ-Ñ.Ô.Ò.Ð.Ý˜A˜q ! C¤&¨"Ñ-Ô-Ð-Ø•s˜H gÐ.Ñ/Ô/Ò/Ð/Ý˜A˜q ! C¤&¨"Ñ-Ô-Ð-Ø•s˜H˜:‘”Ò&Ð&Ý˜A˜q ! C¤&¨"Ñ-Ô-Ð-Ø•s˜F˜8‘}”}Ò$Ð$Ý˜A˜q " bÑ)Ô)Ð)Ø•s˜G˜9‘~”~Ò%Ð%Ý˜A˜q " bÑ)Ô)Ð)ñ &à	�wÒ	Ñ	Ø•s˜E 6˜?Ñ+Ô+Ò+Ð+Ý˜A˜q " a¨¤fÑ-Ô-Ð-Ø•s˜E 7Ð+Ñ,Ô,Ò,Ð,Ý˜A˜q " a¨¤fÑ-Ô-Ð-Ø•s˜E˜7‘|”|Ò#Ð#Ý˜A˜q " bÑ)Ô)Ð)Ø•s˜H fÐ-Ñ.Ô.Ò.Ð.Ý˜A˜q " a¨¤fÑ-Ô-Ð-Ø•s˜H gÐ.Ñ/Ô/Ò/Ð/Ý˜A˜q " a¨¤fÑ-Ô-Ð-Ø•s˜H˜:‘”Ò&Ð&Ý˜A˜q " bÑ)Ô)Ð)Ø•s˜F˜8‘}”}Ò$Ð$Ý˜A˜q " a¨¤fÑ-Ô-Ð-Ø•s˜G˜9‘~”~Ò%Ð%Ý˜A˜q " a¨¤fÑ-Ô-Ð-Ý
ˆ*¸7¸7¸7ÐDÑ
EÔ
EÐEr   c           	      ó6
  — |d         }|d         }|d         }|d         }t          |d¬¦  «        \  }}|t          g d¢¦  «        k    r0t          dd	t          ||g¦  «        t	          ||g¦  «        ¦  «        S |t          g d
¢¦  «        k    r0t          dd	t	          ||g¦  «        t	          ||g¦  «        ¦  «        S |t          dd	g¦  «        k    r0t          dd	t          ||g¦  «        t	          ||g¦  «        ¦  «        S |t          g d¢¦  «        k    r0t          ddt          ||g¦  «        t          ||g¦  «        ¦  «        S |t          g d¢¦  «        k    r0t          ddt	          ||g¦  «        t          ||g¦  «        ¦  «        S |t          ddg¦  «        k    r0t          ddt          ||g¦  «        t          ||g¦  «        ¦  «        S |t          ddg¦  «        k    r0t          ddt          ||g¦  «        t          ||g¦  «        ¦  «        S |t          ddg¦  «        k    r0t          ddt	          ||g¦  «        t          ||g¦  «        ¦  «        S |t          dg¦  «        k    r0t          ddt          ||g¦  «        t          ||g¦  «        ¦  «        S |t          g d¢¦  «        k    r@t          | dk    rdnd| dk    rdnd	t          ||g¦  «        t	          ||g¦  «        ¦  «        S |t          g d¢¦  «        k    r@t          | dk    rdnd| dk    rdnd	t	          ||g¦  «        t	          ||g¦  «        ¦  «        S |t          dd	g¦  «        k    r0t          ddt          ||g¦  «        t	          ||g¦  «        ¦  «        S |t          g d¢¦  «        k    r@t          | dk    rdnd| dk    rd	ndt          ||g¦  «        t          ||g¦  «        ¦  «        S |t          g d¢¦  «        k    r@t          | dk    rdnd| dk    rd	ndt	          ||g¦  «        t          ||g¦  «        ¦  «        S |t          ddg¦  «        k    r0t          dd	t          ||g¦  «        t          ||g¦  «        ¦  «        S |t          ddg¦  «        k    r0t          ddt          ||g¦  «        t          ||g¦  «        ¦  «        S |t          ddg¦  «        k    r0t          ddt	          ||g¦  «        t          ||g¦  «        ¦  «        S t          d|›�¦  «        ‚)Nr5   r6   r7   r8   T)r1   )r'   r:   r;   r;   r:   )r'   r:   r9   r9   r'   r<   )r'   r=   r;   r=   )r'   r=   r9   r>   )r(   r:   r;   ÚvrectÚhrect)r(   r:   r9   r(   )r(   r=   r;   )r(   r=   r9   zInvalid annotation position )r3   r.   r%   rC   rB   r   r   )rD   rE   r0   r5   r6   r7   r8   r2   s           r
   Úannotation_params_for_rectr\   h   sA  € Ø	�DÔ	€BØ	�DÔ	€BØ	�DÔ	€BØ	�DÔ	€Bå)¨(À4ÐHÑHÔHÑ€HˆgØ•3Ð0Ð0Ð0Ñ1Ô1Ò1Ð1Ý˜ ¥s¨B°¨8¡}¤}µc¸2¸r¸(±m´mÑDÔDÐDØ•3Ð1Ð1Ð1Ñ2Ô2Ò2Ð2Ý˜ ­¨R°¨H©¬µs¸BÀ¸8±}´}ÑEÔEÐEØ•3˜ %Ð(Ñ)Ô)Ò)Ð)Ý˜ %­°°B¨x©¬½#¸rÀ2¸h¹-¼-ÑHÔHÐHØ•3Ð3Ð3Ð3Ñ4Ô4Ò4Ð4Ý˜ ­#¨r°2¨h©-¬-½¸bÀ"¸X¹¼ÑGÔGÐGØ•3Ð4Ð4Ð4Ñ5Ô5Ò5Ð5Ý˜ ­3°°B¨x©=¬=½#¸rÀ2¸h¹-¼-ÑHÔHÐHØ•3˜ (Ð+Ñ,Ô,Ò,Ð,Ý˜ (­E°2°r°(©O¬O½SÀ"ÀbÀ¹]¼]ÑKÔKÐKØ•3˜ &Ð)Ñ*Ô*Ò*Ð*Ý˜ ­#¨r°2¨h©-¬-½ÀÀB¸x¹¼ÑIÔIÐIØ•3˜ 'Ð*Ñ+Ô+Ò+Ð+Ý˜ ­3°°B¨x©=¬=½%ÀÀRÀ¹/¼/ÑJÔJÐJØ•3˜�z‘?”?Ò"Ð"å˜ (­E°2°r°(©O¬O½UÀBÈÀ8¹_¼_ÑMÔMÐMØ•3Ð1Ð1Ð1Ñ2Ô2Ò2Ð2ÝØ! WÒ,Ð,ˆGˆG°&Ø" gÒ-Ð-ˆHˆH°5Ý��R�‰MŒMÝ��R�‰MŒMñ	
ô 
ð 	
ð •3Ð2Ð2Ð2Ñ3Ô3Ò3Ð3ÝØ  GÒ+Ð+ˆFˆF°Ø" gÒ-Ð-ˆHˆH°5Ý��R�‰MŒMÝ��R�‰MŒMñ	
ô 
ð 	
ð •3˜	 5Ð)Ñ*Ô*Ò*Ð*Ý˜ (­E°2°r°(©O¬O½SÀ"ÀbÀ¹]¼]ÑKÔKÐKØ•3Ð4Ð4Ð4Ñ5Ô5Ò5Ð5ÝØ! WÒ,Ð,ˆGˆG°&Ø 7Ò*Ð*ˆEˆE°Ý��R�‰MŒMÝ��R�‰MŒMñ	
ô 
ð 	
ð •3Ð5Ð5Ð5Ñ6Ô6Ò6Ð6ÝØ  GÒ+Ð+ˆFˆF°Ø 7Ò*Ð*ˆEˆE°Ý��R�‰MŒMÝ��R�‰MŒMñ	
ô 
ð 	
ð •3˜	 8Ð,Ñ-Ô-Ò-Ð-Ý˜ %­°°B¨x©¬½#¸rÀ2¸h¹-¼-ÑHÔHÐHØ•3˜	 6Ð*Ñ+Ô+Ò+Ð+Ý˜ ­3°°B¨x©=¬=½%ÀÀRÀ¹/¼/ÑJÔJÐJØ•3˜	 7Ð+Ñ,Ô,Ò,Ð,Ý˜ ­#¨r°2¨h©-¬-½ÀÀB¸x¹¼ÑIÔIÐIÝ
ˆ*¸¸ÐBÑ
CÔ
CÐCr   c                 óT  ‡
— dŠ
t          ‰
¦  «        }t          t          ˆ
fd„|                     ¦   «         ¦  «        ¦  «        }| €t          |¦  «        dk    rdS | €t	          ¦   «         } |D ]}|dk    rŒ	||d…         }||         | |<   Œd}d|                     ¦   «         v r|d         }|                     d¦  «        rt          |||¦  «        }	n&|                     d¦  «        rt          |||¦  «        }	|	                     ¦   «         D ]}|| vs| |         €|	|         | |<   Œ| S )a8  
    annotation: a go.layout.Annotation object, a dict describing an annotation, or None
    shape_type: one of 'vline', 'hline', 'vrect', 'hrect' and determines how the
                x, y, xanchor, and yanchor values are set.
    shape_args: the parameters used to draw the shape, which are used to place the annotation
    kwargs:     a dictionary that was the kwargs of a
                _process_multiple_axis_spanning_shapes spanning shapes call. Items in this
                dict whose keys start with 'annotation_' will be extracted and the keys with
                the 'annotation_' part stripped off will be used to assign properties of the
                new annotation.

    Property precedence:
    The annotation's x, y, xanchor, and yanchor properties are set based on the
    shape_type argument. Each property already specified in the annotation or
    through kwargs will be left as is (not replaced by the value computed using
    shape_type). Note that the xref and yref properties will in general get
    overwritten if the result of this function is passed to an add_annotation
    called with the row and col parameters specified.

    Returns an annotation populated with fields based on the
    annotation_position, annotation_ prefixed kwargs or the original annotation
    passed in to this function.
    Úannotation_c                 ó.   •— |                       ‰¦  «        S )N)Ú
startswith)ÚkÚprefixs    €r
   r   z0axis_spanning_shape_annotation.<locals>.<lambda>Ä   s   ø€ ¨A¯LªL¸Ñ,@Ô,@€ r   Nr   Úannotation_positionÚlineÚrect)r   ÚlistÚfilterÚkeysr$   ÚendswithrX   r\   )Ú
annotationrD   rE   ÚkwargsÚ
len_prefixÚannotation_keysra   Úsubkrc   Ú
shape_dictrb   s             @r
   Úaxis_spanning_shape_annotationrp   ©   sr  ø€ ð2 €FÝ�V‘”€JÝ�6Ð"@Ð"@Ð"@Ð"@À&Ç+Â+Á-Ä-ÑPÔPÑQÔQ€Oð Ð�c /Ñ2Ô2°aÒ7Ð7Øˆtð ÐÝ‘V”Vˆ
Øð %ð %ˆØÐ%Ò%Ð%àØ���Œ~ˆØ! !œ9ˆ
�4ÑÐàÐØ §¢¡¤Ð-Ð-Ø$Ð%:Ô;ÐØ×Ò˜6Ñ"Ô"ð 
Ý/Ø˜
Ð$7ñ
ô 
ˆ
ˆ
ð 
×	Ò	˜VÑ	$Ô	$ð 
Ý/Ø˜
Ð$7ñ
ô 
ˆ
ð �_Š_ÑÔð *ð *ˆð
 �ZÐÐ Z°¤]Ð%:Ø& qœMˆJ�q‰MøØÐr   c                 óÈ   — t          ¦   «         }t          ¦   «         }|                      ¦   «         D ].}|                     |¦  «        r| |         ||<   Œ#| |         ||<   Œ/||fS )zë
    Returns two dictionaries, one containing all the items whose keys do not
    start with a prefix and another containing all the items whose keys do start
    with the prefix. Note that the prefix is not removed from the keys.
    )r$   rh   r`   )Údrb   Ú	no_prefixÚwith_prefixra   s        r
   Úsplit_dict_by_key_prefixru   é   sj   € õ ‘”€IÝ‘&”&€KØ�VŠV‰XŒXð  ð  ˆØ�<Š<˜ÑÔð 	 Ø˜qœTˆK˜‰NˆNà˜Qœ4ˆI�a‰LˆLØ�{Ð#Ð#r   N)F)
r   r   r   r%   r+   r3   rX   r\   rp   ru   r   r   r
   ú<module>rv      s¹   ðð"ð "ð "ð:ð :ð :ðHð Hð HðMð Mð Mð
ð ð ðð ð ð ð>Fð >Fð >FðB>Dð >Dð >DðB=ð =ð =ð@$ð $ð $ð $ð $r   