+
    QV-jr€ ã                   ó¨  a € Ry t‹0 t R t^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^ RIH	t
 ^ RIH	t ^ RIHtHtHtHt ^ RIHtHt ^ RIHt ^ RIHtHtHtHtHtHt ^ RIt^ RIt ^ RI!t"^ RI#H$t% ^ RI&t!^ RI'H(t) ^ R	I'H*t+ ^R
I,H-t- ^RI.H/t/H0t0 ^RI1H2t2 ^RI3H4t4H5t5 ^RI6H7t7H8t8 ^RI9H:t:H;t;H<t< ^RI=H>t> ^RI?H@t@HAtA ^RIBHCtC ^RIDHEtEHFtF ^RIGHHtHHItI ^RIJHKtKHLtL ^RIMHNtN ]5Pž                  ! ]P4      tQR R ltRR R ltSR R ltTRzR R lltU]! RR 7       ! R! R"4      4       tV ! R# R$4      tW] ! R% R&]W4      4       tX] ! R' R(]W4      4       tY] ! R) R*]W4      4       tZ] ! R+ R,]W4      4       t[ ! R- R.]"P¸                  4      t] ! R/ R0]]4      t^ ! R1 R2]]4      t_ ! R3 R4]]4      t` ! R5 R6]]4      ta]"PÄ                  ! ]^! R{R74      4       ]"PÄ                  ! ]_! R|R74      4       ]"PÄ                  ! ]`! R}R74      4       ]"PÄ                  ! ]a! R~R74      4       RR8 R9 lltc ! R: R;]"PP                  4      td ! R< R=]+4      te ! R> R?])4      tfR@ tg] ! RA RB4      4       th] ! RC RD4      4       ti ! RE RF4      t	]! RR 7       ! RG RH]	4      4       tj]! RR 7       ! RI RJ4      4       tk]]l]m]n]V]h]K]L]k]j]X]Y]Z][]>]@]C]N]H]E3,          toR€RK RL lltpRM RN ltqR�RO ltrR€RP RQ llts/ ]VP                   ]Vb]hP                   ]hb]KP                   ]Kb]LP                   ]Lb]kP                   ]kb]jP                   ]jb]XP                   ]Xb]YP                   ]Yb]ZP                   ]Zb][P                   ][b]>P                   ]>b]@P                   ]@b]CP                   ]Cb]NP                   ]Nb]HP                   ]Hb]EP                   ]Eb]iP                   ]ibtt] ^ k ]4RR RS l4       tuRT RU ltvRV RW ltwR€RX RY lltxRZ R[ ltyR€R\ R] lltzR^ R_ lt{R€R` Ra llt|Rb Rc lt}Rd Re lt~]m]]]^ ,          3,          ,          t€. 3Rf Rg llt�RRh Ri llt‚Rj Rk ltƒRl Rm lt„Rn t… ! Ro Rp]l4      t†Rq Rr lt‡Rs Rt ltˆRu Rv lt‰Rw Rx ltŠR# )‚z[This class handle features definition in datasets and some utilities to display table type.N)ÚIterableÚMapping)ÚSequence)ÚInitVarÚ	dataclassÚfieldÚfields)ÚreduceÚwraps)Úmul)ÚAnyÚCallableÚClassVarÚLiteralÚOptionalÚUnion)ÚExtensionArray)ÚExtensionDtype)Úconfig)Úcamelcase_to_snakecaseÚsnakecase_to_camelcase)Ú
array_cast)ÚexperimentalÚlogging)Úujson_dumpsÚujson_loads)ÚasdictÚfirst_non_null_valueÚzip_dict)ÚAudio)ÚImageÚencode_pil_image)ÚMesh)ÚNiftiÚencode_nibabel_image)ÚPdfÚencode_pdfplumber_pdf)ÚTranslationÚTranslationVariableLanguages)ÚVideoc                óD   € V ^8„  d   QhR\         P                  R\        /# )é   Ú
arrow_typeÚreturn)ÚpaÚDataTypeÚstr)Úformats   "Úk/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/datasets/features/features.pyÚ__annotate__r3   8   s&   € ÷ C`ñ C`¬¯©ð C`¼ñ C`ó    c                ó¶
  € \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P	                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R	# \         P                  P                  V 4      '       d   R
# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d   R# \         P                  P                  V 4      '       d.   R\         P"                  ! \%        V 4      4      P&                   R2# \         P                  P)                  V 4      '       d.   R\         P"                  ! \%        V 4      4      P&                   R2# \         P                  P+                  V 4      '       d]   V P,                  f   RV P&                   R2# V P,                  '       d   RV P&                   RV P,                   R2# \/        RV  R24      h\         P                  P1                  V 4      '       d   R# \         P                  P3                  V 4      '       d   R# \         P                  P5                  V 4      '       d   RV P&                   R2# \         P                  P7                  V 4      '       d   RV P8                   RV P:                   R2# \         P                  P=                  V 4      '       d   RV P8                   RV P:                   R2# \         P                  P?                  V 4      '       d   R# \         P                  PA                  V 4      '       d   R# \         P                  PC                  V 4      '       d   R# \         P                  PE                  V 4      '       d   R# \         P                  PG                  V 4      '       d   R # \         P                  PI                  V 4      '       d   R!# \         P                  PK                  V 4      '       d   \M        V PN                  4      # \/        R"V  R#24      h)$z 
_arrow_to_datasets_dtype takes a pyarrow.DataType and converts it to a datasets string dtype.
In effect, `dt == string_to_arrow(_arrow_to_datasets_dtype(dt))`
ÚnullÚboolÚint8Úint16Úint32Úint64Úuint8Úuint16Úuint32Úuint64Úfloat16Úfloat32Úfloat64ztime32[Ú]ztime64[z
timestamp[z, tz=zUnexpected timestamp object Ú.Údate32Údate64z	duration[zdecimal128(ú, Ú)zdecimal256(ÚbinaryÚlarge_binaryÚbinary_viewÚstringÚlarge_stringÚstring_viewzArrow type z+ does not have a datasets dtype equivalent.)(ÚpyarrowÚtypesÚis_nullÚ
is_booleanÚis_int8Úis_int16Úis_int32Úis_int64Úis_uint8Ú	is_uint16Ú	is_uint32Ú	is_uint64Ú
is_float16Ú
is_float32Ú
is_float64Ú	is_time32r.   Útype_for_aliasr0   ÚunitÚ	is_time64Úis_timestampÚtzÚ
ValueErrorÚ	is_date32Ú	is_date64Úis_durationÚis_decimal128Ú	precisionÚscaleÚis_decimal256Ú	is_binaryÚis_large_binaryÚis_binary_viewÚ	is_stringÚis_large_stringÚis_string_viewÚis_dictionaryÚ_arrow_to_datasets_dtypeÚ
value_type)r,   s   &r2   rs   rs   8   s³  € ô
 ‡}�}×Ñ˜Z×(Ò(ÙÜ	�‰×	!Ñ	! *×	-Ò	-ÙÜ	�‰×	Ñ	˜z×	*Ò	*ÙÜ	�‰×	Ñ	 
×	+Ò	+ÙÜ	�‰×	Ñ	 
×	+Ò	+ÙÜ	�‰×	Ñ	 
×	+Ò	+ÙÜ	�‰×	Ñ	 
×	+Ò	+ÙÜ	�‰×	 Ñ	  ×	,Ò	,ÙÜ	�‰×	 Ñ	  ×	,Ò	,ÙÜ	�‰×	 Ñ	  ×	,Ò	,ÙÜ	�‰×	!Ñ	! *×	-Ò	-ÙÜ	�‰×	!Ñ	! *×	-Ò	-ÙÜ	�‰×	!Ñ	! *×	-Ò	-ÙÜ	�‰×	 Ñ	  ×	,Ò	,Øœ×*Ò*¬3¨z«?Ó;×@Ñ@ÐAÀÐCÐCÜ	�‰×	 Ñ	  ×	,Ò	,Øœ×*Ò*¬3¨z«?Ó;×@Ñ@ÐAÀÐCÐCÜ	�‰×	#Ñ	# J×	/Ò	/Ø�=‰=Ò Ø 
§¡Ð0°Ð2Ð2Ø�]�]ˆ]Ø 
§¡Ð0°°j·m±m°_ÀAÐFÐFäÐ;¸J¸<ÀqÐIÓJÐJÜ	�‰×	 Ñ	  ×	,Ò	,ÙÜ	�‰×	 Ñ	  ×	,Ò	,ÙÜ	�‰×	"Ñ	" :×	.Ò	.Ø˜:Ÿ?™?Ð+¨1Ð-Ð-Ü	�‰×	$Ñ	$ Z×	0Ò	0Ø˜Z×1Ñ1Ð2°"°Z×5EÑ5EÐ4FÀaÐHÐHÜ	�‰×	$Ñ	$ Z×	0Ò	0Ø˜Z×1Ñ1Ð2°"°Z×5EÑ5EÐ4FÀaÐHÐHÜ	�‰×	 Ñ	  ×	,Ò	,ÙÜ	�‰×	&Ñ	& z×	2Ò	2ÙÜ	�‰×	%Ñ	% j×	1Ò	1ÙÜ	�‰×	 Ñ	  ×	,Ò	,ÙÜ	�‰×	&Ñ	& z×	2Ò	2ÙÜ	�‰×	%Ñ	% j×	1Ò	1ÙÜ	�‰×	$Ñ	$ Z×	0Ò	0Ü'¨
×(=Ñ(=Ó>Ð>ä˜; z lÐ2]Ð^Ó_Ð_r4   c                óD   € V ^8„  d   QhR\         R\        P                  /# )r+   Údatasets_dtyper-   )r0   r.   r/   )r1   s   "r2   r3   r3   ~   s"   € ÷ Tñ T¤Cð T¬B¯K©Kñ Tr4   c           	     ó  € V R8X  d   \        R4      hR-R lpV \        P                  9   d   \        P                  V ,          ! 4       # V R,           \        P                  9   d$   \        P                  V R,           ,          ! 4       # \        P                  ! RV 4      pV'       d›   VP                  ^4      p\        P                  ! RV4      pVR.9   d   \        P                  ! V4      # V'       d6   \        P                  ! VP                  ^4      VP                  ^4      4      # \        V! V RRR	.R
.R7      4      h\        P                  ! RV 4      pV'       dG   VP                  ^4      pVR.9   d   \        P                  ! V4      # \        V! V RRR.R.R7      4      h\        P                  ! RV 4      pV'       d±   VP                  ^4      pVR8X  d=   VP                  ^4      p	V	R/9   d   \        P                  ! V	4      # \        V	 R24      hVR8X  d=   VP                  ^4      p	V	R09   d   \        P                  ! V	4      # \        V	 R24      h\        V! V RRR.RR.R7      4      h\        P                  ! RV 4      p
V
'       Ed[   V
P                  ^4      pVR8X  d’   \        P                  ! RV
P                  ^4      4      pV'       dL   VP                  ^4      pVP                  ^4      p\        P                  ! \        V4      \        V4      4      # \        V! V RRR .R!.R7      4      hVR"8X  d’   \        P                  ! RV
P                  ^4      4      pV'       dL   VP                  ^4      pVP                  ^4      p\        P                  ! \        V4      \        V4      4      # \        V! V R#R$R%.R&.R7      4      h\        V! V R'R(R).R!R&.R7      4      h\        R*V  R+V R,            R,24      h)1aø  
string_to_arrow takes a datasets string dtype and converts it to a pyarrow.DataType.

In effect, `dt == string_to_arrow(_arrow_to_datasets_dtype(dt))`

This is necessary because the datasets.Value() primitive type is constructed using a string dtype

Value(dtype=str)

But Features.type (via `get_nested_type()` expects to resolve Features into a pyarrow Schema,
    which means that each Value() must be able to resolve into a corresponding pyarrow.DataType, which is the
    purpose of this function.
Újsonz;'json' is not a valid dtype, use the Json() feature insteadc                 ór  € V  R V R2pV'       dP   \        V4      ^8”  d*   RP                  VRR	 4      R,           VR	,          ,           MV^ ,          pVRV R2,          pV'       dP   \        V4      ^8”  d*   RP                  VRR	 4      R,           VR	,          ,           MV^ ,          pVRV R2,          pV# )
zA is not a validly formatted string representation of the pyarrow z type.rG   Nz or z
Valid examples include: rD   ú and z
For more insformation, see: éÿÿÿÿ)ÚlenÚjoin)ÚdtypeÚpa_dtypeÚexamplesÚurlsÚmsgs   &&&& r2   Ú_dtype_error_msgÚ)string_to_arrow.<locals>._dtype_error_msg�   s·   € Ø�ÐXÐYaÐXbÐbhÐiˆßÜKNÈxË=Ð[\ÔK\�t—y‘y ¨#¨2 Ó/°&Õ8¸8ÀB½<ÖGÐbjÐklÕbmˆHØÐ/°¨z¸Ð;Õ;ˆCßÜ@CÀDÃ	ÈAÄ�4—9‘9˜T # 2˜YÓ'¨'Õ1°D¸µHÖ<ÐSWÐXYÕSZˆDØÐ3°D°6¸Ð;Õ;ˆCØˆ
r4   Ú_z^timestamp\[(.*)\]$z)^(s|ms|us|ns),\s*tz=([a-zA-Z0-9/_+\-:]*)$Ú	timestampztimestamp[us]z!timestamp[us, tz=America/New_YorkzEhttps://arrow.apache.org/docs/python/generated/pyarrow.timestamp.html)r€   r�   z^duration\[(.*)\]$Údurationzduration[s]zduration[us]zDhttps://arrow.apache.org/docs/python/generated/pyarrow.duration.htmlz^time(.*)\[(.*)\]$Ú32zc is not a valid unit for the pyarrow time32 type. Supported units: s (second) and ms (millisecond).Ú64zh is not a valid unit for the pyarrow time64 type. Supported units: us (microsecond) and ns (nanosecond).Útimez	time32[s]z
time64[us]zBhttps://arrow.apache.org/docs/python/generated/pyarrow.time32.htmlzBhttps://arrow.apache.org/docs/python/generated/pyarrow.time64.htmlz^decimal(.*)\((.*)\)$Ú128z^(\d+),\s*(-?\d+)$Ú
decimal128zdecimal128(10, 2)zdecimal128(4, -2)zFhttps://arrow.apache.org/docs/python/generated/pyarrow.decimal128.htmlÚ256Ú
decimal256zdecimal256(30, 2)zdecimal256(38, -4)zFhttps://arrow.apache.org/docs/python/generated/pyarrow.decimal256.htmlÚdecimalzdecimal128(12, 3)zdecimal256(40, 6)zNeither z nor z� seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions)NN)ÚsÚmsÚusÚns)r�   r‘   )r’   r“   )rd   r.   Ú__dict__ÚreÚsearchÚgroupr†   r‡   Útime32Útime64rŒ   ÚintrŽ   )rv   rƒ   Útimestamp_matchesÚtimestamp_internalsÚinternals_matchesÚduration_matchesÚduration_internalsÚtime_matchesÚtime_internals_bitsÚtime_internals_unitÚdecimal_matchesÚdecimal_internals_bitsÚ%decimal_internals_precision_and_scaleri   rj   s   &              r2   Ústring_to_arrowr¦   ~   s  € ð ˜ÔÜÐVÓWÐWôð œŸ™Ô$Ü�{‰{˜>Ö*Ó,Ð,à˜Õ¤§¡Ô,Ü�{‰{˜>¨CÕ/Ö0Ó2Ð2äŸ	š	Ð"8¸.ÓIÐßØ/×5Ñ5°aÓ8ÐÜŸIšIÐ&RÐTgÓhÐØÐ"9Ô9Ü—<’<Ð 3Ó4Ð4ßÜ—<’<Ð 1× 7Ñ 7¸Ó :Ð<M×<SÑ<SÐTUÓ<VÓWÐWäÙ Ø"ØØ-Ð/RÐSØaÐbô	óð ô —y’yÐ!6¸ÓGÐßØ-×3Ñ3°AÓ6ÐØÐ!8Ô8Ü—;’;Ð1Ó2Ð2äÙ Ø"ØØ+¨^Ð<Ø`Ðaô	óð ô —9’9Ð2°NÓC€LßØ*×0Ñ0°Ó3ÐØ $Ô&Ø".×"4Ñ"4°QÓ"7ÐØ" kÔ1Ü—y’yÐ!4Ó5Ð5ä Ø*Ð+ð  ,Oð  Póð ð ! DÔ(Ø".×"4Ñ"4°QÓ"7ÐØ" lÔ2Ü—y’yÐ!4Ó5Ð5ä Ø*Ð+ð  ,Tð  Uóð ô Ù Ø"ØØ)¨<Ð8à\Ø\ðô	ó
ð 
ô —i’iÐ 8¸.ÓI€Oß€Ø!0×!6Ñ!6°qÓ!9ÐØ! UÔ*Ü46·I²IÐ>SÐUd×UjÑUjÐklÓUmÓ4nÐ1ß4ØA×GÑGÈÓJ�	Ø=×CÑCÀAÓF�Ü—}’}¤S¨£^´S¸³ZÓ@Ð@ä Ù$Ø&Ø$Ø"5Ð7JÐ!KØfÐgô	óð ð $ uÔ,Ü46·I²IÐ>SÐUd×UjÑUjÐklÓUmÓ4nÐ1ß4ØA×GÑGÈÓJ�	Ø=×CÑCÀAÓF�Ü—}’}¤S¨£^´S¸³ZÓ@Ð@ä Ù$Ø&Ø$Ø"5Ð7KÐ!LØfÐgô	óð ô Ù Ø"ØØ1Ð3FÐGà`Ø`ðô	ó
ð 
ô Ø
�>Ð" %¨¸Õ(<Ð'=ð >Tð 	Uóð r4   c          
      ój   € V ^8„  d   QhR\         R\        R\        R\        \         \        3,          /# )r+   ÚobjÚonly_1d_for_numpyÚoptimize_list_castingr-   )r   r7   Útuple)r1   s   "r2   r3   r3     s<   € ÷ |ñ |¤ð |¼ð |ÔVZð |Ô_dÔehÔjnÐenÕ_oñ |r4   c                óR  € \         P                  '       d   R\        P                  9   d   ^ RIp\         P
                  '       d   R\        P                  9   d   ^ RIp\         P                  '       d   R\        P                  9   d   ^ RIH	p \         P                  '       d   R\        P                  9   d   ^ RIp\         P                  '       d   R\        P                  9   d   ^ RIp\         P                  '       d   R\        P                  9   d   ^ RIp\         P                   '       d   R\        P                  9   d	   ^ R	IHp	Hp
 \)        V \*        P,                  4      '       d`   V P.                  ^ 8X  d   V R,          R
3# V'       d   V P.                  ^8X  d   V R3# V  Uu. uF  p\1        W±VR7      ^ ,          NK  	  upR
3# \         P
                  '       Ed†   R\        P                  9   Edp   \)        V XP2                  4      '       EdS   V P4                  VP6                  8X  d[   \1        V P9                  4       P;                  VP<                  4      P?                  4       P                  4       VVR7      ^ ,          R
3# V P.                  ^ 8X  d6   V P9                  4       P?                  4       P                  4       R,          R
3# V'       d   V P.                  ^8X  d/   V P9                  4       P?                  4       P                  4       R
3# V P9                  4       P?                  4       P                  4        Uu. uF  p\1        W±VR7      ^ ,          NK  	  upR
3# \         P                  '       d»   R\        P                  9   d¦   \)        V XP2                  4      '       dŠ   V P.                  ^ 8X  d   V P                  4       R,          R
3# V'       d   V P.                  ^8X  d   V P                  4       R
3# V P                  4        Uu. uF  p\1        W±VR7      ^ ,          NK  	  upR
3# \         P                  '       dÍ   R\        P                  9   d¸   \)        V XP,                  4      '       dœ   V P.                  ^ 8X  d    \*        P@                  ! V 4      R,          R
3# V'       d   V P.                  ^8X  d   \*        P@                  ! V 4      R
3# \*        P@                  ! V 4       Uu. uF  p\1        W±VR7      ^ ,          NK  	  upR
3# \         P                  '       dI   R\        P                  9   d4   \)        V XPB                  PB                  4      '       d   \E        V 4      R
3# \         P                  '       dI   R\        P                  9   d4   \)        V XPF                  PH                  4      '       d   \K        V 4      R
3# \         P                  '       dK   R\        P                  9   d6   \)        V XPL                  PN                  4      '       d   \Q        V R
R7      R
3# \)        V \R        PT                  4      '       d%   \1        V PW                  4       WR7      ^ ,          R
3# \)        V \R        PX                  4      '       dI   V P[                  R4      P]                  4        UUu/ uF  w  rÍV\1        WÑVR7      ^ ,          bK  	  uppR
3# \)        V \R        P^                  4      '       d   V Pa                  4       R
3# \)        V \R        Pb                  4      '       d   V Pe                  4       R
3# \)        V \f        4      '       d_   \)        V \h        4      '       * p/ pV P]                  4        F$  w  pp\1        VWR7      w  ppVV,          pVVV&   K&  	  V'       d   Wþ3# T V3# \k        V R4      '       dE   \*        Pl                  ! V 4      '       d   V R3# \1        V Po                  4       WR7      ^ ,          R
3# \)        V \p        \r        34      '       d¤   \u        V 4      ^ 8”  d�   V  F  p\w        V4      '       g   K   M	  \1        XWR7      w  ppV'       g	   V'       g'   V  Uu. uF  p\1        VWR7      ^ ,          NK  	  upR
3# \)        V \p        \r        34      '       d   V R3# \q        V 4      R
3# V R3# \         P                   '       dE   R\        P                  9   d0   \)        V X
4      '       d   \y        4       pVP{                  V 4      R
3# \         P                   '       dE   R\        P                  9   d0   \)        V X	4      '       d   \}        4       pVP{                  V 4      R
3# V R3# u upi u upi u upi u upi u uppi u upi )aÚ  
Cast pytorch/tensorflow/pandas objects to python numpy array/lists.
It works recursively.

If `optimize_list_casting` is True, to avoid iterating over possibly long lists, it first checks (recursively) if the first element that is not None or empty (if it is a sequence) has to be casted.
If the first element needs to be casted, then all the elements of the list will be casted, otherwise they'll stay the same.
This trick allows to cast objects that contain tokenizers outputs without iterating over every single token for example.

Args:
    obj: the object (nested struct) to cast.
    only_1d_for_numpy (bool): whether to keep the full multi-dim tensors as multi-dim numpy arrays, or convert them to
        nested lists of 1-dimensional numpy arrays. This can be useful to keep only 1-d arrays to instantiate Arrow arrays.
        Indeed Arrow only support converting 1-dimensional array values.
    optimize_list_casting (bool): whether to optimize list casting by checking the first non-null element to see if it needs to be casted
        and if it doesn't, not checking the rest of the list elements.

Returns:
    casted_obj: the casted object
    has_changed (bool): True if the object has been changed, False if it is identical
Ú
tensorflowNÚtorchÚjaxÚPILÚ
pdfplumberÚnibabelÚ
torchcodec)ÚAudioDecoderÚVideoDecoderTF©r©   rª   )Úforce_bytesÚseriesÚ	__array__© )?r   ÚTF_AVAILABLEÚsysÚmodulesr­   ÚTORCH_AVAILABLEr®   ÚJAX_AVAILABLEÚ	jax.numpyÚnumpyÚPIL_AVAILABLEÚ	PIL.ImageÚPDFPLUMBER_AVAILABLEr±   ÚNIBABEL_AVAILABLEr²   ÚTORCHCODEC_AVAILABLEÚtorchcodec.decodersr´   rµ   Ú
isinstanceÚnpÚndarrayÚndimÚ_cast_to_python_objectsÚTensorr~   Úbfloat16ÚdetachÚtoÚfloatÚcpuÚasarrayr    r!   ÚpdfÚPDFr&   ÚanalyzeÚAnalyzeImager$   ÚpdÚSeriesÚtolistÚ	DataFrameÚto_dictÚitemsÚ	TimestampÚto_pydatetimeÚ	TimedeltaÚto_pytimedeltar   ÚdictÚhasattrÚisscalarr¹   Úlistr«   r|   Ú#_check_non_null_non_empty_recursiver)   Úencode_exampler   )r¨   r©   rª   Útfr®   Újnpr°   r±   Únibr´   rµ   ÚxÚkeyÚvalueÚhas_changedÚoutputÚkÚvÚcasted_vÚhas_changed_vÚ
first_elmtÚcasted_first_elmtÚhas_changed_first_elmtÚelmtÚas   &&&                      r2   rÌ   rÌ     s  € ô, ××Ð˜|¬s¯{©{Ô:Ûä××Ð '¬S¯[©[Ô"8Ûä××Ð ¬¯©Ô 4Ýä××Ð ¬¯©Ô 4Ûä×"×"Ð" |´s·{±{Ô'BÛä××Ð I´·±Ô$<Ûä×"×"Ð" |´s·{±{Ô'BßBä�#”r—z‘z×"Ò"Ø�8‰8�qŒ=Ø�r•7˜D�=Ð ß" c§h¡h°!¤mØ˜�:Ðñ !ó	ñ !˜ô ,ØÐVkôà÷ð ñ !ñ	ð ðð ô 
×	×	Ñ	 G¬s¯{©{Õ$:¼zÈ#ÈuÏ|É|×?\Ó?\Ø�9‰9˜Ÿ™Ô&Ü*Ø—
‘
“—‘ §¡Ó,×0Ñ0Ó2×8Ñ8Ó:Ø"3Ø&;ôð õ	ð ð	ð ð
 �8‰8�qŒ=Ø—:‘:“<×#Ñ#Ó%×+Ñ+Ó-¨bÕ1°4Ð7Ð7ß" c§h¡h°!¤mØ—:‘:“<×#Ñ#Ó%×+Ñ+Ó-¨tÐ3Ð3ð !ŸZ™Z›\×-Ñ-Ó/×5Ñ5Ô7ó	ñ 8˜ô ,ØÐVkôà÷ð ñ 8ñ	ð ðð ô 
×	×	Ð	 ´·±Ô!<ÄÈCÐQS×QZÑQZ×A[ÒA[Ø�8‰8�qŒ=Ø—9‘9“;˜r•? DÐ(Ð(ß" c§h¡h°!¤mØ—9‘9“; Ð$Ð$ð !ŸY™Yœ[ó	ñ )˜ô ,ØÐVkôà÷ð ñ )ñ	ð ðð ô 
×	×	Ð	 %¬3¯;©;Ô"6¼:ÀcÈ3Ï;É;×;WÒ;WØ�8‰8�qŒ=Ü—:’:˜c“? 2Õ&¨Ð,Ð,ß" c§h¡h°!¤mÜ—:’:˜c“? DÐ(Ð(ô  ŸZšZ¨œ_ó	ñ -˜ô ,ØÐVkôà÷ð ñ -ñ	ð ðð ô 
×	×	Ð	 %¬3¯;©;Ô"6¼:ÀcÈ3Ï9É9Ï?É?×;[Ò;[Ü Ó$ dÐ*Ð*Ü	×	$×	$Ð	$¨¼¿¹Ô)DÌÐTWÐYc×YgÑYg×YkÑYk×IlÒIlÜ$ SÓ)¨4Ð/Ð/Ü	×	!×	!Ð	! i´3·;±;Ô&>Ä:ÈcÐSV×S^ÑS^×SkÑSk×ClÒClÜ# C°TÔ:¸DÐ@Ð@Ü	�CœŸ™×	#Ò	#ä#Ø—
‘
“Ð0Aôàõð ð	
ð 	
ô 
�CœŸ™×	&Ò	&ð #&§+¡+¨hÓ"7×"=Ñ"=Ô"?ô	ñ #@‘J�Cð Ô,ØÐVkôàõò ñ #@ò	ð ð
ð 	
ô 
�CœŸ™×	&Ò	&Ø× Ñ Ó" DÐ(Ð(Ü	�CœŸ™×	&Ò	&Ø×!Ñ!Ó# TÐ)Ð)Ü	�Cœ×	!Ò	!Ü$ S¬$Ó/Ô/ˆØˆØ—I‘I–K‰DˆAˆqÜ&=ØÐ%6ô'Ñ#ˆH�mð ˜=Õ(ˆKØ ˆF�1‹Iñ  ÷ %ˆvÐ:Ð:¨#¨{Ð:Ð:Ü	��k×	"Ò	"Ü�;Š;�s×ÒØ˜�:Ðô (Ø—M‘M“OÐ7Hôàõð ð	ð ô 
�Cœ$¤˜×	'Ò	'Üˆs‹8�aŒ<Û!�
Ü6°z×BÔBÙñ "ô 9PØÐ.?ô9Ñ5ÐÐ5÷ &×-Bñ %(ó	ñ %(˜Dô 0Ø Ð4Eôà÷ð ñ %(ñ	ð ðð ô ˜c¤D¬% =×1Ò1Ø ˜:Ð%ä ›9 d˜?Ð*à˜�:ÐÜ	×	$×	$Ð	$¨¼¿¹Ô)DÌÐTWÐYe×IfÒIfÜ‹GˆØ×Ñ Ó$ dÐ*Ð*Ü	×	$×	$Ð	$¨¼¿¹Ô)DÌÐTWÐYe×IfÒIfÜ‹GˆØ×Ñ Ó$ dÐ*Ð*à�EˆzÐùòUùò*ùòùòùó.ùòTs$   Æ-f
Í	fÐfÓ;fÚ? fá?f$Fc                ó0   € V ^8„  d   QhR\         R\         /# ©r+   r¨   r-   ©r   )r1   s   "r2   r3   r3   Ô  s   € ÷ 	ñ 	¤ð 	Ô]`ñ 	r4   c                ó*   € \        WVR7      ^ ,          # )a¢  
Cast numpy/pytorch/tensorflow/pandas objects to python lists.
It works recursively.

If `optimize_list_casting` is True, To avoid iterating over possibly long lists, it first checks (recursively) if the first element that is not None or empty (if it is a sequence) has to be casted.
If the first element needs to be casted, then all the elements of the list will be casted, otherwise they'll stay the same.
This trick allows to cast objects that contain tokenizers outputs without iterating over every single token for example.

Args:
    obj: the object (nested struct) to cast
    only_1d_for_numpy (bool, default ``False``): whether to keep the full multi-dim tensors as multi-dim numpy arrays, or convert them to
        nested lists of 1-dimensional numpy arrays. This can be useful to keep only 1-d arrays to instantiate Arrow arrays.
        Indeed Arrow only support converting 1-dimensional array values.
    optimize_list_casting (bool, default ``True``): whether to optimize list casting by checking the first non-null element to see if it needs to be casted
        and if it doesn't, not checking the rest of the list elements.

Returns:
    casted_obj: the casted object
r¶   )rÌ   )r¨   r©   rª   s   &&&r2   Úcast_to_python_objectsrý   Ô  s   € ô( #ØÐH]ôàõ	ð 	r4   )Úreprc                   óv   a € ] tR tRt o Rt]! RRR7      tRt]! R RRR7      tR t	R t
R	 tR
 tV 3R ltRtV tR# )ÚValueií  a	  
Scalar feature value of a particular data type.

The possible dtypes of `Value` are as follows:
- `null`
- `bool`
- `int8`
- `int16`
- `int32`
- `int64`
- `uint8`
- `uint16`
- `uint32`
- `uint64`
- `float16`
- `float32` (alias float)
- `float64` (alias double)
- `time32[(s|ms)]`
- `time64[(us|ns)]`
- `timestamp[(s|ms|us|ns)]`
- `timestamp[(s|ms|us|ns), tz=(tzstring)]`
- `date32`
- `date64`
- `duration[(s|ms|us|ns)]`
- `decimal128(precision, scale)`
- `decimal256(precision, scale)`
- `binary`
- `large_binary`
- `binary_view`
- `string`
- `large_string`
- `string_view`

Args:
    dtype (`str`):
        Name of the data type.

Example:

```py
>>> from datasets import Features
>>> features = Features({'stars': Value('int32')})
>>> features
{'stars': Value('int32')}
```
NF©Údefaultrþ   ©r  Úinitrþ   c                óš   € V P                   R 8X  d   RV n         V P                   R8X  d   RV n         \        V P                   4      V n        R# )ÚdoublerB   rÑ   rA   N)r~   r¦   Úpa_type©Úselfs   &r2   Ú__post_init__ÚValue.__post_init__$  s8   € Ø�:‰:˜Ô!Ø"ˆDŒJØ�:‰:˜Ô Ø"ˆDŒJÜ& t§z¡zÓ2ˆŽr4   c                ó   € V P                   # ©N©r  r  s   &r2   Ú__call__ÚValue.__call__+  ó   € Ø�|‰|Ðr4   c                ó¾  € \         P                  P                  V P                  4      '       d   \	        V4      # \         P                  P                  V P                  4      '       d   \        V4      # \         P                  P                  V P                  4      '       d   \        V4      # \         P                  P                  V P                  4      '       d   \        V4      # \         P                  P                  V P                  4      '       d   \        V4      # \         P                  P                  V P                  4      '       d   \        V4      # V# r  )r.   rP   rR   r  r7   Ú
is_integerrš   Úis_floatingrÑ   ro   r0   rp   rq   ©r	  rí   s   &&r2   rç   ÚValue.encode_example.  sÙ   € Ü�8‰8×Ñ˜tŸ|™|×,Ò,Ü˜“;ÐÜ�X‰X× Ñ  §¡×.Ò.Ü�u“:ÐÜ�X‰X×!Ñ! $§,¡,×/Ò/Ü˜“<ÐÜ�X‰X×Ñ §¡×-Ò-Ü�u“:ÐÜ�X‰X×%Ñ% d§l¡l×3Ò3Ü�u“:ÐÜ�X‰X×$Ñ$ T§\¡\×2Ò2Ü�u“:ÐàˆLr4   c                óL   € \        V 4      P                   R V P                   R2# )z('z'))ÚtypeÚ__name__r~   r  s   &r2   Ú__repr__ÚValue.__repr__>  s$   € Ü�t“*×%Ñ%Ð& b¨¯©¨°BÐ7Ð7r4   c                ój   <€ V ^8„  d   Qh/ S[ ;R&   S[S[ ,          ;R&   S[S[,          ;R&   S[ ;R&   # )r+   r~   Úidr  Ú_type)r0   r   r   r   )r1   Ú__classdict__s   "€r2   r3   ÚValue.__annotate__í  sH   ø‡ ‚ ñb �Jñc ñd 	‘�Ñ7ñe ñh ‘c�]Ñ!ñi ñj Ñ?òk r4   )r~   r  )r  Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r  r  r  r
  r  rç   r  Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r  s   @r2   r   r   í  sH   ø‡ € ñ-ñ`  d°Ô7€Bà!€GÙ˜w¨U¸Ô?€Eò3òòò 8÷c ƒ r4   r   c                   ó2   a € ] tR tRt o R tR tR tRtV tR# )Ú_ArrayXDiB  c                ó:   € \        V P                  4      V n        R # r  )r«   Úshaper  s   &r2   r
  Ú_ArrayXD.__post_init__C  s   € Ü˜4Ÿ:™:Ó&ˆŽ
r4   c                ó”   € \        4       V P                  P                  R ,           ,          ! V P                  V P                  4      pV# )ÚExtensionType)ÚglobalsÚ	__class__r  r,  r~   )r	  r  s   & r2   r  Ú_ArrayXD.__call__F  s4   € Ü“)˜DŸN™N×3Ñ3°oÕEÖFÀtÇzÁzÐSW×S]ÑS]Ó^ˆØˆr4   c                ó   € V# r  rº   r  s   &&r2   rç   Ú_ArrayXD.encode_exampleJ  s   € Øˆr4   )r,  N)	r  r!  r"  r#  r
  r  rç   r&  r'  r(  s   @r2   r*  r*  B  s   ø‡ € ò'ò÷ð r4   r*  c                   óZ   a € ] tR tRt o Rt]! RRR7      t]! R RRR7      tV 3R ltRt	V t
R# )	ÚArray2DiN  a
  Create a two-dimensional array.

Args:
    shape (`tuple`):
        Size of each dimension.
    dtype (`str`):
        Name of the data type.

Example:

```py
>>> from datasets import Features
>>> features = Features({'x': Array2D(shape=(1, 3), dtype='int32')})
```
NFr  r  c                óZ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[S[,          ;R&   S[;R&   # ©r+   r,  r~   r  r  ©r«   r0   r   )r1   r  s   "€r2   r3   ÚArray2D.__annotate__N  ó;   ø‡ ‚ ñ$ �Lñ% ñ& �Jñ' ñ( 	‘�Ñ7ñ) ñ, ÑAò- r4   rº   ©r  r!  r"  r#  r$  r   r  r  r%  r&  r'  r(  s   @r2   r6  r6  N  ó-   ø‡ € ññ$  d°Ô7€Bá˜y¨u¸5ÔA€E÷- ƒ r4   r6  c                   óZ   a € ] tR tRt o Rt]! RRR7      t]! R RRR7      tV 3R ltRt	V t
R# )	ÚArray3Dig  a  Create a three-dimensional array.

Args:
    shape (`tuple`):
        Size of each dimension.
    dtype (`str`):
        Name of the data type.

Example:

```py
>>> from datasets import Features
>>> features = Features({'x': Array3D(shape=(1, 2, 3), dtype='int32')})
```
NFr  r  c                óZ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[S[,          ;R&   S[;R&   # r8  r9  )r1   r  s   "€r2   r3   ÚArray3D.__annotate__g  r;  r4   rº   r<  r(  s   @r2   r?  r?  g  r=  r4   r?  c                   óZ   a € ] tR tRt o Rt]! RRR7      t]! R RRR7      tV 3R ltRt	V t
R# )	ÚArray4Di€  a  Create a four-dimensional array.

Args:
    shape (`tuple`):
        Size of each dimension.
    dtype (`str`):
        Name of the data type.

Example:

```py
>>> from datasets import Features
>>> features = Features({'x': Array4D(shape=(1, 2, 2, 3), dtype='int32')})
```
NFr  r  c                óZ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[S[,          ;R&   S[;R&   # r8  r9  )r1   r  s   "€r2   r3   ÚArray4D.__annotate__€  r;  r4   rº   r<  r(  s   @r2   rC  rC  €  r=  r4   rC  c                   óZ   a € ] tR tRt o Rt]! RRR7      t]! R RRR7      tV 3R ltRt	V t
R# )	ÚArray5Di™  a  Create a five-dimensional array.

Args:
    shape (`tuple`):
        Size of each dimension.
    dtype (`str`):
        Name of the data type.

Example:

```py
>>> from datasets import Features
>>> features = Features({'x': Array5D(shape=(1, 2, 2, 3, 3), dtype='int32')})
```
NFr  r  c                óZ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[S[,          ;R&   S[;R&   # r8  r9  )r1   r  s   "€r2   r3   ÚArray5D.__annotate__™  r;  r4   rº   r<  r(  s   @r2   rG  rG  ™  r=  r4   rG  c                   óv   a € ] tR tRt o RtV 3R lR ltR t]R 4       tR t	R t
R	 tR
 tR tV 3R ltRtV tR# )Ú_ArrayXDExtensionTypei²  Nc                ó&   <€ V ^8„  d   QhRS[ RS[/# )r+   r,  r~   )r«   r0   )r1   r  s   "€r2   r3   Ú"_ArrayXDExtensionType.__annotate__µ  s   ø€ ÷ vñ v™eð v©Cñ vr4   c                óJ  € V P                   e   V P                   ^8:  d   \        R4      h\        V4      V P                   8w  d   \        RV RV P                    R24      h\        ^V P                   4       F  pW,          e   K  \        RV 24      h	  \	        V4      V n        W n        V P                  V P                  4      V n        \        P                  P                  W P                  V P                  P                   RV P                  P                   24       R # )NzCYou must instantiate an array type with a value for dim that is > 1zshape=z and ndims=z don't matchz3Support only dynamic size on first dimension. Got: rD   )Úndimsrd   r|   Úranger«   r,  rt   Ú_generate_dtypeÚstorage_dtyper.   r/  Ú__init__r1  r!  r  )r	  r,  r~   Údims   &&& r2   rS  Ú_ArrayXDExtensionType.__init__µ  sì   € Ø�:‰:Ò §¡¨q¤ÜÐbÓcÐcÜˆu‹:˜Ÿ™Ô#Ü˜v e W¨K¸¿
¹
°|À<ÐPÓQÐQÜ˜˜DŸJ™JÖ'ˆCØ�zÔ!Ü Ð#VÐW\ÐV]Ð!^Ó_Ð_ñ (ô ˜5“\ˆŒ
ØŒØ!×1Ñ1°$·/±/ÓBˆÔÜ
×Ñ×!Ñ! $×(:Ñ(:¸t¿~¹~×?XÑ?XÐ>YÐYZÐ[_×[iÑ[i×[rÑ[rÐZsÐ<tÖur4   c                óv   € \         P                  ! V P                  V P                  34      P	                  4       # r  )rx   Údumpsr,  rt   Úencoder  s   &r2   Ú__arrow_ext_serialize__Ú-_ArrayXDExtensionType.__arrow_ext_serialize__Â  s'   € Ü�zŠz˜4Ÿ:™: t§¡Ð7Ó8×?Ñ?ÓAÐAr4   c                ó:   € \         P                  ! V4      pV ! V!  # r  )rx   Úloads)ÚclsÚstorage_typeÚ
serializedÚargss   &&& r2   Ú__arrow_ext_deserialize__Ú/_ArrayXDExtensionType.__arrow_ext_deserialize__Å  s   € ä�zŠz˜*Ó%ˆÙ�D‰zÐr4   c                óR   € V P                   V P                  V P                  4       33# r  )ra  r^  rY  r  s   &r2   Ú
__reduce__Ú _ArrayXDExtensionType.__reduce__Ë  s'   € Ø×-Ñ-°×0AÑ0AÀ4×C_ÑC_ÓCaÐ/bÐbÐbr4   c                óZ   € \        V P                  V P                  V P                  34      # r  )Úhashr1  r,  rt   r  s   &r2   Ú__hash__Ú_ArrayXDExtensionType.__hash__Î  s    € Ü�T—^‘^ T§Z¡Z°·±ÐAÓBÐBr4   c                ó   € \         # r  )ÚArrayExtensionArrayr  s   &r2   Ú__arrow_ext_class__Ú)_ArrayXDExtensionType.__arrow_ext_class__Ñ  s   € Ü"Ð"r4   c                ó€   € \        V4      p\        V P                  4       F  p\        P                  ! V4      pK  	  V# r  )r¦   Úreversedr,  r.   Úlist_)r	  r~   Úds   && r2   rQ  Ú%_ArrayXDExtensionType._generate_dtypeÔ  s3   € Ü Ó&ˆÜ˜$Ÿ*™*Ö%ˆAÜ—H’H˜U“OŠEñ &ð ˆr4   c                ó,   € \        V P                  4      # r  )ÚPandasArrayExtensionDtypert   r  s   &r2   Úto_pandas_dtypeÚ%_ArrayXDExtensionType.to_pandas_dtypeÜ  s   € Ü(¨¯©Ó9Ð9r4   c                ó6   <€ V ^8„  d   Qh/ S[ S[,          ;R&   # )r+   rO  )r   rš   )r1   r  s   "€r2   r3   rM  ²  s   ø‡ ‚ Ù‘C�=Ñò r4   )r,  rR  rt   )r  r!  r"  r#  rO  rS  rY  Úclassmethodra  rd  rh  rl  rQ  ru  r%  r&  r'  r(  s   @r2   rK  rK  ²  sS   ø‡ € Ø€E÷vð vòBð ñó ðò
còCò#òò:÷U ƒ r4   rK  c                   ó   € ] tR tRt^tRtR# )ÚArray2DExtensionTypeià  rº   N©r  r!  r"  r#  rO  r&  rº   r4   r2   rz  rz  à  ó   † Ø„Er4   rz  c                   ó   € ] tR tRt^tRtR# )ÚArray3DExtensionTypeiä  rº   Nr{  rº   r4   r2   r~  r~  ä  r|  r4   r~  c                   ó   € ] tR tRt^tRtR# )ÚArray4DExtensionTypeiè  rº   Nr{  rº   r4   r2   r€  r€  è  r|  r4   r€  c                   ó   € ] tR tRt^tRtR# )ÚArray5DExtensionTypeiì  rº   Nr{  rº   r4   r2   r‚  r‚  ì  r|  r4   r‚  r;   c                óP   € V ^8„  d   QhR\         P                  R\        R\        /# )r+   r  Úunnestr-   )r.   r/   r7   )r1   s   "r2   r3   r3   ÷  s*   € ÷ rñ r¤§¡ð r´Tð rÄdñ rr4   c                ó  a€ R V3R lloV'       d	   S! V 4      p \         P                  P                  V 4      ;'       dL    \         P                  P                  V 4      ;'       g     \         P                  P	                  V 4      '       * # )að  
When converting a pyarrow array to a numpy array, we must know whether this could be done in zero-copy or not.
This function returns the value of the ``zero_copy_only`` parameter to pass to ``.to_numpy()``, given the type of the pyarrow array.

# zero copy is available for all primitive types except booleans and temporal types (date, time, timestamp or duration)
# primitive types are types for which the physical representation in arrow and in numpy
# https://github.com/wesm/arrow/blob/c07b9b48cf3e0bbbab493992a492ae47e5b04cad/python/pyarrow/types.pxi#L821
# see https://arrow.apache.org/docs/python/generated/pyarrow.Array.html#pyarrow.Array.to_numpy
# and https://issues.apache.org/jira/browse/ARROW-2871?jql=text%20~%20%22boolean%20to_numpy%22
c                óX   € V ^8„  d   QhR\         P                  R\         P                  /# ©r+   r  r-   )r.   r/   )r1   s   "r2   r3   Ú(_is_zero_copy_only.<locals>.__annotate__  s"   € ÷ ñ ¤§¡ð ´·±ñ r4   c                 óv   <€ \         P                  P                  V 4      '       d   S! V P                  4      # V # r  )r.   rP   Úis_listrt   )r  Ú_unnest_pa_types   &€r2   r‹  Ú+_is_zero_copy_only.<locals>._unnest_pa_type  s.   ø€ Ü�8‰8×Ñ˜G×$Ò$Ù" 7×#5Ñ#5Ó6Ð6Øˆr4   )r.   rP   Úis_primitiverR   Úis_temporal)r  r„  r‹  s   &&@r2   Ú_is_zero_copy_onlyr�  ÷  sf   ø€ ÷ð ÷
 Ù! 'Ó*ˆÜ�8‰8× Ñ  Ó)×qÐq´2·8±8×3FÑ3FÀwÓ3O×3pÐ3pÔSU×S[ÑS[×SgÑSgÐhoÓSpÔ.qÐqr4   c                   óL   a € ] tR tRt o R tR tR	R ltR
V 3R lR lltRtV t	R# )rk  i  c                óh   € \        V P                  P                  R R7      pV P                  VR7      # ©T)r„  ©Úzero_copy_only)r�  Ústorager  Úto_numpy)r	  r”  s   & r2   r¹   ÚArrayExtensionArray.__array__  s)   € Ü+¨D¯L©L×,=Ñ,=ÀdÔKˆØ�}‰}¨Nˆ}Ó;Ð;r4   c                ó(   € V P                   V,          # r  )r•  )r	  Úis   &&r2   Ú__getitem__ÚArrayExtensionArray.__getitem__  s   € Ø�|‰|˜A�Ðr4   c                óª  € V P                   pVP                  4       P                  R R7      pV P                  P                  ^ ,          Ee\   ^p\
        P                  ! \        V4      4      V,          \
        P                  ! \
        P                  ! V4      4      ,
          p\        V P                  P                  4       F6  pW@P                  P                  V,          ,          pVP                  4       pK8  	  VP                  VR7      pVP                  ! \        V 4      \        V4      ,
          .V P                  P                  O5!  p\        V4      '       dF   \
        P                  ! VP                  \
        P                  4      V\
        P                   ^ R7      pV# V P                  P                  pV P                  P                  p	. p
\
        P"                  ! VP$                   Uu. uF  q»P'                  4       NK  	  up4      p\)        V4       F³  w  rmV'       d"   V
P+                  \
        P                   4       K.  W&V^,            pWÆ^,           ,          WÆ,          ,
          p\        V	4       F  pVP                  4       pK  	  VP                  VR7      pV
P+                  VP                  ! V.VR,          O5!  4       Kµ  	  \        \
        P,                  ! \
        P.                  ! V4      4      4      ^8”  d,   \
        P0                  ! \        V
4      \2        R7      pW§R&   V# \
        P"                  ! V
4      pV# u upi )Fr“  ©Úaxisºé   NN©r~   ºNNN)r•  rQ   r–  r  r,  rÉ   Úaranger|   ÚsumrP  rO  ÚflattenÚreshapeÚinsertÚastyperB   ÚnanÚarrayÚoffsetsÚas_pyÚ	enumerateÚappendÚuniqueÚdiffÚemptyÚobject)r	  r”  r•  Ú	null_maskÚsizeÚnull_indicesr™  Ú	numpy_arrr,  rO  ÚarraysÚoffÚfirst_dim_offsetsrQ   Ú
storage_elÚ	first_dimr…   s   &&               r2   r–  ÚArrayExtensionArray.to_numpy  sb  € Ø $§¡ˆØ—O‘OÓ%×.Ñ.¸eÐ.ÓDˆ	à�9‰9�?‰?˜1ÕÓ)ØˆDÜŸ9š9¤S¨£\Ó2°9Õ=ÄÇ	Â	Ì"Ï&Ê&ÐQZÓJ[Ó@\Õ\ˆLä˜4Ÿ9™9Ÿ?™?Ö+�ØŸ	™	Ÿ™¨Õ*Õ*�Ø!Ÿ/™/Ó+’ñ ,ð  ×(Ñ(¸Ð(ÓGˆIØ!×)Ò)¬#¨d«)´c¸,Ó6GÕ*GÐZÈ$Ï)É)Ï/É/ÓZˆIä�<× Ò ÜŸIšI i×&6Ñ&6´r·z±zÓ&BÀLÔRT×RXÑRXÐ_`Ôa�	ð6 Ðð1 —I‘I—O‘OˆEØ—I‘I—O‘OˆEØˆFÜ "§¢ÀÇÂÓ)QÁ¸#¯)©)®+ÁÑ)QÓ RÐÜ'¨	Ö2‘
�ßØ—M‘M¤"§&¡&Ö)à!(¨Q°­UÐ!3�JØ 1°aµ%Õ 8Ð;LÕ;OÕ O�Iä" 5ž\˜Ø%/×%7Ñ%7Ó%9š
ñ *ð !+× 3Ñ 3À>Ð 3Ó R�IØ—M‘M )×"3Ò"3°IÐ"JÀÀbÅ	Ó"JÖKñ 3ô ”2—9’9œRŸWšWÐ%6Ó7Ó8Ó9¸AÔ=äŸHšH¤S¨£[¼Ô?�	Ø%˜!‘ð Ðô ŸHšH VÓ,�	àÐùò+ *Rs   Ç4MNc                ó>   <€ V ^8„  d   QhRS[ S[R,          ,          /# )r+   Úmaps_as_pydicts)ÚlossyÚstrict)r   r   )r1   r  s   "€r2   r3   Ú ArrayExtensionArray.__annotate__A  s   ø€ ÷ &ñ &©±'Ð:KÕ2LÕ)Mñ &r4   c                óT  € \        V P                  P                  R R7      pV P                  VR7      pV P                  P                  ^ ,          fC   VP
                  \        8X  d.   VP                  4        Uu. uF  qDP                  4       NK  	  up# VP                  4       # u upi r’  )r�  r•  r  r–  r,  r~   r²  rÚ   )r	  r¾  r”  r¶  Úarrs   &&   r2   Ú	to_pylistÚArrayExtensionArray.to_pylistA  s   € Ü+¨D¯L©L×,=Ñ,=ÀdÔKˆØ—M‘M°�MÓ@ˆ	Ø�9‰9�?‰?˜1ÕÒ%¨)¯/©/¼VÔ*CØ,5×,<Ñ,<Ô,>Ó?Ñ,> S—J‘J–LÑ,>Ñ?Ð?à×#Ñ#Ó%Ð%ùò @s   Á:B%rº   )Tr  )
r  r!  r"  r#  r¹   rš  r–  rÄ  r&  r'  r(  s   @r2   rk  rk    s$   ø‡ € ò<òô*÷X&÷ &ð &r4   rk  c                   óÈ   a € ] tR tRt o RtV 3R lR ltV 3R lR lt]R 4       t]	V 3R lR	 l4       t
]	V 3R
 lR l4       t]	V 3R lR l4       t]	V 3R lR l4       tRtV tR# )rt  iJ  rt   c                óH   <€ V ^8„  d   QhRS[ RS[P                  3,          /# )r+   rt   rt  )r   rÉ   r~   )r1   r  s   "€r2   r3   Ú&PandasArrayExtensionDtype.__annotate__M  s#   ø€ ÷ &ñ &¡5Ð)DÁbÇhÁhÐ)NÕ#Oñ &r4   c                ó   € Wn         R # r  ©Ú_value_type)r	  rt   s   &&r2   rS  Ú"PandasArrayExtensionDtype.__init__M  s   € Ø%Ör4   c                ó^   <€ V ^8„  d   QhRS[ S[P                  S[P                  3,          /# )r+   rª  )r   r.   ÚArrayÚChunkedArray)r1   r  s   "€r2   r3   rÈ  P  s&   ø€ ÷ 4ñ 4¡E©"¯(©(±B·O±OÐ*CÕ$Dñ 4r4   c                ól  € \        V\        P                  4      '       dS   VP                  P	                  \        P
                  ! VP                   Uu. uF  q"P                  NK  	  up4      4      p\        VP                  P                  R R7      pVP                  VR7      p\        V4      # u upi r’  )rÈ   r.   rÏ  r  Ú
wrap_arrayÚconcat_arraysÚchunksr•  r�  r–  ÚPandasArrayExtensionArray)r	  rª  Úchunkr”  r¶  s   &&   r2   Ú__from_arrow__Ú(PandasArrayExtensionDtype.__from_arrow__P  sƒ   € Ü�eœRŸ_™_×-Ò-Ø—J‘J×)Ñ)¬"×*:Ò*:ÐW\×WcÒWcÓ;dÑWcÈe¿M¼MÑWcÑ;dÓ*eÓfˆEÜ+¨E¯M©M×,>Ñ,>ÀtÔLˆØ—N‘N°.�NÓAˆ	Ü(¨Ó3Ð3ùò <es   ÁB1c                ó   € \         # r  )rÔ  )r]  s   &r2   Úconstruct_array_typeÚ.PandasArrayExtensionDtype.construct_array_typeW  s   € ä(Ð(r4   c                ó    <€ V ^8„  d   QhRS[ /# ©r+   r-   ©r  )r1   r  s   "€r2   r3   rÈ  \  s   ø€ ÷ ñ ‘dñ r4   c                ó"   € \         P                  # r  ©rÉ   rÊ   r  s   &r2   r  ÚPandasArrayExtensionDtype.type[  s   € ä�z‰zÐr4   c                ó    <€ V ^8„  d   QhRS[ /# rÜ  ©r0   )r1   r  s   "€r2   r3   rÈ  `  s   ø€ ÷ ñ ‘cñ r4   c                ó   € R # )ÚOrº   r  s   &r2   ÚkindÚPandasArrayExtensionDtype.kind_  s   € ár4   c                ó    <€ V ^8„  d   QhRS[ /# rÜ  râ  )r1   r  s   "€r2   r3   rÈ  d  s   ø€ ÷ +ñ +‘cñ +r4   c                ó"   € R V P                    R2# )zarray[rC   )rt   r  s   &r2   ÚnameÚPandasArrayExtensionDtype.namec  s   € à˜Ÿ™Ð(¨Ð*Ð*r4   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rÜ  )rÉ   r~   )r1   r  s   "€r2   r3   rÈ  h  s   ø€ ÷  ñ  ™BŸH™Hñ  r4   c                ó   € V P                   # r  rÊ  r  s   &r2   rt   Ú$PandasArrayExtensionDtype.value_typeg  s   € à×ÑÐr4   rÊ  N)r  r!  r"  r#  Ú	_metadatarS  rÖ  rx  rÙ  Úpropertyr  rå  ré  rt   r&  r'  r(  s   @r2   rt  rt  J  s‚   ø‡ € Ø€I÷&ð &÷4ð 4ð ñ)ó ð)ð ÷ó ðð ÷ó ðð ÷+ó ð+ð ÷ ó ö r4   rt  c                   ó:  a € ] tR tRt o RV 3R lR lltRR ltRV 3R lR llt]RV 3R lR	 ll4       t]V 3R
 lR l4       t	]
V 3R lR l4       t]
V 3R lR l4       tV 3R lR ltV 3R lR ltV 3R lR ltR V 3R lR lltV 3R lR ltV 3R lR ltRtV tR# )!rÔ  il  c                ó:   <€ V ^8„  d   QhRS[ P                  RS[/# )r+   ÚdataÚcopy)rÉ   rÊ   r7   )r1   r  s   "€r2   r3   Ú&PandasArrayExtensionArray.__annotate__m  s   ø€ ÷ <ñ <™RŸZ™Zð <©tñ <r4   c                ó„   € V'       g   TM\         P                  ! V4      V n        \        VP                  4      V n        R # r  )rÉ   rª  Ú_datart  r~   Ú_dtype)r	  rò  ró  s   &&&r2   rS  Ú"PandasArrayExtensionArray.__init__m  s%   € ß!%‘T¬2¯8ª8°D«>ˆŒ
Ü/°·
±
Ó;ˆŽr4   Nc                ól  € V\         P                  ! \        4      8X  dl   \         P                  ! \	        V P
                  4      \        R7      p\        \	        V P
                  4      4       F  pV P
                  V,          W#&   K  	  V# Vf   V P
                  # V P
                  P                  V4      # )ax  
Convert to NumPy Array.
Note that Pandas expects a 1D array when dtype is set to object.
But for other dtypes, the returned shape is the same as the one of ``data``.

More info about pandas 1D requirement for PandasExtensionArray here:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.api.extensions.ExtensionArray.html#pandas.api.extensions.ExtensionArray

r¡  )rÉ   r~   r²  r±  r|   rö  rP  r¨  )r	  r~   Úoutr™  s   &&  r2   r¹   Ú#PandasArrayExtensionArray.__array__q  s|   € ð ”B—H’HœVÓ$Ô$Ü—(’(œ3˜tŸz™z›?´&Ô9ˆCÜœ3˜tŸz™z›?Ö+�ØŸ™ A��“ñ ,àˆJØŠ=Ø—:‘:Ðà—:‘:×$Ñ$ UÓ+Ð+r4   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r+   Údeepr-   rÔ  ©r7   )r1   r  s   "€r2   r3   rô  …  s    ø€ ÷ @ñ @™ð @Ð*Eñ @r4   c                ó0   € \        V P                  R R7      # )T©ró  )rÔ  rö  )r	  rý  s   &&r2   ró  ÚPandasArrayExtensionArray.copy…  s   € Ü(¨¯©¸$Ô?Ð?r4   c                ó:   <€ V ^8„  d   QhRS[ S[,          RS[RR/# )r+   r~   ró  r-   rÔ  )r   rt  r7   )r1   r  s   "€r2   r3   rô  ‰  s+   ø€ ÷ 
$ñ 
$Ù%Ñ&?Õ@ð
$ÙOSð
$à	$ñ
$r4   c                ó^  a€ \        S4      ^8”  dk   \        ;QJ d    V3R lS 4       F  '       d   K   RM	  RM! V3R lS 4       4      '       d+   \        P                  ! SVf   TMVP                  VR7      pM*\        P
                  ! \        S4      \        R7      pSVR&   V ! WCR7      # )r   c              3   óø   <"  € T Fo  p\        V\        P                  4      ;'       dI    VP                  S^ ,          P                  8H  ;'       d!    VP                  S^ ,          P                  8H  x € Kq  	  R# 5i©é    N)rÈ   rÉ   rÊ   r,  r~   )Ú.0rë   Úscalarss   & €r2   Ú	<genexpr>Ú;PandasArrayExtensionArray._from_sequence.<locals>.<genexpr>Œ  s]   øé € ð $
ÙovÐjkŒJ�qœ"Ÿ*™*Ó%×eÐe¨!¯'©'°W¸QµZ×5EÑ5EÑ*E×eÐeÈ!Ï'É'ÐU\Ð]^ÕU_×UeÑUeÑJeÔeÓovùs   ƒ%A:©'A:Á)A:FT)r~   ró  r¡  r¢  r   )r|   ÚallrÉ   rª  rt   r±  r²  )r]  r  r~   ró  rò  s   &f&& r2   Ú_from_sequenceÚ(PandasArrayExtensionArray._from_sequenceˆ  sˆ   ø€ ô ˆw‹<˜!Ô§£ô $
Ùovó$
§§¢ô $
Ùovó$
÷ !
ò !
ô —8’8˜G°E²M©5Àu×GWÑGWÐ^bÔc‰Dä—8’8œC ›L´Ô7ˆDØˆD�‰GÙ�4Ô#Ð#r4   c                ó2   <€ V ^8„  d   QhRS[ R,          RR/# )r+   Ú	to_concatrÔ  r-   )Ú	Sequence_)r1   r  s   "€r2   r3   rô  –  s"   ø€ ÷ 	%ñ 	%©)Ð4OÕ*Pð 	%ÐUpñ 	%r4   c                ó²  a€ \        S4      ^8”  dq   \        ;QJ d    V3R lS 4       F  '       d   K   RM	  RM! V3R lS 4       4      '       d1   \        P                  ! S Uu. uF  q"P                  NK  	  up4      pMC\        P
                  ! \        S4      \        R7      pS Uu. uF  q"P                  NK  	  upVR&   V ! VRR7      # u upi u upi )r   c              3   ó  <"  € T Fu  pVP                   P                  S^ ,          P                   P                  8H  ;'       d5    VP                   P                  S^ ,          P                   P                  8H  x € Kw  	  R# 5ir  )rö  r,  r~   )r  Úvar  s   & €r2   r	  Ú>PandasArrayExtensionArray._concat_same_type.<locals>.<genexpr>—  s^   øé € ð &
á�ð �H‰H�N‰N˜i¨�l×0Ñ0×6Ñ6Ñ6×eÐe¸2¿8¹8¿>¹>ÈYÐWXÍ\×M_ÑM_×MeÑMeÑ;eÔeÛùs   ƒ?B Á=B FTr¡  r¢  r   )r|   r  rÉ   Úvstackrö  r±  r²  )r]  r  r  rò  s   &f  r2   Ú_concat_same_typeÚ+PandasArrayExtensionArray._concat_same_type•  s£   ø€ äˆy‹>˜AÔ§#£#ô &
áó&
§#§#¢#ô &
áó&
÷ #
ò #
ô —9’9±Ó;±¨2Ÿhœh±Ñ;Ó<‰Dä—8’8œC 	›N´&Ô9ˆDÙ*3Ó4©) B—x”x©)Ñ4ˆD�‰GÙ�4˜eÔ$Ð$ùò	 <ùò 5s   Á&CÂ+Cc                ó    <€ V ^8„  d   QhRS[ /# rÜ  )rt  )r1   r  s   "€r2   r3   rô  ¢  s   ø€ ÷ ñ Ñ0ñ r4   c                ó   € V P                   # r  )r÷  r  s   &r2   r~   ÚPandasArrayExtensionArray.dtype¡  s   € à�{‰{Ðr4   c                ó    <€ V ^8„  d   QhRS[ /# rÜ  ©rš   )r1   r  s   "€r2   r3   rô  ¦  s   ø€ ÷ !ñ !™ñ !r4   c                ó.   € V P                   P                  # r  )rö  Únbytesr  s   &r2   r  Ú PandasArrayExtensionArray.nbytes¥  s   € à�z‰z× Ñ Ð r4   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rÜ  rß  )r1   r  s   "€r2   r3   rô  ©  s   ø€ ÷ Dñ D‘b—j‘jñ Dr4   c                ó°   € \         P                  ! V P                   Uu. uF'  p\        P                  ! V4      P                  4       NK)  	  up4      # u upi r  )rÉ   rª  rö  rØ   ÚisnaÚany)r	  rÃ  s   & r2   r"  ÚPandasArrayExtensionArray.isna©  s8   € Ü�xŠx°t·z²zÓB±z°œŸš ›×)Ñ)Ö+±zÑBÓCÐCùÒBs   Ÿ-Ac                óX   <€ V ^8„  d   QhRS[ S[S[S[P                  3,          RS[RR/# )r+   rì   rí   r-   N)r   rš   ÚslicerÉ   rÊ   r   )r1   r  s   "€r2   r3   rô  ¬  s2   ø€ ÷ $ñ $™u¡S©%±·±Ð%;Õ<ð $ÁSð $ÈTñ $r4   c                ó   € \        4       hr  )ÚNotImplementedError)r	  rì   rí   s   &&&r2   Ú__setitem__Ú%PandasArrayExtensionArray.__setitem__¬  s   € Ü!Ó#Ð#r4   c                ó|   <€ V ^8„  d   QhRS[ S[S[S[P                  3,          RS[ S[P                  R3,          /# )r+   Úitemr-   rÔ  )r   rš   r&  rÉ   rÊ   )r1   r  s   "€r2   r3   rô  ¯  s>   ø€ ÷ Gñ G¡¡c©5±"·*±*Ð&<Õ =ð GÁ%ÉÏ
É
ÐToÐHoÕBpñ Gr4   c                ó�   € \        V\        4      '       d   V P                  V,          # \        V P                  V,          R R7      # )Fr   )rÈ   rš   rö  rÔ  )r	  r,  s   &&r2   rš  Ú%PandasArrayExtensionArray.__getitem__¯  s4   € Ü�dœC× Ò Ø—:‘:˜dÕ#Ð#Ü(¨¯©°DÕ)9ÀÔFÐFr4   c                ó@   <€ V ^8„  d   QhRS[ S[,          RS[RS[RR/# )r+   ÚindicesÚ
allow_fillÚ
fill_valuer-   rÔ  )r  rš   r7   )r1   r  s   "€r2   r3   rô  ´  s1   ø€ ÷ ;ñ ;Ù ¡•~ð;Ù37ð;ÙMQð;à	$ñ;r4   c                óú  € \         P                  ! V\        R 7      pV'       dñ   Vf   V P                  P                  M*\         P                  ! W0P                  P
                  R 7      pVR8H  pVR8  P                  4       '       d   \        R4      h\        V 4      ^ 8”  d   Mq\         P                  ! V4      '       g   \        R4      h\         P                  ! V.\        V4      ,          V P                  P
                  R 7      p\        VRR7      # V P                  P                  V^ R7      pV'       d7   XP                  4       '       d!   V.\         P                  ! V4      ,          Wd&   \        VRR7      # )r¡  zFInvalid value in `indices`, must be all >= -1 for `allow_fill` is TruezAInvalid take for empty PandasArrayExtensionArray, must be all -1.Fr   r�  r{   )rÉ   rÓ   rš   r~   Úna_valuert   r#  rd   r|   r  Ú
IndexErrorrª  rÔ  rö  Útaker¤  )r	  r0  r1  r2  Úmaskrò  Útooks   &&&&   r2   r6  ÚPandasArrayExtensionArray.take´  s  € ô !Ÿjšj¨¼Ô<ˆßà'1Ò'9�—
‘
×#Ò#¼r¿zºzÈ*×\fÑ\f×\qÑ\qÔ?rð ð ˜b‘=ˆDØ˜"‘×!Ñ!×#Ò#Ü Ð!iÓjÐjÜ�T“˜Q”ØÜ—V’V˜D—\’\Ü Ð!dÓeÐeä—x’x  ¬s°7«|Õ ;À4Ç:Á:×CXÑCXÔY�Ü0°¸EÔBÐBØ�z‰z�‰˜w¨QˆÓ/ˆß˜$Ÿ(™(Ÿ*š*Ø$˜¬¯ª¨t«Õ4ˆD‰JÜ(¨°EÔ:Ð:r4   c                ó    <€ V ^8„  d   QhRS[ /# rÜ  r  )r1   r  s   "€r2   r3   rô  Ë  s   ø€ ÷ ñ ™ñ r4   c                ó,   € \        V P                  4      # r  )r|   rö  r  s   &r2   Ú__len__Ú!PandasArrayExtensionArray.__len__Ë  s   € Ü�4—:‘:‹Ðr4   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rÜ  rß  )r1   r  s   "€r2   r3   rô  Î  s   ø€ ÷ 1ñ 1™rŸz™zñ 1r4   c                óª   € \        V\        4      '       g   \        R \        V4       24      hV P                  VP                  8H  P                  4       # )zInvalid type to compare to: )rÈ   rÔ  r(  r  rö  r  )r	  Úothers   &&r2   Ú__eq__Ú PandasArrayExtensionArray.__eq__Î  sC   € Ü˜%Ô!:×;Ò;Ü%Ð(DÄTÈ%Ã[ÀMÐ&RÓSÐSØ—
‘
˜eŸk™kÑ)×.Ñ.Ó0Ð0r4   )rö  r÷  ©Fr  )NF)FN)r  r!  r"  r#  rS  r¹   ró  rx  r  r  rï  r~   r  r"  r)  rš  r6  r<  rA  r&  r'  r(  s   @r2   rÔ  rÔ  l  sµ   ø‡ € ÷<ò <ô,÷(@ò @ð ÷
$ñ 
$ó ð
$ð ÷	%ó ð	%ð ÷ó ðð ÷!ó ð!÷Dð D÷$ð $÷Gð G÷
;ò ;÷.ð ÷1ö 1r4   rÔ  c                 ó\   € \        V \        4      '       d   \        V P                  4      # R # r  )rÈ   rK  rt  rt   r¡  s   &r2   Úpandas_types_mapperrE  Ô  s&   € Ü�%Ô.×/Ò/Ü(¨×)9Ñ)9Ó:Ð:ñ 0r4   c                   óþ   a € ] tR tRt o RtRtRtRt]! RRR7      t	Rt
]P                  ! 4       tRtRt]! R RRR7      tR tR	 tV 3R
 lR ltV 3R lR ltV 3R lR ltR tV 3R lR lt]R 4       tV 3R ltRtV tR# )Ú
ClassLabeliÙ  a¶  Feature type for integer class labels.

There are 3 ways to define a `ClassLabel`, which correspond to the 3 arguments:

 * `num_classes`: Create 0 to (num_classes-1) labels.
 * `names`: List of label strings.
 * `names_file`: File containing the list of labels.

Under the hood the labels are stored as integers.
You can use -1 to represent unknown/missing labels.

Args:
    num_classes (`int`, *optional*):
        Number of classes. All labels must be < `num_classes`.
    names (`list` of `str`, *optional*):
        String names for the integer classes.
        The order in which the names are provided is kept.
    names_file (`str`, *optional*):
        Path to a file with names for the integer classes, one per line.

Example:

```py
>>> from datasets import Features, ClassLabel
>>> features = Features({'label': ClassLabel(num_classes=3, names=['bad', 'ok', 'good'])})
>>> features
{'label': ClassLabel(names=['bad', 'ok', 'good'])}
```
NFr  r;   r  c                ó:  € Wn         W n        V P                  e   V P                  e   \        R4      hV P                  f}   V P                  e"   V P	                  V P                  4      V n        MŽV P                   e5   \        V P                   4       Uu. uF  p\        V4      NK  	  upV n        ML\        R4      h\        V P                  \        4      '       g"   \        R\        V P                  4       24      hV P                   f   \        V P                  4      V n         MSV P                   \        V P                  4      8w  d0   \        R\        V P                  4       RV P                    R24      hV P                   Uu. uF  p\        V4      NK  	  upV n        \        V P                  4       UUu/ uF  w  r4WCbK	  	  uppV n        \        V P                  4      \        V P                  4      8w  d   \        R4      hR # u upi u upi u uppi )Nz7Please provide either names or names_file but not both.z7Please provide either num_classes, names or names_file.z#Please provide names as a list, is zEClassLabel number of names do not match the defined num_classes. Got z
 names VS z num_classeszBSome label names are duplicated. Each label name should be unique.)Únum_classesÚ
names_fileÚnamesrd   Ú_load_names_from_filerP  r0   rÈ   ÚSequenceABCÚ	TypeErrorr  r|   Ú_int2strr­  Ú_str2int)r	  rI  rJ  r™  ré  s   &&&  r2   r
  ÚClassLabel.__post_init__  s¨  € Ø&ÔØ$ŒØ�?‰?Ò&¨4¯:©:Ò+AÜÐVÓWÐWà�:‰:ÒØ�‰Ò*Ø!×7Ñ7¸¿¹ÓH�•
Ø×!Ñ!Ò-Ü.3°D×4DÑ4DÔ.EÓFÑ.E¨œc !žfÑ.EÑF�•
ä Ð!ZÓ[Ð[Ü˜DŸJ™J¬×4Ò4ÜÐAÄ$ÀtÇzÁzÓBRÐASÐTÓUÐUà×ÑÒ#Ü" 4§:¡:›ˆDÕØ×Ñ¤ T§Z¡Z£Ô0ÜðÜ˜4Ÿ:™:“Ð' z°$×2BÑ2BÐ1CÀ<ðQóð ð
 04¯zªzÓ:©z tœ˜Tž©zÑ:ˆŒÜ09¸$¿-¹-Ô0HÔIÑ0H¡W Q˜šÑ0HÒIˆŒÜˆt�}‰}Ó¤ T§]¡]Ó!3Ô3ÜÐaÓbÐbñ 4ùò! Gùò ;ùÛIs   ÂHÆ	HÆ=Hc                ó   € V P                   # r  r  r  s   &r2   r  ÚClassLabel.__call__!  r  r4   c                óR   <€ V ^8„  d   QhRS[ S[S[3,          RS[ S[S[3,          /# ©r+   Úvaluesr-   )r   r0   r   rš   )r1   r  s   "€r2   r3   ÚClassLabel.__annotate__$  s-   ø€ ÷ 4ñ 4™e¡C© MÕ2ð 4±u¹SÁ(¸]Õ7Kñ 4r4   c                ó   € \        V\        4      '       g&   \        V\        4      '       g   \        RV R24      hRp\        V\        4      '       d   V.pRpV Uu. uF  q0P	                  V4      NK  	  ppV'       d   V# V^ ,          # u upi )zäConversion class name `string` => `integer`.

Example:

```py
>>> from datasets import load_dataset
>>> ds = load_dataset("cornell-movie-review-data/rotten_tomatoes", split="train")
>>> ds.features["label"].str2int('neg')
0
```
úValues zS should be a string or an Iterable (list, numpy array, pytorch, tensorflow tensors)TF)rÈ   r0   r   rd   Ú_strval2int)r	  rV  Úreturn_listrí   rï   s   &&   r2   Ústr2intÚClassLabel.str2int$  sŠ   € ô ˜&¤#×&Ò&¬z¸&Ä(×/KÒ/KÜØ˜&˜Ð!tÐuóð ð ˆÜ�fœc×"Ò"Ø�XˆFØˆKá7=Ó>±v¨e×"Ñ" 5Ö)±vˆÐ>ß$ˆvÐ3¨&°­)Ð3ùò ?s   ÁBc                ó&   <€ V ^8„  d   QhRS[ RS[/# )r+   rí   r-   )r0   rš   )r1   r  s   "€r2   r3   rW  <  s   ø€ ÷ ñ ¡ð ©ñ r4   c                óT  € R p\        V4      pV P                  P                  V4      pVfS   V P                  P                  VP                  4       4      pVf&    \	        V4      pVR8  g   W0P
                  8¼  d   RpV'       d   \        RV 24      hV#   \         d    Rp L'i ; i)FTzInvalid string class label r{   )r0   rP  ÚgetÚstriprš   rI  rd   )r	  rí   Úfailed_parseÚ	int_values   &&  r2   rZ  ÚClassLabel._strval2int<  s£   € ØˆÜ�E“
ˆà—M‘M×%Ñ% eÓ,ˆ	ØÒàŸ™×)Ñ)¨%¯+©+«-Ó8ˆIØÒ ð,Ü # E£
�Ið ! 2”~¨×6FÑ6FÔ)FØ'+˜ßÜÐ:¸5¸'ÐBÓCÐCØÐøô "ô (Ø#'’Lð(ús   ÁB ÂB'Â&B'c                óR   <€ V ^8„  d   QhRS[ S[S[3,          RS[ S[S[3,          /# rU  )r   rš   r   r0   )r1   r  s   "€r2   r3   rW  Q  s-   ø€ ÷ 4ñ 4™e¡C© MÕ2ð 4±u¹SÁ(¸]Õ7Kñ 4r4   c                óœ  € \        V\        4      '       g&   \        V\        4      '       g   \        RV R24      hRp\        V\        4      '       d   V.pRpV F-  p^ Tu;8:  d   V P                  8  d   K  M \        RVR 24      h	  V Uu. uF  q0P
                  \        V4      ,          NK   	  ppV'       d   V# V^ ,          # u upi )a6  Conversion `integer` => class name `string`.

Regarding unknown/missing labels: passing negative integers raises `ValueError`.

Example:

```py
>>> from datasets import load_dataset
>>> ds = load_dataset("cornell-movie-review-data/rotten_tomatoes", split="train")
>>> ds.features["label"].int2str(0)
'neg'
```
rY  zU should be an integer or an Iterable (list, numpy array, pytorch, tensorflow tensors)TFzInvalid integer class label rq  )rÈ   rš   r   rd   rI  rO  )r	  rV  r[  rñ   rï   s   &&   r2   Úint2strÚClassLabel.int2strQ  sÆ   € ô ˜&¤#×&Ò&¬z¸&Ä(×/KÒ/KÜØ˜&˜Ð!vÐwóð ð ˆÜ�fœc×"Ò"Ø�XˆFØˆKãˆAØ˜Ö,˜D×,Ñ,×,Ð,Ü Ð#?ÀÀ!¸uÐ!EÓFÐFñ ñ 28Ó8±¨A—-‘-¤ A£×'Ð'±ˆÐ8ß$ˆvÐ3¨&°­)Ð3ùò 9s   Â$C	c                óô   € V P                   f   \        R4      h\        V\        4      '       d   V P	                  V4      pRTu;8:  d   V P                   8  g   M \        RVR RV P                    24      hV# )NzlTrying to use ClassLabel feature with undefined number of class. Please set ClassLabel.names or num_classes.úClass label rq  ú% greater than configured num_classes r{   )rI  rd   rÈ   r0   r\  ©r	  Úexample_datas   &&r2   rç   ÚClassLabel.encode_exampleo  s|   € Ø×ÑÒ#Üð>óð ô �l¤C×(Ò(ØŸ<™<¨Ó5ˆLð �\Ö4 D×$4Ñ$4Ö4Ü˜|¨L¸Ð+;Ð;`Ðae×aqÑaqÐ`rÐsÓtÐtØÐr4   c                óx   <€ V ^8„  d   QhRS[ S[P                  S[P                  3,          RS[P                  /# ©r+   r•  r-   )r   r.   ÚStringArrayÚIntegerArrayÚ
Int64Array)r1   r  s   "€r2   r3   rW    s1   ø€ ÷ 1ñ 1¡E©"¯.©.¹"¿/¹/Ð*IÕ$Jð 1ÉrÏ}É}ñ 1r4   c                ó:  € \        V\        P                  4      '       d{   \        V4      ^ 8”  dk   \        P
                  ! V4      P                  4       pVR,          e;   VR,          V P                  8¼  d#   \        RVR,           RV P                   24      hMh\        V\        P                  4      '       dI   \        P                  ! VP                  4        Uu. uF  q3e   V P                  V4      MRNK  	  up4      p\        WP                  4      # u upi )aY  Cast an Arrow array to the `ClassLabel` arrow storage type.
The Arrow types that can be converted to the `ClassLabel` pyarrow storage type are:

- `pa.string()`
- `pa.int()`

Args:
    storage (`Union[pa.StringArray, pa.IntegerArray]`):
        PyArrow array to cast.

Returns:
    `pa.Int64Array`: Array in the `ClassLabel` arrow storage type.
ÚmaxNrj  rk  )rÈ   r.   rr  r|   ÚpcÚmin_maxr¬  rI  rd   rq  rª  rÄ  rZ  r   r  )r	  r•  rw  Úlabels   &&  r2   Úcast_storageÚClassLabel.cast_storage  sæ   € ô �gœrŸ™×/Ò/´C¸³LÀ1Ô4DÜ—j’j Ó)×/Ñ/Ó1ˆGØ�u�~Ò)¨g°e­nÀ×@PÑ@PÔ.PÜ Ø" 7¨5¥>Ð"2Ð2WÐX\×XhÑXhÐWiÐjóð øô ˜¤§¡×0Ò0Ü—h’hØU\×UfÑUfÔUhÓiÑUhÈEÒ,=�×!Ñ! %Ô(À4ÒGÑUhÑióˆGô ˜'§<¡<Ó0Ð0ùò js   ÃDc                ó  € \        V R R7      ;_uu_ 4       pVP                  4       P                  R4       Uu. uF*  q"P                  4       '       g   K  VP                  4       NK,  	  upuuRRR4       # u upi   + '       g   i     R# ; i)zutf-8)ÚencodingÚ
N)ÚopenÚreadÚsplitra  )Únames_filepathÚfré  s   &  r2   rL  Ú ClassLabel._load_names_from_file™  sY   € ä�.¨7×3Õ3°qØ-.¯V©V«X¯^©^¸DÔ-AÓRÑ-A TÇZÁZÇ\”L�D—J‘J–LÑ-AÑR÷ 4Ò3ùÚR÷ 4×3Ð3ús"   –"A:¸A5ÁA5Á(A:Á5A:Á:B	c                óR  <€ V ^8„  d   Qh/ S[ S[S[,          ,          ;R&   S[S[,          ;R&   S[ S[S[,          ,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[S[S[3,          ,          ;R&   S[S[S[S[3,          ,          ;R&   S[;R	&   # )
r+   rI  rK  rJ  r  r~   r  rP  rO  r  )r   r   rš   rå   r0   r   r   râ   )r1   r  s   "€r2   r3   rW  Ù  sÈ   ø‡ ‚ ñ@ ™¡#�Õ'Ñ.ñA ñB ‘�9ÑñC ñD ™¡�Õ&Ñ-ñE ñF 	‘�Ñ7ñG ñJ ‘C�=Ñ"ñK ñL ‘c�]Ñ'ñM ñN ‘t™C¡˜H•~Õ&Ñ-ñO ñP ‘t™C¡˜H•~Õ&Ñ-ñQ ñR ÑDòS r4   )rO  rP  rK  rJ  rI  )r  r!  r"  r#  r$  rI  rK  rJ  r   r  r~   r.   r;   r  rP  rO  r  r
  r  r\  rZ  rg  rç   ry  ÚstaticmethodrL  r%  r&  r'  r(  s   @r2   rG  rG  Ù  s¥   ø‡ € ñð< +/€KØ€EØ)-€JÙ d°Ô7€Bà"€EØŸXšX›Z€GØ)-€HØ)-€HÙ˜|°%¸eÔD€Eòcò:÷4ð 4÷0ð ÷*4ð 4ò<÷ 1ð 1ð4 ñSó ðS÷C ƒ r4   rG  c                   ó´   a € ] tR tRt o RtRt]! RRR7      t]P                  ! 4       t
]! R RRR7      tR tR	 tRV 3R
 lR lltV 3R lR ltV 3R ltRtV tR# )ÚJsoniŸ  aü  Feature type for JSON objects.

Under the hood the objects are stored as JSON-encoded strings.

Example:

```py
>>> from datasets import Features, Json
>>> features = Features({'json': Json()})
>>> features
{'json': Json()}
```

```py
>>> from datasets import Dataset, Features, Json, List
>>> features = Features({"a": List(Json())})
>>> ds = Dataset.from_dict({"a": [[{"b": 0}, {"c": 0}]]}, features=features)
>>> # OR
>>> ds = Dataset.from_dict({"a": [[{"b": 0}, {"c": 0}]]}, on_mixed_types="use_json")
>>> ds.features
{'a': List(Json())}
>>> ds[0]
{'a': [{'b': 0}, {'c': 0}]}
>>> def f(x):
...     for y in x["a"]:
...         y["d"] = "foo"
...     return x
>>> ds = ds.map(f)
>>> ds.features
>>> ds[0]
{'a': [{'b': 0, 'd': 'foo'}, {'c': 0, 'd': 'foo'}]}
```
TNFr  r  c                ó   € V P                   # r  r  r  s   &r2   r  ÚJson.__call__É  r  r4   c                óª   € Vf   R # \        V\        4      '       g   \        V4      pV#  \        V4       V#   \         d    \        T4      p T# i ; ir  )rÈ   r0   r   r   Ú	Exceptionrl  s   &&r2   rç   ÚJson.encode_exampleÌ  s`   € ØÒÙÜ˜,¬×,Ò,Ü& |Ó4ˆLð Ðð	9Ü˜LÔ)ð Ðøô ô 9Ü*¨<Ó8‘ØÐð9ús   «8 ¸AÁAc                ó^   <€ V ^8„  d   QhRS[ S[S[S[S[S[R3,          3,          ,          /# ©r+   Útoken_per_repo_idN©r   râ   r0   r   r7   )r1   r  s   "€r2   r3   ÚJson.__annotate__Ø  s3   ø€ ÷ )ñ )¹hÁtÉCÑQVÑWZÑ\`ÐbfÐWfÕQgÐLgÕGhÕ>iñ )r4   c                ó^   € V P                   '       g   \        R 4      hVf   R# \        V4      # )zLDecoding is disabled for this feature. Please use Json(decode=True) instead.N)ÚdecodeÚRuntimeErrorr   )r	  rm  r�  s   &&&r2   Údecode_exampleÚJson.decode_exampleØ  s+   € Ø�{�{ˆ{ÜÐmÓnÐnØÒÙÜ˜<Ó(Ð(r4   c                ó^   <€ V ^8„  d   QhRS[ S[P                  ,          RS[P                  /# rp  )r   r.   rÎ  Ú	JsonArray)r1   r  s   "€r2   r3   r‘  ß  s'   ø€ ÷ 1ñ 1¡E©"¯(©(¥Oð 1¹¿¹ñ 1r4   c           	     ó¦  € \        V\        P                  4      '       d   V# \        V\        P                  4      '       d4   VR,          P	                  4       p V F  pVf   K	  \        V4       K  	  MV\        P                  ! VP	                  4        Uu. uF  qDe   \        V4      MRNK  	  up\        P                  ! 4       4      p\        WP                  4      #   \         d`    \        P                  ! TP	                  4        Uu. uF  qDe   \        T4      MRNK  	  Mu upi up\        P                  ! 4       4      p L~i ; iu upi )zÚCast an Arrow array to the `Json` arrow storage type.

Args:
    storage (`Union[pa.StringArray, pa.IntegerArray]`):
        PyArrow array to cast.

Returns:
    `pa.JsonArray`: Array in the `Json` arrow storage type.
:Né   NN)rÈ   r.   r˜  rq  rÄ  r   r‹  rª  r   Újson_r   r  )r	  r•  rÝ   r,  rë   s   &&   r2   ry  ÚJson.cast_storageß  s  € ô �gœrŸ|™|×,Ò,ØˆNÜ˜¤"§.¡.×2Ò2Ø˜B•K×)Ñ)Ó+ˆEðÛ!�DØÔ'Ü# DÖ)ò "ô —h’hÐSZ×SdÑSdÔSfÓgÑSfÈa²-¤¨A¤ÀTÒ IÑSfÑgÔik×iqÒiqÓisÓtˆGÜ˜'§<¡<Ó0Ð0øô ô ÜŸ(š(ØHO×HYÑHYÔH[Ó\ÑH[À1¢}”[ ”^¸$Ò>ÒH[ùÔ\Ô^`×^fÒ^fÓ^hó’ðüò
  hs*   ÁC! Á&C! ÂEÃ!-EÄD(
Ä'!EÅ
Ec                ój   <€ V ^8„  d   Qh/ S[ ;R&   S[S[,          ;R&   S[S[,          ;R&   S[;R&   # )r+   r“  r  r  r  )r7   r   r0   r   r   )r1   r  s   "€r2   r3   r‘  Ÿ  sI   ø‡ ‚ ñH ÑñI ñJ 	‘�Ñ7ñK ñN ‘c�]Ñ'ñO ñP Ñ>òQ r4   rº   r  )r  r!  r"  r#  r$  r“  r   r  r.   r›  r  r  r  rç   r•  ry  r%  r&  r'  r(  s   @r2   r‡  r‡  Ÿ  s]   ø‡ € ñ ðD €FÙ d°Ô7€BàŸXšX›Z€GÙ˜v¨E¸Ô>€Eòò
÷)ò )÷1ð 1÷A ƒ r4   r‡  c                   ó:   a a€ ] tR tRt oRtRV 3R lltRtVtV ;t# )r   iú  a  
A `Sequence` is a utility that automatically converts internal dictionary feature into a dictionary of
lists. This behavior is implemented to have a compatibility layer with the TensorFlow Datasets library but may be
un-wanted in some cases. If you don't want this behavior, you can use a [`List`] or a [`LargeList`]
instead of the [`Sequence`].

Args:
    feature ([`FeatureType`]):
        Child feature data type of each item within the large list.
    length (optional `int`, default to -1):
        Length of the list if it is fixed.
        Defaults to -1 which means an arbitrary length.

    Returns:
        [`List`] of the specified feature, except `dict` of sub-features
        which are converted to `dict` of lists of sub-features for compatibility with TFDS.

c           
     óŠ  <€ V \         J dŸ   \        V\        4      '       d‰   \        ;QJ d*    R  VP	                  4        4       F  '       g   K   RM	  RM! R  VP	                  4        4       4      '       d3   VP                  4        UUu/ uF  w  rEV\        V3RV/VB bK  	  pppV# \        SV `!  \        4      pV# u uppi )c              3   óL   "  € T F  p\        V\        4      '       * x € K  	  R # 5ir  )rÈ   ÚList)r  Ú
subfeatures   & r2   r	  Ú#Sequence.__new__.<locals>.<genexpr>  s   é € ÐXÑGW¸œ
 :¬tÓ4×4Ñ4ÓGWùs   ‚"$TFÚlength)	r   rÈ   râ   r#  rV  rÝ   r¡  ÚsuperÚ__new__)r]  Úfeaturer¤  Úkwargsrì   rí   rú  r1  s   &&&,   €r2   r¦  ÚSequence.__new__  sš   ø€ ð ”8‹OÜ˜7¤D×)Ò)ß“ÑXÀwÇ~Á~ÔGWÓX——’ÑXÀwÇ~Á~ÔGWÓX×XÒXàOVÏ}É}ÌÔ_ÉÁÀ�3œ˜UÑ<¨6Ð<°VÑ<Ò<ÉˆCÑ_ð ˆ
ô ‘'‘/¤$Ó'ˆCØˆ
ùó `s   ÂB?rº   )Nr{   )	r  r!  r"  r#  r$  r¦  r&  r'  Ú__classcell__©r1  r  s   @@r2   r   r   ú  s   ù‡ € ñ÷&
÷ 
r4   r   c                   óh   a € ] tR tRt o RtR
t]! RRR7      tRt]! R RRR7      t	R t
V 3R ltR	tV tR# )r¡  i  a‘  Feature type for large list data composed of child feature data type.

It is backed by `pyarrow.ListType`, which uses 32-bit offsets or a fixed length.

Args:
    feature ([`FeatureType`]):
        Child feature data type of each item within the large list.
    length (optional `int`, default to -1):
        Length of the list if it is fixed.
        Defaults to -1 which means an arbitrary length.
NFr  r  c                óÒ   € V P                   R8w  d3   \        V 4      P                   RV P                   RV P                    R2# \        V 4      P                   RV P                   R2# )r   Ú(z	, length=rH   r{   )r¤  r  r  r§  r  s   &r2   r  ÚList.__repr__0  s\   € Ø�;‰;˜"ÔÜ˜4“j×)Ñ)Ð*¨!¨D¯L©L¨>¸À4Ç;Á;À-ÈqÐQÐQä˜4“j×)Ñ)Ð*¨!¨D¯L©L¨>¸Ð;Ð;r4   c                óv   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[S[,          ;R&   S[S[ ,          ;R&   S[;R&   # )r+   r§  r¤  r  r  r  )r   rš   r   r0   r   )r1   r  s   "€r2   r3   ÚList.__annotate__  sM   ø‡ ‚ ñ �Lñ ñ Ññ ñ  	‘�Ñ7ñ! ñ$ ‘c�]Ñ!ñ% ñ& Ñ>ò' r4   rº   r{   )r  r!  r"  r#  r$  r¤  r   r  r  r  r  r%  r&  r'  r(  s   @r2   r¡  r¡    s<   ø‡ € ñ
ð €FÙ d°Ô7€Bà!€GÙ˜v¨E¸Ô>€Eò<÷+ ƒ r4   r¡  c                   ód   a € ] tR tRt o Rt]! RRR7      tRt]! R RRR7      tR t	V 3R lt
R	tV tR# )
Ú	LargeListi7  a'  Feature type for large list data composed of child feature data type.

It is backed by `pyarrow.LargeListType`, which is like `pyarrow.ListType` but with 64-bit rather than 32-bit offsets.

Args:
    feature ([`FeatureType`]):
        Child feature data type of each item within the large list.
NFr  r  c                óL   € \        V 4      P                   R V P                   R2# )r®  rH   )r  r  r§  r  s   &r2   r  ÚLargeList.__repr__H  s$   € Ü�t“*×%Ñ%Ð& a¨¯© ~°QÐ7Ð7r4   c                ój   <€ V ^8„  d   Qh/ S[ ;R&   S[S[,          ;R&   S[S[ ,          ;R&   S[;R&   # )r+   r§  r  r  r  )r   r   r0   r   )r1   r  s   "€r2   r3   ÚLargeList.__annotate__7  s@   ø‡ ‚ ñ �Lñ ñ 	‘�Ñ7ñ ñ ‘c�]Ñ!ñ ñ ÑCò r4   rº   )r  r!  r"  r#  r$  r   r  r  r  r  r%  r&  r'  r(  s   @r2   r³  r³  7  s7   ø‡ € ññ  d°Ô7€Bà!€GÙ˜{°¸UÔC€Eò8÷# ƒ r4   r³  c                óF   € V ^8„  d   QhR\         \        ,          R\        /# ©r+   Úschemar-   )r   ÚFeatureTyper7   )r1   s   "r2   r3   r3   c  s    € ÷ ñ ´X¼kÕ5Jð ÔVZñ r4   c                óV  € V f   R# \        V \        \        34      '       d‡   Ve'   \        V\        \        \        \        34      '       d]   \        V 4      ^ 8”  dK   Vf   M2\        V\        \        34      '       d   V^ ,          pMVP                  p\        V ^ ,          V4      # R# R# )zÐ
Check if the object is not None.
If the object is a list or a tuple, recursively check the first element of the sequence and stop if at any point the first element is not a sequence or is an empty sequence.
FT)rÈ   rå   r«   r³  r¡  r|   r§  ræ   )r¨   rº  s   &&r2   ræ   ræ   c  s‡   € ð
 ‚{ÙÜ	�Cœ$¤˜×	'Ò	'¨Vª^¼zÈ&ÔSWÔY^Ô`iÔkoÐRp×?qÒ?qÜˆs‹8�aŒ<ØŠ~ØÜ˜F¤T¬5 M×2Ò2Ø �‘àŸ™�Ü6°s¸1µv¸vÓFÐFáár4   c                óD   € V ^8„  d   QhR\         R\        P                  /# r¹  )r»  r.   r/   )r1   s   "r2   r3   r3   y  s   € ÷ ñ œKð ¬B¯K©Kñ r4   c           
     ó&  € \        V \        4      '       d6   \        P                  ! V  Uu/ uF  q\	        W,          4      bK  	  up4      # \        V \
        4      '       d6   \        P                  ! V  Uu/ uF  q\	        W,          4      bK  	  up4      # \        V \        \        34      '       dD   \        V 4      ^8w  d   \        R4      h\	        V ^ ,          4      p\        P                  ! V4      # \        V \        4      '       d,   \	        V P                  4      p\        P                  ! V4      # \        V \        4      '       d6   \	        V P                  4      p\        P                  ! W P                  4      # V ! 4       # u upi u upi )a  
get_nested_type() converts a datasets.FeatureType into a pyarrow.DataType, and acts as the inverse of
    generate_from_arrow_type().

It performs double-duty as the implementation of Features.type and handles the conversion of
    datasets.Feature->pa.struct
zQWhen defining list feature, you should just provide one example of the inner type)rÈ   ÚFeaturesr.   ÚstructÚget_nested_typerâ   rå   r«   r|   rd   rp  r³  r§  Ú
large_listr¡  r¤  )rº  rì   rt   s   &  r2   rÁ  rÁ  y  s/  € ô �&œ(×#Ò#Ü�yŠyÙ:@ÓA¹&°3”/ &¥+Ó.Ò.¹&ÑAó
ð 	
ô 
�FœD×	!Ò	!Ü�yŠyÙ:@ÓA¹&°3”/ &¥+Ó.Ò.¹&ÑAó
ð 	
ô 
�FœT¤5˜M×	*Ò	*Üˆv‹;˜!ÔÜÐpÓqÐqÜ$ V¨A¥YÓ/ˆ
Ü�xŠx˜
Ó#Ð#Ü	�FœI×	&Ò	&Ü$ V§^¡^Ó4ˆ
Ü�}Š}˜ZÓ(Ð(Ü	�FœD×	!Ò	!Ü$ V§^¡^Ó4ˆ
Ü�xŠx˜
§M¡MÓ2Ð2ñ ‹8€Oùò' Bùò Bs   «F	Á6Fc           
     óÐ  € \        V \        4      '       dW   V^ 8X  d   Vf   \        R4      hVe;   V  Uu/ uF-  q3\        W,          VP	                  V4      V^,           R7      bK/  	  up# R# \        V \
        \        34      '       d˜   Vf   R# \        V4      ^ 8”  dw   V P                  pV F  p\        WT4      '       g   K   M	   \        \        VXV^,           R7      V8g  4      pV'       d%   V Uu. uF  p\        WGV^,           R7      NK  	  up# \        V4      # \        V R4      '       d   Ve   V P                  V4      # R# V# u upi   \         d    Rp Lvi ; iu upi )a˜  Encode a nested example.
This is used since some features (in particular ClassLabel) have some logic during encoding.

To avoid iterating over possibly long lists, it first checks (recursively) if the first element that is not None or empty (if it is a sequence) has to be encoded.
If the first element needs to be encoded, then all the elements of the list will be encoded, otherwise they'll stay the same.
Nz*Got None but expected a dictionary instead©ÚlevelFrç   )rÈ   râ   rd   Úencode_nested_exampler`  r³  r¡  r|   r§  ræ   r7   rå   rã   rç   )rº  r¨   rÅ  rð   Ú
sub_schemarô   ÚchangedÚos   &&&     r2   rÆ  rÆ  š  sc  € ô �&œ$×ÒØ�AŒ:˜#š+ÜÐIÓJÐJð Šñ X^Ó^ÑW]ÐRSÔ% f¥i°·±¸³À5È1Å9ÔMÒMÑW]Ñ^ð	
ð ð	
ô
 
�FœY¬Ð-×	.Ò	.ØŠ;Ùä�3‹x˜!Œ|Ø#Ÿ^™^�
Û"%�JÜ:¸:×RÔRÙñ #&ð$Ü"Ô#8¸ÀZÐW\Ð_`ÕW`Ô#aÐeoÑ#oÓp�G÷ Ù[^Ó_Ñ[^ÐVWÔ1°*ÀuÈqÅy×QÑ[^Ñ_Ð_Ü˜“9Ðô 
�Ð)×	*Ò	*Ø-0ª_ˆv×$Ñ$ SÓ)ÐFÀ$ÐFà€Jùò3 _øô "ô $Ø#’Gð$üò `s   µ3EÃ!E Ã5E#ÅE ÅE c                ó€   € V ^8„  d   QhR\         \        \        \        \        \        R3,          3,          ,          /# rŽ  r�  )r1   s   "r2   r3   r3   Â  s1   € ÷ ,ñ ,¼(Ä4ÌÌUÔSVÔX\Ð^bÐSbÕMcÐHcÕCdÕ:eñ ,r4   c           
     óà  € \        V \        4      '       d5   Ve/   \        W4       UUUu/ uF  w  pw  rEV\        WE4      bK  	  uppp# R# \        V \        \
        34      '       ds   V ^ ,          pVf   R# \        V4      ^ 8”  dI   V F  p\        Wd4      '       g   K   M	  \        VX4      V8w  d   V Uu. uF  p\        WG4      NK  	  up# \	        V4      # \        V \        \        34      '       d§   Vf   R# V P                  p\        V\        4      '       d   V Uu. uF  p\        WG4      NK  	  up# \        V4      ^ 8”  dI   V F  p\        Wd4      '       g   K   M	  \        VX4      V8w  d   V Uu. uF  p\        WG4      NK  	  up# \	        V4      # \        V R4      '       d,   \        V RR4      '       d   Ve   V P                  WR7      # R# V# u upppi u upi u upi u upi )a�  Decode a nested example.
This is used since some features (in particular Audio and Image) have some logic during decoding.

To avoid iterating over possibly long lists, it first checks (recursively) if the first element that is not None or empty (if it is a sequence) has to be decoded.
If the first element needs to be decoded, then all the elements of the list will be decoded, otherwise they'll stay the same.
Nr•  r“  T©r�  )rÈ   râ   r   Údecode_nested_examplerå   r«   r|   ræ   r³  r¡  r§  rã   Úgetattrr•  )rº  r¨   r�  rð   rÇ  Úsub_objrô   rÉ  s   &&&     r2   rÍ  rÍ  Â  sÒ  € ô �&œ$×Òð Šô \dÐdjÔ[pÕqÑ[pÑ?W¸qÑBWÀ:ˆQÔ% jÓ:Ò:Ñ[pÓqð	
ð ð	
ô
 
�FœT¤5˜M×	*Ò	*Ø˜A•Yˆ
ØŠ;Ùä�3‹x˜!Œ|Û"%�JÜ:¸:×RÔRÙñ #&ô )¨°ZÓ@ÀJÔNÙJMÓNÉ#ÀQÔ1°*Ö@É#ÑNÐNÜ˜“9ÐÜ	�FœY¬Ð-×	.Ò	.ØŠ;ÙàŸ™ˆJÜ˜*¤d×+Ò+ÙFIÓJÁcÀÔ-¨jÖ<ÁcÑJÐJÜ�3‹x˜!Œ|Û"%�JÜ:¸:×RÔRÙñ #&ô )¨°ZÓ@ÀJÔNÙJMÓNÉ#ÀQÔ1°*Ö@É#ÑNÐNÜ˜“9Ðä	�Ð)×	*Ò	*¬w°v¸xÈ×/NÒ/NàRUÒRaˆv×$Ñ$ SÐ$ÓNÐkÐgkÐkØ€JùôE rùò Oùò Kùò Os   ªGÂ7G!Ä!G&Å9G+c                ó0   € V ^8„  d   QhR\         R\        /# )r+   Úfeature_clsÚfeature_type)r  r0   )r1   s   "r2   r3   r3     s   € ÷ /ñ /Üð/äñ/r4   c           	     óª   € V\         9   d?   \        P                  RV R\         V,          P                   RV P                   R24       V \         V&   R# )zb
Register a Feature object using a name and class.
This function must be used on a Feature class.
zOverwriting feature type 'z' (z -> rH   N)Ú_FEATURE_TYPESÚloggerÚwarningr  )rÑ  rÒ  s   &&r2   Úregister_featurer×    sR   € ð ”~Ô%Ü�‰Ø(¨¨°c¼.ÈÕ:V×:_Ñ:_Ð9`Ð`dÐep×eyÑeyÐdzÐz{Ð|ô	
ð $/„N�<Ó r4   c                ó$   € V ^8„  d   QhR\         /# )r+   r¨   rû   )r1   s   "r2   r3   r3     s   € ÷ #Lñ #LœCñ #Lr4   c           
     ó  € \        V \        4      '       d   V  Uu. uF  p\        V4      NK  	  up# RV 9  g   \        V R,          \        4      '       d/   V P	                  4        UUu/ uF  w  r!V\        V4      bK  	  upp# \        V 4      p V P                  R4      p\        P                  VR4      ;'       g    \        4       P                  VR4      pVf-   \        RV R\        \        P                  4       4       24      hV\        8X  d'   V P                  R4      p\        \        V4      3/ V B # V\        8X  d'   V P                  R4      p\        \        V4      3/ V B # V\        8X  d(   V P                  R4      p\        RR\        V4      /V B # \        V4       Uu0 uF  qfP                  kK  	  ppT! R/ V P	                  4        UU	u/ uF  w  r‰W‡9   g   K  W‰bK  	  up	pB # u upi u uppi u upi u up	pi )aÂ  Regenerate the nested feature object from a deserialized dict.
We use the '_type' fields to get the dataclass name to load.

generate_from_dict is the recursive helper for Features.from_dict, and allows for a convenient constructor syntax
to define features from deserialized JSON dictionaries. This function is used in particular when deserializing
a :class:`DatasetInfo` that was dumped to a JSON object. This acts as an analogue to
:meth:`Features.from_arrow_schema` and handles the recursive field-by-field instantiation, but doesn't require any
mapping to/from pyarrow, except for the fact that it takes advantage of the mapping of pyarrow primitive dtypes
that :class:`Value` automatically performs.
r  NzFeature type 'z&' not found. Available feature types: r§  rº   )rÈ   rå   Úgenerate_from_dictrâ   rÝ   ÚpoprÔ  r`  r0  rd   Úkeysr³  r¡  r   r   ré  )
r¨   rí   rì   r  Ú
class_typer§  r‚  Úfield_namesrð   rñ   s
   &         r2   rÚ  rÚ    s¿  € ô �#”t×ÒÙ7:Ó;±s¨eÔ" 5Ö)±sÑ;Ð;à�cÔœZ¨¨G­´d×;Ò;ØADÇÁÄÔMÁ±:°3�Ô'¨Ó.Ò.ÁÒMÐMÜ
ˆs‹)€CØ�G‰G�GÓ€EÜ×#Ñ# E¨4Ó0×NÐN´G³I·M±MÀ%ÈÓ4N€JàÒÜ˜>¨%¨Ð0VÔW[Ô\j×\oÑ\oÓ\qÓWrÐVsÐtÓuÐuà”YÔØ—'‘'˜)Ó$ˆÜÔ+¨GÓ4Ñ<¸Ñ<Ð<Ø”TÔØ—'‘'˜)Ó$ˆÜÔ& wÓ/Ñ7°3Ñ7Ð7Ø”XÔØ—'‘'˜)Ó$ˆÜÑCÔ 2°7Ó ;ÐC¸sÑCÐCä#)¨*Ô#5Ó6Ñ#5˜a—6”6Ñ#5€KÐ6ÙÑK¨#¯)©)¬+ÔJ©+¡$ !¸Ñ9Iœ˜š©+ÒJÑKÐKùò- <ùó Nùò$ 7ùÛJs   ›G1Á)G6Æ)G<Ç
HÇ%Hc                óD   € V ^8„  d   QhR\         P                  R\        /# r‡  )r.   r/   r»  )r1   s   "r2   r3   r3   <  s"   € ÷ Iñ I¤b§k¡kð I´kñ Ir4   c                óÌ  € \        V \        P                  4      '       d0   V  Uu/ uF"  qP                  \	        VP
                  4      bK$  	  up# \        V \        P                  4      '       d+   \        \	        V P                  4      V P                  R7      # \        V \        P                  4      '       d   \        \	        V P                  4      4      # \        V \        P                  4      '       d   \        \	        V P                  4      4      # \        V \        4      '       dH   RR\        \        \         \"        .V P$                  ,          pV! V P&                  V P                  R7      # \        V \        P(                  4      '       d   \+        4       # \        V \        P,                  4      '       d   \/        \1        V 4      R7      # \3        RV  R24      hu upi )a±  
generate_from_arrow_type accepts an arrow DataType and returns a datasets FeatureType to be used as the type for
    a single field.

This is the high-level arrow->datasets type conversion and is inverted by get_nested_type().

This operates at the individual *field* level, whereas Features.from_arrow_schema() operates at the
    full schema level and holds the methods that represent the bijection from Features<->pyarrow.Schema
©r¤  N)r,  r~   r¡  zCannot convert z to a Feature type.)rÈ   r.   Ú
StructTyperé  Úgenerate_from_arrow_typer  ÚFixedSizeListTyper¡  rt   Ú	list_sizeÚListTypeÚLargeListTyper³  rK  r6  r?  rC  rG  rO  r,  ÚJsonTyper‡  r/   r   rs   rd   )r  r   Úarray_features   &  r2   rã  rã  <  sT  € ô �'œ2Ÿ=™=×)Ò)ÙNUÓVÉgÀU—
‘
Ô4°U·Z±ZÓ@Ò@ÉgÑVÐVÜ	�GœR×1Ñ1×	2Ò	2ÜÔ,¨W×-?Ñ-?Ó@È×IZÑIZÔ[Ð[Ü	�GœRŸ[™[×	)Ò	)ÜÔ,¨W×-?Ñ-?Ó@ÓAÐAÜ	�GœR×-Ñ-×	.Ò	.ÜÔ1°'×2DÑ2DÓEÓFÐFÜ	�GÔ2×	3Ò	3Ø˜t¤W¬g´wÄÐHÈÏÉÕWˆÙ 7§=¡=¸×8JÑ8JÔKÐKÜ	�GœRŸ[™[×	)Ò	)Ü‹vˆÜ	�GœRŸ[™[×	)Ò	)ÜÔ3°GÓ<Ô=Ð=ä˜?¨7¨)Ð3FÐGÓHÐHùò Ws   ¥(G!c                óx   € V ^8„  d   QhR\         P                  R\        P                  R\        P                  /# )r+   rÃ  r  r-   )rÉ   rÊ   r.   r/   Ú	ListArray)r1   s   "r2   r3   r3   Y  s-   € ÷ 	ñ 	¤B§J¡Jð 	´b·k±kð 	ÌRÏ\É\ñ 	r4   c                ó^  € \         P                  ! V 4      p \        P                  ! V P                  4       VR7      p\	        V P
                  ^,
          4       FÐ  p\        \        V P                  RV P
                  V,
          ^,
           ^4      pV P                  V P
                  V,
          ^,
          ,          p\        P                  ! \         P                  ! V^,           4      V,          \        P                  ! 4       R7      p\        P                  P                  Wb4      pKÒ  	  V# )z=Build a PyArrow ListArray from a multidimensional NumPy arrayrÝ  N)rÉ   rª  r.   r¥  rP  rË   r	   r   r,  r£  r:   rë  Úfrom_arrays)rÃ  r  rV  r™  Ú	n_offsetsÚstep_offsetsr«  s   &&     r2   Únumpy_to_pyarrow_listarrayrð  Y  sÁ   € ä
�(Š(�3‹-€CÜ�XŠX�c—k‘k“m¨$Ô/€FÜ�3—8‘8˜a•<Ö ˆÜœ3 §	¡	Ð*<¨C¯H©H°q­L¸1Õ,<Ð =¸qÓAˆ	Ø—y‘y §¡¨A¥°Õ!1Õ2ˆÜ—(’(œ2Ÿ9š9 Y°¥]Ó3°lÕBÌÏÊËÔTˆÜ—‘×)Ñ)¨'Ó:Šñ	 !ð
 €Mr4   c                ó„   € V ^8„  d   QhR\         \        \        P                  ,          ,          R\        P                  /# )r+   Úl_arrr-   )rå   r   r.   rÎ  rë  )r1   s   "r2   r3   r3   e  s,   € ÷ 
5ñ 
5´$´xÄÇÁÕ7IÕ2Jð 
5ÌrÏ|É|ñ 
5r4   c           	      ó¬  € \         P                  ! V  Uu. uF  qR J NK  	  up4      p\         P                  ! \        V4      4      V,          \         P                  ! \         P                  ! V4      4      ,
          pV  Uu. uF
  qf   K  VNK  	  p p\         P
                  ! ^ .V  Uu. uF  p\        V4      NK  	  up,           \        R7      p\         P                  ! WCR 4      p\        P                  ! V\        P                  ! 4       R7      p\        P                  ! V 4      p\        P                  P                  WE4      # u upi u upi u upi )Nr¡  rÝ  )rÉ   rª  r£  r|   r¤  Úcumsumr²  r§  r.   r:   rÒ  rë  rí  )rò  rÃ  r³  rµ  r«  rV  s   &     r2   Ú&list_of_pa_arrays_to_pyarrow_listarrayrõ  e  sê   € Ü—’±Ó7±¨# ›+±Ñ7Ó8€IÜ—9’9œS ›^Ó,¨YÕ7¼"¿)º)ÄBÇFÂFÈ9ÓDUÓ:VÕV€LÙ!Ó5™E�S�SˆS™E€EÐ5Ü�iŠiØ	
ˆ¡5Ó)¡5˜CŒs�3Žx¡5Ñ)Õ)´ô€Gô �iŠi˜¨tÓ4€GÜ�hŠh�w¤R§X¢X£ZÔ0€GÜ×Ò˜eÓ$€FÜ�<‰<×#Ñ# GÓ4Ð4ùò 8ùâ5ùâ)s   •EÂEÂEÂ)E
c                óŽ   € V ^8„  d   QhR\         \        P                  ,          R\        P                  R\        P
                  /# )r+   rò  r  r-   )rå   rÉ   rÊ   r.   r/   rë  )r1   s   "r2   r3   r3   r  s5   € ÷ 'ñ '´´b·j±jÕ1Að 'ÌÏÉð 'Ô`b×`lÑ`lñ 'r4   c           
     ó°   € \        V 4      ^ 8”  d+   \        V  Uu. uF  q"e   \        W!R7      MRNK  	  up4      # \        P                  ! . VR7      # u upi )zEBuild a PyArrow ListArray from a possibly nested list of NumPy arraysNrÝ  )r|   rõ  rð  r.   rª  )rò  r  rÃ  s   && r2   Ú%list_of_np_array_to_pyarrow_listarrayrø  r  sV   € ä
ˆ5ƒz�A„~Ü5Ù`eÓfÑ`eÐY\º?Ô'¨Õ7ÐPTÒTÑ`eÑfó
ð 	
ô �xŠx˜ Ô&Ð&ùò gs   šAc                ó$   € V ^8„  d   QhR\         /# )r+   rò  rû   )r1   s   "r2   r3   r3   |  s   € ÷ ñ ¤ñ r4   c                ó¬   € \        V \        P                  4      '       d   R# \        V \        4      '       d   \	        \        V 4      ^,          4      # R# )zžReturn `True` if data is a NumPy ndarray or (recursively) if first non-null value in list is a NumPy ndarray.

Args:
    data (Any): Data.

Returns:
    bool
TF)rÈ   rÉ   rÊ   rå   Úcontains_any_np_arrayr   )rò  s   &r2   rû  rû  |  s>   € ô �$œŸ
™
×#Ò#ÙÜ	�Dœ$×	Ò	Ü$Ô%9¸$Ó%?ÀÕ%BÓCÐCár4   c                óš   € V ^8„  d   QhR\         \        P                  \        3,          R\        P
                  R\        P                  /# )r+   rò  r  r-   )r   rÉ   rÊ   rå   r.   r/   rë  )r1   s   "r2   r3   r3   �  s?   € ÷ wñ w¬E´"·*±*¼dÐ2BÕ,Cð wÌ2Ï;É;ð wÔbd×bnÑbnñ wr4   c           
     óÞ   € \        V \        P                  4      '       d   \        WR7      # \        V \        4      '       d&   \        V  Uu. uF  p\        W!R7      NK  	  up4      # R# u upi )a  Convert to PyArrow ListArray either a NumPy ndarray or (recursively) a list that may contain any NumPy ndarray.

Args:
    data (Union[np.ndarray, List]): Data.
    type (pa.DataType): Explicit PyArrow DataType passed to coerce the ListArray data type.

Returns:
    pa.ListArray
rÝ  N)rÈ   rÉ   rÊ   rð  rå   rõ  Ú!any_np_array_to_pyarrow_listarray)rò  r  r™  s   && r2   rþ  rþ  �  sZ   € ô �$œŸ
™
×#Ò#Ü)¨$Ô:Ð:Ü	�Dœ$×	Ò	Ü5ÑptÓ6uÑptÐklÔ7XÐYZ×7fÑptÑ6uÓvÐvñ 
 ùÚ6us   ÁA*c                óP   € V ^8„  d   QhR\         R\        R\        P                  /# )r+   rò  r  r-   )r   rK  r.   rÎ  )r1   s   "r2   r3   r3   �  s&   € ÷ 5ñ 5œsð 5Ô-Bð 5ÄrÇxÁxñ 5r4   c                ó�   € \        V 4      '       d   \        WP                  R7      # \        P                  ! WP
                  4      # )zÀConvert to PyArrow ListArray.

Args:
    data (Any): List, iterable, np.ndarray or pd.Series.
    pa_type (_ArrayXDExtensionType): Any of the ArrayNDExtensionType.

Returns:
    pyarrow.Array
rÝ  )rû  rþ  rt   r.   rª  rR  )rò  r  s   &&r2   Úto_pyarrow_listarrayr  �  s5   € ô ˜T×"Ò"Ü0°×<NÑ<NÔOÐOä�xŠx˜×3Ñ3Ó4Ð4r4   c                óv   € V ^8„  d   QhR\         R\        \         .\        \         ,          3,          R\         /# )r+   r§  Úfuncr-   )r»  r   r   )r1   s   "r2   r3   r3   ­  s3   € ÷ +ñ +”Kð +¤x´°¼xÌÕ?TÐ0TÕ'Uð +ÔZeñ +r4   c                ó€  € \        V \        4      '       d?   T! \        V P                  4        UUu/ uF  w  r#V\        W14      bK  	  upp4      4      pM×\        V \        4      '       d6   T! V P                  4        UUu/ uF  w  r#V\        W14      bK  	  upp4      pMŒ\        V \
        4      '       d'   V! \        \        V P                  V4      4      4      pMP\        V \        4      '       d3   V! \        \        V P                  V4      V P                  R7      4      pMV! V 4      pVf   V # T# u uppi u uppi )z�Visit a (possibly nested) feature.

Args:
    feature (FeatureType): the feature type to be checked
Returns:
    visited feature (FeatureType)
rá  )	rÈ   r¿  rÝ   Ú_visitrâ   r³  r§  r¡  r¤  )r§  r  rð   r‚  rú  s   &&   r2   r  r  ­  sì   € ô �'œ8×$Ò$Ù”8¸G¿M¹M¼OÔL¹O±D°A˜Q¤ q£Ò/¹OÒLÓMÓN‰Ü	�GœT×	"Ò	"Ù°7·=±=´?ÔC±?©4¨1�A”v˜a“Ò&±?ÒCÓD‰Ü	�GœY×	'Ò	'Ù”9œV G§O¡O°TÓ:Ó;Ó<‰Ü	�GœT×	"Ò	"Ù”4œ˜wŸ™°Ó5¸g¿n¹nÔMÓN‰á�7‹mˆØ’kˆ7Ð* sÐ*ùó MùãCs   ±D4Â D:
c                óŒ   € V ^8„  d   QhR\         R\        \         \        .\        \         ,          3,          R\        R\         /# )r+   r§  r  Ú
visit_pathr-   )r»  r   Ú
_VisitPathr   )r1   s   "r2   r3   r3   Å  s@   € ÷ +ñ +Üð+Ü (¬+´zÐ)BÄHÌ[ÕDYÐ)YÕ Zð+Ührð+äñ+r4   c                óÈ  € \        V \        4      '       dH   T! \        V P                  4        UUu/ uF  w  r4V\        WAW#.,           4      bK  	  upp4      V4      pMò\        V \        4      '       d?   T! V P                  4        UUu/ uF  w  r4V\        WAW#.,           4      bK  	  uppV4      pMž\        V \
        4      '       d<   V! \        \        V P                  W^ .,           4      V P                  R7      V4      pMM\        V \        4      '       d0   V! \        \        V P                  W^ .,           4      4      V4      pMV! W4      pVf   V # T# u uppi u uppi )a  Visit a (possibly nested) feature with its path in the Feature object.

A path in a nested feature object is the list of keys that need to be
sequentially accessed to get to the sub-feature.

For example:
- ["foo"] corresponds to the column "foo"
- ["foo", 0] corresponds to the sub-feature of the lists in "foo"
- ["foo", "bar"] corresponds to the sub-feature of the dicts in "foo" with key "bar"

Args:
    feature (`FeatureType`): the feature type to be checked.

Returns:
    `FeatureType`: the visited feature.
rá  )	rÈ   r¿  rÝ   Ú_visit_with_pathrâ   r¡  r§  r¤  r³  )r§  r  r  rð   r‚  rú  s   &&&   r2   r
  r
  Å  s(  € ô& �'œ8×$Ò$Ù”8ÐX_×XeÑXeÔXgÔhÑXgÑPTÐPQ˜QÔ 0°¸*ÀsÕ:JÓ KÒKÑXgÒhÓiÐkuÓv‰Ü	�GœT×	"Ò	"ÙÈwÏ}É}ÌÔ_ÉÁtÀq�AÔ'¨°¸cÕ1AÓBÒBÉÒ_ÐakÓl‰Ü	�GœT×	"Ò	"Ù”4Ô(¨¯©¸$ÈaÈSÕ@PÓQÐZa×ZhÑZhÔiÐkuÓv‰Ü	�GœY×	'Ò	'Ù”9Ô-¨g¯o©o¸tÐSTÐRUÕEUÓVÓWÐYcÓd‰á�7Ó'ˆØ’kˆ7Ð* sÐ*ùó iùã_s   ±EÂ	E
c                ó<   € V ^8„  d   QhR\         R\        R\        /# )r+   r§  Úignore_decode_attributer-   ©r»  r7   )r1   s   "r2   r3   r3   å  s"   € ÷ 
ñ 
œkð 
ÄDð 
ÔUYñ 
r4   c                ó,  € \        V \        4      '       dQ   \        ;QJ d*    R V P                  4        4       F  '       g   K   R# 	  R# ! R V P                  4        4       4      # \        V \        \
        34      '       d   \        V ^ ,          4      # \        V \        4      '       d   \        V P                  4      # \        V \        4      '       d   \        V P                  4      # \        V R4      ;'       d    V'       g   \        V RR4      # R# )a6  Check if a (possibly nested) feature requires decoding.

Args:
    feature (FeatureType): the feature type to be checked
    ignore_decode_attribute (:obj:`bool`, default ``False``): Whether to ignore the current value
        of the `decode` attribute of the decodable feature types.
Returns:
    :obj:`bool`
c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5ir  )Úrequire_decoding©r  r‚  s   & r2   r	  Ú#require_decoding.<locals>.<genexpr>ð  s   é € ÐAÑ0@¨1Ô# A×&Ð&Ó0@ùó   ‚TFr•  r“  )rÈ   râ   r#  rV  rå   r«   r  r³  r§  r¡  rã   rÎ  )r§  r  s   &&r2   r  r  å  sÐ   € ô �'œ4× Ò ß‹sÑA°·±Ô0@ÓA�sŒsÐAŠsÐAˆsÑA°·±Ô0@ÓAÓAÐAÜ	�Gœd¤E˜]×	+Ò	+Ü ¨¥
Ó+Ð+Ü	�GœY×	'Ò	'Ü §¡Ó0Ð0Ü	�GœT×	"Ò	"Ü §¡Ó0Ð0ä�wÐ 0Ó1÷ 
ð 
ß4KŒG�G˜X tÓ,ð	
ØQUð	
r4   c                ó0   € V ^8„  d   QhR\         R\        /# ©r+   r§  r-   r  )r1   s   "r2   r3   r3   ý  s   € ÷ 0ñ 0¤+ð 0´$ñ 0r4   c                ó’  € \        V \        4      '       dQ   \        ;QJ d*    R V P                  4        4       F  '       g   K   R# 	  R# ! R V P                  4        4       4      # \        V \        4      '       d   \        V P                  4      # \        V \        4      '       d   \        V P                  4      # \        V R4      # )z™Check if a (possibly nested) feature requires storage casting.

Args:
    feature (FeatureType): the feature type to be checked
Returns:
    :obj:`bool`
c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5ir  ©Úrequire_storage_castr  s   & r2   r	  Ú'require_storage_cast.<locals>.<genexpr>  ó   é € ÐEÑ4D¨qÔ'¨×*Ð*Ó4Dùr  TFry  ©	rÈ   râ   r#  rV  r³  r  r§  r¡  rã   ©r§  s   &r2   r  r  ý  s�   € ô �'œ4× Ò ß‹sÑE°G·N±NÔ4DÓE�sŒsÐEŠsÐEˆsÑE°G·N±NÔ4DÓEÓEÐEÜ	�GœY×	'Ò	'Ü# G§O¡OÓ4Ð4Ü	�GœT×	"Ò	"Ü# G§O¡OÓ4Ð4ä�w Ó/Ð/r4   c                ó0   € V ^8„  d   QhR\         R\        /# r  r  )r1   s   "r2   r3   r3     s   € ÷ 1ñ 1¤;ð 1´4ñ 1r4   c                ó’  € \        V \        4      '       dQ   \        ;QJ d*    R V P                  4        4       F  '       g   K   R# 	  R# ! R V P                  4        4       4      # \        V \        4      '       d   \        V P                  4      # \        V \        4      '       d   \        V P                  4      # \        V R4      # )z¥Check if a (possibly nested) feature requires embedding data into storage.

Args:
    feature (FeatureType): the feature type to be checked
Returns:
    :obj:`bool`
c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5ir  r  r  s   & r2   r	  Ú(require_storage_embed.<locals>.<genexpr>  r  r  TFÚembed_storager  r  s   &r2   Úrequire_storage_embedr#    s�   € ô �'œ4× Ò ß‹sÑE°G·N±NÔ4DÓE�sŒsÐEŠsÐEˆsÑE°G·N±NÔ4DÓEÓEÐEÜ	�GœY×	'Ò	'Ü# G§O¡OÓ4Ð4Ü	�GœT×	"Ò	"Ü# G§O¡OÓ4Ð4ä�w Ó0Ð0r4   c                ó>   a € \        S 4      V 3R l4       pRVn        V# )zŸ
Wrapper to keep the secondary dictionary, which tracks whether keys are decodable, of the :class:`datasets.Features` object
in sync with the main dictionary.
c                  ó  <€ V '       d   V ^ ,          pV R,          p MVP                  R4      pS! V.V O5/ VB p\        VR4      '       g   Q hVP                  4        UUu/ uF  w  rEV\        V4      bK  	  uppVn        V# u uppi )r  rŸ  r	  Ú_column_requires_decoding)rÛ  rã   rÝ   r  r&  )r`  r¨  r	  rú  Úcolr§  r  s   *,    €r2   ÚwrapperÚ+keep_features_dicts_synced.<locals>.wrapper'  sˆ   ø€ çØ# A�wˆDØ˜•8‰Dà%Ÿz™z¨&Ó1ˆDÙ�4Ð)˜$Ò) &Ñ)ˆÜ�tÐ8×9Ò9Ð9Ð9Ø]a×]gÑ]gÔ]iÔ)jÑ]iÉ\ÈS¨#Ô/?ÀÓ/HÒ*HÑ]iÒ)jˆÔ&Øˆ
ùó *ks   Á!BÚ_keep_dicts_synced)r
   Ú_decorator_name_)r  r(  s   f r2   Úkeep_features_dicts_syncedr,  !  s*   ø€ ô ˆ4ƒ[ô	ó ð	ð  4€GÔØ€Nr4   c                   ó^  a a€ ] tR tRt oRtV 3R lt]! ]P                  4      t]! ]P                  4      t	]! ]P                  4      t
]! ]P                  4      t]! ]P                  4      t]! ]P                  4      t]! ]P                  4      tR t]R 4       t]R 4       t]V3R lR l4       t]V3R	 lR
 l4       tR tV3R lR lt]V3R lR l4       tR tV3R lR ltR tR!V3R lR lltR!V3R lR lltR!V3R lR lltV3R lR ltV3R lR lt R"V3R lR llt!R t"Vt#V ;t$# )#r¿  i7  a£	  A special dictionary that defines the internal structure of a dataset.

Instantiated with a dictionary of type `dict[str, FieldType]`, where keys are the desired column names,
and values are the type of that column.

`FieldType` can be one of the following:
    - [`Value`] feature specifies a single data type value, e.g. `int64` or `string`.
    - [`ClassLabel`] feature specifies a predefined set of classes which can have labels associated to them and
      will be stored as integers in the dataset.
    - Python `dict` specifies a composite feature containing a mapping of sub-fields to sub-features.
      It's possible to have nested fields of nested fields in an arbitrary manner.
    - [`List`] or [`LargeList`] specifies a composite feature containing a sequence of
      sub-features, all of the same feature type.
    - [`Array2D`], [`Array3D`], [`Array4D`] or [`Array5D`] feature for multidimensional arrays.
    - [`Audio`] feature to store the absolute path to an audio file or a dictionary with the relative path
      to an audio file ("path" key) and its bytes content ("bytes" key).
      This feature loads the audio lazily with a decoder.
    - [`Image`] feature to store the absolute path to an image file, an `np.ndarray` object, a `PIL.Image.Image` object
      or a dictionary with the relative path to an image file ("path" key) and its bytes content ("bytes" key).
      This feature extracts the image data.
    - [`Video`] feature to store the absolute path to a video file, a `torchcodec.decoders.VideoDecoder` object
      or a dictionary with the relative path to a video file ("path" key) and its bytes content ("bytes" key).
      This feature loads the video lazily with a decoder.
    - [`Pdf`] feature to store the absolute path to a PDF file, a `pdfplumber.pdf.PDF` object
      or a dictionary with the relative path to a PDF file ("path" key) and its bytes content ("bytes" key).
      This feature loads the PDF lazily with a PDF reader.
    - [`Nifti`] feature to store the absolute path to a NIfTI neuroimaging file, a `nibabel.Nifti1Image` object
      or a dictionary with the relative path to a NIfTI file ("path" key) and its bytes content ("bytes" key).
      This feature loads the NIfTI file lazily with nibabel.
    - [`Translation`] or [`TranslationVariableLanguages`] feature specific to Machine Translation.
    - [`Json`] feature to store unstructred data, e.g. containing mixed/abritrary types. Under the hood
c                 ó*  <a€ V '       g   \        R 4      hV vr \        \        V`  ! V / VB  VP	                  4        UUu/ uF  w  r4V\        V4      bK  	  uppVn        V3R loVP	                  4        F  w  rT\        VS4      W%&   K  	  R# u uppi )z<descriptor '__init__' of 'Features' object needs an argumentc                 ól   <€ \        V \        4      '       d   \        \        V ^ ,          S4      4      # V # ©r  )rÈ   rå   r¡  r  )r§  Ú_check_old_lists   &€r2   r1  Ú*Features.__init__.<locals>._check_old_liste  s+   ø€ Ü˜'¤4×(Ò(ÜœF 7¨1¥:¨Ó?Ó@Ð@ØˆNr4   N)rN  r¥  r¿  rS  rÝ   r  r&  r  )r`  r¨  r	  r'  r§  Úcolumn_namer1  r1  s   *,    @€r2   rS  ÚFeatures.__init__Y  sŽ   ù€ çÜÐZÓ[Ð[ØˆˆÜŒh˜Ò&¨Ð7°Ò7ð @D¿z¹z¼|ô;
Ù?K©|¨sˆCÔ! 'Ó*Ò*¹|ò;
ˆÔ&õ
	ð
 %)§J¡J¦LÑ ˆKÜ & w°Ó @ˆDÓó %1ùó;
s   Á Bc                ó&   € \         \        V 4      33# r  )r¿  râ   r  s   &r2   rd  ÚFeatures.__reduce__u  s   € Üœ$˜t›*˜Ð&Ð&r4   c                ó   € \        V 4      # )z=
Features field types.

Returns:
    :obj:`pyarrow.DataType`
)rÁ  r  s   &r2   r  ÚFeatures.typex  s   € ô ˜tÓ$Ð$r4   c                ó´   € RRV P                  4       //p\        P                  ! V P                  4      P	                  R\
        P                  ! V4      /4      # )z6
Features schema.

Returns:
    :obj:`pyarrow.Schema`
ÚinfoÚfeaturesÚhuggingface)rÜ   r.   rº  r  Úwith_metadatarx   rW  )r	  Úhf_metadatas   & r2   Úarrow_schemaÚFeatures.arrow_schema‚  sE   € ð  
¨D¯L©L«NÐ;Ð<ˆÜ�yŠy˜Ÿ™Ó#×1Ñ1°=Ä$Ç*Â*È[ÓBYÐ2ZÓ[Ð[r4   c                ó8   <€ V ^8„  d   QhRS[ P                  RR/# )r+   Ú	pa_schemar-   r¿  )r.   ÚSchema)r1   r  s   "€r2   r3   ÚFeatures.__annotate__Ž  s   ø€ ÷ ñ ©"¯)©)ð ¸
ñ r4   c                óh  € \        4       pVP                  e‘   RVP                  9   d€   \        P                  ! VP                  R,          P	                  4       4      pRV9   dD   RVR,          9   d6   VR,          R,          e$   \         P                  VR,          R,          4      pVP                  pV Uu/ uFf  pVP                  VP                  V9   d3   VP                  VP                  4      V8X  d   W%P                  ,          M\        VP                  4      bKh  	  ppV ! R/ VB # u upi )a¡  
Construct [`Features`] from Arrow Schema.
It also checks the schema metadata for Hugging Face Datasets features.
Non-nullable fields are not supported and set to nullable.

Also, pa.dictionary is not supported and it uses its underlying type instead.
Therefore datasets convert DictionaryArray objects to their actual values.

Args:
    pa_schema (`pyarrow.Schema`):
        Arrow Schema.

Returns:
    [`Features`]
s   huggingfacer:  r;  rº   )r¿  Úmetadatarx   r\  r“  Ú	from_dictr?  ré  r   rã  r  )r]  rB  Úmetadata_featuresrF  Úmetadata_features_schemar   r¨   s   &&     r2   Úfrom_arrow_schemaÚFeatures.from_arrow_schema�  s  € ô$ %›JÐØ×ÑÒ)¨nÀ	×@RÑ@RÔ.RÜ—z’z )×"4Ñ"4°^Õ"D×"KÑ"KÓ"MÓNˆHØ˜Ô! j°H¸VÕ4DÔ&DÈÐRXÕIYÐZdÕIeÒIqÜ$,×$6Ñ$6°xÀÕ7GÈ
Õ7SÓ$TÐ!Ø#4×#AÑ#AÐ ñ #ó
ñ #�ð �J‰Jà—:‘:Ð!2Ô2Ð7O×7UÑ7UÐV[×V`ÑV`Ó7aÐejÔ7jð "§*¡*Ö-ä-¨e¯j©jÓ9ò:ñ
 #ð 	ð 
ñ ‰z�S‰zÐùò
s   Â9A,D/c                ó   <€ V ^8„  d   QhRR/# ©r+   r-   r¿  rº   )r1   r  s   "€r2   r3   rD  °  s   ø€ ÷ ñ ˜zñ r4   c                ó(   € \        V4      pV ! R/ VB # )a€  
Construct [`Features`] from dict.

Regenerate the nested feature object from a deserialized dict.
We use the `_type` key to infer the dataclass name of the feature `FieldType`.

It allows for a convenient constructor syntax
to define features from deserialized JSON dictionaries. This function is used in particular when deserializing
a [`DatasetInfo`] that was dumped to a JSON object. This acts as an analogue to
[`Features.from_arrow_schema`] and handles the recursive field-by-field instantiation, but doesn't require
any mapping to/from pyarrow, except for the fact that it takes advantage of the mapping of pyarrow primitive
dtypes that [`Value`] automatically performs.

Args:
    dic (`dict[str, Any]`):
        Python dictionary.

Returns:
    `Features`

Example::
    >>> Features.from_dict({'_type': {'dtype': 'string', 'id': None, '_type': 'Value'}})
    {'_type': Value('string')}
rº   )rÚ  )r]  Údicr¨   s   && r2   rG  ÚFeatures.from_dict¯  s   € ô4 ! Ó%ˆÙ‰z�S‰zÐr4   c                ó   € \        V 4      # r  )r   r  s   &r2   rÜ   ÚFeatures.to_dictÌ  s   € Ü�d‹|Ðr4   c                ó    <€ V ^8„  d   QhRS[ /# rÜ  ©rå   )r1   r  s   "€r2   r3   rD  Ï  s   ø€ ÷ HAñ HA™tñ HAr4   c                ó„   aaa€ V P                  4       pR  R loR VV3R lloR V3R lloS! S! V4      R,          4      # )c                ó0   € V ^8„  d   QhR\         R\         /# r  ©râ   )r1   s   "r2   r3   Ú,Features._to_yaml_list.<locals>.__annotate__Ó  s   € ÷  	ñ  	œdð  	¤tñ  	r4   c                 óä  € \        V \        4      '       g   \        R \        V 4       RV  24      hR F¡  p\        V P	                  V4      \        4      '       d)   \        W,          4      R.8X  d   W,          R,          W&   \        V P	                  V4      \        4      '       g   Kw  \        W,          4      R.8X  g   K�  W,          R,          W&   K£  	  \        V P	                  R4      \        4      '       dn   \        V R,          P	                  R4      \
        4      '       dB   \        V R,          R,          4       UUu/ uF  w  r#\        V4      VbK  	  uppV R,          R&   V # u uppi )úExpected a dict but got a ú: r~   rÀ  Úclass_labelrK  ©rÂ  rå   Úsequence)rÈ   râ   rN  r  r`  rå   r­  r0   )r§  Ú	list_typeÚlabel_idÚ
label_names   &   r2   ÚsimplifyÚ(Features._to_yaml_list.<locals>.simplifyÓ  s6  € Ü˜g¤t×,Ò,ÜÐ"<¼TÀ'»]¸OÈ2ÈgÈYÐ WÓXÐXã?�	ô
 ˜gŸk™k¨)Ó4´d×;Ò;ÄÀWÕEWÓ@XÐ]dÐ\eÔ@eØ)0Õ);¸GÕ)D�GÑ&ô ˜gŸk™k¨)Ó4´d×;Ô;ÄÀWÕEWÓ@XÐ]eÐ\fÖ@fØ)0Õ);¸HÕ)E�GÓ&ñ @ô. ˜'Ÿ+™+ mÓ4´d×;Ò;Ä
È7ÐS`ÕKa×KeÑKeÐfmÓKnÔpt×@uÒ@uô KTÐT[Ð\iÕTjÐkrÕTsÔJtô3ÙJtÑ2F°(”C˜“M :Ò-ÑJtò3�˜Õ& wÑ/ð ˆNùó3s   ÅE,c                óR   € V ^8„  d   QhR\         \        \        3,          R\        /# rú   ©r   râ   rå   )r1   s   "r2   r3   rX  õ  s'   € ÷ 	Yñ 	Yœu¤T¬4 ZÕ0ð 	Y´Tñ 	Yr4   c           	      óÖ  <€ \        V \        4      '       dÚ   V P                  R R4      pVR8X  d$   V P                  R4      pS! RS! V4      /V C4      # VR8X  d$   V P                  R4      pS! RS! V4      /V C4      # VR8X  d   V # V'       d   V '       g   R\        V4      /# V'       d   RS! \        V4      V /4      /# R	V P	                  4        UUu. uF  w  r2R
V/S! V4      CNK  	  upp/# \        V \
        4      '       d   S! RS! S! V ^ ,          4      4      /4      # \        V \        4      '       d   S! \        V 4      4      # \        R\        V 4       RV  24      hu uppi )r  Nr³  r§  rÂ  r¡  rå   r   r~   rÀ  ré  ú"Expected a dict or a list but got r[  )	rÈ   râ   rÛ  r   rÝ   rå   r«   rN  r  )r¨   r  Ú_featureré  rb  Úto_yaml_inners   &   €€r2   ri  Ú-Features._to_yaml_list.<locals>.to_yaml_innerõ  se  ø€ Ü˜#œt×$Ò$ØŸ™ ¨Ó.�Ø˜KÔ'Ø"Ÿw™w yÓ1�HÙ# \±=ÀÓ3JÐ$RÈcÐ$RÓSÐSØ˜f”_Ø"Ÿw™w yÓ1�HÙ# V©]¸8Ó-DÐ$LÈÐ$LÓMÐMØ˜gÔ%Ø�Jß§3Ø#Ô%;¸EÓ%BÐCÐCßØ#¡XÔ/EÀeÓ/LÈcÐ.RÓ%SÐTÐTà$Ðgj×gpÑgpÔgrÔ&sÑgrÑUcÐUY¨°Ð'P¹ÀhÓ8OÓ'PÑgrÒ&sÐtÐtÜ˜C¤×&Ò&Ù ©±-ÀÀAÅÓ2GÓ)HÐ IÓJÐJÜ˜C¤×'Ò'Ù$¤T¨#£YÓ/Ð/äÐ"DÄTÈ#ÃYÀKÈrÐRUÐQVÐ WÓXÐXùó 'ts   ÃE%c                ó0   € V ^8„  d   QhR\         R\         /# rú   rW  )r1   s   "r2   r3   rX    s   € ÷ 	ñ 	œtð 	¬ñ 	r4   c                 óJ  <€ \        V \        4      '       d,   V P                  4        UUu/ uF  w  rVS! V4      bK  	  upp# \        V \        4      '       d   V  Uu. uF  pS! V4      NK  	  up# \        V \        4      '       d   S! \        V 4      4      # V # u uppi u upi r  )rÈ   râ   rÝ   rå   r«   )r¨   rð   rñ   Úto_yaml_typess   &  €r2   rm  Ú-Features._to_yaml_list.<locals>.to_yaml_types  sˆ   ø€ Ü˜#œt×$Ò$Ø8;¿	¹	¼ÔD¹±°˜™=¨Ó+Ò+¹ÒDÐDÜ˜C¤×&Ò&Ù25Ó6±#¨Q™ aÖ(±#Ñ6Ð6Ü˜C¤×'Ò'Ù$¤T¨#£YÓ/Ð/à�
ùó Eùâ6s   «BÁB rÀ  )rÜ   )r	  Ú	yaml_datarb  ri  rm  s   & @@@r2   Ú_to_yaml_listÚFeatures._to_yaml_listÏ  sA   ú€ à—L‘L“Nˆ	õ 	÷D	Yñ 	Y÷0	ð 	ñ ™]¨9Ó5°hÕ?Ó@Ð@r4   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r+   ro  r-   r¿  rT  )r1   r  s   "€r2   r3   rD    s   ø€ ÷ J9ñ J9©ð J9°ñ J9r4   c                ó€   aa€ \         P                  ! V4      pR  R loR VV3R lloV P                  S! V4      4      # )c                ó0   € V ^8„  d   QhR\         R\         /# r  rW  )r1   s   "r2   r3   Ú.Features._from_yaml_list.<locals>.__annotate__  s   € ÷ 	ñ 	¤ð 	¬ñ 	r4   c           	      ó   € \        V \        4      '       g   \        R \        V 4       RV  24      hR F6  p\        V P	                  V4      \
        4      '       g   K*  RW,          /W&   K8  	  \        V P	                  R4      \        4      '       dó   \        V R,          P	                  R4      \        4      '       dÇ   \        V R,          R,          \        R7      pV'       dp   V Uu. uF  p\        V4      NK  	  up\        \        \        VR	,          4      ^,           4      4      8w  d'   \        R\        VR	,          4      ^,            R24      hV Uu. uF  q0R,          R,          V,          NK  	  upV R,          R&   V # u upi u upi )
rZ  r[  r~   r\  rK  )rì   z1ClassLabel expected a value for all label ids [0:z] but some ids are missing.r]  r{   )rÈ   râ   rN  r  r`  r0   Úsortedrš   rå   rP  rd   )r§  r_  Ú	label_idsr`  s   &   r2   Ú
unsimplifyÚ,Features._from_yaml_list.<locals>.unsimplify  s[  € Ü˜g¤t×,Ò,ÜÐ"<¼TÀ'»]¸OÈ2ÈgÈYÐ WÓXÐXã?�	ô
 ˜gŸk™k¨)Ó4´c×:Ô:Ø*1°7Õ3EÐ)F�GÓ&ñ @ô ˜'Ÿ+™+ mÓ4´d×;Ò;Ä
È7ÐS`ÕKa×KeÑKeÐfmÓKnÔpt×@uÒ@uÜ" 7¨=Õ#9¸'Õ#BÌÔL�	ßÁ	Ó!JÁ	°H¤# h¦-Á	Ñ!JÌdÔSXÔY\Ð]fÐgiÕ]jÓYkÐnoÕYoÓSpÓNqÔ!qÜ$ØKÌCÐPYÐZ\ÕP]ÓL^ÐabÕLbÐKcÐc~Ðóð ñ nwÓ2wÑmvÐai¸=Õ3IÈ'Õ3RÐS[×3\Ð3\ÑmvÑ2w�˜Õ& wÑ/ØˆNùò "Kùò 3xs   Ã)FÅFc                ót   € V ^8„  d   QhR\         \        \        3,          R\         \        \        3,          /# rú   re  )r1   s   "r2   r3   ru  :  s0   € ÷ (	Yñ (	Y¤¤t¬T zÕ!2ð (	Y´u¼TÄ4¸ZÕ7Hñ (	Yr4   c                 ó¤  <€ \        V \        4      '       Ed�   V '       g   / # \        \        V 4      4      pVR 8X  d(   S! S! V 4      P	                  V4      4      pRV/V CRR/C# VR8X  dŽ   \        W,          \
        4      '       dK   S! S! V 4      P	                  V4      4      pVP                  4        UUu/ uF  w  r4VRV/V CRR/CbK  	  upp# S! S! V 4      P	                  V4      4      pRV/V CRR/C# VR8X  d(   S! S! V 4      P	                  V4      4      pRV/V CRR/C# VR8X  d   S! V R,          4      # VR8X  dH   \        V R,          \        4      '       d    \        V R,          4       / V CRR	/C# S! V R,          4      # R\        V4      /S! V 4      V,          C# \        V \
        4      '       dF   V  Uu. uF  q"P	                  R
4      NK  	  pp\        WP4       UUu/ uF  w  r2VS! V4      bK  	  upp# \        R\        V 4       RV  24      hu uppi   \         d    R\        T R,          4      /u # i ; iu upi u uppi )rÂ  r§  r  r³  r^  r¡  rå   rÀ  r~   r   ré  rg  r[  )rÈ   râ   ÚnextÚiterrÛ  rå   rÝ   r0   r   rd   r   ÚziprN  r  )r¨   r  rh  ré  Ú_subfeaturerK  Úfrom_yaml_innerry  s   &     €€r2   r�  Ú1Features._from_yaml_list.<locals>.from_yaml_inner:  s`  ø€ Ü˜#œt×$Ó$ßØ�IÜœT #›Y›�Ø˜LÔ(Ù.©z¸#«×/BÑ/BÀ5Ó/IÓJ�HØ% xÐM°3ÐM¸ÀÑMÐMØ˜JÔ&Ü! #¥*¬d×3Ò3Ù#2±:¸c³?×3FÑ3FÀuÓ3MÓ#N˜ð 6>·^±^Ô5Eô á5EÑ 1 ð ! 9¨kÐ"R¸SÐ"RÀ'È6Ñ"RÒRÙ5Eò ð ñ
 $3±:¸c³?×3FÑ3FÀuÓ3MÓ#N˜Ø )¨8ÐL°sÐL¸GÀVÑLÐLØ˜F”?Ù.©z¸#«×/BÑ/BÀ5Ó/IÓJ�HØ% xÐH°3ÐH¸ÀÑHÐHØ˜HÔ$Ù*¨3¨x­=Ó9Ð9Ø˜gÔ%Ü! # g¥,´×4Ò4ðSÜ! # g¥,Ô/Ø#< cÐ#<¨7°GÑ#<Ð<ñ
  /¨s°7­|Ó<Ð<à#Ô%;¸EÓ%BÐ]ÁjÐQTÃoÐV[ÕF\Ð]Ð]Ü˜C¤×&Ò&Ù>AÓB¹c°(Ÿ™ fÖ-¹c�ÐBÜNQÐRWÌoÔ^Éo¹N¸D˜™o¨hÓ7Ò7ÉoÒ^Ð^äÐ"DÄTÈ#ÃYÀKÈrÐRUÐQVÐ WÓXÐXùó; øô$  *ô Sà$+Ô-CÀCÈÅLÓ-QÐ#RÒRðSüò CùÛ^s$   Â8HÅ"H" ÇIÇ*IÈ"IÉI)ró  ÚdeepcopyrG  )r]  ro  r�  ry  s   &&@@r2   Ú_from_yaml_listÚFeatures._from_yaml_list  s9   ù€ ä—M’M )Ó,ˆ	õ	÷6(	Yñ (	YðT �}‰}™_¨YÓ7Ó8Ð8r4   c                ó.   € \        V4      p\        W4      # )zŽ
Encode example into a format for Arrow.

Args:
    example (`dict[str, Any]`):
        Data in a Dataset row.

Returns:
    `dict[str, Any]`
©rý   rÆ  )r	  Úexamples   &&r2   rç   ÚFeatures.encode_examplef  s   € ô )¨Ó1ˆÜ$ TÓ3Ð3r4   c                ó    <€ V ^8„  d   QhRS[ /# )r+   r3  râ  )r1   r  s   "€r2   r3   rD  t  s   ø€ ÷ Zñ Z±ñ Zr4   c           	     ój   € \        V4      pV Uu. uF  p\        W,          V^R7      NK  	  up# u upi )z»
Encode column into a format for Arrow.

Args:
    column (`list[Any]`):
        Data in a Dataset column.
    column_name (`str`):
        Dataset column name.

Returns:
    `list[Any]`
rÄ  r‡  )r	  Úcolumnr3  r¨   s   &&& r2   Úencode_columnÚFeatures.encode_columnt  s5   € ô (¨Ó/ˆÙRXÓYÑRXÈ3Ô% dÕ&7¸ÀA×FÑRXÑYÐYùÒYs   �0c           
     ó   € / p\        V4      \        V 4      8w  d$   \        R\        V4       R\        V 4       24      hVP                  4        F6  w  r4\        V4      pV Uu. uF  p\	        W,          V^R7      NK  	  upW#&   K8  	  V# u upi )z˜
Encode batch into a format for Arrow.

Args:
    batch (`dict[str, list[Any]]`):
        Data in a Dataset batch.

Returns:
    `dict[str, list[Any]]`
zColumn mismatch between batch z and features rÄ  )Úsetrd   rÝ   rý   rÆ  )r	  ÚbatchÚencoded_batchrì   rŒ  r¨   s   &&    r2   Úencode_batchÚFeatures.encode_batch„  sŽ   € ð ˆÜˆu‹:œ˜T›Ô"ÜÐ=¼cÀ%»j¸\ÈÔX[Ð\`ÓXaÐWbÐcÓdÐdØ Ÿ;™;ž=‰KˆCÜ+¨FÓ3ˆFÙ\bÓ!cÑ\bÐUXÔ"7¸½	À3Èa×"PÑ\bÑ!cˆMÓñ )ð Ðùò "ds   Á#Bc          
      ód   <€ V ^8„  d   QhRS[ RS[S[ S[S[S[S[R3,          3,          ,          /# )r+   rˆ  r�  N©râ   r   r0   r   r7   )r1   r  s   "€r2   r3   rD  —  s:   ø€ ÷ 
ñ 
¡dð 
¹xÉÉSÑRWÑX[Ñ]aÐcgÐXgÕRhÐMhÕHiÕ?jñ 
r4   c                ó  € \        V P                  4        UUu/ uF  w  r4W19   g   K  W4bK  	  uppV4       UUUu/ uF1  w  pw  rdTV P                  V,          '       d   \        WdVR7      MTbK3  	  uppp# u uppi u upppi )a[  Decode example with custom feature decoding.

Args:
    example (`dict[str, Any]`):
        Dataset row data.
    token_per_repo_id (`dict`, *optional*):
        To access and decode audio or image files from private repositories on the Hub, you can pass
        a dictionary `repo_id (str) -> token (bool or str)`.

Returns:
    `dict[str, Any]`
rÌ  )r   rÝ   r&  rÍ  )r	  rˆ  r�  rì   rí   r3  r§  s   &&&    r2   r•  ÚFeatures.decode_example—  sŠ   € ô$ 2:Ø.2¯j©j¬lÔM©l¡
 ¸c¹n”�’©lÒMÈwô2õ	
ñ2Ñ-�Ñ-˜gð Ø×-Ñ-¨k×:Ô:ô /¨wÐQbÕcàòñ2ó	
ð 	
ùó
 Nùô
s   ™
A7
¨A7
»7A=c                ój   <€ V ^8„  d   QhRS[ RS[RS[S[S[S[S[S[R3,          3,          ,          /# )r+   rŒ  r3  r�  N)rå   r0   r   râ   r   r7   )r1   r  s   "€r2   r3   rD  ®  sD   ø€ ÷ 
ñ 
Ùð
Ù),ð
ÙAIÉ$ÉsÑTYÑZ]Ñ_cÐeiÐZiÕTjÐOjÕJkÕAlñ
r4   c           	     ó”   € V P                   V,          '       d*   V Uu. uF  pVe   \        W,          WCR7      MRNK  	  up# T# u upi )zºDecode column with custom feature decoding.

Args:
    column (`list[Any]`):
        Dataset column data.
    column_name (`str`):
        Dataset column name.

Returns:
    `list[Any]`
NrÌ  )r&  rÍ  )r	  rŒ  r3  r�  rí   s   &&&& r2   Údecode_columnÚFeatures.decode_column®  sd   € ð* ×-Ñ-¨k×:Ô:ñ $ó	ñ $�Eð Ò$ô & dÕ&7¸Õdàòñ $ñ	ð		
ð ð		
ùòs   ž"Ac          
      ód   <€ V ^8„  d   QhRS[ RS[S[ S[S[S[S[R3,          3,          ,          /# )r+   r‘  r�  Nr–  )r1   r  s   "€r2   r3   rD  Ç  s9   ø€ ÷ ñ ¡$ð ¹8ÁDÉÉeÑTWÑY]Ð_cÐTcÕNdÐIdÕDeÕ;fñ r4   c           
     óÒ   € / pVP                  4        FK  w  rEV P                  V,          '       d*   V Uu. uF  pVe   \        W,          WbR7      MRNK  	  upMTW4&   KM  	  V# u upi )ab  Decode batch with custom feature decoding.

Args:
    batch (`dict[str, list[Any]]`):
        Dataset batch data.
    token_per_repo_id (`dict`, *optional*):
        To access and decode audio or image files from private repositories on the Hub, you can pass
        a dictionary repo_id (str) -> token (bool or str)

Returns:
    `dict[str, list[Any]]`
NrÌ  )rÝ   r&  rÍ  )r	  r‘  r�  Údecoded_batchr3  rŒ  rí   s   &&&    r2   Údecode_batchÚFeatures.decode_batchÇ  s„   € ð ˆØ#(§;¡;¦=ÑˆKð ×1Ñ1°+×>Ô>ñ "(ó	ñ "(˜ð Ò(ô *¨$Õ*;¸UÕhàòñ "(ò	ð ð Ó&ñ $1ð Ðùòs   µ"A$c                ó   <€ V ^8„  d   QhRR/# rM  rº   )r1   r  s   "€r2   r3   rD  â  s   ø€ ÷ #ñ #�jñ #r4   c                ó.   € \         P                  ! V 4      # )aP  
Make a deep copy of [`Features`].

Returns:
    [`Features`]

Example:

```py
>>> from datasets import load_dataset
>>> ds = load_dataset("cornell-movie-review-data/rotten_tomatoes", split="train")
>>> copy_of_features = ds.features.copy()
>>> copy_of_features
{'label': ClassLabel(names=['neg', 'pos']),
 'text': Value('string')}
```
)ró  rƒ  r  s   &r2   ró  ÚFeatures.copyâ  s   € ô$ �}Š}˜TÓ"Ð"r4   c                ó"   <€ V ^8„  d   QhRRRR/# )r+   r@  r¿  r-   rº   )r1   r  s   "€r2   r3   rD  ö  s   ø€ ÷ 38ñ 38 zð 38°jñ 38r4   c                ó6   a€ RV3R llo\        S! W4      4      # )aÑ  
Reorder Features fields to match the field order of other [`Features`].

The order of the fields is important since it matters for the underlying arrow data.
Re-ordering the fields allows to make the underlying arrow data type match.

Args:
    other ([`Features`]):
        The other [`Features`] to align with.

Returns:
    [`Features`]

Example::

    >>> from datasets import Features, List, Value
    >>> # let's say we have two features with a different order of nested fields (for a and b for example)
    >>> f1 = Features({"root": {"a": Value("string"), "b": Value("string")}})
    >>> f2 = Features({"root": {"b": Value("string"), "a": Value("string")}})
    >>> assert f1.type != f2.type
    >>> # re-ordering keeps the base structure (here List is defined at the root level), but makes the fields order match
    >>> f1.reorder_fields_as(f2)
    {'root': List({'b': Value('string'), 'a': Value('string')})}
    >>> assert f1.reorder_fields_as(f2).type == f2.type
c                 ó  <€ V'       d   R VR,          ,           MRp\        V \        4      '       dß   \        V\        4      '       g   \        RV  RV 2V,           4      h\        V 4      \        V4      8w  dh   RV  RV RV P	                  4       VP	                  4       ,
           RVP	                  4       V P	                  4       ,
           R	2	V,           p\        V4      hV Uu/ uF#  qUS! W,          W,          VR
V 2,           4      bK%  	  up# \        V \
        4      '       di   \        V\
        4      '       g   \        RV  RV 2V,           4      h\        S! V P                  VP                  VR,           4      V P                  R7      # \        V \        4      '       d]   \        V\        4      '       g   \        RV  RV 2V,           4      h\        S! V P                  VP                  VR,           4      4      # V # u upi )z at rŸ  Ú zType mismatch: between rz   zKeys mismatch: between z (source) and z (target).
z are missing from target and z are missing from sourcerD   z.<list>rá  )	rÈ   râ   rd   rw  rÜ  r¡  r§  r¤  r³  )ÚsourceÚtargetÚstackÚstack_positionÚmessagerì   Úrecursive_reorders   &&&   €r2   r®  Ú5Features.reorder_fields_as.<locals>.recursive_reorder	  sÉ  ø€ ß38˜V e¨B¥iÖ/¸bˆNÜ˜&¤$×'Ò'Ü! &¬$×/Ò/Ü$Ð'>¸v¸hÀeÈFÈ8Ð%TÐWeÕ%eÓfÐfÜ˜&“>¤V¨F£^Ô3à1°&°¸ÈÀxÈ|Ø!Ÿ;™;›=¨6¯;©;«=Õ8Ð9ð :Ø%Ÿ{™{›}¨v¯{©{«}Õ<Ð=Ð=UðWàYgõhð ô
 % WÓ-Ð-ÙgmÓnÑgmÐ`cÑ.¨v­{¸F½KÈÐSTÐUXÐTYÐQZÕIZÓ[Ò[ÑgmÑnÐnÜ˜F¤D×)Ò)Ü! &¬$×/Ò/Ü$Ð'>¸v¸hÀeÈFÈ8Ð%TÐWeÕ%eÓfÐfÜÑ-¨f¯n©n¸f¿n¹nÈeÐV_ÕN_Ó`Ðio×ivÑivÔwÐwÜ˜F¤I×.Ò.Ü! &¬)×4Ò4Ü$Ð'>¸v¸hÀeÈFÈ8Ð%TÐWeÕ%eÓfÐfÜ Ñ!2°6·>±>À6Ç>Á>ÐSXÐ[dÕSdÓ!eÓfÐfà�ùò os   Ã$)H)r¨  )r¿  )r	  r@  r®  s   &&@r2   Úreorder_fields_asÚFeatures.reorder_fields_asö  s   ø€ ÷6	ô0 Ñ)¨$Ó6Ó7Ð7r4   c                ó   <€ V ^8„  d   QhRR/# rM  rº   )r1   r  s   "€r2   r3   rD  +	  s   ø€ ÷ )ñ ) zñ )r4   c                óN  € \        ^V4       EF  pRpV P                  4       pV P                  4        FÐ  w  rV\        V\        4      '       d@   RpTP                  VP                  4        UUu/ uF  w  rxV RV 2VbK  	  upp4       WE KZ  \        VR4      '       g   Kn  VP                  4       V8w  g   K…  RpTP                  VP                  4       P                  4        UUu/ uF  w  rxV RV 2VbK  	  upp4       WE KÒ  	  Tp V'       g   EK   V # 	  V # u uppi u uppi )a:  Flatten the features. Every dictionary column is removed and is replaced by
all the subfields it contains. The new fields are named by concatenating the
name of the original column and the subfield name like this: `<original>.<subfield>`.

If a column contains nested dictionaries, then all the lower-level subfields names are
also concatenated to form new columns: `<original>.<subfield>.<subsubfield>`, etc.

Returns:
    [`Features`]:
        The flattened features.

Example:

```py
>>> from datasets import load_dataset
>>> ds = load_dataset("rajpurkar/squad", split="train")
>>> ds.features.flatten()
{'answers.answer_start': List(Value('int32'), id=None),
 'answers.text': List(Value('string'), id=None),
 'context': Value('string'),
 'id': Value('string'),
 'question': Value('string'),
 'title': Value('string')}
```
TFrD   r¥  )rP  ró  rÝ   rÈ   râ   Úupdaterã   r¥  )	r	  Ú	max_depthÚdepthÚ	no_changeÚ	flattenedr3  r¢  rð   rñ   s	   &&       r2   r¥  ÚFeatures.flatten+	  s  € ô4 ˜1˜i×(ˆEØˆIØŸ	™	›ˆIØ+/¯:©:®<Ñ'�Ü˜j¬$×/Ò/Ø %�IØ×$Ñ$È*×JZÑJZÔJ\Ô%]ÑJ\Á$À!¨¨°Q°q°cÐ&:¸AÒ&=ÑJ\Ò%]Ô^Ø!Ò.Ü˜Z¨×3Ô3¸
×8JÑ8JÓ8LÐPZÖ8ZØ %�IØ×$Ñ$È*×J\ÑJ\ÓJ^×JdÑJdÔJfÔ%gÑJfÁ$À!¨¨°Q°q°cÐ&:¸AÒ&=ÑJfÒ%gÔhØ!Ò.ñ ,8ð ˆDßŠyØØˆñ )ð ˆùó &^ùó &hs   Á.DÃ&D!)r&  r  )é   )%r  r!  r"  r#  r$  rS  r,  râ   r)  Ú__delitem__r´  Ú
setdefaultrÛ  ÚpopitemÚclearrd  rï  r  r?  rx  rJ  rG  rÜ   rp  r„  rç   r�  r“  r•  r›  r   ró  r°  r¥  r&  r'  rª  r«  s   @@r2   r¿  r¿  7  sT  ù‡ € ñõBAñ( -¨T×-=Ñ-=Ó>€KÙ,¨T×-=Ñ-=Ó>€KÙ'¨¯©Ó4€FÙ+¨D¯O©OÓ<€JÙ
$ T§X¡XÓ
.€CÙ(¨¯©Ó6€GÙ& t§z¡zÓ2€Eò'ð ñ%ó ð%ð ñ\ó ð\ð ÷ó ððB ÷ó ðò8÷HAð HAðT ÷J9ó ðJ9òX4÷Zð Zò ÷&
ò 
÷.
ò 
÷2ò ÷6#ð #÷(38ð 38÷j)÷ )ò )r4   r¿  c                ó$   € V ^8„  d   QhR\         /# rÜ  rþ  )r1   s   "r2   r3   r3   W	  s   € ÷ ñ ¤ñ r4   c                óÞ   € \        V \        4      '       d   V P                  R8X  d   R# \        V \        \        34      '       d(   \        V R4      '       d   \        V P                  4      # R# )aD  Recursively check if a feature represents a null type.

This handles not only top-level ``Value("null")`` but also nested null types
such as ``List(Value("null"))``, ``LargeList(Value("null"))``, and
``Sequence(Value("null"))``, which can arise when a shard contains only
empty lists during multi-process ``Dataset.map()``.
r6   Tr§  F)rÈ   r   r~   r   r³  rã   Ú_is_null_featurer§  r  s   &r2   rÁ  rÁ  W	  sO   € ô �'œ5×!Ò! g§m¡m°vÔ&=ÙÜ�'œH¤iÐ0×1Ò1´g¸gÀy×6QÒ6QÜ §¡Ó0Ð0Ùr4   c                ó\   € V ^8„  d   QhR\         \        ,          R\         \        ,          /# )r+   Úfeatures_listr-   ©rå   r¿  )r1   s   "r2   r3   r3   f	  s&   € ÷ cñ c¤4¬¥>ð c´d¼8µnñ cr4   c                óœ  € / pV  Fy  pVP                  4        Fb  w  r4W19   d5   \        V\        4      '       d   \        W,          V.4      ^ ,          W&   K?  W19  g   \	        W,          4      '       g   K^  WAV&   Kd  	  K{  	  V  UUu. uF2  p\        VP                  4        Uu/ uF  q3W,          bK  	  up4      NK4  	  upp# u upi u uppi )zoAlign dictionaries of features so that the keys that are found in multiple dictionaries share the same feature.)rÝ   rÈ   râ   Ú_align_featuresrÁ  r¿  rÜ  ©rÃ  Úname2featurer;  rð   rñ   s   &    r2   rÆ  rÆ  f	  s¨   € à€LÛ!ˆØ—N‘NÖ$‰DˆAØÔ ¤Z°´4×%8Ò%8ä"1°<µ?ÀAÐ2FÓ"GÈÕ"J�“ØÔ&Ô*:¸<½?×*KÔ*KØ"#˜Q“ó %ñ "ñ UbÔbÑTaÈŒH°(·-±-´/ÓB±/¨Q˜�Ò(±/ÑBÖCÑTaÒbÐbùÒBùÓbs   ÂCÂ#CÂ4CÃCc                ó:   € V ^8„  d   QhR\         \        ,          /# )r+   rÃ  rÄ  )r1   s   "r2   r3   r3   t	  s   € ÷ ñ ´T¼(µ^ñ r4   c                óâ  € / pV  F?  pVP                  4        F(  w  r4W19  g   \        W,          4      '       g   K$  WAV&   K*  	  KA  	  V  F¡  pVP                  4        FŠ  w  r4\        V\        4      '       d2   \        W,          \        4      '       d   \	        W,          V.4       KL  \        V4      '       d   K_  W,          V8w  g   Kn  \        RV RV RV RW,           R2	4      h	  K£  	  R# )a  Check if the dictionaries of features can be aligned.

Two dictionaries of features can be aligned if the keys they share have the same type or some of them is of
type ``Value("null")`` (or a container wrapping ``Value("null")``, such as ``List(Value("null"))``).
z.The features can't be aligned because the key z of features z has unexpected type - z (expected either z or Value("null").N)rÝ   rÁ  rÈ   râ   Ú!_check_if_features_can_be_alignedrd   rÇ  s   &    r2   rË  rË  t	  së   € ð €LÛ!ˆØ—N‘NÖ$‰DˆAØÔ$Ô(8¸½×(IÔ(IØ"#˜Q“ó %ñ "ó
 "ˆØ—N‘NÖ$‰DˆAÜ˜!œT×"Ò"¤z°,µ/Ä4×'HÒ'Hä1°<µ?ÀAÐ2FÖGÜ% a×(Ô(¨\­_ÀÖ-AÜ ØEÀaÀSÈÐV^ÐU_Ð_vÐwxÐvyð  zLð  MYõ  M\ð  L]ð  ]oð  póð ó %ó "r4   c                ó0   € V ^8„  d   QhR\         R\        /# r  )r   r»  )r1   s   "r2   r3   r3   ‹	  s   € ÷ *ñ *´3ð *¼;ñ *r4   c                 ó   € R  p\        W4      # )c                 óh   € \        V \        4      '       d   \        \        V ^ ,          4      4      # V # r0  )rÈ   rå   r¡  Ú%_fix_for_backward_compatible_featuresr  s   &r2   Ú_fix_old_listÚ<_fix_for_backward_compatible_features.<locals>._fix_old_listŒ	  s)   € Ü�gœt×$Ò$ÜÔ=¸gÀa½jÓIÓJÐJØˆr4   )r  )r§  rÐ  s   & r2   rÏ  rÏ  ‹	  s   € òô
 �'Ó)Ð)r4   c                ób   € V ^8„  d   Qh/ ^ \         9   d   \        \        \        3,          ;R&   # )r+   rÔ  )Ú__conditional_annotations__râ   r0   r»  )r1   s   "r2   r3   r3      s+   € × aÑ a÷B/ò ””Sœ+Ð%Õ&ñ òC/ br4   )FT)r   r+   )r   r+   é   )r   r+   rÔ  é   )r   r+   rÔ  rÕ  rš  rC  r  r0  )ŒrÓ  r$  ró  rx   r•   r¼   Úcollections.abcr   r   r   rM  r  Údataclassesr   r   r   r   Ú	functoolsr	   r
   Úoperatorr   Útypingr   r   r   r   r   r   rÁ   rÉ   ÚpandasrØ   rO   r.   Úpyarrow.computeÚcomputerv  Úpyarrow.typesÚpandas.api.extensionsr   ÚPandasExtensionArrayr   ÚPandasExtensionDtyper¨  r   Únamingr   r   Útabler   Úutilsr   r   Ú
utils.jsonr   r   Úutils.py_utilsr   r   r   Úaudior   Úimager    r!   Úmeshr"   Úniftir#   r$   rÔ   r%   r&   Útranslationr'   r(   Úvideor)   Ú
get_loggerr  rÕ  rs   r¦   rÌ   rý   r   r*  r6  r?  rC  rG  r/  rK  rz  r~  r€  r‚  Úregister_extension_typer�  rk  rt  rÔ  rE  rG  r‡  r¡  r³  râ   rå   r«   r»  ræ   rÁ  rÆ  rÍ  rÔ  r×  rÚ  rã  rð  rõ  rø  rû  rþ  r  r  r0   r  r
  r  r  r#  r,  r¿  rÁ  rÆ  rË  rÏ  r3   )rÓ  s   @r2   Ú<module>rï     sÓ  øðö  bã Û Û 	Û 
ß -Ý 3Ý 1ß 9Ó 9ß #Ý ß D× Dã Û Û Ý Û Ý HÝ Hå ß CÝ ß )ß 1ß CÑ CÝ ß *Ý ß .ß +ß BÝ ð 
×	Ò	˜HÓ	%€õC`õLTõn|÷~	ñ2 �Ô÷Q8ð Q8ó ðQ8÷h	ñ 	ð ôBˆhó Bó ðBð0 ôBˆhó Bó ðBð0 ôBˆhó Bó ðBð0 ôBˆhó Bó ðBô0+:˜B×,Ñ,ô +:ô\Ð0ô ôÐ0ô ôÐ0ô ôÐ0ô ð
 × Ò Ñ/°¸Ó@Ô AØ × Ò Ñ/°	¸7ÓCÔ DØ × Ò Ñ/°¸gÓFÔ GØ × Ò Ñ/°ÀÓIÔ J÷rô,:&˜"×+Ñ+ô :&ôz Ð 4ô  ôDe1Ð 4ô e1òP;ð
 ÷BSð BSó ðBSðJ ÷W1ð W1ó ðW1÷tñ ñB �Ôô<ˆ8ó <ó ð<ñ6 �Ô÷8ð 8ó ð8ð( ØØØ	Ø	ØØØ ØØØØØØØ	Ø	ØØ	ØØ	ð%õ€÷.õ,ôB%÷P,ð^*Ø	‡N�N�Eð*à×Ñ˜ð*ð ×Ñ˜+ð*ð !×)Ñ)Ð+Gð	*ð
 ×Ñ˜	ð*ð 	‡M�M�4ð*ð ×Ñ�gð*ð ×Ñ�gð*ð ×Ñ�gð*ð ×Ñ�gð*ð 
‡N�N�Eð*ð 
‡N�N�Eð*ð 	‡M�M�4ð*ð 
‡N�N�Eð*ð ‡L�L�#ð*ð  
‡N�N�Eð!*ð" 	‡M�M�4ð#*€ó ð* ô/ó ð/õ#LõLI÷:	õ
5÷'õ÷"wõ 5õ +ð* �%˜˜W Q�Z˜Õ(Õ)€
ð vx÷+÷@
õ00õ$1ò$ô,]ˆtô ]õ@õcõ÷.*r4   