+
    Œvj¿Ö  ã                   ó   € R@t RtRt^ RI5 ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHtHtHt ^ RIt^ RIHt ^ RIHtHtHtHtHt  ] ^ RIt^ RI t ] PB                  ! R4      t" ! R R]#4      t$R t%R t& ! R  R!]'4      t( ! R" R])4      t* ! R# R ])4      t+ ! R$ R]+4      t, ! R% R]+4      t- ! R& R]+4      t. ! R' R]-4      t/ ! R( R]+4      t, ! R) R*]-4      t0]0! R+4      t1]-! R,4      t2R- t3 ! R. R])4      t4 ! R/ R]44      t5 ! R0 R
]44      t6 ! R1 R	]+4      t7 ! R2 R4      t8R3 t9 ! R4 R5]:4      t; ! R6 R4      t<R7 t= ! R8 R4      t> ! R9 R]>4      t?R: t@]AR;8X  d   ^ R<IBHCtCHDtD R= tER> tFR? tG]G! 4        R# R#   ] d    ^ RIHt  EL=i ; i)AÚActionFlowableÚBaseDocTemplateÚCurrentFrameFlowableÚFrameActionFlowableÚIndenterÚIndexingFlowableÚLayoutErrorÚLCActionFlowableÚNextFrameFlowableÚNextPageTemplateÚNotAtTopPageBreakÚNullActionFlowableÚPageAccumulatorÚPageTemplateÚSimpleDocTemplatez3.5.20a>  
This module contains the core structure of platypus.

rlatypus constructs documents.  Document styles are determined by DocumentTemplates.

Each DocumentTemplate contains one or more PageTemplates which defines the look of the
pages of the document.

Each PageTemplate has a procedure for drawing the "non-flowing" part of the page
(for example the header, footer, page number, fixed logo graphic, watermark, etcetera) and
a set of Frames which enclose the flowing part of the page (for example the paragraphs,
tables, or non-fixed diagrams of the text).

A document is built when a DocumentTemplate is fed a sequence of Flowables.
The action of the build consumes the flowables in order and places them onto
frames on pages as space allows.  When a frame runs out of space the next frame
of the page is used.  If no frame remains a new page is created.  A new page
can also be created if a page break is forced.

The special invisible flowable NextPageTemplate can be used to specify
the page template for the next page (which by default is the one being used
for the current frame).
)Ú*)Ú_ContainerSpace)Úinch)Úrl_safe_eval)Ú	Paragraph)ÚFrame)ÚdefaultPageSizeÚverboseÚ	invariantN)Úcanvas)ÚisSeqÚencode_labelÚdecode_labelÚannotateExceptionÚstrTypes)ÚSetzreportlab.platypusc                   ó   € ] tR t^EtRtR# )r   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r"   ó    Úb/var/www/html/daimler-pipeline/venv/lib/python3.14/site-packages/reportlab/platypus/doctemplate.pyr   r   E   s   † Ûr(   c                 ó  € \        V R R4      pVf   \        V RR4      p\        V RR4      pVf   \        V RR4      p\        V R4      '       d   RV P                  4       ,          pMRpVf   Ve   Vf   RpVf   RpR	V: R
V: RV: 2# R# )ÚwidthNÚ_widthÚheightÚ_heightÚ_culpritz, %s, Ú z???Ú(z x Ú))ÚgetattrÚhasattrr/   )ÚfÚwÚhÚcs   &   r)   Ú_fSizeStringr9   H   s’   € äˆa�˜Ó€AØ‚yÜ
�!�H˜TÓ
"ˆäˆa�˜Ó€AØ‚yÜ
�!�I˜dÓ
#ˆäˆq�*×ÒØ�q—z‘z“|Õ#‰àˆØ‚}˜šØŠ9˜�aØŠ9˜�aøÛ !£!¢AÐ&Ð&Ùr(   c                ó   € R# )zDummy callback for onPageNr"   )r   Údocs   &&r)   Ú
_doNothingr<   \   s   € ár(   c                   óF   a € ] tR t^`t o R t]R 4       t]R 4       tRtV t	R# )ÚPTCyclec                óV   € \         P                  ! V .VO5/ VB p^ Vn        ^ Vn        V# ©é    )ÚlistÚ__new__Ú_restartÚ_idx)ÚclsÚargsÚkwdsÚselfs   &*, r)   rC   ÚPTCycle.__new__a   s-   € Ü�|Š|˜CÐ- Ò-¨Ñ-ˆØˆŒØˆŒ	Øˆr(   c                ó²   € W P                   ,          pV ;P                   ^,          un         V P                   \        V 4      8¼  d   V P                  V n         V# ©é   )rE   ÚlenrD   )rI   Úvs   & r)   Ú
next_valueÚPTCycle.next_valueg   s:   € à—‘�OˆØ�	Š	�Q��	Ø�9‰9”c˜$“iÔØŸ™ˆDŒIØˆr(   c                ó&   € W P                   ,          # ©N)rE   ©rI   s   &r)   ÚpeekÚPTCycle.peeko   s   € à—I‘I�Ðr(   )rE   rD   N)
r#   r$   r%   r&   rC   ÚpropertyrP   rU   r'   Ú__classdictcell__©Ú__classdict__s   @r)   r>   r>   `   s2   ø‡ € òð ñó ðð ñó ör(   r>   c                   óB   a € ] tR t^st o RtR tR tR tR tR t	Rt
V tR# )	r   zºAbstract interface definition for flowables which might
hold references to other pages or themselves be targets
of cross-references.  XRefStart, XRefDest, Table of Contents,
Indexes etc.c                ó   € ^# rL   r"   rT   s   &r)   Ú
isIndexingÚIndexingFlowable.isIndexingx   ó   € Ùr(   c                ó   € ^# rL   r"   rT   s   &r)   ÚisSatisfiedÚIndexingFlowable.isSatisfied{   r_   r(   c                ó   € R# )z‘This will be called by the framework wherever 'stuff' happens.
'kind' will be a value that can be used to decide whether to
pay attention or not.Nr"   )rI   ÚkindÚstuffs   &&&r)   ÚnotifyÚIndexingFlowable.notify~   ó   € ñ 	r(   c                ó   € R# )zECalled by multiBuild before it starts; use this to clear
old contentsNr"   rT   s   &r)   ÚbeforeBuildÚIndexingFlowable.beforeBuild„   ó   € ñ 	r(   c                ó   € R# )z.Called after build ends but before isSatisfiedNr"   rT   s   &r)   Ú
afterBuildÚIndexingFlowable.afterBuild‰   ó   € ár(   r"   N)r#   r$   r%   r&   Ú__doc__r]   ra   rf   rj   rn   r'   rX   rY   s   @r)   r   r   s   s(   ø‡ € ñòòòò÷
ð r(   c                   óD   a € ] tR t^�t o RtRR ltR tR tR	R ltRt	V t
R# )
r   zÈThis Flowable is never drawn, it can be used for data driven controls
For example to change a page template (from one column to two, for example)
use NextPageTemplate which creates an ActionFlowable.
c                óx   € \         P                  V 4       \        V4      '       g   V3p\        V4      V n        R # rS   )ÚFlowableÚ__init__r   ÚtupleÚaction)rI   rw   s   &&r)   ru   ÚActionFlowable.__init__’   s-   € ô 	×Ñ˜$ÔÜ�V�}Š}Ø�YˆFÜ˜F“mˆŽr(   c           	     ó|  € V P                   ^ ,          p\        V P                   R,          4      pRV,           pVR8X  d   V^ ,          R8X  d     \        W4      ! V!   R#   \         d1   pTP                  ^ ,          T8X  d   \        RT,          4      hh Rp?i \        RT: R\        T4      : 24        R# ; i)	z]
This is called by the doc.build processing to allow the instance to
implement its behaviour
ºrM   NNÚhandle_Úhandle_nextPageTemplateÚmainzCan't handle ActionFlowable(%s)Nz
handle_z args=)rw   rv   r3   ÚAttributeErrorrG   ÚNotImplementedErrorr   Úascii)rI   r;   rw   rG   ÚarnÚaerrs   &&    r)   ÚapplyÚActionFlowable.applyš   sœ   € ð
 —‘˜Q•ˆÜ�T—[‘[ •_Ó%ˆØ˜ÕˆØÐ)Ô)¨d°1­g°v¬oØð	JÜ�CÔ˜dÔ#øÜô 	Ø�y‰y˜�|˜SÔ Ü)Ð*KÈfÕ*TÓUÐUàûð	JÝ³V¼EÀ$½KÐH×Iús   ÁA! Á!B;Á,+BÂ!B;c                ó   € V # rS   r"   rT   s   &r)   Ú__call__ÚActionFlowable.__call__®   s   € Øˆr(   Nc                óV   € R \        V P                  4      : V P                  4       : 2# )zActionFlowable: )Ústrrw   Ú
_frameName)rI   ÚmaxLens   &&r)   ÚidentityÚActionFlowable.identity±   s   � Ü),¨T¯[©[Õ)9¸$¿/¹/Õ:KÐLÐLr(   )rw   )r"   rS   )r#   r$   r%   r&   rq   ru   rƒ   r†   rŒ   r'   rX   rY   s   @r)   r   r   �   s&   ø‡ € ñô$òJò(÷Mò Mr(   c                   ó*   a € ] tR t^´t o RtR tRtV tR# )r   z#an ActionFlowable that does nothingc                ó   € R # rS   r"   ©rI   r;   s   &&r)   rƒ   ÚNullActionFlowable.apply¶   ó   € Ùr(   r"   N)r#   r$   r%   r&   rq   rƒ   r'   rX   rY   s   @r)   r   r   ´   s   ø‡ € Ù-÷ð r(   c                   ó0   a € ] tR t^¹t o ^tR tR tRtV tR# )r	   c                óN   € \        RV P                  P                  ,          4      h)úShould never be called.z%s.wrap should never be called©r   Ú	__class__r#   )rI   Ú
availWidthÚavailHeights   &&&r)   ÚwrapÚLCActionFlowable.wrap¼   ó   € ä!Ð"BÀTÇ^Á^×E\ÑE\Õ"\Ó]Ð]r(   c                óN   € \        RV P                  P                  ,          4      h)r•   z%s.draw should never be calledr–   rT   s   &r)   ÚdrawÚLCActionFlowable.drawÀ   rœ   r(   r"   N)	r#   r$   r%   r&   Ú
locChangerrš   rž   r'   rX   rY   s   @r)   r	   r	   ¹   s   ø‡ € Ø€Jò^÷^ð ^r(   c                   ó.   a € ] tR t^Ät o ^tRR ltRtV tR# )r
   c                ó6   € \         P                  V R W34       R# )Ú	nextFrameN©r   ru   ©rI   ÚixÚresumes   &&&r)   ru   ÚNextFrameFlowable.__init__Æ   s   € Ü×Ñ  k°"Ð%<Ö=r(   r"   Nr@   ©r#   r$   r%   r&   r    ru   r'   rX   rY   s   @r)   r
   r
   Ä   s   ø‡ € Ø€J÷>ò >r(   c                   ó*   a € ] tR t^Ét o RR ltRtV tR# )r   c                ó6   € \         P                  V R W34       R# )ÚcurrentFrameNr¤   r¥   s   &&&r)   ru   ÚCurrentFrameFlowable.__init__Ê   s   € Ü×Ñ  n°RÐ%?Ö@r(   r"   Nr@   )r#   r$   r%   r&   ru   r'   rX   rY   s   @r)   r   r   É   s   ø‡ € ÷Aò Ar(   c                   ó&   a € ] tR t^Ít o R tRtV tR# )r   c                ó   € R # rS   r"   r�   s   &&r)   rƒ   r‘   Î   r’   r(   r"   N)r#   r$   r%   r&   rƒ   r'   rX   rY   s   @r)   r   r   Í   s   ø‡ € ÷ð r(   c                   ó4   a € ] tR t^Ñt o RtRR ltR tRtV tR# )Ú_FrameBreakzq
A special ActionFlowable that allows setting doc._nextFrameIndex

eg story.append(FrameBreak('mySpecialFrame'))
Nc                óX   € V P                  V P                  V3,           4      pWn        V# rS   )r—   rw   Ú_ix)rI   r¦   r§   Úrs   &&& r)   r†   Ú_FrameBreak.__call__×   s%   € Ø�N‰N˜4Ÿ;™;¨ yÕ0Ó1ˆØŒØˆr(   c                óŒ   € \        V R R4      '       d   VP                  V P                  4       \        P	                  W4       R# )r³   N)r3   Úhandle_nextFramer³   r   rƒ   r�   s   &&r)   rƒ   Ú_FrameBreak.applyÜ   s1   € Ü�4˜˜d×#Ò#Ø× Ñ  §¡Ô*Ü×Ñ˜TÖ&r(   r"   )NrA   )	r#   r$   r%   r&   rq   r†   rƒ   r'   rX   rY   s   @r)   r±   r±   Ñ   s   ø‡ € ñô
÷
'ð 'r(   r±   ÚframeEndÚ	pageBeginc                 ó‚   € \        V \        4      '       d)   ^ RIHp V! V 4      p \	        V 4      '       d
   V ^,          p V # )rA   )Ú_num)Ú
isinstancer‰   Úreportlab.platypus.paraparserr¼   r   )Únr¼   s   & r)   Ú_evalMeasurementrÀ   ä   s1   € Ü�!”C×ÒÝ6Ù�‹GˆÜ��8Š8˜˜1��QØ€Hr(   c                   ó4   a € ] tR t^ët o ^;ttR tR tRtV t	R# )r   c                óN   € \        R V P                  P                  ,          4      h)z5%s.__init__ should never be called for abstract Classr–   )rI   ÚargÚkws   &*,r)   ru   ÚFrameActionFlowable.__init__í   s    € Ü!Ð"YÐZ^×ZhÑZh×ZqÑZqÕ"qÓrÐrr(   c                óN   € \        R V P                  P                  ,          4      h)z8%s.frameAction should never be called for abstract Classr–   ©rI   Úframes   &&r)   ÚframeActionÚFrameActionFlowable.frameActionð   s    € Ü!Ð"\Ð]a×]kÑ]k×]tÑ]tÕ"tÓuÐur(   r"   N)
r#   r$   r%   r&   Ú_fixedWidthÚ_fixedHeightru   rÉ   r'   rX   rY   s   @r)   r   r   ë   s!   ø‡ € Ø!"Ð"€K�,òs÷vð vr(   c                   ó@   a € ] tR t^ót o RtRt^ t^ tRR ltR t	Rt
V tR# )r   z–Increases or decreases left and right margins of frame.

This allows one to have a 'context-sensitive' indentation
and makes nested lists way easier.
Tc                óF   € \        V4      V n        \        V4      V n        R # rS   )rÀ   ÚleftÚright)rI   rÏ   rÐ   s   &&&r)   ru   ÚIndenter.__init__ü   s   € Ü$ TÓ*ˆŒ	Ü% eÓ,ˆŽ
r(   c                ó’   € V;P                   V P                  ,          un         V;P                  V P                  ,          un        R # rS   )Ú_leftExtraIndentrÏ   Ú_rightExtraIndentrÐ   rÇ   s   &&r)   rÉ   ÚIndenter.frameAction   s,   € Ø×Ò $§)¡)Õ+ÕØ×Ò 4§:¡:Õ-×r(   )rÏ   rÐ   N)rA   rA   )r#   r$   r%   r&   rq   Ú	_ZEROSIZEr+   r-   ru   rÉ   r'   rX   rY   s   @r)   r   r   ó   s*   ø‡ € ñð
 €IØ
€EØ€Fô-÷.ð .r(   c                   ó4   a € ] tR tRt o ^tRR ltR tRtV tR# )r   i  Nc                ó   € Wn         R # rS   ©ÚnextTemplate)rI   rÚ   s   &&r)   ru   ÚNotAtTopPageBreak.__init__  s   € Ø(Ör(   c                óx   € VP                   '       g(   VP                  \        V P                  R 7      4       R# R# )rÙ   N)Ú_atTopÚadd_generated_contentÚ	PageBreakrÚ   rÇ   s   &&r)   rÉ   ÚNotAtTopPageBreak.frameAction	  s)   € Ø�|�|ˆ|Ø×'Ñ'¬	¸t×?PÑ?PÔ(QÖRñ r(   rÙ   rS   )	r#   r$   r%   r&   r    ru   rÉ   r'   rX   rY   s   @r)   r   r     s   ø‡ € Ø€Jô)÷Sð Sr(   c                   ó,   a € ] tR tRt o ^t R tRtV tR# )r   i  c                ó6   € \         P                  V R V34       R# )ÚnextPageTemplateNr¤   )rI   Úpts   &&r)   ru   ÚNextPageTemplate.__init__  s   € Ü×Ñ Ð&8¸Ð%<Ö=r(   r"   Nr©   rY   s   @r)   r   r     s   ø‡ € Ø€JØi÷>ð >r(   c            
       óT   a € ] tR tRt o RtR. ]]RRRRRR3
R ltR tR tR t	Rt
V tR# )	r   i  zÝ
essentially a list of Frames and an onPage routine to call at the start
of a page when this is selected. onPageEnd gets called at the end.
derived classes can also implement beforeDrawPage and afterDrawPage if they want
Nc                ó4  € T;'       g    . p\        V4      '       g   V.pV Uu. uF  p\        V\        4      '       d   K  VNK  	  up. 8X  g   Q R 4       hWn        W n        W0n        W@n        WPn        W`n        Wpn	        W€n
        W�n        W n        R# u upi )zframes argument errorN)r   r½   r   ÚidÚframesÚonPageÚ	onPageEndÚpagesizeÚautoNextPageTemplateÚcropBoxÚartBoxÚtrimBoxÚbleedBox)rI   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   Úxs   &&&&&&&&&&& r)   ru   ÚPageTemplate.__init__  s„   € ð —�˜2ˆÜ�V�}Š}¨ x˜fÙ!Ó=™6�a¬°A´e×)<—�™6Ñ=¸rÔAÐZÐCZÓZÐAØŒØŒØŒØ"ŒØ ŒØ$8Ô!ØŒØŒØŒØ Žùò >s   ¥BÁBc                ó   € R# )z’Override this if you want additional functionality or prefer
a class based page routine.  Called before any flowables for
this page are processed.Nr"   ©rI   Úcanvr;   s   &&&r)   ÚbeforeDrawPageÚPageTemplate.beforeDrawPage.  rh   r(   c                óV  € RpRpRpVP                   '       d$   \        \        \        VP                   4      4      pV P                  '       d$   \        \        \        V P                  4      4      pVP                  '       d$   \        \        \        VP                  4      4      pW58w  dF   V'       d   VP                  V P                  4       M!W48w  d   VP                  VP                  4       R F2  p\        WR,           R4      pV'       g   K   VP                  WvR7       K4  	  R# )z¤This gets called by the template framework
If canv size != template size then the canv size is set to
the template size or if that's not available to the
doc size.
NÚBox)Úname)ÚcropÚartÚtrimÚbleed)Ú	_pagesizerB   ÚmapÚintrì   ÚsetPageSizer3   Ú
setCropBox)rI   rö   r;   ÚcpÚdpÚspÚboxÚsizes   &&&     r)   ÚcheckPageSizeÚPageTemplate.checkPageSize4  sÈ   € ð ˆØˆØˆØ�>�>ˆ>¤¤S¬¨d¯n©nÓ%=Ó >˜2Ø�=�=ˆ=œt¤C¬¨T¯]©]Ó$;Ó<˜"Ø�<�<ˆ<œd¤3¤s¨C¯L©LÓ#9Ó:˜ØŒ6ßØ× Ñ  §¡Õ/Ø”Ø× Ñ  §¡Ô.Û.ˆCÜ˜4 E¥	¨$Ó/ˆDß‰tØ—‘ �Ö.ó /r(   c                ó   € R# )z´This is called after the last flowable for the page has
been processed.  You might use this if the page header or
footer needed knowledge of what flowables were drawn on
this page.Nr"   rõ   s   &&&r)   ÚafterDrawPageÚPageTemplate.afterDrawPageM  ó   € ñ
 	r(   )
rï   rí   rñ   rî   ré   rè   rê   rë   rì   rð   )r#   r$   r%   r&   rq   r<   ru   r÷   r
  r  r'   rX   rY   s   @r)   r   r     s?   ø‡ € ñð
  R¨zÀZØ°TØØØØô!ò*ò/÷2ð r(   c                 ó@   € \        VR R4      pV'       d	   W R&   V=R# R# )Ú_generated_contentNºrA   rA   N)r3   r  )Ú	flowablesrÈ   ÚSs   && r)   Ú_addGeneratedContentr  T  s&   € Ü�Ð*¨4Ó0€AßØ�#‰ØÒ$ñ 	r(   c                   ó0   a € ] tR tRt o RR ltR tRtV tR# )Ú	onDrawStriZ  Nc                óT   € \         P                  W4      pW%n        WEn        W5n        V# rS   )r‰   rC   ÚonDrawrd   Úlabel)rF   Úvaluer  r  rd   rI   s   &&&&& r)   rC   ÚonDrawStr.__new__[  s$   € Ü�{‰{˜3Ó%ˆØŒØŒ	ØŒ
Øˆr(   c                ó\   € \        V 4      V P                  V P                  V P                  3# rS   )r‰   r  r  rd   rT   s   &r)   Ú__getnewargs__ÚonDrawStr.__getnewargs__b  s!   € Ü�4‹y˜Ÿ™ T§Z¡Z°·	±	Ð9Ð9r(   )rd   r  r  rS   )r#   r$   r%   r&   rC   r  r'   rX   rY   s   @r)   r  r  Z  s   ø‡ € ô÷:ð :r(   r  c                   óh   a € ] tR tRt o Rt^ tRR ltR tR tR t	R t
R	 tR
 tR tR tR tRtV tR# )r   ie  zfgadget to accumulate information in a page
and then allow it to be interrogated at the end
of the pageNc                óâ   € Vf^   V P                   P                  \        V P                   P                  4      ,           pV P                   ;P                  ^,          un        Wn        . V n        R # rS   )r—   r#   r‰   Ú_countrû   Údata)rI   rû   s   &&r)   ru   ÚPageAccumulator.__init__j  sK   € ØŠ<Ø—>‘>×*Ñ*¬3¨t¯~©~×/DÑ/DÓ+EÕEˆDØ�N‰N×!Ò! QÕ&Õ!ØŒ	ØˆŽ	r(   c                ó$   € . V P                   R &   R# )ºNNNN)r#  rT   s   &r)   ÚresetÚPageAccumulator.resetq  s   € Øˆ�	‰	�!‹r(   c                ó<   € V P                   P                  V4       R # rS   )r#  Úappend©rI   rG   s   &*r)   ÚaddÚPageAccumulator.addt  s   € Ø�	‰	×Ñ˜Ör(   c                ó>   € R V P                   : R\        V4      : R2# )z<onDraw name="z	" label="z" />)rû   r   r+  s   &*r)   Ú
onDrawTextÚPageAccumulator.onDrawTextw  s   � Ø48·I´I¼lÈ4Ö>PÐQÐQr(   c                ó8   € V P                   ! \        V4      !   R # rS   )r,  r   )rI   rö   rd   r  s   &&&&r)   r†   ÚPageAccumulator.__call__z  s   € Ø�Š”,˜uÓ%Ô&r(   c                óÐ   a € VP                   '       d   VP                   3V 3R  llpMV 3R lpW!n         VP                  '       d   VP                  3V 3R llpMV 3R lpW1n        R# )c                 ó:   <€ SP                  W4       V! W4       R # rS   ©rê   ©rö   r;   ÚooprI   s   &&&€r)   rê   Ú4PageAccumulator.attachToPageTemplate.<locals>.onPage  s   ø€ Ø—‘˜DÔ%Ù�D–r(   c                 ó*   <€ SP                  W4       R # rS   r5  ©rö   r;   rI   s   &&€r)   rê   r8  ƒ  s   ø€ Ø—‘˜DÖ%r(   c                 ó:   <€ SP                  W4       V! W4       R # rS   ©rë   r6  s   &&&€r)   rë   Ú7PageAccumulator.attachToPageTemplate.<locals>.onPageEnd‡  s   ø€ Ø—‘˜tÔ(Ù�D–r(   c                 ó*   <€ SP                  W4       R # rS   r<  r:  s   &&€r)   rë   r=  ‹  s   ø€ Ø—‘˜tÖ(r(   N)rê   rë   )rI   rä   rê   rë   s   f&  r)   ÚattachToPageTemplateÚ$PageAccumulator.attachToPageTemplate}  sK   ø€ Ø�9�9ˆ9Ø$&§I¡I÷ ð õ&àŒ	Ø�<�<ˆ<Ø')§|¡|÷ ð õ)à Žr(   c                ó^   € VP                  V P                  V 4       V P                  4        R# )z,this will be called at the start of the pageN)Ú
setNamedCBrû   r'  rõ   s   &&&r)   rê   ÚPageAccumulator.onPage�  s   € à�‰˜Ÿ	™	 $Ô'Ø�
‰
Žr(   c                ó‚   € V P                  W4        \        WP                  4       T P                  4        R#     L; i)z(this will be called at the end of a pageN)ÚpageEndActionÚdelattrrû   r'  rõ   s   &&&r)   rë   ÚPageAccumulator.onPageEnd”  s6   € à×Ñ˜4Ô$ð	Ü�DŸ™Ô#ð 	�
‰
Žøð	Ùús   “: º>c                ó   € R# )z0this should be overridden to do something usefulNr"   rõ   s   &&&r)   rE  ÚPageAccumulator.pageEndAction�  rp   r(   c                ó,   € \        W\        V4      4      # rS   )r  r   )rI   r  rG   s   &&*r)   r  ÚPageAccumulator.onDrawStr¡  s   € Ü˜¤L°Ó$6Ó7Ð7r(   )r#  rû   rS   )r#   r$   r%   r&   rq   r"  ru   r'  r,  r/  r†   r?  rê   rë   rE  r  r'   rX   rY   s   @r)   r   r   e  sI   ø‡ € ñð €FôòòòRò'ò!ò$ò
ò÷8ð 8r(   c                ól   € \        V \        \        \        34      ;'       g    \	        V RR4      '       * # )z6return true if allowed in containers like KeepTogetherr    F)r½   r   ÚDocIfÚDocWhiler3   )r5   s   &r)   Ú_ktAllowrO  ¤  s+   € ä˜1œo¬e´HÐ=Ó>×_Ð_Ä'È!ÈLÐY^ÓB_Ô`Ð`r(   c                   óÖ  a a€ ] tR tRt oRt/ R]bR. bR^ bR]bR]bR]bR	]bR
^bRRbRRbRRbRRbRRbR. bRRbRRbR^b/ R^ bR^ bRRbRRbRRbRRbRRbRRbRRbRRbRRbR RbR!RbR"RbR#]bR$RbR%RbCR&RR'RR(RR)RR*RR+RR,RR-RR.RR/RR0R/CtR]t	^ t
R1 tR2 tR3 tR4 tR5 tR6 tR7 tR8 tR9 tR: tR; tR^R< ltR_R= ltR`R> ltR? tR@ tRA tR`RB ltR`RC ltRD tRE tRaRF lt RG t!]t"]t#]t$]t%]t&]!t']t(]t)]t*R]+PX                  3RH lt-R]+PX                  3RI lt.RJ t/R]+PX                  3RK lt0RL t1RM t2RN t3RbRO lt4RP t5RQ t6RR t7RS t8RT t9RU t:Rct;RV t<RW t=RX t>RY t?RZ t@V 3R[ ltAR\tBVtCV ;tD# )dr   i¨  a:	  
First attempt at defining a document template class.

The basic idea is simple.

1)  The document has a list of data associated with it
    this data should derive from flowables. We'll have
    special classes like PageBreak, FrameBreak to do things
    like forcing a page end etc.

2)  The document has one or more page templates.

3)  Each page template has one or more frames.

4)  The document class provides base methods for handling the
    story events and some reasonable methods for getting the
    story flowables into the frames.

5)  The document instances can override the base handler routines.

Most of the methods for this class are not called directly by the user,
but in some advanced usages they may need to be overridden via subclassing.

EXCEPTION: doctemplate.build(...) must be called for most reasonable uses
since it builds a document using the page template.

Each document template builds exactly one document into a file specified
by the filename argument on initialization.

Possible keyword arguments for the initialization:

- pageTemplates: A list of templates.  Must be nonempty.  Names
  assigned to the templates are used for referring to them so no two used
  templates should have the same name.  For example you might want one template
  for a title page, one for a section first page, one for a first page of
  a chapter and two more for the interior of a chapter on odd and even pages.
  If this argument is omitted then at least one pageTemplate should be provided
  using the addPageTemplates method before the document is built.
- pageSize: a 2-tuple or a size constant from reportlab/lib/pagesizes.pu.
  Used by the SimpleDocTemplate subclass which does NOT accept a list of
  pageTemplates but makes one for you; ignored when using pageTemplates.

- showBoundary: if set draw a box around the frame boundaries.
- leftMargin:
- rightMargin:
- topMargin:
- bottomMargin:  Margin sizes in points (default 1 inch).  These margins may be
  overridden by the pageTemplates.  They are primarily of interest for the
  SimpleDocumentTemplate subclass.

- allowSplitting:  If set flowables (eg, paragraphs) may be split across frames or pages
  (default: 1)
- title: Internal title for document (does not automatically display on any page)
- author: Internal author for document (does not automatically display on any page)
rì   ÚpageTemplatesÚshowBoundaryÚ
leftMarginÚrightMarginÚ	topMarginÚbottomMarginÚallowSplittingÚtitleNÚauthorÚsubjectÚcreatorÚproducerÚkeywordsr   ÚpageCompressionÚ_pageBreakQuickÚrotationÚ_debugÚencryptÚ	cropMarksÚenforceColorSpaceÚdisplayDocTitleÚlangÚinitialFontNameÚinitialFontSizeÚinitialLeadingrî   rï   rð   rñ   ÚkeepTogetherClassÚhideToolbarÚhideMenubarÚhideWindowUIÚ	fitWindowÚcenterWindowÚnonFullScreenPageModeÚ	directionÚviewAreaÚviewClipÚ	printAreaÚ	printClipÚprintScalingÚduplexc                ób  € Wn         \        V R7      V n        / V n        V P                  P                  4        FS  pW29  d   V P                  V,          pM*W0P                  9   d   \        RV,          4      hW#,          p\        WV4       KU  	  V P                  p. V n	        V P                  V4       / V n        . V n        RV n        RV n        ^ V n        ^ V n        ^ V n        ^
V n        RV n        RV n        . V n        . V n        . V n        V P1                  4        V P3                  4        R# )z^create a document template bound to a filename (see class documentation for keyword arguments))r;   zInvalid argument %sNg        )ÚfilenameÚdictÚ
_nameSpaceÚ
_lifetimesÚ	_initArgsÚkeysÚ_invalidInitArgsÚ
ValueErrorÚsetattrrQ  ÚaddPageTemplatesÚ	_pageRefsÚ_indexingFlowablesÚ_onPageÚ_onProgressÚ_flowableCountÚ_curPageFlowableCountÚ_emptyPagesÚ_emptyPagesAllowedrÓ   rÔ   Ú_topFlowablesÚ_pageTopFlowablesÚ	_frameBGsÚ_calcÚ	afterInit)rI   ry  rÄ   ÚkrO   Úps   &&,   r)   ru   ÚBaseDocTemplate.__init__  s  € à ŒÜ 4œ.ˆŒØˆŒà—‘×$Ñ$Ö&ˆAØŒ{Ø—N‘N 1Õ%‘à×-Ñ-Ô-Ü$Ð%:¸QÕ%>Ó?Ð?Ø•E�Ü�D˜1Öñ 'ð ×ÑˆØˆÔØ×Ñ˜aÔ ð ˆŒØ"$ˆÔð ˆŒØˆÔØˆÔð &'ˆÔ"ØˆÔØ"$ˆÔð !$ˆÔØ!$ˆÔØˆÔØ!#ˆÔØˆŒà�
‰
ŒØ�‰Ör(   c                ó2  € V P                   ^ ,          V P                  ,
          V n        V P                   ^,          V P                  ,
          V n        V P                  V P
                  ,
          V n        V P                  V P                  ,
          V n        R# ©rA   N)	rì   rT  Ú_rightMarginrU  Ú
_topMarginrS  r+   rV  r-   rT   s   &r)   rŽ  ÚBaseDocTemplate._calc?  sc   € Ø ŸM™M¨!Õ,¨t×/?Ñ/?Õ?ˆÔØŸ-™-¨Õ*¨T¯^©^Õ;ˆŒØ×&Ñ&¨¯©Õ8ˆŒ
Ø—o‘o¨×(9Ñ(9Õ9ˆŽr(   c                ó   € Wn         R# )z>Simple progress monitor - func(pageNo) called on each new pageN)r…  ©rI   Úfuncs   &&r)   ÚsetPageCallBackÚBaseDocTemplate.setPageCallBackE  s   € àŽr(   c                ó   € Wn         R# )z=Cleverer progress monitor - func(typ, value) called regularlyN)r†  r™  s   &&r)   ÚsetProgressCallBackÚ#BaseDocTemplate.setProgressCallBackI  s   € àÖr(   c                óv   € \        V P                  4      '       d   V P                  V P                  4       K8  R# )z!handle internal postponed actionsN)rN   Ú_hangingÚhandle_flowablerT   s   &r)   Úclean_hangingÚBaseDocTemplate.clean_hangingM  s(   € ä�$—-‘-× Ò Ø× Ñ  §¡Ö/ñ !r(   c                óv   € \        V4      '       g   V.pV F  pV P                  P                  V4       K   	  R# )z&add one or a sequence of pageTemplatesN)r   rQ  r*  )rI   rQ  Úts   && r)   r‚  Ú BaseDocTemplate.addPageTemplatesR  s4   € ä�]×#Ò#Ø*˜OˆMó ˆAØ×Ñ×%Ñ% aÖ(ó r(   c                ó(  € \         .V n        \        V P                  \        4      '       d-   V P                  V P                  4       V P                  4        M"V P                  V P                  ,          V n        ^ V n	        V P                  4        R# )z*implement actions at beginning of documentN)Ú	PageBeginr¡  r½   Ú_firstPageTemplateIndexrB   r|   Ú_setPageTemplaterQ  ÚpageTemplateÚpageÚbeforeDocumentrT   s   &r)   Úhandle_documentBeginÚ$BaseDocTemplate.handle_documentBegin[  sj   € ä"˜ˆŒÜ�d×2Ñ2´4×8Ò8Ø×(Ñ(¨×)EÑ)EÔFØ×!Ñ!Õ#à $× 2Ñ 2°4×3OÑ3OÕ PˆDÔØˆŒ	Ø×ÑÖr(   c                óì  € V ;P                   ^,          un         V P                  '       d'   \        P                  RV P                   ,          4       V P                  P                  V P                  V 4       V P                  P                  V P                  V 4       V P                  P                  V P                  V 4       V P                  P                   F  qP                  4        K  	  V P                  4        ^ V n        \        V R4      '       d   V =V P                  P                  ^ ,          V n        V P                  V P                  n        V P!                  V P"                  R7       R# )zTPerform actions required at beginning of page.
shouldn't normally be called directlyzbeginning page %dÚ_nextFrameIndex)ÚpageTopFlowablesN)r­  ra  ÚloggerÚdebugr¬  r÷   rö   r
  rê   ré   Ú_resetÚ
beforePagerˆ  r4   r²  rÈ   Úhandle_frameBeginrŒ  )rI   r5   s   & r)   Úhandle_pageBeginÚ BaseDocTemplate.handle_pageBeginf  sü   € ð 	�	Š	�Q��	Ø�;�;ˆ;œŸ™Ð%8¸4¿9¹9Õ%DÔEØ×Ñ×(Ñ(¨¯©°4Ô8Ø×Ñ×'Ñ'¨¯	©	°$Ô7Ø×Ñ× Ñ  §¡¨4Ô0Ø×"Ñ"×)Ô)ˆA¯8©8®:Ñ)Ø�‰Ôà%&ˆÔ"Ü�4Ð)×*Ò*ØÐ$Ø×&Ñ&×-Ñ-¨aÕ0ˆŒ
Ø ŸK™Kˆ�
‰
ÔØ×Ñ°×0FÑ0FÐÖGr(   c                óž  € \        V R 4      '       d   V P                  P                  V n        R# \        V R4      '       d'   V P                  V P
                  ,          V n        V =R# V P                  P                  '       dJ   V P                  V P                  P                  4       V P                  V P
                  ,          V n        R# R# ©Ú_nextPageTemplateCycleÚ_nextPageTemplateIndexN)r4   r½  rP   r¬  rQ  r¾  rí   r|   rT   s   &r)   r«  Ú BaseDocTemplate._setPageTemplatex  s›   € Ü�4Ð0×1Ò1à $× ;Ñ ;× FÑ FˆDÖÜ�TÐ2×3Ò3Ø $× 2Ñ 2°4×3NÑ3NÕ OˆDÔØÒ+Ø×Ñ×3×3Ð3Ø×(Ñ(¨×):Ñ):×)OÑ)OÔPØ $× 2Ñ 2°4×3NÑ3NÕ OˆDÖñ 4r(   c                ó   € \        V4      '       d   \        V R . 4      # \        V\        4      '       dU   T\	        V R4      '       d*   V P
                  V P                  ,          P                  8H  # V P                  P                  8H  # \        V\        4      '       dp   ^ Tu;8:  d   \        V P
                  4      8  dL   M R# \	        V R4      '       d   WP                  8H  # WP
                  P                  V P                  4      8H  # R# R# r¼  )r   r3   r½   r   r4   rQ  r¾  rè   r¬  r  rN   Úfind)rI   Únpts   &&r)   Ú_samePTÚBaseDocTemplate._samePTƒ  sû   € Ü��:Š:Ü˜4Ð 8¸Ó<Ð<Ü�cœ(×#Ò#ØÔQXÐY]Ð^v×QwÒQw˜4×-Ñ-¨d×.IÑ.IÕJ×MÑMñ  Sð  Sð  ~B÷  ~Oñ  ~O÷  ~Rñ  ~Rñ  Sð  SÜ�cœ#×Ò 1 cÖ#A¬#¨d×.@Ñ.@Ó*A×#AÐ#AÜ�tÐ4×5Ò5Ø×7Ñ7Ñ7Ð7Ø×*Ñ*×/Ñ/°×0AÑ0AÓBÑBÐBñ $BÑr(   c                ól  € V P                  R4       V P                  P                  V n        V P                  P                  V n        V P                  P                  V n        V P
                  ^ 8X  d   V ;P                  ^,          un        M^ V n        V P                  V P                  8¼  d     RV P                  ,          p\        V4      hV P                  '       d+   V P                  RV P                  P                  4       4       V P                  P                  V P                  V 4       V P                  P                  V P                  V 4       V P                  4        V P                   '       d'   \"        P%                  RV P&                  ,          4       V P                  P)                  \+        V P                  RV P,                  4      4       V P                  P/                  4        V P1                  4        V P                  ^ 8X  d    V P2                  P5                  \6        4       R# )zEshow the current page
check the next page template
hang a page begin
zrMore than %d pages generated without content - halting layout.  Likely that a flowable is too large for any frame.ÚPAGEzending page %dr`  N)r­  rÈ   )Ú_removeVarsrÈ   rÓ   rÔ   r�  rˆ  r‰  rŠ  r   r†  rö   ÚgetPageNumberr¬  r  rë   Ú	afterPagera  r´  rµ  r­  ÚsetPageRotationr3   r`  ÚshowPager«  r¡  r*  r©  )rI   Úidents   & r)   Úhandle_pageEndÚBaseDocTemplate.handle_pageEnd�  sŸ  € ð
 	×ÑÐ)Ô*Ø $§
¡
× ;Ñ ;ˆÔØ!%§¡×!=Ñ!=ˆÔØŸ™×-Ñ-ˆŒà×%Ñ%¨Ô*Ø×Ò Õ!Öà ˆDÔØ×Ñ˜t×6Ñ6Ô6Øð Mð  PT÷  Pgñ  Pgõ  g�ä! %Ó(Ð(ð ××ÐØ× Ñ  ¨¯©×)@Ñ)@Ó)BÔCØ×Ñ×+Ñ+¨D¯I©I°tÔ<Ø×Ñ×'Ñ'¨¯	©	°4Ô8Ø�N‰NÔØ�{�{ˆ{œFŸL™LÐ)9¸D¿I¹IÕ)EÔFØ�I‰I×%Ñ%¤g¨d×.?Ñ.?À
È4Ï=É=Ó&YÔZØ�I‰I×ÑÔ Ø×!Ñ!Ô#Ø×Ñ Ô"ØØ�‰×ÑœYÖ'r(   c                óà   € V P                   '       d   V'       g   V P                  4        R# \        V P                  4      p\        V P                  4      V8X  d   V P	                  4        K,  R# )z+some might choose not to end all the framesN)r_  rÍ  rN   r¡  Úhandle_frameEnd)rI   Úslowr¿   s   && r)   Úhandle_pageBreakÚ BaseDocTemplate.handle_pageBreak°  sL   € à××Ð¯Ø×ÑÖ!ä�D—M‘MÓ"ˆAÜ�d—m‘mÓ$ aÔ'Ø×$Ñ$Ö&ñ (r(   c                ó  € V P                   pVP                  '       dY   V P                   P                  ;'       g    V P                  pV'       d'   V P                   P                  V P                  V4       V P
                  Vn        V P                  Vn        V P                  Vn        V'       d   V P                  P                  V4       V P                  '       d(   V P                  P                  V P                  4       R# R# )z&What to do at the beginning of a frameN)rÈ   rÝ   rR  ÚdrawBoundaryrö   rÓ   rÔ   r�  r¡  Úextendr‹  )rI   r§   r³  r5   Úboundarys   &&&  r)   r¸  Ú!BaseDocTemplate.handle_frameBegin¹  s²   € à�J‰JˆØ�8�8ˆ8Ø—z‘z×.Ñ.×CÐC°$×2CÑ2CˆHßØ—
‘
×'Ñ'¨¯	©	°(Ô;Ø!×2Ñ2ˆÔØ"×4Ñ4ˆÔØ—n‘nˆŒßØ�M‰M× Ñ Ð!1Ô2Ø××ÐØ�M‰M× Ñ  ×!3Ñ!3Ö4ñ r(   c                óB  € V P                  R4       V P                  P                  V n        V P                  P                  V n        V P                  P                  V n        \        V R4      '       d]   V P                  P                  V P                  ,          V n        V P                  V P                  n	        V =V P                  V4       R# V P                  p\        VR4      '       g!   W P                  P                  R,          J d   V P                  4        RV n        R# V P                  P                  V P                  P                  P                  V4      ^,           ,          V n        V P                  V P                  n	        V P                  4        R# )z�Handles the semantics of the end of a frame. This includes the selection of
the next frame or if this is the last frame then invoke pageEnd.
r²  Ú	lastFrameN)rÈ   éÿÿÿÿ)rÇ  rÈ   rÓ   rÔ   r�  r4   r¬  ré   r²  ra  r¸  rÍ  Úindex)rI   r§   r5   s   && r)   rÐ  ÚBaseDocTemplate.handle_frameEndÈ  s(  € ð 	×Ñ˜Ô$Ø $§
¡
× ;Ñ ;ˆÔØ!%§¡×!=Ñ!=ˆÔØŸ™×-Ñ-ˆŒä�4Ð)×*Ò*Ø×*Ñ*×1Ñ1°$×2FÑ2FÕGˆDŒJØ $§¡ˆD�J‰JÔØÐ$Ø×"Ñ" 6Ö*à—
‘
ˆAÜ�q˜×%Ò%¨×.?Ñ.?×.FÑ.FÀrÕ.JÓ)JØ×#Ñ#Ô%Ø!�–
à!×.Ñ.×5Ñ5°d×6GÑ6G×6NÑ6N×6TÑ6TÐUVÓ6WÐZ[Õ6[Õ\�”
Ø$(§K¡K�—
‘
Ô!Ø×&Ñ&Ö(r(   c                ó&  € \        V\        4      '       dn   \        V R4      '       d   V =V P                   F7  pVP
                  V8X  g   K  V P                  P                  V4      V n         R# 	  \        RV,          4      h\        V\        4      '       d   \        V R4      '       d   V =Wn        R# \        V4      '       dÂ   \        4       pV Fq  p^ pVR8X  d   \        V4      Vn        K  V P                   F)  pVP
                  V8X  g   K  VP                  V4       ^pK+  	  V'       d   Ka  \        RV,          4      h	  V'       g   \        R4      hVP                  \        V4      8”  d   \        R4      hW0n        R# \        R4      h)	z<On endPage change to the page template with name or index ptr½  Núcan't find template('%s')r   ú#Cannot find page template called %sú No valid page templates in cycleúInvalid cycle restart positionú/argument pt should be string or integer or list)r½   r   r4   r½  rQ  rè   rÜ  r¾  r€  r  r   r>   rN   rD   r*  Ú	TypeError©rI   rä   r¦  r8   ÚptnÚfounds   &&    r)   r|   Ú'BaseDocTemplate.handle_nextPageTemplateà  sL  € ä�bœ×"Ò"Ü�tÐ5×6Ò6¸DÐ<WØ×'Ô'�Ø—4‘4˜2–:Ø26×2DÑ2D×2JÑ2JÈ1Ó2M�DÔ/Úñ (ô Ð8¸Õ;Ó<Ð<Ü˜œ3×ÒÜ�tÐ5×6Ò6¸DÐ<WØ*,Ö'Ü�2�YŠYô “	ˆAÛ�Ø�Ø˜”8Ü!$ Q£�A”JÙØ×+Ô+�AØ—t‘t˜s–{ØŸ™ œØ !šñ ,÷ ‘uÜ$Ð%JÈSÕ%PÓQÐQñ ÷ Ü Ð!CÓDÐDØ—‘œC ›FÔ"Ü Ð!AÓBÐBð +,Ö'äÐMÓNÐNr(   c                óº  € \        V\        4      '       d;   V P                   F  pVP                  V8X  g   K  Vu # 	  \	        R V,          4      h\        V\
        4      '       d   V P                  V,           R# \        V4      '       dÆ   \        4       pV Fq  p^ pVR8X  d   \        V4      Vn	        K  V P                   F)  pVP                  V8X  g   K  VP                  V4       ^pK+  	  V'       d   Ka  \	        RV,          4      h	  V'       g   \	        R4      hVP                  \        V4      8”  d   \	        R4      hVP                  # \        R4      h)rß  r   rà  rá  râ  rã  N)r½   r   rQ  rè   r€  r  r   r>   rN   rD   r*  rU   rä  rå  s   &&    r)   Ú_peekNextPageTemplateÚ%BaseDocTemplate._peekNextPageTemplate  s  € Ü�bœ×"Ò"Ø×'Ô'�Ø—4‘4˜2–:Ø’Hñ (ô Ð8¸Õ;Ó<Ð<Ü˜œ3×ÒØ×Ñ˜r×"Ð"Ü�2�YŠYô “	ˆAÛ�Ø�Ø˜”8Ü!$ Q£�A”JÙØ×+Ô+�AØ—t‘t˜s–{ØŸ™ œØ !šñ ,÷ ‘uÜ$Ð%JÈSÕ%PÓQÐQñ ÷ Ü Ð!CÓDÐDØ—‘œC ›FÔ"Ü Ð!AÓBÐBØ—6‘6ˆMäÐMÓNÐNr(   c                óò  € \        V R4      '       d(   V P                  P                  V P                  ,          # V P                  p\        VR4      '       g!   WP                  P                  R,          J d»   \        V R4      '       d   V P
                  P                  pM~\        V R4      '       d   V P                  V P                  ,          pMNV P                  P                  '       d'   V P                  V P                  P                  4      pMV P                  pVP                  ^ ,          # V P                  P                  V P                  P                  P                  V4      ^,           ,          # )z(intended to be used by extreme flowablesr²  rÚ  r½  r¾  rÛ  )r4   r¬  ré   r²  rÈ   r½  rU   rQ  r¾  rí   rê  rÜ  )rI   r5   r¬  s   &  r)   Ú_peekNextFrameÚBaseDocTemplate._peekNextFrame$  s  € ä�4Ð)×*Ò*Ø×$Ñ$×+Ñ+¨D×,@Ñ,@ÕAÐAØ�J‰JˆÜ�1�[×!Ò! Q×*;Ñ*;×*BÑ*BÀ2Õ*FÓ%FÜ�tÐ4×5Ò5à#×:Ñ:×?Ñ?‘Ü˜Ð6×7Ò7Ø#×1Ñ1°$×2MÑ2MÕN‘Ø×"Ñ"×7×7Ð7Ø#×9Ñ9¸$×:KÑ:K×:`Ñ:`Óa‘à#×0Ñ0�Ø×&Ñ& qÕ)Ð)à×$Ñ$×+Ñ+¨D×,=Ñ,=×,DÑ,D×,JÑ,JÈ1Ó,MÐPQÕ,QÕRÐRr(   c                ó  € \        V\        4      '       dÄ   V P                  P                   FA  pVP                  V8X  g   K  V P                  P                  P                  V4      V n         R# 	  \        RV: RV P                  : RV P                  P                  : RV P                  P                   Uu. uF  q3VP                  3NK  	  up: 24      h\        V\        4      '       d	   Wn        R# \        R4      hu upi )z5On endFrame change to the frame with name or index fxNzcan't find frame('z') in r1   z) which has frames z'argument fx should be string or integer)
r½   r   r¬  ré   rè   rÜ  r²  r€  r  rä  )rI   Úfxr§   r5   s   &&& r)   r·   Ú BaseDocTemplate.handle_nextFrame7  s  € ä�bœ×"Ò"Ø×&Ñ&×-Ô-�Ø—4‘4˜2–:Ø+/×+<Ñ+<×+CÑ+C×+IÑ+IÈ!Ó+L�DÔ(Úñ .õ ÓUWÐX\×XiÔXiÐjn×j{Ñj{×j~Ôj~ð  SW÷  Sdñ  Sd÷  Skò  Skó  @lñ  Skð  NOð  DE÷  DHñ  DHó  AIñ  Skó  @lð  mó  nð  nÜ˜œ3×ÒØ#%Ö äÐEÓFÐFùò	 @ls   Â:Dc                óJ   € V P                  W4       V P                  V4       R# )z)change to the frame with name or index fxN)r·   rÐ  )rI   rð  r§   s   &&&r)   Úhandle_currentFrameÚ#BaseDocTemplate.handle_currentFrameD  s   € à×Ñ˜bÔ(Ø×Ñ˜VÖ$r(   c                ó(  € V^ ,          p\        VR4      '       d   \        VR4       R# \        VR4      '       d5   VP                  ^8X  d$   ^Vn        VP	                  ^ \        4       4       R# \        VR4      '       d[   \        VP                  R4      '       d?   VP                  P                  ^8X  d$   ^Vn        VP	                  ^ \        4       4       R# \        VR4      '       d5   VP                  ^8X  d$   ^Vn        VP	                  ^ \        4       4       R# \        VR4      '       d_   \        VP                  R4      '       dA   VP                  P                  ^8X  d$   ^Vn        VP	                  ^ \        4       4       R# R# R# R# )zKpreprocessing step to allow pageBreakBefore and frameBreakBefore attributesÚ_skipMeNextTimeNÚpageBreakBeforeÚstyleÚframeBreakBefore)	r4   rF  r÷  rö  Úinsertrß   rø  rù  Ú
FrameBreak)rI   r  Úfirsts   && r)   Úhandle_breakBeforeÚ"BaseDocTemplate.handle_breakBeforeI  sF  € à˜!•ˆô �5Ð+×,Ò,Ü�EÐ,Ô-Ùô �5Ð*×+Ò+°×0EÑ0EÈÔ0JØ$%ˆEÔ!Ø�L‰L˜œI›KÔ(ÙÜ�5˜×!Ò!¤g¨e¯k©kÐ;L×&MÒ&MÐRW×R]ÑR]×RmÑRmÐqrÔRrØ$%ˆEÔ!Ø×Ñ˜Q¤	£Ô,ÙÜ�5Ð+×,Ò,°×1GÑ1GÈ1Ô1LØ$%ˆEÔ!Ø×Ñ˜Q¤
£Ô-ÙÜ�5˜×!Ò!¤g¨e¯k©kÐ;M×&NÒ&NÐSX×S^ÑS^×SoÑSoÐstÔStØ$%ˆEÔ!Ø×Ñ˜Q¤
£Ô-Ùñ TuÑ&NÑ!r(   c                ó–  € ^ p\        V4      pW#8  d?   W,          P                  4       '       d#   \        W,          4      '       d   V^,          pKD  V'       dð   W#8  d!   \        W,          4      '       d
   V^,          pV P                  VRV 4      p\	        V RR4      pV'       dc   VP
                  RR  FN  p\        VR4      '       d   V! \        VRVP                  34       MV! \        VR34       ^ VP                  R&   KP  	  M%VP
                  RR  F  p^ VP                  R&   K  	  VRV1 VP                  ^ V4       R# R# )zimplements keepWithNextNÚ_multiBuildEditsÚkeepWithNextrÛ  )rN   ÚgetKeepWithNextrO  rj  r3   Ú_contentr4   r�  r  rF  Ú__dict__rú  )rI   r  Úir¿   ÚKÚmber5   s   &&     r)   Úhandle_keepWithNextÚ#BaseDocTemplate.handle_keepWithNexte  s  € àˆÜ�	‹NˆØŒc�i•l×2Ñ2×4Ò4¼À)Å,×9OÒ9OÐQRÐVWÕQWÒQRßØŒs”x 	¥×-Ò-¨q°A­v¨qØ×&Ñ& y°°! }Ó5ˆAÜ˜$Ð1°$Ó7ˆCßØŸ™ C R›�AÜ˜q ×0Ò0ÙœW Q ~°a·n±nÐEÕFáœW Q ~Ð6Ô7Ø12�A—J‘J˜~Ó.ò )ð Ÿ™ C R›�AØ12�A—J‘J˜~Ó.ñ )à˜"˜1˜"�Ø×Ñ˜Q˜qÖ!ñ r(   c                óx   € V'       d   W1n          VP                  V4      V'       d   V= # #   T'       d   T= i i ; irS   )Ú_framerŒ   )rI   r5   r‹   rÈ   s   &&&&r)   Ú_fIdentÚBaseDocTemplate._fIdent{  s-   € ß˜U”(ð	#Ø—:‘:˜fÓ%ç˜!™(ˆuø�u˜!™(ˆuús   �, ¬9c           	     ó¦  € V P                  V4       V^ ,          pV'       d,   V P                  V4       V P                  V4       V^ ,          pV^  Vf   R# \        V\        4      '       d¥   VP
                  pV'       dE   V P                  V4      '       g.   \        V4      pVP                  V 4       V P                  V4       \        V\        4      '       d   V P                  ^R7       MV P                  4        V P                  V4       R# \        V\        4      '       d%   VP                  V 4       V P                  V4       R# V P                  pV P                  pVP                  W%V P                   R7      '       dN   \        V\"        4      '       g+   V ;P$                  ^,          un        V P                  V4       \'        W4       R# V P                   '       d   VP)                  W%4      p\+        V4      pM^ pV'       dé   \        X^ ,          \        \        \        \,        34      '       g¶   VP                  V^ ,          V^ R7      '       gK   RWpP.                  V P1                  V^<V4      V P1                  V^ ,          ^<V4      3,          p\3        V4      hV ;P$                  ^,          un        V P                  V^ ,          4       VR,          VR&   \'        W4       R# WaR&   R# \5        VR4      '       d   RV P1                  V^<V4      \7        V4      V P.                  V P                  P8                  V P                  P;                  4       V P<                  P8                  3,          p\3        V4      h^Vn        \A        V R	R4      p	V	'       d   V	! \B        VR34       VPE                  ^ V4       V PG                  4        R# )
z<try to handle one flowable from the front of list flowables.N)rÑ  )ÚtrySplitz/Splitting error(n==%d) on page %d in
%s
S[0]=%srz   r  Ú
_postponedz?Flowable %s%s too large on page %d in frame %r%s of template %rr   )$ÚfilterFlowablesrý  r  r½   rß   rÚ   rÃ  r   rƒ   ÚafterFlowableÚSlowPageBreakrÒ  r   rÈ   rö   r,  rW  r   rˆ  r  ÚsplitrN   Ú
DDIndenterr­  r  r   r4   r9   rè   Ú_aSpaceStringr¬  r  r3   rF  rú  rÐ  )
rI   r  r5   rÂ  rÈ   rö   r  r¿   rÌ  r  s
   &&        r)   r¢  ÚBaseDocTemplate.handle_flowable‚  s*  € ð
 	×Ñ˜YÔ'à�a�LˆßØ×#Ñ# IÔ.Ø×$Ñ$ YÔ/Ø˜!•ˆAØ�aˆLØŠ9Ùä�aœ	×"Ò"Ø—.‘.ˆCß˜4Ÿ<™<¨×,Ò,Ü$ SÓ)�Ø—	‘	˜$”Ø×"Ñ" 3Ô'Ü˜!œM×*Ò*Ø×%Ñ%¨1Ð%Õ-à×%Ñ%Ô'Ø×Ñ˜qÖ!Ü˜œ.×)Ò)Ø�G‰G�DŒMØ×Ñ˜qÖ!à—J‘JˆEØ—9‘9ˆDà�y‰y˜¨4×+>Ñ+>ˆy×?Ò?Ü! !Ô$7×8Ò8Ø×.Ò.°!Õ3Õ.Ø×&Ñ& qÔ)Ü$ YÖ5à×&×&Ð&àŸ™ AÓ+�AÜ˜A›‘Aà�AßÜ% a¨¥d¬I´mÄNÔS]Ð+^×_Ò_Ø$Ÿy™y¨¨1­¨t¸a˜y×@Ò@Ø$WÐ[\×]fÑ]fÐgk×gsÑgsÐtuÐvxÐy~Ógð  AE÷  AMñ  AMð  NOð  PQõ  NRð  SUð  V[ó  A\ð  []õ  %]˜Eä"-¨eÓ"4Ð4Ø×2Ò2°aÕ7Õ2Ø×*Ñ*¨1¨Q­4Ô0Ø)*¨2­˜	 #™Ü,¨YÖ=à)* #›ä˜q ×.Ò.Ø aØ!%§¡¨a°°5Ó!9¼,Àq»/È$Ï)É)ÐUY×U_ÑU_×UbÑUbØ(,¯
©
×(@Ñ(@Ó(BÀD×DUÑDU×DXÑDXð!Zõ!Z˜ô *¨%Ó0Ð0à#$�A”LÜ! $Ð'9¸$Ó?�CßÙœW Q |Ð4Ô5Ø×$Ñ$ Q qÔ)Ø×(Ñ(Ö*r(   c                ó   € \         P                  P                  P                  4       V n        T! T;'       g    V P
                  T P                  V P                  V P                  V P                  V P                  V P                  V P                  V P                  V P                  V P                  V P                   V P"                  R7      p\%        VRR 4      ! V P&                  4       V P(                  Vn        VP-                  V P.                  4       VP1                  V P2                  4       VP5                  V P6                  4       VP9                  V P:                  4       VP=                  V P>                  4       VPA                  V PB                  4       ^ RI"H#pH$p VPJ                  PM                  4        F[  w  rg\%        W^ ,          PO                  4       VR,          ,           R4      pVf   K:  WuJ d   RR.V,          pVPQ                  Wh4       K]  	  V PR                  '       d   VPU                  V PR                  4       V# )	zàmake and return a sample canvas. As suggested by 
Chris Jerdonek cjerdonek @ bitbucket this allows testing of stringWidths
etc.

*NB* only the canvases created in self._startBuild will actually be used
in the build process.
)rì   r   r^  rd  rg  rh  ri  rî   rï   rð   rñ   rf  Ú
setEncryptc                 ó   € R # rS   r"   )rò   s   &r)   Ú<lambda>Ú-BaseDocTemplate._makeCanvas.<locals>.<lambda>ï  s   € ©Dr(   )ÚViewerPreferencesPDFDictionaryÚcheckPDFBooleanrz   NÚfalseÚtrue)+Ú	reportlabÚlibÚ	sequencerÚ	SequencerÚseqry  rì   r   r^  rd  rg  rh  ri  rî   rï   rð   rñ   rf  r3   rb  rc  Ú
_cropMarksÚ	setAuthorrY  ÚsetTitlerX  Ú
setSubjectrZ  Ú
setCreatorr[  ÚsetProducerr\  ÚsetKeywordsr]  Úreportlab.pdfbase.pdfdocr  r  ÚvalidateÚitemsÚlowerÚsetViewerPreferencer…  r›  )	rI   ry  Úcanvasmakerrö   ÚVPDÚcPDFBr�  ÚvfrO   s	   &&&      r)   Ú_makeCanvasÚBaseDocTemplate._makeCanvasÖ  s¢  € ô —=‘=×*Ñ*×4Ñ4Ó6ˆŒÙ˜8×4Ð4 t§}¡}Ø%)§]¡]Ø&*§n¡nØ,0×,@Ñ,@Ø.2×.DÑ.DØ.2×.BÑ.BØ.2×.BÑ.BØ-1×-@Ñ-@Ø&*§l¡lØ%)§[¡[Ø&*§l¡lØ'+§}¡}Ø#'§9¡9ôˆô 	��\¡.Ô1°$·,±,Ô?àŸ.™.ˆŒØ�‰�t—{‘{Ô#Ø�‰�d—j‘jÔ!Ø�‰˜Ÿ™Ô%Ø�‰˜Ÿ™Ô%Ø×Ñ˜Ÿ™Ô'Ø×Ñ˜Ÿ™Ô'÷	ð —L‘L×&Ñ&Ö(‰DˆAÜ˜˜q�TŸZ™Z›\¨!¨B­%Õ/°Ó5ˆAØŒ}Ø“;Ø  Ð(¨Õ+�AØ×(Ñ(¨Ö-ñ )ð �<�<ˆ<Ø× Ñ  §¡Ô.Øˆr(   c                ót   € V P                  4        V P                  WR 7      V n        V P                  4        R# ))ry  r2  N)rŽ  r6  rö   r¯  )rI   ry  r2  s   &&&r)   Ú_startBuildÚBaseDocTemplate._startBuild  s,   € Ø�
‰
ŒØ×$Ñ$¨hÐ$ÓOˆŒ	Ø×!Ñ!Ö#r(   c                ó´  € V P                  R4       V P                  . 8w  d:   V P                  R,          \        J d   V P                  R V P                  4        M V P                  4        V P	                  4        \        V R^4      '       d   V P                  P                  4        V P                  '       d   V P                  P                  R4       R# R# )ÚbuildÚ_doSaveN)r<  r­  rÈ   rÛ  )
rÇ  r¡  r©  r£  rÒ  r3   rö   Úsaver…  r›  rT   s   &r)   Ú	_endBuildÚBaseDocTemplate._endBuild  s•   € Ø×ÑÐ1Ô2Ø�=‰=˜"Ô §¡¨rÕ!2´iÓ!?Ø—‘˜bÐ!Ø×ÑÕ à×ÑÔ Ø×!Ñ!Ô#ä�4˜	 !×$Ò$ d§i¡i§n¡nÔ&6Ø�<�<ˆ<˜Ÿ™×2Ñ2°4Ö8‰<r(   c           
     ó¼  € \        V4      pV P                  '       d.   V P                  R^ 4       V P                  R\        V4      4       V P                  W#4       V P                  pVP                  P
                  V n        ^ p Wn        \        V4      '       Ed   V P                  '       dš   V P                  R,          \        J d   \        V^ ,          \        4      '       db   V^ ,          P                  pV'       dD   V P                  V4      '       g-   \        V4      pVP                  V 4       V P!                  4        V^  V P#                  4         V^ ,          pV P%                  V4       V^,          pT P                  '       g   EK  T P                  RT\        T4      ,
          4       EK+   V=V P                  VP                  n        V P?                  4        V P                  '       d   V P                  R^ 4       R# R#    \'        XR4      '       d³   TP(                  '       d¡   \*        P,                  ! 4       ^,          p	\/        T	P0                  4      p
TP(                  pT
^ ;;,          RTP2                  TP4                  TP6                  TP8                  TP:                  3,          ,          uu&   \=        T
4      T	n        h ; i  T=i ; i)	a—  Build the document from a list of flowables.
If the filename argument is provided then that filename is used
rather than the one provided upon initialization.
If the canvasmaker argument is provided then it will be used
instead of the default.  For example a slideshow might use
an alternate canvas which places 6 slides on a page (by
doing translations, scalings and redefining the page break
operations).
ÚSTARTEDÚSIZE_ESTÚ
_traceInfoz1
(srcFile %s, line %d char %d to line %d char %d)ÚPROGRESSÚFINISHEDNrÛ  ) rN   r†  r9  rö   Ú_docÚinfoÚ
_savedInfoÚ_doctemplater¡  r©  r½   ÚPageBreakIfNotEmptyrÚ   rÃ  r   rƒ   r«  r£  r¢  r4   rD  ÚsysÚexc_inforB   rG   ÚsrcFileÚstartLineNoÚstartLinePosÚ	endLineNoÚ
endLinePosrv   r?  )rI   r  ry  r2  ÚflowableCountrö   ÚhandledrÂ  rü  ÚexcrG   Útrs   &&&&        r)   r<  ÚBaseDocTemplate.build  s3  € ô ˜I›ˆØ××ÐØ×Ñ˜Y qÔ)Ø×Ñ˜Z¬¨Y«Ô8Ø×Ñ˜Ô.ð �y‰yˆØŸ)™)Ÿ.™.ˆŒØˆð!	"Ø $ÔÜ�i—.“.Ø—=—=�= T§]¡]°2Õ%6¼)Ó%CÌ
ÐS\Ð]^ÕS_Ô`s×HtÒHtØ# A�,×3Ñ3�Cß 4§<¡<°×#4Ò#4Ü,¨SÓ1˜ØŸ	™	 $œØ×-Ñ-Ô/Ø! !˜Ø×"Ñ"Ô$ðØ% a�L�EØ×(Ñ(¨Ô3Ø˜q•L�Gð  ×#×#Ó#Ø×$Ñ$ Z°ÄÀIÃÕ0N×Oð; !ð> Ð!ð Ÿ™ˆ�	‰	Œà�‰ÔØ××ÐØ×Ñ˜Z¨Ö*ñ øð3ä˜u l×3Ò3¸×8H×8HÐ8HÜ!Ÿlšl›n¨QÕ/˜Ü# C§H¡H›~˜Ø"×-Ñ-˜Ø˜QŸÐ#WØŸJ™JØŸN™NØŸO™OØŸL™LØŸM™Mð[õ $õ ›ô $)¨£;˜œØûð Ñ!úsD   Â)K Â0AK ÄK Ä?K Å#H Å=K Æ%K È%KÈ3B!KËK ËKc                óf   € ^pV P                    F  pVP                  4       '       d   K  ^ p V# 	  V# )z:Called by multi-build - are all cross-references resolved?)r„  ra   )rI   ÚallHappyr5   s   &  r)   Ú_allSatisfiedÚBaseDocTemplate._allSatisfiedY  s6   € àˆØ×(Ô(ˆAØ—=‘=—?”?Ø�ØØˆñ	 )ð ˆr(   c                óÈ   € V P                    FC  p\        VRV 4      p W@8X  d   V P                  Vn        VP	                  W4       W@8X  d   V=KC  KE  	  R#   Y@8X  d   T=i i ; i)zForward to any listenersÚ_canvN)r„  r3   rö   r]  rf   )rI   rd   re   Úlr]  s   &&&  r)   rf   ÚBaseDocTemplate.notifyb  sc   € à×(Ô(ˆAÜ˜A˜g dÓ+ˆEð Ø”;Ø"Ÿi™i�A”GØ—‘˜Ô%à”;Øšñ ó )øð ”;Ø™ð ús   ž(AÁA!c                óŠ   € \         '       d   \        RWP                  3,          4       V P                  V P                  V&   R# )zhook to register a page numberz)pageRef called with label '%s' on page %dN)r   Úprintr­  rƒ  )rI   r  s   &&r)   ÚpageRefÚBaseDocTemplate.pageRefn  s5   € ç‹7”EÐEØ—9‘9ðIõ ô à $§	¡	ˆ�‰�uÓr(   c                ó¢  € . V n         V F6  pVP                  4       '       g   K  V P                   P                  V4       K8  	  ^ V n        ^ p. pVP                  V n         V^,          pV P
                  '       d   V P                  RV4       \        '       d7   \        P                  P                  R\        V4      ,           R,           4       V P                    F  pVP                  4        K  	  VR,          pV P                  ! V3/ VB  V P                    F  pVP                  4        K  	  V P                  4       p	V	'       d#   ^ V n        V P                  P!                  4        MJWR8”  d   \#        RV,          4      hV'       g   EK/  VP%                  ^ 4      p
V
^ ,          ! V
R,          !   K2  V =\        '       d   \'        R4       V# )zWMakes multiple passes until all indexing flowables
are happy.

Returns number of passesÚPASSzbuilding pass z...r&  z*Index entries not resolved after %d passesrz   Úsaved)r„  r]   r*  r=  r   r†  r   rL  ÚstdoutÚwriter‰   rj   r<  rn   rZ  rö   r>  Ú
IndexErrorÚpopra  )rI   ÚstoryÚ	maxPassesÚ	buildKwdsÚthingÚpassesr  ÚflÚ	tempStoryÚhappyÚes   &&&,       r)   Ú
multiBuildÚBaseDocTemplate.multiBuildt  sr  € ð #%ˆÔãˆEØ×Ñ×!Ô!Ø×'Ñ'×.Ñ.¨uÖ5ñ ð
 ˆŒØˆØˆØ #§
¡
ˆÔØØ�a�KˆFØ××ÐØ× Ñ  ¨Ô0ß‹wœŸ
™
×(Ñ(Ð)9¼#¸f»+Õ)EÈÕ)MÔNà×-Ô-�Ø—‘Ö ñ .ð ˜a�ˆIØ�JŠJ�yÑ. IÒ.ð ×-Ô-�Ø—‘–ñ .ð ×&Ñ&Ó(ˆEçØ �”Ø—	‘	—‘Ô ØØÔ!Ü Ð!MÐPYÕ!YÓZÐZ÷ ’#Ø—G‘G˜A“J�Ø�!–�a˜•e”àÐ!ß‹7”E˜'”NØˆr(   c                ó   € R# )z6This is called after initialisation of the base class.Nr"   rT   s   &r)   r�  ÚBaseDocTemplate.afterInit®  rp   r(   c                ó   € R# )z=This is called before any processing is
done on the document.Nr"   rT   s   &r)   r®  ÚBaseDocTemplate.beforeDocument²  rl   r(   c                ó   € R# )z‚This is called at the beginning of page
processing, and immediately before the
beforeDrawPage method of the current page
template.Nr"   rT   s   &r)   r·  ÚBaseDocTemplate.beforePage·  r  r(   c                ó   € R# )zrThis is called after page processing, and
immediately after the afterDrawPage method
of the current page template.Nr"   rT   s   &r)   rÉ  ÚBaseDocTemplate.afterPage¾  rh   r(   c                ó   € R# )zªcalled to filter flowables at the start of the main handle_flowable method.
Upon return if flowables[0] has been set to None it is discarded and the main
method returns.
Nr"   )rI   r  s   &&r)   r  ÚBaseDocTemplate.filterFlowablesÄ  r  r(   c                ó   € R# )z)called after a flowable has been renderedNr"   )rI   Úflowables   &&r)   r  ÚBaseDocTemplate.afterFlowableË  rp   r(   c                óô   € \        V\        4      '       g   \        V4      pVP                  4       pVP                  4       pV P	                  VP                  4       : R VP                  4       : R2V4       R# )z=(r2   N)r½   r   r‰   ÚstripÚdocExec)rI   ÚvarÚexprÚlifetimes   &&&&r)   Ú	docAssignÚBaseDocTemplate.docAssignÐ  sL   € Ü˜$œx×(Ò(¬s°4«y¨$Ø�Z‰Z‹\ˆØ�I‰I‹KˆØ�‰ §	¡	¦¨D¯J©J®LÐ9¸(ÖCr(   c                ó  € VP                  4       pV P                  p\        VP                  4       4      p W P                  9  d   \        R V: RV P                  : 24      h\        P                  ! VP                  4       / V4       T P                  TP                  4        Uu. uF  qUT9  g   K  TNK  	  upT4       R#    T Uu. uF  qUT9  g   K  TNK  	  Mu upi ppT F  pY5 K  	  \        RT: RT: R24        L|; iu upi )zbad lifetime z not in z	
docExec z
 lifetime=z	 failed!
N)
r„  r{  rB   r~  Ú_allowedLifetimesr€  r   Úrl_safe_execr   Ú_addVars)rI   Ústmtrˆ  ÚNSÚK0r�  ÚK1s   &&&    r)   r…  ÚBaseDocTemplate.docExecÖ  sÓ   € Ø�Z‰Z‹\ˆØ�?‰?ˆÜ�—‘“	‹?ˆð	VØ×5Ñ5Ô5Ý »hÀt×G]ÓG]Ð!^Ó_Ð_Ü×%Ò% d§j¡j£l°2°bÔ9ð 	�‰ "§'¡'¤)Ó;¡)˜Q¸©{—q�q¡)Ñ;¸HÖEøð	VÙÓ/™R˜¨B¡;—!�!šRùÒ/ˆBÐ/Û�Ø’Eñ åÃdË8ÐTÖUüÚ;s*   ·AC Â'D	Â4D	ÃDÃ
CÃCÃ'Dc                óä   € V P                   pV F]  pVP                  4        F  pWE9   g   K  VP                  V4       K  	  VP                  V\	        . 4      4      P                  V4       K_  	  R# )z*add namespace variables to lifetimes listsN)r|  ÚvaluesÚremoveÚ
setdefaultÚsetr,  )rI   Úvarsrˆ  ÚLTr†  rO   s   &&&   r)   rŽ  ÚBaseDocTemplate._addVarså  sT   € à�?‰?ˆÛˆCØ—Y‘Y–[�Ø–8Ø—H‘H˜S–Mñ !ð �M‰M˜(¤3 r£7Ó+×/Ñ/°Ö4ó	 r(   c                ó¨   € V P                   pV P                  pV F!  pVP                  V. 4       F  p W5 K  	  W$ K#  	  R#   \         d     K   i ; i)z9remove namespace variables for with lifetime in lifetimesN)r|  r{  r—  ÚKeyError)rI   Ú	lifetimesrš  r�  rˆ  r�  s   &&    r)   rÇ  ÚBaseDocTemplate._removeVarsî  sX   € à�?‰?ˆØ�?‰?ˆÛ!ˆHØ—]‘] 8¨BÖ/�ðØšñ 0ð
 ’ó "øô  ô Úðús   ´AÁAÁAc                ó˜   €  \         P                   ! VP                  4       / V P                  4      #    \        R T,          4        R# ; i)z
docEval %s failed!
N)r   r„  r{  r   )rI   r‡  s   &&r)   ÚdocEvalÚBaseDocTemplate.docEvalú  s;   € ð	?Ü×,Ò,¨T¯Z©Z«\¸"¸T¿_¹_ÓMÐMøð	?ÜÐ6¸Õ=×>ús	   ‚/2 ²A	c                óš   <€ \         '       d2   R V P                  P                   RV P                  P                   R2# \        SV `  4       # )Ú<Ú.z object at 0x?hidden?>)r   r—   r$   r#   ÚsuperÚ__repr__)rI   r—   s   &€r)   r§  ÚBaseDocTemplate.__repr__   sF   ø€ ßgpÓgp�a˜Ÿ™×1Ñ1Ð2°!°D·N±N×4KÑ4KÐ3LÐLbÐcð -Ü™Ñ)Ó+ð-r(   )!rˆ  r=  r‰  rŠ  r‡  r�  r¡  r„  rÓ   r|  r   r{  r²  r½  r¾  r…  r†  rƒ  rŒ  rÔ   r•  rI  r‹  r–  rö   ry  rÈ   r-   r­  r¬  rQ  r%  r+   r"   rS   r”  r@   )NN)é
   )r­  rÈ   r<  Úforever)Er#   r$   r%   r&   rq   r   r   ÚKeepTogetherr}  r  rª  ru   rŽ  r›  rž  r£  r‚  r¯  r¹  r«  rÃ  rÍ  rÒ  r¸  rÐ  r|   rê  rí  r·   ró  rý  r  r  r¢  Ú_handle_documentBeginÚ_handle_pageBeginÚ_handle_pageEndÚ_handle_frameBeginÚ_handle_frameEndÚ_handle_flowableÚ_handle_nextPageTemplateÚ_handle_currentFrameÚ_handle_nextFramer   ÚCanvasr6  r9  r?  r<  rZ  rf   rb  rt  r�  r®  r·  rÉ  r  r  rŒ  r‰  r…  rŽ  rÇ  r¡  r§  r'   rX   Ú__classcell__)r—   rZ   s   @@r)   r   r   ¨  sB  ù‡ € ñ6ðn-�J˜ð -Ø# Bð-à" 1ð-ð ! ð-ð " $ð	-ð
   ð-ð # 4ð-ð % Qð-ð ˜Dð-ð ˜Tð-ð ˜dð-ð ˜dð-ð ˜tð-ð ˜rð-ð   ð-ð & dð-ð  & añ!-ð" ˜qð#-ð$ ˜Qð%-ð& ˜tð'-ð(   ð)-ð* (¨ð+-ð, & tð--ð. ˜Dð/-ð0 & tð1-ð2 & tð3-ð4 % dð5-ð6 ˜tð7-ð8 ˜dð9-ð: ˜tð;-ð<  ð=-ð> (¨ð?-ð@ " 4ðA-ðB " 4ñC-ðD # DØ Ø" DØ+¨TØ Ø Ø Ø Ø Ø" DØ˜dñY-€Ið\ ÐØÐò,ò\:òò ò0ò
)ò	òHò$	PòCò!(ôF'ô5ô)ò0#OòJOò>Sô&Gô%ò
ò8"ô,#òG+ðT 1ÐØ(ÐØ$€OØ*ÐØ&ÐØ&ÐØ6ÐØ.ÐØ(Ðà#'°V·]±]ô .ð` $(°V·]±]ô $ò

9ð )-¸&¿-¹-ô @+òDò
 ò*ô4òtòò
òòòð 9ÐòDòFò5ò
ò?÷-õ -r(   c                   óR   a € ] tR tRt o RtRtR t]]]P                  3R lt
RtV tR# )r   i  až  A special case document template that will handle many simple documents.
See documentation for BaseDocTemplate.  No pageTemplates are required
for this special case.   A page templates are inferred from the
margin information and the onFirstPage, onLaterPages arguments to the build method.

A document which has all pages with the same look except for the first
page may can be built using this special approach.
c                óH   € V P                  4        V P                  R4       R# )zSoverride base method to add a change of page template after the firstpage.
        ÚLaterN)r­  r²  rT   s   &r)   r¹  Ú"SimpleDocTemplate.handle_pageBegin  s   € ð 	×ÑÔ Ø×%Ñ% gÖ.r(   c           
     ó:  € V P                  4        \        V P                  V P                  V P                  V P
                  RR7      pV P                  \        RWRV P                  R7      \        RWSV P                  R7      .4       V\        J d5   \        V R4      '       d#   V P                  V P                  ^ ,          n        V\        J d5   \        V R4      '       d#   V P                  V P                  ^,          n        \        P!                  WVR7       R	# )
aÛ  build the document using the flowables.  Annotate the first page using the onFirstPage
function and later pages using the onLaterPages function.  The onXXX pages should follow
the signature

   def myOnFirstPage(canvas, document):
       # do annotations and modify the document
       ...

The functions can do things like draw logos, page numbers,
footers, etcetera. They can use external variables to vary
the look (for example providing page numbering or section names).
Únormal)rè   ÚFirst)rè   ré   rê   rì   r¹  ÚonFirstPageÚonLaterPages)r2  N)rŽ  r   rS  rV  r+   r-   r‚  r   rì   r<   r4   r¾  rQ  r÷   r¿  r   r<  )rI   r  r¾  r¿  r2  ÚframeTs   &&&&& r)   r<  ÚSimpleDocTemplate.build  sÙ   € ð 	�
‰
ŒÜ�t—‘¨×(9Ñ(9¸4¿:¹:ÀtÇ{Á{ÐW_Ô`ˆØ×Ñœ|¨w¸fÐbf×boÑboÔpÜ$¨°vÐ\`×\iÑ\iÔjðlô 	màœ*Ó$¬°°m×)DÒ)DØ37×3CÑ3CˆD×Ñ˜qÕ!Ô0Øœ:Ó%¬'°$°~×*FÒ*FØ37×3DÑ3DˆD×Ñ˜qÕ!Ô0Ü×Ñ˜d¸+ÐÖFr(   r"   N)rQ  )r#   r$   r%   r&   rq   r  r¹  r<   r   rµ  r<  r'   rX   rY   s   @r)   r   r     s3   ø‡ € ñð *Ðò/ð *4À*ÐZ`×ZgÑZg÷ Gò Gr(   c                ó,   € \        RW3,          4       R# )aá  Example prototype for progress monitoring.

This aims to provide info about what is going on
during a big job.  It should enable, for example, a reasonably
smooth progress bar to be drawn.  We design the argument
signature to be predictable and conducive to programming in
other (type safe) languages.  If set, this will be called
repeatedly with pairs of values.  The first is a string
indicating the type of call; the second is a numeric value.

typ 'STARTING', value = 0
typ 'SIZE_EST', value = numeric estimate of job size
typ 'PASS', value = number of this rendering pass
typ 'PROGRESS', value = number between 0 and SIZE_EST
typ 'PAGE', value = page number of page
type 'FINISHED', value = 0

The sequence is
    STARTING - always called once
    SIZE_EST - always called once
    PROGRESS - called often
    PAGE - called often when page is emitted
    FINISHED - called when really, really finished

some juggling is needed to accurately estimate numbers of
pages in pageDrawing mode.

NOTE: the SIZE_EST is a guess.  It is possible that the
PROGRESS value may slightly exceed it, or may even step
back a little on rare occasions.  The only way to be
really accurate would be to do two passes, and I don't
want to take that performance hit.
zPROGRESS MONITOR:  %-10s   %dN)ra  )Útypr  s   &&r)   Ú
progressCBrÄ  ,  s   € ôD 
Ð
)¨S¨LÕ
8Ö9r(   Ú__main__)Ú_baseFontNameÚ_baseFontNameBc                 óâ  € ^ RI Hp V P                  ^,          pV P                  ! 4        V P                  ! V4       V P
                  ! ^4       V P                  ! ^B^H^BV^H,
          4       V P                  ! \        ^4       V P                  ! ^lV^l,
          R4       V P                  ! \        ^4       V P                  ! ^\        ,          R\        ,          R4       V P                  ! 4        R# )rA   ©ÚredzTABLE OF CONTENTS DEMOç      è?z
First PageN)Úreportlab.lib.colorsrÊ  r   Ú	saveStateÚsetStrokeColorÚsetLineWidthÚlineÚsetFontrÇ  Ú
drawStringrÆ  r   ÚrestoreState©r   r;   rÊ  ÚPAGE_HEIGHTs   &&  r)   ÚmyFirstPagerÖ  R  s¬   € Ý,Ø×&Ñ& qÕ)ˆØ×ÒÔØ×Ò˜cÔ"Ø×Ò˜AÔØ�Š�B�r˜"˜[¨�^Ô,Ø�Š”~ bÔ)Ø×Ò˜#˜{¨3�Ð0HÔIØ�Š”} RÔ(Ø×Ò˜!œd�( D¬4¥K°Ô>Ø×ÒÖr(   c                 ó   € ^ RI Hp V P                  ^,          pV P                  ! 4        V P                  ! V4       V P
                  ! ^4       V P                  ! ^B^H^BV^H,
          4       V P                  ! \        ^4       V P                  ! ^\        ,          R\        ,          RVP                  ,          4       V P                  ! 4        R# )rA   rÉ  rË  zPage %dN)rÌ  rÊ  r   rÍ  rÎ  rÏ  rÐ  rÑ  rÆ  rÒ  r   r­  rÓ  rÔ  s   &&  r)   ÚmyLaterPagesrØ  _  s�   € Ý,Ø×&Ñ& qÕ)ˆØ×ÒÔØ×Ò˜cÔ"Ø×Ò˜AÔØ�Š�B�r˜"˜[¨�^Ô,Ø�Š”} RÔ(Ø×Ò˜!œd�( D¬4¥K°¸S¿X¹XÕ1EÔFØ×ÒÖr(   c                  óÀ  € . p ^ RI Hp ^ RIHp V! R4      p^Vn        ^Vn        ^ RIHp ^ RIp\        ^4       F~  pR^VP                  4       ,          ,           p\        ^\        ,          V\        ,          RV,          4      pV P                  V4       \        V! 4       V4      p	V P                  V	4       K€  	  V! R4      P                  V \        \         R	7       R# )
rA   )ÚParagraphStyle)r   r¼  )Ú
randomTextNg      à?zBox Number %dzdoctemplate.pdf)r¾  r¿  )Úreportlab.lib.stylesrÚ  Úreportlab.platypus.doctemplater   ÚfirstLineIndentÚspaceBeforeÚreportlab.lib.randomtextrÛ  ÚrandomÚrangeÚXBoxr   r*  r   r<  rÖ  rØ  )
Úobjects_to_drawrÚ  r   r¼  rÛ  rá  r  r-   r  Úparas
             r)   Úrunræ  j  s¹   € ØˆÝ7åDñ   Ó)ˆØ!#ˆÔØˆÔÝ7ÛÜ�r–ˆAØ˜A˜fŸm™m›oÕ-Õ.ˆFÜ�qœ4•x ¬$¥°À!Õ0CÓDˆCØ×"Ñ" 3Ô'Ü™Z›\¨6Ó2ˆDØ×"Ñ" 4Ö(ñ ñ 	Ð+Ó,×2Ñ2°?Ü#´ð 	3ö 	?r(   )r   r   r   r   rû  r   r   r   r	   r
   r   r   r   r   r©  r   r   )HÚ__all__Ú__version__rq   Úreportlab.platypus.flowablesr   Úreportlab.lib.unitsr   Úreportlab.libr   Úreportlab.platypus.paragraphr   Úreportlab.platypus.framesr   Úreportlab.rl_configr   r   r   Úreportlab.lib.sequencerr!  Úreportlab.pdfgenr   Úreportlab.lib.utilsr   r   r   r   r   r˜  Ú	NameErrorÚsetsr    rL  ÚloggingÚ	getLoggerr´  Ú	Exceptionr   r9   r<   rB   r>   rt   r   r   r   r	   r
   r   r±   rû  r©  rÀ   r   r   r   r   r   r  r‰   r  r   rO  r   r   rÄ  r#   rÜ  rÆ  rÇ  rÖ  rØ  ræ  r"   r(   r)   Ú<module>r÷     sÍ  ðð
€ð& €ð	€ô0 +Ý 8Ý $Ý &Ý 2Ý +ß CÑ CÛ Ý #ß ^Õ ^ð Ùó Û Ø	×	Ò	Ð/Ó	0€ô	�)ô 	òò(	ôˆdô ô&�xô ô4%M�Xô %MôN˜ô ô
	^�~ô 	^ô>˜ô >ô
AÐ+ô Aô˜ô ô'Ð"ô 'ñ  ˜Ó$€
Ù˜[Ó)€	òôv˜(ô vô.Ð"ô .ô"SÐ+ô Sô>�~ô >÷?ñ ?òB%ô	:�ô 	:÷=8ñ =8ò~a÷Z-ñ Z-ôx&G˜ô &GòP":ðH ˆzÔßBòò	ò?ñ, †Eña øðe( ô  ßÐð ús   ÁE< Å<FÆF