>16)+(A>>16)+(e>>16)<<16|65535&e}return t+A&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function cf(t,A){var e,r,n,i;if(t!==e){for(var a=(n=t,i=1+(256/t.length|0),new Array(i+1).join(n)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var f=s[l];u=(u+f+a.charCodeAt(l))%256,s[l]=s[u],s[u]=f}e=t,r=s}else s=r;var p=A.length,B=0,d=0,m="";for(l=0;l/\f©þdSiz";var i=(A+this.padding).substr(0,32),a=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=lf(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=cf(this.encryptionKey,this.padding)}function La(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var A="",e=t.length,r=0;r126?"#"+("0"+n.toString(16)).slice(-2):t[r]}return A}function Sg(t){if(je(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(e)||(A[e]={});var i=Math.random().toString(35);return A[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in A)if(A[r][e])return delete A[r][e],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(e){if(A.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[e]){var a=A[e][i];try{a[0].apply(t,r)}catch(s){te.console&&Ve.error("jsPDF PubSub Error",s.message,s)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Rl(t){if(!(this instanceof Rl))return new Rl(t);var A="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&A.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function t1(t,A){this.gState=t,this.matrix=A,this.id="",this.objectNumber=-1}function Ki(t,A,e,r,n){if(!(this instanceof Ki))return new Ki(t,A,e,r,n);this.type=t==="axial"?2:3,this.coords=A,this.colors=e,t1.call(this,r,n)}function Ia(t,A,e,r,n){if(!(this instanceof Ia))return new Ia(t,A,e,r,n);this.boundingBox=t,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,t1.call(this,r,n)}function qA(t){var A,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],s=1,l=16,u="S",f=null;je(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(f=t.encryption||null)!==null&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),s=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(A=t.precision),t.floatPrecision!==void 0&&(l=t.floatPrecision),u=t.defaultPathOperation||"S"),a=t.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",e=(""+(e||"P")).toLowerCase();var p=t.putOnlyUsedFonts||!1,B={},d={internal:{},__private__:{}};d.__private__.PubSub=Sg;var m="1.3",C=d.__private__.getPdfVersion=function(){return m};d.__private__.setPdfVersion=function(h){m=h};var E={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return E};var v=d.__private__.getPageFormat=function(h){return E[h]};n=n||"a4";var H="compat",P="advanced",N=H;function j(){this.saveGraphicsState(),R(new Ae(ZA,0,0,-ZA,0,xi()*ZA).toString()+" cm"),this.setFontSize(this.getFontSize()/ZA),u="n",N=P}function J(){this.restoreGraphicsState(),u="S",N=H}var X=d.__private__.combineFontStyleAndFontWeight=function(h,b){if(h=="bold"&&b=="normal"||h=="bold"&&b==400||h=="normal"&&b=="italic"||h=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(h=b==400||b==="normal"?h==="italic"?"italic":"normal":b!=700&&b!=="bold"||h!=="normal"?(b==700?"bold":b)+""+h:"bold"),h};d.advancedAPI=function(h){var b=N===H;return b&&j.call(this),typeof h!="function"||(h(this),b&&J.call(this)),this},d.compatAPI=function(h){var b=N===P;return b&&J.call(this),typeof h!="function"||(h(this),b&&j.call(this)),this},d.isAdvancedAPI=function(){return N===P};var K,L=function(h){if(N!==P)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},q=d.roundToPrecision=d.__private__.roundToPrecision=function(h,b){var O=A||b;if(isNaN(h)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(O).replace(/0+$/,"")};K=d.hpf=d.__private__.hpf=typeof l=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return q(h,l)}:l==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return q(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return q(h,16)};var U=d.f2=d.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return q(h,2)},S=d.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return q(h,3)},G=d.scale=d.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return N===H?h*ZA:N===P?h:void 0},V=function(h){return G((function(b){return N===H?xi()-b:N===P?b:void 0})(h))};d.__private__.setPrecision=d.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(A=parseInt(h,10))};var nA,oA="00000000000000000000000000000000",lA=d.__private__.getFileId=function(){return oA},eA=d.__private__.setFileId=function(h){return oA=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():oA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),f!==null&&(at=new Ea(f.userPermissions,f.userPassword,f.ownerPassword,oA)),oA};d.setFileId=function(h){return eA(h),this},d.getFileId=function(){return lA()};var uA=d.__private__.convertDateToPDFDate=function(h){var b=h.getTimezoneOffset(),O=b<0?"+":"-",z=Math.floor(Math.abs(b/60)),AA=Math.abs(b%60),wA=[O,M(z),"'",M(AA),"'"].join("");return["D:",h.getFullYear(),M(h.getMonth()+1),M(h.getDate()),M(h.getHours()),M(h.getMinutes()),M(h.getSeconds()),wA].join("")},vA=d.__private__.convertPDFDateToDate=function(h){var b=parseInt(h.substr(2,4),10),O=parseInt(h.substr(6,2),10)-1,z=parseInt(h.substr(8,2),10),AA=parseInt(h.substr(10,2),10),wA=parseInt(h.substr(12,2),10),bA=parseInt(h.substr(14,2),10);return new Date(b,O,z,AA,wA,bA,0)},hA=d.__private__.setCreationDate=function(h){var b;if(h===void 0&&(h=new Date),h instanceof Date)b=uA(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=h}return nA=b},F=d.__private__.getCreationDate=function(h){var b=nA;return h==="jsDate"&&(b=vA(nA)),b};d.setCreationDate=function(h){return hA(h),this},d.getCreationDate=function(h){return F(h)};var k,M=d.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},W=d.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},$=0,rA=[],dA=[],fA=0,gA=[],sA=[],yA=!1,xA=dA;d.__private__.setCustomOutputDestination=function(h){yA=!0,xA=h};var cA=function(h){yA||(xA=h)};d.__private__.resetCustomOutputDestination=function(){yA=!1,xA=dA};var R=d.__private__.out=function(h){return h=h.toString(),fA+=h.length+1,xA.push(h),xA},me=d.__private__.write=function(h){return R(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},le=d.__private__.getArrayBuffer=function(h){for(var b=h.length,O=new ArrayBuffer(b),z=new Uint8Array(O);b--;)z[b]=h.charCodeAt(b);return O},zA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return zA};var QA=t.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(h){return QA=N===P?h/ZA:h,this};var KA,IA=d.__private__.getFontSize=d.getFontSize=function(){return N===H?QA:QA*ZA},ce=t.R2L||!1;d.__private__.setR2L=d.setR2L=function(h){return ce=h,this},d.__private__.getR2L=d.getR2L=function(){return ce};var WA,ye=d.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))KA=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');KA=h}else KA=parseInt(h,10)};d.__private__.getZoomMode=function(){return KA};var re,ne=d.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');WA=h};d.__private__.getPageMode=function(){return WA};var Ee=d.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');re=h};d.__private__.getLayoutMode=function(){return re},d.__private__.setDisplayMode=d.setDisplayMode=function(h,b,O){return ye(h),Ee(b),ne(O),this};var ue={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(h){if(Object.keys(ue).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ue[h]},d.__private__.getDocumentProperties=function(){return ue},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(h){for(var b in ue)ue.hasOwnProperty(b)&&h[b]&&(ue[b]=h[b]);return this},d.__private__.setDocumentProperty=function(h,b){if(Object.keys(ue).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ue[h]=b};var GA,ZA,VA,ke,Fe,OA={},ie={},Ie=[],XA={},ve={},ae={},Me={},Xe=null,Se=0,ee=[],Ue=new Sg(d),gi=t.hotfixes||[],Mt={},fn={},zr=[],Ae=function h(b,O,z,AA,wA,bA){if(!(this instanceof h))return new h(b,O,z,AA,wA,bA);isNaN(b)&&(b=1),isNaN(O)&&(O=0),isNaN(z)&&(z=0),isNaN(AA)&&(AA=1),isNaN(wA)&&(wA=0),isNaN(bA)&&(bA=0),this._matrix=[b,O,z,AA,wA,bA]};Object.defineProperty(Ae.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Ae.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Ae.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Ae.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Ae.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Ae.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Ae.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Ae.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Ae.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Ae.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Ae.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Ae.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Ae.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ae.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ae.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ae.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ae.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(h)},Ae.prototype.multiply=function(h){var b=h.sx*this.sx+h.shy*this.shx,O=h.sx*this.shy+h.shy*this.sy,z=h.shx*this.sx+h.sy*this.shx,AA=h.shx*this.shy+h.sy*this.sy,wA=h.tx*this.sx+h.ty*this.shx+this.tx,bA=h.tx*this.shy+h.ty*this.sy+this.ty;return new Ae(b,O,z,AA,wA,bA)},Ae.prototype.decompose=function(){var h=this.sx,b=this.shy,O=this.shx,z=this.sy,AA=this.tx,wA=this.ty,bA=Math.sqrt(h*h+b*b),DA=(h/=bA)*O+(b/=bA)*z;O-=h*DA,z-=b*DA;var MA=Math.sqrt(O*O+z*z);return DA/=MA,h*(z/=MA)>16&255,z=MA>>8&255,AA=255&MA}if(z===void 0||wA===void 0&&O===z&&z===AA)b=typeof O=="string"?O+" "+bA[0]:h.precision===2?U(O/255)+" "+bA[0]:S(O/255)+" "+bA[0];else if(wA===void 0||je(wA)==="object"){if(wA&&!isNaN(wA.a)&&wA.a===0)return["1.","1.","1.",bA[1]].join(" ");b=typeof O=="string"?[O,z,AA,bA[1]].join(" "):h.precision===2?[U(O/255),U(z/255),U(AA/255),bA[1]].join(" "):[S(O/255),S(z/255),S(AA/255),bA[1]].join(" ")}else b=typeof O=="string"?[O,z,AA,wA,bA[2]].join(" "):h.precision===2?[U(O),U(z),U(AA),U(wA),bA[2]].join(" "):[S(O),S(z),S(AA),S(wA),bA[2]].join(" ");return b},Tr=d.__private__.getFilters=function(){return a},br=d.__private__.putStream=function(h){var b=(h=h||{}).data||"",O=h.filters||Tr(),z=h.alreadyAppliedFilters||[],AA=h.addLength1||!1,wA=b.length,bA=h.objectId,DA=function(bt){return bt};if(f!==null&&bA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");f!==null&&(DA=at.encryptor(bA,0));var MA={};O===!0&&(O=["FlateEncode"]);var se=h.additionalKeyValues||[],he=(MA=qA.API.processDataByFilters!==void 0?qA.API.processDataByFilters(b,O):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(z)?z.join(" "):z.toString());if(MA.data.length!==0&&(se.push({key:"Length",value:MA.data.length}),AA===!0&&se.push({key:"Length1",value:wA})),he.length!=0)if(he.split("/").length-1==1)se.push({key:"Filter",value:he});else{se.push({key:"Filter",value:"["+he+"]"});for(var Le=0;Le>"),MA.data.length!==0&&(R("stream"),R(DA(MA.data)),R("endstream"))},Bi=d.__private__.putPage=function(h){var b=h.number,O=h.data,z=h.objId,AA=h.contentsObjId;Ht(z,!0),R("<>"),R("endobj");var wA=O.join(`
`);return N===P&&(wA+=`
Q`),Ht(AA,!0),br({data:wA,filters:Tr(),objectId:AA}),R("endobj"),z},Jr=d.__private__.putPages=function(){var h,b,O=[];for(h=1;h<=Se;h++)ee[h].objId=Lt(),ee[h].contentsObjId=Lt();for(h=1;h<=Se;h++)O.push(Bi({number:h,data:sA[h],objId:ee[h].objId,contentsObjId:ee[h].contentsObjId,mediaBox:ee[h].mediaBox,cropBox:ee[h].cropBox,bleedBox:ee[h].bleedBox,trimBox:ee[h].trimBox,artBox:ee[h].artBox,userUnit:ee[h].userUnit,rootDictionaryObjId:Tn,resourceDictionaryObjId:Nr}));Ht(Tn,!0),R("<>"),R("endobj"),Ue.publish("postPutPages")},wi=function(h){Ue.publish("putFont",{font:h,out:R,newObject:et,putStream:br}),h.isAlreadyPutted!==!0&&(h.objectNumber=et(),R("<<"),R("/Type /Font"),R("/BaseFont /"+La(h.postScriptName)),R("/Subtype /Type1"),typeof h.encoding=="string"&&R("/Encoding /"+h.encoding),R("/FirstChar 32"),R("/LastChar 255"),R(">>"),R("endobj"))},ta=function(h){h.objectNumber=et();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[K(h.x),K(h.y),K(h.x+h.width),K(h.y+h.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var O=h.pages[1].join(`
`);br({data:O,additionalKeyValues:b,objectId:h.objectNumber}),R("endobj")},ra=function(h,b){b||(b=21);var O=et(),z=(function(bA,DA){var MA,se=[],he=1/(DA-1);for(MA=0;MA<1;MA+=he)se.push(MA);if(se.push(1),bA[0].offset!=0){var Le={offset:0,color:bA[0].color};bA.unshift(Le)}if(bA[bA.length-1].offset!=1){var At={offset:1,color:bA[bA.length-1].color};bA.push(At)}for(var Bt="",qe=0,bt=0;btbA[qe+1].offset;)qe++;var wt=bA[qe].offset,Nt=(MA-wt)/(bA[qe+1].offset-wt),Fr=bA[qe].color,er=bA[qe+1].color;Bt+=W(Math.round((1-Nt)*Fr[0]+Nt*er[0]).toString(16))+W(Math.round((1-Nt)*Fr[1]+Nt*er[1]).toString(16))+W(Math.round((1-Nt)*Fr[2]+Nt*er[2]).toString(16))}return Bt.trim()})(h.colors,b),AA=[];AA.push({key:"FunctionType",value:"0"}),AA.push({key:"Domain",value:"[0.0 1.0]"}),AA.push({key:"Size",value:"["+b+"]"}),AA.push({key:"BitsPerSample",value:"8"}),AA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),AA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),br({data:z,additionalKeyValues:AA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:O}),R("endobj"),h.objectNumber=et(),R("<< /ShadingType "+h.type),R("/ColorSpace /DeviceRGB");var wA="/Coords ["+K(parseFloat(h.coords[0]))+" "+K(parseFloat(h.coords[1]))+" ";h.type===2?wA+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3])):wA+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3]))+" "+K(parseFloat(h.coords[4]))+" "+K(parseFloat(h.coords[5])),R(wA+="]"),h.matrix&&R("/Matrix ["+h.matrix.toString()+"]"),R("/Function "+O+" 0 R"),R("/Extend [true true]"),R(">>"),R("endobj")},na=function(h,b){var O=Lt(),z=et();b.push({resourcesOid:O,objectOid:z}),h.objectNumber=z;var AA=[];AA.push({key:"Type",value:"/Pattern"}),AA.push({key:"PatternType",value:"1"}),AA.push({key:"PaintType",value:"1"}),AA.push({key:"TilingType",value:"1"}),AA.push({key:"BBox",value:"["+h.boundingBox.map(K).join(" ")+"]"}),AA.push({key:"XStep",value:K(h.xStep)}),AA.push({key:"YStep",value:K(h.yStep)}),AA.push({key:"Resources",value:O+" 0 R"}),h.matrix&&AA.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),br({data:h.stream,additionalKeyValues:AA,objectId:h.objectNumber}),R("endobj")},ic=function(h){for(var b in h.objectNumber=et(),R("<<"),h)switch(b){case"opacity":R("/ca "+U(h[b]));break;case"stroke-opacity":R("/CA "+U(h[b]))}R(">>"),R("endobj")},Ra=function(h){Ht(h.resourcesOid,!0),R("<<"),R("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in R("/Font <<"),OA)OA.hasOwnProperty(b)&&(p===!1||p===!0&&B.hasOwnProperty(b))&&R("/"+b+" "+OA[b].objectNumber+" 0 R");R(">>")})(),(function(){if(Object.keys(XA).length>0){for(var b in R("/Shading <<"),XA)XA.hasOwnProperty(b)&&XA[b]instanceof Ki&&XA[b].objectNumber>=0&&R("/"+b+" "+XA[b].objectNumber+" 0 R");Ue.publish("putShadingPatternDict"),R(">>")}})(),(function(b){if(Object.keys(XA).length>0){for(var O in R("/Pattern <<"),XA)XA.hasOwnProperty(O)&&XA[O]instanceof d.TilingPattern&&XA[O].objectNumber>=0&&XA[O].objectNumber>")}})(h.objectOid),(function(){if(Object.keys(ae).length>0){var b;for(b in R("/ExtGState <<"),ae)ae.hasOwnProperty(b)&&ae[b].objectNumber>=0&&R("/"+b+" "+ae[b].objectNumber+" 0 R");Ue.publish("putGStateDict"),R(">>")}})(),(function(){for(var b in R("/XObject <<"),Mt)Mt.hasOwnProperty(b)&&Mt[b].objectNumber>=0&&R("/"+b+" "+Mt[b].objectNumber+" 0 R");Ue.publish("putXobjectDict"),R(">>")})(),R(">>"),R("endobj")},zs=function(h){ie[h.fontName]=ie[h.fontName]||{},ie[h.fontName][h.fontStyle]=h.id},Xs=function(h,b,O,z,AA){var wA={id:"F"+(Object.keys(OA).length+1).toString(10),postScriptName:h,fontName:b,fontStyle:O,encoding:z,isStandardFont:AA||!1,metadata:{}};return Ue.publish("addFont",{font:wA,instance:this}),OA[wA.id]=wA,zs(wA),wA.id},yr=d.__private__.pdfEscape=d.pdfEscape=function(h,b){return(function(O,z){var AA,wA,bA,DA,MA,se,he,Le,At;if(bA=(z=z||{}).sourceEncoding||"Unicode",MA=z.outputEncoding,(z.autoencode||MA)&&OA[GA].metadata&&OA[GA].metadata[bA]&&OA[GA].metadata[bA].encoding&&(DA=OA[GA].metadata[bA].encoding,!MA&&OA[GA].encoding&&(MA=OA[GA].encoding),!MA&&DA.codePages&&(MA=DA.codePages[0]),typeof MA=="string"&&(MA=DA[MA]),MA)){for(he=!1,se=[],AA=0,wA=O.length;AA>8&&(he=!0);O=se.join("")}for(AA=O.length;he===void 0&&AA!==0;)O.charCodeAt(AA-1)>>8&&(he=!0),AA--;if(!he)return O;for(se=z.noBOM?[]:[254,255],AA=0,wA=O.length;AA>8)>>8)throw new Error("Character at position "+AA+" of string '"+O+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");se.push(At),se.push(Le-(At<<8))}return String.fromCharCode.apply(void 0,se)})(h,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ma=d.__private__.beginPage=function(h){sA[++Se]=[],ee[Se]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Ys(Se),cA(sA[k])},Js=function(h,b){var O,z,AA;switch(e=b||e,typeof h=="string"&&(O=v(h.toLowerCase()),Array.isArray(O)&&(z=O[0],AA=O[1])),Array.isArray(h)&&(z=h[0]*ZA,AA=h[1]*ZA),isNaN(z)&&(z=n[0],AA=n[1]),(z>14400||AA>14400)&&(Ve.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),z=Math.min(14400,z),AA=Math.min(14400,AA)),n=[z,AA],e.substr(0,1)){case"l":AA>z&&(n=[AA,z]);break;case"p":z>AA&&(n=[AA,z])}Ma(n),dc(qa),R(aa),za!==0&&R(za+" J"),Xa!==0&&R(Xa+" j"),Ue.publish("addPage",{pageNumber:Se})},Ka=function(h){h>0&&h<=Se&&(sA.splice(h,1),ee.splice(h,1),Se--,k>Se&&(k=Se),this.setPage(k))},Ys=function(h){h>0&&h<=Se&&(k=h)},$s=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return sA.length-1},Zs=function(h,b,O){var z,AA=void 0;return O=O||{},h=h!==void 0?h:OA[GA].fontName,b=b!==void 0?b:OA[GA].fontStyle,z=h.toLowerCase(),ie[z]!==void 0&&ie[z][b]!==void 0?AA=ie[z][b]:ie[h]!==void 0&&ie[h][b]!==void 0?AA=ie[h][b]:O.disableWarning===!1&&Ve.warn("Unable to look up font label for font '"+h+"', '"+b+"'. Refer to getFontList() for available fonts."),AA||O.noFallback||(AA=ie.times[b])==null&&(AA=ie.times.normal),AA},ia=d.__private__.putInfo=function(){var h=et(),b=function(z){return z};for(var O in f!==null&&(b=at.encryptor(h,0)),R("<<"),R("/Producer ("+yr(b("jsPDF "+qA.version))+")"),ue)ue.hasOwnProperty(O)&&ue[O]&&R("/"+O.substr(0,1).toUpperCase()+O.substr(1)+" ("+yr(b(ue[O]))+")");R("/CreationDate ("+yr(b(nA))+")"),R(">>"),R("endobj")},ac=d.__private__.putCatalog=function(h){var b=(h=h||{}).rootDictionaryObjId||Tn;switch(et(),R("<<"),R("/Type /Catalog"),R("/Pages "+b+" 0 R"),KA||(KA="fullwidth"),KA){case"fullwidth":R("/OpenAction [3 0 R /FitH null]");break;case"fullheight":R("/OpenAction [3 0 R /FitV null]");break;case"fullpage":R("/OpenAction [3 0 R /Fit]");break;case"original":R("/OpenAction [3 0 R /XYZ null null 1]");break;default:var O=""+KA;O.substr(O.length-1)==="%"&&(KA=parseInt(KA)/100),typeof KA=="number"&&R("/OpenAction [3 0 R /XYZ null null "+U(KA)+"]")}switch(re||(re="continuous"),re){case"continuous":R("/PageLayout /OneColumn");break;case"single":R("/PageLayout /SinglePage");break;case"two":case"twoleft":R("/PageLayout /TwoColumnLeft");break;case"tworight":R("/PageLayout /TwoColumnRight")}WA&&R("/PageMode /"+WA),Ue.publish("putCatalog"),R(">>"),R("endobj")},pt=d.__private__.putTrailer=function(){R("trailer"),R("<<"),R("/Size "+($+1)),R("/Root "+$+" 0 R"),R("/Info "+($-1)+" 0 R"),f!==null&&R("/Encrypt "+at.oid+" 0 R"),R("/ID [ <"+oA+"> <"+oA+"> ]"),R(">>")},Ao=d.__private__.putHeader=function(){R("%PDF-"+m),R("%ºß¬à")},eo=d.__private__.putXRef=function(){var h="0000000000";R("xref"),R("0 "+($+1)),R("0000000000 65535 f ");for(var b=1;b<=$;b++)typeof rA[b]=="function"?R((h+rA[b]()).slice(-10)+" 00000 n "):rA[b]!==void 0?R((h+rA[b]).slice(-10)+" 00000 n "):R("0000000000 00000 n ")},gn=d.__private__.buildDocument=function(){var h;$=0,fA=0,dA=[],rA=[],gA=[],Tn=Lt(),Nr=Lt(),cA(dA),Ue.publish("buildDocument"),Ao(),Jr(),(function(){Ue.publish("putAdditionalObjects");for(var O=0;O"),R("/O <"+at.toHexString(at.O)+">"),R("/P "+at.P),R(">>"),R("endobj")),ia(),ac();var b=fA;return eo(),pt(),R("startxref"),R(""+b),R("%%EOF"),cA(sA[k]),dA.join(`
`)},mi=d.__private__.getBlob=function(h){return new Blob([le(h)],{type:"application/pdf"})},Dr=d.output=d.__private__.output=(Cr=function(h,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",h){case void 0:return gn();case"save":d.save(b.filename);break;case"arraybuffer":return le(gn());case"blob":return mi(gn());case"bloburi":case"bloburl":if(te.URL!==void 0&&typeof te.URL.createObjectURL=="function")return te.URL&&te.URL.createObjectURL(mi(gn()))||void 0;Ve.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var O="",z=gn();try{O=Lg(z)}catch{O=Lg(unescape(encodeURIComponent(z)))}return"data:application/pdf;filename="+b.filename+";base64,"+O;case"pdfobjectnewwindow":if(Object.prototype.toString.call(te)==="[object Window]"){var AA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",wA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(AA=b.pdfObjectUrl,wA="");var bA='