@sheetxl/io-xlsx 0.7.23-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +23 -0
  3. package/browser/cjs/5QaWZ2tRVhz1rf3W.cjs +1 -0
  4. package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +1 -0
  5. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
  6. package/browser/cjs/BE7AtU1GCShmJ8Yu.cjs +1 -0
  7. package/browser/cjs/CIpMN7SDVREKQUQE.cjs +6 -0
  8. package/browser/cjs/Chkqh5BZ-MJjAcPF.cjs +5 -0
  9. package/browser/cjs/D-8WoJkvdPf-79sB.cjs +2 -0
  10. package/browser/cjs/D5Y4KQhKdukOkjvA.cjs +2 -0
  11. package/browser/cjs/DWkuoJSgvcXJTdN1.cjs +1 -0
  12. package/browser/cjs/index.cjs +1 -0
  13. package/browser/cjs/sEmMmxaNBSY_o-Zb.cjs +1 -0
  14. package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +1 -0
  15. package/browser/esm/B20zuEvdeypuSU5s.mjs +3851 -0
  16. package/browser/esm/BVAAJynubTdvPOQA.mjs +24 -0
  17. package/browser/esm/CLo2oPoIised6GbD.mjs +3617 -0
  18. package/browser/esm/COSdjubnJ_UgB-Gr.mjs +111 -0
  19. package/browser/esm/CS1t46OUALKkZxTa.mjs +494 -0
  20. package/browser/esm/CS8eRkAhoCN8KdGO.mjs +52 -0
  21. package/browser/esm/CcXnQZ4Fk_nkbq2G.mjs +99 -0
  22. package/browser/esm/Ch5gA6g56cOtRvJA.mjs +2193 -0
  23. package/browser/esm/DRuB-nlH4kq_OQJ5.mjs +196 -0
  24. package/browser/esm/DoKP-E832M9vPWgU.mjs +4675 -0
  25. package/browser/esm/XoDWB6uCJVrra-pE.mjs +2623 -0
  26. package/browser/esm/index.mjs +8 -0
  27. package/licenses/dependencies.txt +60 -0
  28. package/node/esm/B3Hb3GSFs_FIoXoI.mjs +209 -0
  29. package/node/esm/BqwG-e5ddQ45fg8w.mjs +2702 -0
  30. package/node/esm/C81WoKHbCRwhcHWd.mjs +2413 -0
  31. package/node/esm/CIzCy_gyysEIa_HI.mjs +3700 -0
  32. package/node/esm/CL8002u21KKQkkL0.mjs +108 -0
  33. package/node/esm/DF893ovKIDS88O7b.mjs +2237 -0
  34. package/node/esm/DTuPlHBTHnbLGvxd.mjs +504 -0
  35. package/node/esm/DVJuJqAXDwgA-ge8.mjs +118 -0
  36. package/node/esm/index.mjs +52 -0
  37. package/package.json +55 -0
  38. package/types/index.d.ts +2 -0
  39. package/types/src/ConditionalFormatRules.d.ts +86 -0
  40. package/types/src/ConditionalFormatRules.d.ts.map +1 -0
  41. package/types/src/DataValidationRules.d.ts +59 -0
  42. package/types/src/DataValidationRules.d.ts.map +1 -0
  43. package/types/src/ExcelCompat.d.ts +142 -0
  44. package/types/src/ExcelCompat.d.ts.map +1 -0
  45. package/types/src/ExcelFunctionFacts.d.ts +375 -0
  46. package/types/src/ExcelFunctionFacts.d.ts.map +1 -0
  47. package/types/src/ExcelReservedNames.d.ts +67 -0
  48. package/types/src/ExcelReservedNames.d.ts.map +1 -0
  49. package/types/src/LegacyFormula.d.ts +74 -0
  50. package/types/src/LegacyFormula.d.ts.map +1 -0
  51. package/types/src/OOXMLEscape.d.ts +28 -0
  52. package/types/src/OOXMLEscape.d.ts.map +1 -0
  53. package/types/src/OOXMLExtensions.d.ts +53 -0
  54. package/types/src/OOXMLExtensions.d.ts.map +1 -0
  55. package/types/src/OperandLiterals.d.ts +34 -0
  56. package/types/src/OperandLiterals.d.ts.map +1 -0
  57. package/types/src/Plugin.d.ts +16 -0
  58. package/types/src/Plugin.d.ts.map +1 -0
  59. package/types/src/SourcePackage.d.ts +76 -0
  60. package/types/src/SourcePackage.d.ts.map +1 -0
  61. package/types/src/Types.d.ts +44 -0
  62. package/types/src/Types.d.ts.map +1 -0
  63. package/types/src/cfb/CompoundFileReader.d.ts +73 -0
  64. package/types/src/cfb/CompoundFileReader.d.ts.map +1 -0
  65. package/types/src/cfb/CompoundFileWriter.d.ts +57 -0
  66. package/types/src/cfb/CompoundFileWriter.d.ts.map +1 -0
  67. package/types/src/cfb/index.d.ts +3 -0
  68. package/types/src/cfb/index.d.ts.map +1 -0
  69. package/types/src/index.d.ts +3 -0
  70. package/types/src/index.d.ts.map +1 -0
  71. package/types/src/legacyChart/OOXMLMappings.d.ts +8 -0
  72. package/types/src/legacyChart/OOXMLMappings.d.ts.map +1 -0
  73. package/types/src/legacyChart/OOXMLUtils.d.ts +78 -0
  74. package/types/src/legacyChart/OOXMLUtils.d.ts.map +1 -0
  75. package/types/src/legacyChart/ToOOXMLConverter.d.ts +30 -0
  76. package/types/src/legacyChart/ToOOXMLConverter.d.ts.map +1 -0
  77. package/types/src/offcrypto/AgileCrypto.d.ts +85 -0
  78. package/types/src/offcrypto/AgileCrypto.d.ts.map +1 -0
  79. package/types/src/offcrypto/EncryptionInfo.d.ts +109 -0
  80. package/types/src/offcrypto/EncryptionInfo.d.ts.map +1 -0
  81. package/types/src/offcrypto/LazyOffCryptoEncryption.d.ts +18 -0
  82. package/types/src/offcrypto/LazyOffCryptoEncryption.d.ts.map +1 -0
  83. package/types/src/offcrypto/OffCryptoEncryption.d.ts +15 -0
  84. package/types/src/offcrypto/OffCryptoEncryption.d.ts.map +1 -0
  85. package/types/src/offcrypto/index.d.ts +5 -0
  86. package/types/src/offcrypto/index.d.ts.map +1 -0
  87. package/types/src/reader/DummyFunctionUnwrap.d.ts +58 -0
  88. package/types/src/reader/DummyFunctionUnwrap.d.ts.map +1 -0
  89. package/types/src/reader/ReaderProfiler.d.ts +45 -0
  90. package/types/src/reader/ReaderProfiler.d.ts.map +1 -0
  91. package/types/src/reader/ReaderUtils.d.ts +66 -0
  92. package/types/src/reader/ReaderUtils.d.ts.map +1 -0
  93. package/types/src/reader/XLSXReader.d.ts +11 -0
  94. package/types/src/reader/XLSXReader.d.ts.map +1 -0
  95. package/types/src/reader/ZipReader.d.ts +62 -0
  96. package/types/src/reader/ZipReader.d.ts.map +1 -0
  97. package/types/src/reader/dom/DOMTransformer.d.ts +22 -0
  98. package/types/src/reader/dom/DOMTransformer.d.ts.map +1 -0
  99. package/types/src/reader/dom/DefaultVisitor.d.ts +8 -0
  100. package/types/src/reader/dom/DefaultVisitor.d.ts.map +1 -0
  101. package/types/src/reader/dom/ExecutionContext.d.ts +78 -0
  102. package/types/src/reader/dom/ExecutionContext.d.ts.map +1 -0
  103. package/types/src/reader/dom/NumberUtils.d.ts +17 -0
  104. package/types/src/reader/dom/NumberUtils.d.ts.map +1 -0
  105. package/types/src/reader/dom/Types.d.ts +27 -0
  106. package/types/src/reader/dom/Types.d.ts.map +1 -0
  107. package/types/src/reader/dom/VisitContext.d.ts +10 -0
  108. package/types/src/reader/dom/VisitContext.d.ts.map +1 -0
  109. package/types/src/reader/dom/Visitor.d.ts +23 -0
  110. package/types/src/reader/dom/Visitor.d.ts.map +1 -0
  111. package/types/src/reader/dom/VisitorUtils.d.ts +16 -0
  112. package/types/src/reader/dom/VisitorUtils.d.ts.map +1 -0
  113. package/types/src/reader/dom/index.d.ts +7 -0
  114. package/types/src/reader/dom/index.d.ts.map +1 -0
  115. package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts +11 -0
  116. package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts.map +1 -0
  117. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +25 -0
  118. package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts.map +1 -0
  119. package/types/src/reader/domVisitors/AxisVisitor.d.ts +12 -0
  120. package/types/src/reader/domVisitors/AxisVisitor.d.ts.map +1 -0
  121. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +6 -0
  122. package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts.map +1 -0
  123. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +6 -0
  124. package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts.map +1 -0
  125. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +7 -0
  126. package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts.map +1 -0
  127. package/types/src/reader/domVisitors/ChartVisitor.d.ts +7 -0
  128. package/types/src/reader/domVisitors/ChartVisitor.d.ts.map +1 -0
  129. package/types/src/reader/domVisitors/ClrSchemeVisitor.d.ts +7 -0
  130. package/types/src/reader/domVisitors/ClrSchemeVisitor.d.ts.map +1 -0
  131. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +37 -0
  132. package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts.map +1 -0
  133. package/types/src/reader/domVisitors/CommentVisitor.d.ts +6 -0
  134. package/types/src/reader/domVisitors/CommentVisitor.d.ts.map +1 -0
  135. package/types/src/reader/domVisitors/CommentsVisitor.d.ts +7 -0
  136. package/types/src/reader/domVisitors/CommentsVisitor.d.ts.map +1 -0
  137. package/types/src/reader/domVisitors/CorePropertiesVisitor.d.ts +11 -0
  138. package/types/src/reader/domVisitors/CorePropertiesVisitor.d.ts.map +1 -0
  139. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +8 -0
  140. package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts.map +1 -0
  141. package/types/src/reader/domVisitors/DataPointVisitor.d.ts +6 -0
  142. package/types/src/reader/domVisitors/DataPointVisitor.d.ts.map +1 -0
  143. package/types/src/reader/domVisitors/DrawingAnchorVisitor.d.ts +8 -0
  144. package/types/src/reader/domVisitors/DrawingAnchorVisitor.d.ts.map +1 -0
  145. package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts +7 -0
  146. package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts.map +1 -0
  147. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +6 -0
  148. package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts.map +1 -0
  149. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +7 -0
  150. package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts.map +1 -0
  151. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +7 -0
  152. package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts.map +1 -0
  153. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +7 -0
  154. package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts.map +1 -0
  155. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +7 -0
  156. package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts.map +1 -0
  157. package/types/src/reader/domVisitors/DrawingVisitor.d.ts +5 -0
  158. package/types/src/reader/domVisitors/DrawingVisitor.d.ts.map +1 -0
  159. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +32 -0
  160. package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts.map +1 -0
  161. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +22 -0
  162. package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts.map +1 -0
  163. package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts +7 -0
  164. package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts.map +1 -0
  165. package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts +6 -0
  166. package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts.map +1 -0
  167. package/types/src/reader/domVisitors/LayoutVisitor.d.ts +5 -0
  168. package/types/src/reader/domVisitors/LayoutVisitor.d.ts.map +1 -0
  169. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +5 -0
  170. package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts.map +1 -0
  171. package/types/src/reader/domVisitors/LegendVisitor.d.ts +5 -0
  172. package/types/src/reader/domVisitors/LegendVisitor.d.ts.map +1 -0
  173. package/types/src/reader/domVisitors/MarkerVisitor.d.ts +5 -0
  174. package/types/src/reader/domVisitors/MarkerVisitor.d.ts.map +1 -0
  175. package/types/src/reader/domVisitors/MetadataVisitor.d.ts +104 -0
  176. package/types/src/reader/domVisitors/MetadataVisitor.d.ts.map +1 -0
  177. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +6 -0
  178. package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts.map +1 -0
  179. package/types/src/reader/domVisitors/OOXMLVisitorUtils.d.ts +3 -0
  180. package/types/src/reader/domVisitors/OOXMLVisitorUtils.d.ts.map +1 -0
  181. package/types/src/reader/domVisitors/PersonListVisitor.d.ts +5 -0
  182. package/types/src/reader/domVisitors/PersonListVisitor.d.ts.map +1 -0
  183. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +5 -0
  184. package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts.map +1 -0
  185. package/types/src/reader/domVisitors/PresetTableStylesVisitor.d.ts +8 -0
  186. package/types/src/reader/domVisitors/PresetTableStylesVisitor.d.ts.map +1 -0
  187. package/types/src/reader/domVisitors/RelsVisitor.d.ts +9 -0
  188. package/types/src/reader/domVisitors/RelsVisitor.d.ts.map +1 -0
  189. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +7 -0
  190. package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts.map +1 -0
  191. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +6 -0
  192. package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts.map +1 -0
  193. package/types/src/reader/domVisitors/SeriesVisitor.d.ts +8 -0
  194. package/types/src/reader/domVisitors/SeriesVisitor.d.ts.map +1 -0
  195. package/types/src/reader/domVisitors/ShapePropertiesVisitor.d.ts +6 -0
  196. package/types/src/reader/domVisitors/ShapePropertiesVisitor.d.ts.map +1 -0
  197. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +28 -0
  198. package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts.map +1 -0
  199. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +20 -0
  200. package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts.map +1 -0
  201. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts +6 -0
  202. package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts.map +1 -0
  203. package/types/src/reader/domVisitors/SlicersVisitor.d.ts +7 -0
  204. package/types/src/reader/domVisitors/SlicersVisitor.d.ts.map +1 -0
  205. package/types/src/reader/domVisitors/SortStateVisitor.d.ts +8 -0
  206. package/types/src/reader/domVisitors/SortStateVisitor.d.ts.map +1 -0
  207. package/types/src/reader/domVisitors/TableVisitor.d.ts +10 -0
  208. package/types/src/reader/domVisitors/TableVisitor.d.ts.map +1 -0
  209. package/types/src/reader/domVisitors/TableX14Visitor.d.ts +6 -0
  210. package/types/src/reader/domVisitors/TableX14Visitor.d.ts.map +1 -0
  211. package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts +11 -0
  212. package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts.map +1 -0
  213. package/types/src/reader/domVisitors/ThemeVisitor.d.ts +6 -0
  214. package/types/src/reader/domVisitors/ThemeVisitor.d.ts.map +1 -0
  215. package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +9 -0
  216. package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts.map +1 -0
  217. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +6 -0
  218. package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts.map +1 -0
  219. package/types/src/reader/domVisitors/TitleVisitor.d.ts +9 -0
  220. package/types/src/reader/domVisitors/TitleVisitor.d.ts.map +1 -0
  221. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +30 -0
  222. package/types/src/reader/domVisitors/WorkbookVisitor.d.ts.map +1 -0
  223. package/types/src/reader/domVisitors/index.d.ts +101 -0
  224. package/types/src/reader/domVisitors/index.d.ts.map +1 -0
  225. package/types/src/reader/sax/SaxParser.d.ts +34 -0
  226. package/types/src/reader/sax/SaxParser.d.ts.map +1 -0
  227. package/types/src/reader/sax/SaxVisitor.d.ts +59 -0
  228. package/types/src/reader/sax/SaxVisitor.d.ts.map +1 -0
  229. package/types/src/reader/sax/Saxes.d.ts +641 -0
  230. package/types/src/reader/sax/Saxes.d.ts.map +1 -0
  231. package/types/src/reader/sax/index.d.ts +3 -0
  232. package/types/src/reader/sax/index.d.ts.map +1 -0
  233. package/types/src/reader/sax/xmlchars/xml/1.0/ed4.d.ts +32 -0
  234. package/types/src/reader/sax/xmlchars/xml/1.0/ed4.d.ts.map +1 -0
  235. package/types/src/reader/sax/xmlchars/xml/1.0/ed5.d.ts +52 -0
  236. package/types/src/reader/sax/xmlchars/xml/1.0/ed5.d.ts.map +1 -0
  237. package/types/src/reader/sax/xmlchars/xml/1.1/ed2.d.ts +74 -0
  238. package/types/src/reader/sax/xmlchars/xml/1.1/ed2.d.ts.map +1 -0
  239. package/types/src/reader/sax/xmlchars/xmlns/1.0/ed3.d.ts +29 -0
  240. package/types/src/reader/sax/xmlchars/xmlns/1.0/ed3.d.ts.map +1 -0
  241. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +54 -0
  242. package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts.map +1 -0
  243. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +22 -0
  244. package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts.map +1 -0
  245. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +25 -0
  246. package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts.map +1 -0
  247. package/types/src/vba/CompoundDocumentCompression.d.ts +37 -0
  248. package/types/src/vba/CompoundDocumentCompression.d.ts.map +1 -0
  249. package/types/src/vba/VBAProject.d.ts +47 -0
  250. package/types/src/vba/VBAProject.d.ts.map +1 -0
  251. package/types/src/vba/index.d.ts +3 -0
  252. package/types/src/vba/index.d.ts.map +1 -0
  253. package/types/src/writer/XLSXWriter.d.ts +4 -0
  254. package/types/src/writer/XLSXWriter.d.ts.map +1 -0
  255. package/types/src/writer/builder/ContentTypes.d.ts +18 -0
  256. package/types/src/writer/builder/ContentTypes.d.ts.map +1 -0
  257. package/types/src/writer/builder/Emitter.d.ts +25 -0
  258. package/types/src/writer/builder/Emitter.d.ts.map +1 -0
  259. package/types/src/writer/builder/EmitterRegistry.d.ts +29 -0
  260. package/types/src/writer/builder/EmitterRegistry.d.ts.map +1 -0
  261. package/types/src/writer/builder/OpcXmlUtils.d.ts +26 -0
  262. package/types/src/writer/builder/OpcXmlUtils.d.ts.map +1 -0
  263. package/types/src/writer/builder/PackageBuilder.d.ts +148 -0
  264. package/types/src/writer/builder/PackageBuilder.d.ts.map +1 -0
  265. package/types/src/writer/builder/PartWriter.d.ts +24 -0
  266. package/types/src/writer/builder/PartWriter.d.ts.map +1 -0
  267. package/types/src/writer/builder/RelationshipSet.d.ts +18 -0
  268. package/types/src/writer/builder/RelationshipSet.d.ts.map +1 -0
  269. package/types/src/writer/builder/Types.d.ts +311 -0
  270. package/types/src/writer/builder/Types.d.ts.map +1 -0
  271. package/types/src/writer/builder/Utils.d.ts +63 -0
  272. package/types/src/writer/builder/Utils.d.ts.map +1 -0
  273. package/types/src/writer/builder/XmlWriter.d.ts +3 -0
  274. package/types/src/writer/builder/XmlWriter.d.ts.map +1 -0
  275. package/types/src/writer/builder/ZipBackend.d.ts +21 -0
  276. package/types/src/writer/builder/ZipBackend.d.ts.map +1 -0
  277. package/types/src/writer/builder/_Types.d.ts +102 -0
  278. package/types/src/writer/builder/_Types.d.ts.map +1 -0
  279. package/types/src/writer/builder/index.d.ts +6 -0
  280. package/types/src/writer/builder/index.d.ts.map +1 -0
  281. package/types/src/writer/emitters/ChartColorsEmitter.d.ts +7 -0
  282. package/types/src/writer/emitters/ChartColorsEmitter.d.ts.map +1 -0
  283. package/types/src/writer/emitters/ChartEmitter.d.ts +14 -0
  284. package/types/src/writer/emitters/ChartEmitter.d.ts.map +1 -0
  285. package/types/src/writer/emitters/ChartStyleEmitter.d.ts +46 -0
  286. package/types/src/writer/emitters/ChartStyleEmitter.d.ts.map +1 -0
  287. package/types/src/writer/emitters/DrawingEmitter.d.ts +15 -0
  288. package/types/src/writer/emitters/DrawingEmitter.d.ts.map +1 -0
  289. package/types/src/writer/emitters/MetadataEmitter.d.ts +8 -0
  290. package/types/src/writer/emitters/MetadataEmitter.d.ts.map +1 -0
  291. package/types/src/writer/emitters/PropsAppEmitter.d.ts +12 -0
  292. package/types/src/writer/emitters/PropsAppEmitter.d.ts.map +1 -0
  293. package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -0
  294. package/types/src/writer/emitters/PropsCoreEmitter.d.ts.map +1 -0
  295. package/types/src/writer/emitters/RichValueEmitter.d.ts +8 -0
  296. package/types/src/writer/emitters/RichValueEmitter.d.ts.map +1 -0
  297. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +28 -0
  298. package/types/src/writer/emitters/RichValueStructureEmitter.d.ts.map +1 -0
  299. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +10 -0
  300. package/types/src/writer/emitters/RichValueTypesEmitter.d.ts.map +1 -0
  301. package/types/src/writer/emitters/SharedStringsEmitter.d.ts +13 -0
  302. package/types/src/writer/emitters/SharedStringsEmitter.d.ts.map +1 -0
  303. package/types/src/writer/emitters/StylesEmitter.d.ts +17 -0
  304. package/types/src/writer/emitters/StylesEmitter.d.ts.map +1 -0
  305. package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
  306. package/types/src/writer/emitters/TableEmitter.d.ts.map +1 -0
  307. package/types/src/writer/emitters/ThemeEmitter.d.ts +16 -0
  308. package/types/src/writer/emitters/ThemeEmitter.d.ts.map +1 -0
  309. package/types/src/writer/emitters/WorkbookEmitter.d.ts +11 -0
  310. package/types/src/writer/emitters/WorkbookEmitter.d.ts.map +1 -0
  311. package/types/src/writer/emitters/WorksheetEmitter.d.ts +18 -0
  312. package/types/src/writer/emitters/WorksheetEmitter.d.ts.map +1 -0
  313. package/types/src/writer/emitters/index.d.ts +3 -0
  314. package/types/src/writer/emitters/index.d.ts.map +1 -0
  315. package/types/src/writer/utils/AutoFilter.d.ts +15 -0
  316. package/types/src/writer/utils/AutoFilter.d.ts.map +1 -0
  317. package/types/src/writer/utils/ColorUtils.d.ts +46 -0
  318. package/types/src/writer/utils/ColorUtils.d.ts.map +1 -0
  319. package/types/src/writer/utils/DrawMLUtils.d.ts +26 -0
  320. package/types/src/writer/utils/DrawMLUtils.d.ts.map +1 -0
  321. package/types/src/writer/utils/DummyFunction.d.ts +66 -0
  322. package/types/src/writer/utils/DummyFunction.d.ts.map +1 -0
  323. package/types/src/writer/utils/DxfCollector.d.ts +22 -0
  324. package/types/src/writer/utils/DxfCollector.d.ts.map +1 -0
  325. package/types/src/writer/utils/ExtLstUtils.d.ts +3 -0
  326. package/types/src/writer/utils/ExtLstUtils.d.ts.map +1 -0
  327. package/types/src/writer/utils/IDUtils.d.ts +2 -0
  328. package/types/src/writer/utils/IDUtils.d.ts.map +1 -0
  329. package/types/src/writer/utils/MetadataCollector.d.ts +146 -0
  330. package/types/src/writer/utils/MetadataCollector.d.ts.map +1 -0
  331. package/types/src/writer/utils/ProtectionUtils.d.ts +3 -0
  332. package/types/src/writer/utils/ProtectionUtils.d.ts.map +1 -0
  333. package/types/src/writer/utils/RichValueCollector.d.ts +200 -0
  334. package/types/src/writer/utils/RichValueCollector.d.ts.map +1 -0
  335. package/types/src/writer/utils/TextUtils.d.ts +8 -0
  336. package/types/src/writer/utils/TextUtils.d.ts.map +1 -0
  337. package/types/src/writer/utils/UnsupportedFunctions.d.ts +19 -0
  338. package/types/src/writer/utils/UnsupportedFunctions.d.ts.map +1 -0
  339. package/types/src/writer/utils/VersionUtils.d.ts +26 -0
  340. package/types/src/writer/utils/VersionUtils.d.ts.map +1 -0
@@ -0,0 +1,504 @@
1
+ /**
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.23-beta.1
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { t as e } from "./DVJuJqAXDwgA-ge8.mjs";
8
+ import { InvalidPasswordError as t } from "@sheetxl/utils";
9
+ var r, n, a = class e {
10
+ static {
11
+ this.SIGNATURE = [
12
+ 208,
13
+ 207,
14
+ 17,
15
+ 224,
16
+ 161,
17
+ 177,
18
+ 26,
19
+ 225
20
+ ];
21
+ }
22
+ static {
23
+ this.FATSECT = 4294967293;
24
+ }
25
+ static {
26
+ this.DIFSECT = 4294967292;
27
+ }
28
+ static {
29
+ this.ENDOFCHAIN = 4294967294;
30
+ }
31
+ static {
32
+ this.FREESECT = 4294967295;
33
+ }
34
+ static {
35
+ this.NOSTREAM = 4294967295;
36
+ }
37
+ static {
38
+ this.SECTOR_SIZE = 512;
39
+ }
40
+ static {
41
+ this.MINI_SECTOR_SIZE = 64;
42
+ }
43
+ static {
44
+ this.MINI_CUTOFF = 4096;
45
+ }
46
+ static {
47
+ this.DIR_ENTRY_SIZE = 128;
48
+ }
49
+ static {
50
+ this.DIFAT_HEADER_COUNT = 109;
51
+ }
52
+ constructor() {
53
+ this.sectors = [], this.fat = [];
54
+ }
55
+ static write(t) {
56
+ return new e()._build(t);
57
+ }
58
+ allocate(t) {
59
+ const r = e.SECTOR_SIZE, n = Math.max(1, Math.ceil(t.byteLength / r)), a = this.sectors.length;
60
+ for (let i = 0; i < n; i++) {
61
+ const s = new Uint8Array(r);
62
+ s.set(t.subarray(i * r, Math.min((i + 1) * r, t.byteLength))), this.sectors.push(s), this.fat.push(i === n - 1 ? e.ENDOFCHAIN : a + i + 1);
63
+ }
64
+ return a;
65
+ }
66
+ _build(t) {
67
+ const { SECTOR_SIZE: r, MINI_SECTOR_SIZE: n, MINI_CUTOFF: a, ENDOFCHAIN: i, FREESECT: s, FATSECT: c, DIFSECT: o, NOSTREAM: y, DIR_ENTRY_SIZE: h, DIFAT_HEADER_COUNT: l } = e, p = [];
68
+ let f = 0;
69
+ const u = t.map((e) => {
70
+ if (e.data.byteLength >= a) return {
71
+ entry: e,
72
+ mini: !1,
73
+ start: -1
74
+ };
75
+ const t = f, r = Math.max(1, Math.ceil(e.data.byteLength / n)), i = new Uint8Array(r * n);
76
+ return i.set(e.data), p.push(i), f += r, {
77
+ entry: e,
78
+ mini: !0,
79
+ start: t
80
+ };
81
+ });
82
+ for (const e of u) e.mini || (e.start = 0 === e.entry.data.byteLength ? i : this.allocate(e.entry.data));
83
+ let w = i;
84
+ const d = f * n;
85
+ if (f > 0) {
86
+ const e = new Uint8Array(d);
87
+ let t = 0;
88
+ for (const r of p) e.set(r, t), t += r.byteLength;
89
+ w = this.allocate(e);
90
+ }
91
+ let g = i, b = 0;
92
+ if (f > 0) {
93
+ const e = r / 4;
94
+ b = Math.ceil(f / e);
95
+ const t = new Uint8Array(b * r), a = new DataView(t.buffer);
96
+ t.fill(255);
97
+ let s = 0;
98
+ for (const e of u) {
99
+ if (!e.mini) continue;
100
+ const t = Math.max(1, Math.ceil(e.entry.data.byteLength / n));
101
+ for (let e = 0; e < t; e++, s++) a.setUint32(4 * s, e === t - 1 ? i : s + 1, !0);
102
+ }
103
+ g = this.allocate(t), b = Math.ceil(t.byteLength / r);
104
+ }
105
+ const m = [];
106
+ m.push(this._directoryEntry({
107
+ name: "Root Entry",
108
+ type: 5,
109
+ child: t.length > 0 ? 1 : y,
110
+ start: w === i ? 0 : w,
111
+ size: d
112
+ }));
113
+ const A = u.map((e, t) => ({
114
+ place: e,
115
+ index: t
116
+ })).sort((e, t) => {
117
+ const r = e.place.entry.name, n = t.place.entry.name;
118
+ return r.length !== n.length ? r.length - n.length : r.toUpperCase() < n.toUpperCase() ? -1 : r.toUpperCase() > n.toUpperCase() ? 1 : 0;
119
+ }), S = /* @__PURE__ */ new Map();
120
+ A.forEach((e, t) => S.set(e.index, t + 1)), u.forEach((e, t) => {
121
+ const r = S.get(t) - 1, n = A[r + 1];
122
+ m.push(this._directoryEntry({
123
+ name: e.entry.name,
124
+ type: 2,
125
+ right: n ? S.get(n.index) : y,
126
+ start: e.mini ? e.start : e.start === i ? 0 : e.start,
127
+ size: e.entry.data.byteLength
128
+ }));
129
+ });
130
+ const U = [m[0]];
131
+ A.forEach((e) => U.push(m[e.index + 1]));
132
+ const E = r / h, V = Math.ceil(U.length / E), k = new Uint8Array(V * r);
133
+ for (let e = 0; e < V * E; e++) {
134
+ const t = U[e] ?? this._directoryEntry({
135
+ name: "",
136
+ type: 0
137
+ });
138
+ k.set(t, e * h);
139
+ }
140
+ const C = this.allocate(k), I = r / 4, H = I - 1, L = this.sectors.length;
141
+ let M = 1, z = 0;
142
+ for (let e = 0; e < 16; e++) {
143
+ const e = L + M + z, t = Math.max(1, Math.ceil(e / I)), r = t <= l ? 0 : Math.ceil((t - l) / H);
144
+ if (t === M && r === z) break;
145
+ M = t, z = r;
146
+ }
147
+ const D = [], T = [];
148
+ for (let e = 0; e < M; e++) D.push(L + e);
149
+ for (let e = 0; e < z; e++) T.push(L + M + e);
150
+ for (const e of D) this.fat[e] = c;
151
+ for (const e of T) this.fat[e] = o;
152
+ const K = new Uint8Array(M * r);
153
+ K.fill(255);
154
+ const R = new DataView(K.buffer);
155
+ for (let e = 0; e < this.fat.length; e++) R.setUint32(4 * e, this.fat[e], !0);
156
+ const O = new Uint8Array(r + (L + M + z) * r), $ = new DataView(O.buffer);
157
+ O.set(e.SIGNATURE, 0), $.setUint16(24, 62, !0), $.setUint16(26, 3, !0), $.setUint16(28, 65534, !0), $.setUint16(30, 9, !0), $.setUint16(32, 6, !0), $.setUint32(44, M, !0), $.setUint32(48, C, !0), $.setUint32(56, a, !0), $.setUint32(60, g, !0), $.setUint32(64, b, !0), $.setUint32(68, z > 0 ? T[0] : i, !0), $.setUint32(72, z, !0);
158
+ for (let e = 0; e < l; e++) $.setUint32(76 + 4 * e, e < M ? D[e] : s, !0);
159
+ for (let e = 0; e < L; e++) O.set(this.sectors[e], r + e * r);
160
+ O.set(K, r + D[0] * r);
161
+ for (let e = 0; e < z; e++) {
162
+ const t = r + T[e] * r;
163
+ for (let r = 0; r < H; r++) {
164
+ const n = l + e * H + r;
165
+ $.setUint32(t + 4 * r, n < M ? D[n] : s, !0);
166
+ }
167
+ $.setUint32(t + 4 * H, e === z - 1 ? i : T[e + 1], !0);
168
+ }
169
+ return O;
170
+ }
171
+ _directoryEntry(t) {
172
+ const { NOSTREAM: r } = e, n = new Uint8Array(e.DIR_ENTRY_SIZE), a = new DataView(n.buffer), i = t.name;
173
+ for (let e = 0; e < i.length && e < 31; e++) a.setUint16(2 * e, i.charCodeAt(e), !0);
174
+ return a.setUint16(64, i.length > 0 ? 2 * (Math.min(i.length, 31) + 1) : 0, !0), n[66] = t.type, n[67] = 1, a.setUint32(68, t.left ?? r, !0), a.setUint32(72, t.right ?? r, !0), a.setUint32(76, t.child ?? r, !0), a.setUint32(116, t.start ?? 0, !0), a.setUint32(120, t.size ?? 0, !0), a.setUint32(124, 0, !0), n;
175
+ }
176
+ };
177
+ (function(e) {
178
+ const t = (e) => {
179
+ const t = atob(e), r = new Uint8Array(t.length);
180
+ for (let e = 0; e < t.length; e++) r[e] = t.charCodeAt(e);
181
+ return r;
182
+ }, r = (e, t, r) => {
183
+ const n = ((e, t) => {
184
+ const r = new RegExp(`\\b${t}\\s*=\\s*"([^"]*)"`).exec(e);
185
+ return r ? r[1] : null;
186
+ })(e, t);
187
+ if (null === n) throw new Error(`Malformed encryption descriptor: <${r}> is missing '${t}'.`);
188
+ return n;
189
+ }, n = (e, n) => ({
190
+ saltValue: t(r(e, "saltValue", n)),
191
+ blockSize: parseInt(r(e, "blockSize", n), 10),
192
+ keyBits: parseInt(r(e, "keyBits", n), 10),
193
+ hashSize: parseInt(r(e, "hashSize", n), 10),
194
+ cipherAlgorithm: r(e, "cipherAlgorithm", n),
195
+ cipherChaining: r(e, "cipherChaining", n),
196
+ hashAlgorithm: r(e, "hashAlgorithm", n)
197
+ }), a = (e, t) => {
198
+ const r = new RegExp(`<(?:\\w+:)?${t}\\b[^>]*>`).exec(e);
199
+ return r ? r[0] : null;
200
+ }, i = (e) => {
201
+ let t = "";
202
+ for (let r = 0; r < e.byteLength; r++) t += String.fromCharCode(e[r]);
203
+ return btoa(t);
204
+ };
205
+ e.build = (e) => {
206
+ const t = `saltSize="${e.saltSize}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="${e.cipherAlgorithm}" cipherChaining="${e.cipherChaining}" hashAlgorithm="${e.hashAlgorithm}"`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password" xmlns:c="http://schemas.microsoft.com/office/2006/keyEncryptor/certificate"><keyData ${t} saltValue="${i(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${i(e.encryptedHmacKey)}" encryptedHmacValue="${i(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" ${t} saltValue="${i(e.encryptorSalt)}" encryptedVerifierHashInput="${i(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${i(e.encryptedVerifierHashValue)}" encryptedKeyValue="${i(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`, n = new TextEncoder().encode(r), a = new Uint8Array(8 + n.byteLength), s = new DataView(a.buffer);
207
+ return s.setUint16(0, 4, !0), s.setUint16(2, 4, !0), s.setUint32(4, 64, !0), a.set(n, 8), a;
208
+ }, e.parse = (e) => {
209
+ if (e.byteLength < 8) throw new Error("Malformed EncryptionInfo stream (too short).");
210
+ const i = new DataView(e.buffer, e.byteOffset, e.byteLength), s = i.getUint16(0, !0), c = i.getUint16(2, !0);
211
+ if (4 === s && 4 === c) {
212
+ const i = new TextDecoder().decode(e.subarray(8)), s = a(i, "keyData");
213
+ if (!s) throw new Error("Malformed encryption descriptor: no <keyData>.");
214
+ const c = a(i, "encryptedKey");
215
+ if (!c) throw new Error("This file is encrypted with a scheme SheetXL cannot open (no password key encryptor).");
216
+ const o = a(i, "dataIntegrity");
217
+ return {
218
+ scheme: "agile",
219
+ keyData: n(s, "keyData"),
220
+ passwordKeyEncryptor: {
221
+ ...n(c, "encryptedKey"),
222
+ spinCount: parseInt(r(c, "spinCount", "encryptedKey"), 10),
223
+ encryptedVerifierHashInput: t(r(c, "encryptedVerifierHashInput", "encryptedKey")),
224
+ encryptedVerifierHashValue: t(r(c, "encryptedVerifierHashValue", "encryptedKey")),
225
+ encryptedKeyValue: t(r(c, "encryptedKeyValue", "encryptedKey"))
226
+ },
227
+ dataIntegrity: o ? {
228
+ encryptedHmacKey: t(r(o, "encryptedHmacKey", "dataIntegrity")),
229
+ encryptedHmacValue: t(r(o, "encryptedHmacValue", "dataIntegrity"))
230
+ } : null
231
+ };
232
+ }
233
+ return {
234
+ scheme: 2 === s ? "rc4-cryptoapi" : 2 === c ? "standard" : "rc4",
235
+ versionMajor: s,
236
+ versionMinor: c
237
+ };
238
+ };
239
+ })(r || (r = {})), function(e) {
240
+ const t = {
241
+ verifierHashInput: new Uint8Array([
242
+ 254,
243
+ 167,
244
+ 210,
245
+ 118,
246
+ 59,
247
+ 75,
248
+ 158,
249
+ 121
250
+ ]),
251
+ verifierHashValue: new Uint8Array([
252
+ 215,
253
+ 170,
254
+ 15,
255
+ 109,
256
+ 48,
257
+ 97,
258
+ 52,
259
+ 78
260
+ ]),
261
+ keyValue: new Uint8Array([
262
+ 20,
263
+ 110,
264
+ 11,
265
+ 231,
266
+ 171,
267
+ 172,
268
+ 208,
269
+ 214
270
+ ]),
271
+ hmacKey: new Uint8Array([
272
+ 95,
273
+ 178,
274
+ 173,
275
+ 1,
276
+ 12,
277
+ 185,
278
+ 225,
279
+ 246
280
+ ]),
281
+ hmacValue: new Uint8Array([
282
+ 160,
283
+ 103,
284
+ 127,
285
+ 2,
286
+ 178,
287
+ 44,
288
+ 132,
289
+ 51
290
+ ])
291
+ }, r = async () => globalThis.crypto, n = (e) => {
292
+ switch (e.toUpperCase().replace(/[^A-Z0-9]/g, "")) {
293
+ case "SHA1": return "SHA-1";
294
+ case "SHA256": return "SHA-256";
295
+ case "SHA384": return "SHA-384";
296
+ case "SHA512": return "SHA-512";
297
+ default: throw new Error(`Unsupported encryption hash algorithm '${e}'.`);
298
+ }
299
+ }, a = (e) => {
300
+ const t = new Uint8Array(e.byteLength);
301
+ return t.set(e), t;
302
+ }, i = (...e) => {
303
+ let t = 0;
304
+ for (const r of e) t += r.byteLength;
305
+ const r = new Uint8Array(t);
306
+ let n = 0;
307
+ for (const t of e) r.set(t, n), n += t.byteLength;
308
+ return r;
309
+ }, s = (e, t) => {
310
+ if (e.byteLength >= t) return a(e.subarray(0, t));
311
+ const r = new Uint8Array(t).fill(54);
312
+ return r.set(e), r;
313
+ }, c = (e) => {
314
+ const t = /* @__PURE__ */ new Uint8Array(4);
315
+ return new DataView(t.buffer).setUint32(0, e, !0), t;
316
+ }, o = async (e, t, ...r) => new Uint8Array(await e.subtle.digest(t, i(...r))), y = () => "function" == typeof MessageChannel ? new Promise((e) => {
317
+ const t = new MessageChannel();
318
+ t.port1.onmessage = () => {
319
+ t.port1.close(), t.port2.close(), e();
320
+ }, t.port2.postMessage(null);
321
+ }) : new Promise((e) => {
322
+ setTimeout(e, 0);
323
+ }), h = async (e, t, r, n, a) => {
324
+ const i = new Uint8Array(2 * t.length), s = new DataView(i.buffer);
325
+ for (let e = 0; e < t.length; e++) s.setUint16(2 * e, t.charCodeAt(e), !0);
326
+ let h = await o(e, n, r, i);
327
+ for (let t = 0; t < a; t++) h = await o(e, n, c(t), h), t % 2048 == 0 && await y();
328
+ return h;
329
+ }, l = async (e, t, r, n, a) => s(await o(e, n, t, r), a), p = async (e, t, r, n, a) => s(await o(e, n, t, c(r)), a), f = async (e, t, r, n, a) => s(await o(e, n, t, r), a), u = async (e, t, r, n) => {
330
+ const i = await e.subtle.importKey("raw", a(r), {
331
+ name: "HMAC",
332
+ hash: { name: t }
333
+ }, !1, ["sign"]);
334
+ return new Uint8Array(await e.subtle.sign("HMAC", i, a(n)));
335
+ }, w = async (e, t, r, n) => {
336
+ const s = a(n);
337
+ if (0 === s.byteLength) return s;
338
+ if (s.byteLength % 16 != 0) throw new Error("Malformed encrypted payload (not block aligned).");
339
+ const c = await e.subtle.importKey("raw", t, { name: "AES-CBC" }, !1, ["encrypt", "decrypt"]), o = a(s.subarray(s.byteLength - 16)), y = (/* @__PURE__ */ new Uint8Array(16)).fill(16), h = new Uint8Array(await e.subtle.encrypt({
340
+ name: "AES-CBC",
341
+ iv: o
342
+ }, c, y)).subarray(0, 16), l = await e.subtle.decrypt({
343
+ name: "AES-CBC",
344
+ iv: r
345
+ }, c, i(s, h));
346
+ return new Uint8Array(l);
347
+ };
348
+ e.resolveSecretKey = async (e, i) => {
349
+ const c = e.passwordKeyEncryptor;
350
+ if (!/^AES$/i.test(c.cipherAlgorithm) || !/CBC$/i.test(c.cipherChaining)) throw new Error(`Unsupported encryption cipher '${c.cipherAlgorithm}/${c.cipherChaining}'.`);
351
+ const y = await r(), p = n(c.hashAlgorithm), f = c.keyBits / 8, u = await h(y, i, c.saltValue, p, c.spinCount), d = s(c.saltValue, c.blockSize), g = await l(y, u, t.verifierHashInput, p, f), b = await w(y, g, d, c.encryptedVerifierHashInput), m = await l(y, u, t.verifierHashValue, p, f), A = await w(y, m, d, c.encryptedVerifierHashValue), S = await o(y, p, b);
352
+ let U = S.byteLength > A.byteLength ? 1 : 0;
353
+ for (let e = 0; e < A.byteLength; e++) U |= (e < S.byteLength ? S[e] : 0) ^ A[e];
354
+ if (0 !== U) return null;
355
+ const E = await l(y, u, t.keyValue, p, f), V = await w(y, E, d, c.encryptedKeyValue);
356
+ return a(V.subarray(0, e.keyData.keyBits / 8));
357
+ };
358
+ const d = async (e, t, r, n) => {
359
+ const i = a(n);
360
+ if (0 === i.byteLength) return i;
361
+ if (i.byteLength % 16 != 0) throw new Error("Malformed plaintext (not block aligned).");
362
+ const s = await e.subtle.importKey("raw", t, { name: "AES-CBC" }, !1, ["encrypt"]), c = new Uint8Array(await e.subtle.encrypt({
363
+ name: "AES-CBC",
364
+ iv: r
365
+ }, s, i));
366
+ return a(c.subarray(0, i.byteLength));
367
+ }, g = (e, t) => e % t === 0 ? e : e + (t - e % t), b = 4096;
368
+ e.decryptPackage = async (e, t, a) => {
369
+ if (a.byteLength < 8) throw new Error("Malformed EncryptedPackage stream (too short).");
370
+ const i = await r(), { keyData: s } = e, c = n(s.hashAlgorithm), o = new DataView(a.buffer, a.byteOffset, a.byteLength), y = o.getUint32(0, !0) + 4294967296 * o.getUint32(4, !0), h = a.subarray(8), l = new Uint8Array(Math.min(y, h.byteLength));
371
+ let f = 0;
372
+ for (let e = 0; e * b < h.byteLength; e++) {
373
+ const r = e * b;
374
+ let n = h.subarray(r, Math.min(r + b, h.byteLength));
375
+ const a = n.byteLength % s.blockSize;
376
+ if (a) {
377
+ const e = new Uint8Array(n.byteLength + s.blockSize - a);
378
+ e.set(n), n = e;
379
+ }
380
+ const o = await p(i, s.saltValue, e, c, s.blockSize), y = await w(i, t, o, n), u = Math.min(y.byteLength, l.byteLength - f);
381
+ if (u <= 0) break;
382
+ l.set(y.subarray(0, u), f), f += u;
383
+ }
384
+ return l.subarray(0, f);
385
+ }, e.verifyIntegrity = async (e, a, i) => {
386
+ const s = e.dataIntegrity;
387
+ if (!s) return !0;
388
+ const c = await r(), { keyData: o } = e, y = n(o.hashAlgorithm), h = (await w(c, a, await f(c, o.saltValue, t.hmacKey, y, o.blockSize), s.encryptedHmacKey)).subarray(0, o.hashSize), l = (await w(c, a, await f(c, o.saltValue, t.hmacValue, y, o.blockSize), s.encryptedHmacValue)).subarray(0, o.hashSize), p = await u(c, y, h, i);
389
+ if (p.byteLength < o.hashSize) return !1;
390
+ let d = 0;
391
+ for (let e = 0; e < o.hashSize; e++) d |= l[e] ^ p[e];
392
+ return 0 === d;
393
+ };
394
+ const m = e.DEFAULTS = {
395
+ hashAlgorithm: "SHA512",
396
+ cipherAlgorithm: "AES",
397
+ cipherChaining: "ChainingModeCBC",
398
+ saltSize: 16,
399
+ blockSize: 16,
400
+ keyBits: 256,
401
+ hashSize: 64,
402
+ spinCount: 1e5
403
+ };
404
+ e.encrypt = async (e, a) => {
405
+ const i = await r(), c = n(m.hashAlgorithm), y = m.keyBits / 8, w = (e) => {
406
+ const t = new Uint8Array(e);
407
+ return i.getRandomValues(t), t;
408
+ }, A = w(y), S = w(m.saltSize), U = w(m.saltSize), E = w(m.saltSize), V = await h(i, a, U, c, m.spinCount), k = s(U, m.blockSize), C = await l(i, V, t.verifierHashInput, c, y), I = await d(i, C, k, E), H = await o(i, c, E), L = await l(i, V, t.verifierHashValue, c, y), M = new Uint8Array(g(H.byteLength, m.blockSize));
409
+ M.set(H);
410
+ const z = await d(i, L, k, M), D = await l(i, V, t.keyValue, c, y), T = await d(i, D, k, A), K = e.byteLength, R = Math.max(1, Math.ceil(K / b)), O = new Uint8Array(g(K, m.blockSize) || m.blockSize);
411
+ for (let t = 0; t < R; t++) {
412
+ const r = t * b, n = e.subarray(r, Math.min(r + b, K)), a = new Uint8Array(g(n.byteLength, m.blockSize));
413
+ a.set(n);
414
+ const s = await p(i, S, t, c, m.blockSize);
415
+ O.set(await d(i, A, s, a), r);
416
+ }
417
+ const $ = new Uint8Array(8 + O.byteLength), _ = new DataView($.buffer);
418
+ _.setUint32(0, K >>> 0, !0), _.setUint32(4, Math.floor(K / 4294967296), !0), $.set(O, 8);
419
+ const x = w(m.hashSize), N = new Uint8Array(g(x.byteLength, m.blockSize));
420
+ N.set(x);
421
+ const v = await d(i, A, await f(i, S, t.hmacKey, c, m.blockSize), N), F = await u(i, c, x, $), B = new Uint8Array(g(F.byteLength, m.blockSize));
422
+ return B.set(F), {
423
+ keyDataSalt: S,
424
+ encryptorSalt: U,
425
+ encryptedVerifierHashInput: I,
426
+ encryptedVerifierHashValue: z,
427
+ encryptedKeyValue: T,
428
+ encryptedHmacKey: v,
429
+ encryptedHmacValue: await d(i, A, await f(i, S, t.hmacValue, c, m.blockSize), B),
430
+ encryptedPackage: $
431
+ };
432
+ };
433
+ }(n || (n = {}));
434
+ var i = [
435
+ 208,
436
+ 207,
437
+ 17,
438
+ 224,
439
+ 161,
440
+ 177,
441
+ 26,
442
+ 225
443
+ ], s = "EncryptionInfo", c = "EncryptedPackage", o = (t) => {
444
+ if (!((e) => {
445
+ if (e.byteLength < i.length) return !1;
446
+ const t = new Uint8Array(e, 0, i.length);
447
+ for (let e = 0; e < i.length; e++) if (t[e] !== i[e]) return !1;
448
+ return !0;
449
+ })(t)) return null;
450
+ let r;
451
+ try {
452
+ r = e.read(new Uint8Array(t));
453
+ } catch {
454
+ return null;
455
+ }
456
+ const n = r.readStream(s), a = r.readStream(c);
457
+ return n && a ? {
458
+ info: n,
459
+ encryptedPackage: a
460
+ } : null;
461
+ }, y = {
462
+ key: "offcrypto",
463
+ description: "Office Document Encryption",
464
+ detect: (e) => null !== o(e),
465
+ async decode(e, a) {
466
+ const i = o(e);
467
+ if (!i) throw new Error("Not an encrypted Office container.");
468
+ const s = r.parse(i.info);
469
+ if ("agile" !== s.scheme) throw new Error(`This file uses ${((e) => {
470
+ switch (e) {
471
+ case "standard": return "Standard ECMA-376 encryption (Office 2007)";
472
+ case "rc4-cryptoapi": return "RC4 CryptoAPI encryption (Office 2002-2003)";
473
+ case "rc4": return "RC4/XOR obfuscation (Office 97-2000)";
474
+ default: return e;
475
+ }
476
+ })(s.scheme)}, which SheetXL cannot open yet. Re-save it from Excel to upgrade it to the current encryption.`);
477
+ const c = await n.resolveSecretKey(s, a);
478
+ if (!c) throw new t();
479
+ if (s.dataIntegrity && !await n.verifyIntegrity(s, c, i.encryptedPackage)) throw new Error("This file failed its integrity check — it has been altered or is damaged since it was encrypted.");
480
+ const y = await n.decryptPackage(s, c, i.encryptedPackage);
481
+ return y.buffer.slice(y.byteOffset, y.byteOffset + y.byteLength);
482
+ },
483
+ async encode(e, t) {
484
+ if (!t) throw new Error("A password is required to encrypt.");
485
+ const i = await n.encrypt(new Uint8Array(e), t), o = r.build({
486
+ ...n.DEFAULTS,
487
+ keyDataSalt: i.keyDataSalt,
488
+ encryptorSalt: i.encryptorSalt,
489
+ encryptedVerifierHashInput: i.encryptedVerifierHashInput,
490
+ encryptedVerifierHashValue: i.encryptedVerifierHashValue,
491
+ encryptedKeyValue: i.encryptedKeyValue,
492
+ encryptedHmacKey: i.encryptedHmacKey,
493
+ encryptedHmacValue: i.encryptedHmacValue
494
+ }), y = a.write([{
495
+ name: s,
496
+ data: o
497
+ }, {
498
+ name: c,
499
+ data: i.encryptedPackage
500
+ }]);
501
+ return y.buffer.slice(y.byteOffset, y.byteOffset + y.byteLength);
502
+ }
503
+ };
504
+ export { y as OffCryptoEncryption };
@@ -0,0 +1,118 @@
1
+ /**
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.23-beta.1
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ var t = class t {
8
+ static {
9
+ this.SIGNATURE = 3759263696;
10
+ }
11
+ static {
12
+ this.ENDOFCHAIN = 4294967294;
13
+ }
14
+ static {
15
+ this.FREESECT = 4294967295;
16
+ }
17
+ constructor(e) {
18
+ this.buf = e, this.dv = new DataView(e.buffer, e.byteOffset, e.byteLength);
19
+ const i = this.dv;
20
+ if (i.getUint32(0, !0) !== t.SIGNATURE) throw new Error("Not an OLE Compound File (bad signature).");
21
+ const n = i.getUint16(30, !0), r = i.getUint16(32, !0);
22
+ this.sectorSize = 1 << n, this.miniSectorSize = 1 << r, this.miniStreamCutoff = i.getUint32(56, !0) || 4096;
23
+ const s = i.getUint32(48, !0), a = i.getUint32(60, !0), o = i.getUint32(64, !0), h = i.getUint32(68, !0), c = i.getUint32(72, !0), f = [];
24
+ for (let e = 0; e < 109; e++) {
25
+ const n = i.getUint32(76 + 4 * e, !0);
26
+ if (n === t.FREESECT || n === t.ENDOFCHAIN) break;
27
+ f.push(n);
28
+ }
29
+ let S = h;
30
+ const g = this.sectorSize / 4;
31
+ let u = 0;
32
+ for (; S !== t.ENDOFCHAIN && S !== t.FREESECT && u++ < c + 1;) {
33
+ const e = this.sectorOffset(S);
34
+ for (let n = 0; n < g - 1; n++) {
35
+ const r = i.getUint32(e + 4 * n, !0);
36
+ r !== t.FREESECT && r !== t.ENDOFCHAIN && f.push(r);
37
+ }
38
+ S = i.getUint32(e + 4 * (g - 1), !0);
39
+ }
40
+ const E = new Uint32Array(f.length * g);
41
+ let l = 0;
42
+ for (const t of f) {
43
+ const e = this.sectorOffset(t);
44
+ for (let t = 0; t < g; t++) E[l++] = i.getUint32(e + 4 * t, !0);
45
+ }
46
+ this.fat = E;
47
+ const m = this.readChain(s), U = new DataView(m.buffer, m.byteOffset, m.byteLength), y = [], C = Math.floor(m.length / 128);
48
+ for (let t = 0; t < C; t++) {
49
+ const e = 128 * t, i = m[e + 66];
50
+ if (0 === i) continue;
51
+ const n = U.getUint16(e + 64, !0);
52
+ let r = "";
53
+ for (let t = 0; t < n / 2 - 1 && t < 31; t++) r += String.fromCharCode(U.getUint16(e + 2 * t, !0));
54
+ y.push({
55
+ name: r,
56
+ type: i,
57
+ startSector: U.getUint32(e + 116, !0),
58
+ size: U.getUint32(e + 120, !0)
59
+ });
60
+ }
61
+ this.entries = y, this.byName = new Map(y.map((t) => [t.name, t]));
62
+ const d = o ? this.readChain(a) : /* @__PURE__ */ new Uint8Array(0), b = new DataView(d.buffer, d.byteOffset, d.byteLength);
63
+ this.miniFat = new Uint32Array(Math.floor(d.length / 4));
64
+ for (let t = 0; t < this.miniFat.length; t++) this.miniFat[t] = b.getUint32(4 * t, !0);
65
+ const N = y.find((t) => 5 === t.type);
66
+ this.miniStream = N ? this.readChainSized(N.startSector, N.size) : /* @__PURE__ */ new Uint8Array(0);
67
+ }
68
+ static read(e) {
69
+ const i = e instanceof Uint8Array ? e : new Uint8Array(e);
70
+ return new t(i);
71
+ }
72
+ sectorOffset(t) {
73
+ return (t + 1) * this.sectorSize;
74
+ }
75
+ readChain(e) {
76
+ const i = [];
77
+ let n = e, r = 0;
78
+ for (; n !== t.ENDOFCHAIN && n !== t.FREESECT && r++ < 1e6;) {
79
+ const t = this.sectorOffset(n);
80
+ i.push(this.buf.subarray(t, t + this.sectorSize)), n = this.fat[n];
81
+ }
82
+ return t.concat(i);
83
+ }
84
+ readChainSized(t, e) {
85
+ return this.readChain(t).subarray(0, e);
86
+ }
87
+ readMiniChain(e, i) {
88
+ const n = [];
89
+ let r = e, s = 0;
90
+ for (; r !== t.ENDOFCHAIN && r !== t.FREESECT && s++ < 1e6;) {
91
+ const t = r * this.miniSectorSize;
92
+ n.push(this.miniStream.subarray(t, t + this.miniSectorSize)), r = this.miniFat[r];
93
+ }
94
+ return t.concat(n).subarray(0, i);
95
+ }
96
+ static concat(t) {
97
+ let e = 0;
98
+ for (const i of t) e += i.length;
99
+ const i = new Uint8Array(e);
100
+ let n = 0;
101
+ for (const e of t) i.set(e, n), n += e.length;
102
+ return i;
103
+ }
104
+ getStreamEntries() {
105
+ return this.entries.filter((t) => 2 === t.type);
106
+ }
107
+ has(t) {
108
+ return this.byName.has(t);
109
+ }
110
+ readStream(t) {
111
+ const e = this.byName.get(t);
112
+ return e && 2 === e.type ? this.readStreamEntry(e) : null;
113
+ }
114
+ readStreamEntry(t) {
115
+ return t.size < this.miniStreamCutoff ? this.readMiniChain(t.startSector, t.size) : this.readChainSized(t.startSector, t.size);
116
+ }
117
+ };
118
+ export { t };
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.23-beta.1
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ var e = [
8
+ 208,
9
+ 207,
10
+ 17,
11
+ 224,
12
+ 161,
13
+ 177,
14
+ 26,
15
+ 225
16
+ ], t = async () => (await import("./DTuPlHBTHnbLGvxd.mjs")).OffCryptoEncryption, r = {
17
+ key: "offcrypto",
18
+ description: "Office Document Encryption",
19
+ detect: async (r) => !!((t) => {
20
+ if (t.byteLength < e.length) return !1;
21
+ const r = new Uint8Array(t, 0, e.length);
22
+ for (let t = 0; t < e.length; t++) if (r[t] !== e[t]) return !1;
23
+ return !0;
24
+ })(r) && (await t()).detect(r),
25
+ decode: async (e, r) => (await t()).decode(e, r),
26
+ encode: async (e, r) => (await t()).encode(e, r)
27
+ }, a = "Excel", o = {
28
+ key: a,
29
+ description: "Excel Workbook",
30
+ mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
31
+ exts: [
32
+ "xlsx",
33
+ "xls",
34
+ "xlsm"
35
+ ],
36
+ handler: async (e, t) => (await import("./BqwG-e5ddQ45fg8w.mjs")).readXLSX(e, t)
37
+ }, i = {
38
+ key: a,
39
+ mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
40
+ description: "Excel Workbook",
41
+ exts: ["xlsx"],
42
+ handler: async (e, t) => (await import("./CIzCy_gyysEIa_HI.mjs")).writeXLSX(e, t)
43
+ }, n = {
44
+ name: "@sheetxl/io-xlsx",
45
+ version: "0.7.23-beta.1",
46
+ description: "XLSX I/O formats for SheetXL",
47
+ author: "SheetXL",
48
+ async register(e) {
49
+ await e.registerReadFormat(o), await e.registerWriteFormat(i), await e.registerEncryption(r);
50
+ }
51
+ };
52
+ export { n as IOPlugin, a as XLSX_FORMAT_KEY };