pptx-vue-viewer 1.1.71 → 1.1.72
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/dist/{dist-BcurUiEs.cjs → dist-5-zHv1rG.cjs} +221 -204
- package/dist/dist-5-zHv1rG.cjs.br +0 -0
- package/dist/dist-5-zHv1rG.cjs.gz +0 -0
- package/dist/{dist-mkpy7NLf.js → dist-Pb0PU5-M.js} +221 -204
- package/dist/dist-Pb0PU5-M.js.br +0 -0
- package/dist/dist-Pb0PU5-M.js.gz +0 -0
- package/dist/gif-encoder-CrLCnuFi.js +2 -0
- package/dist/gif-encoder-CrLCnuFi.js.br +0 -0
- package/dist/gif-encoder-CrLCnuFi.js.gz +0 -0
- package/dist/gif-encoder-Cvq0eeFV.cjs +2 -0
- package/dist/gif-encoder-Cvq0eeFV.cjs.br +0 -0
- package/dist/gif-encoder-Cvq0eeFV.cjs.gz +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
- package/dist/viewer/components/MobileBottomBar.vue.d.ts +2 -2
- package/dist/viewer/components/inspector/ArrangePanel.vue.d.ts +2 -1
- package/dist/viewer/components/inspector/ArrangePanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/InspectorPane.vue.d.ts +1 -0
- package/dist/viewer/components/inspector/InspectorPane.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/ArrangeSection.vue.d.ts +2 -0
- package/dist/viewer/components/ribbon/ArrangeSection.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/RibbonToolbar.vue.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/ribbon-constants.d.ts +4 -0
- package/dist/viewer/components/ribbon/ribbon-constants.d.ts.map +1 -1
- package/dist/viewer/components/ribbon/ribbon-types.d.ts +2 -0
- package/dist/viewer/components/ribbon/ribbon-types.d.ts.map +1 -1
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-DmgY4B0A.js → viewer-BLDnvWG1.js} +3789 -3703
- package/dist/viewer-BLDnvWG1.js.br +0 -0
- package/dist/viewer-BLDnvWG1.js.gz +0 -0
- package/dist/{viewer-DOunRUGo.cjs → viewer-BRQrwJS4.cjs} +2104 -2018
- package/dist/viewer-BRQrwJS4.cjs.br +0 -0
- package/dist/viewer-BRQrwJS4.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/dist-BcurUiEs.cjs.br +0 -0
- package/dist/dist-BcurUiEs.cjs.gz +0 -0
- package/dist/dist-mkpy7NLf.js.br +0 -0
- package/dist/dist-mkpy7NLf.js.gz +0 -0
- package/dist/gif-encoder-CQ7KRbYX.cjs +0 -2
- package/dist/gif-encoder-CQ7KRbYX.cjs.br +0 -0
- package/dist/gif-encoder-CQ7KRbYX.cjs.gz +0 -0
- package/dist/gif-encoder-Ceew9lIy.js +0 -2
- package/dist/gif-encoder-Ceew9lIy.js.br +0 -0
- package/dist/gif-encoder-Ceew9lIy.js.gz +0 -0
- package/dist/viewer-DOunRUGo.cjs.br +0 -0
- package/dist/viewer-DOunRUGo.cjs.gz +0 -0
- package/dist/viewer-DmgY4B0A.js.br +0 -0
- package/dist/viewer-DmgY4B0A.js.gz +0 -0
|
@@ -4029,8 +4029,8 @@ var zt = a({
|
|
|
4029
4029
|
COLOR_MAP_ALIAS_KEYS: () => tl,
|
|
4030
4030
|
CONNECTOR_ARROW_OPTIONS: () => Un,
|
|
4031
4031
|
CONNECTOR_GEOMETRY_OPTIONS: () => $n,
|
|
4032
|
-
ChartBuilder: () =>
|
|
4033
|
-
ConnectorBuilder: () =>
|
|
4032
|
+
ChartBuilder: () => cw,
|
|
4033
|
+
ConnectorBuilder: () => dw,
|
|
4034
4034
|
ConnectorXmlFactory: () => Ve,
|
|
4035
4035
|
DEFAULT_CANVAS_HEIGHT: () => 720,
|
|
4036
4036
|
DEFAULT_CANVAS_WIDTH: () => Dn,
|
|
@@ -4047,12 +4047,12 @@ var zt = a({
|
|
|
4047
4047
|
DIGITAL_SIGNATURE_ORIGIN_REL_TYPE: () => Zo,
|
|
4048
4048
|
DIGITAL_SIGNATURE_REL_TYPE: () => Jo,
|
|
4049
4049
|
DataIntegrityError: () => Xc,
|
|
4050
|
-
DocumentConverter: () =>
|
|
4050
|
+
DocumentConverter: () => jw,
|
|
4051
4051
|
EFFECT_LST_ORDER: () => hn,
|
|
4052
4052
|
EMPHASIS_PRESETS: () => Wp,
|
|
4053
|
-
EMU_PER_INCH: () =>
|
|
4054
|
-
EMU_PER_PIXEL: () =>
|
|
4055
|
-
EMU_PER_POINT: () =>
|
|
4053
|
+
EMU_PER_INCH: () => gw,
|
|
4054
|
+
EMU_PER_PIXEL: () => fw,
|
|
4055
|
+
EMU_PER_POINT: () => yw,
|
|
4056
4056
|
EMU_PER_PX: () => Ln,
|
|
4057
4057
|
ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV: () => sa,
|
|
4058
4058
|
ENTERPRISE_REQUIRE_REVOCATION_ENV: () => aa,
|
|
@@ -4064,16 +4064,16 @@ var zt = a({
|
|
|
4064
4064
|
EncryptedFileError: () => Bc,
|
|
4065
4065
|
FONT_SUBSTITUTION_MAP: () => bh,
|
|
4066
4066
|
FreeformPathBuilder: () => Vb,
|
|
4067
|
-
GroupBuilder: () =>
|
|
4068
|
-
ImageBuilder: () =>
|
|
4067
|
+
GroupBuilder: () => pw,
|
|
4068
|
+
ImageBuilder: () => sw,
|
|
4069
4069
|
IncorrectPasswordError: () => Uc,
|
|
4070
4070
|
MAX_TABLE_DIMENSION: () => 100,
|
|
4071
4071
|
MAX_ZIP_ENTRY_COUNT: () => Sa,
|
|
4072
4072
|
MIN_ELEMENT_SIZE: () => 12,
|
|
4073
4073
|
MIN_TABLE_DIMENSION: () => 1,
|
|
4074
4074
|
MOTION_PATH_PRESETS: () => Hp,
|
|
4075
|
-
MediaBuilder: () =>
|
|
4076
|
-
MediaContext: () =>
|
|
4075
|
+
MediaBuilder: () => hw,
|
|
4076
|
+
MediaContext: () => Lw,
|
|
4077
4077
|
MediaGraphicFrameXmlFactory: () => Ye,
|
|
4078
4078
|
OOXML_TO_PRESET_EMPH: () => Zi,
|
|
4079
4079
|
OOXML_TO_PRESET_ENTR: () => qi,
|
|
@@ -4111,7 +4111,7 @@ var zt = a({
|
|
|
4111
4111
|
PptxHandlerRuntime: () => Zg,
|
|
4112
4112
|
PptxHandlerRuntimeFactory: () => Jg,
|
|
4113
4113
|
PptxLoadDataBuilder: () => Wr,
|
|
4114
|
-
PptxMarkdownConverter: () =>
|
|
4114
|
+
PptxMarkdownConverter: () => fT,
|
|
4115
4115
|
PptxMediaDataParser: () => Lr,
|
|
4116
4116
|
PptxNativeAnimationService: () => Xi,
|
|
4117
4117
|
PptxPresentationSaveBuilder: () => nn,
|
|
@@ -4148,19 +4148,19 @@ var zt = a({
|
|
|
4148
4148
|
SUPPORTED_XML_CANON_TRANSFORMS: () => ra,
|
|
4149
4149
|
SWITCHABLE_LAYOUT_TYPES: () => Nd,
|
|
4150
4150
|
SYSTEM_COLOR_MAP: () => Fn,
|
|
4151
|
-
ShapeBuilder: () =>
|
|
4151
|
+
ShapeBuilder: () => aw,
|
|
4152
4152
|
SlideBuilder: () => Ee,
|
|
4153
|
-
SlideProcessor: () =>
|
|
4154
|
-
SlideSizes: () =>
|
|
4155
|
-
SvgExporter: () =>
|
|
4153
|
+
SlideProcessor: () => cT,
|
|
4154
|
+
SlideSizes: () => _w,
|
|
4155
|
+
SvgExporter: () => PT,
|
|
4156
4156
|
TC_PR_BORDERS_ORDER: () => un,
|
|
4157
4157
|
THEME_COLOR_SCHEME_KEYS: () => Qt,
|
|
4158
4158
|
THEME_PRESETS: () => te,
|
|
4159
4159
|
TRANSITION_VALID_DIRECTIONS: () => Gt,
|
|
4160
|
-
TableBuilder: () =>
|
|
4161
|
-
TextBuilder: () =>
|
|
4160
|
+
TableBuilder: () => lw,
|
|
4161
|
+
TextBuilder: () => ow,
|
|
4162
4162
|
TextShapeXmlFactory: () => Ke,
|
|
4163
|
-
ThemePresets: () =>
|
|
4163
|
+
ThemePresets: () => Pw,
|
|
4164
4164
|
VML_SHAPE_TAGS: () => Is,
|
|
4165
4165
|
XMLDSIG_NS: () => ta,
|
|
4166
4166
|
XML_TRANSFORM_ENVELOPED_SIGNATURE: () => na,
|
|
@@ -4207,8 +4207,8 @@ var zt = a({
|
|
|
4207
4207
|
cloneTemplateElementsBySlideId: () => hl,
|
|
4208
4208
|
cloneTextStyle: () => sl,
|
|
4209
4209
|
cloneXmlObject: () => pl,
|
|
4210
|
-
cm: () =>
|
|
4211
|
-
cmToEmu: () =>
|
|
4210
|
+
cm: () => bw,
|
|
4211
|
+
cmToEmu: () => kw,
|
|
4212
4212
|
colorWithOpacity: () => Sn,
|
|
4213
4213
|
colorsEqual: () => kr,
|
|
4214
4214
|
combineShapes: () => Rb,
|
|
@@ -4246,14 +4246,14 @@ var zt = a({
|
|
|
4246
4246
|
createTemplateShapeRawXml: () => Ml,
|
|
4247
4247
|
createTextElement: () => Me,
|
|
4248
4248
|
createUniformTextSegments: () => xl,
|
|
4249
|
-
dataUrlToMediaBytes: () =>
|
|
4249
|
+
dataUrlToMediaBytes: () => Iw,
|
|
4250
4250
|
decodeOle10Native: () => qo,
|
|
4251
4251
|
decodeXmlEntities: () => So,
|
|
4252
4252
|
decomposeSmartArt: () => fc,
|
|
4253
4253
|
decryptPptx: () => ad,
|
|
4254
4254
|
demoteSmartArtNode: () => kc,
|
|
4255
4255
|
deobfuscateFont: () => La,
|
|
4256
|
-
deriveOutputPath: () =>
|
|
4256
|
+
deriveOutputPath: () => Ew,
|
|
4257
4257
|
detectDigitalSignatures: () => pa,
|
|
4258
4258
|
detectFileFormat: () => Dc,
|
|
4259
4259
|
detectFontFormat: () => Ra,
|
|
@@ -4267,7 +4267,7 @@ var zt = a({
|
|
|
4267
4267
|
duplicateSlide: () => rv,
|
|
4268
4268
|
elementActionToPptxAction: () => Ll,
|
|
4269
4269
|
elementHasAction: () => Dl,
|
|
4270
|
-
emuToPixels: () =>
|
|
4270
|
+
emuToPixels: () => ww,
|
|
4271
4271
|
encryptPptx: () => sd,
|
|
4272
4272
|
ensureArrayValue: () => vl,
|
|
4273
4273
|
escapeXmlAttr: () => yd,
|
|
@@ -4292,7 +4292,7 @@ var zt = a({
|
|
|
4292
4292
|
fragmentShapes: () => Bb,
|
|
4293
4293
|
generateFontGuid: () => Ba,
|
|
4294
4294
|
generateLayoutXml: () => Ov,
|
|
4295
|
-
generateMediaFilename: () =>
|
|
4295
|
+
generateMediaFilename: () => Fw,
|
|
4296
4296
|
getAdjustmentAwareClipPath: () => vy,
|
|
4297
4297
|
getAdjustmentAwareShapeClipPath: () => tb,
|
|
4298
4298
|
getAnimationPresetInfo: () => Yp,
|
|
@@ -4308,7 +4308,7 @@ var zt = a({
|
|
|
4308
4308
|
getCssBorderDashStyle: () => _l,
|
|
4309
4309
|
getCustomShowNames: () => Ap,
|
|
4310
4310
|
getCustomShowPositionLabel: () => Fp,
|
|
4311
|
-
getDirectory: () =>
|
|
4311
|
+
getDirectory: () => Nw,
|
|
4312
4312
|
getElementLabel: () => fl,
|
|
4313
4313
|
getElementTextContent: () => yl,
|
|
4314
4314
|
getElementTransform: () => sb,
|
|
@@ -4331,7 +4331,7 @@ var zt = a({
|
|
|
4331
4331
|
getSupportedNamespaces: () => Us,
|
|
4332
4332
|
getSvgStrokeDasharray: () => Pl,
|
|
4333
4333
|
getTextCompensationTransform: () => lb,
|
|
4334
|
-
getThemePreset: () =>
|
|
4334
|
+
getThemePreset: () => Mw,
|
|
4335
4335
|
getZoomElements: () => uh,
|
|
4336
4336
|
getZoomTargetSlideIndexes: () => gh,
|
|
4337
4337
|
guidToKey: () => Fa,
|
|
@@ -4343,8 +4343,8 @@ var zt = a({
|
|
|
4343
4343
|
hasTextProperties: () => Zt,
|
|
4344
4344
|
hexToRgbChannels: () => bn,
|
|
4345
4345
|
hslToRgb: () => Cn,
|
|
4346
|
-
inches: () =>
|
|
4347
|
-
inchesToEmu: () =>
|
|
4346
|
+
inches: () => xw,
|
|
4347
|
+
inchesToEmu: () => Cw,
|
|
4348
4348
|
inferOleExtensionFromTarget: () => Nr,
|
|
4349
4349
|
interpolateShapeGeometry: () => tw,
|
|
4350
4350
|
intersectPolygons: () => jb,
|
|
@@ -4376,13 +4376,13 @@ var zt = a({
|
|
|
4376
4376
|
mergeStyleParts: () => Dp,
|
|
4377
4377
|
mergeThemeColorOverride: () => rl,
|
|
4378
4378
|
mimeTypeForOleFile: () => jr,
|
|
4379
|
-
mm: () =>
|
|
4379
|
+
mm: () => Sw,
|
|
4380
4380
|
moveSlidesToSection: () => PS,
|
|
4381
4381
|
navigateCustomShow: () => Ip,
|
|
4382
4382
|
normalizeHexColor: () => xn,
|
|
4383
4383
|
normalizeNamespaceUri: () => qd,
|
|
4384
4384
|
normalizePartPath: () => Td,
|
|
4385
|
-
normalizePath: () =>
|
|
4385
|
+
normalizePath: () => Rw,
|
|
4386
4386
|
normalizeStrictXml: () => Jd,
|
|
4387
4387
|
normalizeStrokeDashType: () => kl,
|
|
4388
4388
|
obfuscateFont: () => Da,
|
|
@@ -4427,11 +4427,11 @@ var zt = a({
|
|
|
4427
4427
|
parseSvgPath: () => nw,
|
|
4428
4428
|
parseVmlElement: () => Fs,
|
|
4429
4429
|
parseVmlElements: () => Ls,
|
|
4430
|
-
pixelsToEmu: () =>
|
|
4430
|
+
pixelsToEmu: () => Tw,
|
|
4431
4431
|
polygonsToSvgPath: () => vb,
|
|
4432
4432
|
pptxActionToElementAction: () => Fl,
|
|
4433
4433
|
promoteSmartArtNode: () => Cc,
|
|
4434
|
-
pt: () =>
|
|
4434
|
+
pt: () => vw,
|
|
4435
4435
|
reResolveSlideColors: () => sp,
|
|
4436
4436
|
readFileAsDataUrl: () => Cl,
|
|
4437
4437
|
rebuildTableStructureInRawXml: () => Qm,
|
|
@@ -4487,6 +4487,7 @@ var zt = a({
|
|
|
4487
4487
|
setChartSeriesTrendline: () => xv,
|
|
4488
4488
|
setChartTitle: () => mv,
|
|
4489
4489
|
setChartType: () => cv,
|
|
4490
|
+
setElementLocked: () => iw,
|
|
4490
4491
|
setSmartArtNodeStyle: () => Mc,
|
|
4491
4492
|
shouldRenderFallbackLabel: () => gl,
|
|
4492
4493
|
shouldReturnToZoomSlide: () => yh,
|
|
@@ -47799,7 +47800,23 @@ function nw(t) {
|
|
|
47799
47800
|
function rw(t) {
|
|
47800
47801
|
return qv(t);
|
|
47801
47802
|
}
|
|
47802
|
-
|
|
47803
|
+
function iw(t, e, n = {}) {
|
|
47804
|
+
if (!e) {
|
|
47805
|
+
const { locks: e, ...n } = t;
|
|
47806
|
+
return n;
|
|
47807
|
+
}
|
|
47808
|
+
const r = {
|
|
47809
|
+
noMove: !0,
|
|
47810
|
+
noResize: !0,
|
|
47811
|
+
noSelect: !0,
|
|
47812
|
+
...n
|
|
47813
|
+
};
|
|
47814
|
+
return {
|
|
47815
|
+
...t,
|
|
47816
|
+
locks: r
|
|
47817
|
+
};
|
|
47818
|
+
}
|
|
47819
|
+
var ow = class t {
|
|
47803
47820
|
_text;
|
|
47804
47821
|
_options = {};
|
|
47805
47822
|
constructor(t) {
|
|
@@ -47865,7 +47882,7 @@ var iw = class t {
|
|
|
47865
47882
|
build() {
|
|
47866
47883
|
return Me(this._text, this._options);
|
|
47867
47884
|
}
|
|
47868
|
-
},
|
|
47885
|
+
}, aw = class t {
|
|
47869
47886
|
_shapeType;
|
|
47870
47887
|
_options = {};
|
|
47871
47888
|
constructor(t) {
|
|
@@ -47927,7 +47944,7 @@ var iw = class t {
|
|
|
47927
47944
|
build() {
|
|
47928
47945
|
return Ae(this._shapeType, this._options);
|
|
47929
47946
|
}
|
|
47930
|
-
},
|
|
47947
|
+
}, sw = class t {
|
|
47931
47948
|
_source;
|
|
47932
47949
|
_options = {};
|
|
47933
47950
|
constructor(t) {
|
|
@@ -47960,7 +47977,7 @@ var iw = class t {
|
|
|
47960
47977
|
build() {
|
|
47961
47978
|
return Fe(this._source, this._options);
|
|
47962
47979
|
}
|
|
47963
|
-
},
|
|
47980
|
+
}, lw = class t {
|
|
47964
47981
|
_input;
|
|
47965
47982
|
_options = {};
|
|
47966
47983
|
constructor() {
|
|
@@ -48008,7 +48025,7 @@ var iw = class t {
|
|
|
48008
48025
|
build() {
|
|
48009
48026
|
return Le(this._input, this._options);
|
|
48010
48027
|
}
|
|
48011
|
-
},
|
|
48028
|
+
}, cw = class t {
|
|
48012
48029
|
_chartType;
|
|
48013
48030
|
_input;
|
|
48014
48031
|
_options = {};
|
|
@@ -48052,7 +48069,7 @@ var iw = class t {
|
|
|
48052
48069
|
build() {
|
|
48053
48070
|
return De(this._chartType, this._input, this._options);
|
|
48054
48071
|
}
|
|
48055
|
-
},
|
|
48072
|
+
}, dw = class t {
|
|
48056
48073
|
_options = {};
|
|
48057
48074
|
constructor() {}
|
|
48058
48075
|
static create() {
|
|
@@ -48097,7 +48114,7 @@ var iw = class t {
|
|
|
48097
48114
|
build() {
|
|
48098
48115
|
return Ie(this._options);
|
|
48099
48116
|
}
|
|
48100
|
-
},
|
|
48117
|
+
}, hw = class t {
|
|
48101
48118
|
_mediaType;
|
|
48102
48119
|
_source;
|
|
48103
48120
|
_options = {};
|
|
@@ -48143,7 +48160,7 @@ var iw = class t {
|
|
|
48143
48160
|
build() {
|
|
48144
48161
|
return Be(this._mediaType, this._source, this._options);
|
|
48145
48162
|
}
|
|
48146
|
-
},
|
|
48163
|
+
}, pw = class t {
|
|
48147
48164
|
_children = [];
|
|
48148
48165
|
_options = {};
|
|
48149
48166
|
constructor() {}
|
|
@@ -48174,32 +48191,32 @@ var iw = class t {
|
|
|
48174
48191
|
build() {
|
|
48175
48192
|
return Re(this._children, this._options);
|
|
48176
48193
|
}
|
|
48177
|
-
},
|
|
48178
|
-
function yw(t) {
|
|
48179
|
-
return Math.round(t * pw);
|
|
48180
|
-
}
|
|
48194
|
+
}, uw = 96, mw = 72, fw = 9525, gw = 914400, yw = 12700;
|
|
48181
48195
|
function xw(t) {
|
|
48182
|
-
return Math.round(t
|
|
48196
|
+
return Math.round(t * uw);
|
|
48183
48197
|
}
|
|
48184
48198
|
function bw(t) {
|
|
48185
|
-
return Math.round(t /
|
|
48199
|
+
return Math.round(t / 2.54 * uw);
|
|
48186
48200
|
}
|
|
48187
48201
|
function Sw(t) {
|
|
48188
|
-
return Math.round(t /
|
|
48202
|
+
return Math.round(t / 25.4 * uw);
|
|
48189
48203
|
}
|
|
48190
48204
|
function vw(t) {
|
|
48191
|
-
return Math.round(t / mw);
|
|
48205
|
+
return Math.round(t / mw * uw);
|
|
48192
48206
|
}
|
|
48193
48207
|
function ww(t) {
|
|
48194
|
-
return Math.round(t
|
|
48208
|
+
return Math.round(t / fw);
|
|
48195
48209
|
}
|
|
48196
48210
|
function Tw(t) {
|
|
48197
48211
|
return Math.round(t * fw);
|
|
48198
48212
|
}
|
|
48199
48213
|
function Cw(t) {
|
|
48200
|
-
return Math.round(t
|
|
48214
|
+
return Math.round(t * gw);
|
|
48201
48215
|
}
|
|
48202
|
-
|
|
48216
|
+
function kw(t) {
|
|
48217
|
+
return Math.round(t / 2.54 * gw);
|
|
48218
|
+
}
|
|
48219
|
+
var _w = {
|
|
48203
48220
|
WIDESCREEN_16_9: {
|
|
48204
48221
|
width: 12192e3,
|
|
48205
48222
|
height: 6858e3
|
|
@@ -48228,7 +48245,7 @@ var kw = {
|
|
|
48228
48245
|
width: 7772400,
|
|
48229
48246
|
height: 10058400
|
|
48230
48247
|
}
|
|
48231
|
-
},
|
|
48248
|
+
}, Pw = {
|
|
48232
48249
|
OFFICE: {
|
|
48233
48250
|
name: "Office Theme",
|
|
48234
48251
|
colors: {
|
|
@@ -48398,10 +48415,10 @@ var kw = {
|
|
|
48398
48415
|
}
|
|
48399
48416
|
}
|
|
48400
48417
|
};
|
|
48401
|
-
function
|
|
48402
|
-
return
|
|
48418
|
+
function Mw(t) {
|
|
48419
|
+
return Pw[t];
|
|
48403
48420
|
}
|
|
48404
|
-
var
|
|
48421
|
+
var Aw = {
|
|
48405
48422
|
"image/png": "png",
|
|
48406
48423
|
"image/jpeg": "jpg",
|
|
48407
48424
|
"image/jpg": "jpg",
|
|
@@ -48411,10 +48428,10 @@ var Mw = {
|
|
|
48411
48428
|
"image/bmp": "bmp",
|
|
48412
48429
|
"image/tiff": "tiff"
|
|
48413
48430
|
};
|
|
48414
|
-
function
|
|
48431
|
+
function Iw(t) {
|
|
48415
48432
|
const e = t.match(/^data:([^;]+);base64,(.+)$/s);
|
|
48416
48433
|
if (!e) throw new Error("Invalid data URL format");
|
|
48417
|
-
const n = e[1].toLowerCase(), r =
|
|
48434
|
+
const n = e[1].toLowerCase(), r = Aw[n] ?? function(t) {
|
|
48418
48435
|
const e = t.split("/");
|
|
48419
48436
|
return 2 === e.length ? e[1].replace(/[^a-z0-9]/g, "") : "bin";
|
|
48420
48437
|
}(n), i = e[2], o = atob(i), a = new Uint8Array(o.length);
|
|
@@ -48424,10 +48441,10 @@ function Aw(t) {
|
|
|
48424
48441
|
ext: r
|
|
48425
48442
|
};
|
|
48426
48443
|
}
|
|
48427
|
-
function
|
|
48444
|
+
function Fw(t, e) {
|
|
48428
48445
|
return `image-${String(t).padStart(3, "0")}.${e.startsWith(".") ? e.slice(1) : e}`;
|
|
48429
48446
|
}
|
|
48430
|
-
var
|
|
48447
|
+
var Lw = class {
|
|
48431
48448
|
constructor(t, e, n) {
|
|
48432
48449
|
this.folderName = e, this.fs = n, this.resolvedMediaDir = `${t}/${this.folderName}`;
|
|
48433
48450
|
}
|
|
@@ -48441,12 +48458,12 @@ var Fw = class {
|
|
|
48441
48458
|
return this.resolvedMediaDir;
|
|
48442
48459
|
}
|
|
48443
48460
|
async saveImage(t, e) {
|
|
48444
|
-
const n =
|
|
48461
|
+
const n = Iw(t);
|
|
48445
48462
|
return this.saveImageBytes(n.bytes, n.ext, e);
|
|
48446
48463
|
}
|
|
48447
48464
|
async saveImageBytes(t, e, n) {
|
|
48448
48465
|
await this.ensureInitialized(), this.imageIndex += 1;
|
|
48449
|
-
const r =
|
|
48466
|
+
const r = Fw(this.imageIndex, e), i = n ? `${n}-${r}` : r;
|
|
48450
48467
|
if (this.fs) {
|
|
48451
48468
|
const e = `${this.resolvedMediaDir}/${i}`;
|
|
48452
48469
|
await this.fs.writeBinaryFile(e, t);
|
|
@@ -48457,32 +48474,32 @@ var Fw = class {
|
|
|
48457
48474
|
this.initialized || (this.fs && await this.fs.createFolder(this.resolvedMediaDir), this.initialized = !0);
|
|
48458
48475
|
}
|
|
48459
48476
|
};
|
|
48460
|
-
function
|
|
48477
|
+
function Dw(t) {
|
|
48461
48478
|
return null == t ? "" : String(t).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
48462
48479
|
}
|
|
48463
|
-
var
|
|
48480
|
+
var Bw = [
|
|
48464
48481
|
"http://",
|
|
48465
48482
|
"https://",
|
|
48466
48483
|
"mailto:",
|
|
48467
48484
|
"tel:",
|
|
48468
48485
|
"#"
|
|
48469
48486
|
];
|
|
48470
|
-
function
|
|
48487
|
+
function Rw(t) {
|
|
48471
48488
|
return t.trim().replace(/\\/g, "/");
|
|
48472
48489
|
}
|
|
48473
|
-
function
|
|
48474
|
-
const e =
|
|
48490
|
+
function Nw(t) {
|
|
48491
|
+
const e = Rw(t), n = e.lastIndexOf("/");
|
|
48475
48492
|
return n < 0 ? "." : 0 === n ? "/" : e.slice(0, n);
|
|
48476
48493
|
}
|
|
48477
|
-
function
|
|
48494
|
+
function Ew(t, e) {
|
|
48478
48495
|
if (e) return e;
|
|
48479
48496
|
if (!t) return;
|
|
48480
|
-
const n =
|
|
48497
|
+
const n = Rw(t), r = n.lastIndexOf(".");
|
|
48481
48498
|
return r < 0 ? `${n}.md` : `${n.slice(0, r)}.md`;
|
|
48482
48499
|
}
|
|
48483
|
-
var
|
|
48500
|
+
var jw = class {
|
|
48484
48501
|
constructor(t, e, n) {
|
|
48485
|
-
this.outputDir = t, this.options = e, this.fs = n, this.mediaContext = new
|
|
48502
|
+
this.outputDir = t, this.options = e, this.fs = n, this.mediaContext = new Lw(t, e.mediaFolderName, n);
|
|
48486
48503
|
}
|
|
48487
48504
|
mediaContext;
|
|
48488
48505
|
buildFrontMatter(t) {
|
|
@@ -48497,7 +48514,7 @@ var Ew = class {
|
|
|
48497
48514
|
if (!this.fs) throw new Error("FileSystemAdapter is required for writing output files. Provide one via the constructor or use convert() without outputPath.");
|
|
48498
48515
|
await this.fs.writeFile(e, t);
|
|
48499
48516
|
}
|
|
48500
|
-
},
|
|
48517
|
+
}, Ow = class {
|
|
48501
48518
|
supportedTypes = ["chart"];
|
|
48502
48519
|
async process(t, e) {
|
|
48503
48520
|
if ("chart" !== t.type) return null;
|
|
@@ -48601,7 +48618,7 @@ var Ew = class {
|
|
|
48601
48618
|
humanizeType(t) {
|
|
48602
48619
|
return t.replace(/([a-z])([A-Z0-9])/g, "$1 $2").replace(/^./, (t) => t.toUpperCase());
|
|
48603
48620
|
}
|
|
48604
|
-
},
|
|
48621
|
+
}, $w = class {
|
|
48605
48622
|
processors = /* @__PURE__ */ new Map();
|
|
48606
48623
|
register(t) {
|
|
48607
48624
|
for (const e of t.supportedTypes) this.processors.set(e, t);
|
|
@@ -48623,7 +48640,7 @@ var Ew = class {
|
|
|
48623
48640
|
if (void 0 !== t.targetSlideIndex) return `\n\n*${`Jump to slide ${t.targetSlideIndex + 1}`}*`;
|
|
48624
48641
|
return t.action ? `\n\n*${t.action}*` : "";
|
|
48625
48642
|
}
|
|
48626
|
-
},
|
|
48643
|
+
}, Uw = class {
|
|
48627
48644
|
supportedTypes = [
|
|
48628
48645
|
"zoom",
|
|
48629
48646
|
"contentPart",
|
|
@@ -48654,7 +48671,7 @@ var Ew = class {
|
|
|
48654
48671
|
renderContentPart(t) {
|
|
48655
48672
|
return t.inkStrokes && t.inkStrokes.length > 0 ? `*[Ink Content: ${t.inkStrokes.length} stroke${1 === t.inkStrokes.length ? "" : "s"}]*` : "*[Content Part]*";
|
|
48656
48673
|
}
|
|
48657
|
-
},
|
|
48674
|
+
}, Xw = class {
|
|
48658
48675
|
supportedTypes = ["group"];
|
|
48659
48676
|
async process(t, e) {
|
|
48660
48677
|
if ("group" !== t.type) return null;
|
|
@@ -48663,7 +48680,7 @@ var Ew = class {
|
|
|
48663
48680
|
const r = await e.processElements(n.children);
|
|
48664
48681
|
return 0 === r.length ? null : r.join("\n\n");
|
|
48665
48682
|
}
|
|
48666
|
-
},
|
|
48683
|
+
}, zw = class {
|
|
48667
48684
|
supportedTypes = ["image", "picture"];
|
|
48668
48685
|
async process(t, e) {
|
|
48669
48686
|
if (!Yt(t)) return null;
|
|
@@ -48672,7 +48689,7 @@ var Ew = class {
|
|
|
48672
48689
|
const t = Boolean(n.imageData), r = n.imageData ? n.imageData.substring(0, 80) : "undefined", i = `Image extraction failed on slide ${e.slideNumber}: id="${n.id}", imagePath="${n.imagePath ?? "unknown"}", hasImageData=${t}, imageDataPreview="${r}", hasSvgData=${Boolean(n.svgData)}`;
|
|
48673
48690
|
return console.error(`[image-processor] ${i}`), `> **[Image extraction failed]** ${n.id} (slide ${e.slideNumber})`;
|
|
48674
48691
|
}
|
|
48675
|
-
const o =
|
|
48692
|
+
const o = Dw(r), a = Dw(i);
|
|
48676
48693
|
if (e.semanticMode) return ``;
|
|
48677
48694
|
if (e.layoutScale) return `<img src="${a}" alt="${o}" style="max-width:100%;height:auto">`;
|
|
48678
48695
|
const s = this.computeDisplaySize(t.width, t.height);
|
|
@@ -48701,7 +48718,7 @@ var Ew = class {
|
|
|
48701
48718
|
const e = t.replace(/&#x[0-9A-Fa-f]+;/g, " ").replace(/&#\d+;/g, " ").replace(/&[a-zA-Z]+;/g, " ").replace(/[\r\n]+/g, " ").replace(/\s+/g, " ").trim();
|
|
48702
48719
|
return e.length <= 100 ? e : `${e.slice(0, 100).trimEnd()}…`;
|
|
48703
48720
|
}
|
|
48704
|
-
},
|
|
48721
|
+
}, Gw = class {
|
|
48705
48722
|
supportedTypes = ["ink"];
|
|
48706
48723
|
async process(t, e) {
|
|
48707
48724
|
if ("ink" !== t.type) return null;
|
|
@@ -48716,7 +48733,7 @@ var Ew = class {
|
|
|
48716
48733
|
}
|
|
48717
48734
|
return `*[Ink Drawing: ${r.join(" | ")}]*`;
|
|
48718
48735
|
}
|
|
48719
|
-
},
|
|
48736
|
+
}, Ww = class {
|
|
48720
48737
|
supportedTypes = ["media"];
|
|
48721
48738
|
async process(t, e) {
|
|
48722
48739
|
if ("media" !== t.type) return null;
|
|
@@ -48743,7 +48760,7 @@ var Ew = class {
|
|
|
48743
48760
|
const e = Math.floor(t / 60), n = Math.round(t % 60);
|
|
48744
48761
|
return `${e}:${String(n).padStart(2, "0")}`;
|
|
48745
48762
|
}
|
|
48746
|
-
},
|
|
48763
|
+
}, Hw = class {
|
|
48747
48764
|
supportedTypes = ["ole"];
|
|
48748
48765
|
async process(t, e) {
|
|
48749
48766
|
if ("ole" !== t.type) return null;
|
|
@@ -48756,27 +48773,27 @@ var Ew = class {
|
|
|
48756
48773
|
} catch {}
|
|
48757
48774
|
return i.join("\n\n");
|
|
48758
48775
|
}
|
|
48759
|
-
},
|
|
48776
|
+
}, Vw = new Set([
|
|
48760
48777
|
"process",
|
|
48761
48778
|
"cycle",
|
|
48762
48779
|
"timeline"
|
|
48763
|
-
]),
|
|
48780
|
+
]), Yw = new Set([
|
|
48764
48781
|
"hierarchy",
|
|
48765
48782
|
"pyramid",
|
|
48766
48783
|
"funnel"
|
|
48767
|
-
]),
|
|
48784
|
+
]), qw = new Set([
|
|
48768
48785
|
"list",
|
|
48769
48786
|
"matrix",
|
|
48770
48787
|
"gear",
|
|
48771
48788
|
"target"
|
|
48772
|
-
]),
|
|
48789
|
+
]), Kw = class {
|
|
48773
48790
|
supportedTypes = ["smartArt"];
|
|
48774
48791
|
async process(t, e) {
|
|
48775
48792
|
if ("smartArt" !== t.type) return null;
|
|
48776
48793
|
const n = t.smartArtData;
|
|
48777
48794
|
if (!n || 0 === n.nodes.length) return "*[SmartArt: no nodes]*";
|
|
48778
48795
|
const r = this.resolveRoots(n.nodes), i = n.resolvedLayoutType ?? "unknown", o = [`*[SmartArt: ${i}]*`];
|
|
48779
|
-
return
|
|
48796
|
+
return Yw.has(i) ? o.push(this.renderNestedList(r, 0)) : Vw.has(i) ? o.push(this.renderOrderedSequence(r)) : qw.has(i) ? o.push(this.renderBulletList(r)) : "relationship" === i ? o.push(this.renderRelationshipText(r)) : o.push(this.renderBulletList(r)), o.join("\n\n");
|
|
48780
48797
|
}
|
|
48781
48798
|
resolveRoots(t) {
|
|
48782
48799
|
if (t.some((t) => Array.isArray(t.children) && t.children.length > 0)) return t;
|
|
@@ -48814,7 +48831,7 @@ var Ew = class {
|
|
|
48814
48831
|
for (const n of t) e.push(n), n.children && n.children.length > 0 && e.push(...this.flattenNodes(n.children));
|
|
48815
48832
|
return e;
|
|
48816
48833
|
}
|
|
48817
|
-
},
|
|
48834
|
+
}, Zw = new Set([
|
|
48818
48835
|
"black",
|
|
48819
48836
|
"silver",
|
|
48820
48837
|
"gray",
|
|
@@ -48838,12 +48855,12 @@ var Ew = class {
|
|
|
48838
48855
|
"initial",
|
|
48839
48856
|
"unset"
|
|
48840
48857
|
]);
|
|
48841
|
-
function
|
|
48858
|
+
function Jw(t) {
|
|
48842
48859
|
if ("string" != typeof t) return;
|
|
48843
48860
|
const e = t.trim();
|
|
48844
|
-
return 0 !== e.length && (/^#[0-9a-f]{3,8}$/i.test(e) ||
|
|
48861
|
+
return 0 !== e.length && (/^#[0-9a-f]{3,8}$/i.test(e) || Zw.has(e.toLowerCase())) ? e : void 0;
|
|
48845
48862
|
}
|
|
48846
|
-
var
|
|
48863
|
+
var Qw = class {
|
|
48847
48864
|
supportedTypes = ["table"];
|
|
48848
48865
|
async process(t, e) {
|
|
48849
48866
|
if ("table" !== t.type) return null;
|
|
@@ -48874,12 +48891,12 @@ var Jw = class {
|
|
|
48874
48891
|
const i = [];
|
|
48875
48892
|
e > 1 && i.push(` colspan="${e}"`), n > 1 && i.push(` rowspan="${n}"`);
|
|
48876
48893
|
const o = this.buildCellCss(t.style, r);
|
|
48877
|
-
return o && i.push(` style="${
|
|
48894
|
+
return o && i.push(` style="${Dw(o)}"`), i.join("");
|
|
48878
48895
|
}
|
|
48879
48896
|
buildCellCss(t, e) {
|
|
48880
|
-
const n = [], r =
|
|
48897
|
+
const n = [], r = Jw(t?.backgroundColor);
|
|
48881
48898
|
r && n.push(`background:${r}`), t?.align && /^[a-zA-Z]+$/.test(t.align) && n.push(`text-align:${t.align}`), t?.vAlign && /^[a-zA-Z]+$/.test(t.vAlign) && n.push(`vertical-align:${t.vAlign}`), t?.fontSize && n.push(`font-size:${Math.round(t.fontSize)}px`);
|
|
48882
|
-
const i =
|
|
48899
|
+
const i = Jw(t?.color);
|
|
48883
48900
|
i && n.push(`color:${i}`), (t?.bold || e) && n.push("font-weight:bold"), t?.italic && n.push("font-style:italic");
|
|
48884
48901
|
const o = this.buildBorderCss(t);
|
|
48885
48902
|
o && n.push(o);
|
|
@@ -48888,15 +48905,15 @@ var Jw = class {
|
|
|
48888
48905
|
}
|
|
48889
48906
|
buildBorderCss(t) {
|
|
48890
48907
|
if (!t) return "";
|
|
48891
|
-
const e = [], n =
|
|
48908
|
+
const e = [], n = Jw(t.borderTopColor);
|
|
48892
48909
|
t.borderTopWidth && n && e.push(`border-top:${Math.round(t.borderTopWidth)}px solid ${n}`);
|
|
48893
|
-
const r =
|
|
48910
|
+
const r = Jw(t.borderBottomColor);
|
|
48894
48911
|
t.borderBottomWidth && r && e.push(`border-bottom:${Math.round(t.borderBottomWidth)}px solid ${r}`);
|
|
48895
|
-
const i =
|
|
48912
|
+
const i = Jw(t.borderLeftColor);
|
|
48896
48913
|
t.borderLeftWidth && i && e.push(`border-left:${Math.round(t.borderLeftWidth)}px solid ${i}`);
|
|
48897
|
-
const o =
|
|
48914
|
+
const o = Jw(t.borderRightColor);
|
|
48898
48915
|
t.borderRightWidth && o && e.push(`border-right:${Math.round(t.borderRightWidth)}px solid ${o}`);
|
|
48899
|
-
const a =
|
|
48916
|
+
const a = Jw(t.borderColor);
|
|
48900
48917
|
return 0 === e.length && a ? `border:1px solid ${a}` : e.join(";");
|
|
48901
48918
|
}
|
|
48902
48919
|
buildPaddingCss(t) {
|
|
@@ -48916,7 +48933,7 @@ var Jw = class {
|
|
|
48916
48933
|
const e = this.escapeHtml(r.text);
|
|
48917
48934
|
if (!e) continue;
|
|
48918
48935
|
const i = this.buildRunCss(r, t.style);
|
|
48919
|
-
i ? n.push(`<span style="${
|
|
48936
|
+
i ? n.push(`<span style="${Dw(i)}">${e}</span>`) : n.push(e);
|
|
48920
48937
|
}
|
|
48921
48938
|
return n.join("");
|
|
48922
48939
|
}
|
|
@@ -48931,7 +48948,7 @@ var Jw = class {
|
|
|
48931
48948
|
t && r.push(`font-family:${t}`);
|
|
48932
48949
|
}
|
|
48933
48950
|
if (n.fontSize && n.fontSize !== e?.fontSize && r.push(`font-size:${Math.round(n.fontSize)}px`), n.color && n.color !== e?.color) {
|
|
48934
|
-
const t =
|
|
48951
|
+
const t = Jw(n.color);
|
|
48935
48952
|
t && r.push(`color:${t}`);
|
|
48936
48953
|
}
|
|
48937
48954
|
return n.bold && !e?.bold && r.push("font-weight:bold"), n.italic && !e?.italic && r.push("font-style:italic"), n.underline && r.push("text-decoration:underline"), n.strikethrough && r.push("text-decoration:line-through"), r.join(";");
|
|
@@ -48996,9 +49013,9 @@ var Jw = class {
|
|
|
48996
49013
|
escapeMarkdownTableCell(t) {
|
|
48997
49014
|
return t.replace(/\|/g, "\\|").replace(/\n+/g, " ").trim();
|
|
48998
49015
|
}
|
|
48999
|
-
},
|
|
49000
|
-
function
|
|
49001
|
-
const a = n?.bodyInsetLeft ? n.bodyInsetLeft * o : Math.round(r *
|
|
49016
|
+
}, tT = .06;
|
|
49017
|
+
function eT(t, e, n, r, i, o = 1) {
|
|
49018
|
+
const a = n?.bodyInsetLeft ? n.bodyInsetLeft * o : Math.round(r * tT), s = n?.bodyInsetRight ? n.bodyInsetRight * o : Math.round(r * tT), l = n?.bodyInsetTop ? n.bodyInsetTop * o : Math.round(i * tT), c = n?.bodyInsetBottom ? n.bodyInsetBottom * o : Math.round(i * tT), d = r - a - s;
|
|
49002
49019
|
if (d <= 0) return;
|
|
49003
49020
|
const p = function(t, e, n, r) {
|
|
49004
49021
|
const i = [];
|
|
@@ -49006,7 +49023,7 @@ function tT(t, e, n, r, i, o = 1) {
|
|
|
49006
49023
|
const e = o[0]?.style?.align;
|
|
49007
49024
|
let a = [], s = 0, l = 0;
|
|
49008
49025
|
for (const c of o) {
|
|
49009
|
-
t.font =
|
|
49026
|
+
t.font = nT(c.style, r);
|
|
49010
49027
|
const o = 1.2 * ((c.style.fontSize ?? 18) * r), d = c.text.split(/(?<=\s)(?=\S)|(?<=\S)(?=\s)/);
|
|
49011
49028
|
for (const r of d) {
|
|
49012
49029
|
if (!r) continue;
|
|
@@ -49060,15 +49077,15 @@ function tT(t, e, n, r, i, o = 1) {
|
|
|
49060
49077
|
const r = e.align ?? n?.align ?? "left";
|
|
49061
49078
|
let i;
|
|
49062
49079
|
i = "center" === r ? a + (d - e.width) / 2 : "right" === r ? a + d - e.width : a;
|
|
49063
|
-
for (const n of e.runs) t.font =
|
|
49080
|
+
for (const n of e.runs) t.font = nT(n.style, o), t.fillStyle = n.style.color ?? "#000000", t.fillText(n.text, i, g), i += n.measuredWidth;
|
|
49064
49081
|
g += .3 * e.height;
|
|
49065
49082
|
}
|
|
49066
49083
|
}
|
|
49067
|
-
function
|
|
49084
|
+
function nT(t, e) {
|
|
49068
49085
|
const n = (t.fontSize ?? 18) * e, r = t.bold ? "bold" : "normal";
|
|
49069
49086
|
return `${t.italic ? "italic" : "normal"} ${r} ${n}px ${t.fontFamily ? Mh(t.fontFamily) : "sans-serif"}`;
|
|
49070
49087
|
}
|
|
49071
|
-
function
|
|
49088
|
+
function rT(t) {
|
|
49072
49089
|
const e = t.shapeStyle;
|
|
49073
49090
|
if (!e) return null;
|
|
49074
49091
|
if (!function(t) {
|
|
@@ -49078,7 +49095,7 @@ function nT(t) {
|
|
|
49078
49095
|
if ("image" === t.fillMode) return Boolean(t.fillImageUrl);
|
|
49079
49096
|
if (t.fillColor && "transparent" !== t.fillColor) return !0;
|
|
49080
49097
|
return !1;
|
|
49081
|
-
}(e) && !
|
|
49098
|
+
}(e) && !aT(e)) return null;
|
|
49082
49099
|
let n = Math.round(t.width), r = Math.round(t.height);
|
|
49083
49100
|
if (n < 4 || r < 4) return null;
|
|
49084
49101
|
const i = (t.textSegments?.length ?? 0) > 0 ? 800 : 400;
|
|
@@ -49110,11 +49127,11 @@ function nT(t) {
|
|
|
49110
49127
|
void 0 !== e.fillOpacity && e.fillOpacity < 1 && (t.globalAlpha = e.fillOpacity);
|
|
49111
49128
|
}(s, e, n, r), t.pathData) {
|
|
49112
49129
|
const i = n / ((t.pathWidth ?? n) || 1), o = r / ((t.pathHeight ?? r) || 1), a = new Path2D(t.pathData);
|
|
49113
|
-
s.save(), s.scale(i, o), s.fill(a),
|
|
49114
|
-
} else
|
|
49115
|
-
return s.globalAlpha = 1, t.textSegments?.length &&
|
|
49130
|
+
s.save(), s.scale(i, o), s.fill(a), aT(e) && (oT(s, e), s.stroke(a)), s.restore();
|
|
49131
|
+
} else iT(s, t.shapeType, n, r), s.fill(), aT(e) && (oT(s, e), iT(s, t.shapeType, n, r), s.stroke());
|
|
49132
|
+
return s.globalAlpha = 1, t.textSegments?.length && eT(s, t.textSegments, t.textStyle, n, r, o), a.toDataURL("image/png");
|
|
49116
49133
|
}
|
|
49117
|
-
function
|
|
49134
|
+
function iT(t, e, n, r) {
|
|
49118
49135
|
t.beginPath();
|
|
49119
49136
|
switch (e ?? "rect") {
|
|
49120
49137
|
case "ellipse":
|
|
@@ -49128,13 +49145,13 @@ function rT(t, e, n, r) {
|
|
|
49128
49145
|
default: t.rect(0, 0, n, r);
|
|
49129
49146
|
}
|
|
49130
49147
|
}
|
|
49131
|
-
function
|
|
49148
|
+
function oT(t, e) {
|
|
49132
49149
|
t.strokeStyle = e.strokeColor ?? "#000000", t.lineWidth = e.strokeWidth ?? 1, void 0 !== e.strokeOpacity && e.strokeOpacity < 1 && (t.globalAlpha = e.strokeOpacity);
|
|
49133
49150
|
}
|
|
49134
|
-
function
|
|
49151
|
+
function aT(t) {
|
|
49135
49152
|
return Boolean(t.strokeColor) && "transparent" !== t.strokeColor && (t.strokeWidth ?? 0) > 0;
|
|
49136
49153
|
}
|
|
49137
|
-
var
|
|
49154
|
+
var sT = class {
|
|
49138
49155
|
constructor(t) {
|
|
49139
49156
|
this.textRenderer = t;
|
|
49140
49157
|
}
|
|
@@ -49171,7 +49188,7 @@ var aT = class {
|
|
|
49171
49188
|
const t = n.text?.trim();
|
|
49172
49189
|
if (t) {
|
|
49173
49190
|
const e = n.textStyle?.align;
|
|
49174
|
-
e && "left" !== e ? r.push(`<p align="${
|
|
49191
|
+
e && "left" !== e ? r.push(`<p align="${Dw(e)}">${Dw(t)}</p>`) : r.push(t);
|
|
49175
49192
|
}
|
|
49176
49193
|
}
|
|
49177
49194
|
const a = n.textStyle?.textWarpPreset;
|
|
@@ -49189,7 +49206,7 @@ var aT = class {
|
|
|
49189
49206
|
r.add(t);
|
|
49190
49207
|
try {
|
|
49191
49208
|
const r = await e.mediaContext.saveImage(t, `slide${e.slideNumber}-bullet`);
|
|
49192
|
-
n.push(`<img src="${
|
|
49209
|
+
n.push(`<img src="${Dw(r)}" alt="Bullet image">`);
|
|
49193
49210
|
} catch {}
|
|
49194
49211
|
}
|
|
49195
49212
|
}
|
|
@@ -49202,7 +49219,7 @@ var aT = class {
|
|
|
49202
49219
|
if (!n.fillImageUrl.startsWith("data:")) return null;
|
|
49203
49220
|
try {
|
|
49204
49221
|
const t = await e.mediaContext.saveImage(n.fillImageUrl, `slide${e.slideNumber}-shapefill`);
|
|
49205
|
-
return e.semanticMode ? `` : `<img src="${
|
|
49222
|
+
return e.semanticMode ? `` : `<img src="${Dw(t)}" alt="Shape fill">`;
|
|
49206
49223
|
} catch {
|
|
49207
49224
|
return null;
|
|
49208
49225
|
}
|
|
@@ -49211,7 +49228,7 @@ var aT = class {
|
|
|
49211
49228
|
const i = t;
|
|
49212
49229
|
if (!i.shapeStyle || !i.width || !i.height) return null;
|
|
49213
49230
|
try {
|
|
49214
|
-
const t =
|
|
49231
|
+
const t = rT({
|
|
49215
49232
|
width: i.width,
|
|
49216
49233
|
height: i.height,
|
|
49217
49234
|
shapeType: i.shapeType,
|
|
@@ -49225,9 +49242,9 @@ var aT = class {
|
|
|
49225
49242
|
if (!t) return null;
|
|
49226
49243
|
const o = await e.mediaContext.saveImage(t, `slide${e.slideNumber}-shape`);
|
|
49227
49244
|
if (e.semanticMode) return ``;
|
|
49228
|
-
if (e.layoutScale) return `<img src="${
|
|
49245
|
+
if (e.layoutScale) return `<img src="${Dw(o)}" alt="Shape" style="max-width:100%;height:auto">`;
|
|
49229
49246
|
const a = this.computeDisplaySize(i.width, i.height);
|
|
49230
|
-
return `<img src="${
|
|
49247
|
+
return `<img src="${Dw(o)}" alt="Shape" width="${a.w}" height="${a.h}">`;
|
|
49231
49248
|
} catch {
|
|
49232
49249
|
return null;
|
|
49233
49250
|
}
|
|
@@ -49251,7 +49268,7 @@ var aT = class {
|
|
|
49251
49268
|
h: Math.round(e * r)
|
|
49252
49269
|
};
|
|
49253
49270
|
}
|
|
49254
|
-
},
|
|
49271
|
+
}, lT = class {
|
|
49255
49272
|
constructor(t) {
|
|
49256
49273
|
this.textRenderer = t;
|
|
49257
49274
|
}
|
|
@@ -49324,9 +49341,9 @@ var aT = class {
|
|
|
49324
49341
|
"onClick" !== i && r.push(i.replace(/([A-Z])/g, " $1").trim().toLowerCase()), "number" == typeof t.repeatCount && t.repeatCount > 1 && r.push(`repeat: ${t.repeatCount}x`), t.autoReverse && r.push("auto-reverse"), t.buildType && r.push(`build: ${t.buildType}`);
|
|
49325
49342
|
return `${e}: ${n}${r.length > 0 ? ` (${r.join(", ")})` : ""}`;
|
|
49326
49343
|
}
|
|
49327
|
-
},
|
|
49344
|
+
}, cT = class {
|
|
49328
49345
|
constructor(t, e, n) {
|
|
49329
|
-
this.registry = t, this.mediaContext = e, this.textRenderer = n, this.metadataRenderer = new
|
|
49346
|
+
this.registry = t, this.mediaContext = e, this.textRenderer = n, this.metadataRenderer = new lT(n);
|
|
49330
49347
|
}
|
|
49331
49348
|
metadataRenderer;
|
|
49332
49349
|
async processSlide(t, e) {
|
|
@@ -49371,7 +49388,7 @@ var aT = class {
|
|
|
49371
49388
|
}
|
|
49372
49389
|
async renderBackgroundHtml(t, e) {
|
|
49373
49390
|
if (t.backgroundImage && t.backgroundImage.startsWith("data:")) try {
|
|
49374
|
-
return `<img src="${
|
|
49391
|
+
return `<img src="${Dw(await e.mediaContext.saveImage(t.backgroundImage, `slide${t.slideNumber}-bg`))}" alt="Slide background" style="width:100%;height:100%;object-fit:cover">`;
|
|
49375
49392
|
} catch {
|
|
49376
49393
|
return;
|
|
49377
49394
|
}
|
|
@@ -49431,7 +49448,7 @@ var aT = class {
|
|
|
49431
49448
|
});
|
|
49432
49449
|
}
|
|
49433
49450
|
};
|
|
49434
|
-
function
|
|
49451
|
+
function dT(t, e, n) {
|
|
49435
49452
|
const r = function(t, e) {
|
|
49436
49453
|
if (!t || "object" != typeof t) return;
|
|
49437
49454
|
const n = t[e];
|
|
@@ -49442,7 +49459,7 @@ function cT(t, e, n) {
|
|
|
49442
49459
|
const i = n?.[e], o = i?.marginLeft ?? 0, a = i?.indent ?? 0, s = Math.max(0, o + Math.max(a, 0));
|
|
49443
49460
|
return s <= 0 ? 0 : Math.max(0, Math.round(s / 24));
|
|
49444
49461
|
}
|
|
49445
|
-
function
|
|
49462
|
+
function hT(t, e) {
|
|
49446
49463
|
if (t.autoNumType) {
|
|
49447
49464
|
const n = t.autoNumStartAt ?? 1, r = t.paragraphIndex ?? e;
|
|
49448
49465
|
return function(t, e) {
|
|
@@ -49486,7 +49503,7 @@ function dT(t, e) {
|
|
|
49486
49503
|
}
|
|
49487
49504
|
return "-";
|
|
49488
49505
|
}
|
|
49489
|
-
var
|
|
49506
|
+
var pT = [
|
|
49490
49507
|
"mono",
|
|
49491
49508
|
"courier",
|
|
49492
49509
|
"consolas",
|
|
@@ -49510,7 +49527,7 @@ var hT = [
|
|
|
49510
49527
|
"lucida console",
|
|
49511
49528
|
"fixedsys"
|
|
49512
49529
|
];
|
|
49513
|
-
var
|
|
49530
|
+
var uT = class {
|
|
49514
49531
|
convert(t) {
|
|
49515
49532
|
return this.renderNode(t).replace(/\s+/g, " ").trim() || this.collectText(t).replace(/\s+/g, " ").trim();
|
|
49516
49533
|
}
|
|
@@ -49685,8 +49702,8 @@ var pT = class {
|
|
|
49685
49702
|
const r = t[e];
|
|
49686
49703
|
return "string" == typeof r ? r : null;
|
|
49687
49704
|
}
|
|
49688
|
-
},
|
|
49689
|
-
ommlConverter = new
|
|
49705
|
+
}, mT = class {
|
|
49706
|
+
ommlConverter = new uT();
|
|
49690
49707
|
render(t, e = {}) {
|
|
49691
49708
|
if (0 === t.length) return "";
|
|
49692
49709
|
const n = this.groupParagraphs(t).map((t) => this.renderParagraph(t, e)).filter((t) => t.text.length > 0);
|
|
@@ -49738,7 +49755,7 @@ var pT = class {
|
|
|
49738
49755
|
if (!e.disableLists && !e.inlineMode) {
|
|
49739
49756
|
const r = t.segments.find((t) => Boolean(t.bulletInfo))?.bulletInfo;
|
|
49740
49757
|
if (r && !r.none) {
|
|
49741
|
-
const i =
|
|
49758
|
+
const i = dT(r, t.index, e.paragraphIndents), o = hT(r, t.index), a = r.autoNumType && /^\d+[.)]\s/.test(n) ? "" : `${o} `;
|
|
49742
49759
|
if (e.htmlFormatting) return {
|
|
49743
49760
|
text: `<div style="padding-left:${1.5 * i}em">${a}${n}</div>`,
|
|
49744
49761
|
isListItem: !0
|
|
@@ -49771,13 +49788,13 @@ var pT = class {
|
|
|
49771
49788
|
if ("all" === t.style.textCaps && (i = i.toUpperCase()), !r && function(t) {
|
|
49772
49789
|
if (t.style.hyperlink) return !1;
|
|
49773
49790
|
const e = t.style.fontFamily?.toLowerCase() ?? "";
|
|
49774
|
-
return
|
|
49775
|
-
}(t) && (i = this.wrapCode(i)), t.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), t.style.bold && t.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (t.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), t.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), t.style.underline && (i = `<u>${i}</u>`), t.style.baseline && t.style.baseline > 0 && (i = `<sup>${i}</sup>`), t.style.baseline && t.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === t.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), t.style.hyperlink) if (r) i = `<a href="${
|
|
49791
|
+
return pT.some((t) => e.includes(t));
|
|
49792
|
+
}(t) && (i = this.wrapCode(i)), t.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), t.style.bold && t.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (t.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), t.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), t.style.underline && (i = `<u>${i}</u>`), t.style.baseline && t.style.baseline > 0 && (i = `<sup>${i}</sup>`), t.style.baseline && t.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === t.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), t.style.hyperlink) if (r) i = `<a href="${Dw(function(t) {
|
|
49776
49793
|
if ("string" != typeof t) return "#";
|
|
49777
49794
|
const e = t.trim();
|
|
49778
49795
|
if (0 === e.length) return "#";
|
|
49779
49796
|
const n = e.toLowerCase();
|
|
49780
|
-
for (const t of
|
|
49797
|
+
for (const t of Bw) if (n.startsWith(t)) return e;
|
|
49781
49798
|
return "#";
|
|
49782
49799
|
}(t.style.hyperlink))}">${i}</a>`;
|
|
49783
49800
|
else i = `[${i}](${this.renderLinkDestination(t.style.hyperlink)}${t.style.hyperlinkTooltip ? ` "${this.escapeLinkTitle(t.style.hyperlinkTooltip)}"` : ""})`;
|
|
@@ -49808,14 +49825,14 @@ var pT = class {
|
|
|
49808
49825
|
escapeHtml(t) {
|
|
49809
49826
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
49810
49827
|
}
|
|
49811
|
-
},
|
|
49828
|
+
}, fT = class extends jw {
|
|
49812
49829
|
textRenderer;
|
|
49813
49830
|
registry;
|
|
49814
49831
|
slideProcessor;
|
|
49815
49832
|
convertedSlides = 0;
|
|
49816
49833
|
totalSlides = 0;
|
|
49817
49834
|
constructor(t, e, n) {
|
|
49818
|
-
super(t, e, n), this.textRenderer = new
|
|
49835
|
+
super(t, e, n), this.textRenderer = new mT(), this.registry = new $w(), this.registerProcessors(), this.slideProcessor = new cT(this.registry, this.mediaContext, this.textRenderer);
|
|
49819
49836
|
}
|
|
49820
49837
|
get imagesExtracted() {
|
|
49821
49838
|
return this.mediaContext.totalImages;
|
|
@@ -49850,7 +49867,7 @@ var pT = class {
|
|
|
49850
49867
|
return s && (a = `${a}\n\n---\n\n${s}`), a = a.endsWith("\n") ? a : `${a}\n`, this.options.outputPath && await this.writeOutput(a, this.options.outputPath), a;
|
|
49851
49868
|
}
|
|
49852
49869
|
registerProcessors() {
|
|
49853
|
-
this.registry.register(new
|
|
49870
|
+
this.registry.register(new sT(this.textRenderer)), this.registry.register(new zw()), this.registry.register(new Qw()), this.registry.register(new Ow()), this.registry.register(new Kw()), this.registry.register(new Xw()), this.registry.register(new Ww()), this.registry.register(new Hw()), this.registry.register(new Gw()), this.registry.register(new Uw());
|
|
49854
49871
|
}
|
|
49855
49872
|
buildPptxFrontMatter(t) {
|
|
49856
49873
|
const e = {
|
|
@@ -49892,56 +49909,56 @@ var pT = class {
|
|
|
49892
49909
|
return this.options;
|
|
49893
49910
|
}
|
|
49894
49911
|
};
|
|
49895
|
-
function
|
|
49912
|
+
function gT(t, e) {
|
|
49896
49913
|
if (!t) return null;
|
|
49897
49914
|
const n = [];
|
|
49898
49915
|
let r = "SourceGraphic";
|
|
49899
49916
|
const i = (t, e) => {
|
|
49900
49917
|
n.push(e.replace("__IN__", r).replace("__OUT__", t)), r = t;
|
|
49901
49918
|
};
|
|
49902
|
-
if (t.grayscale && i("p1", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), "number" == typeof t.saturation) i("p2", `<feColorMatrix in="__IN__" type="saturate" values="${
|
|
49903
|
-
return
|
|
49919
|
+
if (t.grayscale && i("p1", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), "number" == typeof t.saturation) i("p2", `<feColorMatrix in="__IN__" type="saturate" values="${xT(function(t) {
|
|
49920
|
+
return yT(t, 0, 2);
|
|
49904
49921
|
}(1 + t.saturation / 100))}" result="__OUT__"/>`);
|
|
49905
|
-
if ("number" == typeof t.hsl?.hue && i("p3", `<feColorMatrix in="__IN__" type="hueRotate" values="${
|
|
49922
|
+
if ("number" == typeof t.hsl?.hue && i("p3", `<feColorMatrix in="__IN__" type="hueRotate" values="${xT(t.hsl.hue)}" result="__OUT__"/>`), "number" == typeof t.brightness || "number" == typeof t.contrast) {
|
|
49906
49923
|
const e = (t.brightness ?? 0) / 100, n = 1 + (t.contrast ?? 0) / 100, r = n, o = e + (1 - n) / 2;
|
|
49907
|
-
i("p4", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${
|
|
49924
|
+
i("p4", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncG type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncB type="linear" slope="${xT(r)}" intercept="${xT(o)}"/></feComponentTransfer>`);
|
|
49908
49925
|
}
|
|
49909
49926
|
if (t.lum && ("number" == typeof t.lum.bright || "number" == typeof t.lum.contrast)) {
|
|
49910
49927
|
const e = (t.lum.bright ?? 0) / 100, n = 1 + (t.lum.contrast ?? 0) / 100, r = n, o = e + (1 - n) / 2;
|
|
49911
|
-
i("p5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${
|
|
49928
|
+
i("p5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncG type="linear" slope="${xT(r)}" intercept="${xT(o)}"/><feFuncB type="linear" slope="${xT(r)}" intercept="${xT(o)}"/></feComponentTransfer>`);
|
|
49912
49929
|
}
|
|
49913
49930
|
if ("number" == typeof t.biLevel) {
|
|
49914
49931
|
i("p6a", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>");
|
|
49915
|
-
const e =
|
|
49916
|
-
i("p6b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="discrete" tableValues="${0 === e ? "1 1" : `0 ${
|
|
49932
|
+
const e = yT(t.biLevel / 100, 0, 1);
|
|
49933
|
+
i("p6b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="discrete" tableValues="${0 === e ? "1 1" : `0 ${bT(e)}`}"/><feFuncG type="discrete" tableValues="${0 === e ? "1 1" : `0 ${bT(e)}`}"/><feFuncB type="discrete" tableValues="${0 === e ? "1 1" : `0 ${bT(e)}`}"/></feComponentTransfer>`);
|
|
49917
49934
|
}
|
|
49918
49935
|
if (t.duotone) {
|
|
49919
|
-
const e =
|
|
49920
|
-
i("p7a", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), i("p7b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${
|
|
49936
|
+
const e = ST(t.duotone.color1), n = ST(t.duotone.color2);
|
|
49937
|
+
i("p7a", "<feColorMatrix in=\"__IN__\" type=\"saturate\" values=\"0\" result=\"__OUT__\"/>"), i("p7b", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncR type="linear" slope="${xT(n.r - e.r)}" intercept="${xT(e.r)}"/><feFuncG type="linear" slope="${xT(n.g - e.g)}" intercept="${xT(e.g)}"/><feFuncB type="linear" slope="${xT(n.b - e.b)}" intercept="${xT(e.b)}"/></feComponentTransfer>`);
|
|
49921
49938
|
}
|
|
49922
49939
|
if (t.tint && "number" == typeof t.tint.amt) {
|
|
49923
|
-
const e =
|
|
49924
|
-
e < 0 && i("p8", `<feColorMatrix in="__IN__" type="saturate" values="${
|
|
49940
|
+
const e = yT(t.tint.amt / 100, -1, 1);
|
|
49941
|
+
e < 0 && i("p8", `<feColorMatrix in="__IN__" type="saturate" values="${xT(1 + e)}" result="__OUT__"/>`), "number" == typeof t.tint.hue && i("p8h", `<feColorMatrix in="__IN__" type="hueRotate" values="${xT(t.tint.hue)}" result="__OUT__"/>`);
|
|
49925
49942
|
}
|
|
49926
49943
|
if (t.clrRepl) {
|
|
49927
|
-
const e =
|
|
49928
|
-
i("p9", `<feColorMatrix in="__IN__" type="matrix" result="__OUT__" values="0 0 0 0 ${
|
|
49944
|
+
const e = ST(t.clrRepl.color);
|
|
49945
|
+
i("p9", `<feColorMatrix in="__IN__" type="matrix" result="__OUT__" values="0 0 0 0 ${xT(e.r)} 0 0 0 0 ${xT(e.g)} 0 0 0 0 ${xT(e.b)} 0 0 0 1 0"/>`);
|
|
49929
49946
|
}
|
|
49930
49947
|
if (t.colorWash) {
|
|
49931
|
-
|
|
49932
|
-
const e =
|
|
49933
|
-
n.push(`<feFlood flood-color="${t.colorWash.color}" flood-opacity="${
|
|
49948
|
+
ST(t.colorWash.color);
|
|
49949
|
+
const e = yT((t.colorWash.opacity ?? 50) / 100, 0, 1);
|
|
49950
|
+
n.push(`<feFlood flood-color="${t.colorWash.color}" flood-opacity="${xT(e)}" result="wash"/><feComposite in="wash" in2="${r}" operator="in" result="washmasked"/><feBlend in="washmasked" in2="${r}" mode="normal" result="washed"/>`), r = "washed";
|
|
49934
49951
|
}
|
|
49935
|
-
if (t.clrChange && t.clrChange.clrToTransparent &&
|
|
49936
|
-
if (t.alphaInv && i("pa2", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"linear\" slope=\"-1\" intercept=\"1\"/></feComponentTransfer>"), t.alphaCeiling && i("pa3", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 1 1 1 1 1 1 1 1 1\"/></feComponentTransfer>"), t.alphaFloor && i("pa4", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 0 0 0 0 0 0 0 0 1\"/></feComponentTransfer>"), "number" == typeof t.alphaRepl) i("pa5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncA type="linear" slope="0" intercept="${yT(
|
|
49952
|
+
if (t.clrChange && t.clrChange.clrToTransparent && ST(t.clrChange.clrFrom), "number" == typeof t.alphaModFix) i("pa1", `<feColorMatrix in="__IN__" type="matrix" result="__OUT__" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${xT(yT(t.alphaModFix / 100, 0, 1))} 0"/>`);
|
|
49953
|
+
if (t.alphaInv && i("pa2", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"linear\" slope=\"-1\" intercept=\"1\"/></feComponentTransfer>"), t.alphaCeiling && i("pa3", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 1 1 1 1 1 1 1 1 1\"/></feComponentTransfer>"), t.alphaFloor && i("pa4", "<feComponentTransfer in=\"__IN__\" result=\"__OUT__\"><feFuncA type=\"discrete\" tableValues=\"0 0 0 0 0 0 0 0 0 1\"/></feComponentTransfer>"), "number" == typeof t.alphaRepl) i("pa5", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncA type="linear" slope="0" intercept="${xT(yT(t.alphaRepl / 100, 0, 1))}"/></feComponentTransfer>`);
|
|
49937
49954
|
if ("number" == typeof t.alphaBiLevel) i("pa6", `<feComponentTransfer in="__IN__" result="__OUT__"><feFuncA type="discrete" tableValues="${function(t) {
|
|
49938
49955
|
const e = [];
|
|
49939
49956
|
for (let n = 0; n < 10; n++) e.push(n / 10 >= t ? "1" : "0");
|
|
49940
49957
|
return e.join(" ");
|
|
49941
|
-
}(
|
|
49958
|
+
}(yT(t.alphaBiLevel / 100, 0, 1))}"/></feComponentTransfer>`);
|
|
49942
49959
|
if ("string" == typeof t.artisticEffect && /blur/i.test(t.artisticEffect)) {
|
|
49943
49960
|
const e = Math.max(0, (t.artisticRadius ?? 0) / 12700);
|
|
49944
|
-
e > 0 && i("pb", `<feGaussianBlur in="__IN__" stdDeviation="${
|
|
49961
|
+
e > 0 && i("pb", `<feGaussianBlur in="__IN__" stdDeviation="${xT(e)}" result="__OUT__"/>`);
|
|
49945
49962
|
}
|
|
49946
49963
|
if (0 === n.length) return null;
|
|
49947
49964
|
const o = `imgfx-${e}`;
|
|
@@ -49950,16 +49967,16 @@ function fT(t, e) {
|
|
|
49950
49967
|
filterId: o
|
|
49951
49968
|
};
|
|
49952
49969
|
}
|
|
49953
|
-
function
|
|
49970
|
+
function yT(t, e, n) {
|
|
49954
49971
|
return t < e ? e : t > n ? n : t;
|
|
49955
49972
|
}
|
|
49956
|
-
function
|
|
49973
|
+
function xT(t) {
|
|
49957
49974
|
return Number.isFinite(t) ? Number(t.toFixed(4)).toString() : "0";
|
|
49958
49975
|
}
|
|
49959
|
-
function
|
|
49976
|
+
function bT(t) {
|
|
49960
49977
|
return "1";
|
|
49961
49978
|
}
|
|
49962
|
-
function
|
|
49979
|
+
function ST(t) {
|
|
49963
49980
|
const e = /^#?([0-9a-f]{6})/i.exec(t.trim());
|
|
49964
49981
|
if (!e) return {
|
|
49965
49982
|
r: 0,
|
|
@@ -49973,21 +49990,21 @@ function bT(t) {
|
|
|
49973
49990
|
b: (255 & n) / 255
|
|
49974
49991
|
};
|
|
49975
49992
|
}
|
|
49976
|
-
function
|
|
49993
|
+
function vT(t) {
|
|
49977
49994
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
49978
49995
|
}
|
|
49979
|
-
function
|
|
49996
|
+
function wT(t) {
|
|
49980
49997
|
let e = "";
|
|
49981
|
-
for (const [n, r] of Object.entries(t)) void 0 !== r && "" !== r && (e += ` ${n}="${
|
|
49998
|
+
for (const [n, r] of Object.entries(t)) void 0 !== r && "" !== r && (e += ` ${n}="${vT(String(r))}"`);
|
|
49982
49999
|
return e;
|
|
49983
50000
|
}
|
|
49984
|
-
function
|
|
50001
|
+
function TT(t, e) {
|
|
49985
50002
|
const n = e, r = t.markerCache.get(n);
|
|
49986
50003
|
if (r) return r;
|
|
49987
|
-
const i = "arrow_" + ++t.markerIdCounter, o = `<marker id="${i}" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto" markerUnits="strokeWidth"><polygon points="0 0, 10 3.5, 0 7" fill="${
|
|
50004
|
+
const i = "arrow_" + ++t.markerIdCounter, o = `<marker id="${i}" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto" markerUnits="strokeWidth"><polygon points="0 0, 10 3.5, 0 7" fill="${vT(e)}" /></marker>`;
|
|
49988
50005
|
return t.defs.push(o), t.markerCache.set(n, i), i;
|
|
49989
50006
|
}
|
|
49990
|
-
function
|
|
50007
|
+
function CT(t, e) {
|
|
49991
50008
|
if ("text" !== t.type && "shape" !== t.type && "connector" !== t.type) return "";
|
|
49992
50009
|
const n = t.text;
|
|
49993
50010
|
if (!n) return "";
|
|
@@ -49995,7 +50012,7 @@ function TT(t, e) {
|
|
|
49995
50012
|
let c = "start", d = 4;
|
|
49996
50013
|
if ("center" === l ? (c = "middle", d = t.width / 2) : "right" === l && (c = "end", d = t.width - 4), r && r.length > 0) {
|
|
49997
50014
|
const t = [];
|
|
49998
|
-
t.push(`<text${
|
|
50015
|
+
t.push(`<text${wT({
|
|
49999
50016
|
x: d,
|
|
50000
50017
|
"text-anchor": c,
|
|
50001
50018
|
"font-family": o,
|
|
@@ -50010,12 +50027,12 @@ function TT(t, e) {
|
|
|
50010
50027
|
}
|
|
50011
50028
|
if (!i.text) continue;
|
|
50012
50029
|
const r = i.style, l = {};
|
|
50013
|
-
n && (l.x = d, l.dy = e, n = !1), r.fontFamily && r.fontFamily !== o && (l["font-family"] = r.fontFamily), r.fontSize && r.fontSize !== a && (l["font-size"] = r.fontSize), r.color && r.color !== s && (l.fill = r.color), r.bold && (l["font-weight"] = "bold"), r.italic && (l["font-style"] = "italic"), r.underline && (l["text-decoration"] = "underline"), t.push(`<tspan${
|
|
50030
|
+
n && (l.x = d, l.dy = e, n = !1), r.fontFamily && r.fontFamily !== o && (l["font-family"] = r.fontFamily), r.fontSize && r.fontSize !== a && (l["font-size"] = r.fontSize), r.color && r.color !== s && (l.fill = r.color), r.bold && (l["font-weight"] = "bold"), r.italic && (l["font-style"] = "italic"), r.underline && (l["text-decoration"] = "underline"), t.push(`<tspan${wT(l)}>${vT(i.text)}</tspan>`);
|
|
50014
50031
|
}
|
|
50015
50032
|
return t.push("</text>"), t.join("");
|
|
50016
50033
|
}
|
|
50017
50034
|
const h = i?.bold, p = i?.italic, u = n.split("\n"), m = [];
|
|
50018
|
-
m.push(`<text${
|
|
50035
|
+
m.push(`<text${wT({
|
|
50019
50036
|
x: d,
|
|
50020
50037
|
"text-anchor": c,
|
|
50021
50038
|
"font-family": o,
|
|
@@ -50024,13 +50041,13 @@ function TT(t, e) {
|
|
|
50024
50041
|
"font-weight": h ? "bold" : void 0,
|
|
50025
50042
|
"font-style": p ? "italic" : void 0
|
|
50026
50043
|
})}>`);
|
|
50027
|
-
for (let t = 0; t < u.length; t++) m.push(`<tspan${
|
|
50044
|
+
for (let t = 0; t < u.length; t++) m.push(`<tspan${wT({
|
|
50028
50045
|
x: d,
|
|
50029
50046
|
dy: 1.2 * a
|
|
50030
|
-
})}>${
|
|
50047
|
+
})}>${vT(u[t])}</tspan>`);
|
|
50031
50048
|
return m.push("</text>"), m.join("");
|
|
50032
50049
|
}
|
|
50033
|
-
function
|
|
50050
|
+
function kT(t) {
|
|
50034
50051
|
if ("shape" !== t.type && "text" !== t.type) return "";
|
|
50035
50052
|
const e = "shapeStyle" in t ? t.shapeStyle : void 0, n = "shapeType" in t ? t.shapeType : void 0, r = e?.fillColor ?? "none", i = e?.strokeColor ?? "none", o = e?.strokeWidth ?? ("none" !== i ? 1 : 0), a = e?.fillMode;
|
|
50036
50053
|
let s = r;
|
|
@@ -50042,13 +50059,13 @@ function CT(t) {
|
|
|
50042
50059
|
"fill-opacity": void 0 !== l ? l : void 0,
|
|
50043
50060
|
"stroke-opacity": void 0 !== c ? c : void 0
|
|
50044
50061
|
}, h = "pathData" in t ? t.pathData : void 0;
|
|
50045
|
-
if (h) return `<path${
|
|
50062
|
+
if (h) return `<path${wT({
|
|
50046
50063
|
...d,
|
|
50047
50064
|
d: h
|
|
50048
50065
|
})} />`;
|
|
50049
50066
|
switch (n) {
|
|
50050
50067
|
case "ellipse":
|
|
50051
|
-
case "oval": return `<ellipse${
|
|
50068
|
+
case "oval": return `<ellipse${wT({
|
|
50052
50069
|
...d,
|
|
50053
50070
|
cx: t.width / 2,
|
|
50054
50071
|
cy: t.height / 2,
|
|
@@ -50056,15 +50073,15 @@ function CT(t) {
|
|
|
50056
50073
|
ry: t.height / 2
|
|
50057
50074
|
})} />`;
|
|
50058
50075
|
case "triangle":
|
|
50059
|
-
case "isoTriangle": return `<polygon${
|
|
50076
|
+
case "isoTriangle": return `<polygon${wT({
|
|
50060
50077
|
...d,
|
|
50061
50078
|
points: `${t.width / 2},0 ${t.width},${t.height} 0,${t.height}`
|
|
50062
50079
|
})} />`;
|
|
50063
|
-
case "diamond": return `<polygon${
|
|
50080
|
+
case "diamond": return `<polygon${wT({
|
|
50064
50081
|
...d,
|
|
50065
50082
|
points: `${t.width / 2},0 ${t.width},${t.height / 2} ${t.width / 2},${t.height} 0,${t.height / 2}`
|
|
50066
50083
|
})} />`;
|
|
50067
|
-
default: return `<rect${
|
|
50084
|
+
default: return `<rect${wT({
|
|
50068
50085
|
...d,
|
|
50069
50086
|
width: t.width,
|
|
50070
50087
|
height: t.height,
|
|
@@ -50072,7 +50089,7 @@ function CT(t) {
|
|
|
50072
50089
|
})} />`;
|
|
50073
50090
|
}
|
|
50074
50091
|
}
|
|
50075
|
-
function
|
|
50092
|
+
function _T(t, e, n) {
|
|
50076
50093
|
if (t.hidden) return "";
|
|
50077
50094
|
const r = function(t) {
|
|
50078
50095
|
const e = [];
|
|
@@ -50084,16 +50101,16 @@ function kT(t, e, n) {
|
|
|
50084
50101
|
switch (t.type) {
|
|
50085
50102
|
case "text":
|
|
50086
50103
|
case "shape":
|
|
50087
|
-
o =
|
|
50104
|
+
o = kT(t) + CT(t, e);
|
|
50088
50105
|
break;
|
|
50089
50106
|
case "connector":
|
|
50090
50107
|
o = function(t, e) {
|
|
50091
50108
|
if ("connector" !== t.type) return "";
|
|
50092
50109
|
const n = t.shapeStyle, r = n?.strokeColor ?? "#000000", i = n?.strokeWidth ?? 1;
|
|
50093
50110
|
let o, a;
|
|
50094
|
-
n?.connectorStartArrow && "none" !== n.connectorStartArrow && (o = `url(#${
|
|
50095
|
-
n?.connectorEndArrow && "none" !== n.connectorEndArrow && (a = `url(#${
|
|
50096
|
-
return `<line${
|
|
50111
|
+
n?.connectorStartArrow && "none" !== n.connectorStartArrow && (o = `url(#${TT(e, r)})`);
|
|
50112
|
+
n?.connectorEndArrow && "none" !== n.connectorEndArrow && (a = `url(#${TT(e, r)})`);
|
|
50113
|
+
return `<line${wT({
|
|
50097
50114
|
x1: 0,
|
|
50098
50115
|
y1: 0,
|
|
50099
50116
|
x2: t.width,
|
|
@@ -50110,35 +50127,35 @@ function kT(t, e, n) {
|
|
|
50110
50127
|
o = function(t, e) {
|
|
50111
50128
|
if ("image" !== t.type && "picture" !== t.type) return "";
|
|
50112
50129
|
const n = t.imageData;
|
|
50113
|
-
if (!n) return `<rect${
|
|
50130
|
+
if (!n) return `<rect${wT({
|
|
50114
50131
|
width: t.width,
|
|
50115
50132
|
height: t.height,
|
|
50116
50133
|
fill: "#E0E0E0",
|
|
50117
50134
|
stroke: "#999",
|
|
50118
50135
|
"stroke-width": 1
|
|
50119
|
-
})} /><text${
|
|
50136
|
+
})} /><text${wT({
|
|
50120
50137
|
x: t.width / 2,
|
|
50121
50138
|
y: t.height / 2,
|
|
50122
50139
|
"text-anchor": "middle",
|
|
50123
50140
|
"font-size": 12,
|
|
50124
50141
|
fill: "#666"
|
|
50125
50142
|
})}>image</text>`;
|
|
50126
|
-
const r = t.imageEffects ?
|
|
50143
|
+
const r = t.imageEffects ? gT(t.imageEffects, function(t) {
|
|
50127
50144
|
const e = t.filterCounter++;
|
|
50128
50145
|
return `${t.slideIndex}-${e}`;
|
|
50129
50146
|
}(e)) : null, i = r ? ` filter="url(#${r.filterId})"` : "";
|
|
50130
|
-
return r && e.defs.push(r.defsXml), `<image${
|
|
50147
|
+
return r && e.defs.push(r.defsXml), `<image${wT({
|
|
50131
50148
|
width: t.width,
|
|
50132
50149
|
height: t.height,
|
|
50133
50150
|
preserveAspectRatio: "none"
|
|
50134
|
-
})} href="${
|
|
50151
|
+
})} href="${vT(n)}"${i} />`;
|
|
50135
50152
|
}(t, n);
|
|
50136
50153
|
break;
|
|
50137
50154
|
case "table":
|
|
50138
50155
|
o = function(t, e) {
|
|
50139
50156
|
if ("table" !== t.type) return "";
|
|
50140
50157
|
const n = t.tableData;
|
|
50141
|
-
if (!n || !n.rows.length) return `<rect${
|
|
50158
|
+
if (!n || !n.rows.length) return `<rect${wT({
|
|
50142
50159
|
width: t.width,
|
|
50143
50160
|
height: t.height,
|
|
50144
50161
|
fill: "#F0F0F0",
|
|
@@ -50157,7 +50174,7 @@ function kT(t, e, n) {
|
|
|
50157
50174
|
continue;
|
|
50158
50175
|
}
|
|
50159
50176
|
const d = (r[o] ?? 1 / i.cells.length) * t.width * (c.gridSpan ?? 1), h = c.style?.backgroundColor ?? "none", p = c.style?.borderColor ?? "#CCCCCC", u = c.style?.color ?? "#000000", m = c.style?.fontSize ?? e.defaultFontSize, f = c.style?.bold;
|
|
50160
|
-
a.push(`<rect${
|
|
50177
|
+
a.push(`<rect${wT({
|
|
50161
50178
|
x: l,
|
|
50162
50179
|
y: s,
|
|
50163
50180
|
width: d,
|
|
@@ -50165,7 +50182,7 @@ function kT(t, e, n) {
|
|
|
50165
50182
|
fill: h,
|
|
50166
50183
|
stroke: p,
|
|
50167
50184
|
"stroke-width": .5
|
|
50168
|
-
})} />`), c.text && a.push(`<text${
|
|
50185
|
+
})} />`), c.text && a.push(`<text${wT({
|
|
50169
50186
|
x: l + 4,
|
|
50170
50187
|
y: s + n / 2,
|
|
50171
50188
|
"dominant-baseline": "central",
|
|
@@ -50173,7 +50190,7 @@ function kT(t, e, n) {
|
|
|
50173
50190
|
"font-size": m,
|
|
50174
50191
|
fill: u,
|
|
50175
50192
|
"font-weight": f ? "bold" : void 0
|
|
50176
|
-
})}>${
|
|
50193
|
+
})}>${vT(c.text)}</text>`), l += d;
|
|
50177
50194
|
}
|
|
50178
50195
|
s += n;
|
|
50179
50196
|
}
|
|
@@ -50184,7 +50201,7 @@ function kT(t, e, n) {
|
|
|
50184
50201
|
o = function(t, e, n) {
|
|
50185
50202
|
if ("group" !== t.type) return "";
|
|
50186
50203
|
const r = [];
|
|
50187
|
-
for (const i of t.children) r.push(
|
|
50204
|
+
for (const i of t.children) r.push(_T(i, e, n));
|
|
50188
50205
|
return r.join("");
|
|
50189
50206
|
}(t, e, n);
|
|
50190
50207
|
break;
|
|
@@ -50194,7 +50211,7 @@ function kT(t, e, n) {
|
|
|
50194
50211
|
const e = [];
|
|
50195
50212
|
for (let n = 0; n < t.inkPaths.length; n++) {
|
|
50196
50213
|
const r = t.inkPaths[n], i = t.inkColors?.[n] ?? "#000000", o = t.inkWidths?.[n] ?? 1, a = t.inkOpacities?.[n];
|
|
50197
|
-
e.push(`<path${
|
|
50214
|
+
e.push(`<path${wT({
|
|
50198
50215
|
d: r,
|
|
50199
50216
|
fill: "none",
|
|
50200
50217
|
stroke: i,
|
|
@@ -50214,14 +50231,14 @@ function kT(t, e, n) {
|
|
|
50214
50231
|
case "zoom":
|
|
50215
50232
|
case "model3d":
|
|
50216
50233
|
case "unknown": o = function(t) {
|
|
50217
|
-
return `<rect${
|
|
50234
|
+
return `<rect${wT({
|
|
50218
50235
|
width: t.width,
|
|
50219
50236
|
height: t.height,
|
|
50220
50237
|
fill: "#F5F5F5",
|
|
50221
50238
|
stroke: "#CCCCCC",
|
|
50222
50239
|
"stroke-width": 1,
|
|
50223
50240
|
"stroke-dasharray": "4 2"
|
|
50224
|
-
})} /><text${
|
|
50241
|
+
})} /><text${wT({
|
|
50225
50242
|
x: t.width / 2,
|
|
50226
50243
|
y: t.height / 2,
|
|
50227
50244
|
"text-anchor": "middle",
|
|
@@ -50229,15 +50246,15 @@ function kT(t, e, n) {
|
|
|
50229
50246
|
"font-family": "Arial",
|
|
50230
50247
|
"font-size": 11,
|
|
50231
50248
|
fill: "#999999"
|
|
50232
|
-
})}>${
|
|
50249
|
+
})}>${vT(t.type)}</text>`;
|
|
50233
50250
|
}(t);
|
|
50234
50251
|
}
|
|
50235
|
-
return o ? `<g${
|
|
50252
|
+
return o ? `<g${wT({
|
|
50236
50253
|
transform: r,
|
|
50237
50254
|
opacity: void 0 !== i && i < 1 ? i : void 0
|
|
50238
50255
|
})}>${o}</g>` : "";
|
|
50239
50256
|
}
|
|
50240
|
-
var
|
|
50257
|
+
var PT = class t {
|
|
50241
50258
|
static exportSlide(t, e, n, r) {
|
|
50242
50259
|
const i = (o = r, {
|
|
50243
50260
|
defaultFontFamily: o?.defaultFontFamily ?? "Arial",
|
|
@@ -50254,23 +50271,23 @@ var _T = class t {
|
|
|
50254
50271
|
};
|
|
50255
50272
|
}(t.elements.length), s = [];
|
|
50256
50273
|
s.push(function(t, e, n) {
|
|
50257
|
-
return t.backgroundImage ? `<rect${
|
|
50274
|
+
return t.backgroundImage ? `<rect${wT({
|
|
50258
50275
|
width: e,
|
|
50259
50276
|
height: n,
|
|
50260
50277
|
fill: "#FFFFFF"
|
|
50261
|
-
})} /><image${
|
|
50278
|
+
})} /><image${wT({
|
|
50262
50279
|
width: e,
|
|
50263
50280
|
height: n,
|
|
50264
50281
|
preserveAspectRatio: "xMidYMid slice"
|
|
50265
|
-
})} href="${
|
|
50282
|
+
})} href="${vT(t.backgroundImage)}" />` : `<rect${wT({
|
|
50266
50283
|
width: e,
|
|
50267
50284
|
height: n,
|
|
50268
50285
|
fill: t.backgroundColor ?? "#FFFFFF"
|
|
50269
50286
|
})} />`;
|
|
50270
50287
|
}(t, e, n));
|
|
50271
|
-
for (const e of t.elements) s.push(
|
|
50288
|
+
for (const e of t.elements) s.push(_T(e, i, a));
|
|
50272
50289
|
const l = a.defs.length ? `<defs>${a.defs.join("")}</defs>` : "";
|
|
50273
|
-
return `<svg${
|
|
50290
|
+
return `<svg${wT({
|
|
50274
50291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50275
50292
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
50276
50293
|
viewBox: `0 0 ${e} ${n}`,
|