const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-rBRBBWHB.js","assets/comparison-DdwL-fbx.js","assets/financial-core-C_85DMsm.js","assets/core-services-C5m_3GXM.js","assets/html2canvas-OkJIQ-sN.js","assets/comparison-DdPMBm6V.css"])))=>i.map(i=>d[i]); var Lh=Object.defineProperty;var Sh=(r,e,t)=>e in r?Lh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var we=(r,e,t)=>Sh(r,typeof e!="symbol"?e+"":e,t);import{_ as lo}from"./core-services-C5m_3GXM.js";function ye(r){"@babel/helpers - typeof";return ye=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},ye(r)}var tn=Uint8Array,Mr=Uint16Array,zo=Int32Array,Ho=new tn([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]),Wo=new tn([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]),Ml=new tn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xu=function(r,e){for(var t=new Mr(31),i=0;i<31;++i)t[i]=e+=1<>1|(Ee&21845)<<1;Kn=(Kn&52428)>>2|(Kn&13107)<<2,Kn=(Kn&61680)>>4|(Kn&3855)<<4,Eo[Ee]=((Kn&65280)>>8|(Kn&255)<<8)>>1}var ka=(function(r,e,t){for(var i=r.length,s=0,a=new Mr(e);s>h]=d}else for(l=new Mr(i),s=0;s>15-r[s]);return l}),wi=new tn(288);for(var Ee=0;Ee<144;++Ee)wi[Ee]=8;for(var Ee=144;Ee<256;++Ee)wi[Ee]=9;for(var Ee=256;Ee<280;++Ee)wi[Ee]=7;for(var Ee=280;Ee<288;++Ee)wi[Ee]=8;var _s=new tn(32);for(var Ee=0;Ee<32;++Ee)_s[Ee]=5;var Ih=ka(wi,9,0),Ch=ka(_s,5,0),Zu=function(r){return(r+7)/8|0},Fh=function(r,e,t){return(t==null||t>r.length)&&(t=r.length),new tn(r.subarray(e,t))},En=function(r,e,t){t<<=e&7;var i=e/8|0;r[i]|=t,r[i+1]|=t>>8},La=function(r,e,t){t<<=e&7;var i=e/8|0;r[i]|=t,r[i+1]|=t>>8,r[i+2]|=t>>16},uo=function(r,e){for(var t=[],i=0;ik&&(k=a[i].s);var p=new Mr(k+1),O=Oo(t[m-1],p,0);if(O>e){var i=0,C=0,M=O-e,S=1<e)C+=S-(1<>=M;C>0;){var V=a[i].s;p[V]=0&&C;--i){var D=a[i].s;p[D]==e&&(--p[D],++C)}O=e}return{t:new tn(p),l:O}},Oo=function(r,e,t){return r.s==-1?Math.max(Oo(r.l,e,t+1),Oo(r.r,e,t+1)):e[r.s]=t},Tl=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new Mr(++e),i=0,s=r[0],a=1,c=function(h){t[i++]=h},l=1;l<=e;++l)if(r[l]==s&&l!=e)++a;else{if(!s&&a>2){for(;a>138;a-=138)c(32754);a>2&&(c(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(c(s),--a;a>6;a-=6)c(8304);a>2&&(c(a-3<<5|8208),a=0)}for(;a--;)c(s);a=1,s=r[l]}return{c:t.subarray(0,i),n:e}},Sa=function(r,e){for(var t=0,i=0;i>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var a=0;a4&&!et[Ml[E-1]];--E);var H=d+5<<3,U=Sa(s,wi)+Sa(a,_s)+c,nt=Sa(s,k)+Sa(a,C)+c+14+3*E+Sa(st,et)+2*st[16]+3*st[17]+7*st[18];if(h>=0&&H<=U&&H<=nt)return Qu(e,m,r.subarray(h,h+d));var ft,dt,rt,ht;if(En(e,m,1+(nt15&&(En(e,m,j[X]>>5&127),m+=j[X]>>12)}}else ft=Ih,dt=wi,rt=Ch,ht=_s;for(var X=0;X255){var R=W>>18&31;La(e,m,ft[R+257]),m+=dt[R+257],R>7&&(En(e,m,W>>23&31),m+=Ho[R]);var J=W&31;La(e,m,rt[J]),m+=ht[J],J>3&&(La(e,m,W>>5&8191),m+=Wo[J])}else La(e,m,ft[W]),m+=dt[W]}return La(e,m,ft[256]),m+dt[256]},Eh=new zo([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tf=new tn(0),Oh=function(r,e,t,i,s,a){var c=a.z||r.length,l=new tn(i+c+5*(1+Math.ceil(c/7e3))+s),h=l.subarray(i,l.length-s),d=a.l,m=(a.r||0)&7;if(e){m&&(h[0]=a.r>>3);for(var _=Eh[e-1],k=_>>13,p=_&8191,O=(1<7e3||et>24576)&&(ft>423||!d)){m=Dl(r,h,0,D,at,vt,X,et,E,T-E,m),et=st=X=0,E=T;for(var dt=0;dt<286;++dt)at[dt]=0;for(var dt=0;dt<30;++dt)vt[dt]=0}var rt=2,ht=0,Nt=p,yt=U-nt&32767;if(ft>2&&H==V(T-yt))for(var x=Math.min(k,ft)-1,j=Math.min(32767,T),R=Math.min(258,ft);yt<=j&&--Nt&&U!=nt;){if(r[T+rt]==r[T+rt-yt]){for(var W=0;Wrt){if(rt=W,ht=yt,W>x)break;for(var J=Math.min(yt,W-2),Z=0,dt=0;dtZ&&(Z=mt,nt=lt)}}}U=nt,nt=C[U],yt+=U-nt&32767}if(ht){D[et++]=268435456|Fo[rt]<<18|Rl[ht];var At=Fo[rt]&31,kt=Rl[ht]&31;X+=Ho[At]+Wo[kt],++at[257+At],++vt[kt],N=T+rt,++st}else D[et++]=r[T],++at[r[T]]}}for(T=Math.max(T,N);T=c&&(h[m/8|0]=d,Pt=c),m=Qu(h,m+1,r.subarray(T,Pt))}a.i=c}return Fh(l,0,i+Zu(m)+s)},ef=function(){var r=1,e=0;return{p:function(t){for(var i=r,s=e,a=t.length|0,c=0;c!=a;){for(var l=Math.min(c+2655,a);c>16),s=(s&65535)+15*(s>>16)}r=i,e=s},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},jh=function(r,e,t,i,s){if(!s&&(s={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),c=new tn(a.length+r.length);c.set(a),c.set(r,a.length),r=c,s.w=a.length}return Oh(r,e.level==null?6:e.level,e.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,i,s)},rf=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},Bh=function(r,e){var t=e.level,i=t==0?0:t<6?1:t==9?3:2;if(r[0]=120,r[1]=i<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var s=ef();s.p(e.dictionary),rf(r,2,s.d())}};function jo(r,e){e||(e={});var t=ef();t.p(r);var i=jh(r,e,e.dictionary?6:2,4);return Bh(i,e),rf(i,i.length-4,t.d()),i}var Mh=typeof TextDecoder<"u"&&new TextDecoder,Rh=0;try{Mh.decode(tf,{stream:!0}),Rh=1}catch{}function Th(r){if(Array.isArray(r))return r}function Dh(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,s,a,c,l=[],h=!0,d=!1;try{if(a=(t=t.call(r)).next,e!==0)for(;!(h=(i=a.call(t)).done)&&(l.push(i.value),l.length!==e);h=!0);}catch(m){d=!0,s=m}finally{try{if(!h&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(d)throw s}}return l}}function ql(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=Array(e);t{const r=new Uint8Array(4),e=new Uint32Array(r.buffer);return!((e[0]=1)&r[0])})(),fo={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Vo{constructor(e=Wh,t={}){we(this,"buffer");we(this,"byteLength");we(this,"byteOffset");we(this,"length");we(this,"offset");we(this,"lastWrittenByte");we(this,"littleEndian");we(this,"_data");we(this,"_mark");we(this,"_marks");let i=!1;typeof e=="number"?e=new ArrayBuffer(e):(i=!0,this.lastWrittenByte=e.byteLength);const s=t.offset?t.offset>>>0:0,a=e.byteLength-s;let c=s;(ArrayBuffer.isView(e)||e instanceof Vo)&&(e.byteLength!==e.buffer.byteLength&&(c=e.byteOffset+s),e=e.buffer),i?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=e,this.length=a,this.byteLength=a,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,a),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const i=(this.offset+e)*2,s=new Uint8Array(i);s.set(new Uint8Array(this.buffer)),this.buffer=s.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const i=fo[t].BYTES_PER_ELEMENT*e,s=this.byteOffset+this.offset,a=this.buffer.slice(s,s+i);if(this.littleEndian===Vh&&t!=="uint8"&&t!=="int8"){const l=new Uint8Array(this.buffer.slice(s,s+i));l.reverse();const h=new fo[t](l.buffer);return this.offset+=i,h.reverse(),h}const c=new fo[t](a);return this.offset+=i,c}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let i=0;ithis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Xi(r){let e=r.length;for(;--e>=0;)r[e]=0}const Gh=3,Yh=258,nf=29,Jh=256,Kh=Jh+1+nf,af=30,Xh=512,$h=new Array((Kh+2)*2);Xi($h);const Zh=new Array(af*2);Xi(Zh);const Qh=new Array(Xh);Xi(Qh);const tc=new Array(Yh-Gh+1);Xi(tc);const ec=new Array(nf);Xi(ec);const rc=new Array(af);Xi(rc);const nc=(r,e,t,i)=>{let s=r&65535|0,a=r>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do s=s+e[i++]|0,a=a+s|0;while(--c);s%=65521,a%=65521}return s|a<<16|0};var Bo=nc;const ic=()=>{let r,e=[];for(var t=0;t<256;t++){r=t;for(var i=0;i<8;i++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e},ac=new Uint32Array(ic()),sc=(r,e,t,i)=>{const s=ac,a=i+t;r^=-1;for(let c=i;c>>8^s[(r^e[c])&255];return r^-1};var pn=sc,Mo={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},sf={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const oc=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);var lc=function(r){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)oc(t,i)&&(r[i]=t[i])}}return r},uc=r=>{let e=0;for(let i=0,s=r.length;i=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;Ia[254]=Ia[254]=1;var fc=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let e,t,i,s,a,c=r.length,l=0;for(s=0;s>>6,e[a++]=128|t&63):t<65536?(e[a++]=224|t>>>12,e[a++]=128|t>>>6&63,e[a++]=128|t&63):(e[a++]=240|t>>>18,e[a++]=128|t>>>12&63,e[a++]=128|t>>>6&63,e[a++]=128|t&63);return e};const hc=(r,e)=>{if(e<65534&&r.subarray&&lf)return String.fromCharCode.apply(null,r.length===e?r:r.subarray(0,e));let t="";for(let i=0;i{const t=e||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,e));let i,s;const a=new Array(t*2);for(s=0,i=0;i4){a[s++]=65533,i+=l-1;continue}for(c&=l===2?31:l===3?15:7;l>1&&i1){a[s++]=65533;continue}c<65536?a[s++]=c:(c-=65536,a[s++]=55296|c>>10&1023,a[s++]=56320|c&1023)}return hc(a,s)},dc=(r,e)=>{e=e||r.length,e>r.length&&(e=r.length);let t=e-1;for(;t>=0&&(r[t]&192)===128;)t--;return t<0||t===0?e:t+Ia[r[t]]>e?t:e},Ro={string2buf:fc,buf2string:cc,utf8border:dc};function pc(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var gc=pc;const os=16209,mc=16191;var vc=function(e,t){let i,s,a,c,l,h,d,m,_,k,p,O,C,M,S,G,V,D,at,vt,st,X,T,et;const N=e.state;i=e.next_in,T=e.input,s=i+(e.avail_in-5),a=e.next_out,et=e.output,c=a-(t-e.avail_out),l=a+(e.avail_out-257),h=N.dmax,d=N.wsize,m=N.whave,_=N.wnext,k=N.window,p=N.hold,O=N.bits,C=N.lencode,M=N.distcode,S=(1<>>24,p>>>=D,O-=D,D=V>>>16&255,D===0)et[a++]=V&65535;else if(D&16){at=V&65535,D&=15,D&&(O>>=D,O-=D),O<15&&(p+=T[i++]<>>24,p>>>=D,O-=D,D=V>>>16&255,D&16){if(vt=V&65535,D&=15,Oh){e.msg="invalid distance too far back",N.mode=os;break t}if(p>>>=D,O-=D,D=a-c,vt>D){if(D=vt-D,D>m&&N.sane){e.msg="invalid distance too far back",N.mode=os;break t}if(st=0,X=k,_===0){if(st+=d-D,D2;)et[a++]=X[st++],et[a++]=X[st++],et[a++]=X[st++],at-=3;at&&(et[a++]=X[st++],at>1&&(et[a++]=X[st++]))}else{st=a-vt;do et[a++]=et[st++],et[a++]=et[st++],et[a++]=et[st++],at-=3;while(at>2);at&&(et[a++]=et[st++],at>1&&(et[a++]=et[st++]))}}else if((D&64)===0){V=M[(V&65535)+(p&(1<>3,i-=at,O-=at<<3,p&=(1<{const h=l.bits;let d=0,m=0,_=0,k=0,p=0,O=0,C=0,M=0,S=0,G=0,V,D,at,vt,st,X=null,T;const et=new Uint16Array(qi+1),N=new Uint16Array(qi+1);let E=null,H,U,nt;for(d=0;d<=qi;d++)et[d]=0;for(m=0;m=1&&et[k]===0;k--);if(p>k&&(p=k),k===0)return s[a++]=1<<24|64<<16|0,s[a++]=1<<24|64<<16|0,l.bits=1,0;for(_=1;_0&&(r===Vl||k!==1))return-1;for(N[1]=0,d=1;dHl||r===Gl&&S>Wl)return 1;for(;;){H=d-C,c[m]+1=T?(U=E[c[m]-T],nt=X[c[m]-T]):(U=96,nt=0),V=1<>C)+D]=H<<24|U<<16|nt|0;while(D!==0);for(V=1<>=1;if(V!==0?(G&=V-1,G+=V):G=0,m++,--et[d]===0){if(d===k)break;d=e[t+c[m]]}if(d>p&&(G&vt)!==at){for(C===0&&(C=p),st+=_,O=d-C,M=1<Hl||r===Gl&&S>Wl)return 1;at=G&vt,s[at]=p<<24|O<<16|st-a|0}}return G!==0&&(s[st+G]=d-C<<24|64<<16|0),l.bits=p,0};var Pa=_c;const Ac=0,uf=1,ff=2,{Z_FINISH:Yl,Z_BLOCK:Nc,Z_TREES:ls,Z_OK:yi,Z_STREAM_END:Lc,Z_NEED_DICT:Sc,Z_STREAM_ERROR:Wr,Z_DATA_ERROR:hf,Z_MEM_ERROR:cf,Z_BUF_ERROR:kc,Z_DEFLATED:Jl}=sf,Ss=16180,Kl=16181,Xl=16182,$l=16183,Zl=16184,Ql=16185,tu=16186,eu=16187,ru=16188,nu=16189,As=16190,On=16191,co=16192,iu=16193,po=16194,au=16195,su=16196,ou=16197,lu=16198,us=16199,fs=16200,uu=16201,fu=16202,hu=16203,cu=16204,du=16205,go=16206,pu=16207,gu=16208,Oe=16209,df=16210,pf=16211,Pc=852,Ic=592,Cc=15,Fc=Cc,mu=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function Ec(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const xi=r=>{if(!r)return 1;const e=r.state;return!e||e.strm!==r||e.modepf?1:0},gf=r=>{if(xi(r))return Wr;const e=r.state;return r.total_in=r.total_out=e.total=0,r.msg="",e.wrap&&(r.adler=e.wrap&1),e.mode=Ss,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(Pc),e.distcode=e.distdyn=new Int32Array(Ic),e.sane=1,e.back=-1,yi},mf=r=>{if(xi(r))return Wr;const e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,gf(r)},vf=(r,e)=>{let t;if(xi(r))return Wr;const i=r.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Wr:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,mf(r))},bf=(r,e)=>{if(!r)return Wr;const t=new Ec;r.state=t,t.strm=r,t.window=null,t.mode=Ss;const i=vf(r,e);return i!==yi&&(r.state=null),i},Oc=r=>bf(r,Fc);let vu=!0,mo,vo;const jc=r=>{if(vu){mo=new Int32Array(512),vo=new Int32Array(32);let e=0;for(;e<144;)r.lens[e++]=8;for(;e<256;)r.lens[e++]=9;for(;e<280;)r.lens[e++]=7;for(;e<288;)r.lens[e++]=8;for(Pa(uf,r.lens,0,288,mo,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;Pa(ff,r.lens,0,32,vo,0,r.work,{bits:5}),vu=!1}r.lencode=mo,r.lenbits=9,r.distcode=vo,r.distbits=5},wf=(r,e,t,i)=>{let s;const a=r.state;return a.window===null&&(a.wsize=1<=a.wsize?(a.window.set(e.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(s=a.wsize-a.wnext,s>i&&(s=i),a.window.set(e.subarray(t-i,t-i+s),a.wnext),i-=s,i?(a.window.set(e.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave{let t,i,s,a,c,l,h,d,m,_,k,p,O,C,M=0,S,G,V,D,at,vt,st,X;const T=new Uint8Array(4);let et,N;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(xi(r)||!r.output||!r.input&&r.avail_in!==0)return Wr;t=r.state,t.mode===On&&(t.mode=co),c=r.next_out,s=r.output,h=r.avail_out,a=r.next_in,i=r.input,l=r.avail_in,d=t.hold,m=t.bits,_=l,k=h,X=yi;t:for(;;)switch(t.mode){case Ss:if(t.wrap===0){t.mode=co;break}for(;m<16;){if(l===0)break t;l--,d+=i[a++]<>>8&255,t.check=pn(t.check,T,2,0),d=0,m=0,t.mode=Kl;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){r.msg="incorrect header check",t.mode=Oe;break}if((d&15)!==Jl){r.msg="unknown compression method",t.mode=Oe;break}if(d>>>=4,m-=4,st=(d&15)+8,t.wbits===0&&(t.wbits=st),st>15||st>t.wbits){r.msg="invalid window size",t.mode=Oe;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(T[0]=d&255,T[1]=d>>>8&255,t.check=pn(t.check,T,2,0)),d=0,m=0,t.mode=Xl;case Xl:for(;m<32;){if(l===0)break t;l--,d+=i[a++]<>>8&255,T[2]=d>>>16&255,T[3]=d>>>24&255,t.check=pn(t.check,T,4,0)),d=0,m=0,t.mode=$l;case $l:for(;m<16;){if(l===0)break t;l--,d+=i[a++]<>8),t.flags&512&&t.wrap&4&&(T[0]=d&255,T[1]=d>>>8&255,t.check=pn(t.check,T,2,0)),d=0,m=0,t.mode=Zl;case Zl:if(t.flags&1024){for(;m<16;){if(l===0)break t;l--,d+=i[a++]<>>8&255,t.check=pn(t.check,T,2,0)),d=0,m=0}else t.head&&(t.head.extra=null);t.mode=Ql;case Ql:if(t.flags&1024&&(p=t.length,p>l&&(p=l),p&&(t.head&&(st=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+p),st)),t.flags&512&&t.wrap&4&&(t.check=pn(t.check,i,p,a)),l-=p,a+=p,t.length-=p),t.length))break t;t.length=0,t.mode=tu;case tu:if(t.flags&2048){if(l===0)break t;p=0;do st=i[a+p++],t.head&&st&&t.length<65536&&(t.head.name+=String.fromCharCode(st));while(st&&p>9&1,t.head.done=!0),r.adler=t.check=0,t.mode=On;break;case nu:for(;m<32;){if(l===0)break t;l--,d+=i[a++]<>>=m&7,m-=m&7,t.mode=go;break}for(;m<3;){if(l===0)break t;l--,d+=i[a++]<>>=1,m-=1,d&3){case 0:t.mode=iu;break;case 1:if(jc(t),t.mode=us,e===ls){d>>>=2,m-=2;break t}break;case 2:t.mode=su;break;case 3:r.msg="invalid block type",t.mode=Oe}d>>>=2,m-=2;break;case iu:for(d>>>=m&7,m-=m&7;m<32;){if(l===0)break t;l--,d+=i[a++]<>>16^65535)){r.msg="invalid stored block lengths",t.mode=Oe;break}if(t.length=d&65535,d=0,m=0,t.mode=po,e===ls)break t;case po:t.mode=au;case au:if(p=t.length,p){if(p>l&&(p=l),p>h&&(p=h),p===0)break t;s.set(i.subarray(a,a+p),c),l-=p,a+=p,h-=p,c+=p,t.length-=p;break}t.mode=On;break;case su:for(;m<14;){if(l===0)break t;l--,d+=i[a++]<>>=5,m-=5,t.ndist=(d&31)+1,d>>>=5,m-=5,t.ncode=(d&15)+4,d>>>=4,m-=4,t.nlen>286||t.ndist>30){r.msg="too many length or distance symbols",t.mode=Oe;break}t.have=0,t.mode=ou;case ou:for(;t.have>>=3,m-=3}for(;t.have<19;)t.lens[E[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,et={bits:t.lenbits},X=Pa(Ac,t.lens,0,19,t.lencode,0,t.work,et),t.lenbits=et.bits,X){r.msg="invalid code lengths set",t.mode=Oe;break}t.have=0,t.mode=lu;case lu:for(;t.have>>24,G=M>>>16&255,V=M&65535,!(S<=m);){if(l===0)break t;l--,d+=i[a++]<>>=S,m-=S,t.lens[t.have++]=V;else{if(V===16){for(N=S+2;m>>=S,m-=S,t.have===0){r.msg="invalid bit length repeat",t.mode=Oe;break}st=t.lens[t.have-1],p=3+(d&3),d>>>=2,m-=2}else if(V===17){for(N=S+3;m>>=S,m-=S,st=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=S+7;m>>=S,m-=S,st=0,p=11+(d&127),d>>>=7,m-=7}if(t.have+p>t.nlen+t.ndist){r.msg="invalid bit length repeat",t.mode=Oe;break}for(;p--;)t.lens[t.have++]=st}}if(t.mode===Oe)break;if(t.lens[256]===0){r.msg="invalid code -- missing end-of-block",t.mode=Oe;break}if(t.lenbits=9,et={bits:t.lenbits},X=Pa(uf,t.lens,0,t.nlen,t.lencode,0,t.work,et),t.lenbits=et.bits,X){r.msg="invalid literal/lengths set",t.mode=Oe;break}if(t.distbits=6,t.distcode=t.distdyn,et={bits:t.distbits},X=Pa(ff,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,et),t.distbits=et.bits,X){r.msg="invalid distances set",t.mode=Oe;break}if(t.mode=us,e===ls)break t;case us:t.mode=fs;case fs:if(l>=6&&h>=258){r.next_out=c,r.avail_out=h,r.next_in=a,r.avail_in=l,t.hold=d,t.bits=m,vc(r,k),c=r.next_out,s=r.output,h=r.avail_out,a=r.next_in,i=r.input,l=r.avail_in,d=t.hold,m=t.bits,t.mode===On&&(t.back=-1);break}for(t.back=0;M=t.lencode[d&(1<>>24,G=M>>>16&255,V=M&65535,!(S<=m);){if(l===0)break t;l--,d+=i[a++]<>D)],S=M>>>24,G=M>>>16&255,V=M&65535,!(D+S<=m);){if(l===0)break t;l--,d+=i[a++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,t.length=V,G===0){t.mode=du;break}if(G&32){t.back=-1,t.mode=On;break}if(G&64){r.msg="invalid literal/length code",t.mode=Oe;break}t.extra=G&15,t.mode=uu;case uu:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=fu;case fu:for(;M=t.distcode[d&(1<>>24,G=M>>>16&255,V=M&65535,!(S<=m);){if(l===0)break t;l--,d+=i[a++]<>D)],S=M>>>24,G=M>>>16&255,V=M&65535,!(D+S<=m);){if(l===0)break t;l--,d+=i[a++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,G&64){r.msg="invalid distance code",t.mode=Oe;break}t.offset=V,t.extra=G&15,t.mode=hu;case hu:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){r.msg="invalid distance too far back",t.mode=Oe;break}t.mode=cu;case cu:if(h===0)break t;if(p=k-h,t.offset>p){if(p=t.offset-p,p>t.whave&&t.sane){r.msg="invalid distance too far back",t.mode=Oe;break}p>t.wnext?(p-=t.wnext,O=t.wsize-p):O=t.wnext-p,p>t.length&&(p=t.length),C=t.window}else C=s,O=c-t.offset,p=t.length;p>h&&(p=h),h-=p,t.length-=p;do s[c++]=C[O++];while(--p);t.length===0&&(t.mode=fs);break;case du:if(h===0)break t;s[c++]=t.length,h--,t.mode=fs;break;case go:if(t.wrap){for(;m<32;){if(l===0)break t;l--,d|=i[a++]<{if(xi(r))return Wr;let e=r.state;return e.window&&(e.window=null),r.state=null,yi},Rc=(r,e)=>{if(xi(r))return Wr;const t=r.state;return(t.wrap&2)===0?Wr:(t.head=e,e.done=!1,yi)},Tc=(r,e)=>{const t=e.length;let i,s,a;return xi(r)||(i=r.state,i.wrap!==0&&i.mode!==As)?Wr:i.mode===As&&(s=1,s=Bo(s,e,t,0),s!==i.check)?hf:(a=wf(r,e,t,t),a?(i.mode=df,cf):(i.havedict=1,yi))};var Dc=mf,qc=vf,Uc=gf,zc=Oc,Hc=bf,Wc=Bc,Vc=Mc,Gc=Rc,Yc=Tc,Jc="pako inflate (from Nodeca project)",jn={inflateReset:Dc,inflateReset2:qc,inflateResetKeep:Uc,inflateInit:zc,inflateInit2:Hc,inflate:Wc,inflateEnd:Vc,inflateGetHeader:Gc,inflateSetDictionary:Yc,inflateInfo:Jc};function Kc(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Xc=Kc;const yf=Object.prototype.toString,{Z_NO_FLUSH:$c,Z_FINISH:Zc,Z_OK:Ca,Z_STREAM_END:bo,Z_NEED_DICT:wo,Z_STREAM_ERROR:Qc,Z_DATA_ERROR:bu,Z_MEM_ERROR:t1}=sf;function Fa(r){this.options=of.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(r&&r.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new gc,this.strm.avail_out=0;let t=jn.inflateInit2(this.strm,e.windowBits);if(t!==Ca)throw new Error(Mo[t]);if(this.header=new Xc,jn.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Ro.string2buf(e.dictionary):yf.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=jn.inflateSetDictionary(this.strm,e.dictionary),t!==Ca)))throw new Error(Mo[t])}Fa.prototype.push=function(r,e){const t=this.strm,i=this.options.chunkSize,s=this.options.dictionary;let a,c,l;if(this.ended)return!1;for(e===~~e?c=e:c=e===!0?Zc:$c,yf.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=jn.inflate(t,c),a===wo&&s&&(a=jn.inflateSetDictionary(t,s),a===Ca?a=jn.inflate(t,c):a===bu&&(a=wo));t.avail_in>0&&a===bo&&t.state.wrap>0&&r[t.next_in]!==0;)jn.inflateReset(t),a=jn.inflate(t,c);switch(a){case Qc:case bu:case wo:case t1:return this.onEnd(a),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||a===bo))if(this.options.to==="string"){let h=Ro.utf8border(t.output,t.next_out),d=t.next_out-h,m=Ro.buf2string(t.output,h);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(h,h+d),0),this.onData(m)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ca&&l===0)){if(a===bo)return a=jn.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Fa.prototype.onData=function(r){this.chunks.push(r)};Fa.prototype.onEnd=function(r){r===Ca&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=of.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function e1(r,e){const t=new Fa(e);if(t.push(r),t.err)throw t.msg||Mo[t.err];return t.result}var r1=Fa,n1=e1,i1={Inflate:r1,inflate:n1};const{Inflate:a1,inflate:s1}=i1;var wu=a1,o1=s1;const xf=[];for(let r=0;r<256;r++){let e=r;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;xf[r]=e}const yu=4294967295;function l1(r,e,t){let i=r;for(let s=0;s>>8;return i}function u1(r,e){return(l1(yu,r,e)^yu)>>>0}function xu(r,e,t){const i=r.readUint32(),s=u1(new Uint8Array(r.buffer,r.byteOffset+r.offset-e-4,e),e);if(s!==i)throw new Error(`CRC mismatch for chunk ${t}. Expected ${i}, found ${s}`)}function _f(r,e,t){for(let i=0;i>1)&255}else{for(;a>1)&255;for(;a>1)&255}}function Sf(r,e,t,i,s){let a=0;if(t.length===0){for(;a=t||vt>=i))for(let st=0;st>8&255}const v1=new Uint16Array([255]),b1=new Uint8Array(v1.buffer),w1=b1[0]===255,y1=new Uint8Array(0);function _u(r){const{data:e,width:t,height:i,channels:s,depth:a}=r,c=Math.ceil(a/8)*s,l=Math.ceil(a/8*s*t),h=new Uint8Array(i*l);let d=y1,m=0,_,k;for(let p=0;p>8&255}const ms=Uint8Array.of(137,80,78,71,13,10,26,10);function Au(r){if(!_1(r.readBytes(ms.length)))throw new Error("wrong PNG signature")}function _1(r){if(r.length79)throw new Error("keyword length must be between 1 and 79")}const S1=/^[\u0000-\u00FF]*$/;function k1(r){if(!S1.test(r))throw new Error("invalid latin1 text")}function P1(r,e,t){const i=Pf(e);r[i]=I1(e,t-i.length-1)}function Pf(r){for(r.mark();r.readByte()!==N1;);const e=r.offset;r.reset();const t=kf.decode(r.readBytes(e-r.offset-1));return r.skip(1),L1(t),t}function I1(r,e){return kf.decode(r.readBytes(e))}const Br={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},yo={UNKNOWN:-1,DEFLATE:0},Nu={UNKNOWN:-1,ADAPTIVE:0},xo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},hs={NONE:0,BACKGROUND:1,PREVIOUS:2},_o={SOURCE:0,OVER:1};class C1 extends Vo{constructor(t,i={}){super(t);we(this,"_checkCrc");we(this,"_inflator");we(this,"_png");we(this,"_apng");we(this,"_end");we(this,"_hasPalette");we(this,"_palette");we(this,"_hasTransparency");we(this,"_transparency");we(this,"_compressionMethod");we(this,"_filterMethod");we(this,"_interlaceMethod");we(this,"_colorType");we(this,"_isAnimated");we(this,"_numberOfFrames");we(this,"_numberOfPlays");we(this,"_frames");we(this,"_writingDataChunks");const{checkCrc:s=!1}=i;this._checkCrc=s,this._inflator=new wu,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=yo.UNKNOWN,this._filterMethod=Nu.UNKNOWN,this._interlaceMethod=xo.UNKNOWN,this._colorType=Br.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Au(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeChunk(t,i)}return this.decodeImage(),this._png}decodeApng(){for(Au(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeApngChunk(t,i)}return this.decodeApngImage(),this._apng}decodeChunk(t,i){const s=this.offset;switch(i){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case A1:P1(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-s!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?xu(this,t+4,i):this.skip(4)}decodeApngChunk(t,i){const s=this.offset;switch(i!=="fdAT"&&i!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),i){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,i),this.offset=s+t;break}if(this.offset-s!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?xu(this,t+4,i):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=F1(this.readUint8());const i=this.readUint8();this._colorType=i;let s;switch(i){case Br.GREYSCALE:s=1;break;case Br.TRUECOLOUR:s=3;break;case Br.INDEXED_COLOUR:s=1;break;case Br.GREYSCALE_ALPHA:s=2;break;case Br.TRUECOLOUR_ALPHA:s=4;break;case Br.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=s,this._compressionMethod=this.readUint8(),this._compressionMethod!==yo.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const i=t/3;this._hasPalette=!0;const s=[];this._palette=s;for(let a=0;athis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let i=0;ithis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let i=0;for(;i{const h=((c+i.yOffset)*this._png.width+i.xOffset+l)*this._png.channels,d=(c*i.width+l)*this._png.channels;return{index:h,frameIndex:d}};switch(i.blendOp){case _o.SOURCE:for(let c=0;c=200&&e.status<=299}function cs(r){try{r.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),r.dispatchEvent(e)}}var mi=Yt.saveAs||((typeof window>"u"?"undefined":ye(window))!=="object"||window!==Yt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var i=Yt.URL||Yt.webkitURL,s=document.createElement("a");e=e||r.name||"download",s.download=e,s.rel="noopener",typeof r=="string"?(s.href=r,s.origin!==location.origin?Su(s.href)?No(r,e,t):cs(s,s.target="_blank"):cs(s)):(s.href=i.createObjectURL(r),setTimeout(function(){i.revokeObjectURL(s.href)},4e4),setTimeout(function(){cs(s)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(Su(r))No(r,e,t);else{var i=document.createElement("a");i.href=r,i.target="_blank",setTimeout(function(){cs(i)})}else navigator.msSaveOrOpenBlob((function(s,a){return a===void 0?a={autoBom:!1}:ye(a)!=="object"&&(Se.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s})(r,t),e)}:function(r,e,t,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof r=="string")return No(r,e,t);var s=r.type==="application/octet-stream",a=/constructor/i.test(Yt.HTMLElement)||Yt.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&a)&&(typeof FileReader>"u"?"undefined":ye(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=c?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},l.readAsDataURL(r)}else{var h=Yt.URL||Yt.webkitURL,d=h.createObjectURL(r);i?i.location=d:location.href=d,i=null,setTimeout(function(){h.revokeObjectURL(d)},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 If(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={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"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],i=0;i255?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 l=this.r.toString(16),h=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),d.length==1&&(d="0"+d),"#"+l+h+d}}var vs=Yt.atob.bind(Yt),ku=Yt.btoa.bind(Yt);/** * @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 Lo(r,e){var t=r[0],i=r[1],s=r[2],a=r[3];t=pr(t,i,s,a,e[0],7,-680876936),a=pr(a,t,i,s,e[1],12,-389564586),s=pr(s,a,t,i,e[2],17,606105819),i=pr(i,s,a,t,e[3],22,-1044525330),t=pr(t,i,s,a,e[4],7,-176418897),a=pr(a,t,i,s,e[5],12,1200080426),s=pr(s,a,t,i,e[6],17,-1473231341),i=pr(i,s,a,t,e[7],22,-45705983),t=pr(t,i,s,a,e[8],7,1770035416),a=pr(a,t,i,s,e[9],12,-1958414417),s=pr(s,a,t,i,e[10],17,-42063),i=pr(i,s,a,t,e[11],22,-1990404162),t=pr(t,i,s,a,e[12],7,1804603682),a=pr(a,t,i,s,e[13],12,-40341101),s=pr(s,a,t,i,e[14],17,-1502002290),t=gr(t,i=pr(i,s,a,t,e[15],22,1236535329),s,a,e[1],5,-165796510),a=gr(a,t,i,s,e[6],9,-1069501632),s=gr(s,a,t,i,e[11],14,643717713),i=gr(i,s,a,t,e[0],20,-373897302),t=gr(t,i,s,a,e[5],5,-701558691),a=gr(a,t,i,s,e[10],9,38016083),s=gr(s,a,t,i,e[15],14,-660478335),i=gr(i,s,a,t,e[4],20,-405537848),t=gr(t,i,s,a,e[9],5,568446438),a=gr(a,t,i,s,e[14],9,-1019803690),s=gr(s,a,t,i,e[3],14,-187363961),i=gr(i,s,a,t,e[8],20,1163531501),t=gr(t,i,s,a,e[13],5,-1444681467),a=gr(a,t,i,s,e[2],9,-51403784),s=gr(s,a,t,i,e[7],14,1735328473),t=mr(t,i=gr(i,s,a,t,e[12],20,-1926607734),s,a,e[5],4,-378558),a=mr(a,t,i,s,e[8],11,-2022574463),s=mr(s,a,t,i,e[11],16,1839030562),i=mr(i,s,a,t,e[14],23,-35309556),t=mr(t,i,s,a,e[1],4,-1530992060),a=mr(a,t,i,s,e[4],11,1272893353),s=mr(s,a,t,i,e[7],16,-155497632),i=mr(i,s,a,t,e[10],23,-1094730640),t=mr(t,i,s,a,e[13],4,681279174),a=mr(a,t,i,s,e[0],11,-358537222),s=mr(s,a,t,i,e[3],16,-722521979),i=mr(i,s,a,t,e[6],23,76029189),t=mr(t,i,s,a,e[9],4,-640364487),a=mr(a,t,i,s,e[12],11,-421815835),s=mr(s,a,t,i,e[15],16,530742520),t=vr(t,i=mr(i,s,a,t,e[2],23,-995338651),s,a,e[0],6,-198630844),a=vr(a,t,i,s,e[7],10,1126891415),s=vr(s,a,t,i,e[14],15,-1416354905),i=vr(i,s,a,t,e[5],21,-57434055),t=vr(t,i,s,a,e[12],6,1700485571),a=vr(a,t,i,s,e[3],10,-1894986606),s=vr(s,a,t,i,e[10],15,-1051523),i=vr(i,s,a,t,e[1],21,-2054922799),t=vr(t,i,s,a,e[8],6,1873313359),a=vr(a,t,i,s,e[15],10,-30611744),s=vr(s,a,t,i,e[6],15,-1560198380),i=vr(i,s,a,t,e[13],21,1309151649),t=vr(t,i,s,a,e[4],6,-145523070),a=vr(a,t,i,s,e[11],10,-1120210379),s=vr(s,a,t,i,e[2],15,718787259),i=vr(i,s,a,t,e[9],21,-343485551),r[0]=$n(t,r[0]),r[1]=$n(i,r[1]),r[2]=$n(s,r[2]),r[3]=$n(a,r[3])}function ks(r,e,t,i,s,a){return e=$n($n(e,r),$n(i,a)),$n(e<>>32-s,t)}function pr(r,e,t,i,s,a,c){return ks(e&t|~e&i,r,e,s,a,c)}function gr(r,e,t,i,s,a,c){return ks(e&i|t&~i,r,e,s,a,c)}function mr(r,e,t,i,s,a,c){return ks(e^t^i,r,e,s,a,c)}function vr(r,e,t,i,s,a,c){return ks(t^(e|~i),r,e,s,a,c)}function Cf(r){var e,t=r.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)Lo(i,O1(r.substring(e-64,e)));r=r.substring(e-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);if(s[e>>2]|=128<<(e%4<<3),e>55)for(Lo(i,s),e=0;e<16;e++)s[e]=0;return s[14]=8*t,Lo(i,s),i}function O1(r){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return t}var Pu="0123456789abcdef".split("");function j1(r){for(var e="",t=0;t<4;t++)e+=Pu[r>>8*t+4&15]+Pu[r>>8*t&15];return e}function B1(r){return String.fromCharCode(255&r,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function To(r){return Cf(r).map(B1).join("")}var M1=(function(r){for(var e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}return r+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 Do(r,e){var t,i,s,a;if(r!==t){for(var c=(s=r,a=1+(256/r.length|0),new Array(a+1).join(s)),l=[],h=0;h<256;h++)l[h]=h;var d=0;for(h=0;h<256;h++){var m=l[h];d=(d+m+c.charCodeAt(h))%256,l[h]=l[d],l[d]=m}t=r,i=l}else l=i;var _=e.length,k=0,p=0,O="";for(h=0;h<_;h++)p=(p+(m=l[k=(k+1)%256]))%256,l[k]=l[p],l[p]=m,c=l[(l[k]+l[p])%256],O+=String.fromCharCode(e.charCodeAt(h)^c);return O}/** * @license * Licensed under the MIT License. * http://opensource.org/licenses/mit-license * Author: Owen Leong (@owenl131) * Date: 15 Oct 2020 * References: * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt * https://github.com/foliojs/pdfkit/blob/master/lib/security.js * http://www.fpdf.org/en/script/script37.php */var Iu={print:4,modify:8,copy:16,"annot-forms":32};function Hi(r,e,t,i){this.v=1,this.r=2;var s=192;r.forEach(function(l){if(Iu.perm!==void 0)throw new Error("Invalid permission: "+l);s+=Iu[l]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),c=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,c),this.P=-(1+(255^s)),this.encryptionKey=To(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Do(this.encryptionKey,this.padding)}function Wi(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,i=0;i126?"#"+("0"+s.toString(16)).slice(-2):r[i]}return e}function Cu(r){if(ye(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,i,s){if(s=s||!1,typeof t!="string"||typeof i!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[i,!!s],a},this.unsubscribe=function(t){for(var i in e)if(e[i][t])return delete e[i][t],Object.keys(e[i]).length===0&&delete e[i],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var i=Array.prototype.slice.call(arguments,1),s=[];for(var a in e[t]){var c=e[t][a];try{c[0].apply(r,i)}catch(l){Yt.console&&Se.error("jsPDF PubSub Error",l.message,l)}c[1]&&s.push(a)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ns(r){if(!(this instanceof Ns))return new Ns(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function Ff(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function vi(r,e,t,i,s){if(!(this instanceof vi))return new vi(r,e,t,i,s);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,Ff.call(this,i,s)}function Vi(r,e,t,i,s){if(!(this instanceof Vi))return new Vi(r,e,t,i,s);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,Ff.call(this,i,s)}function Rt(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],s=arguments[2],a=arguments[3],c=[],l=1,h=16,d="S",m=null;ye(r=r||{})==="object"&&(t=r.orientation,i=r.unit||i,s=r.format||s,a=r.compress||r.compressPdf||a,(m=r.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(h=r.floatPrecision),d=r.defaultPathOperation||"S"),c=r.filters||(a===!0?["FlateEncode"]:c),i=i||"mm",t=(""+(t||"P")).toLowerCase();var _=r.putOnlyUsedFonts||!1,k={},p={internal:{},__private__:{}};p.__private__.PubSub=Cu;var O="1.3",C=p.__private__.getPdfVersion=function(){return O};p.__private__.setPdfVersion=function(u){O=u};var M={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 M};var S=p.__private__.getPageFormat=function(u){return M[u]};s=s||"a4";var G="compat",V="advanced",D=G;function at(){this.saveGraphicsState(),B(new Wt(Vt,0,0,-Vt,0,kr()*Vt).toString()+" cm"),this.setFontSize(this.getFontSize()/Vt),d="n",D=V}function vt(){this.restoreGraphicsState(),d="S",D=G}var st=p.__private__.combineFontStyleAndFontWeight=function(u,b){if(u=="bold"&&b=="normal"||u=="bold"&&b==400||u=="normal"&&b=="italic"||u=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(u=b==400||b==="normal"?u==="italic"?"italic":"normal":b!=700&&b!=="bold"||u!=="normal"?(b==700?"bold":b)+""+u:"bold"),u};p.advancedAPI=function(u){var b=D===G;return b&&at.call(this),typeof u!="function"||(u(this),b&&vt.call(this)),this},p.compatAPI=function(u){var b=D===V;return b&&vt.call(this),typeof u!="function"||(u(this),b&&at.call(this)),this},p.isAdvancedAPI=function(){return D===V};var X,T=function(u){if(D!==V)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},et=p.roundToPrecision=p.__private__.roundToPrecision=function(u,b){var F=e||b;if(isNaN(u)||isNaN(F))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(F).replace(/0+$/,"")};X=p.hpf=p.__private__.hpf=typeof h=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return et(u,h)}:h==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return et(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return et(u,16)};var N=p.f2=p.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return et(u,2)},E=p.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return et(u,3)},H=p.scale=p.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return D===G?u*Vt:D===V?u:void 0},U=function(u){return H((function(b){return D===G?kr()-b:D===V?b:void 0})(u))};p.__private__.setPrecision=p.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(e=parseInt(u,10))};var nt,ft="00000000000000000000000000000000",dt=p.__private__.getFileId=function(){return ft},rt=p.__private__.setFileId=function(u){return ft=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():ft.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(qe=new Hi(m.userPermissions,m.userPassword,m.ownerPassword,ft)),ft};p.setFileId=function(u){return rt(u),this},p.getFileId=function(){return dt()};var ht=p.__private__.convertDateToPDFDate=function(u){var b=u.getTimezoneOffset(),F=b<0?"+":"-",q=Math.floor(Math.abs(b/60)),K=Math.abs(b%60),pt=[F,R(q),"'",R(K),"'"].join("");return["D:",u.getFullYear(),R(u.getMonth()+1),R(u.getDate()),R(u.getHours()),R(u.getMinutes()),R(u.getSeconds()),pt].join("")},Nt=p.__private__.convertPDFDateToDate=function(u){var b=parseInt(u.substr(2,4),10),F=parseInt(u.substr(6,2),10)-1,q=parseInt(u.substr(8,2),10),K=parseInt(u.substr(10,2),10),pt=parseInt(u.substr(12,2),10),wt=parseInt(u.substr(14,2),10);return new Date(b,F,q,K,pt,wt,0)},yt=p.__private__.setCreationDate=function(u){var b;if(u===void 0&&(u=new Date),u instanceof Date)b=ht(u);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(u))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=u}return nt=b},x=p.__private__.getCreationDate=function(u){var b=nt;return u==="jsDate"&&(b=Nt(nt)),b};p.setCreationDate=function(u){return yt(u),this},p.getCreationDate=function(u){return x(u)};var j,R=p.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},W=p.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},J=0,Z=[],lt=[],it=0,mt=[],At=[],kt=!1,Pt=lt;p.__private__.setCustomOutputDestination=function(u){kt=!0,Pt=u};var ot=function(u){kt||(Pt=u)};p.__private__.resetCustomOutputDestination=function(){kt=!1,Pt=lt};var B=p.__private__.out=function(u){return u=u.toString(),it+=u.length+1,Pt.push(u),Pt},le=p.__private__.write=function(u){return B(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},re=p.__private__.getArrayBuffer=function(u){for(var b=u.length,F=new ArrayBuffer(b),q=new Uint8Array(F);b--;)q[b]=u.charCodeAt(b);return F},zt=[["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 zt};var _t=r.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(u){return _t=D===V?u/Vt:u,this};var Tt,St=p.__private__.getFontSize=p.getFontSize=function(){return D===G?_t:_t*Vt},ne=r.R2L||!1;p.__private__.setR2L=p.setR2L=function(u){return ne=u,this},p.__private__.getR2L=p.getR2L=function(){return ne};var Ut,de=p.__private__.setZoomMode=function(u){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))Tt=u;else if(isNaN(u)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');Tt=u}else Tt=parseInt(u,10)};p.__private__.getZoomMode=function(){return Tt};var $t,Zt=p.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');Ut=u};p.__private__.getPageMode=function(){return Ut};var xe=p.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');$t=u};p.__private__.getLayoutMode=function(){return $t},p.__private__.setDisplayMode=p.setDisplayMode=function(u,b,F){return de(u),xe(b),Zt(F),this};var ie={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(u){if(Object.keys(ie).indexOf(u)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ie[u]},p.__private__.getDocumentProperties=function(){return ie},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(u){for(var b in ie)ie.hasOwnProperty(b)&&u[b]&&(ie[b]=u[b]);return this},p.__private__.setDocumentProperty=function(u,b){if(Object.keys(ie).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ie[u]=b};var Dt,Vt,qt,ke,pe,Bt={},Qt={},Ae=[],Ht={},ue={},te={},De={},Ze=null,Ne=0,Jt=[],me=new Cu(p),Qn=r.hotfixes||[],cr={},bn={},nn=[],Wt=function u(b,F,q,K,pt,wt){if(!(this instanceof u))return new u(b,F,q,K,pt,wt);isNaN(b)&&(b=1),isNaN(F)&&(F=0),isNaN(q)&&(q=0),isNaN(K)&&(K=1),isNaN(pt)&&(pt=0),isNaN(wt)&&(wt=0),this._matrix=[b,F,q,K,pt,wt]};Object.defineProperty(Wt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Wt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Wt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Wt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Wt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Wt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Wt.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Wt.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Wt.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Wt.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Wt.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Wt.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Wt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Wt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Wt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Wt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Wt.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(X).join(u)},Wt.prototype.multiply=function(u){var b=u.sx*this.sx+u.shy*this.shx,F=u.sx*this.shy+u.shy*this.sy,q=u.shx*this.sx+u.sy*this.shx,K=u.shx*this.shy+u.sy*this.sy,pt=u.tx*this.sx+u.ty*this.shx+this.tx,wt=u.tx*this.shy+u.ty*this.sy+this.ty;return new Wt(b,F,q,K,pt,wt)},Wt.prototype.decompose=function(){var u=this.sx,b=this.shy,F=this.shx,q=this.sy,K=this.tx,pt=this.ty,wt=Math.sqrt(u*u+b*b),Ft=(u/=wt)*F+(b/=wt)*q;F-=u*Ft,q-=b*Ft;var jt=Math.sqrt(F*F+q*q);return Ft/=jt,u*(q/=jt)>16&255,q=jt>>8&255,K=255&jt}if(q===void 0||pt===void 0&&F===q&&q===K)b=typeof F=="string"?F+" "+wt[0]:u.precision===2?N(F/255)+" "+wt[0]:E(F/255)+" "+wt[0];else if(pt===void 0||ye(pt)==="object"){if(pt&&!isNaN(pt.a)&&pt.a===0)return["1.","1.","1.",wt[1]].join(" ");b=typeof F=="string"?[F,q,K,wt[1]].join(" "):u.precision===2?[N(F/255),N(q/255),N(K/255),wt[1]].join(" "):[E(F/255),E(q/255),E(K/255),wt[1]].join(" ")}else b=typeof F=="string"?[F,q,K,pt,wt[2]].join(" "):u.precision===2?[N(F),N(q),N(K),N(pt),wt[2]].join(" "):[E(F),E(q),E(K),E(pt),wt[2]].join(" ");return b},Yr=p.__private__.getFilters=function(){return c},Dr=p.__private__.putStream=function(u){var b=(u=u||{}).data||"",F=u.filters||Yr(),q=u.alreadyAppliedFilters||[],K=u.addLength1||!1,pt=b.length,wt=u.objectId,Ft=function(Qe){return Qe};if(m!==null&&wt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ft=qe.encryptor(wt,0));var jt={};F===!0&&(F=["FlateEncode"]);var Gt=u.additionalKeyValues||[],ae=(jt=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(b,F):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(jt.data.length!==0&&(Gt.push({key:"Length",value:jt.data.length}),K===!0&&Gt.push({key:"Length1",value:pt})),ae.length!=0)if(ae.split("/").length-1==1)Gt.push({key:"Filter",value:ae});else{Gt.push({key:"Filter",value:"["+ae+"]"});for(var ge=0;ge>"),jt.data.length!==0&&(B("stream"),B(Ft(jt.data)),B("endstream"))},ei=p.__private__.putPage=function(u){var b=u.number,F=u.data,q=u.objId,K=u.contentsObjId;or(q,!0),B("<>"),B("endobj");var pt=F.join(` `);return D===V&&(pt+=` Q`),or(K,!0),Dr({data:pt,filters:Yr(),objectId:K}),B("endobj"),q},sn=p.__private__.putPages=function(){var u,b,F=[];for(u=1;u<=Ne;u++)Jt[u].objId=ir(),Jt[u].contentsObjId=ir();for(u=1;u<=Ne;u++)F.push(ei({number:u,data:At[u],objId:Jt[u].objId,contentsObjId:Jt[u].contentsObjId,mediaBox:Jt[u].mediaBox,cropBox:Jt[u].cropBox,bleedBox:Jt[u].bleedBox,trimBox:Jt[u].trimBox,artBox:Jt[u].artBox,userUnit:Jt[u].userUnit,rootDictionaryObjId:Bn,resourceDictionaryObjId:Vr}));or(Bn,!0),B("<>"),B("endobj"),me.publish("postPutPages")},ri=function(u){me.publish("putFont",{font:u,out:B,newObject:Be,putStream:Dr}),u.isAlreadyPutted!==!0&&(u.objectNumber=Be(),B("<<"),B("/Type /Font"),B("/BaseFont /"+Wi(u.postScriptName)),B("/Subtype /Type1"),typeof u.encoding=="string"&&B("/Encoding /"+u.encoding),B("/FirstChar 32"),B("/LastChar 255"),B(">>"),B("endobj"))},Ai=function(u){u.objectNumber=Be();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[X(u.x),X(u.y),X(u.x+u.width),X(u.y+u.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var F=u.pages[1].join(` `);Dr({data:F,additionalKeyValues:b,objectId:u.objectNumber}),B("endobj")},Ni=function(u,b){b||(b=21);var F=Be(),q=(function(wt,Ft){var jt,Gt=[],ae=1/(Ft-1);for(jt=0;jt<1;jt+=ae)Gt.push(jt);if(Gt.push(1),wt[0].offset!=0){var ge={offset:0,color:wt[0].color};wt.unshift(ge)}if(wt[wt.length-1].offset!=1){var je={offset:1,color:wt[wt.length-1].color};wt.push(je)}for(var Xe="",_e=0,Qe=0;Qewt[_e+1].offset;)_e++;var $e=wt[_e].offset,lr=(jt-$e)/(wt[_e+1].offset-$e),Nn=wt[_e].color,Tn=wt[_e+1].color;Xe+=W(Math.round((1-lr)*Nn[0]+lr*Tn[0]).toString(16))+W(Math.round((1-lr)*Nn[1]+lr*Tn[1]).toString(16))+W(Math.round((1-lr)*Nn[2]+lr*Tn[2]).toString(16))}return Xe.trim()})(u.colors,b),K=[];K.push({key:"FunctionType",value:"0"}),K.push({key:"Domain",value:"[0.0 1.0]"}),K.push({key:"Size",value:"["+b+"]"}),K.push({key:"BitsPerSample",value:"8"}),K.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),K.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Dr({data:q,additionalKeyValues:K,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:F}),B("endobj"),u.objectNumber=Be(),B("<< /ShadingType "+u.type),B("/ColorSpace /DeviceRGB");var pt="/Coords ["+X(parseFloat(u.coords[0]))+" "+X(parseFloat(u.coords[1]))+" ";u.type===2?pt+=X(parseFloat(u.coords[2]))+" "+X(parseFloat(u.coords[3])):pt+=X(parseFloat(u.coords[2]))+" "+X(parseFloat(u.coords[3]))+" "+X(parseFloat(u.coords[4]))+" "+X(parseFloat(u.coords[5])),B(pt+="]"),u.matrix&&B("/Matrix ["+u.matrix.toString()+"]"),B("/Function "+F+" 0 R"),B("/Extend [true true]"),B(">>"),B("endobj")},Li=function(u,b){var F=ir(),q=Be();b.push({resourcesOid:F,objectOid:q}),u.objectNumber=q;var K=[];K.push({key:"Type",value:"/Pattern"}),K.push({key:"PatternType",value:"1"}),K.push({key:"PaintType",value:"1"}),K.push({key:"TilingType",value:"1"}),K.push({key:"BBox",value:"["+u.boundingBox.map(X).join(" ")+"]"}),K.push({key:"XStep",value:X(u.xStep)}),K.push({key:"YStep",value:X(u.yStep)}),K.push({key:"Resources",value:F+" 0 R"}),u.matrix&&K.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),Dr({data:u.stream,additionalKeyValues:K,objectId:u.objectNumber}),B("endobj")},Ps=function(u){for(var b in u.objectNumber=Be(),B("<<"),u)switch(b){case"opacity":B("/ca "+N(u[b]));break;case"stroke-opacity":B("/CA "+N(u[b]))}B(">>"),B("endobj")},$i=function(u){or(u.resourcesOid,!0),B("<<"),B("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in B("/Font <<"),Bt)Bt.hasOwnProperty(b)&&(_===!1||_===!0&&k.hasOwnProperty(b))&&B("/"+b+" "+Bt[b].objectNumber+" 0 R");B(">>")})(),(function(){if(Object.keys(Ht).length>0){for(var b in B("/Shading <<"),Ht)Ht.hasOwnProperty(b)&&Ht[b]instanceof vi&&Ht[b].objectNumber>=0&&B("/"+b+" "+Ht[b].objectNumber+" 0 R");me.publish("putShadingPatternDict"),B(">>")}})(),(function(b){if(Object.keys(Ht).length>0){for(var F in B("/Pattern <<"),Ht)Ht.hasOwnProperty(F)&&Ht[F]instanceof p.TilingPattern&&Ht[F].objectNumber>=0&&Ht[F].objectNumber>")}})(u.objectOid),(function(){if(Object.keys(te).length>0){var b;for(b in B("/ExtGState <<"),te)te.hasOwnProperty(b)&&te[b].objectNumber>=0&&B("/"+b+" "+te[b].objectNumber+" 0 R");me.publish("putGStateDict"),B(">>")}})(),(function(){for(var b in B("/XObject <<"),cr)cr.hasOwnProperty(b)&&cr[b].objectNumber>=0&&B("/"+b+" "+cr[b].objectNumber+" 0 R");me.publish("putXobjectDict"),B(">>")})(),B(">>"),B("endobj")},Ea=function(u){Qt[u.fontName]=Qt[u.fontName]||{},Qt[u.fontName][u.fontStyle]=u.id},Oa=function(u,b,F,q,K){var pt={id:"F"+(Object.keys(Bt).length+1).toString(10),postScriptName:u,fontName:b,fontStyle:F,encoding:q,isStandardFont:K||!1,metadata:{}};return me.publish("addFont",{font:pt,instance:this}),Bt[pt.id]=pt,Ea(pt),pt.id},qr=p.__private__.pdfEscape=p.pdfEscape=function(u,b){return(function(F,q){var K,pt,wt,Ft,jt,Gt,ae,ge,je;if(wt=(q=q||{}).sourceEncoding||"Unicode",jt=q.outputEncoding,(q.autoencode||jt)&&Bt[Dt].metadata&&Bt[Dt].metadata[wt]&&Bt[Dt].metadata[wt].encoding&&(Ft=Bt[Dt].metadata[wt].encoding,!jt&&Bt[Dt].encoding&&(jt=Bt[Dt].encoding),!jt&&Ft.codePages&&(jt=Ft.codePages[0]),typeof jt=="string"&&(jt=Ft[jt]),jt)){for(ae=!1,Gt=[],K=0,pt=F.length;K>8&&(ae=!0);F=Gt.join("")}for(K=F.length;ae===void 0&&K!==0;)F.charCodeAt(K-1)>>8&&(ae=!0),K--;if(!ae)return F;for(Gt=q.noBOM?[]:[254,255],K=0,pt=F.length;K>8)>>8)throw new Error("Character at position "+K+" of string '"+F+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Gt.push(je),Gt.push(ge-(je<<8))}return String.fromCharCode.apply(void 0,Gt)})(u,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Zi=p.__private__.beginPage=function(u){At[++Ne]=[],Jt[Ne]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},Ba(Ne),ot(At[j])},ja=function(u,b){var F,q,K;switch(t=b||t,typeof u=="string"&&(F=S(u.toLowerCase()),Array.isArray(F)&&(q=F[0],K=F[1])),Array.isArray(u)&&(q=u[0]*Vt,K=u[1]*Vt),isNaN(q)&&(q=s[0],K=s[1]),(q>14400||K>14400)&&(Se.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),q=Math.min(14400,q),K=Math.min(14400,K)),s=[q,K],t.substr(0,1)){case"l":K>q&&(s=[K,q]);break;case"p":q>K&&(s=[K,q])}Zi(s),Rs(na),B(ki),aa!==0&&B(aa+" J"),sa!==0&&B(sa+" j"),me.publish("addPage",{pageNumber:Ne})},Qi=function(u){u>0&&u<=Ne&&(At.splice(u,1),Jt.splice(u,1),Ne--,j>Ne&&(j=Ne),this.setPage(j))},Ba=function(u){u>0&&u<=Ne&&(j=u)},Ma=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return At.length-1},Ra=function(u,b,F){var q,K=void 0;return F=F||{},u=u!==void 0?u:Bt[Dt].fontName,b=b!==void 0?b:Bt[Dt].fontStyle,q=u.toLowerCase(),Qt[q]!==void 0&&Qt[q][b]!==void 0?K=Qt[q][b]:Qt[u]!==void 0&&Qt[u][b]!==void 0?K=Qt[u][b]:F.disableWarning===!1&&Se.warn("Unable to look up font label for font '"+u+"', '"+b+"'. Refer to getFontList() for available fonts."),K||F.noFallback||(K=Qt.times[b])==null&&(K=Qt.times.normal),K},Si=p.__private__.putInfo=function(){var u=Be(),b=function(q){return q};for(var F in m!==null&&(b=qe.encryptor(u,0)),B("<<"),B("/Producer ("+qr(b("jsPDF "+Rt.version))+")"),ie)ie.hasOwnProperty(F)&&ie[F]&&B("/"+F.substr(0,1).toUpperCase()+F.substr(1)+" ("+qr(b(ie[F]))+")");B("/CreationDate ("+qr(b(nt))+")"),B(">>"),B("endobj")},Is=p.__private__.putCatalog=function(u){var b=(u=u||{}).rootDictionaryObjId||Bn;switch(Be(),B("<<"),B("/Type /Catalog"),B("/Pages "+b+" 0 R"),Tt||(Tt="fullwidth"),Tt){case"fullwidth":B("/OpenAction [3 0 R /FitH null]");break;case"fullheight":B("/OpenAction [3 0 R /FitV null]");break;case"fullpage":B("/OpenAction [3 0 R /Fit]");break;case"original":B("/OpenAction [3 0 R /XYZ null null 1]");break;default:var F=""+Tt;F.substr(F.length-1)==="%"&&(Tt=parseInt(Tt)/100),typeof Tt=="number"&&B("/OpenAction [3 0 R /XYZ null null "+N(Tt)+"]")}switch($t||($t="continuous"),$t){case"continuous":B("/PageLayout /OneColumn");break;case"single":B("/PageLayout /SinglePage");break;case"two":case"twoleft":B("/PageLayout /TwoColumnLeft");break;case"tworight":B("/PageLayout /TwoColumnRight")}Ut&&B("/PageMode /"+Ut),me.publish("putCatalog"),B(">>"),B("endobj")},Ke=p.__private__.putTrailer=function(){B("trailer"),B("<<"),B("/Size "+(J+1)),B("/Root "+J+" 0 R"),B("/Info "+(J-1)+" 0 R"),m!==null&&B("/Encrypt "+qe.oid+" 0 R"),B("/ID [ <"+ft+"> <"+ft+"> ]"),B(">>")},Ta=p.__private__.putHeader=function(){B("%PDF-"+O),B("%ºß¬à")},Da=p.__private__.putXRef=function(){var u="0000000000";B("xref"),B("0 "+(J+1)),B("0000000000 65535 f ");for(var b=1;b<=J;b++)typeof Z[b]=="function"?B((u+Z[b]()).slice(-10)+" 00000 n "):Z[b]!==void 0?B((u+Z[b]).slice(-10)+" 00000 n "):B("0000000000 00000 n ")},xn=p.__private__.buildDocument=function(){var u;J=0,it=0,lt=[],Z=[],mt=[],Bn=ir(),Vr=ir(),ot(lt),me.publish("buildDocument"),Ta(),sn(),(function(){me.publish("putAdditionalObjects");for(var F=0;F"),B("/O <"+qe.toHexString(qe.O)+">"),B("/P "+qe.P),B(">>"),B("endobj")),Si(),Is();var b=it;return Da(),Ke(),B("startxref"),B(""+b),B("%%EOF"),ot(At[j]),lt.join(` `)},ni=p.__private__.getBlob=function(u){return new Blob([re(u)],{type:"application/pdf"})},Jr=p.output=p.__private__.output=(Tr=function(u,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",u){case void 0:return xn();case"save":p.save(b.filename);break;case"arraybuffer":return re(xn());case"blob":return ni(xn());case"bloburi":case"bloburl":if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL=="function")return Yt.URL&&Yt.URL.createObjectURL(ni(xn()))||void 0;Se.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var F="",q=xn();try{F=ku(q)}catch{F=ku(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+b.filename+";base64,"+F;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var K="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",pt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(K=b.pdfObjectUrl,pt="");var wt='