},ne=function(t,e){returnee(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},re=function(){H("/Producer (jsPDF "+o.version+")");for(vartinI)I.hasOwnProperty(t)&&H("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+ne(I[t])+")");vare=newDate;H(["/CreationDate (D:",e.getFullYear(),D(e.getMonth()+1),D(e.getDate()),D(e.getHours()),D(e.getMinutes()),D(e.getSeconds()),")"].join(""))},se=function(){H("/Type /Catalog"),H("/Pages 1 0 R"),H("/OpenAction [3 0 R /FitH null]"),H("/PageLayout /OneColumn"),U.publish("putCatalog")},oe=function(){H("/Size "+(z+1)),H("/Root "+z+" 0 R"),H("/Info "+(z-1)+" 0 R")},ie=function(){E++,S=!0,F[E]=[]},ae=function(){ie(),H(L(_*m)+" w"),H(b),0!==j&&H(j.toString(10)+" J"),0!==P&&H(P.toString(10)+" j"),U.publish("addPage",{pageNumber:E})},ue=function(t,e){varn;t=void0!==t?t:C[w].fontName,e=void0!==e?e:C[w].fontStyle;try{n=R[t][e]}catch(r){}if(!n)thrownewError("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts.");returnn},ce=function(){S=!1,z=2,T=[],A=[],H("%PDF-"+i),W(),Y(),M(),H("<<"),re(),H(">>"),H("endobj"),M(),H("<<"),se(),H(">>"),H("endobj");vart,e=O,n="0000000000";for(H("xref"),H("0 "+(z+1)),H(n+" 65535 f "),t=1;z>=t;t++)H((n+A[t]).slice(-10)+" 00000 n ");returnH("trailer"),H("<<"),oe(),H(">>"),H("startxref"),H(e),H("%%EOF"),S=!0,T.join("\n")},le=function(t){vare="S";return"F"===t?e="f":("FD"===t||"DF"===t)&&(e="B"),e},fe=function(){for(vart=ce(),e=t.length,r=newArrayBuffer(e),s=newUint8Array(r);e--;)s[e]=t.charCodeAt(e);returnnewn([r],{type:"application/pdf"})},de=te(function(e,n){switch(e){casevoid0:returnce();case"save":if(navigator.getUserMedia&&(void0===t.URL||void0===t.URL.createObjectURL))returnB.output("dataurlnewwindow");r(fe(),n),"function"==typeofr.unload&&r.unload();break;case"blob":returnfe();case"datauristring":case"dataurlstring":return"data:application/pdf;base64,"+btoa(ce());case"datauri":case"dataurl":t.document.location.href="data:application/pdf;base64,"+btoa(ce());break;case"dataurlnewwindow":t.open("data:application/pdf;base64,"+btoa(ce()));break;default:thrownewError('Output type "'+e+'" is not supported.')}});if("pt"===c)m=1;elseif("mm"===c)m=72/25.4;elseif("cm"===c)m=72/2.54;else{if("in"!==c)throw"Invalid unit: "+c;m=72}if(a.hasOwnProperty(y))v=a[y][1]/m,h=a[y][0]/m;elsetry{v=l[1],h=l[0]}catch(we){thrownewError("Invalid format: "+l)}if("p"===u||"portrait"===u)u="p",h>v&&(p=h,h=v,v=p);else{if("l"!==u&&"landscape"!==u)throw"Invalid orientation: "+u;u="l",v>h&&(p=h,h=v,v=p)}B.internal={pdfEscape:ne,getStyle:le,getFont:function(){returnC[ue.apply(B,arguments)]},getFontSize:function(){returnx},getLineHeight:function(){returnx*k},write:function(t){H(1===arguments.length?t:Array.prototype.join.call(arguments," "))},getCoordinateString:function(t){returnL(t*m)},getVerticalCoordinateString:function(t){returnL((v-t)*m)},collections:{},newObject:M,putStream:J,events:U,scaleFactor:m,pageSize:{width:h,height:v},output:function(t,e){returnde(t,e)},getNumberOfPages:function(){returnF.length-1},pages:F},B.addPage=function(){returnae(),this},B.text=function(t,e,n,r,s){"number"==typeoft&&(p=n,n=e,e=t,t=p),"string"==typeoft&&t.match(/[\n\r]/)&&(t=t.split(/\r\n|\r|\n/g)),"number"==typeofr&&(s=r,r=null);varo="",i="Td";if(s){s*=Math.PI/180;vara=Math.cos(s),u=Math.sin(s);o=[L(a),L(u),L(-1*u),L(a),""].join(" "),i="Tm"}if(r=r||{},"noBOM"inr||(r.noBOM=!0),"autoencode"inr||(r.autoencode=!0),"string"==typeoft)t=ne(t,r);else{if(!(tinstanceofArray))thrownewError('Type of text must be string or Array. "'+t+'" is not recognized.');for(varc=t.concat(),l=[],f=c.length;f--;)l.push(ne(c.shift(),r));t=l.join(") Tj\nT* (")}returnH("BT\n/"+w+" "+x+" Tf\n"+x*k+" TL\n"+q+"\n"+o+L(e*m)+" "+L((v-n)*m)+" "+i+"\n("+t+") Tj\nET"),this},B.line=function(t,e,n,r){returnH(L(t*m)+" "+L((v-e)*m)+" m "+L(n*m)+" "+L((v-r)*m)+" l S"),this},B.lines=function(t,e,n,r,s,o){vari,a,u,c,l,f,d,w,h,y,g;for("number"==typeoft&&(p=n,n=e,e=t,t=p),r=r||[1,1],H(N(e*m)+" "+N((v-n)*m)+" m "),i=r[0],a=r[1],c=t.lengt