const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-C_aw3hQx.js","assets/index-D4mISQVM.js","assets/index-BbYcdrlh.js","assets/index-D6m9WDyY.css","assets/index-D8hG3RCP.css"])))=>i.map(i=>d[i]); import{_ as ls}from"./index-BbYcdrlh.js";function fe(i){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(i)}var or=Uint8Array,$e=Uint16Array,ha=Uint32Array,oo=new or([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),so=new or([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cs=new or([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Au=function(i,e){for(var r=new $e(31),a=0;a<31;++a)r[a]=e+=1<>>1|(ye&21845)<<1;Pn=(Pn&52428)>>>2|(Pn&13107)<<2,Pn=(Pn&61680)>>>4|(Pn&3855)<<4,fs[ye]=((Pn&65280)>>>8|(Pn&255)<<8)>>>1}var Xr=(function(i,e,r){for(var a=i.length,u=0,o=new $e(e);u>>f]=g}else for(h=new $e(a),u=0;u>>15-i[u];return h}),jn=new or(288);for(var ye=0;ye<144;++ye)jn[ye]=8;for(var ye=144;ye<256;++ye)jn[ye]=9;for(var ye=256;ye<280;++ye)jn[ye]=7;for(var ye=280;ye<288;++ye)jn[ye]=8;var fa=new or(32);for(var ye=0;ye<32;++ye)fa[ye]=5;var xl=Xr(jn,9,0),Sl=Xr(jn,9,1),_l=Xr(fa,5,0),Pl=Xr(fa,5,1),ts=function(i){for(var e=i[0],r=1;re&&(e=i[r]);return e},Br=function(i,e,r){var a=e/8>>0;return(i[a]|i[a+1]<<8)>>>(e&7)&r},es=function(i,e){var r=e/8>>0;return(i[r]|i[r+1]<<8|i[r+2]<<16)>>>(e&7)},Ns=function(i){return(i/8>>0)+(i&7&&1)},Pu=function(i,e,r){(r==null||r>i.length)&&(r=i.length);var a=new(i instanceof $e?$e:i instanceof ha?ha:or)(r-e);return a.set(i.subarray(e,r)),a},kl=function(i,e,r){var a=i.length,u=!e||r,o=!r||r.i;r||(r={}),e||(e=new or(a*3));var c=function(Y){var $=e.length;if(Y>$){var et=new or(Math.max($*2,Y));et.set(e),e=et}},h=r.f||0,f=r.p||0,g=r.b||0,b=r.l,A=r.d,S=r.m,p=r.n,O=a*8;do{if(!b){r.f=h=Br(i,f,1);var I=Br(i,f+1,3);if(f+=3,I)if(I==1)b=Sl,A=Pl,S=9,p=5;else if(I==2){var X=Br(i,f,31)+257,ot=Br(i,f+10,15)+4,lt=X+Br(i,f+5,31)+1;f+=14;for(var wt=new or(lt),tt=new or(19),R=0;RO)break;for(var F=Xr(tt,gt,1),R=0;R>>4;if(q<16)wt[R++]=q;else{var z=0,D=0;for(q==16?(D=3+Br(i,f,3),f+=2,z=wt[R-1]):q==17?(D=3+Br(i,f,7),f+=3):q==18&&(D=11+Br(i,f,127),f+=7);D--;)wt[R++]=z}}var at=wt.subarray(0,X),rt=wt.subarray(X);S=ts(at),p=ts(rt),b=Xr(at,S,1),A=Xr(rt,p,1)}else throw"invalid block type";else{var q=Ns(f)+4,_=i[q-4]|i[q-3]<<8,B=q+_;if(B>a){if(o)throw"unexpected EOF";break}u&&c(g+_),e.set(i.subarray(q,B),g),r.b=g+=_,r.p=f=B*8;continue}if(f>O)throw"unexpected EOF"}u&&c(g+131072);for(var ct=(1<>>4;if(f+=z&15,f>O)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(ht<256)e[g++]=ht;else if(ht==256){b=null;break}else{var kt=ht-254;if(ht>264){var R=ht-257,L=oo[R];kt=Br(i,f,(1<>>4;if(!j)throw"invalid distance";f+=j&15;var rt=Al[M];if(M>3){var L=so[M];rt+=es(i,f)&(1<O)throw"unexpected EOF";u&&c(g+131072);for(var W=g+kt;g>0;i[a]|=r,i[a+1]|=r>>>8},ia=function(i,e,r){r<<=e&7;var a=e/8>>0;i[a]|=r,i[a+1]|=r>>>8,i[a+2]|=r>>>16},rs=function(i,e){for(var r=[],a=0;aS&&(S=o[a].s);var p=new $e(S+1),O=ds(r[b-1],p,0);if(O>e){var a=0,I=0,q=O-e,_=1<e)I+=_-(1<>>=q;I>0;){var X=o[a].s;p[X]=0&&I;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++I)}O=e}return[new or(p),O]},ds=function(i,e,r){return i.s==-1?Math.max(ds(i.l,e,r+1),ds(i.r,e,r+1)):e[i.s]=r},iu=function(i){for(var e=i.length;e&&!i[--e];);for(var r=new $e(++e),a=0,u=i[0],o=1,c=function(f){r[a++]=f},h=1;h<=e;++h)if(i[h]==u&&h!=e)++o;else{if(!u&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(c(u),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0)}for(;o--;)c(u);o=1,u=i[h]}return[r.subarray(0,a),e]},aa=function(i,e){for(var r=0,a=0;a>>8,i[u+2]=i[u]^255,i[u+3]=i[u+1]^255;for(var o=0;o4&&!dt[cs[P-1]];--P);var z=g+5<<3,D=aa(u,jn)+aa(o,fa)+c,at=aa(u,S)+aa(o,I)+c+14+3*P+aa(tt,dt)+(2*tt[16]+3*tt[17]+7*tt[18]);if(z<=D&&z<=at)return ps(e,b,i.subarray(f,f+g));var rt,ct,Q,ft;if(cn(e,b,1+(at15&&(cn(e,b,j[R]>>>5&127),b+=j[R]>>>12)}}else rt=xl,ct=jn,Q=_l,ft=fa;for(var R=0;R255){var M=a[R]>>>18&31;ia(e,b,rt[M+257]),b+=ct[M+257],M>7&&(cn(e,b,a[R]>>>23&31),b+=oo[M]);var W=a[R]&31;ia(e,b,Q[W]),b+=ft[W],W>3&&(ia(e,b,a[R]>>>5&8191),b+=so[W])}else ia(e,b,rt[a[R]]),b+=ct[a[R]];return ia(e,b,rt[256]),b+ct[256]},Fl=new ha([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Il=function(i,e,r,a,u,o){var c=i.length,h=new or(a+c+5*(1+Math.floor(c/7e3))+u),f=h.subarray(a,h.length-u),g=0;if(!e||c<8)for(var b=0;b<=c;b+=65535){var A=b+65535;A>>13,O=S&8191,I=(1<7e3||dt>24576)&&rt>423){g=au(i,f,0,lt,wt,tt,gt,dt,P,b-P,g),dt=R=gt=0,P=b;for(var ct=0;ct<286;++ct)wt[ct]=0;for(var ct=0;ct<30;++ct)tt[ct]=0}var Q=2,ft=0,ht=O,kt=D-at&32767;if(rt>2&&z==ot(b-kt))for(var L=Math.min(p,rt)-1,j=Math.min(32767,b),M=Math.min(258,rt);kt<=j&&--ht&&D!=at;){if(i[b+Q]==i[b+Q-kt]){for(var W=0;WQ){if(Q=W,ft=kt,W>L)break;for(var Y=Math.min(kt,W-2),$=0,ct=0;ct$&&($=At,at=et)}}}D=at,at=q[D],kt+=D-at+32768&32767}if(ft){lt[dt++]=268435456|hs[Q]<<18|nu[ft];var Nt=hs[Q]&31,Ct=nu[ft]&31;gt+=oo[Nt]+so[Ct],++wt[257+Nt],++tt[Ct],F=b+Q,++R}else lt[dt++]=i[b],++wt[i[b]]}}g=au(i,f,o,lt,wt,tt,gt,dt,P,b-P,g)}return Pu(h,0,a+Ns(g)+u)},Cl=function(){var i=1,e=0;return{p:function(r){for(var a=i,u=e,o=r.length,c=0;c!=o;){for(var h=Math.min(c+5552,o);c>>8<<16|(e&255)<<8|e>>>8)+((i&255)<<23)*2}}},jl=function(i,e,r,a,u){return Il(i,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(i.length)))*1.5):12+e.mem,r,a,!0)},Ol=function(i,e,r){for(;r;++e)i[e]=r,r>>>=8},Bl=function(i,e){var r=e.level,a=r==0?0:r<6?1:r==9?3:2;i[0]=120,i[1]=a<<6|(a?32-2*a:1)},Ml=function(i){if((i[0]&15)!=8||i[0]>>>4>7||(i[0]<<8|i[1])%31)throw"invalid zlib data";if(i[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function gs(i,e){e===void 0&&(e={});var r=Cl();r.p(i);var a=jl(i,e,2,4);return Bl(a,e),Ol(a,a.length-4,r.d()),a}function El(i,e){return kl((Ml(i),i.subarray(2,-4)),e)}var Ht=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function ns(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var ve={log:ns,warn:function(i){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):ns.call(null,arguments))},error:function(i){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):ns(i))}};function is(i,e,r){var a=new XMLHttpRequest;a.open("GET",i),a.responseType="blob",a.onload=function(){Wn(a.response,e,r)},a.onerror=function(){ve.error("could not download file")},a.send()}function ou(i){var e=new XMLHttpRequest;e.open("HEAD",i,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function eo(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 oa,ms,Wn=Ht.saveAs||((typeof window>"u"?"undefined":fe(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(i,e,r){var a=Ht.URL||Ht.webkitURL,u=document.createElement("a");e=e||i.name||"download",u.download=e,u.rel="noopener",typeof i=="string"?(u.href=i,u.origin!==location.origin?ou(u.href)?is(i,e,r):eo(u,u.target="_blank"):eo(u)):(u.href=a.createObjectURL(i),setTimeout((function(){a.revokeObjectURL(u.href)}),4e4),setTimeout((function(){eo(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(i,e,r){if(e=e||i.name||"download",typeof i=="string")if(ou(i))is(i,e,r);else{var a=document.createElement("a");a.href=i,a.target="_blank",setTimeout((function(){eo(a)}))}else navigator.msSaveOrOpenBlob((function(u,o){return o===void 0?o={autoBom:!1}:fe(o)!=="object"&&(ve.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u})(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 is(i,e,r);var u=i.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||u&&o)&&(typeof FileReader>"u"?"undefined":fe(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var b=h.result;b=c?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=b:location=b,a=null},h.readAsDataURL(i)}else{var f=Ht.URL||Ht.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 ku(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 as(i,e){var r=i[0],a=i[1],u=i[2],o=i[3];r=Je(r,a,u,o,e[0],7,-680876936),o=Je(o,r,a,u,e[1],12,-389564586),u=Je(u,o,r,a,e[2],17,606105819),a=Je(a,u,o,r,e[3],22,-1044525330),r=Je(r,a,u,o,e[4],7,-176418897),o=Je(o,r,a,u,e[5],12,1200080426),u=Je(u,o,r,a,e[6],17,-1473231341),a=Je(a,u,o,r,e[7],22,-45705983),r=Je(r,a,u,o,e[8],7,1770035416),o=Je(o,r,a,u,e[9],12,-1958414417),u=Je(u,o,r,a,e[10],17,-42063),a=Je(a,u,o,r,e[11],22,-1990404162),r=Je(r,a,u,o,e[12],7,1804603682),o=Je(o,r,a,u,e[13],12,-40341101),u=Je(u,o,r,a,e[14],17,-1502002290),r=Xe(r,a=Je(a,u,o,r,e[15],22,1236535329),u,o,e[1],5,-165796510),o=Xe(o,r,a,u,e[6],9,-1069501632),u=Xe(u,o,r,a,e[11],14,643717713),a=Xe(a,u,o,r,e[0],20,-373897302),r=Xe(r,a,u,o,e[5],5,-701558691),o=Xe(o,r,a,u,e[10],9,38016083),u=Xe(u,o,r,a,e[15],14,-660478335),a=Xe(a,u,o,r,e[4],20,-405537848),r=Xe(r,a,u,o,e[9],5,568446438),o=Xe(o,r,a,u,e[14],9,-1019803690),u=Xe(u,o,r,a,e[3],14,-187363961),a=Xe(a,u,o,r,e[8],20,1163531501),r=Xe(r,a,u,o,e[13],5,-1444681467),o=Xe(o,r,a,u,e[2],9,-51403784),u=Xe(u,o,r,a,e[7],14,1735328473),r=Ke(r,a=Xe(a,u,o,r,e[12],20,-1926607734),u,o,e[5],4,-378558),o=Ke(o,r,a,u,e[8],11,-2022574463),u=Ke(u,o,r,a,e[11],16,1839030562),a=Ke(a,u,o,r,e[14],23,-35309556),r=Ke(r,a,u,o,e[1],4,-1530992060),o=Ke(o,r,a,u,e[4],11,1272893353),u=Ke(u,o,r,a,e[7],16,-155497632),a=Ke(a,u,o,r,e[10],23,-1094730640),r=Ke(r,a,u,o,e[13],4,681279174),o=Ke(o,r,a,u,e[0],11,-358537222),u=Ke(u,o,r,a,e[3],16,-722521979),a=Ke(a,u,o,r,e[6],23,76029189),r=Ke(r,a,u,o,e[9],4,-640364487),o=Ke(o,r,a,u,e[12],11,-421815835),u=Ke(u,o,r,a,e[15],16,530742520),r=Ze(r,a=Ke(a,u,o,r,e[2],23,-995338651),u,o,e[0],6,-198630844),o=Ze(o,r,a,u,e[7],10,1126891415),u=Ze(u,o,r,a,e[14],15,-1416354905),a=Ze(a,u,o,r,e[5],21,-57434055),r=Ze(r,a,u,o,e[12],6,1700485571),o=Ze(o,r,a,u,e[3],10,-1894986606),u=Ze(u,o,r,a,e[10],15,-1051523),a=Ze(a,u,o,r,e[1],21,-2054922799),r=Ze(r,a,u,o,e[8],6,1873313359),o=Ze(o,r,a,u,e[15],10,-30611744),u=Ze(u,o,r,a,e[6],15,-1560198380),a=Ze(a,u,o,r,e[13],21,1309151649),r=Ze(r,a,u,o,e[4],6,-145523070),o=Ze(o,r,a,u,e[11],10,-1120210379),u=Ze(u,o,r,a,e[2],15,718787259),a=Ze(a,u,o,r,e[9],21,-343485551),i[0]=In(r,i[0]),i[1]=In(a,i[1]),i[2]=In(u,i[2]),i[3]=In(o,i[3])}function uo(i,e,r,a,u,o){return e=In(In(e,i),In(a,o)),In(e<>>32-u,r)}function Je(i,e,r,a,u,o,c){return uo(e&r|~e&a,i,e,u,o,c)}function Xe(i,e,r,a,u,o,c){return uo(e&a|r&~a,i,e,u,o,c)}function Ke(i,e,r,a,u,o,c){return uo(e^r^a,i,e,u,o,c)}function Ze(i,e,r,a,u,o,c){return uo(r^(e|~a),i,e,u,o,c)}function Fu(i){var e,r=i.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=i.length;e+=64)as(a,ql(i.substring(e-64,e)));i=i.substring(e-64);var u=[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(u[e>>2]|=128<<(e%4<<3),e>55)for(as(a,u),e=0;e<16;e++)u[e]=0;return u[14]=8*r,as(a,u),a}function ql(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}oa=Ht.atob.bind(Ht),ms=Ht.btoa.bind(Ht);var su="0123456789abcdef".split("");function Dl(i){for(var e="",r=0;r<4;r++)e+=su[i>>8*r+4&15]+su[i>>8*r&15];return e}function Rl(i){return String.fromCharCode((255&i)>>0,(65280&i)>>8,(16711680&i)>>16,(4278190080&i)>>24)}function vs(i){return Fu(i).map(Rl).join("")}var Tl=(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 bs(i,e){var r,a,u,o;if(i!==r){for(var c=(u=i,o=1+(256/i.length>>0),new Array(o+1).join(u)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var b=h[f];g=(g+b+c.charCodeAt(f))%256,h[f]=h[g],h[g]=b}r=i,a=h}else h=a;var A=e.length,S=0,p=0,O="";for(f=0;f€/\f©þdSiz";var o=(e+this.padding).substr(0,32),c=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,c),this.P=-(1+(255^u)),this.encryptionKey=vs(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=bs(this.encryptionKey,this.padding)}function ki(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"+u.toString(16)).slice(-2):e+=i[a]}return e}function lu(i){if(fe(i)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,a,u){if(u=u||!1,typeof r!="string"||typeof a!="function"||typeof u!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var o=Math.random().toString(35);return e[r][o]=[a,!!u],o},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),u=[];for(var o in e[r]){var c=e[r][o];try{c[0].apply(i,a)}catch(h){Ht.console&&ve.error("jsPDF PubSub Error",h.message,h)}c[1]&&u.push(o)}u.length&&u.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function da(i){if(!(this instanceof da))return new da(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 Iu(i,e){this.gState=i,this.matrix=e,this.id="",this.objectNumber=-1}function Fn(i,e,r,a,u){if(!(this instanceof Fn))return new Fn(i,e,r,a,u);this.type=i==="axial"?2:3,this.coords=e,this.colors=r,Iu.call(this,a,u)}function Vn(i,e,r,a,u){if(!(this instanceof Vn))return new Vn(i,e,r,a,u);this.boundingBox=i,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,Iu.call(this,a,u)}function zt(i){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],u=arguments[2],o=arguments[3],c=[],h=1,f=16,g="S",b=null;fe(i=i||{})==="object"&&(r=i.orientation,a=i.unit||a,u=i.format||u,o=i.compress||i.compressPdf||o,(b=i.encryption||null)!==null&&(b.userPassword=b.userPassword||"",b.ownerPassword=b.ownerPassword||"",b.userPermissions=b.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"),c=i.filters||(o===!0?["FlateEncode"]:c),a=a||"mm",r=(""+(r||"P")).toLowerCase();var A=i.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=lu;var O="1.3",I=p.__private__.getPdfVersion=function(){return O};p.__private__.setPdfVersion=function(s){O=s};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(s){return q[s]};u=u||"a4";var B={COMPAT:"compat",ADVANCED:"advanced"},X=B.COMPAT;function ot(){this.saveGraphicsState(),E(new Tt(It,0,0,-It,0,pn()*It).toString()+" cm"),this.setFontSize(this.getFontSize()/It),g="n",X=B.ADVANCED}function lt(){this.restoreGraphicsState(),g="S",X=B.COMPAT}var wt=p.__private__.combineFontStyleAndFontWeight=function(s,v){if(s=="bold"&&v=="normal"||s=="bold"&&v==400||s=="normal"&&v=="italic"||s=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(s=v==400||v==="normal"?s==="italic"?"italic":"normal":v!=700&&v!=="bold"||s!=="normal"?(v==700?"bold":v)+""+s:"bold"),s};p.advancedAPI=function(s){var v=X===B.COMPAT;return v&&ot.call(this),typeof s!="function"||(s(this),v&<.call(this)),this},p.compatAPI=function(s){var v=X===B.ADVANCED;return v&<.call(this),typeof s!="function"||(s(this),v&&ot.call(this)),this},p.isAdvancedAPI=function(){return X===B.ADVANCED};var tt,R=function(s){if(X!==B.ADVANCED)throw new Error(s+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},gt=p.roundToPrecision=p.__private__.roundToPrecision=function(s,v){var C=e||v;if(isNaN(s)||isNaN(C))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return s.toFixed(C).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof f=="number"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(s,f)}:f==="smart"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(s,s>-1&&s<1?16:5)}:function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(s,16)};var dt=p.f2=p.__private__.f2=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f2");return gt(s,2)},F=p.__private__.f3=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f3");return gt(s,3)},P=p.scale=p.__private__.scale=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.scale");return X===B.COMPAT?s*It:X===B.ADVANCED?s:void 0},z=function(s){return X===B.COMPAT?pn()-s:X===B.ADVANCED?s:void 0},D=function(s){return P(z(s))};p.__private__.setPrecision=p.setPrecision=function(s){typeof parseInt(s,10)=="number"&&(e=parseInt(s,10))};var at,rt="00000000000000000000000000000000",ct=p.__private__.getFileId=function(){return rt},Q=p.__private__.setFileId=function(s){return rt=s!==void 0&&/^[a-fA-F0-9]{32}$/.test(s)?s.toUpperCase():rt.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),b!==null&&(Ge=new Pi(b.userPermissions,b.userPassword,b.ownerPassword,rt)),rt};p.setFileId=function(s){return Q(s),this},p.getFileId=function(){return ct()};var ft=p.__private__.convertDateToPDFDate=function(s){var v=s.getTimezoneOffset(),C=v<0?"+":"-",T=Math.floor(Math.abs(v/60)),J=Math.abs(v%60),st=[C,M(T),"'",M(J),"'"].join("");return["D:",s.getFullYear(),M(s.getMonth()+1),M(s.getDate()),M(s.getHours()),M(s.getMinutes()),M(s.getSeconds()),st].join("")},ht=p.__private__.convertPDFDateToDate=function(s){var v=parseInt(s.substr(2,4),10),C=parseInt(s.substr(6,2),10)-1,T=parseInt(s.substr(8,2),10),J=parseInt(s.substr(10,2),10),st=parseInt(s.substr(12,2),10),yt=parseInt(s.substr(14,2),10);return new Date(v,C,T,J,st,yt,0)},kt=p.__private__.setCreationDate=function(s){var v;if(s===void 0&&(s=new Date),s instanceof Date)v=ft(s);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(s))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=s}return at=v},L=p.__private__.getCreationDate=function(s){var v=at;return s==="jsDate"&&(v=ht(at)),v};p.setCreationDate=function(s){return kt(s),this},p.getCreationDate=function(s){return L(s)};var j,M=p.__private__.padd2=function(s){return("0"+parseInt(s)).slice(-2)},W=p.__private__.padd2Hex=function(s){return("00"+(s=s.toString())).substr(s.length)},Y=0,$=[],et=[],nt=0,At=[],Nt=[],Ct=!1,Bt=et,Ut=function(){Y=0,nt=0,et=[],$=[],At=[],Qr=Oe(),Nr=Oe()};p.__private__.setCustomOutputDestination=function(s){Ct=!0,Bt=s};var ut=function(s){Ct||(Bt=s)};p.__private__.resetCustomOutputDestination=function(){Ct=!1,Bt=et};var E=p.__private__.out=function(s){return s=s.toString(),nt+=s.length+1,Bt.push(s),Bt},Xt=p.__private__.write=function(s){return E(arguments.length===1?s.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(s){for(var v=s.length,C=new ArrayBuffer(v),T=new Uint8Array(C);v--;)T[v]=s.charCodeAt(v);return C},Lt=[["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 Lt};var xt=i.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(s){return xt=X===B.ADVANCED?s/It:s,this};var Ft,Pt=p.__private__.getFontSize=p.getFontSize=function(){return X===B.COMPAT?xt:xt*It},qt=i.R2L||!1;p.__private__.setR2L=p.setR2L=function(s){return qt=s,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Gt,Qt=p.__private__.setZoomMode=function(s){var v=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(s))Ft=s;else if(isNaN(s)){if(v.indexOf(s)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+s+'" is not recognized.');Ft=s}else Ft=parseInt(s,10)};p.__private__.getZoomMode=function(){return Ft};var te,ie=p.__private__.setPageMode=function(s){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(s)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+s+'" is not recognized.');Gt=s};p.__private__.getPageMode=function(){return Gt};var de=p.__private__.setLayoutMode=function(s){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(s)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+s+'" is not recognized.');te=s};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(s,v,C){return Qt(s),de(v),ie(C),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(s){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[s]},p.__private__.getDocumentProperties=function(){return Wt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(s){for(var v in Wt)Wt.hasOwnProperty(v)&&s[v]&&(Wt[v]=s[v]);return this},p.__private__.setDocumentProperty=function(s,v){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[s]=v};var ee,It,Ve,oe,wr,ge={},Le={},Dr=[],ue={},Bn={},Ae={},yr={},Zr=null,xe=0,Yt=[],le=new lu(p),Mn=i.hotfixes||[],He={},Rr={},Tr=[],Tt=function s(v,C,T,J,st,yt){if(!(this instanceof s))return new s(v,C,T,J,st,yt);isNaN(v)&&(v=1),isNaN(C)&&(C=0),isNaN(T)&&(T=0),isNaN(J)&&(J=1),isNaN(st)&&(st=0),isNaN(yt)&&(yt=0),this._matrix=[v,C,T,J,st,yt]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),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(s){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(s)},Tt.prototype.multiply=function(s){var v=s.sx*this.sx+s.shy*this.shx,C=s.sx*this.shy+s.shy*this.sy,T=s.shx*this.sx+s.sy*this.shx,J=s.shx*this.shy+s.sy*this.sy,st=s.tx*this.sx+s.ty*this.shx+this.tx,yt=s.tx*this.shy+s.ty*this.sy+this.ty;return new Tt(v,C,T,J,st,yt)},Tt.prototype.decompose=function(){var s=this.sx,v=this.shy,C=this.shx,T=this.sy,J=this.tx,st=this.ty,yt=Math.sqrt(s*s+v*v),jt=(s/=yt)*C+(v/=yt)*T;C-=s*jt,T-=v*jt;var Dt=Math.sqrt(C*C+T*T);return jt/=Dt,s*(T/=Dt)>16&255,T=Dt>>8&255,J=255&Dt}if(T===void 0||st===void 0&&C===T&&T===J)if(typeof C=="string")v=C+" "+yt[0];else switch(s.precision){case 2:v=dt(C/255)+" "+yt[0];break;case 3:default:v=F(C/255)+" "+yt[0]}else if(st===void 0||fe(st)==="object"){if(st&&!isNaN(st.a)&&st.a===0)return v=["1.","1.","1.",yt[1]].join(" ");if(typeof C=="string")v=[C,T,J,yt[1]].join(" ");else switch(s.precision){case 2:v=[dt(C/255),dt(T/255),dt(J/255),yt[1]].join(" ");break;default:case 3:v=[F(C/255),F(T/255),F(J/255),yt[1]].join(" ")}}else if(typeof C=="string")v=[C,T,J,st,yt[2]].join(" ");else switch(s.precision){case 2:v=[dt(C),dt(T),dt(J),dt(st),yt[2]].join(" ");break;case 3:default:v=[F(C),F(T),F(J),F(st),yt[2]].join(" ")}return v},Ur=p.__private__.getFilters=function(){return c},dr=p.__private__.putStream=function(s){var v=(s=s||{}).data||"",C=s.filters||Ur(),T=s.alreadyAppliedFilters||[],J=s.addLength1||!1,st=v.length,yt=s.objectId,jt=function(Ye){return Ye};if(b!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");b!==null&&(jt=Ge.encryptor(yt,0));var Dt={};C===!0&&(C=["FlateEncode"]);var Kt=s.additionalKeyValues||[],$t=(Dt=zt.API.processDataByFilters!==void 0?zt.API.processDataByFilters(v,C):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(Dt.data.length!==0&&(Kt.push({key:"Length",value:Dt.data.length}),J===!0&&Kt.push({key:"Length1",value:st})),$t.length!=0)if($t.split("/").length-1==1)Kt.push({key:"Filter",value:$t});else{Kt.push({key:"Filter",value:"["+$t+"]"});for(var ne=0;ne>"),Dt.data.length!==0&&(E("stream"),E(jt(Dt.data)),E("endstream"))},Hr=p.__private__.putPage=function(s){var v=s.number,C=s.data,T=s.objId,J=s.contentsObjId;ur(T,!0),E("<>"),E("endobj");var st=C.join(` `);return X===B.ADVANCED&&(st+=` Q`),ur(J,!0),dr({data:st,filters:Ur(),objectId:J}),E("endobj"),T},En=p.__private__.putPages=function(){var s,v,C=[];for(s=1;s<=xe;s++)Yt[s].objId=Oe(),Yt[s].contentsObjId=Oe();for(s=1;s<=xe;s++)C.push(Hr({number:s,data:Nt[s],objId:Yt[s].objId,contentsObjId:Yt[s].contentsObjId,mediaBox:Yt[s].mediaBox,cropBox:Yt[s].cropBox,bleedBox:Yt[s].bleedBox,trimBox:Yt[s].trimBox,artBox:Yt[s].artBox,userUnit:Yt[s].userUnit,rootDictionaryObjId:Qr,resourceDictionaryObjId:Nr}));ur(Qr,!0),E("<>"),E("endobj"),le.publish("postPutPages")},Qn=function(s){le.publish("putFont",{font:s,out:E,newObject:qe,putStream:dr}),s.isAlreadyPutted!==!0&&(s.objectNumber=qe(),E("<<"),E("/Type /Font"),E("/BaseFont /"+ki(s.postScriptName)),E("/Subtype /Type1"),typeof s.encoding=="string"&&E("/Encoding /"+s.encoding),E("/FirstChar 32"),E("/LastChar 255"),E(">>"),E("endobj"))},$n=function(){for(var s in ge)ge.hasOwnProperty(s)&&(A===!1||A===!0&&S.hasOwnProperty(s))&&Qn(ge[s])},ti=function(s){s.objectNumber=qe();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[tt(s.x),tt(s.y),tt(s.x+s.width),tt(s.y+s.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+s.matrix.toString()+"]"});var C=s.pages[1].join(` `);dr({data:C,additionalKeyValues:v,objectId:s.objectNumber}),E("endobj")},ei=function(){for(var s in He)He.hasOwnProperty(s)&&ti(He[s])},pa=function(s,v){var C,T=[],J=1/(v-1);for(C=0;C<1;C+=J)T.push(C);if(T.push(1),s[0].offset!=0){var st={offset:0,color:s[0].color};s.unshift(st)}if(s[s.length-1].offset!=1){var yt={offset:1,color:s[s.length-1].color};s.push(yt)}for(var jt="",Dt=0,Kt=0;Kts[Dt+1].offset;)Dt++;var $t=s[Dt].offset,ne=(C-$t)/(s[Dt+1].offset-$t),Ne=s[Dt].color,Se=s[Dt+1].color;jt+=W(Math.round((1-ne)*Ne[0]+ne*Se[0]).toString(16))+W(Math.round((1-ne)*Ne[1]+ne*Se[1]).toString(16))+W(Math.round((1-ne)*Ne[2]+ne*Se[2]).toString(16))}return jt.trim()},lo=function(s,v){v||(v=21);var C=qe(),T=pa(s.colors,v),J=[];J.push({key:"FunctionType",value:"0"}),J.push({key:"Domain",value:"[0.0 1.0]"}),J.push({key:"Size",value:"["+v+"]"}),J.push({key:"BitsPerSample",value:"8"}),J.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),J.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),dr({data:T,additionalKeyValues:J,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),E("endobj"),s.objectNumber=qe(),E("<< /ShadingType "+s.type),E("/ColorSpace /DeviceRGB");var st="/Coords ["+tt(parseFloat(s.coords[0]))+" "+tt(parseFloat(s.coords[1]))+" ";s.type===2?st+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3])):st+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3]))+" "+tt(parseFloat(s.coords[4]))+" "+tt(parseFloat(s.coords[5])),E(st+="]"),s.matrix&&E("/Matrix ["+s.matrix.toString()+"]"),E("/Function "+C+" 0 R"),E("/Extend [true true]"),E(">>"),E("endobj")},co=function(s,v){var C=Oe(),T=qe();v.push({resourcesOid:C,objectOid:T}),s.objectNumber=T;var J=[];J.push({key:"Type",value:"/Pattern"}),J.push({key:"PatternType",value:"1"}),J.push({key:"PaintType",value:"1"}),J.push({key:"TilingType",value:"1"}),J.push({key:"BBox",value:"["+s.boundingBox.map(tt).join(" ")+"]"}),J.push({key:"XStep",value:tt(s.xStep)}),J.push({key:"YStep",value:tt(s.yStep)}),J.push({key:"Resources",value:C+" 0 R"}),s.matrix&&J.push({key:"Matrix",value:"["+s.matrix.toString()+"]"}),dr({data:s.stream,additionalKeyValues:J,objectId:s.objectNumber}),E("endobj")},ri=function(s){var v;for(v in ue)ue.hasOwnProperty(v)&&(ue[v]instanceof Fn?lo(ue[v]):ue[v]instanceof Vn&&co(ue[v],s))},ga=function(s){for(var v in s.objectNumber=qe(),E("<<"),s)switch(v){case"opacity":E("/ca "+dt(s[v]));break;case"stroke-opacity":E("/CA "+dt(s[v]))}E(">>"),E("endobj")},ho=function(){var s;for(s in Ae)Ae.hasOwnProperty(s)&&ga(Ae[s])},Fi=function(){for(var s in E("/XObject <<"),He)He.hasOwnProperty(s)&&He[s].objectNumber>=0&&E("/"+s+" "+He[s].objectNumber+" 0 R");le.publish("putXobjectDict"),E(">>")},fo=function(){Ge.oid=qe(),E("<<"),E("/Filter /Standard"),E("/V "+Ge.v),E("/R "+Ge.r),E("/U <"+Ge.toHexString(Ge.U)+">"),E("/O <"+Ge.toHexString(Ge.O)+">"),E("/P "+Ge.P),E(">>"),E("endobj")},ma=function(){for(var s in E("/Font <<"),ge)ge.hasOwnProperty(s)&&(A===!1||A===!0&&S.hasOwnProperty(s))&&E("/"+s+" "+ge[s].objectNumber+" 0 R");E(">>")},po=function(){if(Object.keys(ue).length>0){for(var s in E("/Shading <<"),ue)ue.hasOwnProperty(s)&&ue[s]instanceof Fn&&ue[s].objectNumber>=0&&E("/"+s+" "+ue[s].objectNumber+" 0 R");le.publish("putShadingPatternDict"),E(">>")}},ni=function(s){if(Object.keys(ue).length>0){for(var v in E("/Pattern <<"),ue)ue.hasOwnProperty(v)&&ue[v]instanceof p.TilingPattern&&ue[v].objectNumber>=0&&ue[v].objectNumber>")}},go=function(){if(Object.keys(Ae).length>0){var s;for(s in E("/ExtGState <<"),Ae)Ae.hasOwnProperty(s)&&Ae[s].objectNumber>=0&&E("/"+s+" "+Ae[s].objectNumber+" 0 R");le.publish("putGStateDict"),E(">>")}},ke=function(s){ur(s.resourcesOid,!0),E("<<"),E("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ma(),po(),ni(s.objectOid),go(),Fi(),E(">>"),E("endobj")},va=function(){var s=[];$n(),ho(),ei(),ri(s),le.publish("putResources"),s.forEach(ke),ke({resourcesOid:Nr,objectOid:Number.MAX_SAFE_INTEGER}),le.publish("postPutResources")},ba=function(){le.publish("putAdditionalObjects");for(var s=0;s>8&&(Dt=!0);s=jt.join("")}for(C=s.length;Dt===void 0&&C!==0;)s.charCodeAt(C-1)>>8&&(Dt=!0),C--;if(!Dt)return s;for(jt=v.noBOM?[]:[254,255],C=0,T=s.length;C>8)>>8)throw new Error("Character at position "+C+" of string '"+s+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");jt.push($t),jt.push(Kt-($t<<8))}return String.fromCharCode.apply(void 0,jt)},er=p.__private__.pdfEscape=p.pdfEscape=function(s,v){return ii(s,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ci=p.__private__.beginPage=function(s){Nt[++xe]=[],Yt[xe]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(s[0]),topRightY:Number(s[1])}},La(xe),ut(Nt[j])},ya=function(s,v){var C,T,J;switch(r=v||r,typeof s=="string"&&(C=_(s.toLowerCase()),Array.isArray(C)&&(T=C[0],J=C[1])),Array.isArray(s)&&(T=s[0]*It,J=s[1]*It),isNaN(T)&&(T=u[0],J=u[1]),(T>14400||J>14400)&&(ve.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),T=Math.min(14400,T),J=Math.min(14400,J)),u=[T,J],r.substr(0,1)){case"l":J>T&&(u=[J,T]);break;case"p":T>J&&(u=[J,T])}Ci(u),Pa(Mi),E(_r),qi!==0&&E(qi+" J"),Di!==0&&E(Di+" j"),le.publish("addPage",{pageNumber:xe})},vo=function(s){s>0&&s<=xe&&(Nt.splice(s,1),Yt.splice(s,1),xe--,j>xe&&(j=xe),this.setPage(j))},La=function(s){s>0&&s<=xe&&(j=s)},bo=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},Na=function(s,v,C){var T,J=void 0;return C=C||{},s=s!==void 0?s:ge[ee].fontName,v=v!==void 0?v:ge[ee].fontStyle,T=s.toLowerCase(),Le[T]!==void 0&&Le[T][v]!==void 0?J=Le[T][v]:Le[s]!==void 0&&Le[s][v]!==void 0?J=Le[s][v]:C.disableWarning===!1&&ve.warn("Unable to look up font label for font '"+s+"', '"+v+"'. Refer to getFontList() for available fonts."),J||C.noFallback||(J=Le.times[v])==null&&(J=Le.times.normal),J},wo=p.__private__.putInfo=function(){var s=qe(),v=function(T){return T};for(var C in b!==null&&(v=Ge.encryptor(s,0)),E("<<"),E("/Producer ("+er(v("jsPDF "+zt.version))+")"),Wt)Wt.hasOwnProperty(C)&&Wt[C]&&E("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+er(v(Wt[C]))+")");E("/CreationDate ("+er(v(at))+")"),E(">>"),E("endobj")},ji=p.__private__.putCatalog=function(s){var v=(s=s||{}).rootDictionaryObjId||Qr;switch(qe(),E("<<"),E("/Type /Catalog"),E("/Pages "+v+" 0 R"),Ft||(Ft="fullwidth"),Ft){case"fullwidth":E("/OpenAction [3 0 R /FitH null]");break;case"fullheight":E("/OpenAction [3 0 R /FitV null]");break;case"fullpage":E("/OpenAction [3 0 R /Fit]");break;case"original":E("/OpenAction [3 0 R /XYZ null null 1]");break;default:var C=""+Ft;C.substr(C.length-1)==="%"&&(Ft=parseInt(Ft)/100),typeof Ft=="number"&&E("/OpenAction [3 0 R /XYZ null null "+dt(Ft)+"]")}switch(te||(te="continuous"),te){case"continuous":E("/PageLayout /OneColumn");break;case"single":E("/PageLayout /SinglePage");break;case"two":case"twoleft":E("/PageLayout /TwoColumnLeft");break;case"tworight":E("/PageLayout /TwoColumnRight")}Gt&&E("/PageMode /"+Gt),le.publish("putCatalog"),E(">>"),E("endobj")},yo=p.__private__.putTrailer=function(){E("trailer"),E("<<"),E("/Size "+(Y+1)),E("/Root "+Y+" 0 R"),E("/Info "+(Y-1)+" 0 R"),b!==null&&E("/Encrypt "+Ge.oid+" 0 R"),E("/ID [ <"+rt+"> <"+rt+"> ]"),E(">>")},Lo=p.__private__.putHeader=function(){E("%PDF-"+O),E("%ºß¬à")},No=p.__private__.putXRef=function(){var s="0000000000";E("xref"),E("0 "+(Y+1)),E("0000000000 65535 f ");for(var v=1;v<=Y;v++)typeof $[v]=="function"?E((s+$[v]()).slice(-10)+" 00000 n "):$[v]!==void 0?E((s+$[v]).slice(-10)+" 00000 n "):E("0000000000 00000 n ")},$r=p.__private__.buildDocument=function(){Ut(),ut(et),le.publish("buildDocument"),Lo(),En(),ba(),va(),b!==null&&fo(),wo(),ji();var s=nt;return No(),yo(),E("startxref"),E(""+s),E("%%EOF"),ut(Nt[j]),et.join(` `)},ai=p.__private__.getBlob=function(s){return new Blob([Et(s)],{type:"application/pdf"})},oi=p.output=p.__private__.output=Sr((function(s,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",s){case void 0:return $r();case"save":p.save(v.filename);break;case"arraybuffer":return Et($r());case"blob":return ai($r());case"bloburi":case"bloburl":if(Ht.URL!==void 0&&typeof Ht.URL.createObjectURL=="function")return Ht.URL&&Ht.URL.createObjectURL(ai($r()))||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 C="",T=$r();try{C=ms(T)}catch{C=ms(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+v.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ht)==="[object Window]"){var J="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",st=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(J=v.pdfObjectUrl,st="");var yt='