a
    ~¤b_  ã                   @   s(   d dl mZ d dlmZmZ dd„ ZdS )é    )Úcombinations)ÚStoreÚOptionsc           	      C   s‚   g }t  | ¡}t| ¡ ƒD ]b\}}t|ƒdkr0qdd„ |j ¡ D ƒ}ttjdƒD ]*\}}|| || @ }|rP| 	||f¡ qPq|S )Né   c                 S   s   i | ]\}}|t |jƒ“qS © )ÚsetZallowed_keywords)Ú.0ÚkÚor   r   ú@lib/python3.9/site-packages/holoviews/tests/plotting/__init__.pyÚ
<dictcomp>   s   ÿz(option_intersections.<locals>.<dictcomp>é   )
r   ÚoptionsÚsortedÚitemsÚlenÚgroupsr   r   Z_option_groupsÚappend)	ZbackendZintersectionsr   r	   ZoptsZvalid_optionsZg1Zg2Úintersectionr   r   r   Úoption_intersections   s    
ÿr   N)Ú	itertoolsr   Zholoviews.core.optionsr   r   r   r   r   r   r   Ú<module>   s   