+
    	i0                         R t ^ RIHt ^ RIHt ^ RIH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 ^R	IHt ^R
IHt ^RIHt R tR tR tR tR# )z
Draw text.)BytesIO)ElementTree)Image)RasterImageSVGImage)LOGGER)Matrix)
FROM_UNITSTO_UNITSffipango)get_hb_object_data)get_last_word_end)	draw_line)	get_colorc                   ^RI Hp VP                  R,          '       g   Q hVP                  R,          R8w  d   R# VP                  R,          p\        VP                  R4      pRV9   g   R	V9   df   VP                  R
,          R9   d   VP                  P
                  pM6V! VP                  R
,          VP                  VP                  R,          4      pR	V9   dD   VP                  VP                  P                  ,
          X^,          ,           p	\        WW)VV4       RV9   d   VP                  R,          R8X  d   VP                  P                  ) p
M6V! VP                  R,          VP                  VP                  R,          4      p
VP                  V
,           X^,          ,           p	\        WW)VV4       VP                  VP                  VP                  ,           rV P                  VP                  R,          4       VP                  P                  VP                  4       V P                  4        \        WW4\!        RWR7      4      pV P#                  4        \%        WP                  WV4       RV9   dK   VP                  P&                  pVP                  VP                  P(                  ,
          p	\        WW)W4       VP                  P+                  4        R# )z!Draw a textbox to a pydyf stream.)
percentage	font_size
visibilityvisibleNtext_decoration_linetext_decoration_color	underlineoverlinetext_decoration_thicknessautotext_underline_offsetcolor)defzline-through)r   z	from-font)layout.percentr   styler   pango_layoutunderline_thicknessbaselineascentdraw_text_decorationunderline_position
position_x
position_y	set_color
reactivate
begin_textdraw_first_liner   end_textdraw_emojisstrikethrough_thicknessstrikethrough_position
deactivate)streamtextboxoffset_xtext_overflowblock_ellipsisr   text_decoration_valuesr   	thicknessoffset_yunderline_offsetxyemojiss   &&&&&         Z/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/weasyprint/draw/text.py	draw_textrB      sm   + ==%%%% }}\"i/ %]]+AB%gmm5LM,,
>T0T==459NN,,@@I"9:GMMk*,I ++w33:::Y]J 	X!	# ,,==01V;!(!5!5!H!HH)56k* , ##&66QFX!	#
 w11G4D4DDq
W]]7+,##GMM2
q8NPF
OO qV4 //((@@	##g&:&:&Q&QQX	S##%    c           
        VR,          pV Fa  w  rgrrV P                  4       ;_uu_ 4        V P                  WW*V,          ,           W;,           R7       VP                  WWQ4       RRR4       Kc  	  R#   + '       g   i     Kx  ; i)zDraw list of emojis.r   )ar   r   r    N)stacked	transformdraw)r5   r#   r>   r?   r@   r   imagefontrE   r   r   r    s   &&&&&       rA   r1   r1   N   sh    k"I#)Q1^^q]):aeDJJv);  $*s   :A33Bc           	     ,   VP                   P                  4       '       g   . # VP                  R,          R8  d   . # \        P                  ! VP
                  P                  R4       VR8X  g	   VR8w  Ed{   VP
                  P                  f   Q hVP
                  P                  p\        P                  ! VP
                  P                  \        V\        ,          4      4       VR8X  d;   \        P                  ! VP
                  P                  \        P                  4       MVR8X  d   RpMV^ ,          R	8X  g   Q hV^,          pVP
                  P                   pVP                  VP                  R
,          4      '       dI   \        VR\        VP                  R
,          4      )  VP                  R,          4      pV'       d   VRV pVP
                  P!                  Wv,           4       VP
                  P#                  4       w  rVR8w  d   V
'       d   \        VP
                  P                   R\        X4      )  VP                  R,          4      pVf   MXVP
                  P                   RV pVP
                  P!                  Wv,           4       VP
                  P#                  4       w  rK  VP
                  P                   P%                  4       pV P&                  ! VP(                  !   RpRp^ p. pV	P*                  ^ ,          pV\,        P.                  8w  Ed   VP0                  pVP2                  pVP4                  pVP4                  pVP6                  pVP8                  P:                  pVP<                  p\?        V4       Uu. uF  pVVV,          ,           NK  	  ppVP8                  P@                  PB                  ^,          '       d/   VPE                  ^ VVP8                  PF                  ,           4       M,VPI                  VVP8                  PF                  ,           4       VP8                  P@                  PJ                  pVV8w  d   TpV PM                  V4      w  pp\        PN                  ! 4       R8  d   VP                  R,          pV'       d   V PQ                  V4       RpT PS                  VPT                  VPV                  '       d   ^MT4       VR,          p\?        V4       EF  pVV,          pVPX                  pVPZ                  P\                  pV\        P^                  8X  d   VRV) X,           R2,          pK[  V\        P`                  ,          '       d   V\        P`                  ,
          p\b        Pd                  ! R\g        V4       RVR R24       XPi                  V4      p\k        VR,          \l        ,          X,          4      VPn                  V&   ^ VPn                  9  d!   VPn                  V,          VPn                  ^ &   VXPp                  9  dA   \s        \u        VVV^,            4      !  p VV ,          Pw                  4       VPp                  V&   VPZ                  Px                  X,          pVPZ                  Pz                  R,          p!V!'       d   VR#,          R8X  d   VRR# pM	VR,          pV PQ                  V4       V P}                  V!) 4       RpV'       d   V)  pTVPV                  '       d   RVR R2MRVR R2,          pV PQ                  V4       V P}                  ^ 4       RpM7V'       d   VRV)  R2,          pTVPV                  '       d   VR MVR ,          pVVPn                  9   d   VPn                  V,          p"Mt\        P~                  ! VVV P                  V P                  4       \k        V P                  P\                  R,          \l        ,          V,          4      ;p"VPn                  V&   V"V,           VR,          \l        ,          V,          ,
          p#V#'       d   VR\        V#4       R2,          pVP                  '       Ed.   \        VP                  RV4      p$V$'       Ed   \        P                  ! V$4      p%V%P                  R4      RV 28w  dz   \        P                  ! R4      p&\        V%4       F%  p'V&PI                  V'4       V%P                  V'4       K'  	  V%PI                  V&4       \        P                  ! V%RRRV 2/R7       RV%P                  9  d*   R VP                   R!VP                   2V%P                  R&   \        V%RRR4      p(^;p)p*VPI                  V(VV)V*V^ .4       EMVP                  '       d   \        VP                  R"V4      p+V+'       d   \        P                  ! \        V+4      4      p,VPT                   V 2p-\        V,V-V+4      p(V"R,          p*V,P\                  V,P                  ,          V*,          p)\        P~                  ! VVV P                  V P                  4       V P                  P                  ) p.V.\l        ,          V,          V,
          p.VPI                  V(VV)V*VV..4       VV"V,           V#,
          R,          ,          pEK  	  VR#,          R8X  d	   VRR# pEK  VR,          pEK  V PQ                  V4       V# u upi )$z;Draw the given ``textbox`` line to the document ``stream``.r   gư>TellipsisnoneNr   u   …stringhyphenate_characterlang i9  <>zA.notdef glyph rendered for Unicode string unsupported by fonts: "z" (U+04X)i  02x04xsvgidglyphdefsusehrefz#glyph)attribviewBoxz0 0  pngr!   )Wtextstripr#   r   &pango_layout_set_single_paragraph_moder$   layout	max_widthpango_layout_set_widthintr
   pango_layout_set_ellipsizePANGO_ELLIPSIZE_ENDendswithr   lenset_textget_first_lineencodeset_text_matrixvaluesrunsr   NULLdatanextglyphs
num_glyphsitemoffsetlog_clustersrangeanalysislevelinsertlengthappendrJ   add_fontpango_version	show_textset_font_sizehashbitmaprZ   geometrywidthPANGO_GLYPH_EMPTYPANGO_GLYPH_UNKNOWN_FLAGr   warningchrget_unused_glyph_idroundr	   widths
to_unicodeslicesorteddecodex_offsety_offsetset_text_risepango_font_get_glyph_extentsink_rectlogical_rectrX   r   hb_facer   
fromstringgetElementlistremove
SubElementr^   upemr   ra   hb_fontr   openr   r   heightr?   )/r5   r6   r8   r9   matrixrf   rL   new_textlast_word_end
first_lineindex	utf8_textprevious_pango_fontrN   	x_advancer@   run
glyph_itemglyph_stringglyphs_infonumber_of_glyphsry   clustersiutf8_positions
pango_fontrJ   r   
glyph_infoglyph_idr   	codepoint
utf8_sliceriselogical_widthkerningsvg_datatreer[   childrI   rE   r   png_datapillow_imageimage_idr    s/   &&&&&                                          rA   r/   r/   W   s:	    <<	}}[!D(		001E1E1L1LdS
"n&>##--999((22	$$  ''Y-A)B	DJ&,,$$++U-F-FH ' %a(H444)!, ++00H  /D!EFF 1Hs7==1F#GHHIMM&)!+ !'7H  ))(*=>,,;;=J-$$))/CM>:f%'M $++00-@H  ))(*=> ' 4 4 C C EJ$$))002I
FMM*FIF
//!
C
/XX
hh!(("))'22'',, 9>>N8OP8O1&8A;..8OP??##))A--!!!Vjoo.D.D%DE!!&:??+A+A"AB__--22
,,",$ooj9OD) ""$u,#MM+6	   (F  A)L#'(A$QJ!''H''--E 5222Aufy0133 %8888$u'E'EE	I'uYsO1>?  33I>(-edlZ.G).S(TH%DKK' &*[[%:DKKN t."F>!AaC+@$AB
,5j,A,H,H,J)  ((11I=F&&//$6D":$#CR[FcMF  ($$dU+!'yFAhs^1-Ahs^STBUU  ($$Q'6'!n,Ft{{{XcN8C.Q 4;;& $H 522&//6;N;NP8=''--4zAIM9O OH 5 $f,ut|j/H9/TTGAc'l^1-- xxx-dllE8L8 '11(;Dxx~5
);;*226:%)$ZE KK. KK. &0 D)#.. %6(9L0MO 337		{!DII;1OI.$T4t<EIAMM5$1i"CD-dllE8L#(::gh.?#@L"&))XJ7H'hIE%,A$**\-@-@@1DA66"Hfoo++-  ,,...AJ2Y>AMM5$1i"CD-&07:dBBII )N ":CR[FcMF VMK Qs   lc                    \        WP                  VP                  V,           VP                  VP                  ,           VP                  V,           WAP                  R,          WR4	       R# )z?Draw text-decoration of ``textbox`` to a ``pdf.stream.Stream``.text_decoration_styleN)r   r*   r+   r   r#   )r5   r6   r7   r<   r;   r   s   &&&&&&rA   r(   r(   #  sO    ""G$6$6$AW]]*G,>,>,I==!895LrC   N)__doc__ior   	xml.etreer   PILr   imagesr   r   loggerr   r   r   text.ffir	   r
   r   r   
text.fontsr   text.line_breakr   borderr   r   r   rB   r1   r/   r(    rC   rA   <module>r      sD      !  *   7 7 + /  9&x<IXLrC   