const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/canvg-zpqZurcc.js","assets/core-js-C6zEoSaD.js","assets/lodash-D3kF6u-c.js","assets/@babel/runtime-BanGtE2-.js","assets/raf-B8cP2cCt.js","assets/performance-now-DzowmezO.js","assets/rgbcolor-B_i-tANe.js","assets/svg-pathdata-DmAmzc8P.js","assets/stackblur-canvas-CBjRDurV.js"])))=>i.map(i=>d[i]); import{_ as ve}from"./@babel/runtime-BanGtE2-.js";import{z as Zs,u as Ju}from"./fflate-_ayOYiT1.js";const Yu="modulepreload",Xu=function(i){return"/admin/"+i},Bo={},$s=function(e,r,a){let c=Promise.resolve();if(r&&r.length>0){let l=function(g){return Promise.all(g.map(A=>Promise.resolve(A).then(N=>({status:"fulfilled",value:N}),N=>({status:"rejected",reason:N}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),f=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=l(r.map(g=>{if(g=Xu(g),g in Bo)return;Bo[g]=!0;const A=g.endsWith(".css"),N=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${N}`))return;const S=document.createElement("link");if(S.rel=A?"stylesheet":Yu,A||(S.as="script"),S.crossOrigin="",S.href=g,f&&S.setAttribute("nonce",f),document.head.appendChild(S),A)return new Promise((p,B)=>{S.addEventListener("load",p),S.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${g}`)))})}))}function s(l){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=l,window.dispatchEvent(h),!h.defaultPrevented)throw l}return c.then(l=>{for(const h of l||[])h.status==="rejected"&&s(h.reason);return e().catch(s)})};var Ut=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Vs(){Ut.console&&typeof Ut.console.log=="function"&&Ut.console.log.apply(Ut.console,arguments)}var me={log:Vs,warn:function(i){Ut.console&&(typeof Ut.console.warn=="function"?Ut.console.warn.apply(Ut.console,arguments):Vs.call(null,arguments))},error:function(i){Ut.console&&(typeof Ut.console.error=="function"?Ut.console.error.apply(Ut.console,arguments):Vs(i))}};function Gs(i,e,r){var a=new XMLHttpRequest;a.open("GET",i),a.responseType="blob",a.onload=function(){qn(a.response,e,r)},a.onerror=function(){me.error("could not download file")},a.send()}function Eo(i){var e=new XMLHttpRequest;e.open("HEAD",i,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ga(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(e)}}var ea,Qs,qn=Ut.saveAs||((typeof window>"u"?"undefined":ve(window))!=="object"||window!==Ut?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(i,e,r){var a=Ut.URL||Ut.webkitURL,c=document.createElement("a");e=e||i.name||"download",c.download=e,c.rel="noopener",typeof i=="string"?(c.href=i,c.origin!==location.origin?Eo(c.href)?Gs(i,e,r):Ga(c,c.target="_blank"):Ga(c)):(c.href=a.createObjectURL(i),setTimeout((function(){a.revokeObjectURL(c.href)}),4e4),setTimeout((function(){Ga(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(i,e,r){if(e=e||i.name||"download",typeof i=="string")if(Eo(i))Gs(i,e,r);else{var a=document.createElement("a");a.href=i,a.target="_blank",setTimeout((function(){Ga(a)}))}else navigator.msSaveOrOpenBlob((function(c,s){return s===void 0?s={autoBom:!1}:ve(s)!=="object"&&(me.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c})(i,r),e)}:function(i,e,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof i=="string")return Gs(i,e,r);var c=i.type==="application/octet-stream",s=/constructor/i.test(Ut.HTMLElement)||Ut.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||c&&s)&&(typeof FileReader>"u"?"undefined":ve(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var A=h.result;A=l?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=A:location=A,a=null},h.readAsDataURL(i)}else{var f=Ut.URL||Ut.webkitURL,g=f.createObjectURL(i);a?a.location=g:location.href=g,a=null,setTimeout((function(){f.revokeObjectURL(g)}),4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function $o(i){var e;i=i||"",this.ok=!1,i.charAt(0)=="#"&&(i=i.substr(1,6)),i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[i=(i=i.replace(/ /g,"")).toLowerCase()]||i;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],a=0;a255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function Js(i,e){var r=i[0],a=i[1],c=i[2],s=i[3];r=Xe(r,a,c,s,e[0],7,-680876936),s=Xe(s,r,a,c,e[1],12,-389564586),c=Xe(c,s,r,a,e[2],17,606105819),a=Xe(a,c,s,r,e[3],22,-1044525330),r=Xe(r,a,c,s,e[4],7,-176418897),s=Xe(s,r,a,c,e[5],12,1200080426),c=Xe(c,s,r,a,e[6],17,-1473231341),a=Xe(a,c,s,r,e[7],22,-45705983),r=Xe(r,a,c,s,e[8],7,1770035416),s=Xe(s,r,a,c,e[9],12,-1958414417),c=Xe(c,s,r,a,e[10],17,-42063),a=Xe(a,c,s,r,e[11],22,-1990404162),r=Xe(r,a,c,s,e[12],7,1804603682),s=Xe(s,r,a,c,e[13],12,-40341101),c=Xe(c,s,r,a,e[14],17,-1502002290),r=Ke(r,a=Xe(a,c,s,r,e[15],22,1236535329),c,s,e[1],5,-165796510),s=Ke(s,r,a,c,e[6],9,-1069501632),c=Ke(c,s,r,a,e[11],14,643717713),a=Ke(a,c,s,r,e[0],20,-373897302),r=Ke(r,a,c,s,e[5],5,-701558691),s=Ke(s,r,a,c,e[10],9,38016083),c=Ke(c,s,r,a,e[15],14,-660478335),a=Ke(a,c,s,r,e[4],20,-405537848),r=Ke(r,a,c,s,e[9],5,568446438),s=Ke(s,r,a,c,e[14],9,-1019803690),c=Ke(c,s,r,a,e[3],14,-187363961),a=Ke(a,c,s,r,e[8],20,1163531501),r=Ke(r,a,c,s,e[13],5,-1444681467),s=Ke(s,r,a,c,e[2],9,-51403784),c=Ke(c,s,r,a,e[7],14,1735328473),r=Ze(r,a=Ke(a,c,s,r,e[12],20,-1926607734),c,s,e[5],4,-378558),s=Ze(s,r,a,c,e[8],11,-2022574463),c=Ze(c,s,r,a,e[11],16,1839030562),a=Ze(a,c,s,r,e[14],23,-35309556),r=Ze(r,a,c,s,e[1],4,-1530992060),s=Ze(s,r,a,c,e[4],11,1272893353),c=Ze(c,s,r,a,e[7],16,-155497632),a=Ze(a,c,s,r,e[10],23,-1094730640),r=Ze(r,a,c,s,e[13],4,681279174),s=Ze(s,r,a,c,e[0],11,-358537222),c=Ze(c,s,r,a,e[3],16,-722521979),a=Ze(a,c,s,r,e[6],23,76029189),r=Ze(r,a,c,s,e[9],4,-640364487),s=Ze(s,r,a,c,e[12],11,-421815835),c=Ze(c,s,r,a,e[15],16,530742520),r=$e(r,a=Ze(a,c,s,r,e[2],23,-995338651),c,s,e[0],6,-198630844),s=$e(s,r,a,c,e[7],10,1126891415),c=$e(c,s,r,a,e[14],15,-1416354905),a=$e(a,c,s,r,e[5],21,-57434055),r=$e(r,a,c,s,e[12],6,1700485571),s=$e(s,r,a,c,e[3],10,-1894986606),c=$e(c,s,r,a,e[10],15,-1051523),a=$e(a,c,s,r,e[1],21,-2054922799),r=$e(r,a,c,s,e[8],6,1873313359),s=$e(s,r,a,c,e[15],10,-30611744),c=$e(c,s,r,a,e[6],15,-1560198380),a=$e(a,c,s,r,e[13],21,1309151649),r=$e(r,a,c,s,e[4],6,-145523070),s=$e(s,r,a,c,e[11],10,-1120210379),c=$e(c,s,r,a,e[2],15,718787259),a=$e(a,c,s,r,e[9],21,-343485551),i[0]=Nn(r,i[0]),i[1]=Nn(a,i[1]),i[2]=Nn(c,i[2]),i[3]=Nn(s,i[3])}function rs(i,e,r,a,c,s){return e=Nn(Nn(e,i),Nn(a,s)),Nn(e<>>32-c,r)}function Xe(i,e,r,a,c,s,l){return rs(e&r|~e&a,i,e,c,s,l)}function Ke(i,e,r,a,c,s,l){return rs(e&a|r&~a,i,e,c,s,l)}function Ze(i,e,r,a,c,s,l){return rs(e^r^a,i,e,c,s,l)}function $e(i,e,r,a,c,s,l){return rs(r^(e|~a),i,e,c,s,l)}function Qo(i){var e,r=i.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=i.length;e+=64)Js(a,Ku(i.substring(e-64,e)));i=i.substring(e-64);var c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=i.charCodeAt(e)<<(e%4<<3);if(c[e>>2]|=128<<(e%4<<3),e>55)for(Js(a,c),e=0;e<16;e++)c[e]=0;return c[14]=8*r,Js(a,c),a}function Ku(i){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=i.charCodeAt(e)+(i.charCodeAt(e+1)<<8)+(i.charCodeAt(e+2)<<16)+(i.charCodeAt(e+3)<<24);return r}ea=Ut.atob.bind(Ut),Qs=Ut.btoa.bind(Ut);var Mo="0123456789abcdef".split("");function Zu(i){for(var e="",r=0;r<4;r++)e+=Mo[i>>8*r+4&15]+Mo[i>>8*r&15];return e}function $u(i){return String.fromCharCode((255&i)>>0,(65280&i)>>8,(16711680&i)>>16,(4278190080&i)>>24)}function to(i){return Qo(i).map($u).join("")}var Qu=(function(i){for(var e=0;e>16)+(e>>16)+(r>>16)<<16|65535&r}return i+e&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 eo(i,e){var r,a,c,s;if(i!==r){for(var l=(c=i,s=1+(256/i.length>>0),new Array(s+1).join(c)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var A=h[f];g=(g+A+l.charCodeAt(f))%256,h[f]=h[g],h[g]=A}r=i,a=h}else h=a;var N=e.length,S=0,p=0,B="";for(f=0;f€/\f©þdSiz";var s=(e+this.padding).substr(0,32),l=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,l),this.P=-(1+(255^c)),this.encryptionKey=to(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=eo(this.encryptionKey,this.padding)}function yi(i){if(/[^\u0000-\u00ff]/.test(i))throw new Error("Invalid PDF Name Object: "+i+", Only accept ASCII characters.");for(var e="",r=i.length,a=0;a126?e+="#"+("0"+c.toString(16)).slice(-2):e+=i[a]}return e}function Do(i){if(ve(i)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,a,c){if(c=c||!1,typeof r!="string"||typeof a!="function"||typeof c!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var s=Math.random().toString(35);return e[r][s]=[a,!!c],s},this.unsubscribe=function(r){for(var a in e)if(e[a][r])return delete e[a][r],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var a=Array.prototype.slice.call(arguments,1),c=[];for(var s in e[r]){var l=e[r][s];try{l[0].apply(i,a)}catch(h){Ut.console&&me.error("jsPDF PubSub Error",h.message,h)}l[1]&&c.push(s)}c.length&&c.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function ts(i){if(!(this instanceof ts))return new ts(i);var e="opacity,stroke-opacity".split(",");for(var r in i)i.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=i[r]);this.id="",this.objectNumber=-1}function tu(i,e){this.gState=i,this.matrix=e,this.id="",this.objectNumber=-1}function Dn(i,e,r,a,c){if(!(this instanceof Dn))return new Dn(i,e,r,a,c);this.type=i==="axial"?2:3,this.coords=e,this.colors=r,tu.call(this,a,c)}function wi(i,e,r,a,c){if(!(this instanceof wi))return new wi(i,e,r,a,c);this.boundingBox=i,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,tu.call(this,a,c)}function zt(i){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],c=arguments[2],s=arguments[3],l=[],h=1,f=16,g="S",A=null;ve(i=i||{})==="object"&&(r=i.orientation,a=i.unit||a,c=i.format||c,s=i.compress||i.compressPdf||s,(A=i.encryption||null)!==null&&(A.userPassword=A.userPassword||"",A.ownerPassword=A.ownerPassword||"",A.userPermissions=A.userPermissions||[]),h=typeof i.userUnit=="number"?Math.abs(i.userUnit):1,i.precision!==void 0&&(e=i.precision),i.floatPrecision!==void 0&&(f=i.floatPrecision),g=i.defaultPathOperation||"S"),l=i.filters||(s===!0?["FlateEncode"]:l),a=a||"mm",r=(""+(r||"P")).toLowerCase();var N=i.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=Do;var B="1.3",F=p.__private__.getPdfVersion=function(){return B};p.__private__.setPdfVersion=function(o){B=o};var q={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]};p.__private__.getPageFormats=function(){return q};var _=p.__private__.getPageFormat=function(o){return q[o]};c=c||"a4";var E={COMPAT:"compat",ADVANCED:"advanced"},Z=E.COMPAT;function ot(){this.saveGraphicsState(),O(new Tt(It,0,0,-It,0,cn()*It).toString()+" cm"),this.setFontSize(this.getFontSize()/It),g="n",Z=E.ADVANCED}function dt(){this.restoreGraphicsState(),g="S",Z=E.COMPAT}var Nt=p.__private__.combineFontStyleAndFontWeight=function(o,v){if(o=="bold"&&v=="normal"||o=="bold"&&v==400||o=="normal"&&v=="italic"||o=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(o=v==400||v==="normal"?o==="italic"?"italic":"normal":v!=700&&v!=="bold"||o!=="normal"?(v==700?"bold":v)+""+o:"bold"),o};p.advancedAPI=function(o){var v=Z===E.COMPAT;return v&&ot.call(this),typeof o!="function"||(o(this),v&&dt.call(this)),this},p.compatAPI=function(o){var v=Z===E.ADVANCED;return v&&dt.call(this),typeof o!="function"||(o(this),v&&ot.call(this)),this},p.isAdvancedAPI=function(){return Z===E.ADVANCED};var nt,G=function(o){if(Z!==E.ADVANCED)throw new Error(o+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},vt=p.roundToPrecision=p.__private__.roundToPrecision=function(o,v){var C=e||v;if(isNaN(o)||isNaN(C))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return o.toFixed(C).replace(/0+$/,"")};nt=p.hpf=p.__private__.hpf=typeof f=="number"?function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(o,f)}:f==="smart"?function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(o,o>-1&&o<1?16:5)}:function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(o,16)};var bt=p.f2=p.__private__.f2=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.f2");return vt(o,2)},k=p.__private__.f3=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.f3");return vt(o,3)},I=p.scale=p.__private__.scale=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.scale");return Z===E.COMPAT?o*It:Z===E.ADVANCED?o:void 0},H=function(o){return Z===E.COMPAT?cn()-o:Z===E.ADVANCED?o:void 0},R=function(o){return I(H(o))};p.__private__.setPrecision=p.setPrecision=function(o){typeof parseInt(o,10)=="number"&&(e=parseInt(o,10))};var ut,st="00000000000000000000000000000000",mt=p.__private__.getFileId=function(){return st},tt=p.__private__.setFileId=function(o){return st=o!==void 0&&/^[a-fA-F0-9]{32}$/.test(o)?o.toUpperCase():st.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),A!==null&&(Je=new bi(A.userPermissions,A.userPassword,A.ownerPassword,st)),st};p.setFileId=function(o){return tt(o),this},p.getFileId=function(){return mt()};var pt=p.__private__.convertDateToPDFDate=function(o){var v=o.getTimezoneOffset(),C=v<0?"+":"-",D=Math.floor(Math.abs(v/60)),Y=Math.abs(v%60),it=[C,M(D),"'",M(Y),"'"].join("");return["D:",o.getFullYear(),M(o.getMonth()+1),M(o.getDate()),M(o.getHours()),M(o.getMinutes()),M(o.getSeconds()),it].join("")},ft=p.__private__.convertPDFDateToDate=function(o){var v=parseInt(o.substr(2,4),10),C=parseInt(o.substr(6,2),10)-1,D=parseInt(o.substr(8,2),10),Y=parseInt(o.substr(10,2),10),it=parseInt(o.substr(12,2),10),yt=parseInt(o.substr(14,2),10);return new Date(v,C,D,Y,it,yt,0)},Mt=p.__private__.setCreationDate=function(o){var v;if(o===void 0&&(o=new Date),o instanceof Date)v=pt(o);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(o))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=o}return ut=v},w=p.__private__.getCreationDate=function(o){var v=ut;return o==="jsDate"&&(v=ft(ut)),v};p.setCreationDate=function(o){return Mt(o),this},p.getCreationDate=function(o){return w(o)};var j,M=p.__private__.padd2=function(o){return("0"+parseInt(o)).slice(-2)},W=p.__private__.padd2Hex=function(o){return("00"+(o=o.toString())).substr(o.length)},J=0,$=[],et=[],Q=0,At=[],Lt=[],Ot=!1,jt=et,Wt=function(){J=0,Q=0,et=[],$=[],At=[],Kr=Oe(),Sr=Oe()};p.__private__.setCustomOutputDestination=function(o){Ot=!0,jt=o};var at=function(o){Ot||(jt=o)};p.__private__.resetCustomOutputDestination=function(){Ot=!1,jt=et};var O=p.__private__.out=function(o){return o=o.toString(),Q+=o.length+1,jt.push(o),jt},Kt=p.__private__.write=function(o){return O(arguments.length===1?o.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(o){for(var v=o.length,C=new ArrayBuffer(v),D=new Uint8Array(C);v--;)D[v]=o.charCodeAt(v);return C},wt=[["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]];p.__private__.getStandardFonts=function(){return wt};var xt=i.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(o){return xt=Z===E.ADVANCED?o/It:o,this};var kt,Pt=p.__private__.getFontSize=p.getFontSize=function(){return Z===E.COMPAT?xt:xt*It},qt=i.R2L||!1;p.__private__.setR2L=p.setR2L=function(o){return qt=o,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Gt,Qt=p.__private__.setZoomMode=function(o){var v=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(o))kt=o;else if(isNaN(o)){if(v.indexOf(o)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+o+'" is not recognized.');kt=o}else kt=parseInt(o,10)};p.__private__.getZoomMode=function(){return kt};var te,ie=p.__private__.setPageMode=function(o){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(o)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+o+'" is not recognized.');Gt=o};p.__private__.getPageMode=function(){return Gt};var fe=p.__private__.setLayoutMode=function(o){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(o)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+o+'" is not recognized.');te=o};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(o,v,C){return Qt(o),fe(v),ie(C),this};var Ht={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(o){if(Object.keys(Ht).indexOf(o)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ht[o]},p.__private__.getDocumentProperties=function(){return Ht},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(o){for(var v in Ht)Ht.hasOwnProperty(v)&&o[v]&&(Ht[v]=o[v]);return this},p.__private__.setDocumentProperty=function(o,v){if(Object.keys(Ht).indexOf(o)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ht[o]=v};var ee,It,Ge,se,Nr,pe={},we={},Mr=[],ue={},xn={},Ne={},Ar={},Xr=null,Ae=0,Jt=[],ce=new Do(p),Sn=i.hotfixes||[],He={},qr={},Dr=[],Tt=function o(v,C,D,Y,it,yt){if(!(this instanceof o))return new o(v,C,D,Y,it,yt);isNaN(v)&&(v=1),isNaN(C)&&(C=0),isNaN(D)&&(D=0),isNaN(Y)&&(Y=1),isNaN(it)&&(it=0),isNaN(yt)&&(yt=0),this._matrix=[v,C,D,Y,it,yt]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(o){this._matrix[0]=o}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(o){this._matrix[1]=o}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(o){this._matrix[2]=o}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(o){this._matrix[3]=o}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(o){this._matrix[4]=o}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(o){this._matrix[5]=o}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(o){this._matrix[0]=o}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(o){this._matrix[1]=o}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(o){this._matrix[2]=o}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(o){this._matrix[3]=o}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(o){this._matrix[4]=o}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(o){this._matrix[5]=o}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Tt.prototype.join=function(o){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(nt).join(o)},Tt.prototype.multiply=function(o){var v=o.sx*this.sx+o.shy*this.shx,C=o.sx*this.shy+o.shy*this.sy,D=o.shx*this.sx+o.sy*this.shx,Y=o.shx*this.shy+o.sy*this.sy,it=o.tx*this.sx+o.ty*this.shx+this.tx,yt=o.tx*this.shy+o.ty*this.sy+this.ty;return new Tt(v,C,D,Y,it,yt)},Tt.prototype.decompose=function(){var o=this.sx,v=this.shy,C=this.shx,D=this.sy,Y=this.tx,it=this.ty,yt=Math.sqrt(o*o+v*v),Ft=(o/=yt)*C+(v/=yt)*D;C-=o*Ft,D-=v*Ft;var Dt=Math.sqrt(C*C+D*D);return Ft/=Dt,o*(D/=Dt)>16&255,D=Dt>>8&255,Y=255&Dt}if(D===void 0||it===void 0&&C===D&&D===Y)if(typeof C=="string")v=C+" "+yt[0];else switch(o.precision){case 2:v=bt(C/255)+" "+yt[0];break;case 3:default:v=k(C/255)+" "+yt[0]}else if(it===void 0||ve(it)==="object"){if(it&&!isNaN(it.a)&&it.a===0)return v=["1.","1.","1.",yt[1]].join(" ");if(typeof C=="string")v=[C,D,Y,yt[1]].join(" ");else switch(o.precision){case 2:v=[bt(C/255),bt(D/255),bt(Y/255),yt[1]].join(" ");break;default:case 3:v=[k(C/255),k(D/255),k(Y/255),yt[1]].join(" ")}}else if(typeof C=="string")v=[C,D,Y,it,yt[2]].join(" ");else switch(o.precision){case 2:v=[bt(C),bt(D),bt(Y),bt(it),yt[2]].join(" ");break;case 3:default:v=[k(C),k(D),k(Y),k(it),yt[2]].join(" ")}return v},Tr=p.__private__.getFilters=function(){return l},pr=p.__private__.putStream=function(o){var v=(o=o||{}).data||"",C=o.filters||Tr(),D=o.alreadyAppliedFilters||[],Y=o.addLength1||!1,it=v.length,yt=o.objectId,Ft=function(Ye){return Ye};if(A!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");A!==null&&(Ft=Je.encryptor(yt,0));var Dt={};C===!0&&(C=["FlateEncode"]);var Zt=o.additionalKeyValues||[],Yt=(Dt=zt.API.processDataByFilters!==void 0?zt.API.processDataByFilters(v,C):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(D)?D.join(" "):D.toString());if(Dt.data.length!==0&&(Zt.push({key:"Length",value:Dt.data.length}),Y===!0&&Zt.push({key:"Length1",value:it})),Yt.length!=0)if(Yt.split("/").length-1==1)Zt.push({key:"Filter",value:Yt});else{Zt.push({key:"Filter",value:"["+Yt+"]"});for(var ne=0;ne>"),Dt.data.length!==0&&(O("stream"),O(Ft(Dt.data)),O("endstream"))},zr=p.__private__.putPage=function(o){var v=o.number,C=o.data,D=o.objId,Y=o.contentsObjId;cr(D,!0),O("<>"),O("endobj");var it=C.join(` `);return Z===E.ADVANCED&&(it+=` Q`),cr(Y,!0),pr({data:it,filters:Tr(),objectId:Y}),O("endobj"),D},_n=p.__private__.putPages=function(){var o,v,C=[];for(o=1;o<=Ae;o++)Jt[o].objId=Oe(),Jt[o].contentsObjId=Oe();for(o=1;o<=Ae;o++)C.push(zr({number:o,data:Lt[o],objId:Jt[o].objId,contentsObjId:Jt[o].contentsObjId,mediaBox:Jt[o].mediaBox,cropBox:Jt[o].cropBox,bleedBox:Jt[o].bleedBox,trimBox:Jt[o].trimBox,artBox:Jt[o].artBox,userUnit:Jt[o].userUnit,rootDictionaryObjId:Kr,resourceDictionaryObjId:Sr}));cr(Kr,!0),O("<>"),O("endobj"),ce.publish("postPutPages")},Un=function(o){ce.publish("putFont",{font:o,out:O,newObject:qe,putStream:pr}),o.isAlreadyPutted!==!0&&(o.objectNumber=qe(),O("<<"),O("/Type /Font"),O("/BaseFont /"+yi(o.postScriptName)),O("/Subtype /Type1"),typeof o.encoding=="string"&&O("/Encoding /"+o.encoding),O("/FirstChar 32"),O("/LastChar 255"),O(">>"),O("endobj"))},Hn=function(){for(var o in pe)pe.hasOwnProperty(o)&&(N===!1||N===!0&&S.hasOwnProperty(o))&&Un(pe[o])},Wn=function(o){o.objectNumber=qe();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[nt(o.x),nt(o.y),nt(o.x+o.width),nt(o.y+o.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+o.matrix.toString()+"]"});var C=o.pages[1].join(` `);pr({data:C,additionalKeyValues:v,objectId:o.objectNumber}),O("endobj")},Vn=function(){for(var o in He)He.hasOwnProperty(o)&&Wn(He[o])},ra=function(o,v){var C,D=[],Y=1/(v-1);for(C=0;C<1;C+=Y)D.push(C);if(D.push(1),o[0].offset!=0){var it={offset:0,color:o[0].color};o.unshift(it)}if(o[o.length-1].offset!=1){var yt={offset:1,color:o[o.length-1].color};o.push(yt)}for(var Ft="",Dt=0,Zt=0;Zto[Dt+1].offset;)Dt++;var Yt=o[Dt].offset,ne=(C-Yt)/(o[Dt+1].offset-Yt),Le=o[Dt].color,xe=o[Dt+1].color;Ft+=W(Math.round((1-ne)*Le[0]+ne*xe[0]).toString(16))+W(Math.round((1-ne)*Le[1]+ne*xe[1]).toString(16))+W(Math.round((1-ne)*Le[2]+ne*xe[2]).toString(16))}return Ft.trim()},ns=function(o,v){v||(v=21);var C=qe(),D=ra(o.colors,v),Y=[];Y.push({key:"FunctionType",value:"0"}),Y.push({key:"Domain",value:"[0.0 1.0]"}),Y.push({key:"Size",value:"["+v+"]"}),Y.push({key:"BitsPerSample",value:"8"}),Y.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Y.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),pr({data:D,additionalKeyValues:Y,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),O("endobj"),o.objectNumber=qe(),O("<< /ShadingType "+o.type),O("/ColorSpace /DeviceRGB");var it="/Coords ["+nt(parseFloat(o.coords[0]))+" "+nt(parseFloat(o.coords[1]))+" ";o.type===2?it+=nt(parseFloat(o.coords[2]))+" "+nt(parseFloat(o.coords[3])):it+=nt(parseFloat(o.coords[2]))+" "+nt(parseFloat(o.coords[3]))+" "+nt(parseFloat(o.coords[4]))+" "+nt(parseFloat(o.coords[5])),O(it+="]"),o.matrix&&O("/Matrix ["+o.matrix.toString()+"]"),O("/Function "+C+" 0 R"),O("/Extend [true true]"),O(">>"),O("endobj")},is=function(o,v){var C=Oe(),D=qe();v.push({resourcesOid:C,objectOid:D}),o.objectNumber=D;var Y=[];Y.push({key:"Type",value:"/Pattern"}),Y.push({key:"PatternType",value:"1"}),Y.push({key:"PaintType",value:"1"}),Y.push({key:"TilingType",value:"1"}),Y.push({key:"BBox",value:"["+o.boundingBox.map(nt).join(" ")+"]"}),Y.push({key:"XStep",value:nt(o.xStep)}),Y.push({key:"YStep",value:nt(o.yStep)}),Y.push({key:"Resources",value:C+" 0 R"}),o.matrix&&Y.push({key:"Matrix",value:"["+o.matrix.toString()+"]"}),pr({data:o.stream,additionalKeyValues:Y,objectId:o.objectNumber}),O("endobj")},Gn=function(o){var v;for(v in ue)ue.hasOwnProperty(v)&&(ue[v]instanceof Dn?ns(ue[v]):ue[v]instanceof wi&&is(ue[v],o))},na=function(o){for(var v in o.objectNumber=qe(),O("<<"),o)switch(v){case"opacity":O("/ca "+bt(o[v]));break;case"stroke-opacity":O("/CA "+bt(o[v]))}O(">>"),O("endobj")},as=function(){var o;for(o in Ne)Ne.hasOwnProperty(o)&&na(Ne[o])},Si=function(){for(var o in O("/XObject <<"),He)He.hasOwnProperty(o)&&He[o].objectNumber>=0&&O("/"+o+" "+He[o].objectNumber+" 0 R");ce.publish("putXobjectDict"),O(">>")},ss=function(){Je.oid=qe(),O("<<"),O("/Filter /Standard"),O("/V "+Je.v),O("/R "+Je.r),O("/U <"+Je.toHexString(Je.U)+">"),O("/O <"+Je.toHexString(Je.O)+">"),O("/P "+Je.P),O(">>"),O("endobj")},ia=function(){for(var o in O("/Font <<"),pe)pe.hasOwnProperty(o)&&(N===!1||N===!0&&S.hasOwnProperty(o))&&O("/"+o+" "+pe[o].objectNumber+" 0 R");O(">>")},os=function(){if(Object.keys(ue).length>0){for(var o in O("/Shading <<"),ue)ue.hasOwnProperty(o)&&ue[o]instanceof Dn&&ue[o].objectNumber>=0&&O("/"+o+" "+ue[o].objectNumber+" 0 R");ce.publish("putShadingPatternDict"),O(">>")}},Jn=function(o){if(Object.keys(ue).length>0){for(var v in O("/Pattern <<"),ue)ue.hasOwnProperty(v)&&ue[v]instanceof p.TilingPattern&&ue[v].objectNumber>=0&&ue[v].objectNumber>")}},us=function(){if(Object.keys(Ne).length>0){var o;for(o in O("/ExtGState <<"),Ne)Ne.hasOwnProperty(o)&&Ne[o].objectNumber>=0&&O("/"+o+" "+Ne[o].objectNumber+" 0 R");ce.publish("putGStateDict"),O(">>")}},Pe=function(o){cr(o.resourcesOid,!0),O("<<"),O("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ia(),os(),Jn(o.objectOid),us(),Si(),O(">>"),O("endobj")},aa=function(){var o=[];Hn(),as(),Vn(),Gn(o),ce.publish("putResources"),o.forEach(Pe),Pe({resourcesOid:Sr,objectOid:Number.MAX_SAFE_INTEGER}),ce.publish("postPutResources")},sa=function(){ce.publish("putAdditionalObjects");for(var o=0;o>8&&(Dt=!0);o=Ft.join("")}for(C=o.length;Dt===void 0&&C!==0;)o.charCodeAt(C-1)>>8&&(Dt=!0),C--;if(!Dt)return o;for(Ft=v.noBOM?[]:[254,255],C=0,D=o.length;C>8)>>8)throw new Error("Character at position "+C+" of string '"+o+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ft.push(Yt),Ft.push(Zt-(Yt<<8))}return String.fromCharCode.apply(void 0,Ft)},nr=p.__private__.pdfEscape=p.pdfEscape=function(o,v){return Yn(o,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pi=p.__private__.beginPage=function(o){Lt[++Ae]=[],Jt[Ae]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(o[0]),topRightY:Number(o[1])}},ca(Ae),at(Lt[j])},ua=function(o,v){var C,D,Y;switch(r=v||r,typeof o=="string"&&(C=_(o.toLowerCase()),Array.isArray(C)&&(D=C[0],Y=C[1])),Array.isArray(o)&&(D=o[0]*It,Y=o[1]*It),isNaN(D)&&(D=c[0],Y=c[1]),(D>14400||Y>14400)&&(me.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),D=Math.min(14400,D),Y=Math.min(14400,Y)),c=[D,Y],r.substr(0,1)){case"l":Y>D&&(c=[Y,D]);break;case"p":D>Y&&(c=[Y,D])}Pi(c),ga(Ci),O(Ir),Oi!==0&&O(Oi+" J"),Bi!==0&&O(Bi+" j"),ce.publish("addPage",{pageNumber:Ae})},ls=function(o){o>0&&o<=Ae&&(Lt.splice(o,1),Jt.splice(o,1),Ae--,j>Ae&&(j=Ae),this.setPage(j))},ca=function(o){o>0&&o<=Ae&&(j=o)},hs=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Lt.length-1},la=function(o,v,C){var D,Y=void 0;return C=C||{},o=o!==void 0?o:pe[ee].fontName,v=v!==void 0?v:pe[ee].fontStyle,D=o.toLowerCase(),we[D]!==void 0&&we[D][v]!==void 0?Y=we[D][v]:we[o]!==void 0&&we[o][v]!==void 0?Y=we[o][v]:C.disableWarning===!1&&me.warn("Unable to look up font label for font '"+o+"', '"+v+"'. Refer to getFontList() for available fonts."),Y||C.noFallback||(Y=we.times[v])==null&&(Y=we.times.normal),Y},fs=p.__private__.putInfo=function(){var o=qe(),v=function(D){return D};for(var C in A!==null&&(v=Je.encryptor(o,0)),O("<<"),O("/Producer ("+nr(v("jsPDF "+zt.version))+")"),Ht)Ht.hasOwnProperty(C)&&Ht[C]&&O("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+nr(v(Ht[C]))+")");O("/CreationDate ("+nr(v(ut))+")"),O(">>"),O("endobj")},ki=p.__private__.putCatalog=function(o){var v=(o=o||{}).rootDictionaryObjId||Kr;switch(qe(),O("<<"),O("/Type /Catalog"),O("/Pages "+v+" 0 R"),kt||(kt="fullwidth"),kt){case"fullwidth":O("/OpenAction [3 0 R /FitH null]");break;case"fullheight":O("/OpenAction [3 0 R /FitV null]");break;case"fullpage":O("/OpenAction [3 0 R /Fit]");break;case"original":O("/OpenAction [3 0 R /XYZ null null 1]");break;default:var C=""+kt;C.substr(C.length-1)==="%"&&(kt=parseInt(kt)/100),typeof kt=="number"&&O("/OpenAction [3 0 R /XYZ null null "+bt(kt)+"]")}switch(te||(te="continuous"),te){case"continuous":O("/PageLayout /OneColumn");break;case"single":O("/PageLayout /SinglePage");break;case"two":case"twoleft":O("/PageLayout /TwoColumnLeft");break;case"tworight":O("/PageLayout /TwoColumnRight")}Gt&&O("/PageMode /"+Gt),ce.publish("putCatalog"),O(">>"),O("endobj")},ds=p.__private__.putTrailer=function(){O("trailer"),O("<<"),O("/Size "+(J+1)),O("/Root "+J+" 0 R"),O("/Info "+(J-1)+" 0 R"),A!==null&&O("/Encrypt "+Je.oid+" 0 R"),O("/ID [ <"+st+"> <"+st+"> ]"),O(">>")},ps=p.__private__.putHeader=function(){O("%PDF-"+B),O("%ºß¬à")},gs=p.__private__.putXRef=function(){var o="0000000000";O("xref"),O("0 "+(J+1)),O("0000000000 65535 f ");for(var v=1;v<=J;v++)typeof $[v]=="function"?O((o+$[v]()).slice(-10)+" 00000 n "):$[v]!==void 0?O((o+$[v]).slice(-10)+" 00000 n "):O("0000000000 00000 n ")},Zr=p.__private__.buildDocument=function(){Wt(),at(et),ce.publish("buildDocument"),ps(),_n(),sa(),aa(),A!==null&&ss(),fs(),ki();var o=Q;return gs(),ds(),O("startxref"),O(""+o),O("%%EOF"),at(Lt[j]),et.join(` `)},Xn=p.__private__.getBlob=function(o){return new Blob([Et(o)],{type:"application/pdf"})},Kn=p.output=p.__private__.output=kr((function(o,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",o){case void 0:return Zr();case"save":p.save(v.filename);break;case"arraybuffer":return Et(Zr());case"blob":return Xn(Zr());case"bloburi":case"bloburl":if(Ut.URL!==void 0&&typeof Ut.URL.createObjectURL=="function")return Ut.URL&&Ut.URL.createObjectURL(Xn(Zr()))||void 0;me.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var C="",D=Zr();try{C=Qs(D)}catch{C=Qs(unescape(encodeURIComponent(D)))}return"data:application/pdf;filename="+v.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var Y="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",it=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(Y=v.pdfObjectUrl,it="");var yt='