MCPcopy Create free account
hub / github.com/simstudioai/sim / n7

Function n7

apps/sim/lib/execution/sandbox/bundles/pptxgenjs.cjs:57–64  ·  view source on GitHub ↗
($)

Source from the content-addressed store, hash-verified

55 <c:overlay val="0"/>
56 </c:title>`}function j0($){let q="",Q=$-1;if(Q<=25)q=W8[Q];else q=`${W8[Math.floor(Q/W8.length-1)]}${W8[Q%W8.length]}`;return q}function T1($,q){if(!$)return"<a:effectLst/>";else if(typeof $!=="object")return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"<a:effectLst/>";let Q="<a:effectLst>",K=Object.assign(Object.assign({},q),$),J=K.type||"outer",Z=Y0(K.blur),G=Y0(K.offset),W=Math.round(K.angle*60000),B=K.color,V=Math.round(K.opacity*1e5),U=K.rotateWithShape?1:0;return Q+=`<a:${J}Shdw sx="100000" sy="100000" kx="0" ky="0" algn="bl" blurRad="${Z}" rotWithShape="${U}" dist="${G}" dir="${W}">`,Q+=`<a:srgbClr val="${B}">`,Q+=`<a:alpha val="${V}"/></a:srgbClr>`,Q+=`</a:${J}Shdw>`,Q+="</a:effectLst>",Q}function b7($){let q="<c:majorGridlines>";return q+=" <c:spPr>",q+=` <a:ln w="${Y0($.size||u1.size)}" cap="${k5($.cap||u1.cap)}">`,q+=' <a:solidFill><a:srgbClr val="'+($.color||u1.color)+'"/></a:solidFill>',q+=' <a:prstDash val="'+($.style||u1.style)+'"/><a:round/>',q+=" </a:ln>",q+=" </c:spPr>",q+="</c:majorGridlines>",q}function k5($){if(!$||$==="flat")return"flat";else if($==="square")return"sq";else if($==="round")return"rnd";else throw Error(`Invalid chart line cap: ${$}`)}function y7($){var q,Q;let K=typeof process<"u"&&!!((q=process.versions)===null||q===void 0?void 0:q.node)&&((Q=process.release)===null||Q===void 0?void 0:Q.name)==="node",J,Z,G=K?()=>W2(this,void 0,void 0,function*(){({default:J}=yield import("node:fs")),{default:Z}=yield Promise.resolve().then(() => (sK(),rK))}):()=>W2(this,void 0,void 0,function*(){});if(K)G();let W=[],B=$._relsMedia.filter((U)=>U.type!=="online"&&!U.data&&(!U.path||U.path&&!U.path.includes("preencoded"))),V=[];return B.forEach((U)=>{if(!V.includes(U.path))U.isDuplicate=!1,V.push(U.path);else U.isDuplicate=!0}),B.filter((U)=>!U.isDuplicate).forEach((U)=>{W.push((()=>W2(this,void 0,void 0,function*(){if(!Z)yield G();if(K&&J&&U.path.indexOf("http")!==0)try{let w=J.readFileSync(U.path);return U.data=Buffer.from(w).toString("base64"),B.filter((F)=>F.isDuplicate&&F.path===U.path).forEach((F)=>F.data=U.data),"done"}catch(w){throw U.data=j6,B.filter((F)=>F.isDuplicate&&F.path===U.path).forEach((F)=>F.data=U.data),Error(`ERROR: Unable to read media: "${U.path}"
57${String(w)}`)}if(K&&Z&&U.path.startsWith("http"))return yield new Promise((w,F)=>{Z.get(U.path,(M)=>{let k="";M.setEncoding("binary"),M.on("data",(f)=>k+=f),M.on("end",()=>{U.data=Buffer.from(k,"binary").toString("base64"),B.filter((f)=>f.isDuplicate&&f.path===U.path).forEach((f)=>f.data=U.data),w("done")}),M.on("error",()=>{U.data=j6,B.filter((f)=>f.isDuplicate&&f.path===U.path).forEach((f)=>f.data=U.data),F(Error(`ERROR! Unable to load image (https.get): ${U.path}`))})})});return yield new Promise((w,F)=>{let M=new XMLHttpRequest;M.onload=()=>{let k=new FileReader;k.onloadend=()=>{if(U.data=k.result,B.filter((f)=>f.isDuplicate&&f.path===U.path).forEach((f)=>f.data=U.data),!U.isSvgPng)w("done");else $J(U).then(()=>w("done")).catch(F)},k.readAsDataURL(M.response)},M.onerror=()=>{U.data=j6,B.filter((k)=>k.isDuplicate&&k.path===U.path).forEach((k)=>k.data=U.data),F(Error(`ERROR! Unable to load image (xhr.onerror): ${U.path}`))},M.open("GET",U.path),M.responseType="blob",M.send()})}))())}),$._relsMedia.filter((U)=>U.isSvgPng&&U.data).forEach((U)=>{(()=>W2(this,void 0,void 0,function*(){if(K&&!J)yield G();if(K&&J)U.data=j6,W.push(Promise.resolve("done"));else W.push($J(U))}))()}),W}function $J($){return W2(this,void 0,void 0,function*(){return yield new Promise((q,Q)=>{let K=new Image;K.onload=()=>{if(K.width+K.height===0)K.onerror("h/w=0");let J=document.createElement("CANVAS"),Z=J.getContext("2d");J.width=K.width,J.height=K.height,Z.drawImage(K,0,0);try{$.data=J.toDataURL($.type),q("done")}catch(G){K.onerror(G.toString())}J=null},K.onerror=()=>{$.data=j6,Q(Error(`ERROR! Unable to load image (image.onerror): ${$.path}`))},K.src=typeof $.data==="string"?$.data:j6})})}var XB={cover:function($,q){let Q=$.h/$.w,J=q.h/q.w>Q,Z=J?q.h/Q:q.w,G=J?q.h:q.w*Q,W=Math.round(50000*(1-q.w/Z)),B=Math.round(50000*(1-q.h/G));return`<a:srcRect l="${W}" r="${W}" t="${B}" b="${B}"/><a:stretch/>`},contain:function($,q){let Q=$.h/$.w,J=q.h/q.w>Q,Z=J?q.w:q.h/Q,G=J?q.w*Q:q.h,W=Math.round(50000*(1-q.w/Z)),B=Math.round(50000*(1-q.h/G));return`<a:srcRect l="${W}" r="${W}" t="${B}" b="${B}"/><a:stretch/>`},crop:function($,q){let Q=q.x,K=$.w-(q.x+q.w),J=q.y,Z=$.h-(q.y+q.h),G=Math.round(1e5*(Q/$.w)),W=Math.round(1e5*(K/$.w)),B=Math.round(1e5*(J/$.h)),V=Math.round(1e5*(Z/$.h));return`<a:srcRect l="${G}" r="${W}" t="${B}" b="${V}"/><a:stretch/>`}};function n7($){var q;let Q=$._name?'<p:cSld name="'+$._name+'">':"<p:cSld>",K=1;if($._bkgdImgRid)Q+=`<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId${$._bkgdImgRid}"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>`;else if((q=$.background)===null||q===void 0?void 0:q.color)Q+=`<p:bg><p:bgPr>${B2($.background)}</p:bgPr></p:bg>`;else if(!$.bkgd&&$._name&&$._name===h7)Q+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>';if(Q+="<p:spTree>",Q+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',Q+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',Q+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>',$._slideObjects.forEach((J,Z)=>{var G,W,B,V,U,w,F,M;let k=0,f=0,L=H0("75%","X",$._presLayout),D=0,z,N="",H=null,v=null,j=0,n=0,d=null,_=null,X=(G=J.options)===null||G===void 0?void 0:G.sizing,P=(W=J.options)===null||W===void 0?void 0:W.rounding;if($._slideLayout!==void 0&&$._slideLayout._slideObjects!==void 0&&J.options&&J.options.placeholder)z=$._slideLayout._slideObjects.filter((h)=>h.options.placeholder===J.options.placeholder)[0];if(J.options=J.options||{},typeof J.options.x<"u")k=H0(J.options.x,"X",$._presLayout);if(typeof J.options.y<"u")f=H0(J.options.y,"Y",$._presLayout);if(typeof J.options.w<"u")L=H0(J.options.w,"X",$._presLayout);if(typeof J.options.h<"u")D=H0(J.options.h,"Y",$._presLayout);let g=L,c=D;if(z){if(z.options.x||z.options.x===0)k=H0(z.options.x,"X",$._presLayout);if(z.options.y||z.options.y===0)f=H0(z.options.y,"Y",$._presLayout);if(z.options.w||z.options.w===0)L=H0(z.options.w,"X",$._presLayout);if(z.options.h||z.options.h===0)D=H0(z.options.h,"Y",$._presLayout)}if(J.options.flipH)N+=' flipH="1"';if(J.options.flipV)N+=' flipV="1"';if(J.options.rotate)N+=` rot="${S1(J.options.rotate)}"`;switch(J._type){case D0.table:if(H=J.arrTabRows,v=J.options,j=0,n=0,H[0].forEach((h)=>{d=h.options||null,j+=(d===null||d===void 0?void 0:d.colspan)?Number(d.colspan):1}),_=`<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="${K*$._slideNum+1}" name="${J.options.objectName}"/>`,_+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr> <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',_+=`<p:xfrm><a:off x="${k||(k===0?0:L0)}" y="${f||(f===0?0:L0)}"/><a:ext cx="${L||(L===0?0:L0)}" cy="${D||L0}"/></p:xfrm>`,_+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(v.colW)){_+="<a:tblGrid>";for(let h=0;h<j;h++){let x=v0(v.colW[h]);if(x==null||isNaN(x))x=(typeof J.options.w==="number"?J.options.w:1)/j;_+=`<a:gridCol w="${Math.round(x)}"/>`}_+="</a:tblGrid>"}else{if(n=v.colW?v.colW:L0,J.options.w&&!v.colW)n=Math.round((typeof J.options.w==="number"?J.options.w:1)/j);_+="<a:tblGrid>";for(let h=0;h<j;h++)_+=`<a:gridCol w="${n}"/>`;_+="</a:tblGrid>"}H.forEach((h)=>{var x,l;for(let $0=0;$0<h.length;){let Z0=h[$0],F0=(x=Z0.options)===null||x===void 0?void 0:x.colspan,p=(l=Z0.options)===null||l===void 0?void 0:l.rowspan;if(F0&&F0>1){let W0=Array(F0-1).fill(void 0).map(()=>{return{_type:D0.tablecell,options:{rowspan:p},_hmerge:!0}});h.splice($0+1,0,...W0),$0+=F0}else $0+=1}}),H.forEach((h,x)=>{let l=H[x+1];if(!l)return;h.forEach(($0,Z0)=>{var F0,p;let W0=$0._rowContinue||((F0=$0.options)===null||F0===void 0?void 0:F0.rowspan),y=(p=$0.options)===null||p===void 0?void 0:p.colspan,i=$0._hmerge;if(W0&&W0>1){let U0={_type:D0.tablecell,options:{colspan:y},_rowContinue:W0-1,_vmerge:!0,_hmerge:i};l.splice(Z0,0,U0)}})}),H.forEach((h,x)=>{let l=0;if(Array.isArray(v.rowH)&&v.rowH[x])l=v0(Number(v.rowH[x]));else if(v.rowH&&!isNaN(Number(v.rowH)))l=v0(Number(v.rowH));else if(J.options.cy||J.options.h)l=Math.round((J.options.h?v0(J.options.h):typeof J.options.cy==="number"?J.options.cy:1)/H.length);_+=`<a:tr h="${l}">`,h.forEach(($0)=>{var Z0,F0,p,W0,y;let i=$0,U0={rowSpan:((Z0=i.options)===null||Z0===void 0?void 0:Z0.rowspan)>1?i.options.rowspan:void 0,gridSpan:((F0=i.options)===null||F0===void 0?void 0:F0.colspan)>1?i.options.colspan:void 0,vMerge:i._vmerge?1:void 0,hMerge:i._hmerge?1:void 0},m=Object.keys(U0).map((K0)=>[K0,U0[K0]]).filter(([,K0])=>!!K0).map(([K0,R])=>`${String(K0)}="${String(R)}"`).join(" ");if(m)m=" "+m;if(i._hmerge||i._vmerge){_+=`<a:tc${m}><a:tcPr/></a:tc>`;return}let V0=i.options||{};i.options=V0,["align","bold","border","color","fill","fontFace","fontSize","margin","textDirection","underline","valign"].forEach((K0)=>{if(v[K0]&&!V0[K0]&&V0[K0]!==0)V0[K0]=v[K0]});let w0=V0.valign?` anchor="${V0.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")}"`:"",S=V0.textDirection&&V0.textDirection!=="horz"?` vert="${V0.textDirection}"`:"",b=((W0=(p=i._optImp)===null||p===void 0?void 0:p.fill)===null||W0===void 0?void 0:W0.color)?i._optImp.fill.color:((y=i._optImp)===null||y===void 0?void 0:y.fill)&&typeof i._optImp.fill==="string"?i._optImp.fill:"";b=b||V0.fill?V0.fill:"";let O=b?B2(b):"",E=V0.margin===0||V0.margin?V0.margin:KJ;if(!Array.isArray(E)&&typeof E==="number")E=[E,E,E,E];let a="";if(E[0]>=1)a=` marL="${Y0(E[3])}" marR="${Y0(E[1])}" marT="${Y0(E[0])}" marB="${Y0(E[2])}"`;else a=` marL="${v0(E[3])}" marR="${v0(E[1])}" marT="${v0(E[0])}" marB="${v0(E[2])}"`;if(_+=`<a:tc${m}>${qJ(i)}<a:tcPr${a}${w0}${S}>`,V0.border&&Array.isArray(V0.border))[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach((K0)=>{if(V0.border[K0.idx].type!=="none")_+=`<a:${K0.name} w="${Y0(V0.border[K0.idx].pt)}" cap="flat" cmpd="sng" algn="ctr">`,_+=`<a:solidFill>${R0(V0.border[K0.idx].color)}</a:solidFill>`,_+=`<a:prstDash val="${V0.border[K0.idx].type==="dash"?"sysDash":"solid"}"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>`,_+=`</a:${K0.name}>`;else _+=`<a:${K0.name} w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:${K0.name}>`});_+=O,_+=" </a:tcPr>",_+=" </a:tc>"}),_+="</a:tr>"}),_+=" </a:tbl>",_+=" </a:graphicData>",_+=" </a:graphic>",_+="</p:graphicFrame>",Q+=_,K++;break;case D0.text:case D0.placeholder:if(!J.options.line&&D===0)D=L0*0.3;if(!J.options._bodyProp)J.options._bodyProp={};if(J.options.margin&&Array.isArray(J.options.margin))J.options._bodyProp.lIns=Y0(J.options.margin[0]||0),J.options._bodyProp.rIns=Y0(J.options.margin[1]||0),J.options._bodyProp.bIns=Y0(J.options.margin[2]||0),J.options._bodyProp.tIns=Y0(J.options.margin[3]||0);else if(typeof J.options.margin==="number")J.options._bodyProp.lIns=Y0(J.options.margin),J.options._bodyProp.rIns=Y0(J.options.margin),J.options._bodyProp.bIns=Y0(J.options.margin),J.options._bodyProp.tIns=Y0(J.options.margin);if(Q+="<p:sp>",Q+=`<p:nvSpPr><p:cNvPr id="${Z+2}" name="${J.options.objectName}">`,(B=J.options.hyperlink)===null||B===void 0?void 0:B.url)Q+=`<a:hlinkClick r:id="rId${J.options.hyperlink._rId}" tooltip="${J.options.hyperlink.tooltip?k0(J.options.hyperlink.tooltip):""}"/>`;if((V=J.options.hyperlink)===null||V===void 0?void 0:V.slide)Q+=`<a:hlinkClick r:id="rId${J.options.hyperlink._rId}" tooltip="${J.options.hyperlink.tooltip?k0(J.options.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`;if(Q+="</p:cNvPr>",Q+="<p:cNvSpPr"+(((U=J.options)===null||U===void 0?void 0:U.isTextBox)?' txBox="1"/>':"/>"),Q+=`<p:nvPr>${J._type==="placeholder"?w5(J):w5(z)}</p:nvPr>`,Q+="</p:nvSpPr><p:spPr>",Q+=`<a:xfrm${N}>`,Q+=`<a:off x="${k}" y="${f}"/>`,Q+=`<a:ext cx="${L}" cy="${D}"/></a:xfrm>`,J.shape==="custGeom")Q+="<a:custGeom><a:avLst />",Q+="<a:gdLst>",Q+="</a:gdLst>",Q+="<a:ahLst />",Q+="<a:cxnLst>",Q+="</a:cxnLst>",Q+='<a:rect l="l" t="t" r="r" b="b" />',Q+="<a:pathLst>",Q+=`<a:path w="${L}" h="${D}">`,(w=J.options.points)===null||w===void 0||w.forEach((h,x)=>{if("curve"in h)switch(h.curve.type){case"arc":Q+=`<a:arcTo hR="${H0(h.curve.hR,"Y",$._presLayout)}" wR="${H0(h.curve.wR,"X",$._presLayout)}" stAng="${S1(h.curve.stAng)}" swAng="${S1(h.curve.swAng)}" />`;break;case"cubic":Q+=`<a:cubicBezTo>
58 <a:pt x="${H0(h.curve.x1,"X",$._presLayout)}" y="${H0(h.curve.y1,"Y",$._presLayout)}" />
59 <a:pt x="${H0(h.curve.x2,"X",$._presLayout)}" y="${H0(h.curve.y2,"Y",$._presLayout)}" />
60 <a:pt x="${H0(h.x,"X",$._presLayout)}" y="${H0(h.y,"Y",$._presLayout)}" />
61 </a:cubicBezTo>`;break;case"quadratic":Q+=`<a:quadBezTo>
62 <a:pt x="${H0(h.curve.x1,"X",$._presLayout)}" y="${H0(h.curve.y1,"Y",$._presLayout)}" />
63 <a:pt x="${H0(h.x,"X",$._presLayout)}" y="${H0(h.y,"Y",$._presLayout)}" />
64 </a:quadBezTo>`;break}else if("close"in h)Q+="<a:close />";else if(h.moveTo||x===0)Q+=`<a:moveTo><a:pt x="${H0(h.x,"X",$._presLayout)}" y="${H0(h.y,"Y",$._presLayout)}" /></a:moveTo>`;else Q+=`<a:lnTo><a:pt x="${H0(h.x,"X",$._presLayout)}" y="${H0(h.y,"Y",$._presLayout)}" /></a:lnTo>`}),Q+="</a:path>",Q+="</a:pathLst>",Q+="</a:custGeom>";else{if(Q+='<a:prstGeom prst="'+J.shape+'"><a:avLst>',J.options.rectRadius)Q+=`<a:gd name="adj" fmla="val ${Math.round(J.options.rectRadius*L0*1e5/Math.min(L,D))}"/>`;else if(J.options.angleRange){for(let h=0;h<2;h++){let x=J.options.angleRange[h];Q+=`<a:gd name="adj${h+1}" fmla="val ${S1(x)}" />`}if(J.options.arcThicknessRatio)Q+=`<a:gd name="adj3" fmla="val ${Math.round(J.options.arcThicknessRatio*50000)}" />`}Q+="</a:avLst></a:prstGeom>"}if(Q+=J.options.fill?B2(J.options.fill):"<a:noFill/>",J.options.line){if(Q+=J.options.line.width?`<a:ln w="${Y0(J.options.line.width)}">`:"<a:ln>",J.options.line.color)Q+=B2(J.options.line);if(J.options.line.dashType)Q+=`<a:prstDash val="${J.options.line.dashType}"/>`;if(J.options.line.beginArrowType)Q+=`<a:headEnd type="${J.options.line.beginArrowType}"/>`;if(J.options.line.endArrowType)Q+=`<a:tailEnd type="${J.options.line.endArrowType}"/>`;Q+="</a:ln>"}if(J.options.shadow&&J.options.shadow.type!=="none")J.options.shadow.type=J.options.shadow.type||"outer",J.options.shadow.blur=Y0(J.options.shadow.blur||8),J.options.shadow.offset=Y0(J.options.shadow.offset||4),J.options.shadow.angle=Math.round((J.options.shadow.angle||270)*60000),J.options.shadow.opacity=Math.round((J.options.shadow.opacity||0.75)*1e5),J.options.shadow.color=J.options.shadow.color||tK.color,Q+="<a:effectLst>",Q+=` <a:${J.options.shadow.type}Shdw ${J.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${J.options.shadow.blur}" dist="${J.options.shadow.offset}" dir="${J.options.shadow.angle}">`,Q+=` <a:srgbClr val="${J.options.shadow.color}">`,Q+=` <a:alpha val="${J.options.shadow.opacity}"/></a:srgbClr>`,Q+=" </a:outerShdw>",Q+="</a:effectLst>";Q+="</p:spPr>",Q+=qJ(J),Q+="</p:sp>";break;case D0.image:if(Q+="<p:pic>",Q+=" <p:nvPicPr>",Q+=`<p:cNvPr id="${Z+2}" name="${J.options.objectName}" descr="${k0(J.options.altText||J.image)}">`,(F=J.hyperlink)===null||F===void 0?void 0:F.url)Q+=`<a:hlinkClick r:id="rId${J.hyperlink._rId}" tooltip="${J.hyperlink.tooltip?k0(J.hyperlink.tooltip):""}"/>`;if((M=J.hyperlink)===null||M===void 0?void 0:M.slide)Q+=`<a:hlinkClick r:id="rId${J.hyperlink._rId}" tooltip="${J.hyperlink.tooltip?k0(J.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`;if(Q+=" </p:cNvPr>",Q+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',Q+=" <p:nvPr>"+w5(z)+"</p:nvPr>",Q+=" </p:nvPicPr>",Q+="<p:blipFill>",($._relsMedia||[]).filter((h)=>h.rId===J.imageRid)[0]&&($._relsMedia||[]).filter((h)=>h.rId===J.imageRid)[0].extn==="svg")Q+=`<a:blip r:embed="rId${J.imageRid-1}">`,Q+=J.options.transparency?` <a:alphaModFix amt="${Math.round((100-J.options.transparency)*1000)}"/>`:"",Q+=" <a:extLst>",Q+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',Q+=` <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId${J.imageRid}"/>`,Q+=" </a:ext>",Q+=" </a:extLst>",Q+="</a:blip>";else Q+=`<a:blip r:embed="rId${J.imageRid}">`,Q+=J.options.transparency?`<a:alphaModFix amt="${Math.round((100-J.options.transparency)*1000)}"/>`:"",Q+="</a:blip>";if(X===null||X===void 0?void 0:X.type){let h=X.w?H0(X.w,"X",$._presLayout):L,x=X.h?H0(X.h,"Y",$._presLayout):D,l=H0(X.x||0,"X",$._presLayout),$0=H0(X.y||0,"Y",$._presLayout);Q+=XB[X.type]({w:g,h:c},{w:h,h:x,x:l,y:$0}),g=h,c=x}else Q+=" <a:stretch><a:fillRect/></a:stretch>";if(Q+="</p:blipFill>",Q+="<p:spPr>",Q+=" <a:xfrm"+N+">",Q+=` <a:off x="${k}" y="${f}"/>`,Q+=` <a:ext cx="${g}" cy="${c}"/>`,Q+=" </a:xfrm>",Q+=` <a:prstGeom prst="${P?"ellipse":"rect"}"><a:avLst/></a:prstGeom>`,J.options.shadow&&J.options.shadow.type!=="none")J.options.shadow.type=J.options.shadow.type||"outer",J.options.shadow.blur=Y0(J.options.shadow.blur||8),J.options.shadow.offset=Y0(J.options.shadow.offset||4),J.options.shadow.angle=Math.round((J.options.shadow.angle||270)*60000),J.options.shadow.opacity=Math.round((J.options.shadow.opacity||0.75)*1e5),J.options.shadow.color=J.options.shadow.color||tK.color,Q+="<a:effectLst>",Q+=`<a:${J.options.shadow.type}Shdw ${J.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${J.options.shadow.blur}" dist="${J.options.shadow.offset}" dir="${J.options.shadow.angle}">`,Q+=`<a:srgbClr val="${J.options.shadow.color}">`,Q+=`<a:alpha val="${J.options.shadow.opacity}"/></a:srgbClr>`,Q+=`</a:${J.options.shadow.type}Shdw>`,Q+="</a:effectLst>";Q+="</p:spPr>",Q+="</p:pic>";break;case D0.media:if(J.mtype==="online")Q+="<p:pic>",Q+=" <p:nvPicPr>",Q+=`<p:cNvPr id="${J.mediaRid+2}" name="${J.options.objectName}"/>`,Q+=" <p:cNvPicPr/>",Q+=" <p:nvPr>",Q+=` <a:videoFile r:link="rId${J.mediaRid}"/>`,Q+=" </p:nvPr>",Q+=" </p:nvPicPr>",Q+=` <p:blipFill><a:blip r:embed="rId${J.mediaRid+1}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,Q+=" <p:spPr>",Q+=` <a:xfrm${N}><a:off x="${k}" y="${f}"/><a:ext cx="${L}" cy="${D}"/></a:xfrm>`,Q+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',Q+=" </p:spPr>",Q+="</p:pic>";else Q+="<p:pic>",Q+=" <p:nvPicPr>",Q+=`<p:cNvPr id="${J.mediaRid+2}" name="${J.options.objectName}"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>`,Q+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',Q+=" <p:nvPr>",Q+=` <a:videoFile r:link="rId${J.mediaRid}"/>`,Q+=" <p:extLst>",Q+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',Q+=` <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId${J.mediaRid+1}"/>`,Q+=" </p:ext>",Q+=" </p:extLst>",Q+=" </p:nvPr>",Q+=" </p:nvPicPr>",Q+=` <p:blipFill><a:blip r:embed="rId${J.mediaRid+2}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,Q+=" <p:spPr>",Q+=` <a:xfrm${N}><a:off x="${k}" y="${f}"/><a:ext cx="${L}" cy="${D}"/></a:xfrm>`,Q+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',Q+=" </p:spPr>",Q+="</p:pic>";break;case D0.chart:Q+="<p:graphicFrame>",Q+=" <p:nvGraphicFramePr>",Q+=` <p:cNvPr id="${Z+2}" name="${J.options.objectName}" descr="${k0(J.options.altText||"")}"/>`,Q+=" <p:cNvGraphicFramePr/>",Q+=` <p:nvPr>${w5(z)}</p:nvPr>`,Q+=" </p:nvGraphicFramePr>",Q+=` <p:xfrm><a:off x="${k}" y="${f}"/><a:ext cx="${L}" cy="${D}"/></p:xfrm>`,Q+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',Q+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',Q+=` <c:chart r:id="rId${J.chartRid}" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>`,Q+=" </a:graphicData>",Q+=" </a:graphic>",Q+="</p:graphicFrame>";break;default:Q+="";break}}),$._slideNumberProps){if(!$._slideNumberProps.align)$._slideNumberProps.align="left";if(Q+="<p:sp>",Q+=" <p:nvSpPr>",Q+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',Q+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',Q+=" </p:nvSpPr>",Q+=" <p:spPr>",Q+=`<a:xfrm><a:off x="${H0($._slideNumberProps.x,"X",$._presLayout)}" y="${H0($._slideNumberProps.y,"Y",$._presLayout)}"/><a:ext cx="${$._slideNumberProps.w?H0($._slideNumberProps.w,"X",$._presLayout):"800000"}" cy="${$._slideNumberProps.h?H0($._slideNumberProps.h,"Y",$._presLayout):"300000"}"/></a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>`,Q+="<p:txBody>",Q+="<a:bodyPr",$._slideNumberProps.margin&&Array.isArray($._slideNumberProps.margin))Q+=` lIns="${Y0($._slideNumberProps.margin[3]||0)}"`,Q+=` tIns="${Y0($._slideNumberProps.margin[0]||0)}"`,Q+=` rIns="${Y0($._slideNumberProps.margin[1]||0)}"`,Q+=` bIns="${Y0($._slideNumberProps.margin[2]||0)}"`;else if(typeof $._slideNumberProps.margin==="number")Q+=` lIns="${Y0($._slideNumberProps.margin||0)}"`,Q+=` tIns="${Y0($._slideNumberProps.margin||0)}"`,Q+=` rIns="${Y0($._slideNumberProps.margin||0)}"`,Q+=` bIns="${Y0($._slideNumberProps.margin||0)}"`;if($._slideNumberProps.valign)Q+=` anchor="${$._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b")}"`;if(Q+="/>",Q+=" <a:lstStyle><a:lvl1pPr>",$._slideNumberProps.fontFace||$._slideNumberProps.fontSize||$._slideNumberProps.color){if(Q+=`<a:defRPr sz="${Math.round(($._slideNumberProps.fontSize||12)*100)}">`,$._slideNumberProps.color)Q+=B2($._slideNumberProps.color);if($._slideNumberProps.fontFace)Q+=`<a:latin typeface="${$._slideNumberProps.fontFace}"/><a:ea typeface="${$._slideNumberProps.fontFace}"/><a:cs typeface="${$._slideNumberProps.fontFace}"/>`;Q+="</a:defRPr>"}if(Q+="</a:lvl1pPr></a:lstStyle>",Q+="<a:p>",$._slideNumberProps.align.startsWith("l"))Q+='<a:pPr algn="l"/>';else if($._slideNumberProps.align.startsWith("c"))Q+='<a:pPr algn="ctr"/>';else if($._slideNumberProps.align.startsWith("r"))Q+='<a:pPr algn="r"/>';else Q+='<a:pPr algn="l"/>';Q+=`<a:fld id="${UJ}" type="slidenum"><a:rPr b="${$._slideNumberProps.bold?1:0}" lang="en-US"/>`,Q+=`<a:t>${$._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>`,Q+="</p:txBody></p:sp>"}return Q+="</p:spTree>",Q+="</p:cSld>",Q}function d7($,q){let Q=0,K='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+n0+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return $._rels.forEach((J)=>{if(Q=Math.max(Q,J.rId),J.type.toLowerCase().includes("hyperlink"))if(J.data==="slide")K+=`<Relationship Id="rId${J.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide${J.Target}.xml"/>`;else K+=`<Relationship Id="rId${J.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${J.Target}" TargetMode="External"/>`;else if(J.type.toLowerCase().includes("notesSlide"))K+=`<Relationship Id="rId${J.rId}" Target="${J.Target}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>`}),($._relsChart||[]).forEach((J)=>{Q=Math.max(Q,J.rId),K+=`<Relationship Id="rId${J.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="${J.Target}"/>`}),($._relsMedia||[]).forEach((J)=>{let Z=J.rId.toString();if(Q=Math.max(Q,J.rId),J.type.toLowerCase().includes("image"))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+J.Target+'"/>';else if(J.type.toLowerCase().includes("audio"))if(K.includes(' Target="'+J.Target+'"'))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+J.Target+'"/>';else K+='<Relationship Id="rId'+Z+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+J.Target+'"/>';else if(J.type.toLowerCase().includes("video"))if(K.includes(' Target="'+J.Target+'"'))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+J.Target+'"/>';else K+='<Relationship Id="rId'+Z+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+J.Target+'"/>';else if(J.type.toLowerCase().includes("online"))if(K.includes(' Target="'+J.Target+'"'))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+J.Target+'"/>';else K+='<Relationship Id="rId'+Z+'" Target="'+J.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>'}),q.forEach((J,Z)=>{K+=`<Relationship Id="rId${Q+Z+1}" Type="${J.type}" Target="${J.target}"/>`}),K+="</Relationships>",K}function QJ($,q){var Q,K;let J="",Z="",G="",W="",B=q?"a:lvl1pPr":"a:pPr",V=Y0(FB),U=`<${B}${$.options.rtlMode?' rtl="1" ':""}`;{if($.options.align)switch($.options.align){case"left":U+=' algn="l"';break;case"right":U+=' algn="r"';break;case"center":U+=' algn="ctr"';break;case"justify":U+=' algn="just"';break;default:U+="";break}if($.options.lineSpacing)Z=`<a:lnSpc><a:spcPts val="${Math.round($.options.lineSpacing*100)}"/></a:lnSpc>`;else if($.options.lineSpacingMultiple)Z=`<a:lnSpc><a:spcPct val="${Math.round($.options.lineSpacingMultiple*1e5)}"/></a:lnSpc>`;if($.options.indentLevel&&!isNaN(Number($.options.indentLevel))&&$.options.indentLevel>0)U+=` lvl="${$.options.indentLevel}"`;if($.options.paraSpaceBefore&&!isNaN(Number($.options.paraSpaceBefore))&&$.options.paraSpaceBefore>0)G+=`<a:spcBef><a:spcPts val="${Math.round($.options.paraSpaceBefore*100)}"/></a:spcBef>`;if($.options.paraSpaceAfter&&!isNaN(Number($.options.paraSpaceAfter))&&$.options.paraSpaceAfter>0)G+=`<a:spcAft><a:spcPts val="${Math.round($.options.paraSpaceAfter*100)}"/></a:spcAft>`;if(typeof $.options.bullet==="object"){if((K=(Q=$===null||$===void 0?void 0:$.options)===null||Q===void 0?void 0:Q.bullet)===null||K===void 0?void 0:K.indent)V=Y0($.options.bullet.indent);if($.options.bullet.type){if($.options.bullet.type.toString().toLowerCase()==="number")U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J=`<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="${$.options.bullet.style||"arabicPeriod"}" startAt="${$.options.bullet.numberStartAt||$.options.bullet.startAt||"1"}"/>`}else if($.options.bullet.characterCode){let w=`&#x${$.options.bullet.characterCode};`;if(!/^[0-9A-Fa-f]{4}$/.test($.options.bullet.characterCode))console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),w=C6.DEFAULT;U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J='<a:buSzPct val="100000"/><a:buChar char="'+w+'"/>'}else if($.options.bullet.code){let w=`&#x${$.options.bullet.code};`;if(!/^[0-9A-Fa-f]{4}$/.test($.options.bullet.code))console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),w=C6.DEFAULT;U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J='<a:buSzPct val="100000"/><a:buChar char="'+w+'"/>'}else U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J=`<a:buSzPct val="100000"/><a:buChar char="${C6.DEFAULT}"/>`}else if($.options.bullet)U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J=`<a:buSzPct val="100000"/><a:buChar char="${C6.DEFAULT}"/>`;else if(!$.options.bullet)U+=' indent="0" marL="0"',J="<a:buNone/>";if($.options.tabStops&&Array.isArray($.options.tabStops))W=`<a:tabLst>${$.options.tabStops.map((F)=>`<a:tab pos="${v0(F.position||1)}" algn="${F.alignment||"l"}"/>`).join("")}</a:tabLst>`;if(U+=">"+Z+G+J+W,q)U+=FJ($.options,!0);U+="</"+B+">"}return U}function FJ($,q){var Q;let K="",J=q?"a:defRPr":"a:rPr";if(K+="<"+J+' lang="'+($.lang?$.lang:"en-US")+'"'+($.lang?' altLang="en-US"':""),K+=$.fontSize?` sz="${Math.round($.fontSize*100)}"`:"",K+=($===null||$===void 0?void 0:$.bold)?` b="${$.bold?"1":"0"}"`:"",K+=($===null||$===void 0?void 0:$.italic)?` i="${$.italic?"1":"0"}"`:"",K+=($===null||$===void 0?void 0:$.strike)?` strike="${typeof $.strike==="string"?$.strike:"sngStrike"}"`:"",typeof $.underline==="object"&&((Q=$.underline)===null||Q===void 0?void 0:Q.style))K+=` u="${$.underline.style}"`;else if(typeof $.underline==="string")K+=` u="${String($.underline)}"`;else if($.hyperlink)K+=' u="sng"';if($.baseline)K+=` baseline="${Math.round($.baseline*50)}"`;else if($.subscript)K+=' baseline="-40000"';else if($.superscript)K+=' baseline="30000"';if(K+=$.charSpacing?` spc="${Math.round($.charSpacing*100)}" kern="0"`:"",K+=' dirty="0">',$.color||$.fontFace||$.outline||typeof $.underline==="object"&&$.underline.color){if($.outline&&typeof $.outline==="object")K+=`<a:ln w="${Y0($.outline.size||0.75)}">${B2($.outline.color||"FFFFFF")}</a:ln>`;if($.color)K+=B2({color:$.color,transparency:$.transparency});if($.highlight)K+=`<a:highlight>${R0($.highlight)}</a:highlight>`;if(typeof $.underline==="object"&&$.underline.color)K+=`<a:uFill>${B2($.underline.color)}</a:uFill>`;if($.glow)K+=`<a:effectLst>${kB($.glow,wB)}</a:effectLst>`;if($.fontFace)K+=`<a:latin typeface="${$.fontFace}" pitchFamily="34" charset="0"/><a:ea typeface="${$.fontFace}" pitchFamily="34" charset="-122"/><a:cs typeface="${$.fontFace}" pitchFamily="34" charset="-120"/>`}if($.hyperlink){if(typeof $.hyperlink!=="object")throw Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");else if(!$.hyperlink.url&&!$.hyperlink.slide)throw Error("ERROR: 'hyperlink requires either `url` or `slide`'");else if($.hyperlink.url)K+=`<a:hlinkClick r:id="rId${$.hyperlink._rId}" invalidUrl="" action="" tgtFrame="" tooltip="${$.hyperlink.tooltip?k0($.hyperlink.tooltip):""}" history="1" highlightClick="0" endSnd="0"${$.color?">":"/>"}`;else if($.hyperlink.slide)K+=`<a:hlinkClick r:id="rId${$.hyperlink._rId}" action="ppaction://hlinksldjump" tooltip="${$.hyperlink.tooltip?k0($.hyperlink.tooltip):""}"${$.color?">":"/>"}`;if($.color)K+=" <a:extLst>",K+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',K+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',K+=" </a:ext>",K+=" </a:extLst>",K+="</a:hlinkClick>"}return K+=`</${J}>`,K}function yB($){return $.text?`<a:r>${FJ($.options,!1)}<a:t>${k0($.text)}</a:t></a:r>`:""}function hB($){let q="<a:bodyPr";if($&&$._type===D0.text&&$.options._bodyProp){if(q+=$.options._bodyProp.wrap?' wrap="square"':' wrap="none"',$.options._bodyProp.lIns||$.options._bodyProp.lIns===0)q+=` lIns="${$.options._bodyProp.lIns}"`;if($.options._bodyProp.tIns||$.options._bodyProp.tIns===0)q+=` tIns="${$.options._bodyProp.tIns}"`;if($.options._bodyProp.rIns||$.options._bodyProp.rIns===0)q+=` rIns="${$.options._bodyProp.rIns}"`;if($.options._bodyProp.bIns||$.options._bodyProp.bIns===0)q+=` bIns="${$.options._bodyProp.bIns}"`;if(q+=' rtlCol="0"',$.options._bodyProp.anchor)q+=' anchor="'+$.options._bodyProp.anchor+'"';if($.options._bodyProp.vert)q+=' vert="'+$.options._bodyProp.vert+'"';if(q+=">",$.options.fit){if($.options.fit==="none")q+="";else if($.options.fit==="shrink")q+="<a:normAutofit/>";else if($.options.fit==="resize")q+="<a:spAutoFit/>"}if($.options.shrinkText)q+="<a:normAutofit/>";q+=$.options._bodyProp.autoFit?"<a:spAutoFit/>":"",q+="</a:bodyPr>"}else q+=' wrap="square" rtlCol="0">',q+="</a:bodyPr>";return $._type===D0.tablecell?"<a:bodyPr/>":q}function qJ($){let q=$.options||{},Q=[],K=[];if(q&&$._type!==D0.tablecell&&(typeof $.text>"u"||$.text===null))return"";let J=$._type===D0.tablecell?"<a:txBody>":"<p:txBody>";if(J+=hB($),q.h===0&&q.line&&q.align)J+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>';else if($._type==="placeholder")J+=`<a:lstStyle>${QJ($,!0)}</a:lstStyle>`;else J+="<a:lstStyle/>";if(typeof $.text==="string"||typeof $.text==="number")Q.push({text:$.text.toString(),options:q||{}});else if($.text&&!Array.isArray($.text)&&typeof $.text==="object"&&Object.keys($.text).includes("text"))Q.push({text:$.text||"",options:$.options||{}});else if(Array.isArray($.text))Q=$.text.map((W)=>({text:W.text,options:W.options}));Q.forEach((W,B)=>{if(!W.text)W.text="";if(W.options=W.options||q||{},B===0&&W.options&&!W.options.bullet&&q.bullet)W.options.bullet=q.bullet;if(typeof W.text==="string"||typeof W.text==="number")W.text=W.text.toString().replace(/\r*\n/g,n0);if(W.text.includes(n0)&&W.text.match(/\n$/g)===null)W.text.split(n0).forEach((V)=>{W.options.breakLine=!0,K.push({text:V,options:W.options})});else K.push(W)});let Z=[],G=[];if(K.forEach((W,B)=>{if(G.length>0&&(W.options.align||q.align)){if(W.options.align!==K[B-1].options.align)Z.push(G),G=[]}else if(G.length>0&&W.options.bullet&&G.length>0)Z.push(G),G=[],W.options.breakLine=!1;if(G.push(W),G.length>0&&W.options.breakLine){if(B+1<K.length)Z.push(G),G=[]}if(B+1===K.length)Z.push(G)}),Z.forEach((W)=>{var B;let V=!1;J+="<a:p>";let U=`<a:pPr ${((B=W[0].options)===null||B===void 0?void 0:B.rtlMode)?' rtl="1" ':""}`;if(W.forEach((w,F)=>{if(w.options._lineIdx=F,F>0&&w.options.softBreakBefore)J+="<a:br/>";if(w.options.align=w.options.align||q.align,w.options.lineSpacing=w.options.lineSpacing||q.lineSpacing,w.options.lineSpacingMultiple=w.options.lineSpacingMultiple||q.lineSpacingMultiple,w.options.indentLevel=w.options.indentLevel||q.indentLevel,w.options.paraSpaceBefore=w.options.paraSpaceBefore||q.paraSpaceBefore,w.options.paraSpaceAfter=w.options.paraSpaceAfter||q.paraSpaceAfter,U=QJ(w,!1),J+=U.replace("<a:pPr></a:pPr>",""),Object.entries(q).filter(([M])=>!(w.options.hyperlink&&M==="color")).forEach(([M,k])=>{if(M!=="bullet"&&!w.options[M])w.options[M]=k}),J+=yB(w),!w.text&&q.fontSize||w.options.fontSize)V=!0,q.fontSize=q.fontSize||w.options.fontSize}),$._type===D0.tablecell&&(q.fontSize||q.fontFace))if(q.fontFace)J+=`<a:endParaRPr lang="${q.lang||"en-US"}"`+(q.fontSize?` sz="${Math.round(q.fontSize*100)}"`:"")+' dirty="0">',J+=`<a:latin typeface="${q.fontFace}" charset="0"/>`,J+=`<a:ea typeface="${q.fontFace}" charset="0"/>`,J+=`<a:cs typeface="${q.fontFace}" charset="0"/>`,J+="</a:endParaRPr>";else J+=`<a:endParaRPr lang="${q.lang||"en-US"}"`+(q.fontSize?` sz="${Math.round(q.fontSize*100)}"`:"")+' dirty="0"/>';else if(V)J+=`<a:endParaRPr lang="${q.lang||"en-US"}"`+(q.fontSize?` sz="${Math.round(q.fontSize*100)}"`:"")+' dirty="0"/>';else J+=`<a:endParaRPr lang="${q.lang||"en-US"}" dirty="0"/>`;J+="</a:p>"}),J.indexOf("<a:p>")===-1)J+="<a:p><a:endParaRPr/></a:p>";return J+=$._type===D0.tablecell?"</a:txBody>":"</p:txBody>",J}function w5($){var q,Q;if(!$)return"";let K=((q=$.options)===null||q===void 0?void 0:q._placeholderIdx)?$.options._placeholderIdx:"",J=((Q=$.options)===null||Q===void 0?void 0:Q._placeholderType)?$.options._placeholderType:"",Z=J&&F8[J]?F8[J].toString():"";return`<p:ph
65 ${K?' idx="'+K.toString()+'"':""}
66 ${Z&&F8[Z]?` type="${Z}"`:""}
67 ${$.text&&$.text.length>0?' hasCustomPrompt="1"':""}

Callers 3

SBFunction · 0.70
bBFunction · 0.70
nBFunction · 0.70

Calls 11

H0Function · 0.85
S1Function · 0.85
v0Function · 0.85
joinMethod · 0.80
B2Function · 0.70
Y0Function · 0.70
qJFunction · 0.70
R0Function · 0.70
k0Function · 0.70
w5Function · 0.70
replaceMethod · 0.65

Tested by

no test coverage detected