const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-Ce6wxV-H.js","./index-y86Ilk1q.js","./index-CPYpbGHF.css"])))=>i.map(i=>d[i]); var Jh=Object.defineProperty;var $h=(n,e,t)=>e in n?Jh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var _e=(n,e,t)=>$h(n,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as So,a as io}from"./index-y86Ilk1q.js";function Kh(n){if(Array.isArray(n))return n}function Xh(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,o,s,f,u=[],c=!0,d=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(c=(i=s.call(t)).done)&&(u.push(i.value),u.length!==e);c=!0);}catch(m){d=!0,o=m}finally{try{if(!c&&t.return!=null&&(f=t.return(),Object(f)!==f))return}finally{if(d)throw o}}return u}}function wl(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=Array(e);t{const n=new Uint8Array(4),e=new Uint32Array(n.buffer);return!((e[0]=1)&n[0])})(),ao={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 jo{constructor(e=nc,t={}){_e(this,"buffer");_e(this,"byteLength");_e(this,"byteOffset");_e(this,"length");_e(this,"offset");_e(this,"lastWrittenByte");_e(this,"littleEndian");_e(this,"_data");_e(this,"_mark");_e(this,"_marks");let i=!1;typeof e=="number"?e=new ArrayBuffer(e):(i=!0,this.lastWrittenByte=e.byteLength);const o=t.offset?t.offset>>>0:0,s=e.byteLength-o;let f=o;(ArrayBuffer.isView(e)||e instanceof jo)&&(e.byteLength!==e.buffer.byteLength&&(f=e.byteOffset+o),e=e.buffer),i?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=e,this.length=s,this.byteLength=s,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,s),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,o=new Uint8Array(i);o.set(new Uint8Array(this.buffer)),this.buffer=o.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=ao[t].BYTES_PER_ELEMENT*e,o=this.byteOffset+this.offset,s=this.buffer.slice(o,o+i);if(this.littleEndian===rc&&t!=="uint8"&&t!=="int8"){const u=new Uint8Array(this.buffer.slice(o,o+i));u.reverse();const c=new ao[t](u.buffer);return this.offset+=i,c.reverse(),c}const f=new ao[t](s);return this.offset+=i,f}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 Gi(n){let e=n.length;for(;--e>=0;)n[e]=0}const ic=3,ac=258,ku=29,sc=256,oc=sc+1+ku,Pu=30,lc=512,uc=new Array((oc+2)*2);Gi(uc);const hc=new Array(Pu*2);Gi(hc);const cc=new Array(lc);Gi(cc);const fc=new Array(ac-ic+1);Gi(fc);const dc=new Array(ku);Gi(dc);const pc=new Array(Pu);Gi(pc);const gc=(n,e,t,i)=>{let o=n&65535|0,s=n>>>16&65535|0,f=0;for(;t!==0;){f=t>2e3?2e3:t,t-=f;do o=o+e[i++]|0,s=s+o|0;while(--f);o%=65521,s%=65521}return o|s<<16|0};var ko=gc;const mc=()=>{let n,e=[];for(var t=0;t<256;t++){n=t;for(var i=0;i<8;i++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e},bc=new Uint32Array(mc()),vc=(n,e,t,i)=>{const o=bc,s=i+t;n^=-1;for(let f=i;f>>8^o[(n^e[f])&255];return n^-1};var ur=vc,Po={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"},Iu={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 wc=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var yc=function(n){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)wc(t,i)&&(n[i]=t[i])}}return n},xc=n=>{let e=0;for(let i=0,o=n.length;i=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;_a[254]=_a[254]=1;var _c=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let e,t,i,o,s,f=n.length,u=0;for(o=0;o>>6,e[s++]=128|t&63):t<65536?(e[s++]=224|t>>>12,e[s++]=128|t>>>6&63,e[s++]=128|t&63):(e[s++]=240|t>>>18,e[s++]=128|t>>>12&63,e[s++]=128|t>>>6&63,e[s++]=128|t&63);return e};const Ac=(n,e)=>{if(e<65534&&n.subarray&&Fu)return String.fromCharCode.apply(null,n.length===e?n:n.subarray(0,e));let t="";for(let i=0;i{const t=e||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,e));let i,o;const s=new Array(t*2);for(o=0,i=0;i4){s[o++]=65533,i+=u-1;continue}for(f&=u===2?31:u===3?15:7;u>1&&i1){s[o++]=65533;continue}f<65536?s[o++]=f:(f-=65536,s[o++]=55296|f>>10&1023,s[o++]=56320|f&1023)}return Ac(s,o)},Lc=(n,e)=>{e=e||n.length,e>n.length&&(e=n.length);let t=e-1;for(;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+_a[n[t]]>e?t:e},Io={string2buf:_c,buf2string:Nc,utf8border:Lc};function Sc(){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 kc=Sc;const os=16209,Pc=16191;var Ic=function(e,t){let i,o,s,f,u,c,d,m,A,P,p,B,O,M,S,G,Y,D,ot,yt,gt,tt,z,et;const N=e.state;i=e.next_in,z=e.input,o=i+(e.avail_in-5),s=e.next_out,et=e.output,f=s-(t-e.avail_out),u=s+(e.avail_out-257),c=N.dmax,d=N.wsize,m=N.whave,A=N.wnext,P=N.window,p=N.hold,B=N.bits,O=N.lencode,M=N.distcode,S=(1<>>24,p>>>=D,B-=D,D=Y>>>16&255,D===0)et[s++]=Y&65535;else if(D&16){ot=Y&65535,D&=15,D&&(B>>=D,B-=D),B<15&&(p+=z[i++]<>>24,p>>>=D,B-=D,D=Y>>>16&255,D&16){if(yt=Y&65535,D&=15,Bc){e.msg="invalid distance too far back",N.mode=os;break t}if(p>>>=D,B-=D,D=s-f,yt>D){if(D=yt-D,D>m&&N.sane){e.msg="invalid distance too far back",N.mode=os;break t}if(gt=0,tt=P,A===0){if(gt+=d-D,D2;)et[s++]=tt[gt++],et[s++]=tt[gt++],et[s++]=tt[gt++],ot-=3;ot&&(et[s++]=tt[gt++],ot>1&&(et[s++]=tt[gt++]))}else{gt=s-yt;do et[s++]=et[gt++],et[s++]=et[gt++],et[s++]=et[gt++],ot-=3;while(ot>2);ot&&(et[s++]=et[gt++],ot>1&&(et[s++]=et[gt++]))}}else if((D&64)===0){Y=M[(Y&65535)+(p&(1<>3,i-=ot,B-=ot<<3,p&=(1<{const c=u.bits;let d=0,m=0,A=0,P=0,p=0,B=0,O=0,M=0,S=0,G=0,Y,D,ot,yt,gt,tt=null,z;const et=new Uint16Array(Mi+1),N=new Uint16Array(Mi+1);let E=null,q,U,rt;for(d=0;d<=Mi;d++)et[d]=0;for(m=0;m=1&&et[P]===0;P--);if(p>P&&(p=P),P===0)return o[s++]=1<<24|64<<16|0,o[s++]=1<<24|64<<16|0,u.bits=1,0;for(A=1;A0&&(n===Nl||P!==1))return-1;for(N[1]=0,d=1;d_l||n===Ll&&S>Al)return 1;for(;;){q=d-O,f[m]+1=z?(U=E[f[m]-z],rt=tt[f[m]-z]):(U=96,rt=0),Y=1<>O)+D]=q<<24|U<<16|rt|0;while(D!==0);for(Y=1<>=1;if(Y!==0?(G&=Y-1,G+=Y):G=0,m++,--et[d]===0){if(d===P)break;d=e[t+f[m]]}if(d>p&&(G&yt)!==ot){for(O===0&&(O=p),gt+=A,B=d-O,M=1<_l||n===Ll&&S>Al)return 1;ot=G&yt,o[ot]=p<<24|B<<16|gt-s|0}}return G!==0&&(o[gt+G]=d-O<<24|64<<16|0),u.bits=p,0};var xa=jc;const Bc=0,Eu=1,Ou=2,{Z_FINISH:Sl,Z_BLOCK:Mc,Z_TREES:ls,Z_OK:wi,Z_STREAM_END:Rc,Z_NEED_DICT:Tc,Z_STREAM_ERROR:zn,Z_DATA_ERROR:ju,Z_MEM_ERROR:Bu,Z_BUF_ERROR:Dc,Z_DEFLATED:kl}=Iu,Ns=16180,Pl=16181,Il=16182,Cl=16183,Fl=16184,El=16185,Ol=16186,jl=16187,Bl=16188,Ml=16189,xs=16190,Fr=16191,oo=16192,Rl=16193,lo=16194,Tl=16195,Dl=16196,ql=16197,Ul=16198,us=16199,hs=16200,zl=16201,Hl=16202,Wl=16203,Vl=16204,Gl=16205,uo=16206,Yl=16207,Jl=16208,Oe=16209,Mu=16210,Ru=16211,qc=852,Uc=592,zc=15,Hc=zc,$l=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function Wc(){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=n=>{if(!n)return 1;const e=n.state;return!e||e.strm!==n||e.modeRu?1:0},Tu=n=>{if(xi(n))return zn;const e=n.state;return n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=Ns,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(qc),e.distcode=e.distdyn=new Int32Array(Uc),e.sane=1,e.back=-1,wi},Du=n=>{if(xi(n))return zn;const e=n.state;return e.wsize=0,e.whave=0,e.wnext=0,Tu(n)},qu=(n,e)=>{let t;if(xi(n))return zn;const i=n.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?zn:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,Du(n))},Uu=(n,e)=>{if(!n)return zn;const t=new Wc;n.state=t,t.strm=n,t.window=null,t.mode=Ns;const i=qu(n,e);return i!==wi&&(n.state=null),i},Vc=n=>Uu(n,Hc);let Kl=!0,ho,co;const Gc=n=>{if(Kl){ho=new Int32Array(512),co=new Int32Array(32);let e=0;for(;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(xa(Eu,n.lens,0,288,ho,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;xa(Ou,n.lens,0,32,co,0,n.work,{bits:5}),Kl=!1}n.lencode=ho,n.lenbits=9,n.distcode=co,n.distbits=5},zu=(n,e,t,i)=>{let o;const s=n.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(t-s.wsize,t),0),s.wnext=0,s.whave=s.wsize):(o=s.wsize-s.wnext,o>i&&(o=i),s.window.set(e.subarray(t-i,t-i+o),s.wnext),i-=o,i?(s.window.set(e.subarray(t-i,t),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave{let t,i,o,s,f,u,c,d,m,A,P,p,B,O,M=0,S,G,Y,D,ot,yt,gt,tt;const z=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(n)||!n.output||!n.input&&n.avail_in!==0)return zn;t=n.state,t.mode===Fr&&(t.mode=oo),f=n.next_out,o=n.output,c=n.avail_out,s=n.next_in,i=n.input,u=n.avail_in,d=t.hold,m=t.bits,A=u,P=c,tt=wi;t:for(;;)switch(t.mode){case Ns:if(t.wrap===0){t.mode=oo;break}for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>>8&255,t.check=ur(t.check,z,2,0),d=0,m=0,t.mode=Pl;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){n.msg="incorrect header check",t.mode=Oe;break}if((d&15)!==kl){n.msg="unknown compression method",t.mode=Oe;break}if(d>>>=4,m-=4,gt=(d&15)+8,t.wbits===0&&(t.wbits=gt),gt>15||gt>t.wbits){n.msg="invalid window size",t.mode=Oe;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=ur(t.check,z,2,0)),d=0,m=0,t.mode=Il;case Il:for(;m<32;){if(u===0)break t;u--,d+=i[s++]<>>8&255,z[2]=d>>>16&255,z[3]=d>>>24&255,t.check=ur(t.check,z,4,0)),d=0,m=0,t.mode=Cl;case Cl:for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>8),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=ur(t.check,z,2,0)),d=0,m=0,t.mode=Fl;case Fl:if(t.flags&1024){for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>>8&255,t.check=ur(t.check,z,2,0)),d=0,m=0}else t.head&&(t.head.extra=null);t.mode=El;case El:if(t.flags&1024&&(p=t.length,p>u&&(p=u),p&&(t.head&&(gt=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(s,s+p),gt)),t.flags&512&&t.wrap&4&&(t.check=ur(t.check,i,p,s)),u-=p,s+=p,t.length-=p),t.length))break t;t.length=0,t.mode=Ol;case Ol:if(t.flags&2048){if(u===0)break t;p=0;do gt=i[s+p++],t.head&>&&t.length<65536&&(t.head.name+=String.fromCharCode(gt));while(gt&&p>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=Fr;break;case Ml:for(;m<32;){if(u===0)break t;u--,d+=i[s++]<>>=m&7,m-=m&7,t.mode=uo;break}for(;m<3;){if(u===0)break t;u--,d+=i[s++]<>>=1,m-=1,d&3){case 0:t.mode=Rl;break;case 1:if(Gc(t),t.mode=us,e===ls){d>>>=2,m-=2;break t}break;case 2:t.mode=Dl;break;case 3:n.msg="invalid block type",t.mode=Oe}d>>>=2,m-=2;break;case Rl:for(d>>>=m&7,m-=m&7;m<32;){if(u===0)break t;u--,d+=i[s++]<>>16^65535)){n.msg="invalid stored block lengths",t.mode=Oe;break}if(t.length=d&65535,d=0,m=0,t.mode=lo,e===ls)break t;case lo:t.mode=Tl;case Tl:if(p=t.length,p){if(p>u&&(p=u),p>c&&(p=c),p===0)break t;o.set(i.subarray(s,s+p),f),u-=p,s+=p,c-=p,f+=p,t.length-=p;break}t.mode=Fr;break;case Dl:for(;m<14;){if(u===0)break t;u--,d+=i[s++]<>>=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){n.msg="too many length or distance symbols",t.mode=Oe;break}t.have=0,t.mode=ql;case ql: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},tt=xa(Bc,t.lens,0,19,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){n.msg="invalid code lengths set",t.mode=Oe;break}t.have=0,t.mode=Ul;case Ul:for(;t.have>>24,G=M>>>16&255,Y=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=S,m-=S,t.lens[t.have++]=Y;else{if(Y===16){for(N=S+2;m>>=S,m-=S,t.have===0){n.msg="invalid bit length repeat",t.mode=Oe;break}gt=t.lens[t.have-1],p=3+(d&3),d>>>=2,m-=2}else if(Y===17){for(N=S+3;m>>=S,m-=S,gt=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=S+7;m>>=S,m-=S,gt=0,p=11+(d&127),d>>>=7,m-=7}if(t.have+p>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=Oe;break}for(;p--;)t.lens[t.have++]=gt}}if(t.mode===Oe)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=Oe;break}if(t.lenbits=9,et={bits:t.lenbits},tt=xa(Eu,t.lens,0,t.nlen,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){n.msg="invalid literal/lengths set",t.mode=Oe;break}if(t.distbits=6,t.distcode=t.distdyn,et={bits:t.distbits},tt=xa(Ou,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,et),t.distbits=et.bits,tt){n.msg="invalid distances set",t.mode=Oe;break}if(t.mode=us,e===ls)break t;case us:t.mode=hs;case hs:if(u>=6&&c>=258){n.next_out=f,n.avail_out=c,n.next_in=s,n.avail_in=u,t.hold=d,t.bits=m,Ic(n,P),f=n.next_out,o=n.output,c=n.avail_out,s=n.next_in,i=n.input,u=n.avail_in,d=t.hold,m=t.bits,t.mode===Fr&&(t.back=-1);break}for(t.back=0;M=t.lencode[d&(1<>>24,G=M>>>16&255,Y=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,G=M>>>16&255,Y=M&65535,!(D+S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,t.length=Y,G===0){t.mode=Gl;break}if(G&32){t.back=-1,t.mode=Fr;break}if(G&64){n.msg="invalid literal/length code",t.mode=Oe;break}t.extra=G&15,t.mode=zl;case zl:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Hl;case Hl:for(;M=t.distcode[d&(1<>>24,G=M>>>16&255,Y=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,G=M>>>16&255,Y=M&65535,!(D+S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,G&64){n.msg="invalid distance code",t.mode=Oe;break}t.offset=Y,t.extra=G&15,t.mode=Wl;case Wl:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=Oe;break}t.mode=Vl;case Vl:if(c===0)break t;if(p=P-c,t.offset>p){if(p=t.offset-p,p>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=Oe;break}p>t.wnext?(p-=t.wnext,B=t.wsize-p):B=t.wnext-p,p>t.length&&(p=t.length),O=t.window}else O=o,B=f-t.offset,p=t.length;p>c&&(p=c),c-=p,t.length-=p;do o[f++]=O[B++];while(--p);t.length===0&&(t.mode=hs);break;case Gl:if(c===0)break t;o[f++]=t.length,c--,t.mode=hs;break;case uo:if(t.wrap){for(;m<32;){if(u===0)break t;u--,d|=i[s++]<{if(xi(n))return zn;let e=n.state;return e.window&&(e.window=null),n.state=null,wi},$c=(n,e)=>{if(xi(n))return zn;const t=n.state;return(t.wrap&2)===0?zn:(t.head=e,e.done=!1,wi)},Kc=(n,e)=>{const t=e.length;let i,o,s;return xi(n)||(i=n.state,i.wrap!==0&&i.mode!==xs)?zn:i.mode===xs&&(o=1,o=ko(o,e,t,0),o!==i.check)?ju:(s=zu(n,e,t,t),s?(i.mode=Mu,Bu):(i.havedict=1,wi))};var Xc=Du,Zc=qu,Qc=Tu,tf=Vc,ef=Uu,nf=Yc,rf=Jc,af=$c,sf=Kc,of="pako inflate (from Nodeca project)",Er={inflateReset:Xc,inflateReset2:Zc,inflateResetKeep:Qc,inflateInit:tf,inflateInit2:ef,inflate:nf,inflateEnd:rf,inflateGetHeader:af,inflateSetDictionary:sf,inflateInfo:of};function lf(){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 uf=lf;const Hu=Object.prototype.toString,{Z_NO_FLUSH:hf,Z_FINISH:cf,Z_OK:Aa,Z_STREAM_END:fo,Z_NEED_DICT:po,Z_STREAM_ERROR:ff,Z_DATA_ERROR:Xl,Z_MEM_ERROR:df}=Iu;function Na(n){this.options=Cu.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});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&&!(n&&n.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 kc,this.strm.avail_out=0;let t=Er.inflateInit2(this.strm,e.windowBits);if(t!==Aa)throw new Error(Po[t]);if(this.header=new uf,Er.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Io.string2buf(e.dictionary):Hu.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Er.inflateSetDictionary(this.strm,e.dictionary),t!==Aa)))throw new Error(Po[t])}Na.prototype.push=function(n,e){const t=this.strm,i=this.options.chunkSize,o=this.options.dictionary;let s,f,u;if(this.ended)return!1;for(e===~~e?f=e:f=e===!0?cf:hf,Hu.call(n)==="[object ArrayBuffer]"?t.input=new Uint8Array(n):t.input=n,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),s=Er.inflate(t,f),s===po&&o&&(s=Er.inflateSetDictionary(t,o),s===Aa?s=Er.inflate(t,f):s===Xl&&(s=po));t.avail_in>0&&s===fo&&t.state.wrap>0&&n[t.next_in]!==0;)Er.inflateReset(t),s=Er.inflate(t,f);switch(s){case ff:case Xl:case po:case df:return this.onEnd(s),this.ended=!0,!1}if(u=t.avail_out,t.next_out&&(t.avail_out===0||s===fo))if(this.options.to==="string"){let c=Io.utf8border(t.output,t.next_out),d=t.next_out-c,m=Io.buf2string(t.output,c);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(c,c+d),0),this.onData(m)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(s===Aa&&u===0)){if(s===fo)return s=Er.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Na.prototype.onData=function(n){this.chunks.push(n)};Na.prototype.onEnd=function(n){n===Aa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cu.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function pf(n,e){const t=new Na(e);if(t.push(n),t.err)throw t.msg||Po[t.err];return t.result}var gf=Na,mf=pf,bf={Inflate:gf,inflate:mf};const{Inflate:vf,inflate:wf}=bf;var Zl=vf,yf=wf;const Wu=[];for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;Wu[n]=e}const Ql=4294967295;function xf(n,e,t){let i=n;for(let o=0;o>>8;return i}function _f(n,e){return(xf(Ql,n,e)^Ql)>>>0}function tu(n,e,t){const i=n.readUint32(),o=_f(new Uint8Array(n.buffer,n.byteOffset+n.offset-e-4,e),e);if(o!==i)throw new Error(`CRC mismatch for chunk ${t}. Expected ${i}, found ${o}`)}function Vu(n,e,t){for(let i=0;i>1)&255}else{for(;s>1)&255;for(;s>1)&255}}function $u(n,e,t,i,o){let s=0;if(t.length===0){for(;s=t||yt>=i))for(let gt=0;gt>8&255}const Cf=new Uint16Array([255]),Ff=new Uint8Array(Cf.buffer),Ef=Ff[0]===255,Of=new Uint8Array(0);function eu(n){const{data:e,width:t,height:i,channels:o,depth:s}=n,f=Math.ceil(s/8)*o,u=Math.ceil(s/8*o*t),c=new Uint8Array(i*u);let d=Of,m=0,A,P;for(let p=0;p>8&255}const gs=Uint8Array.of(137,80,78,71,13,10,26,10);function nu(n){if(!Bf(n.readBytes(gs.length)))throw new Error("wrong PNG signature")}function Bf(n){if(n.length79)throw new Error("keyword length must be between 1 and 79")}const Df=/^[\u0000-\u00FF]*$/;function qf(n){if(!Df.test(n))throw new Error("invalid latin1 text")}function Uf(n,e,t){const i=Xu(e);n[i]=zf(e,t-i.length-1)}function Xu(n){for(n.mark();n.readByte()!==Rf;);const e=n.offset;n.reset();const t=Ku.decode(n.readBytes(e-n.offset-1));return n.skip(1),Tf(t),t}function zf(n,e){return Ku.decode(n.readBytes(e))}const En={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},go={UNKNOWN:-1,DEFLATE:0},ru={UNKNOWN:-1,ADAPTIVE:0},mo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},cs={NONE:0,BACKGROUND:1,PREVIOUS:2},bo={SOURCE:0,OVER:1};class Hf extends jo{constructor(t,i={}){super(t);_e(this,"_checkCrc");_e(this,"_inflator");_e(this,"_png");_e(this,"_apng");_e(this,"_end");_e(this,"_hasPalette");_e(this,"_palette");_e(this,"_hasTransparency");_e(this,"_transparency");_e(this,"_compressionMethod");_e(this,"_filterMethod");_e(this,"_interlaceMethod");_e(this,"_colorType");_e(this,"_isAnimated");_e(this,"_numberOfFrames");_e(this,"_numberOfPlays");_e(this,"_frames");_e(this,"_writingDataChunks");const{checkCrc:o=!1}=i;this._checkCrc=o,this._inflator=new Zl,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=go.UNKNOWN,this._filterMethod=ru.UNKNOWN,this._interlaceMethod=mo.UNKNOWN,this._colorType=En.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(nu(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeChunk(t,i)}return this.decodeImage(),this._png}decodeApng(){for(nu(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeApngChunk(t,i)}return this.decodeApngImage(),this._apng}decodeChunk(t,i){const o=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 Mf:Uf(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?tu(this,t+4,i):this.skip(4)}decodeApngChunk(t,i){const o=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=o+t;break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?tu(this,t+4,i):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=Wf(this.readUint8());const i=this.readUint8();this._colorType=i;let o;switch(i){case En.GREYSCALE:o=1;break;case En.TRUECOLOUR:o=3;break;case En.INDEXED_COLOUR:o=1;break;case En.GREYSCALE_ALPHA:o=2;break;case En.TRUECOLOUR_ALPHA:o=4;break;case En.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==go.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 o=[];this._palette=o;for(let s=0;sthis._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 c=((f+i.yOffset)*this._png.width+i.xOffset+u)*this._png.channels,d=(f*i.width+u)*this._png.channels;return{index:c,frameIndex:d}};switch(i.blendOp){case bo.SOURCE:for(let f=0;f=200&&e.status<=299}function fs(n){try{n.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),n.dispatchEvent(e)}}var mi=Jt.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==Jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var i=Jt.URL||Jt.webkitURL,o=document.createElement("a");e=e||n.name||"download",o.download=e,o.rel="noopener",typeof n=="string"?(o.href=n,o.origin!==location.origin?au(o.href)?wo(n,e,t):fs(o,o.target="_blank"):fs(o)):(o.href=i.createObjectURL(n),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){fs(o)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(au(n))wo(n,e,t);else{var i=document.createElement("a");i.href=n,i.target="_blank",setTimeout(function(){fs(i)})}else navigator.msSaveOrOpenBlob(function(o,s){return s===void 0?s={autoBom:!1}:Se(s)!=="object"&&(Le.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(n,t),e)}:function(n,e,t,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof n=="string")return wo(n,e,t);var o=n.type==="application/octet-stream",s=/constructor/i.test(Jt.HTMLElement)||Jt.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||o&&s)&&(typeof FileReader>"u"?"undefined":Se(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var m=u.result;m=f?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},u.readAsDataURL(n)}else{var c=Jt.URL||Jt.webkitURL,d=c.createObjectURL(n);i?i.location=d:location.href=d,i=null,setTimeout(function(){c.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 Zu(n){var e;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;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(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[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 u=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return u.length==1&&(u="0"+u),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+u+c+d}}var ms=Jt.atob.bind(Jt),su=Jt.btoa.bind(Jt);/** * @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 yo(n,e){var t=n[0],i=n[1],o=n[2],s=n[3];t=dn(t,i,o,s,e[0],7,-680876936),s=dn(s,t,i,o,e[1],12,-389564586),o=dn(o,s,t,i,e[2],17,606105819),i=dn(i,o,s,t,e[3],22,-1044525330),t=dn(t,i,o,s,e[4],7,-176418897),s=dn(s,t,i,o,e[5],12,1200080426),o=dn(o,s,t,i,e[6],17,-1473231341),i=dn(i,o,s,t,e[7],22,-45705983),t=dn(t,i,o,s,e[8],7,1770035416),s=dn(s,t,i,o,e[9],12,-1958414417),o=dn(o,s,t,i,e[10],17,-42063),i=dn(i,o,s,t,e[11],22,-1990404162),t=dn(t,i,o,s,e[12],7,1804603682),s=dn(s,t,i,o,e[13],12,-40341101),o=dn(o,s,t,i,e[14],17,-1502002290),t=pn(t,i=dn(i,o,s,t,e[15],22,1236535329),o,s,e[1],5,-165796510),s=pn(s,t,i,o,e[6],9,-1069501632),o=pn(o,s,t,i,e[11],14,643717713),i=pn(i,o,s,t,e[0],20,-373897302),t=pn(t,i,o,s,e[5],5,-701558691),s=pn(s,t,i,o,e[10],9,38016083),o=pn(o,s,t,i,e[15],14,-660478335),i=pn(i,o,s,t,e[4],20,-405537848),t=pn(t,i,o,s,e[9],5,568446438),s=pn(s,t,i,o,e[14],9,-1019803690),o=pn(o,s,t,i,e[3],14,-187363961),i=pn(i,o,s,t,e[8],20,1163531501),t=pn(t,i,o,s,e[13],5,-1444681467),s=pn(s,t,i,o,e[2],9,-51403784),o=pn(o,s,t,i,e[7],14,1735328473),t=gn(t,i=pn(i,o,s,t,e[12],20,-1926607734),o,s,e[5],4,-378558),s=gn(s,t,i,o,e[8],11,-2022574463),o=gn(o,s,t,i,e[11],16,1839030562),i=gn(i,o,s,t,e[14],23,-35309556),t=gn(t,i,o,s,e[1],4,-1530992060),s=gn(s,t,i,o,e[4],11,1272893353),o=gn(o,s,t,i,e[7],16,-155497632),i=gn(i,o,s,t,e[10],23,-1094730640),t=gn(t,i,o,s,e[13],4,681279174),s=gn(s,t,i,o,e[0],11,-358537222),o=gn(o,s,t,i,e[3],16,-722521979),i=gn(i,o,s,t,e[6],23,76029189),t=gn(t,i,o,s,e[9],4,-640364487),s=gn(s,t,i,o,e[12],11,-421815835),o=gn(o,s,t,i,e[15],16,530742520),t=mn(t,i=gn(i,o,s,t,e[2],23,-995338651),o,s,e[0],6,-198630844),s=mn(s,t,i,o,e[7],10,1126891415),o=mn(o,s,t,i,e[14],15,-1416354905),i=mn(i,o,s,t,e[5],21,-57434055),t=mn(t,i,o,s,e[12],6,1700485571),s=mn(s,t,i,o,e[3],10,-1894986606),o=mn(o,s,t,i,e[10],15,-1051523),i=mn(i,o,s,t,e[1],21,-2054922799),t=mn(t,i,o,s,e[8],6,1873313359),s=mn(s,t,i,o,e[15],10,-30611744),o=mn(o,s,t,i,e[6],15,-1560198380),i=mn(i,o,s,t,e[13],21,1309151649),t=mn(t,i,o,s,e[4],6,-145523070),s=mn(s,t,i,o,e[11],10,-1120210379),o=mn(o,s,t,i,e[2],15,718787259),i=mn(i,o,s,t,e[9],21,-343485551),n[0]=Kr(t,n[0]),n[1]=Kr(i,n[1]),n[2]=Kr(o,n[2]),n[3]=Kr(s,n[3])}function Ls(n,e,t,i,o,s){return e=Kr(Kr(e,n),Kr(i,s)),Kr(e<>>32-o,t)}function dn(n,e,t,i,o,s,f){return Ls(e&t|~e&i,n,e,o,s,f)}function pn(n,e,t,i,o,s,f){return Ls(e&i|t&~i,n,e,o,s,f)}function gn(n,e,t,i,o,s,f){return Ls(e^t^i,n,e,o,s,f)}function mn(n,e,t,i,o,s,f){return Ls(t^(e|~i),n,e,o,s,f)}function Qu(n){var e,t=n.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=n.length;e+=64)yo(i,Gf(n.substring(e-64,e)));n=n.substring(e-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=n.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(yo(i,o),e=0;e<16;e++)o[e]=0;return o[14]=8*t,yo(i,o),i}function Gf(n){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=n.charCodeAt(e)+(n.charCodeAt(e+1)<<8)+(n.charCodeAt(e+2)<<16)+(n.charCodeAt(e+3)<<24);return t}var ou="0123456789abcdef".split("");function Yf(n){for(var e="",t=0;t<4;t++)e+=ou[n>>8*t+4&15]+ou[n>>8*t&15];return e}function Jf(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Co(n){return Qu(n).map(Jf).join("")}var $f=function(n){for(var e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}return n+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 Fo(n,e){var t,i,o,s;if(n!==t){for(var f=(o=n,s=1+(256/n.length|0),new Array(s+1).join(o)),u=[],c=0;c<256;c++)u[c]=c;var d=0;for(c=0;c<256;c++){var m=u[c];d=(d+m+f.charCodeAt(c))%256,u[c]=u[d],u[d]=m}t=n,i=u}else u=i;var A=e.length,P=0,p=0,B="";for(c=0;c€/\f©þdSiz";var s=(e+this.padding).substr(0,32),f=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,f),this.P=-(1+(255^o)),this.encryptionKey=Co(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Fo(this.encryptionKey,this.padding)}function qi(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var e="",t=n.length,i=0;i126?"#"+("0"+o.toString(16)).slice(-2):n[i]}return e}function uu(n){if(Se(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,i,o){if(o=o||!1,typeof t!="string"||typeof i!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var s=Math.random().toString(35);return e[t][s]=[i,!!o],s},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),o=[];for(var s in e[t]){var f=e[t][s];try{f[0].apply(n,i)}catch(u){Jt.console&&Le.error("jsPDF PubSub Error",u.message,u)}f[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function _s(n){if(!(this instanceof _s))return new _s(n);var e="opacity,stroke-opacity".split(",");for(var t in n)n.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=n[t]);this.id="",this.objectNumber=-1}function th(n,e){this.gState=n,this.matrix=e,this.id="",this.objectNumber=-1}function bi(n,e,t,i,o){if(!(this instanceof bi))return new bi(n,e,t,i,o);this.type=n==="axial"?2:3,this.coords=e,this.colors=t,th.call(this,i,o)}function Ui(n,e,t,i,o){if(!(this instanceof Ui))return new Ui(n,e,t,i,o);this.boundingBox=n,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,th.call(this,i,o)}function Tt(n){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],o=arguments[2],s=arguments[3],f=[],u=1,c=16,d="S",m=null;Se(n=n||{})==="object"&&(t=n.orientation,i=n.unit||i,o=n.format||o,s=n.compress||n.compressPdf||s,(m=n.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),u=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(e=n.precision),n.floatPrecision!==void 0&&(c=n.floatPrecision),d=n.defaultPathOperation||"S"),f=n.filters||(s===!0?["FlateEncode"]:f),i=i||"mm",t=(""+(t||"P")).toLowerCase();var A=n.putOnlyUsedFonts||!1,P={},p={internal:{},__private__:{}};p.__private__.PubSub=uu;var B="1.3",O=p.__private__.getPdfVersion=function(){return B};p.__private__.setPdfVersion=function(l){B=l};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(l){return M[l]};o=o||"a4";var G="compat",Y="advanced",D=G;function ot(){this.saveGraphicsState(),k(new Gt(ee,0,0,-ee,0,si()*ee).toString()+" cm"),this.setFontSize(this.getFontSize()/ee),d="n",D=Y}function yt(){this.restoreGraphicsState(),d="S",D=G}var gt=p.__private__.combineFontStyleAndFontWeight=function(l,b){if(l=="bold"&&b=="normal"||l=="bold"&&b==400||l=="normal"&&b=="italic"||l=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(l=b==400||b==="normal"?l==="italic"?"italic":"normal":b!=700&&b!=="bold"||l!=="normal"?(b==700?"bold":b)+""+l:"bold"),l};p.advancedAPI=function(l){var b=D===G;return b&&ot.call(this),typeof l!="function"||(l(this),b&&yt.call(this)),this},p.compatAPI=function(l){var b=D===Y;return b&&yt.call(this),typeof l!="function"||(l(this),b&&ot.call(this)),this},p.isAdvancedAPI=function(){return D===Y};var tt,z=function(l){if(D!==Y)throw new Error(l+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},et=p.roundToPrecision=p.__private__.roundToPrecision=function(l,b){var F=e||b;if(isNaN(l)||isNaN(F))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return l.toFixed(F).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof c=="number"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return et(l,c)}:c==="smart"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return et(l,l>-1&&l<1?16:5)}:function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return et(l,16)};var N=p.f2=p.__private__.f2=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f2");return et(l,2)},E=p.__private__.f3=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f3");return et(l,3)},q=p.scale=p.__private__.scale=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.scale");return D===G?l*ee:D===Y?l:void 0},U=function(l){return q(function(b){return D===G?si()-b:D===Y?b:void 0}(l))};p.__private__.setPrecision=p.setPrecision=function(l){typeof parseInt(l,10)=="number"&&(e=parseInt(l,10))};var rt,ct="00000000000000000000000000000000",pt=p.__private__.getFileId=function(){return ct},nt=p.__private__.setFileId=function(l){return ct=l!==void 0&&/^[a-fA-F0-9]{32}$/.test(l)?l.toUpperCase():ct.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(Ke=new Di(m.userPermissions,m.userPassword,m.ownerPassword,ct)),ct};p.setFileId=function(l){return nt(l),this},p.getFileId=function(){return pt()};var ft=p.__private__.convertDateToPDFDate=function(l){var b=l.getTimezoneOffset(),F=b<0?"+":"-",T=Math.floor(Math.abs(b/60)),$=Math.abs(b%60),ut=[F,R(T),"'",R($),"'"].join("");return["D:",l.getFullYear(),R(l.getMonth()+1),R(l.getDate()),R(l.getHours()),R(l.getMinutes()),R(l.getSeconds()),ut].join("")},At=p.__private__.convertPDFDateToDate=function(l){var b=parseInt(l.substr(2,4),10),F=parseInt(l.substr(6,2),10)-1,T=parseInt(l.substr(8,2),10),$=parseInt(l.substr(10,2),10),ut=parseInt(l.substr(12,2),10),mt=parseInt(l.substr(14,2),10);return new Date(b,F,T,$,ut,mt,0)},xt=p.__private__.setCreationDate=function(l){var b;if(l===void 0&&(l=new Date),l instanceof Date)b=ft(l);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(l))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=l}return rt=b},x=p.__private__.getCreationDate=function(l){var b=rt;return l==="jsDate"&&(b=At(rt)),b};p.setCreationDate=function(l){return xt(l),this},p.getCreationDate=function(l){return x(l)};var j,R=p.__private__.padd2=function(l){return("0"+parseInt(l)).slice(-2)},V=p.__private__.padd2Hex=function(l){return("00"+(l=l.toString())).substr(l.length)},J=0,Q=[],it=[],at=0,dt=[],_t=[],St=!1,kt=it;p.__private__.setCustomOutputDestination=function(l){St=!0,kt=l};var zt=function(l){St||(kt=l)};p.__private__.resetCustomOutputDestination=function(){St=!1,kt=it};var k=p.__private__.out=function(l){return l=l.toString(),at+=l.length+1,kt.push(l),kt},Lt=p.__private__.write=function(l){return k(arguments.length===1?l.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(l){for(var b=l.length,F=new ArrayBuffer(b),T=new Uint8Array(F);b--;)T[b]=l.charCodeAt(b);return F},Ht=[["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 Ht};var vt=n.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(l){return vt=D===Y?l/ee:l,this};var Wt,It=p.__private__.getFontSize=p.getFontSize=function(){return D===G?vt:vt*ee},Ut=n.R2L||!1;p.__private__.setR2L=p.setR2L=function(l){return Ut=l,this},p.__private__.getR2L=p.getR2L=function(){return Ut};var Dt,be=p.__private__.setZoomMode=function(l){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(l))Wt=l;else if(isNaN(l)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(l)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+l+'" is not recognized.');Wt=l}else Wt=parseInt(l,10)};p.__private__.getZoomMode=function(){return Wt};var ue,Zt=p.__private__.setPageMode=function(l){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(l)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+l+'" is not recognized.');Dt=l};p.__private__.getPageMode=function(){return Dt};var ce=p.__private__.setLayoutMode=function(l){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(l)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+l+'" is not recognized.');ue=l};p.__private__.getLayoutMode=function(){return ue},p.__private__.setDisplayMode=p.setDisplayMode=function(l,b,F){return be(l),ce(b),Zt(F),this};var he={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(l){if(Object.keys(he).indexOf(l)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return he[l]},p.__private__.getDocumentProperties=function(){return he},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(l){for(var b in he)he.hasOwnProperty(b)&&l[b]&&(he[b]=l[b]);return this},p.__private__.setDocumentProperty=function(l,b){if(Object.keys(he).indexOf(l)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return he[l]=b};var jt,ee,Rt,De,pe,se={},oe={},Fe=[],qt={},ke={},Yt={},Qt={},Ee=null,le=0,Vt=[],ve=new uu(p),Zr=n.hotfixes||[],cn={},dr={},tr=[],Gt=function l(b,F,T,$,ut,mt){if(!(this instanceof l))return new l(b,F,T,$,ut,mt);isNaN(b)&&(b=1),isNaN(F)&&(F=0),isNaN(T)&&(T=0),isNaN($)&&($=1),isNaN(ut)&&(ut=0),isNaN(mt)&&(mt=0),this._matrix=[b,F,T,$,ut,mt]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Gt.prototype.join=function(l){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(l)},Gt.prototype.multiply=function(l){var b=l.sx*this.sx+l.shy*this.shx,F=l.sx*this.shy+l.shy*this.sy,T=l.shx*this.sx+l.sy*this.shx,$=l.shx*this.shy+l.sy*this.sy,ut=l.tx*this.sx+l.ty*this.shx+this.tx,mt=l.tx*this.shy+l.ty*this.sy+this.ty;return new Gt(b,F,T,$,ut,mt)},Gt.prototype.decompose=function(){var l=this.sx,b=this.shy,F=this.shx,T=this.sy,$=this.tx,ut=this.ty,mt=Math.sqrt(l*l+b*b),Ft=(l/=mt)*F+(b/=mt)*T;F-=l*Ft,T-=b*Ft;var Bt=Math.sqrt(F*F+T*T);return Ft/=Bt,l*(T/=Bt)>16&255,T=Bt>>8&255,$=255&Bt}if(T===void 0||ut===void 0&&F===T&&T===$)b=typeof F=="string"?F+" "+mt[0]:l.precision===2?N(F/255)+" "+mt[0]:E(F/255)+" "+mt[0];else if(ut===void 0||Se(ut)==="object"){if(ut&&!isNaN(ut.a)&&ut.a===0)return["1.","1.","1.",mt[1]].join(" ");b=typeof F=="string"?[F,T,$,mt[1]].join(" "):l.precision===2?[N(F/255),N(T/255),N($/255),mt[1]].join(" "):[E(F/255),E(T/255),E($/255),mt[1]].join(" ")}else b=typeof F=="string"?[F,T,$,ut,mt[2]].join(" "):l.precision===2?[N(F),N(T),N($),N(ut),mt[2]].join(" "):[E(F),E(T),E($),E(ut),mt[2]].join(" ");return b},Vn=p.__private__.getFilters=function(){return f},Bn=p.__private__.putStream=function(l){var b=(l=l||{}).data||"",F=l.filters||Vn(),T=l.alreadyAppliedFilters||[],$=l.addLength1||!1,ut=b.length,mt=l.objectId,Ft=function(Xe){return Xe};if(m!==null&&mt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ft=Ke.encryptor(mt,0));var Bt={};F===!0&&(F=["FlateEncode"]);var $t=l.additionalKeyValues||[],ne=(Bt=Tt.API.processDataByFilters!==void 0?Tt.API.processDataByFilters(b,F):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(Bt.data.length!==0&&($t.push({key:"Length",value:Bt.data.length}),$===!0&&$t.push({key:"Length1",value:ut})),ne.length!=0)if(ne.split("/").length-1==1)$t.push({key:"Filter",value:ne});else{$t.push({key:"Filter",value:"["+ne+"]"});for(var ge=0;ge<$t.length;ge+=1)if($t[ge].key==="DecodeParms"){for(var je=[],Je=0;Je>"),Bt.data.length!==0&&(k("stream"),k(Ft(Bt.data)),k("endstream"))},ti=p.__private__.putPage=function(l){var b=l.number,F=l.data,T=l.objId,$=l.contentsObjId;an(T,!0),k("<>"),k("endobj");var ut=F.join(` `);return D===Y&&(ut+=` Q`),an($,!0),Bn({data:ut,filters:Vn(),objectId:$}),k("endobj"),T},nr=p.__private__.putPages=function(){var l,b,F=[];for(l=1;l<=le;l++)Vt[l].objId=nn(),Vt[l].contentsObjId=nn();for(l=1;l<=le;l++)F.push(ti({number:l,data:_t[l],objId:Vt[l].objId,contentsObjId:Vt[l].contentsObjId,mediaBox:Vt[l].mediaBox,cropBox:Vt[l].cropBox,bleedBox:Vt[l].bleedBox,trimBox:Vt[l].trimBox,artBox:Vt[l].artBox,userUnit:Vt[l].userUnit,rootDictionaryObjId:Or,resourceDictionaryObjId:Hn}));an(Or,!0),k("<>"),k("endobj"),ve.publish("postPutPages")},ei=function(l){ve.publish("putFont",{font:l,out:k,newObject:Be,putStream:Bn}),l.isAlreadyPutted!==!0&&(l.objectNumber=Be(),k("<<"),k("/Type /Font"),k("/BaseFont /"+qi(l.postScriptName)),k("/Subtype /Type1"),typeof l.encoding=="string"&&k("/Encoding /"+l.encoding),k("/FirstChar 32"),k("/LastChar 255"),k(">>"),k("endobj"))},Ai=function(l){l.objectNumber=Be();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[tt(l.x),tt(l.y),tt(l.x+l.width),tt(l.y+l.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+l.matrix.toString()+"]"});var F=l.pages[1].join(` `);Bn({data:F,additionalKeyValues:b,objectId:l.objectNumber}),k("endobj")},Ni=function(l,b){b||(b=21);var F=Be(),T=function(mt,Ft){var Bt,$t=[],ne=1/(Ft-1);for(Bt=0;Bt<1;Bt+=ne)$t.push(Bt);if($t.push(1),mt[0].offset!=0){var ge={offset:0,color:mt[0].color};mt.unshift(ge)}if(mt[mt.length-1].offset!=1){var je={offset:1,color:mt[mt.length-1].color};mt.push(je)}for(var Je="",Pe=0,Xe=0;Xe<$t.length;Xe++){for(Bt=$t[Xe];Bt>mt[Pe+1].offset;)Pe++;var $e=mt[Pe].offset,sn=(Bt-$e)/(mt[Pe+1].offset-$e),Ar=mt[Pe].color,Yn=mt[Pe+1].color;Je+=V(Math.round((1-sn)*Ar[0]+sn*Yn[0]).toString(16))+V(Math.round((1-sn)*Ar[1]+sn*Yn[1]).toString(16))+V(Math.round((1-sn)*Ar[2]+sn*Yn[2]).toString(16))}return Je.trim()}(l.colors,b),$=[];$.push({key:"FunctionType",value:"0"}),$.push({key:"Domain",value:"[0.0 1.0]"}),$.push({key:"Size",value:"["+b+"]"}),$.push({key:"BitsPerSample",value:"8"}),$.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Bn({data:T,additionalKeyValues:$,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:F}),k("endobj"),l.objectNumber=Be(),k("<< /ShadingType "+l.type),k("/ColorSpace /DeviceRGB");var ut="/Coords ["+tt(parseFloat(l.coords[0]))+" "+tt(parseFloat(l.coords[1]))+" ";l.type===2?ut+=tt(parseFloat(l.coords[2]))+" "+tt(parseFloat(l.coords[3])):ut+=tt(parseFloat(l.coords[2]))+" "+tt(parseFloat(l.coords[3]))+" "+tt(parseFloat(l.coords[4]))+" "+tt(parseFloat(l.coords[5])),k(ut+="]"),l.matrix&&k("/Matrix ["+l.matrix.toString()+"]"),k("/Function "+F+" 0 R"),k("/Extend [true true]"),k(">>"),k("endobj")},Li=function(l,b){var F=nn(),T=Be();b.push({resourcesOid:F,objectOid:T}),l.objectNumber=T;var $=[];$.push({key:"Type",value:"/Pattern"}),$.push({key:"PatternType",value:"1"}),$.push({key:"PaintType",value:"1"}),$.push({key:"TilingType",value:"1"}),$.push({key:"BBox",value:"["+l.boundingBox.map(tt).join(" ")+"]"}),$.push({key:"XStep",value:tt(l.xStep)}),$.push({key:"YStep",value:tt(l.yStep)}),$.push({key:"Resources",value:F+" 0 R"}),l.matrix&&$.push({key:"Matrix",value:"["+l.matrix.toString()+"]"}),Bn({data:l.stream,additionalKeyValues:$,objectId:l.objectNumber}),k("endobj")},Ss=function(l){for(var b in l.objectNumber=Be(),k("<<"),l)switch(b){case"opacity":k("/ca "+N(l[b]));break;case"stroke-opacity":k("/CA "+N(l[b]))}k(">>"),k("endobj")},Yi=function(l){an(l.resourcesOid,!0),k("<<"),k("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var b in k("/Font <<"),se)se.hasOwnProperty(b)&&(A===!1||A===!0&&P.hasOwnProperty(b))&&k("/"+b+" "+se[b].objectNumber+" 0 R");k(">>")}(),function(){if(Object.keys(qt).length>0){for(var b in k("/Shading <<"),qt)qt.hasOwnProperty(b)&&qt[b]instanceof bi&&qt[b].objectNumber>=0&&k("/"+b+" "+qt[b].objectNumber+" 0 R");ve.publish("putShadingPatternDict"),k(">>")}}(),function(b){if(Object.keys(qt).length>0){for(var F in k("/Pattern <<"),qt)qt.hasOwnProperty(F)&&qt[F]instanceof p.TilingPattern&&qt[F].objectNumber>=0&&qt[F].objectNumber>")}}(l.objectOid),function(){if(Object.keys(Yt).length>0){var b;for(b in k("/ExtGState <<"),Yt)Yt.hasOwnProperty(b)&&Yt[b].objectNumber>=0&&k("/"+b+" "+Yt[b].objectNumber+" 0 R");ve.publish("putGStateDict"),k(">>")}}(),function(){for(var b in k("/XObject <<"),cn)cn.hasOwnProperty(b)&&cn[b].objectNumber>=0&&k("/"+b+" "+cn[b].objectNumber+" 0 R");ve.publish("putXobjectDict"),k(">>")}(),k(">>"),k("endobj")},La=function(l){oe[l.fontName]=oe[l.fontName]||{},oe[l.fontName][l.fontStyle]=l.id},Sa=function(l,b,F,T,$){var ut={id:"F"+(Object.keys(se).length+1).toString(10),postScriptName:l,fontName:b,fontStyle:F,encoding:T,isStandardFont:$||!1,metadata:{}};return ve.publish("addFont",{font:ut,instance:this}),se[ut.id]=ut,La(ut),ut.id},Mn=p.__private__.pdfEscape=p.pdfEscape=function(l,b){return function(F,T){var $,ut,mt,Ft,Bt,$t,ne,ge,je;if(mt=(T=T||{}).sourceEncoding||"Unicode",Bt=T.outputEncoding,(T.autoencode||Bt)&&se[jt].metadata&&se[jt].metadata[mt]&&se[jt].metadata[mt].encoding&&(Ft=se[jt].metadata[mt].encoding,!Bt&&se[jt].encoding&&(Bt=se[jt].encoding),!Bt&&Ft.codePages&&(Bt=Ft.codePages[0]),typeof Bt=="string"&&(Bt=Ft[Bt]),Bt)){for(ne=!1,$t=[],$=0,ut=F.length;$>8&&(ne=!0);F=$t.join("")}for($=F.length;ne===void 0&&$!==0;)F.charCodeAt($-1)>>8&&(ne=!0),$--;if(!ne)return F;for($t=T.noBOM?[]:[254,255],$=0,ut=F.length;$>8)>>8)throw new Error("Character at position "+$+" of string '"+F+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");$t.push(je),$t.push(ge-(je<<8))}return String.fromCharCode.apply(void 0,$t)}(l,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ji=p.__private__.beginPage=function(l){_t[++le]=[],Vt[le]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(l[0]),topRightY:Number(l[1])}},Pa(le),zt(_t[j])},ka=function(l,b){var F,T,$;switch(t=b||t,typeof l=="string"&&(F=S(l.toLowerCase()),Array.isArray(F)&&(T=F[0],$=F[1])),Array.isArray(l)&&(T=l[0]*ee,$=l[1]*ee),isNaN(T)&&(T=o[0],$=o[1]),(T>14400||$>14400)&&(Le.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),$=Math.min(14400,$)),o=[T,$],t.substr(0,1)){case"l":$>T&&(o=[$,T]);break;case"p":T>$&&(o=[$,T])}Ji(o),Kt(Xi),k(Ii),Qi!==0&&k(Qi+" J"),ta!==0&&k(ta+" j"),ve.publish("addPage",{pageNumber:le})},$i=function(l){l>0&&l<=le&&(_t.splice(l,1),Vt.splice(l,1),le--,j>le&&(j=le),this.setPage(j))},Pa=function(l){l>0&&l<=le&&(j=l)},Ia=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return _t.length-1},Ca=function(l,b,F){var T,$=void 0;return F=F||{},l=l!==void 0?l:se[jt].fontName,b=b!==void 0?b:se[jt].fontStyle,T=l.toLowerCase(),oe[T]!==void 0&&oe[T][b]!==void 0?$=oe[T][b]:oe[l]!==void 0&&oe[l][b]!==void 0?$=oe[l][b]:F.disableWarning===!1&&Le.warn("Unable to look up font label for font '"+l+"', '"+b+"'. Refer to getFontList() for available fonts."),$||F.noFallback||($=oe.times[b])==null&&($=oe.times.normal),$},rr=p.__private__.putInfo=function(){var l=Be(),b=function(T){return T};for(var F in m!==null&&(b=Ke.encryptor(l,0)),k("<<"),k("/Producer ("+Mn(b("jsPDF "+Tt.version))+")"),he)he.hasOwnProperty(F)&&he[F]&&k("/"+F.substr(0,1).toUpperCase()+F.substr(1)+" ("+Mn(b(he[F]))+")");k("/CreationDate ("+Mn(b(rt))+")"),k(">>"),k("endobj")},Si=p.__private__.putCatalog=function(l){var b=(l=l||{}).rootDictionaryObjId||Or;switch(Be(),k("<<"),k("/Type /Catalog"),k("/Pages "+b+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":k("/OpenAction [3 0 R /FitH null]");break;case"fullheight":k("/OpenAction [3 0 R /FitV null]");break;case"fullpage":k("/OpenAction [3 0 R /Fit]");break;case"original":k("/OpenAction [3 0 R /XYZ null null 1]");break;default:var F=""+Wt;F.substr(F.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&k("/OpenAction [3 0 R /XYZ null null "+N(Wt)+"]")}switch(ue||(ue="continuous"),ue){case"continuous":k("/PageLayout /OneColumn");break;case"single":k("/PageLayout /SinglePage");break;case"two":case"twoleft":k("/PageLayout /TwoColumnLeft");break;case"tworight":k("/PageLayout /TwoColumnRight")}Dt&&k("/PageMode /"+Dt),ve.publish("putCatalog"),k(">>"),k("endobj")},ks=p.__private__.putTrailer=function(){k("trailer"),k("<<"),k("/Size "+(J+1)),k("/Root "+J+" 0 R"),k("/Info "+(J-1)+" 0 R"),m!==null&&k("/Encrypt "+Ke.oid+" 0 R"),k("/ID [ <"+ct+"> <"+ct+"> ]"),k(">>")},Ye=p.__private__.putHeader=function(){k("%PDF-"+B),k("%ºß¬à")},Fa=p.__private__.putXRef=function(){var l="0000000000";k("xref"),k("0 "+(J+1)),k("0000000000 65535 f ");for(var b=1;b<=J;b++)typeof Q[b]=="function"?k((l+Q[b]()).slice(-10)+" 00000 n "):Q[b]!==void 0?k((l+Q[b]).slice(-10)+" 00000 n "):k("0000000000 00000 n ")},ir=p.__private__.buildDocument=function(){var l;J=0,at=0,it=[],Q=[],dt=[],Or=nn(),Hn=nn(),zt(it),ve.publish("buildDocument"),Ye(),nr(),function(){ve.publish("putAdditionalObjects");for(var F=0;F"),k("/O <"+Ke.toHexString(Ke.O)+">"),k("/P "+Ke.P),k(">>"),k("endobj")),rr(),Si();var b=at;return Fa(),ks(),k("startxref"),k(""+b),k("%%EOF"),zt(_t[j]),it.join(` `)},ki=p.__private__.getBlob=function(l){return new Blob([ae(l)],{type:"application/pdf"})},Ea=p.output=p.__private__.output=(jn=function(l,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",l){case void 0:return ir();case"save":p.save(b.filename);break;case"arraybuffer":return ae(ir());case"blob":return ki(ir());case"bloburi":case"bloburl":if(Jt.URL!==void 0&&typeof Jt.URL.createObjectURL=="function")return Jt.URL&&Jt.URL.createObjectURL(ki(ir()))||void 0;Le.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var F="",T=ir();try{F=su(T)}catch{F=su(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+b.filename+";base64,"+F;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var $="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ut=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&($=b.pdfObjectUrl,ut="");var mt='