�
B�gw� � �. � d Z ddlZddlZddlmZ ej ej d�� � Zg d�Zdd�Z ee � � dd�� � Z
d � Z ddd
�d�Z ee� � dd
d
�d�� � Z
d d
d
�d�Z dd�Z ee� � d!d�� � Zd"d�Z ee� � d#d�� � Zddd�d�Z ee� � d!dd�d�� � Zddd�d�Z ee� � d!dd�d�� � Zd� Z ee� � d� � � Zd"d�Z ee� � d#d�� � ZdS )$a~
Set operations for arrays based on sorting.
Notes
-----
For floating point arrays, inaccurate results may appear due to usual round-off
and floating point comparison issues.
Speed could be gained in some operations by an implementation of
`numpy.sort`, that can provide directly the permutation vectors, thus avoiding
calls to `numpy.argsort`.
Original author: Robert Cimrman
� N)� overrides�numpy)�module)�ediff1d�intersect1d�setxor1d�union1d� setdiff1d�unique�in1d�isinc � � | ||fS �N� )�ary�to_end�to_begins �e/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/numpy/lib/arraysetops.py�_ediff1d_dispatcherr ! s � ����"�"� c �b � t j | � � � � � } | j }|�|�| dd� | dd� z
S |�d}n]t j |� � }t j ||d�� � st d� � �|� � � }t
|� � }|�d}n]t j |� � }t j ||d�� � st d� � �|� � � }t
|� � }t t
| � � dz
d� � }t j ||z |z | j � � � }| � |� � }|dk r||d|�<