module.exports = presentationParser;

function presentationParser(entries, pptx, relations) {
	let presentation = {};
	let root = pptx['ppt/presentation.xml']['p:presentation'];
	presentation['slideMasterIdList'] = [];
	root['p:sldMasterIdLst'][0]['p:sldMasterId'].forEach(a => {
		let rid = a.$['r:id'];
		let target = relations['ppt/presentation.xml'][rid];
		presentation['slideMasterIdList'].push({id: a.$.id, rid: rid, target: target});
	});
	presentation['slideIdList'] = [];
	root['p:sldIdLst'][0]['p:sldId'].forEach(b => {
		let rid = b.$['r:id'];
		let target = relations['ppt/presentation.xml'][rid];
		presentation['slideIdList'].push({id: b.$.id, rid: rid, target: target});
	});
	presentation['slideSize'] = {
		type: root['p:sldSz'][0].$.type,
		cx: root['p:sldSz'][0].$.cx,
		cy: root['p:sldSz'][0].$.cy
	};
	return presentation;
}

@@ -816,16 +816,1005 @@
 .cy%0A%09%7D;%0A
+%09let ts = root%5B'p:defaultTextStyle'%5D%5B0%5D;%0A%09presentation%5B'defaultTextStyle'%5D = %7B%7D;%0A%09presentation%5B'defaultTextStyle'%5D%5B'defaultParagraphStyle'%5D = %7B%7D;%0A%09presentation%5B'defaultTextStyle'%5D%5B'defaultParagraphStyle'%5D%5B'defaultRunProperty'%5D = %7B%0A%09%09lang: ts%5B'a:defPPr'%5D%5B0%5D%5B'a:defRPr'%5D%5B0%5D.$.lang%0A%09%7D;%0A%09for(let i=1; i%3C10; i++) %7B%0A%09%09presentation%5B'defaultTextStyle'%5D%5B'level' + i + 'ParagraphProperty'%5D = %7B%0A%09%09%09marL: ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D.$.marL,%0A%09%09%09algn: ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D.$.algn,%0A%09%09%09defTabSz: ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D.$.defTabSz,%0A%09%09%09rtl: ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D.$.rtl,%0A%09%09%09eaLnBrk: ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D.$.eaLnBrk,%0A%09%09%09latinLnBrk: ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D.$.latinLnBrk,%0A%09%09%09hangingPunct: ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D.$.hangingPunct%0A%09%09%7D;%0A%09%09let drp = ts%5B'a:lvl' + i + 'pPr'%5D%5B0%5D%5B'a:defRPr'%5D%5B0%5D;%0A%09%09presentation%5B'defaultTextStyle'%5D%5B'level' + i + 'ParagraphProperty'%5D.defaultRunProperty = %7B%0A%09%09%09size: drp.$.sz,%0A%09%09%09kern: drp.$.kern,%0A%09%09%09color: drp%5B'a:solidFill'%5D%5B0%5D%5B'a:schemeClr'%5D%5B0%5D.$.val%0A%09%09%7D;%0A%09%7D%0A%0A
 %09return 

add defaultTextStyle parsing.