@office-open/core 0.9.0 → 0.9.2

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.
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  - **OPC (Open Packaging)** — Content types, relationships, and ZIP packaging
16
16
  - **Value Validators** — Runtime validation for OOXML spec types (ST_HexColor, ST_OnOff, ST_DecimalNumber, etc.)
17
17
  - **Unit Converters** — TWIP and EMU conversions (mm/in/pt/px)
18
- - **ID Generators** — Sequential numeric IDs, nanoid, SHA-1 hash, UUID v4
18
+ - **ID Generators** — Sequential numeric IDs, random IDs, SHA-1 hash, UUID v4
19
19
  - **Template Patching** — Placeholder replacement, XML traverser, and token replacer
20
20
  - **OOXML Compliance** — All types verified against ISO/IEC 29500-4 XSD schemas
21
21
 
@@ -1,2 +1,2 @@
1
- import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "../index-DNH2sizc.mjs";
1
+ import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "../index-xXbaecaB.mjs";
2
2
  export { AxisChartType, BubbleSeriesData, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, DataLabelPosition, DataLabelsOptions, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, TimeUnit, TrendlineOptions, TrendlineType, View3DOptions, chartSpaceDesc };
@@ -1,2 +1,2 @@
1
- import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "../index-BI-1SKm5.mjs";
1
+ import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "../index-D81RV9Vc.mjs";
2
2
  export { type AttrSpec, type ChildSpec, type ChildrenSpec, type ContentSpec, type CustomDescriptor, type Descriptor, DescriptorBuilder, DescriptorRegistry, type ElementDescriptor, type ReadContext, type TextSpec, type UnionSpec, type UnionVariant, type WriteContext, boolDecode, boolEncode, element, enumDecode, enumEncode, parse, stringify };
@@ -1,2 +1,2 @@
1
- import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "../descriptor-DKmR7pw-.mjs";
1
+ import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "../descriptor-57JUzfpG.mjs";
2
2
  export { DescriptorBuilder, DescriptorRegistry, boolDecode, boolEncode, element, enumDecode, enumEncode, parse, stringify };
@@ -170,7 +170,7 @@ function stringifyCustom(spec, value, ctx) {
170
170
  return spec.stringify(value, ctx);
171
171
  }
172
172
  /**
173
- * Parse an XML Element into a partial Options object using its descriptor.
173
+ * Parse an XML Element into an Options object using its descriptor.
174
174
  */
175
175
  function parse(desc, el, ctx) {
176
176
  if (desc.kind === "custom") return desc.parse(el, ctx);
@@ -1,2 +1,2 @@
1
- import { $ as createStyleLbl, $a as createSchemeColor, $n as ReflectionEffectOptions, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, An as Shape3DOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bn as Scene3DOptions, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fn as createBottomBevel, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gn as EffectContainerType, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hn as Vector3D, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, In as BackdropOptions, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Jn as BlurEffectOptions, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Kn as EffectDagOptions, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Ln as CameraOptions, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mn as BevelOptions, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Nn as BevelPresetType, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pn as createBevel, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qn as createEffectList, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Rn as LightRigOptions, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Un as createScene3D, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vn as SphereCoords, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wn as createSoftEdgeEffect, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xn as EffectListOptions, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yn as EffectExtent, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zn as calculateEffectExtent, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, jn as createShape3D, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, kn as PresetMaterialType, kt as PresLayoutVarsOptions, l as tileDesc, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qn as createEffectDag, qt as OnOffStyleType, r as diagramStyleDesc, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zn as Point3D, zt as GraphicFrameLockingOptions } from "../index-RWXzxibP.mjs";
1
+ import { $ as createStyleLbl, $a as createSchemeColor, $n as ReflectionEffectOptions, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, An as Shape3DOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bn as Scene3DOptions, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fn as createBottomBevel, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gn as EffectContainerType, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hn as Vector3D, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, In as BackdropOptions, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Jn as BlurEffectOptions, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Kn as EffectDagOptions, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Ln as CameraOptions, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mn as BevelOptions, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Nn as BevelPresetType, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pn as createBevel, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qn as createEffectList, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Rn as LightRigOptions, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Un as createScene3D, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vn as SphereCoords, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wn as createSoftEdgeEffect, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xn as EffectListOptions, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yn as EffectExtent, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zn as calculateEffectExtent, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, jn as createShape3D, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, kn as PresetMaterialType, kt as PresLayoutVarsOptions, l as tileDesc, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qn as createEffectDag, qt as OnOffStyleType, r as diagramStyleDesc, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zn as Point3D, zt as GraphicFrameLockingOptions } from "../index-BqJRDf5H.mjs";
2
2
  export { type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ChMaxOptions, type ChPrefOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PresLayoutVarsOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefHdrLstOptions, type StyleDefHdrOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
@@ -1,2 +1,2 @@
1
- import { $ as systemColorDesc, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, H as outlineDesc, Hn as buildFill, I as presetGeometryDesc, In as LineEndType, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, K as getColorDescriptor, Kn as PathShadeType, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pt as createGraphicFrameLocking, Q as solidFillDesc, R as groupLockingDesc, Rn as createLineEnd, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, V as effectListDesc, Vn as createNoFill, W as gradientFillDesc, Wn as PresetPattern, X as scRgbColorDesc, Xn as TileAlignment, Y as rgbColorDesc, Yn as createGradientStop, Z as schemeColorDesc, Zn as createTileInfo, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, an as createBlip, at as FontCollectionIndex, bn as createReflectionEffect, bt as createStyleDefHdr, cn as stringifyPresetGeometry, ct as createDiagramStyle, dn as createShape3D, dt as createLinClrLst, et as createDiagramExtLst, fn as BevelPresetType, ft as createStyleLbl, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, hn as createScene3D, ht as createTxLinClrLst, in as createBlipFill, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, ln as stringifyAdjustmentValues, lt as createEffectClrLst, mn as createBottomBevel, mt as createTxFillClrLst, nn as createTransform2D, nt as createDiagramTxPr, on as createExtentionList, ot as HueDirection, pn as createBevel, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, rn as stringifyStretch, rt as createDiagramRelIds, sn as createCustomGeometry, st as StyleMatrixIndex, tn as createGroupTransform2D, tt as createDiagramSp3d, un as PresetMaterialType, ut as createFillClrLst, vn as createEffectList, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xt as createStyleDefHdrLst, yn as createSoftEdgeEffect, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zt as createTableStyleList } from "../src-CU2AFKyt.mjs";
1
+ import { $ as systemColorDesc, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, H as outlineDesc, Hn as buildFill, I as presetGeometryDesc, In as LineEndType, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, K as getColorDescriptor, Kn as PathShadeType, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pt as createGraphicFrameLocking, Q as solidFillDesc, R as groupLockingDesc, Rn as createLineEnd, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, V as effectListDesc, Vn as createNoFill, W as gradientFillDesc, Wn as PresetPattern, X as scRgbColorDesc, Xn as TileAlignment, Y as rgbColorDesc, Yn as createGradientStop, Z as schemeColorDesc, Zn as createTileInfo, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, an as createBlip, at as FontCollectionIndex, bn as createReflectionEffect, bt as createStyleDefHdr, cn as stringifyPresetGeometry, ct as createDiagramStyle, dn as createShape3D, dt as createLinClrLst, et as createDiagramExtLst, fn as BevelPresetType, ft as createStyleLbl, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, hn as createScene3D, ht as createTxLinClrLst, in as createBlipFill, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, ln as stringifyAdjustmentValues, lt as createEffectClrLst, mn as createBottomBevel, mt as createTxFillClrLst, nn as createTransform2D, nt as createDiagramTxPr, on as createExtentionList, ot as HueDirection, pn as createBevel, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, rn as stringifyStretch, rt as createDiagramRelIds, sn as createCustomGeometry, st as StyleMatrixIndex, tn as createGroupTransform2D, tt as createDiagramSp3d, un as PresetMaterialType, ut as createFillClrLst, vn as createEffectList, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xt as createStyleDefHdrLst, yn as createSoftEdgeEffect, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zt as createTableStyleList } from "../src-DPuDEZYF.mjs";
2
2
  export { AnimLevelValue, AnimOneValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
@@ -1,4 +1,4 @@
1
- import { m as CustomDescriptor } from "./index-BI-1SKm5.mjs";
1
+ import { m as CustomDescriptor } from "./index-D81RV9Vc.mjs";
2
2
 
3
3
  //#region src/theme/theme-options.d.ts
4
4
  /**
@@ -1,8 +1,7 @@
1
- import { m as CustomDescriptor } from "./index-BI-1SKm5.mjs";
1
+ import { m as CustomDescriptor } from "./index-D81RV9Vc.mjs";
2
2
  import { s as UniversalMeasure } from "./values-Dqj8cbcy.mjs";
3
3
  import { Element } from "@office-open/xml";
4
4
  import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8 as strFromU8$1, unzipSync as unzipSync$1 } from "fflate";
5
- import { DataType, toUint8Array } from "undio";
6
5
  import { Buffer } from "\u0000polyfill-node.buffer";
7
6
 
8
7
  //#region src/drawingml/color/color-transform.d.ts
@@ -1446,6 +1445,8 @@ declare const OoxmlMimeType: {
1446
1445
  declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T, mimeType?: string) => OutputByType[T];
1447
1446
  //#endregion
1448
1447
  //#region src/opc/packer.d.ts
1448
+ type DataType = ArrayBufferLike | Blob | DataView | number[] | ReadableStream | string | Uint8Array;
1449
+ declare function toUint8Array(data: DataType): Uint8Array;
1449
1450
  interface XmlifyedFile {
1450
1451
  path: string;
1451
1452
  data: string | Uint8Array;
@@ -1524,9 +1525,9 @@ interface Packer<TFile> {
1524
1525
  /** Sync → `Buffer` (Node.js). */
1525
1526
  toBufferSync(file: TFile, options?: PackerOptions): Buffer;
1526
1527
  /** Async → `Promise<string>` (base64-encoded). */
1527
- toBase64String(file: TFile, options?: PackerOptions): Promise<string>;
1528
+ toBase64(file: TFile, options?: PackerOptions): Promise<string>;
1528
1529
  /** Sync → `string` (base64-encoded). */
1529
- toBase64StringSync(file: TFile, options?: PackerOptions): string;
1530
+ toBase64Sync(file: TFile, options?: PackerOptions): string;
1530
1531
  /** Async → `Promise<Blob>` (browser). */
1531
1532
  toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
1532
1533
  /** Sync → `Blob`. */
@@ -1751,16 +1752,17 @@ declare const convertToEmu: (val: number | string) => number;
1751
1752
  * Implements ECMA-376 Agile Encryption password derivation.
1752
1753
  * Passwords are encoded as UTF-16LE per the OOXML specification.
1753
1754
  *
1755
+ * Uses @noble/hashes for SHA-512 — audited, cross-platform,
1756
+ * and comparable in speed to node:crypto for this workload.
1757
+ *
1754
1758
  * @module
1755
1759
  */
1756
- /**
1757
- * Generates cryptographically secure random bytes.
1758
- */
1759
1760
  declare function randomBytes(length: number): Uint8Array;
1760
1761
  /**
1761
1762
  * Computes the ECMA-376 Agile Encryption hash for a password.
1762
1763
  *
1763
- * Algorithm: SHA-512(salt + UTF-16LE(password)), then iterate SHA-512(hash + i.toUint32LE()) spinCount times.
1764
+ * Algorithm: SHA-512(salt + UTF-16LE(password)), then iterate
1765
+ * SHA-512(hash + i.toUint32LE()) spinCount times.
1764
1766
  */
1765
1767
  declare function hashPasswordAgile(password: string, salt: Uint8Array, spinCount: number): string;
1766
1768
  /**
@@ -1777,6 +1779,11 @@ declare function derivePasswordHash(password: string, spinCount?: number): {
1777
1779
  };
1778
1780
  //#endregion
1779
1781
  //#region src/util/generators.d.ts
1782
+ /**
1783
+ * Unique ID generation utilities.
1784
+ *
1785
+ * @module
1786
+ */
1780
1787
  /**
1781
1788
  * A function that generates unique sequential numeric IDs.
1782
1789
  */
@@ -1786,15 +1793,15 @@ type UniqueNumericIdCreator = () => number;
1786
1793
  */
1787
1794
  declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
1788
1795
  /**
1789
- * Generates a unique lowercase alphanumeric ID using nanoid.
1796
+ * Generates a unique lowercase alphanumeric ID using crypto.getRandomValues.
1790
1797
  */
1791
1798
  declare const uniqueId: () => string;
1792
1799
  /**
1793
1800
  * Generates a SHA-1 hash of the provided data.
1794
1801
  */
1795
- declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
1802
+ declare const hashedId: (data: Uint8Array | ArrayBuffer | string) => string;
1796
1803
  /**
1797
- * Generates a UUID v4-style unique identifier.
1804
+ * Generates a UUID v4-style unique identifier using crypto.randomUUID.
1798
1805
  */
1799
1806
  declare const uniqueUuid: () => string;
1800
1807
  //#endregion
@@ -30,7 +30,7 @@ interface ElementDescriptor<T> {
30
30
  interface CustomDescriptor<T, Ctx = WriteContext> {
31
31
  readonly kind: "custom";
32
32
  stringify(value: T, ctx: Ctx): string | undefined;
33
- parse(el: Element, ctx: ReadContext): Partial<T>;
33
+ parse(el: Element, ctx: ReadContext): T;
34
34
  }
35
35
  /** Union type for all descriptors. */
36
36
  type Descriptor<T> = ElementDescriptor<T> | CustomDescriptor<T>;
@@ -113,9 +113,9 @@ declare class DescriptorBuilder<T extends object> {
113
113
  */
114
114
  declare function stringify<T>(desc: Descriptor<T>, value: T, ctx: WriteContext): string | undefined;
115
115
  /**
116
- * Parse an XML Element into a partial Options object using its descriptor.
116
+ * Parse an XML Element into an Options object using its descriptor.
117
117
  */
118
- declare function parse<T>(desc: Descriptor<T>, el: Element, ctx: ReadContext): Partial<T>;
118
+ declare function parse<T>(desc: Descriptor<T>, el: Element, ctx: ReadContext): T;
119
119
  //#endregion
120
120
  //#region src/descriptor/helpers.d.ts
121
121
  /**
@@ -51,7 +51,7 @@ interface ElementWrapper {
51
51
  }
52
52
  interface RenderedParagraphNode {
53
53
  readonly text: string;
54
- readonly runs: readonly IRenderedRunNode[];
54
+ readonly runs: readonly RenderedRunNode[];
55
55
  readonly index: number;
56
56
  readonly pathToParagraph: readonly number[];
57
57
  }
@@ -63,7 +63,7 @@ type IParts = {
63
63
  readonly text: string;
64
64
  readonly index: number;
65
65
  } & StartAndEnd;
66
- type IRenderedRunNode = {
66
+ type RenderedRunNode = {
67
67
  readonly text: string;
68
68
  readonly parts: readonly IParts[];
69
69
  readonly index: number;
@@ -1,4 +1,4 @@
1
- import { m as CustomDescriptor } from "./index-BI-1SKm5.mjs";
1
+ import { m as CustomDescriptor } from "./index-D81RV9Vc.mjs";
2
2
 
3
3
  //#region src/chart/chart-collection.d.ts
4
4
  /**
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "./index-DNH2sizc.mjs";
2
- import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "./index-BI-1SKm5.mjs";
3
- import { $ as createStyleLbl, $a as createSchemeColor, $i as zipAndConvert, $n as ReflectionEffectOptions, $r as xsdMaterialType, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, Ai as convertToEmu, An as Shape3DOptions, Ar as SmartArtRelOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bi as DataType, Bn as Scene3DOptions, Br as replaceChartPlaceholders, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Ci as convertEmuToPoints, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Di as convertPixelsToEmu, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, Ei as convertMillimetersToTwip, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fi as compileMapping, Fn as createBottomBevel, Fr as getMediaRefs, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gi as ZIP_STORED_LEVEL, Gn as EffectContainerType, Gr as replaceSmartArtPlaceholders, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hi as PackerOptions, Hn as Vector3D, Hr as replaceImagePlaceholders, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, Ii as ParsedArchive, In as BackdropOptions, Ir as getReferencedMedia, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Ji as createPacker, Jn as BlurEffectOptions, Jr as xsdBlendMode, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Ki as ZipOptions, Kn as EffectDagOptions, Kr as replaceVideoPlaceholders, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Li as parseArchive, Ln as CameraOptions, Lr as getVideoRefs, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mi as convertUniversalMeasureToEmu, Mn as BevelOptions, Mr as collectPlaceholderKeys, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Ni as convertUniversalMeasureToTwip, Nn as BevelPresetType, Nr as findAndReplaceImagePlaceholders, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, Oi as convertPointsToEmu, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pi as parseUniversalMeasure, Pn as createBevel, Pr as formatId, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qi as unzipSync, Qn as createEffectList, Qr as xsdLineEndSize, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Ri as CompileFn, Rn as LightRigOptions, Rr as hasPlaceholders, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Si as convertEmuToPixels, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Ti as convertInchesToTwip, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Ui as XmlifyedFile, Un as createScene3D, Ur as replaceMediaPlaceholders, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vi as Packer, Vn as SphereCoords, Vr as replaceHyperlinkPlaceholders, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wi as ZIP_DEFLATE_LEVEL, Wn as createSoftEdgeEffect, Wr as replaceNumberingPlaceholders, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xi as strFromU8, Xn as EffectListOptions, Xr as xsdEffectContainer, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yi as createZipStream, Yn as EffectExtent, Yr as xsdCompoundLine, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zi as toUint8Array, Zn as calculateEffectExtent, Zr as xsdLineCap, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _i as hashPasswordAgile, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, aa as CoreProperties, ai as xsdStrikeStyle, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bi as PixelPosition, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, ca as parseCorePropsElement, ci as xsdTextCaps, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, da as createDefault, di as UniqueNumericIdCreator, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, ea as zipSyncAndConvert, ei as xsdPathFillMode, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fa as createOverride, fi as hashedId, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, ga as APP_PROPS_XML, gi as derivePasswordHash, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, ha as TargetModeType, hi as uniqueUuid, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, ia as convertOutput, ii as xsdRectAlignment, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, ji as convertToTwip, jn as createShape3D, jr as addSmartArtRelationships, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, ki as convertPositionToEmu, kn as PresetMaterialType, kr as IdFormat, kt as PresLayoutVarsOptions, l as tileDesc, la as DefaultAttributes, li as xsdUnderlineStyle, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, ma as Relationships, mi as uniqueNumericIdCreator, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, na as OutputByType, ni as xsdPenAlignment, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, oa as buildCorePropertiesXml, oi as xsdTextAlign, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pa as RelationshipType, pi as uniqueId, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qi as Zippable, qn as createEffectDag, qr as invertMap, qt as OnOffStyleType, r as diagramStyleDesc, ra as OutputType, ri as xsdPresetShadow, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sa as buildCorePropertiesXmlString, si as xsdTextAnchor, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, ta as OoxmlMimeType, ti as xsdPattern, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, ua as OverrideAttributes, ui as xsdVerticalMergeRev, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vi as randomBytes, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wi as convertInchesToEmu, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xi as convertEmuToInches, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yi as EmuPosition, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zi as CompressionOptions, zn as Point3D, zr as replaceAllPlaceholders, zt as GraphicFrameLockingOptions } from "./index-RWXzxibP.mjs";
1
+ import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "./index-xXbaecaB.mjs";
2
+ import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "./index-D81RV9Vc.mjs";
3
+ import { $ as createStyleLbl, $a as createSchemeColor, $i as zipAndConvert, $n as ReflectionEffectOptions, $r as xsdMaterialType, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, Ai as convertToEmu, An as Shape3DOptions, Ar as SmartArtRelOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bi as DataType, Bn as Scene3DOptions, Br as replaceChartPlaceholders, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Ci as convertEmuToPoints, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Di as convertPixelsToEmu, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, Ei as convertMillimetersToTwip, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fi as compileMapping, Fn as createBottomBevel, Fr as getMediaRefs, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gi as ZIP_STORED_LEVEL, Gn as EffectContainerType, Gr as replaceSmartArtPlaceholders, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hi as PackerOptions, Hn as Vector3D, Hr as replaceImagePlaceholders, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, Ii as ParsedArchive, In as BackdropOptions, Ir as getReferencedMedia, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Ji as createPacker, Jn as BlurEffectOptions, Jr as xsdBlendMode, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Ki as ZipOptions, Kn as EffectDagOptions, Kr as replaceVideoPlaceholders, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Li as parseArchive, Ln as CameraOptions, Lr as getVideoRefs, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mi as convertUniversalMeasureToEmu, Mn as BevelOptions, Mr as collectPlaceholderKeys, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Ni as convertUniversalMeasureToTwip, Nn as BevelPresetType, Nr as findAndReplaceImagePlaceholders, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, Oi as convertPointsToEmu, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pi as parseUniversalMeasure, Pn as createBevel, Pr as formatId, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qi as unzipSync, Qn as createEffectList, Qr as xsdLineEndSize, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Ri as CompileFn, Rn as LightRigOptions, Rr as hasPlaceholders, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Si as convertEmuToPixels, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Ti as convertInchesToTwip, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Ui as XmlifyedFile, Un as createScene3D, Ur as replaceMediaPlaceholders, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vi as Packer, Vn as SphereCoords, Vr as replaceHyperlinkPlaceholders, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wi as ZIP_DEFLATE_LEVEL, Wn as createSoftEdgeEffect, Wr as replaceNumberingPlaceholders, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xi as strFromU8, Xn as EffectListOptions, Xr as xsdEffectContainer, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yi as createZipStream, Yn as EffectExtent, Yr as xsdCompoundLine, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zi as toUint8Array, Zn as calculateEffectExtent, Zr as xsdLineCap, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _i as hashPasswordAgile, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, aa as CoreProperties, ai as xsdStrikeStyle, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bi as PixelPosition, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, ca as parseCorePropsElement, ci as xsdTextCaps, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, da as createDefault, di as UniqueNumericIdCreator, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, ea as zipSyncAndConvert, ei as xsdPathFillMode, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fa as createOverride, fi as hashedId, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, ga as APP_PROPS_XML, gi as derivePasswordHash, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, ha as TargetModeType, hi as uniqueUuid, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, ia as convertOutput, ii as xsdRectAlignment, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, ji as convertToTwip, jn as createShape3D, jr as addSmartArtRelationships, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, ki as convertPositionToEmu, kn as PresetMaterialType, kr as IdFormat, kt as PresLayoutVarsOptions, l as tileDesc, la as DefaultAttributes, li as xsdUnderlineStyle, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, ma as Relationships, mi as uniqueNumericIdCreator, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, na as OutputByType, ni as xsdPenAlignment, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, oa as buildCorePropertiesXml, oi as xsdTextAlign, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pa as RelationshipType, pi as uniqueId, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qi as Zippable, qn as createEffectDag, qr as invertMap, qt as OnOffStyleType, r as diagramStyleDesc, ra as OutputType, ri as xsdPresetShadow, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sa as buildCorePropertiesXmlString, si as xsdTextAnchor, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, ta as OoxmlMimeType, ti as xsdPattern, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, ua as OverrideAttributes, ui as xsdVerticalMergeRev, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vi as randomBytes, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wi as convertInchesToEmu, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xi as convertEmuToInches, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yi as EmuPosition, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zi as CompressionOptions, zn as Point3D, zr as replaceAllPlaceholders, zt as GraphicFrameLockingOptions } from "./index-BqJRDf5H.mjs";
4
4
  import { a as PointPropertySetOptions, c as stringifyDataModel, d as getColorXml, f as getLayoutXml, g as STYLE_CATEGORIES, h as LAYOUT_CATEGORIES, i as SmartArtData, l as stringifyConnection, m as COLOR_CATEGORIES, n as createDataModel, o as stringifyPoint, p as getStyleXml, r as SmartArtCollection, s as stringifyTransPoint, t as TreeNode, u as DEFAULT_DRAWING_XML } from "./index-eu1aFQCm.mjs";
5
- import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-BCUfgp9A.mjs";
6
- import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-DByjp6ug.mjs";
5
+ import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-DmPBJwSk.mjs";
6
+ import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-BKotL3AP.mjs";
7
7
  import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-Dqj8cbcy.mjs";
8
8
  export { APP_PROPS_XML, type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, type AttrSpec, AxisChartType, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleSeriesData, COLOR_CATEGORIES, type CameraOptions, type ChMaxOptions, type ChPrefOptions, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, type ChildSpec, type ChildrenSpec, type ColorListOptions, ColorMethod, type ColorSchemeOptions, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, type CompileFn, CompoundLine, type CompressionOptions, type ConnectionSite, type ContentSpec, type CoreProperties, type CustomDescriptor, type CustomGeometryOptions, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataLabelPosition, DataLabelsOptions, type DataType, type DefaultAttributes, type Descriptor, DescriptorBuilder, DescriptorRegistry, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type ElementDescriptor, EmuPosition, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type FontSchemeOptions, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, IdFormat, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, OoxmlMimeType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type OutputByType, type OutputType, type OverrideAttributes, PPTX_NS, type Packer, type PackerOptions, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, type PictureLockingOptions, PixelPosition, type Point3D, PointPropertySetOptions, PositivePercentage, PositiveUniversalMeasure, type PresLayoutVarsOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, type ReadContext, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefHdrLstOptions, type StyleDefHdrOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, TargetModeType, type TextSpec, ThemeColor, ThemeFont, type ThemeOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, TimeUnit, TokenNotFoundError, type Transform2DOptions, TreeNode, TrendlineOptions, TrendlineType, type UnionSpec, type UnionVariant, UniqueNumericIdCreator, UniversalMeasure, type Vector3D, View3DOptions, type WriteContext, type XmlNamespaceConfig, type XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, bevelDesc, blipDesc, blipFillDesc, boolDecode, boolEncode, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, buildThemeXml, calculateEffectExtent, chartSpaceDesc, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertPositionToEmu, convertToEmu, convertToTwip, convertUniversalMeasureToEmu, convertUniversalMeasureToTwip, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDataModel, createDefault, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTextElementContents, createThemeXml, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, createZipStream, customGeometryDesc, dateTimeValue, decimalNumber, derivePasswordHash, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, eighthPointMeasureValue, element, enumDecode, enumEncode, extractBlipFillMedia, fillDesc, findAndReplaceImagePlaceholders, formatId, getColorDescriptor, getColorXml, getFirstLevelElements, getLayoutXml, getMediaRefs, getNextRelationshipIndex, getReferencedMedia, getStyleXml, getVideoRefs, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, hslColorDesc, invertMap, longHexNumber, measurementOrPercentValue, outlineDesc, parse, parseArchive, parseCorePropsElement, parseUniversalMeasure, patchSpaceAttribute, patternFillDesc, percentageValue, pictureLockingDesc, pointMeasureValue, positiveUniversalMeasureValue, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, randomBytes, replaceAllPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, solidFillDesc, sourceRectangleDesc, strFromU8, stretchDesc, stringify, stringifyAdjustmentValues, stringifyConnection, stringifyDataModel, stringifyPoint, stringifyPresetGeometry, stringifyStretch, stringifyTransPoint, systemColorDesc, themeDesc, tileDesc, toJson, toUint8Array, transform2DDesc, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { $ as systemColorDesc, $n as xsdBlendMode, $r as TargetModeType, $t as convertUniversalMeasureToTwip, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Br as strFromU8, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Fr as parseArchive, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, Gr as OoxmlMimeType, Gt as convertInchesToTwip, H as outlineDesc, Hn as buildFill, Hr as unzipSync, Ht as convertEmuToPixels, I as presetGeometryDesc, In as LineEndType, Ir as ZIP_DEFLATE_LEVEL, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, Jr as buildCorePropertiesXmlString, Jt as convertPointsToEmu, K as getColorDescriptor, Kn as PathShadeType, Kr as convertOutput, Kt as convertMillimetersToTwip, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lr as ZIP_STORED_LEVEL, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pr as ParsedArchive, Pt as createGraphicFrameLocking, Q as solidFillDesc, Qn as invertMap, Qr as Relationships, Qt as convertUniversalMeasureToEmu, R as groupLockingDesc, Rn as createLineEnd, Rr as createPacker, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, Ur as zipAndConvert, Ut as convertEmuToPoints, V as effectListDesc, Vn as createNoFill, Vr as toUint8Array, Vt as convertEmuToInches, W as gradientFillDesc, Wn as PresetPattern, Wr as zipSyncAndConvert, Wt as convertInchesToEmu, X as scRgbColorDesc, Xn as TileAlignment, Xr as createDefault, Xt as convertToEmu, Y as rgbColorDesc, Yn as createGradientStop, Yr as parseCorePropsElement, Yt as convertPositionToEmu, Z as schemeColorDesc, Zn as createTileInfo, Zr as createOverride, Zt as convertToTwip, _ as derivePasswordHash, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, a as getMediaRefs, an as createBlip, ar as xsdPathFillMode, at as FontCollectionIndex, b as compileMapping, bn as createReflectionEffect, br as uniqueNumericIdCreator, bt as createStyleDefHdr, c as hasPlaceholders, cn as stringifyPresetGeometry, cr as xsdPresetShadow, ct as createDiagramStyle, d as replaceHyperlinkPlaceholders, dn as createShape3D, dr as xsdTextAlign, dt as createLinClrLst, ei as APP_PROPS_XML, en as parseUniversalMeasure, er as xsdCompoundLine, et as createDiagramExtLst, f as replaceImagePlaceholders, fn as BevelPresetType, fr as xsdTextAnchor, ft as createStyleLbl, g as replaceVideoPlaceholders, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, h as replaceSmartArtPlaceholders, hn as createScene3D, hr as xsdVerticalMergeRev, ht as createTxLinClrLst, i as formatId, in as createBlipFill, ir as xsdMaterialType, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, l as replaceAllPlaceholders, ln as stringifyAdjustmentValues, lr as xsdRectAlignment, lt as createEffectClrLst, m as replaceNumberingPlaceholders, mn as createBottomBevel, mr as xsdUnderlineStyle, mt as createTxFillClrLst, n as collectPlaceholderKeys, nn as createTransform2D, nr as xsdLineCap, nt as createDiagramTxPr, o as getReferencedMedia, on as createExtentionList, or as xsdPattern, ot as HueDirection, p as replaceMediaPlaceholders, pn as createBevel, pr as xsdTextCaps, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, qr as buildCorePropertiesXml, qt as convertPixelsToEmu, r as findAndReplaceImagePlaceholders, rn as stringifyStretch, rr as xsdLineEndSize, rt as createDiagramRelIds, s as getVideoRefs, sn as createCustomGeometry, sr as xsdPenAlignment, st as StyleMatrixIndex, t as addSmartArtRelationships, tn as createGroupTransform2D, tr as xsdEffectContainer, tt as createDiagramSp3d, u as replaceChartPlaceholders, un as PresetMaterialType, ur as xsdStrikeStyle, ut as createFillClrLst, v as hashPasswordAgile, vn as createEffectList, vr as hashedId, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xr as uniqueUuid, xt as createStyleDefHdrLst, y as randomBytes, yn as createSoftEdgeEffect, yr as uniqueId, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zr as createZipStream, zt as createTableStyleList } from "./src-CU2AFKyt.mjs";
1
+ import { $ as systemColorDesc, $n as xsdBlendMode, $r as TargetModeType, $t as convertUniversalMeasureToTwip, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Br as strFromU8, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Fr as parseArchive, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, Gr as OoxmlMimeType, Gt as convertInchesToTwip, H as outlineDesc, Hn as buildFill, Hr as unzipSync, Ht as convertEmuToPixels, I as presetGeometryDesc, In as LineEndType, Ir as ZIP_DEFLATE_LEVEL, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, Jr as buildCorePropertiesXmlString, Jt as convertPointsToEmu, K as getColorDescriptor, Kn as PathShadeType, Kr as convertOutput, Kt as convertMillimetersToTwip, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lr as ZIP_STORED_LEVEL, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pr as ParsedArchive, Pt as createGraphicFrameLocking, Q as solidFillDesc, Qn as invertMap, Qr as Relationships, Qt as convertUniversalMeasureToEmu, R as groupLockingDesc, Rn as createLineEnd, Rr as createPacker, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, Ur as zipAndConvert, Ut as convertEmuToPoints, V as effectListDesc, Vn as createNoFill, Vr as toUint8Array, Vt as convertEmuToInches, W as gradientFillDesc, Wn as PresetPattern, Wr as zipSyncAndConvert, Wt as convertInchesToEmu, X as scRgbColorDesc, Xn as TileAlignment, Xr as createDefault, Xt as convertToEmu, Y as rgbColorDesc, Yn as createGradientStop, Yr as parseCorePropsElement, Yt as convertPositionToEmu, Z as schemeColorDesc, Zn as createTileInfo, Zr as createOverride, Zt as convertToTwip, _ as derivePasswordHash, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, a as getMediaRefs, an as createBlip, ar as xsdPathFillMode, at as FontCollectionIndex, b as compileMapping, bn as createReflectionEffect, br as uniqueNumericIdCreator, bt as createStyleDefHdr, c as hasPlaceholders, cn as stringifyPresetGeometry, cr as xsdPresetShadow, ct as createDiagramStyle, d as replaceHyperlinkPlaceholders, dn as createShape3D, dr as xsdTextAlign, dt as createLinClrLst, ei as APP_PROPS_XML, en as parseUniversalMeasure, er as xsdCompoundLine, et as createDiagramExtLst, f as replaceImagePlaceholders, fn as BevelPresetType, fr as xsdTextAnchor, ft as createStyleLbl, g as replaceVideoPlaceholders, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, h as replaceSmartArtPlaceholders, hn as createScene3D, hr as xsdVerticalMergeRev, ht as createTxLinClrLst, i as formatId, in as createBlipFill, ir as xsdMaterialType, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, l as replaceAllPlaceholders, ln as stringifyAdjustmentValues, lr as xsdRectAlignment, lt as createEffectClrLst, m as replaceNumberingPlaceholders, mn as createBottomBevel, mr as xsdUnderlineStyle, mt as createTxFillClrLst, n as collectPlaceholderKeys, nn as createTransform2D, nr as xsdLineCap, nt as createDiagramTxPr, o as getReferencedMedia, on as createExtentionList, or as xsdPattern, ot as HueDirection, p as replaceMediaPlaceholders, pn as createBevel, pr as xsdTextCaps, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, qr as buildCorePropertiesXml, qt as convertPixelsToEmu, r as findAndReplaceImagePlaceholders, rn as stringifyStretch, rr as xsdLineEndSize, rt as createDiagramRelIds, s as getVideoRefs, sn as createCustomGeometry, sr as xsdPenAlignment, st as StyleMatrixIndex, t as addSmartArtRelationships, tn as createGroupTransform2D, tr as xsdEffectContainer, tt as createDiagramSp3d, u as replaceChartPlaceholders, un as PresetMaterialType, ur as xsdStrikeStyle, ut as createFillClrLst, v as hashPasswordAgile, vn as createEffectList, vr as hashedId, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xr as uniqueUuid, xt as createStyleDefHdrLst, y as randomBytes, yn as createSoftEdgeEffect, yr as uniqueId, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zr as createZipStream, zt as createTableStyleList } from "./src-DPuDEZYF.mjs";
2
2
  import { a as stringifyDataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as stringifyTransPoint, l as getLayoutXml, n as SmartArtCollection, o as stringifyConnection, p as STYLE_CATEGORIES, r as stringifyPoint, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-DCY-Vdv7.mjs";
3
3
  import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "./chart-DNpai28f.mjs";
4
- import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "./descriptor-DKmR7pw-.mjs";
4
+ import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "./descriptor-57JUzfpG.mjs";
5
5
  import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "./patch-ilNZTQmG.mjs";
6
6
  import { i as DEFAULT_COLORS, n as createThemeXml, r as buildThemeXml, t as themeDesc } from "./theme-CiNzdl-9.mjs";
7
7
  import { _ as twipsMeasureValue, a as eighthPointMeasureValue, b as unsignedDecimalNumber, c as hpsMeasureValue, d as percentageValue, f as pointMeasureValue, g as signedTwipsMeasureValue, h as signedHpsMeasureValue, i as decimalNumber, l as longHexNumber, m as shortHexNumber, n as ThemeFont, o as hexBinary, p as positiveUniversalMeasureValue, r as dateTimeValue, s as hexColorValue, t as ThemeColor, u as measurementOrPercentValue, v as uCharHexNumber, y as universalMeasureValue } from "./values-CVIZcTRw.mjs";
@@ -1,2 +1,2 @@
1
- import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "../index-BCUfgp9A.mjs";
1
+ import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "../index-DmPBJwSk.mjs";
2
2
  export { DOCX_NS, PPTX_NS, type RenderedParagraphNode, type ReplacerConfig, TokenNotFoundError, type XmlNamespaceConfig, appendContentType, appendRelationship, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, patchSpaceAttribute, toJson };
@@ -1,13 +1,13 @@
1
1
  import "./smartart-DCY-Vdv7.mjs";
2
2
  import "./chart-DNpai28f.mjs";
3
- import { o as parse, s as stringify } from "./descriptor-DKmR7pw-.mjs";
3
+ import { o as parse, s as stringify } from "./descriptor-57JUzfpG.mjs";
4
4
  import "./patch-ilNZTQmG.mjs";
5
5
  import "./theme-CiNzdl-9.mjs";
6
6
  import { element, escapeXml, findChild, js2xml, textOf, xml2js } from "@office-open/xml";
7
7
  import { AsyncZipDeflate, Zip, ZipPassThrough, strFromU8, strFromU8 as strFromU8$1, strToU8, unzipSync, unzipSync as unzipSync$1, zip, zipSync } from "fflate";
8
- import { toUint8Array as toUint8Array$1 } from "undio";
9
- import hash from "hash.js";
10
- import { customAlphabet, nanoid } from "nanoid/non-secure";
8
+ import { sha1 } from "@noble/hashes/legacy.js";
9
+ import { bytesToHex } from "@noble/hashes/utils.js";
10
+ import { sha512 } from "@noble/hashes/sha2.js";
11
11
  //#region src/opc/app-properties.ts
12
12
  /** Static app properties XML constant. */
13
13
  const APP_PROPS_XML = "<Properties xmlns=\"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\" xmlns:vt=\"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\"><Application>Microsoft Office Word</Application></Properties>";
@@ -1616,6 +1616,16 @@ async function nativeZipAsync(files, level = 6) {
1616
1616
  *
1617
1617
  * @module
1618
1618
  */
1619
+ function toUint8Array$1(data) {
1620
+ if (data instanceof Uint8Array) return data;
1621
+ if (data instanceof ArrayBuffer || data instanceof SharedArrayBuffer) return new Uint8Array(data);
1622
+ if (data instanceof DataView) return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
1623
+ if (typeof data === "string") return new TextEncoder().encode(data);
1624
+ if (Array.isArray(data)) return new Uint8Array(data);
1625
+ if (data instanceof Blob) throw new TypeError("Blob input requires async processing");
1626
+ if (data instanceof ReadableStream) throw new TypeError("ReadableStream input requires async processing");
1627
+ throw new TypeError(`Unsupported data type: ${typeof data}`);
1628
+ }
1619
1629
  /** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
1620
1630
  const ZIP_DEFLATE_LEVEL = 1;
1621
1631
  /** Default level for media entries (STORE — no compression). */
@@ -1703,7 +1713,7 @@ const createPacker = (options) => {
1703
1713
  ...opts,
1704
1714
  type: "nodebuffer"
1705
1715
  });
1706
- const toBase64String = (file, opts) => pack(file, {
1716
+ const toBase64 = (file, opts) => pack(file, {
1707
1717
  ...opts,
1708
1718
  type: "base64"
1709
1719
  });
@@ -1731,7 +1741,7 @@ const createPacker = (options) => {
1731
1741
  ...opts,
1732
1742
  type: "nodebuffer"
1733
1743
  });
1734
- const toBase64StringSync = (file, opts) => packSync(file, {
1744
+ const toBase64Sync = (file, opts) => packSync(file, {
1735
1745
  ...opts,
1736
1746
  type: "base64"
1737
1747
  });
@@ -1765,8 +1775,8 @@ const createPacker = (options) => {
1765
1775
  toStringSync,
1766
1776
  toBuffer,
1767
1777
  toBufferSync,
1768
- toBase64String,
1769
- toBase64StringSync,
1778
+ toBase64,
1779
+ toBase64Sync,
1770
1780
  toBlob,
1771
1781
  toBlobSync,
1772
1782
  toArrayBuffer,
@@ -2473,22 +2483,27 @@ const uniqueNumericIdCreator = (initial = 0) => {
2473
2483
  let currentCount = initial;
2474
2484
  return () => ++currentCount;
2475
2485
  };
2486
+ const URL_ALPHABET = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2476
2487
  /**
2477
- * Generates a unique lowercase alphanumeric ID using nanoid.
2488
+ * Generates a unique lowercase alphanumeric ID using crypto.getRandomValues.
2478
2489
  */
2479
- const uniqueId = () => nanoid().toLowerCase();
2490
+ const uniqueId = () => {
2491
+ const bytes = new Uint8Array(21);
2492
+ crypto.getRandomValues(bytes);
2493
+ let id = "";
2494
+ for (let i = 0; i < 21; i++) id += URL_ALPHABET[bytes[i] & 63];
2495
+ return id.toLowerCase();
2496
+ };
2480
2497
  /**
2481
2498
  * Generates a SHA-1 hash of the provided data.
2482
2499
  */
2483
- const hashedId = (data) => hash.sha1().update(data instanceof ArrayBuffer ? new Uint8Array(data) : data).digest("hex");
2484
- /**
2485
- * Generates a random hexadecimal string of specified length.
2486
- */
2487
- const generateUuidPart = (count) => customAlphabet("1234567890abcdef", count)();
2500
+ const hashedId = (data) => {
2501
+ return bytesToHex(sha1(data instanceof ArrayBuffer ? new Uint8Array(data) : typeof data === "string" ? new TextEncoder().encode(data) : data));
2502
+ };
2488
2503
  /**
2489
- * Generates a UUID v4-style unique identifier.
2504
+ * Generates a UUID v4-style unique identifier using crypto.randomUUID.
2490
2505
  */
2491
- const uniqueUuid = () => `${generateUuidPart(8)}-${generateUuidPart(4)}-${generateUuidPart(4)}-${generateUuidPart(4)}-${generateUuidPart(12)}`;
2506
+ const uniqueUuid = () => crypto.randomUUID();
2492
2507
  //#endregion
2493
2508
  //#region src/drawingml/blip/blip-effects.ts
2494
2509
  /**
@@ -5080,7 +5095,7 @@ function createTableStyleList(opts) {
5080
5095
  */
5081
5096
  function toFlatAttrs(opts) {
5082
5097
  const result = {};
5083
- for (const key of Object.keys(opts)) if (opts[key] !== void 0) result[`a:${key}`] = opts[key];
5098
+ for (const key of Object.keys(opts)) if (opts[key] !== void 0) result[key] = opts[key];
5084
5099
  return result;
5085
5100
  }
5086
5101
  function createShapeLocking(opts) {
@@ -5802,24 +5817,25 @@ const fillDesc = {
5802
5817
  }
5803
5818
  },
5804
5819
  parse(el, ctx) {
5805
- if (findChild(el, "a:noFill")) return { type: "none" };
5806
- const solidFill = findChild(el, "a:solidFill");
5820
+ const resolve = (tag) => el.name === tag ? el : findChild(el, tag);
5821
+ if (resolve("a:noFill")) return { type: "none" };
5822
+ const solidFill = resolve("a:solidFill");
5807
5823
  if (solidFill) return {
5808
5824
  type: "solid",
5809
5825
  color: parse(solidFillDesc, solidFill, ctx)
5810
5826
  };
5811
- const gradFill = findChild(el, "a:gradFill");
5827
+ const gradFill = resolve("a:gradFill");
5812
5828
  if (gradFill) return {
5813
5829
  type: "gradient",
5814
5830
  options: parse(gradientFillDesc, gradFill, ctx)
5815
5831
  };
5816
- const pattFill = findChild(el, "a:pattFill");
5832
+ const pattFill = resolve("a:pattFill");
5817
5833
  if (pattFill) return {
5818
5834
  type: "pattern",
5819
5835
  ...parse(patternFillDesc, pattFill, ctx)
5820
5836
  };
5821
- if (findChild(el, "a:grpFill")) return { type: "group" };
5822
- return {};
5837
+ if (resolve("a:grpFill")) return { type: "group" };
5838
+ return { type: "none" };
5823
5839
  }
5824
5840
  };
5825
5841
  function readDirectColor(el, ctx) {
@@ -5869,6 +5885,9 @@ const outlineDesc = {
5869
5885
  else if (opts.type === "solidFill" && opts.color) {
5870
5886
  const fillXml = stringify(solidFillDesc, opts.color, ctx);
5871
5887
  if (fillXml) parts.push(fillXml);
5888
+ } else if (opts.type === "gradFill" && opts.gradientFill) {
5889
+ const gradXml = stringify(gradientFillDesc, opts.gradientFill, ctx);
5890
+ if (gradXml) parts.push(gradXml);
5872
5891
  }
5873
5892
  if (opts.customDash) parts.push(stringifyCustomDash(opts.customDash));
5874
5893
  else if (opts.dash) parts.push(`<a:prstDash val="${escapeXml(opts.dash)}"/>`);
@@ -5894,7 +5913,10 @@ const outlineDesc = {
5894
5913
  result.color = parse(solidFillDesc, solidFill, _ctx);
5895
5914
  }
5896
5915
  if (findChild(el, "a:noFill")) result.type = "noFill";
5897
- if (findChild(el, "a:gradFill")) result.type = "gradFill";
5916
+ if (findChild(el, "a:gradFill")) {
5917
+ result.type = "gradFill";
5918
+ result.gradientFill = parse(gradientFillDesc, findChild(el, "a:gradFill"), _ctx);
5919
+ }
5898
5920
  const prstDash = findChild(el, "a:prstDash");
5899
5921
  if (prstDash?.attributes?.["val"]) result.dash = String(prstDash.attributes["val"]);
5900
5922
  const custDash = findChild(el, "a:custDash");
@@ -6053,6 +6075,41 @@ const effectListDesc = {
6053
6075
  if (color) outerOpts.color = color;
6054
6076
  result.outerShadow = outerOpts;
6055
6077
  }
6078
+ const fillOverlay = findChild(el, "a:fillOverlay");
6079
+ if (fillOverlay) {
6080
+ const overlayOpts = {};
6081
+ if (fillOverlay.attributes?.["blend"] !== void 0) overlayOpts.blend = String(fillOverlay.attributes["blend"]);
6082
+ result.fillOverlay = overlayOpts;
6083
+ }
6084
+ const prstShdw = findChild(el, "a:prstShdw");
6085
+ if (prstShdw) {
6086
+ const prstOpts = {};
6087
+ if (prstShdw.attributes?.["prst"] !== void 0) prstOpts.preset = String(prstShdw.attributes["prst"]);
6088
+ if (prstShdw.attributes?.["dist"] !== void 0) prstOpts.distance = Number(prstShdw.attributes["dist"]);
6089
+ if (prstShdw.attributes?.["dir"] !== void 0) prstOpts.direction = Number(prstShdw.attributes["dir"]);
6090
+ const color = readColorFromElement(prstShdw, ctx);
6091
+ if (color) prstOpts.color = color;
6092
+ result.presetShadow = prstOpts;
6093
+ }
6094
+ const reflection = findChild(el, "a:reflection");
6095
+ if (reflection) {
6096
+ const refOpts = {};
6097
+ if (reflection.attributes?.["blurRad"] !== void 0) refOpts.blurRadius = Number(reflection.attributes["blurRad"]);
6098
+ if (reflection.attributes?.["stA"] !== void 0) refOpts.startAlpha = Number(reflection.attributes["stA"]);
6099
+ if (reflection.attributes?.["stPos"] !== void 0) refOpts.startPosition = Number(reflection.attributes["stPos"]);
6100
+ if (reflection.attributes?.["endA"] !== void 0) refOpts.endAlpha = Number(reflection.attributes["endA"]);
6101
+ if (reflection.attributes?.["endPos"] !== void 0) refOpts.endPosition = Number(reflection.attributes["endPos"]);
6102
+ if (reflection.attributes?.["dist"] !== void 0) refOpts.distance = Number(reflection.attributes["dist"]);
6103
+ if (reflection.attributes?.["dir"] !== void 0) refOpts.direction = Number(reflection.attributes["dir"]);
6104
+ if (reflection.attributes?.["fadeDir"] !== void 0) refOpts.fadeDirection = Number(reflection.attributes["fadeDir"]);
6105
+ if (reflection.attributes?.["sx"] !== void 0) refOpts.scaleX = Number(reflection.attributes["sx"]);
6106
+ if (reflection.attributes?.["sy"] !== void 0) refOpts.scaleY = Number(reflection.attributes["sy"]);
6107
+ if (reflection.attributes?.["kx"] !== void 0) refOpts.skewX = Number(reflection.attributes["kx"]);
6108
+ if (reflection.attributes?.["ky"] !== void 0) refOpts.skewY = Number(reflection.attributes["ky"]);
6109
+ if (reflection.attributes?.["algn"] !== void 0) refOpts.alignment = String(reflection.attributes["algn"]);
6110
+ if (reflection.attributes?.["rotWithShape"] !== void 0) refOpts.rotWithShape = reflection.attributes["rotWithShape"] !== "0";
6111
+ result.reflection = refOpts;
6112
+ }
6056
6113
  const softEdge = findChild(el, "a:softEdge");
6057
6114
  if (softEdge?.attributes?.["rad"] !== void 0) result.softEdge = Number(softEdge.attributes["rad"]);
6058
6115
  return result;
@@ -6078,14 +6135,14 @@ const GROUP_EXTRA_KEYS = ["noUngrp"];
6078
6135
  const FRAME_EXTRA_KEYS = ["noDrilldown"];
6079
6136
  function stringifyLockingAttrs(opts, keys) {
6080
6137
  const parts = [];
6081
- for (const key of keys) if (opts[key] !== void 0) parts.push(`a:${key}="${opts[key] ? 1 : 0}"`);
6138
+ for (const key of keys) if (opts[key] !== void 0) parts.push(`${key}="${opts[key] ? 1 : 0}"`);
6082
6139
  return parts.length ? " " + parts.join(" ") : "";
6083
6140
  }
6084
6141
  function readLockingAttrs(el, keys) {
6085
6142
  const result = {};
6086
6143
  if (!el.attributes) return result;
6087
6144
  for (const key of keys) {
6088
- const val = el.attributes[`a:${key}`];
6145
+ const val = el.attributes[key];
6089
6146
  if (val !== void 0) result[key] = val === "1" || val === 1 || val === "true";
6090
6147
  }
6091
6148
  return result;
@@ -7163,19 +7220,20 @@ function compileMapping(mapping, overrides, media, mediaLevel = 0) {
7163
7220
  * Implements ECMA-376 Agile Encryption password derivation.
7164
7221
  * Passwords are encoded as UTF-16LE per the OOXML specification.
7165
7222
  *
7223
+ * Uses @noble/hashes for SHA-512 — audited, cross-platform,
7224
+ * and comparable in speed to node:crypto for this workload.
7225
+ *
7166
7226
  * @module
7167
7227
  */
7168
- /**
7169
- * Encodes a Uint8Array to a plain base64 string (no data URI prefix).
7170
- */
7228
+ let _bufToBase64;
7229
+ try {
7230
+ const { Buffer: Buf } = await import("node:buffer");
7231
+ _bufToBase64 = (bytes) => Buf.from(bytes).toString("base64");
7232
+ } catch {}
7171
7233
  function toBase64(bytes) {
7172
- const binary = String.fromCharCode(...bytes);
7173
- return btoa(binary);
7234
+ if (_bufToBase64) return _bufToBase64(bytes);
7235
+ return btoa(String.fromCharCode(...bytes));
7174
7236
  }
7175
- /**
7176
- * Encodes a string as UTF-16LE (no BOM, no null terminator).
7177
- * Per ECMA-376 Part 2 §14.2.5, passwords SHALL be encoded as UTF-16LE.
7178
- */
7179
7237
  function utf16leEncode(str) {
7180
7238
  const bytes = new Uint8Array(str.length * 2);
7181
7239
  for (let i = 0; i < str.length; i++) {
@@ -7185,9 +7243,6 @@ function utf16leEncode(str) {
7185
7243
  }
7186
7244
  return bytes;
7187
7245
  }
7188
- /**
7189
- * Generates cryptographically secure random bytes.
7190
- */
7191
7246
  function randomBytes(length) {
7192
7247
  const bytes = new Uint8Array(length);
7193
7248
  if (typeof crypto !== "undefined" && crypto.getRandomValues) crypto.getRandomValues(bytes);
@@ -7197,14 +7252,23 @@ function randomBytes(length) {
7197
7252
  /**
7198
7253
  * Computes the ECMA-376 Agile Encryption hash for a password.
7199
7254
  *
7200
- * Algorithm: SHA-512(salt + UTF-16LE(password)), then iterate SHA-512(hash + i.toUint32LE()) spinCount times.
7255
+ * Algorithm: SHA-512(salt + UTF-16LE(password)), then iterate
7256
+ * SHA-512(hash + i.toUint32LE()) spinCount times.
7201
7257
  */
7202
7258
  function hashPasswordAgile(password, salt, spinCount) {
7203
- let h = hash.sha512().update(salt).update(utf16leEncode(password)).digest();
7259
+ const pwBytes = utf16leEncode(password);
7260
+ const initial = new Uint8Array(salt.length + pwBytes.length);
7261
+ initial.set(salt, 0);
7262
+ initial.set(pwBytes, salt.length);
7263
+ let h = sha512(initial);
7204
7264
  for (let i = 0; i < spinCount; i++) {
7205
- const counter = new Uint8Array(4);
7206
- new DataView(counter.buffer).setUint32(0, i, true);
7207
- h = hash.sha512().update(h).update(counter).digest();
7265
+ const buf = new Uint8Array(h.length + 4);
7266
+ buf.set(h, 0);
7267
+ buf[h.length] = i & 255;
7268
+ buf[h.length + 1] = i >> 8 & 255;
7269
+ buf[h.length + 2] = i >> 16 & 255;
7270
+ buf[h.length + 3] = i >> 24 & 255;
7271
+ h = sha512(buf);
7208
7272
  }
7209
7273
  return toBase64(new Uint8Array(h));
7210
7274
  }
@@ -1,2 +1,2 @@
1
- import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "../index-DByjp6ug.mjs";
1
+ import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "../index-BKotL3AP.mjs";
2
2
  export { type ColorSchemeOptions, DEFAULT_COLORS, type FontSchemeOptions, type ThemeOptions, buildThemeXml, createThemeXml, themeDesc };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-open/core",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Shared OOXML infrastructure — XML components, validators, converters, charts, and SmartArt",
5
5
  "keywords": [
6
6
  "core",
@@ -64,11 +64,9 @@
64
64
  }
65
65
  },
66
66
  "dependencies": {
67
+ "@noble/hashes": "2.2.0",
67
68
  "fflate": "0.8.3",
68
- "hash.js": "1.1.7",
69
- "nanoid": "5.1.11",
70
- "undio": "0.2.0",
71
- "@office-open/xml": "0.9.0"
69
+ "@office-open/xml": "0.9.2"
72
70
  },
73
71
  "scripts": {
74
72
  "dev": "basis build --stub",