+
     i                          ^ RI Ht ^ RIHt ^ RIHtHtHt ^ RIH	t	 ^ 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 ^ RIHt  ! R R4      tR# )    )warn)
fromstring)get_dependentsget_rels_pathget_rel)WorkbookPackage)Workbook)DefinedNameList)read_external_link)CacheDefinition)
RecordList)PrintTitles	PrintArea)CALENDAR_MAC_1904c                   `   a  ] tR t^t o RtR	R lt]R 4       tR tR t	R t
]R 4       tRtV tR# )
WorkbookParserNc                t    Wn         W n        \        4       V n        \	        4       V n        W0n        . V n        R # N)archiveworkbook_part_namer
   defined_namesr	   wb
keep_linkssheets)selfr   r   r   s   &&&&^/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/openpyxl/reader/workbook.py__init__WorkbookParser.__init__   s-    "4,.*$    c                    V P                   f=   \        V P                  \        V P                  4      4      P                  4       V n         V P                   # r   )_relsr   r   r   r   to_dict)r   s   &r   relsWorkbookParser.rels$   s<    ::'mDD[D[6\]eegDJzzr   c                   V P                   P                  V P                  4      p\        V4      p\        P
                  ! V4      pVP                  P                  '       d   \        V P                  n
        VP                  P                  V P                  n        VP                  V P                  n        VP                  V P                  n        VP                   V n        VP"                  V P                  n        VP&                  V n        V P*                  '       g   . Vn        VP,                   Fk  pV P.                  P1                  VP2                  4      pV P                  P4                  P7                  \9        V P                   VP:                  4      4       Km  	  VP<                  '       d   VP<                  V n        VP@                  V P                  n!        R # r   )"r   readr   r   r   	from_tree
propertiesdate1904r   r   epochcodeName	code_nameactive	bookViewsviewsr   calcPrcalculationpivotCachescachesr   externalReferencesr#   getid_external_linksappendr   TargetdefinedNamesr   workbookProtectionsecurity)r   srcnodepackageext_refrels   &     r   parseWorkbookParser.parse+   sC   ll 7 78#!++D1&&&-DGGM#..77 ))nn%nn)) )+G&11G))--

+CGG##**"4<<< 2 !(!5!5D"55r   c              #     "   V P                    Fa  pVP                  '       g-   R^  R2P                  VP                  4      p\	        V4       KA  WP
                  VP                  ,          3x  Kc  	  R# 5i)z
Find all sheets in the workbook and return the link to the source file.

Older XLSM files sometimes contain invalid sheet elements.
Warn user when these are removed.
z+File contains an invalid specification for z. This will be removedN)r   r6   formatnamer   r#   )r   sheetmsgs   &  r   find_sheetsWorkbookParser.find_sheetsI   s_      [[E888CA3F\]ddejeoeopS	588,,, !s   A4A6c                   V P                   P                  4       P                  4        F  w  rVR8X  d   W P                  n         K   V P                  P                  V,          pTP                  4        F  w  rETP                  pTf   YSP                   T&   K%  TR8X  dE   \        P                  ! TP                  4      pTP                  Tn        TP                  Tn        Kp  TR8X  g   Ky   \        P                  ! TP                  4      Tn        K  	  K  	  R#   \
         d    \        RT R24        EK  i ; i  \"         d    \        RTP                   R24        K  i ; i)	zH
Bind defined names and other definitions to worksheets or the workbook
globalzDefined names for sheet index z cannot be locatedNPrint_Titles
Print_Areaz*Print area cannot be set to Defined name: .)r   by_sheetitemsr   _sheets
IndexErrorr   is_reservedr   from_stringvaluerows_print_rowscols_print_colsr   _print_area	TypeError)r   idxnamesrG   rF   defnreservedtitless   &       r   assign_namesWorkbookParser.assign_namesY   s0   
 ,,557==?JCh(-%,
 $kkm
++#04''-/(44TZZ@F(.E%(.E%-!,5,A,A$**,M) , @  5cU:LMN  % !I$**UVWX !s$   D/%E D=<D= $E('E(c                >   / pV P                    F  p\        V P                  V P                  VP                  \
        R7      pVP                  '       d7   \        V P                  VP                  VP                  \        4      pWCn        W1VP                  &   K  	  V# )z
Get PivotCache objects
)r6   cls)
r3   r   r   r#   r6   r   depsr   recordscacheId)r   dccacherg   s   &    r   pivot_cachesWorkbookParser.pivot_cachesy   so    
 ADLL$))/REzzz!$,,

EHHjQ ' aiiL  r   )r!   r   r3   r   r   r   r   r   )T)__name__
__module____qualname____firstlineno__r!   r   propertyr#   rB   rI   rb   rl   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sG     E  6<- !@  r   r   N)warningsr   openpyxl.xml.functionsr   openpyxl.packaging.relationshipr   r   r   openpyxl.packaging.workbookr   openpyxl.workbookr	   openpyxl.workbook.defined_namer
   (openpyxl.workbook.external_link.externalr   openpyxl.pivot.cacher   openpyxl.pivot.recordr   !openpyxl.worksheet.print_settingsr   r   openpyxl.utils.datetimer   r    r   r   <module>r      s=     - 
 8 & : G 0 , D 5n nr   