§ ]<ˆjL ãó¸—ddlmZddlZddlmZddlmZddlmZm Z ej d¦«Z dd „Z ddd„Z edkrœddlmZed¬¦«Ze d¦«ee dd¦«¦«ed¬¦«Ze ¦«e d¦«e ¦«e d¦«dSdS) é)Ú annotationsN)ÚIterableé)Ú loop_last)Úcell_lenÚ chop_cellsz \s*\S+\s*ÚtextÚstrÚreturnúIterable[tuple[int, int, str]]c#óìK—d}t ||¦«}|�R| ¦«\}}| d¦«}|||fV—t ||¦«}|­PdSdS)z·Yields each word from the text as a tuple containing (start_index, end_index, word). A "word" in this context may include the actual word and any whitespace to the right. rN)Úre_wordÚmatchÚspanÚgroup)r ÚpositionÚ word_matchÚstartÚendÚwords úh/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/pip/_vendor/rich/_wrap.pyÚwordsr s†èè€ð €HÝ—’˜t XÑ.Ô.€JØ Ð Ø—_’_Ñ&Ô&‰ ˆˆsØ×Ò Ñ"Ô"ˆØ�S˜$ÐÐÐÐÝ—]’] 4¨Ñ-Ô-ˆ ð Ð Ð Ð Ð Ð óTÚwidthÚintÚfoldÚboolú list[int]cóæ—g}|j}d}t}t|¦«D]Î\}}} ||  ¦«¦«} ||z } | | k} | r||| ¦«z }Œ?| |kro|rTt | |¬¦«} t | ¦«D]2\}}|r ||¦«|r ||¦«}Œ |t |¦«z }Œ3Œ›|r ||¦«|| ¦«}Œ´|r|r||¦«|| ¦«}ŒÏ|S)aœGiven a string of text, and a width (measured in cells), return a list of cell offsets which the string should be split at in order for it to fit within the given width. Args: text: The text to examine. width: The available cell width. fold: If True, words longer than `width` will be folded onto a new line. Returns: A list of indices to break the line at. r©r)ÚappendrrÚrstriprrÚlen)r rrÚbreak_positionsr!Ú cell_offsetÚ _cell_lenrÚ_endrÚ word_lengthÚremaining_spaceÚword_fits_remaining_spaceÚ folded_wordÚlastÚlines rÚ divide_liner.s^€ð"$€OØ Ô #€FØ€KÝ€Iå" 4™[œ[ð .ð .шˆt�TØ�i § ¢ ¡ ¤ Ñ.Ô.ˆ Ø +Ñ-ˆØ$3°{Ò$BÐ!à $ð .à ˜9˜9 T™?œ?Ñ *ˆKˆKð˜UÒ"Ð"ðð2å",¨T¸Ð"?Ñ"?Ô"?�KÝ&/° Ñ&<Ô&<ð/ð/™ ˜˜dØ ð*Ø"˜F 5™MœM˜MØð/Ø*3¨)°D©/¬/˜K˜Kà!¥S¨¡Y¤YÑ.˜E˜Eð /ðð&ؘ˜u™ œ ˜ Ø"+ )¨D¡/¤/�K�KØð . ð .ð��u‘ ” � Ø'˜i¨™oœo� øà ÐrÚ__main__)ÚConsoleé r z@12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345ÚabcdefghijklmnopqrstuvwxyzéuRTextualã�¯Pythonã�®é«˜é€Ÿã‚¢ãƒ—リケーション開発フレームワークã�§ã�™u4アプリケーションã�¯1670万色を使用ã�§ã��)r r r r )T)r r rrrrr r)Ú __future__rÚreÚtypingrÚ_looprÚcellsrrÚcompilerrr.Ú__name__Úconsoler0ÚprintÚrule©rrúr?s\ðØ"Ð"Ð"Ð"Ð"Ð"à € € € ØÐÐÐÐÐàÐÐÐÐÐØ'Ð'Ð'Ð'Ð'Ð'Ð'Ð'à ˆ"Œ*�\Ñ "Ô "€ð .ð .ð .ð .ð4ð4ð4ð4ð4ðn ˆzÒÐØ Ð Ð Ð Ð Ð àˆg˜BÐÑÔ€GØ ‡M‚MÐTÑUÔUÐUØ €Eˆ*ˆ*Ð1°2Ñ 6Ô 6Ñ7Ô7Ð7àˆg˜BÐÑÔ€GØ ‡L‚L�N„N€NØ ‡M‚MÐfÑgÔgÐgà ‡L‚L�N„N€NØ ‡M‚MÐHÑIÔIÐIÐIÐIðÐr