2biD SSKJr SSKJr SSKJrJrJr SSKJ r \(aSSK J r "SS5r \ S :XaLSS KrSS KJr SS KJr SS KJrJr SSKJr SSKJr "SS5r\"5r\R7\"55 g g ))sqrt) lru_cache)SequenceTuple TYPE_CHECKING) ColorTripletTablec\rSrSrSrS\\\\\44SjrS\S\ 4Sjr SSjr \ "S S 9S \\\\4S\4S j5r S rg)Palette zA palette of available colors.colorscXlgN_colors)selfrs ڊ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/rich/palette.py__init__Palette.__init__s numberreturnc,[URU6$r)r r)rrs r __getitem__Palette.__getitem__sT\\&122rc ,SSKJn SSKJn SSKJn SSKJn U"SSSS [UR5S 3S S S 9n[UR5H@upgUR[U5[U5U"SU"UR"U6S9S95 MB U$)NrColorStyle)Textr indexRGBr r z colorsTright)titlecaption highlightcaption_justifyz )bgcolor)style)pip._vendor.rich.colorr pip._vendor.rich.styler"pip._vendor.rich.textr#pip._vendor.rich.tabler lenr enumerateadd_rowstrreprfrom_rgb)rr r"r#r tabler$colors r__rich__Palette.__rich__s00.0   4<<()1# &dll3LE MME U XU5>>53I%JK 4  ri)maxsizer8c^^^^^Uummm[mURRmS[S[4UUUUU4Sjjn[ [ [UR55US9nU$)zFind a color from a palette that most closely matches a given color. Args: color (Tuple[int, int, int]): RGB components in range 0 > 255. Returns: int: Index of closes matching color. r$rc>T "U5upnT U-S-nT U- nT U- nT U- nT"SU-U-U-S- SU-U--SU- U-U-S- -5$)zGet the distance to a color.ii) r$red2green2blue2red_meanredgreenblue_sqrtblue1 get_colorgreen1red1s rget_color_distance)Palette.match..get_color_distance:s"+E"2 D%t )H+CVOE5=D>S(3.14e)e#$8^t+d2q8: r)key)rrrintfloatminranger1) rr8rN min_indexrIrJrKrLrMs @@@@@rmatch Palette.match,s`$feLL,,  c e  c$,,/06HI rrN)rr )__name__ __module__ __qualname____firstlineno____doc__rrrQrr rr9rrV__static_attributes__rArrr r sk(xc3m(<=3#3,30t5c3/Crr __main__N)Iterabler)ConsoleConsoleOptions)Segmentr!c0\rSrSrS\S\S\\4SjrSr g)ColorBoxSconsoleoptionsrc ## URRS- n[SU5Hn[UR5HnXRR- nXCS-- n[R "XgS5upn [R "XgSU- S- -S5upn [ R"US-U S-U S-5n[ R"U S-U S-U S-5n[S[XS95v M [R"5v M g7f) Nrrg?r>u▄)r8r+) sizeheightrT max_widthcolorsys hls_to_rgbr r6rbr"line)rrfrgrlyxhlr1g1b1r2g2b2r+r8s r__rich_console__ColorBox.__rich_console__Ts\\((1,F1f%w001A---AaZ(A!)!4!4Q3!?JBB!)!4!4QQZ!^8Lc!RJBB#nnR#XrCxcJG!NN28R#XrCxHE!%U)LMM2lln$&sD D rAN) rXrYrZr[r`rar_rbr{r]rArrrdrdSs$ %" %-; % g  %rrd)mathr functoolsrtypingrrr color_tripletr r0r r rXrnr_r-r pip._vendor.rich.consoler`rapip._vendor.rich.segmentrbr.r"rdrfprintrArrrsg11',==@ z,@0,%% iG MM(*3r