const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-CjeRDqhL.js","./index-ypPUoCfO.js","./index-Dw7ALnar.css"])))=>i.map(i=>d[i]); var Kh=Object.defineProperty;var Xh=(r,e,t)=>e in r?Kh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var we=(r,e,t)=>Xh(r,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as yo,a as Zs}from"./index-ypPUoCfO.js";function Zh(r){if(Array.isArray(r))return r}function Qh(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var i,o,s,f,l=[],c=!0,d=!1;try{if(s=(t=t.call(r)).next,e!==0)for(;!(c=(i=s.call(t)).done)&&(l.push(i.value),l.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 l}}function wl(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])})(),Qs={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 Po{constructor(e=ic,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 o=t.offset?t.offset>>>0:0,s=e.byteLength-o;let f=o;(ArrayBuffer.isView(e)||e instanceof Po)&&(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=Qs[t].BYTES_PER_ELEMENT*e,o=this.byteOffset+this.offset,s=this.buffer.slice(o,o+i);if(this.littleEndian===ac&&t!=="uint8"&&t!=="int8"){const l=new Uint8Array(this.buffer.slice(o,o+i));l.reverse();const c=new Qs[t](l.buffer);return this.offset+=i,c.reverse(),c}const f=new Qs[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 Wi(r){let e=r.length;for(;--e>=0;)r[e]=0}const sc=3,oc=258,Iu=29,lc=256,uc=lc+1+Iu,Cu=30,hc=512,cc=new Array((uc+2)*2);Wi(cc);const fc=new Array(Cu*2);Wi(fc);const dc=new Array(hc);Wi(dc);const pc=new Array(oc-sc+1);Wi(pc);const gc=new Array(Iu);Wi(gc);const mc=new Array(Cu);Wi(mc);const bc=(r,e,t,i)=>{let o=r&65535|0,s=r>>>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 xo=bc;const vc=()=>{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},wc=new Uint32Array(vc()),yc=(r,e,t,i)=>{const o=wc,s=i+t;r^=-1;for(let f=i;f>>8^o[(r^e[f])&255];return r^-1};var cn=yc,_o={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"},Fu={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 xc=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);var _c=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)xc(t,i)&&(r[i]=t[i])}}return r},Ac=r=>{let e=0;for(let i=0,o=r.length;i=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;ya[254]=ya[254]=1;var Nc=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let e,t,i,o,s,f=r.length,l=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 Lc=(r,e)=>{if(e<65534&&r.subarray&&Ou)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,o;const s=new Array(t*2);for(o=0,i=0;i4){s[o++]=65533,i+=l-1;continue}for(f&=l===2?31:l===3?15:7;l>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 Lc(s,o)},kc=(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+ya[r[t]]>e?t:e},Ao={string2buf:Nc,buf2string:Sc,utf8border:kc};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 Ic=Pc;const Za=16209,Cc=16191;var Fc=function(e,t){let i,o,s,f,l,c,d,m,A,k,p,B,E,R,S,Y,V,D,ut,yt,ft,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),l=s+(e.avail_out-257),c=N.dmax,d=N.wsize,m=N.whave,A=N.wnext,k=N.window,p=N.hold,B=N.bits,E=N.lencode,R=N.distcode,S=(1<>>24,p>>>=D,B-=D,D=V>>>16&255,D===0)et[s++]=V&65535;else if(D&16){ut=V&65535,D&=15,D&&(B>>=D,B-=D),B<15&&(p+=z[i++]<>>24,p>>>=D,B-=D,D=V>>>16&255,D&16){if(yt=V&65535,D&=15,Bc){e.msg="invalid distance too far back",N.mode=Za;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=Za;break t}if(ft=0,tt=k,A===0){if(ft+=d-D,D2;)et[s++]=tt[ft++],et[s++]=tt[ft++],et[s++]=tt[ft++],ut-=3;ut&&(et[s++]=tt[ft++],ut>1&&(et[s++]=tt[ft++]))}else{ft=s-yt;do et[s++]=et[ft++],et[s++]=et[ft++],et[s++]=et[ft++],ut-=3;while(ut>2);ut&&(et[s++]=et[ft++],ut>1&&(et[s++]=et[ft++]))}}else if((D&64)===0){V=R[(V&65535)+(p&(1<>3,i-=ut,B-=ut<<3,p&=(1<{const c=l.bits;let d=0,m=0,A=0,k=0,p=0,B=0,E=0,R=0,S=0,Y=0,V,D,ut,yt,ft,tt=null,z;const et=new Uint16Array(ji+1),N=new Uint16Array(ji+1);let F=null,H,U,it;for(d=0;d<=ji;d++)et[d]=0;for(m=0;m=1&&et[k]===0;k--);if(p>k&&(p=k),k===0)return o[s++]=1<<24|64<<16|0,o[s++]=1<<24|64<<16|0,l.bits=1,0;for(A=1;A0&&(r===Nl||k!==1))return-1;for(N[1]=0,d=1;d_l||r===Ll&&S>Al)return 1;for(;;){H=d-E,f[m]+1=z?(U=F[f[m]-z],it=tt[f[m]-z]):(U=96,it=0),V=1<>E)+D]=H<<24|U<<16|it|0;while(D!==0);for(V=1<>=1;if(V!==0?(Y&=V-1,Y+=V):Y=0,m++,--et[d]===0){if(d===k)break;d=e[t+f[m]]}if(d>p&&(Y&yt)!==ut){for(E===0&&(E=p),ft+=A,B=d-E,R=1<_l||r===Ll&&S>Al)return 1;ut=Y&yt,o[ut]=p<<24|B<<16|ft-s|0}}return Y!==0&&(o[ft+Y]=d-E<<24|64<<16|0),l.bits=p,0};var wa=Rc;const Mc=0,ju=1,Bu=2,{Z_FINISH:Sl,Z_BLOCK:Tc,Z_TREES:Qa,Z_OK:pi,Z_STREAM_END:Dc,Z_NEED_DICT:qc,Z_STREAM_ERROR:zr,Z_DATA_ERROR:Ru,Z_MEM_ERROR:Mu,Z_BUF_ERROR:Uc,Z_DEFLATED:kl}=Fu,ms=16180,Pl=16181,Il=16182,Cl=16183,Fl=16184,El=16185,Ol=16186,jl=16187,Bl=16188,Rl=16189,ds=16190,In=16191,eo=16192,Ml=16193,ro=16194,Tl=16195,Dl=16196,ql=16197,Ul=16198,ts=16199,es=16200,zl=16201,Hl=16202,Wl=16203,Vl=16204,Gl=16205,no=16206,Yl=16207,Jl=16208,Ee=16209,Tu=16210,Du=16211,zc=852,Hc=592,Wc=15,Vc=Wc,$l=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function Gc(){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 gi=r=>{if(!r)return 1;const e=r.state;return!e||e.strm!==r||e.modeDu?1:0},qu=r=>{if(gi(r))return zr;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=ms,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(zc),e.distcode=e.distdyn=new Int32Array(Hc),e.sane=1,e.back=-1,pi},Uu=r=>{if(gi(r))return zr;const e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,qu(r)},zu=(r,e)=>{let t;if(gi(r))return zr;const i=r.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?zr:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,Uu(r))},Hu=(r,e)=>{if(!r)return zr;const t=new Gc;r.state=t,t.strm=r,t.window=null,t.mode=ms;const i=zu(r,e);return i!==pi&&(r.state=null),i},Yc=r=>Hu(r,Vc);let Kl=!0,io,ao;const Jc=r=>{if(Kl){io=new Int32Array(512),ao=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(wa(ju,r.lens,0,288,io,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;wa(Bu,r.lens,0,32,ao,0,r.work,{bits:5}),Kl=!1}r.lencode=io,r.lenbits=9,r.distcode=ao,r.distbits=5},Wu=(r,e,t,i)=>{let o;const s=r.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,l,c,d,m,A,k,p,B,E,R=0,S,Y,V,D,ut,yt,ft,tt;const z=new Uint8Array(4);let et,N;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(gi(r)||!r.output||!r.input&&r.avail_in!==0)return zr;t=r.state,t.mode===In&&(t.mode=eo),f=r.next_out,o=r.output,c=r.avail_out,s=r.next_in,i=r.input,l=r.avail_in,d=t.hold,m=t.bits,A=l,k=c,tt=pi;t:for(;;)switch(t.mode){case ms:if(t.wrap===0){t.mode=eo;break}for(;m<16;){if(l===0)break t;l--,d+=i[s++]<>>8&255,t.check=cn(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){r.msg="incorrect header check",t.mode=Ee;break}if((d&15)!==kl){r.msg="unknown compression method",t.mode=Ee;break}if(d>>>=4,m-=4,ft=(d&15)+8,t.wbits===0&&(t.wbits=ft),ft>15||ft>t.wbits){r.msg="invalid window size",t.mode=Ee;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=cn(t.check,z,2,0)),d=0,m=0,t.mode=Il;case Il:for(;m<32;){if(l===0)break t;l--,d+=i[s++]<>>8&255,z[2]=d>>>16&255,z[3]=d>>>24&255,t.check=cn(t.check,z,4,0)),d=0,m=0,t.mode=Cl;case Cl:for(;m<16;){if(l===0)break t;l--,d+=i[s++]<>8),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=cn(t.check,z,2,0)),d=0,m=0,t.mode=Fl;case Fl:if(t.flags&1024){for(;m<16;){if(l===0)break t;l--,d+=i[s++]<>>8&255,t.check=cn(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>l&&(p=l),p&&(t.head&&(ft=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),ft)),t.flags&512&&t.wrap&4&&(t.check=cn(t.check,i,p,s)),l-=p,s+=p,t.length-=p),t.length))break t;t.length=0,t.mode=Ol;case Ol:if(t.flags&2048){if(l===0)break t;p=0;do ft=i[s+p++],t.head&&ft&&t.length<65536&&(t.head.name+=String.fromCharCode(ft));while(ft&&p>9&1,t.head.done=!0),r.adler=t.check=0,t.mode=In;break;case Rl:for(;m<32;){if(l===0)break t;l--,d+=i[s++]<>>=m&7,m-=m&7,t.mode=no;break}for(;m<3;){if(l===0)break t;l--,d+=i[s++]<>>=1,m-=1,d&3){case 0:t.mode=Ml;break;case 1:if(Jc(t),t.mode=ts,e===Qa){d>>>=2,m-=2;break t}break;case 2:t.mode=Dl;break;case 3:r.msg="invalid block type",t.mode=Ee}d>>>=2,m-=2;break;case Ml:for(d>>>=m&7,m-=m&7;m<32;){if(l===0)break t;l--,d+=i[s++]<>>16^65535)){r.msg="invalid stored block lengths",t.mode=Ee;break}if(t.length=d&65535,d=0,m=0,t.mode=ro,e===Qa)break t;case ro:t.mode=Tl;case Tl:if(p=t.length,p){if(p>l&&(p=l),p>c&&(p=c),p===0)break t;o.set(i.subarray(s,s+p),f),l-=p,s+=p,c-=p,f+=p,t.length-=p;break}t.mode=In;break;case Dl:for(;m<14;){if(l===0)break t;l--,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){r.msg="too many length or distance symbols",t.mode=Ee;break}t.have=0,t.mode=ql;case ql:for(;t.have>>=3,m-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,et={bits:t.lenbits},tt=wa(Mc,t.lens,0,19,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){r.msg="invalid code lengths set",t.mode=Ee;break}t.have=0,t.mode=Ul;case Ul:for(;t.have>>24,Y=R>>>16&255,V=R&65535,!(S<=m);){if(l===0)break t;l--,d+=i[s++]<>>=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=Ee;break}ft=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,ft=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=S+7;m>>=S,m-=S,ft=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=Ee;break}for(;p--;)t.lens[t.have++]=ft}}if(t.mode===Ee)break;if(t.lens[256]===0){r.msg="invalid code -- missing end-of-block",t.mode=Ee;break}if(t.lenbits=9,et={bits:t.lenbits},tt=wa(ju,t.lens,0,t.nlen,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){r.msg="invalid literal/lengths set",t.mode=Ee;break}if(t.distbits=6,t.distcode=t.distdyn,et={bits:t.distbits},tt=wa(Bu,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,et),t.distbits=et.bits,tt){r.msg="invalid distances set",t.mode=Ee;break}if(t.mode=ts,e===Qa)break t;case ts:t.mode=es;case es:if(l>=6&&c>=258){r.next_out=f,r.avail_out=c,r.next_in=s,r.avail_in=l,t.hold=d,t.bits=m,Fc(r,k),f=r.next_out,o=r.output,c=r.avail_out,s=r.next_in,i=r.input,l=r.avail_in,d=t.hold,m=t.bits,t.mode===In&&(t.back=-1);break}for(t.back=0;R=t.lencode[d&(1<>>24,Y=R>>>16&255,V=R&65535,!(S<=m);){if(l===0)break t;l--,d+=i[s++]<>D)],S=R>>>24,Y=R>>>16&255,V=R&65535,!(D+S<=m);){if(l===0)break t;l--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,t.length=V,Y===0){t.mode=Gl;break}if(Y&32){t.back=-1,t.mode=In;break}if(Y&64){r.msg="invalid literal/length code",t.mode=Ee;break}t.extra=Y&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(;R=t.distcode[d&(1<>>24,Y=R>>>16&255,V=R&65535,!(S<=m);){if(l===0)break t;l--,d+=i[s++]<>D)],S=R>>>24,Y=R>>>16&255,V=R&65535,!(D+S<=m);){if(l===0)break t;l--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,Y&64){r.msg="invalid distance code",t.mode=Ee;break}t.offset=V,t.extra=Y&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){r.msg="invalid distance too far back",t.mode=Ee;break}t.mode=Vl;case Vl:if(c===0)break t;if(p=k-c,t.offset>p){if(p=t.offset-p,p>t.whave&&t.sane){r.msg="invalid distance too far back",t.mode=Ee;break}p>t.wnext?(p-=t.wnext,B=t.wsize-p):B=t.wnext-p,p>t.length&&(p=t.length),E=t.window}else E=o,B=f-t.offset,p=t.length;p>c&&(p=c),c-=p,t.length-=p;do o[f++]=E[B++];while(--p);t.length===0&&(t.mode=es);break;case Gl:if(c===0)break t;o[f++]=t.length,c--,t.mode=es;break;case no:if(t.wrap){for(;m<32;){if(l===0)break t;l--,d|=i[s++]<{if(gi(r))return zr;let e=r.state;return e.window&&(e.window=null),r.state=null,pi},Xc=(r,e)=>{if(gi(r))return zr;const t=r.state;return(t.wrap&2)===0?zr:(t.head=e,e.done=!1,pi)},Zc=(r,e)=>{const t=e.length;let i,o,s;return gi(r)||(i=r.state,i.wrap!==0&&i.mode!==ds)?zr:i.mode===ds&&(o=1,o=xo(o,e,t,0),o!==i.check)?Ru:(s=Wu(r,e,t,t),s?(i.mode=Tu,Mu):(i.havedict=1,pi))};var Qc=Uu,tf=zu,ef=qu,rf=Yc,nf=Hu,af=$c,sf=Kc,of=Xc,lf=Zc,uf="pako inflate (from Nodeca project)",Cn={inflateReset:Qc,inflateReset2:tf,inflateResetKeep:ef,inflateInit:rf,inflateInit2:nf,inflate:af,inflateEnd:sf,inflateGetHeader:of,inflateSetDictionary:lf,inflateInfo:uf};function hf(){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 cf=hf;const Vu=Object.prototype.toString,{Z_NO_FLUSH:ff,Z_FINISH:df,Z_OK:xa,Z_STREAM_END:so,Z_NEED_DICT:oo,Z_STREAM_ERROR:pf,Z_DATA_ERROR:Xl,Z_MEM_ERROR:gf}=Fu;function _a(r){this.options=Eu.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 Ic,this.strm.avail_out=0;let t=Cn.inflateInit2(this.strm,e.windowBits);if(t!==xa)throw new Error(_o[t]);if(this.header=new cf,Cn.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Ao.string2buf(e.dictionary):Vu.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Cn.inflateSetDictionary(this.strm,e.dictionary),t!==xa)))throw new Error(_o[t])}_a.prototype.push=function(r,e){const t=this.strm,i=this.options.chunkSize,o=this.options.dictionary;let s,f,l;if(this.ended)return!1;for(e===~~e?f=e:f=e===!0?df:ff,Vu.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),s=Cn.inflate(t,f),s===oo&&o&&(s=Cn.inflateSetDictionary(t,o),s===xa?s=Cn.inflate(t,f):s===Xl&&(s=oo));t.avail_in>0&&s===so&&t.state.wrap>0&&r[t.next_in]!==0;)Cn.inflateReset(t),s=Cn.inflate(t,f);switch(s){case pf:case Xl:case oo:case gf:return this.onEnd(s),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||s===so))if(this.options.to==="string"){let c=Ao.utf8border(t.output,t.next_out),d=t.next_out-c,m=Ao.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===xa&&l===0)){if(s===so)return s=Cn.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};_a.prototype.onData=function(r){this.chunks.push(r)};_a.prototype.onEnd=function(r){r===xa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Eu.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function mf(r,e){const t=new _a(e);if(t.push(r),t.err)throw t.msg||_o[t.err];return t.result}var bf=_a,vf=mf,wf={Inflate:bf,inflate:vf};const{Inflate:yf,inflate:xf}=wf;var Zl=yf,_f=xf;const Gu=[];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;Gu[r]=e}const Ql=4294967295;function Af(r,e,t){let i=r;for(let o=0;o>>8;return i}function Nf(r,e){return(Af(Ql,r,e)^Ql)>>>0}function tu(r,e,t){const i=r.readUint32(),o=Nf(new Uint8Array(r.buffer,r.byteOffset+r.offset-e-4,e),e);if(o!==i)throw new Error(`CRC mismatch for chunk ${t}. Expected ${i}, found ${o}`)}function Yu(r,e,t){for(let i=0;i>1)&255}else{for(;s>1)&255;for(;s>1)&255}}function Xu(r,e,t,i,o){let s=0;if(t.length===0){for(;s=t||yt>=i))for(let ft=0;ft>8&255}const Ef=new Uint16Array([255]),Of=new Uint8Array(Ef.buffer),jf=Of[0]===255,Bf=new Uint8Array(0);function eu(r){const{data:e,width:t,height:i,channels:o,depth:s}=r,f=Math.ceil(s/8)*o,l=Math.ceil(s/8*o*t),c=new Uint8Array(i*l);let d=Bf,m=0,A,k;for(let p=0;p>8&255}const os=Uint8Array.of(137,80,78,71,13,10,26,10);function ru(r){if(!Mf(r.readBytes(os.length)))throw new Error("wrong PNG signature")}function Mf(r){if(r.length79)throw new Error("keyword length must be between 1 and 79")}const Uf=/^[\u0000-\u00FF]*$/;function zf(r){if(!Uf.test(r))throw new Error("invalid latin1 text")}function Hf(r,e,t){const i=Qu(e);r[i]=Wf(e,t-i.length-1)}function Qu(r){for(r.mark();r.readByte()!==Df;);const e=r.offset;r.reset();const t=Zu.decode(r.readBytes(e-r.offset-1));return r.skip(1),qf(t),t}function Wf(r,e){return Zu.decode(r.readBytes(e))}const jr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},lo={UNKNOWN:-1,DEFLATE:0},nu={UNKNOWN:-1,ADAPTIVE:0},uo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},rs={NONE:0,BACKGROUND:1,PREVIOUS:2},ho={SOURCE:0,OVER:1};class Vf extends Po{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: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=lo.UNKNOWN,this._filterMethod=nu.UNKNOWN,this._interlaceMethod=uo.UNKNOWN,this._colorType=jr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ru(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeChunk(t,i)}return this.decodeImage(),this._png}decodeApng(){for(ru(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 Tf:Hf(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=Gf(this.readUint8());const i=this.readUint8();this._colorType=i;let o;switch(i){case jr.GREYSCALE:o=1;break;case jr.TRUECOLOUR:o=3;break;case jr.INDEXED_COLOUR:o=1;break;case jr.GREYSCALE_ALPHA:o=2;break;case jr.TRUECOLOUR_ALPHA:o=4;break;case jr.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==lo.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+l)*this._png.channels,d=(f*i.width+l)*this._png.channels;return{index:c,frameIndex:d}};switch(i.blendOp){case ho.SOURCE:for(let f=0;f=200&&e.status<=299}function ns(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 ci=Yt.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==Yt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var i=Yt.URL||Yt.webkitURL,o=document.createElement("a");e=e||r.name||"download",o.download=e,o.rel="noopener",typeof r=="string"?(o.href=r,o.origin!==location.origin?au(o.href)?fo(r,e,t):ns(o,o.target="_blank"):ns(o)):(o.href=i.createObjectURL(r),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){ns(o)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(au(r))fo(r,e,t);else{var i=document.createElement("a");i.href=r,i.target="_blank",setTimeout(function(){ns(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}(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 fo(r,e,t);var o=r.type==="application/octet-stream",s=/constructor/i.test(Yt.HTMLElement)||Yt.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||o&&s)&&(typeof FileReader>"u"?"undefined":Se(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=f?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},l.readAsDataURL(r)}else{var c=Yt.URL||Yt.webkitURL,d=c.createObjectURL(r);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 th(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),c=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+l+c+d}}var ls=Yt.atob.bind(Yt),su=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 po(r,e){var t=r[0],i=r[1],o=r[2],s=r[3];t=dr(t,i,o,s,e[0],7,-680876936),s=dr(s,t,i,o,e[1],12,-389564586),o=dr(o,s,t,i,e[2],17,606105819),i=dr(i,o,s,t,e[3],22,-1044525330),t=dr(t,i,o,s,e[4],7,-176418897),s=dr(s,t,i,o,e[5],12,1200080426),o=dr(o,s,t,i,e[6],17,-1473231341),i=dr(i,o,s,t,e[7],22,-45705983),t=dr(t,i,o,s,e[8],7,1770035416),s=dr(s,t,i,o,e[9],12,-1958414417),o=dr(o,s,t,i,e[10],17,-42063),i=dr(i,o,s,t,e[11],22,-1990404162),t=dr(t,i,o,s,e[12],7,1804603682),s=dr(s,t,i,o,e[13],12,-40341101),o=dr(o,s,t,i,e[14],17,-1502002290),t=pr(t,i=dr(i,o,s,t,e[15],22,1236535329),o,s,e[1],5,-165796510),s=pr(s,t,i,o,e[6],9,-1069501632),o=pr(o,s,t,i,e[11],14,643717713),i=pr(i,o,s,t,e[0],20,-373897302),t=pr(t,i,o,s,e[5],5,-701558691),s=pr(s,t,i,o,e[10],9,38016083),o=pr(o,s,t,i,e[15],14,-660478335),i=pr(i,o,s,t,e[4],20,-405537848),t=pr(t,i,o,s,e[9],5,568446438),s=pr(s,t,i,o,e[14],9,-1019803690),o=pr(o,s,t,i,e[3],14,-187363961),i=pr(i,o,s,t,e[8],20,1163531501),t=pr(t,i,o,s,e[13],5,-1444681467),s=pr(s,t,i,o,e[2],9,-51403784),o=pr(o,s,t,i,e[7],14,1735328473),t=gr(t,i=pr(i,o,s,t,e[12],20,-1926607734),o,s,e[5],4,-378558),s=gr(s,t,i,o,e[8],11,-2022574463),o=gr(o,s,t,i,e[11],16,1839030562),i=gr(i,o,s,t,e[14],23,-35309556),t=gr(t,i,o,s,e[1],4,-1530992060),s=gr(s,t,i,o,e[4],11,1272893353),o=gr(o,s,t,i,e[7],16,-155497632),i=gr(i,o,s,t,e[10],23,-1094730640),t=gr(t,i,o,s,e[13],4,681279174),s=gr(s,t,i,o,e[0],11,-358537222),o=gr(o,s,t,i,e[3],16,-722521979),i=gr(i,o,s,t,e[6],23,76029189),t=gr(t,i,o,s,e[9],4,-640364487),s=gr(s,t,i,o,e[12],11,-421815835),o=gr(o,s,t,i,e[15],16,530742520),t=mr(t,i=gr(i,o,s,t,e[2],23,-995338651),o,s,e[0],6,-198630844),s=mr(s,t,i,o,e[7],10,1126891415),o=mr(o,s,t,i,e[14],15,-1416354905),i=mr(i,o,s,t,e[5],21,-57434055),t=mr(t,i,o,s,e[12],6,1700485571),s=mr(s,t,i,o,e[3],10,-1894986606),o=mr(o,s,t,i,e[10],15,-1051523),i=mr(i,o,s,t,e[1],21,-2054922799),t=mr(t,i,o,s,e[8],6,1873313359),s=mr(s,t,i,o,e[15],10,-30611744),o=mr(o,s,t,i,e[6],15,-1560198380),i=mr(i,o,s,t,e[13],21,1309151649),t=mr(t,i,o,s,e[4],6,-145523070),s=mr(s,t,i,o,e[11],10,-1120210379),o=mr(o,s,t,i,e[2],15,718787259),i=mr(i,o,s,t,e[9],21,-343485551),r[0]=Gn(t,r[0]),r[1]=Gn(i,r[1]),r[2]=Gn(o,r[2]),r[3]=Gn(s,r[3])}function bs(r,e,t,i,o,s){return e=Gn(Gn(e,r),Gn(i,s)),Gn(e<>>32-o,t)}function dr(r,e,t,i,o,s,f){return bs(e&t|~e&i,r,e,o,s,f)}function pr(r,e,t,i,o,s,f){return bs(e&i|t&~i,r,e,o,s,f)}function gr(r,e,t,i,o,s,f){return bs(e^t^i,r,e,o,s,f)}function mr(r,e,t,i,o,s,f){return bs(t^(e|~i),r,e,o,s,f)}function eh(r){var e,t=r.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)po(i,Jf(r.substring(e-64,e)));r=r.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]|=r.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(po(i,o),e=0;e<16;e++)o[e]=0;return o[14]=8*t,po(i,o),i}function Jf(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 ou="0123456789abcdef".split("");function $f(r){for(var e="",t=0;t<4;t++)e+=ou[r>>8*t+4&15]+ou[r>>8*t&15];return e}function Kf(r){return String.fromCharCode(255&r,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function No(r){return eh(r).map(Kf).join("")}var Xf=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 Lo(r,e){var t,i,o,s;if(r!==t){for(var f=(o=r,s=1+(256/r.length|0),new Array(s+1).join(o)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var m=l[c];d=(d+m+f.charCodeAt(c))%256,l[c]=l[d],l[d]=m}t=r,i=l}else l=i;var A=e.length,k=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=No(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Lo(this.encryptionKey,this.padding)}function Ti(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"+o.toString(16)).slice(-2):r[i]}return e}function uu(r){if(Se(r)!=="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(r,i)}catch(l){Yt.console&&Le.error("jsPDF PubSub Error",l.message,l)}f[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function ps(r){if(!(this instanceof ps))return new ps(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 rh(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function fi(r,e,t,i,o){if(!(this instanceof fi))return new fi(r,e,t,i,o);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,rh.call(this,i,o)}function Di(r,e,t,i,o){if(!(this instanceof Di))return new Di(r,e,t,i,o);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,rh.call(this,i,o)}function Mt(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],o=arguments[2],s=arguments[3],f=[],l=1,c=16,d="S",m=null;Se(r=r||{})==="object"&&(t=r.orientation,i=r.unit||i,o=r.format||o,s=r.compress||r.compressPdf||s,(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&&(c=r.floatPrecision),d=r.defaultPathOperation||"S"),f=r.filters||(s===!0?["FlateEncode"]:f),i=i||"mm",t=(""+(t||"P")).toLowerCase();var A=r.putOnlyUsedFonts||!1,k={},p={internal:{},__private__:{}};p.__private__.PubSub=uu;var B="1.3",E=p.__private__.getPdfVersion=function(){return B};p.__private__.setPdfVersion=function(u){B=u};var R={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 R};var S=p.__private__.getPageFormat=function(u){return R[u]};o=o||"a4";var Y="compat",V="advanced",D=Y;function ut(){this.saveGraphicsState(),O(new Wt(Vt,0,0,-Vt,0,Sr()*Vt).toString()+" cm"),this.setFontSize(this.getFontSize()/Vt),d="n",D=V}function yt(){this.restoreGraphicsState(),d="S",D=Y}var ft=p.__private__.combineFontStyleAndFontWeight=function(u,v){if(u=="bold"&&v=="normal"||u=="bold"&&v==400||u=="normal"&&v=="italic"||u=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(u=v==400||v==="normal"?u==="italic"?"italic":"normal":v!=700&&v!=="bold"||u!=="normal"?(v==700?"bold":v)+""+u:"bold"),u};p.advancedAPI=function(u){var v=D===Y;return v&&ut.call(this),typeof u!="function"||(u(this),v&&yt.call(this)),this},p.compatAPI=function(u){var v=D===V;return v&&yt.call(this),typeof u!="function"||(u(this),v&&ut.call(this)),this},p.isAdvancedAPI=function(){return D===V};var tt,z=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,v){var C=e||v;if(isNaN(u)||isNaN(C))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(C).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof c=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return et(u,c)}:c==="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)},F=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===Y?u*Vt:D===V?u:void 0},U=function(u){return H(function(v){return D===Y?Sr()-v:D===V?v:void 0}(u))};p.__private__.setPrecision=p.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(e=parseInt(u,10))};var it,dt="00000000000000000000000000000000",vt=p.__private__.getFileId=function(){return dt},rt=p.__private__.setFileId=function(u){return dt=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():dt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(De=new Mi(m.userPermissions,m.userPassword,m.ownerPassword,dt)),dt};p.setFileId=function(u){return rt(u),this},p.getFileId=function(){return vt()};var pt=p.__private__.convertDateToPDFDate=function(u){var v=u.getTimezoneOffset(),C=v<0?"+":"-",T=Math.floor(Math.abs(v/60)),J=Math.abs(v%60),ht=[C,M(T),"'",M(J),"'"].join("");return["D:",u.getFullYear(),M(u.getMonth()+1),M(u.getDate()),M(u.getHours()),M(u.getMinutes()),M(u.getSeconds()),ht].join("")},Nt=p.__private__.convertPDFDateToDate=function(u){var v=parseInt(u.substr(2,4),10),C=parseInt(u.substr(6,2),10)-1,T=parseInt(u.substr(8,2),10),J=parseInt(u.substr(10,2),10),ht=parseInt(u.substr(12,2),10),bt=parseInt(u.substr(14,2),10);return new Date(v,C,T,J,ht,bt,0)},_t=p.__private__.setCreationDate=function(u){var v;if(u===void 0&&(u=new Date),u instanceof Date)v=pt(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");v=u}return it=v},x=p.__private__.getCreationDate=function(u){var v=it;return u==="jsDate"&&(v=Nt(it)),v};p.setCreationDate=function(u){return _t(u),this},p.getCreationDate=function(u){return x(u)};var j,M=p.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},G=p.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},$=0,Q=[],lt=[],nt=0,gt=[],At=[],kt=!1,Pt=lt;p.__private__.setCustomOutputDestination=function(u){kt=!0,Pt=u};var st=function(u){kt||(Pt=u)};p.__private__.resetCustomOutputDestination=function(){kt=!1,Pt=lt};var O=p.__private__.out=function(u){return u=u.toString(),nt+=u.length+1,Pt.push(u),Pt},le=p.__private__.write=function(u){return O(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},re=p.__private__.getArrayBuffer=function(u){for(var v=u.length,C=new ArrayBuffer(v),T=new Uint8Array(C);v--;)T[v]=u.charCodeAt(v);return C},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 xt=r.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(u){return xt=D===V?u/Vt:u,this};var Tt,St=p.__private__.getFontSize=p.getFontSize=function(){return D===Y?xt:xt*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 Xt,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 ye=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.');Xt=u};p.__private__.getLayoutMode=function(){return Xt},p.__private__.setDisplayMode=p.setDisplayMode=function(u,v,C){return de(u),ye(v),Zt(C),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 v in ie)ie.hasOwnProperty(v)&&u[v]&&(ie[v]=u[v]);return this},p.__private__.setDocumentProperty=function(u,v){if(Object.keys(ie).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ie[u]=v};var Dt,Vt,qt,ke,pe,Bt={},Qt={},_e=[],Ht={},ue={},te={},Te={},Xe=null,Ae=0,Jt=[],me=new uu(p),Jn=r.hotfixes||[],cr={},gn={},tn=[],Wt=function u(v,C,T,J,ht,bt){if(!(this instanceof u))return new u(v,C,T,J,ht,bt);isNaN(v)&&(v=1),isNaN(C)&&(C=0),isNaN(T)&&(T=0),isNaN(J)&&(J=1),isNaN(ht)&&(ht=0),isNaN(bt)&&(bt=0),this._matrix=[v,C,T,J,ht,bt]};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(tt).join(u)},Wt.prototype.multiply=function(u){var v=u.sx*this.sx+u.shy*this.shx,C=u.sx*this.shy+u.shy*this.sy,T=u.shx*this.sx+u.sy*this.shx,J=u.shx*this.shy+u.sy*this.sy,ht=u.tx*this.sx+u.ty*this.shx+this.tx,bt=u.tx*this.shy+u.ty*this.sy+this.ty;return new Wt(v,C,T,J,ht,bt)},Wt.prototype.decompose=function(){var u=this.sx,v=this.shy,C=this.shx,T=this.sy,J=this.tx,ht=this.ty,bt=Math.sqrt(u*u+v*v),Ft=(u/=bt)*C+(v/=bt)*T;C-=u*Ft,T-=v*Ft;var jt=Math.sqrt(C*C+T*T);return Ft/=jt,u*(T/=jt)>16&255,T=jt>>8&255,J=255&jt}if(T===void 0||ht===void 0&&C===T&&T===J)v=typeof C=="string"?C+" "+bt[0]:u.precision===2?N(C/255)+" "+bt[0]:F(C/255)+" "+bt[0];else if(ht===void 0||Se(ht)==="object"){if(ht&&!isNaN(ht.a)&&ht.a===0)return["1.","1.","1.",bt[1]].join(" ");v=typeof C=="string"?[C,T,J,bt[1]].join(" "):u.precision===2?[N(C/255),N(T/255),N(J/255),bt[1]].join(" "):[F(C/255),F(T/255),F(J/255),bt[1]].join(" ")}else v=typeof C=="string"?[C,T,J,ht,bt[2]].join(" "):u.precision===2?[N(C),N(T),N(J),N(ht),bt[2]].join(" "):[F(C),F(T),F(J),F(ht),bt[2]].join(" ");return v},Vr=p.__private__.getFilters=function(){return f},Mr=p.__private__.putStream=function(u){var v=(u=u||{}).data||"",C=u.filters||Vr(),T=u.alreadyAppliedFilters||[],J=u.addLength1||!1,ht=v.length,bt=u.objectId,Ft=function(Ze){return Ze};if(m!==null&&bt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ft=De.encryptor(bt,0));var jt={};C===!0&&(C=["FlateEncode"]);var Gt=u.additionalKeyValues||[],ae=(jt=Mt.API.processDataByFilters!==void 0?Mt.API.processDataByFilters(v,C):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(jt.data.length!==0&&(Gt.push({key:"Length",value:jt.data.length}),J===!0&&Gt.push({key:"Length1",value:ht})),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&&(O("stream"),O(Ft(jt.data)),O("endstream"))},Kn=p.__private__.putPage=function(u){var v=u.number,C=u.data,T=u.objId,J=u.contentsObjId;sr(T,!0),O("<>"),O("endobj");var ht=C.join(` `);return D===V&&(ht+=` Q`),sr(J,!0),Mr({data:ht,filters:Vr(),objectId:J}),O("endobj"),T},rn=p.__private__.putPages=function(){var u,v,C=[];for(u=1;u<=Ae;u++)Jt[u].objId=nr(),Jt[u].contentsObjId=nr();for(u=1;u<=Ae;u++)C.push(Kn({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:Fn,resourceDictionaryObjId:Hr}));sr(Fn,!0),O("<>"),O("endobj"),me.publish("postPutPages")},Xn=function(u){me.publish("putFont",{font:u,out:O,newObject:je,putStream:Mr}),u.isAlreadyPutted!==!0&&(u.objectNumber=je(),O("<<"),O("/Type /Font"),O("/BaseFont /"+Ti(u.postScriptName)),O("/Subtype /Type1"),typeof u.encoding=="string"&&O("/Encoding /"+u.encoding),O("/FirstChar 32"),O("/LastChar 255"),O(">>"),O("endobj"))},bi=function(u){u.objectNumber=je();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[tt(u.x),tt(u.y),tt(u.x+u.width),tt(u.y+u.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var C=u.pages[1].join(` `);Mr({data:C,additionalKeyValues:v,objectId:u.objectNumber}),O("endobj")},vi=function(u,v){v||(v=21);var C=je(),T=function(bt,Ft){var jt,Gt=[],ae=1/(Ft-1);for(jt=0;jt<1;jt+=ae)Gt.push(jt);if(Gt.push(1),bt[0].offset!=0){var ge={offset:0,color:bt[0].color};bt.unshift(ge)}if(bt[bt.length-1].offset!=1){var Oe={offset:1,color:bt[bt.length-1].color};bt.push(Oe)}for(var $e="",xe=0,Ze=0;Zebt[xe+1].offset;)xe++;var Ke=bt[xe].offset,or=(jt-Ke)/(bt[xe+1].offset-Ke),xn=bt[xe].color,jn=bt[xe+1].color;$e+=G(Math.round((1-or)*xn[0]+or*jn[0]).toString(16))+G(Math.round((1-or)*xn[1]+or*jn[1]).toString(16))+G(Math.round((1-or)*xn[2]+or*jn[2]).toString(16))}return $e.trim()}(u.colors,v),J=[];J.push({key:"FunctionType",value:"0"}),J.push({key:"Domain",value:"[0.0 1.0]"}),J.push({key:"Size",value:"["+v+"]"}),J.push({key:"BitsPerSample",value:"8"}),J.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),J.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Mr({data:T,additionalKeyValues:J,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),O("endobj"),u.objectNumber=je(),O("<< /ShadingType "+u.type),O("/ColorSpace /DeviceRGB");var ht="/Coords ["+tt(parseFloat(u.coords[0]))+" "+tt(parseFloat(u.coords[1]))+" ";u.type===2?ht+=tt(parseFloat(u.coords[2]))+" "+tt(parseFloat(u.coords[3])):ht+=tt(parseFloat(u.coords[2]))+" "+tt(parseFloat(u.coords[3]))+" "+tt(parseFloat(u.coords[4]))+" "+tt(parseFloat(u.coords[5])),O(ht+="]"),u.matrix&&O("/Matrix ["+u.matrix.toString()+"]"),O("/Function "+C+" 0 R"),O("/Extend [true true]"),O(">>"),O("endobj")},wi=function(u,v){var C=nr(),T=je();v.push({resourcesOid:C,objectOid:T}),u.objectNumber=T;var J=[];J.push({key:"Type",value:"/Pattern"}),J.push({key:"PatternType",value:"1"}),J.push({key:"PaintType",value:"1"}),J.push({key:"TilingType",value:"1"}),J.push({key:"BBox",value:"["+u.boundingBox.map(tt).join(" ")+"]"}),J.push({key:"XStep",value:tt(u.xStep)}),J.push({key:"YStep",value:tt(u.yStep)}),J.push({key:"Resources",value:C+" 0 R"}),u.matrix&&J.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),Mr({data:u.stream,additionalKeyValues:J,objectId:u.objectNumber}),O("endobj")},vs=function(u){for(var v in u.objectNumber=je(),O("<<"),u)switch(v){case"opacity":O("/ca "+N(u[v]));break;case"stroke-opacity":O("/CA "+N(u[v]))}O(">>"),O("endobj")},Vi=function(u){sr(u.resourcesOid,!0),O("<<"),O("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var v in O("/Font <<"),Bt)Bt.hasOwnProperty(v)&&(A===!1||A===!0&&k.hasOwnProperty(v))&&O("/"+v+" "+Bt[v].objectNumber+" 0 R");O(">>")}(),function(){if(Object.keys(Ht).length>0){for(var v in O("/Shading <<"),Ht)Ht.hasOwnProperty(v)&&Ht[v]instanceof fi&&Ht[v].objectNumber>=0&&O("/"+v+" "+Ht[v].objectNumber+" 0 R");me.publish("putShadingPatternDict"),O(">>")}}(),function(v){if(Object.keys(Ht).length>0){for(var C in O("/Pattern <<"),Ht)Ht.hasOwnProperty(C)&&Ht[C]instanceof p.TilingPattern&&Ht[C].objectNumber>=0&&Ht[C].objectNumber>")}}(u.objectOid),function(){if(Object.keys(te).length>0){var v;for(v in O("/ExtGState <<"),te)te.hasOwnProperty(v)&&te[v].objectNumber>=0&&O("/"+v+" "+te[v].objectNumber+" 0 R");me.publish("putGStateDict"),O(">>")}}(),function(){for(var v in O("/XObject <<"),cr)cr.hasOwnProperty(v)&&cr[v].objectNumber>=0&&O("/"+v+" "+cr[v].objectNumber+" 0 R");me.publish("putXobjectDict"),O(">>")}(),O(">>"),O("endobj")},Aa=function(u){Qt[u.fontName]=Qt[u.fontName]||{},Qt[u.fontName][u.fontStyle]=u.id},Na=function(u,v,C,T,J){var ht={id:"F"+(Object.keys(Bt).length+1).toString(10),postScriptName:u,fontName:v,fontStyle:C,encoding:T,isStandardFont:J||!1,metadata:{}};return me.publish("addFont",{font:ht,instance:this}),Bt[ht.id]=ht,Aa(ht),ht.id},Tr=p.__private__.pdfEscape=p.pdfEscape=function(u,v){return function(C,T){var J,ht,bt,Ft,jt,Gt,ae,ge,Oe;if(bt=(T=T||{}).sourceEncoding||"Unicode",jt=T.outputEncoding,(T.autoencode||jt)&&Bt[Dt].metadata&&Bt[Dt].metadata[bt]&&Bt[Dt].metadata[bt].encoding&&(Ft=Bt[Dt].metadata[bt].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=[],J=0,ht=C.length;J>8&&(ae=!0);C=Gt.join("")}for(J=C.length;ae===void 0&&J!==0;)C.charCodeAt(J-1)>>8&&(ae=!0),J--;if(!ae)return C;for(Gt=T.noBOM?[]:[254,255],J=0,ht=C.length;J>8)>>8)throw new Error("Character at position "+J+" of string '"+C+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Gt.push(Oe),Gt.push(ge-(Oe<<8))}return String.fromCharCode.apply(void 0,Gt)}(u,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gi=p.__private__.beginPage=function(u){At[++Ae]=[],Jt[Ae]={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])}},Sa(Ae),st(At[j])},La=function(u,v){var C,T,J;switch(t=v||t,typeof u=="string"&&(C=S(u.toLowerCase()),Array.isArray(C)&&(T=C[0],J=C[1])),Array.isArray(u)&&(T=u[0]*Vt,J=u[1]*Vt),isNaN(T)&&(T=o[0],J=o[1]),(T>14400||J>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),J=Math.min(14400,J)),o=[T,J],t.substr(0,1)){case"l":J>T&&(o=[J,T]);break;case"p":T>J&&(o=[J,T])}Gi(o),ks(Xi),O(xi),Qi!==0&&O(Qi+" J"),ta!==0&&O(ta+" j"),me.publish("addPage",{pageNumber:Ae})},Yi=function(u){u>0&&u<=Ae&&(At.splice(u,1),Jt.splice(u,1),Ae--,j>Ae&&(j=Ae),this.setPage(j))},Sa=function(u){u>0&&u<=Ae&&(j=u)},ka=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return At.length-1},Pa=function(u,v,C){var T,J=void 0;return C=C||{},u=u!==void 0?u:Bt[Dt].fontName,v=v!==void 0?v:Bt[Dt].fontStyle,T=u.toLowerCase(),Qt[T]!==void 0&&Qt[T][v]!==void 0?J=Qt[T][v]:Qt[u]!==void 0&&Qt[u][v]!==void 0?J=Qt[u][v]:C.disableWarning===!1&&Le.warn("Unable to look up font label for font '"+u+"', '"+v+"'. Refer to getFontList() for available fonts."),J||C.noFallback||(J=Qt.times[v])==null&&(J=Qt.times.normal),J},yi=p.__private__.putInfo=function(){var u=je(),v=function(T){return T};for(var C in m!==null&&(v=De.encryptor(u,0)),O("<<"),O("/Producer ("+Tr(v("jsPDF "+Mt.version))+")"),ie)ie.hasOwnProperty(C)&&ie[C]&&O("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+Tr(v(ie[C]))+")");O("/CreationDate ("+Tr(v(it))+")"),O(">>"),O("endobj")},ws=p.__private__.putCatalog=function(u){var v=(u=u||{}).rootDictionaryObjId||Fn;switch(je(),O("<<"),O("/Type /Catalog"),O("/Pages "+v+" 0 R"),Tt||(Tt="fullwidth"),Tt){case"fullwidth":O("/OpenAction [3 0 R /FitH null]");break;case"fullheight":O("/OpenAction [3 0 R /FitV null]");break;case"fullpage":O("/OpenAction [3 0 R /Fit]");break;case"original":O("/OpenAction [3 0 R /XYZ null null 1]");break;default:var C=""+Tt;C.substr(C.length-1)==="%"&&(Tt=parseInt(Tt)/100),typeof Tt=="number"&&O("/OpenAction [3 0 R /XYZ null null "+N(Tt)+"]")}switch(Xt||(Xt="continuous"),Xt){case"continuous":O("/PageLayout /OneColumn");break;case"single":O("/PageLayout /SinglePage");break;case"two":case"twoleft":O("/PageLayout /TwoColumnLeft");break;case"tworight":O("/PageLayout /TwoColumnRight")}Ut&&O("/PageMode /"+Ut),me.publish("putCatalog"),O(">>"),O("endobj")},Je=p.__private__.putTrailer=function(){O("trailer"),O("<<"),O("/Size "+($+1)),O("/Root "+$+" 0 R"),O("/Info "+($-1)+" 0 R"),m!==null&&O("/Encrypt "+De.oid+" 0 R"),O("/ID [ <"+dt+"> <"+dt+"> ]"),O(">>")},Ia=p.__private__.putHeader=function(){O("%PDF-"+B),O("%ºß¬à")},Ca=p.__private__.putXRef=function(){var u="0000000000";O("xref"),O("0 "+($+1)),O("0000000000 65535 f ");for(var v=1;v<=$;v++)typeof Q[v]=="function"?O((u+Q[v]()).slice(-10)+" 00000 n "):Q[v]!==void 0?O((u+Q[v]).slice(-10)+" 00000 n "):O("0000000000 00000 n ")},vn=p.__private__.buildDocument=function(){var u;$=0,nt=0,lt=[],Q=[],gt=[],Fn=nr(),Hr=nr(),st(lt),me.publish("buildDocument"),Ia(),rn(),function(){me.publish("putAdditionalObjects");for(var C=0;C"),O("/O <"+De.toHexString(De.O)+">"),O("/P "+De.P),O(">>"),O("endobj")),yi(),ws();var v=nt;return Ca(),Je(),O("startxref"),O(""+v),O("%%EOF"),st(At[j]),lt.join(` `)},Zn=p.__private__.getBlob=function(u){return new Blob([re(u)],{type:"application/pdf"})},Gr=p.output=p.__private__.output=(Rr=function(u,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",u){case void 0:return vn();case"save":p.save(v.filename);break;case"arraybuffer":return re(vn());case"blob":return Zn(vn());case"bloburi":case"bloburl":if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL=="function")return Yt.URL&&Yt.URL.createObjectURL(Zn(vn()))||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 C="",T=vn();try{C=su(T)}catch{C=su(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+v.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var J="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ht=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(J=v.pdfObjectUrl,ht="");var bt='