p3x-redis-ui-material
Version:
💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity
78 lines • 388 kB
JavaScript
import'./main-HNF44SV3.js';function o(e){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(e)}var sr=Uint8Array,qn=Uint16Array,Pl=Int32Array,El=new sr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Il=new sr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),uf=new sr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vf=function(t,n){for(var e=new qn(31),r=0;r<31;++r)e[r]=n+=1<<t[r-1];for(var a=new Pl(e[30]),r=1;r<30;++r)for(var o=e[r];o<e[r+1];++o)a[o]=o-e[r]<<5|r;return {b:e,r:a}},mf=vf(El,2),x1=mf.b,Ll=mf.r;x1[28]=258,Ll[258]=28;var bf=vf(Il,0),df=bf.r,Sl=new qn(32768);for(be=0;be<32768;++be)qr=(be&43690)>>1|(be&21845)<<1,qr=(qr&52428)>>2|(qr&13107)<<2,qr=(qr&61680)>>4|(qr&3855)<<4,Sl[be]=((qr&65280)>>8|(qr&255)<<8)>>1;var qr,be,ao=function(t,n,e){for(var r=t.length,a=0,o=new qn(n);a<r;++a)t[a]&&++o[t[a]-1];var f=new qn(n);for(a=1;a<n;++a)f[a]=f[a-1]+o[a-1]<<1;var l;for(l=new qn(r),a=0;a<r;++a)t[a]&&(l[a]=Sl[f[t[a]-1]++]>>15-t[a]);return l},Bi=new sr(288);for(be=0;be<144;++be)Bi[be]=8;var be;for(be=144;be<256;++be)Bi[be]=9;var be;for(be=256;be<280;++be)Bi[be]=7;var be;for(be=280;be<288;++be)Bi[be]=8;var be,hs=new sr(32);for(be=0;be<32;++be)hs[be]=5;var be,A1=ao(Bi,9);var N1=ao(hs,5);var wf=function(t){return (t+7)/8|0},L1=function(t,n,e){return (e==null||e>t.length)&&(e=t.length),new sr(t.subarray(n,e))};var Hr=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8;},ro=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16;},Nl=function(t,n){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var a=e.length,o=e.slice();if(!a)return {t:_f,l:0};if(a==1){var f=new sr(e[0].s+1);return f[e[0].s]=1,{t:f,l:1}}e.sort(function(it,mt){return it.f-mt.f}),e.push({s:-1,f:25001});var l=e[0],c=e[1],d=0,v=1,x=2;for(e[0]={s:-1,f:l.f+c.f,l,r:c};v!=a-1;)l=e[e[d].f<e[x].f?d++:x++],c=e[d!=v&&e[d].f<e[x].f?d++:x++],e[v++]={s:-1,f:l.f+c.f,l,r:c};for(var N=o[0].s,r=1;r<a;++r)o[r].s>N&&(N=o[r].s);var p=new qn(N+1),T=kl(e[v-1],p,0);if(T>n){var r=0,I=0,R=T-n,k=1<<R;for(o.sort(function(mt,dt){return p[dt.s]-p[mt.s]||mt.f-dt.f});r<a;++r){var G=o[r].s;if(p[G]>n)I+=k-(1<<T-p[G]),p[G]=n;else break}for(I>>=R;I>0;){var V=o[r].s;p[V]<n?I-=1<<n-p[V]++-1:++r;}for(;r>=0&&I;--r){var z=o[r].s;p[z]==n&&(--p[z],++I);}T=n;}return {t:new sr(p),l:T}},kl=function(t,n,e){return t.s==-1?Math.max(kl(t.l,n,e+1),kl(t.r,n,e+1)):n[t.s]=e},pf=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new qn(++n),r=0,a=t[0],o=1,f=function(c){e[r++]=c;},l=1;l<=n;++l)if(t[l]==a&&l!=n)++o;else {if(!a&&o>2){for(;o>138;o-=138)f(32754);o>2&&(f(o>10?o-11<<5|28690:o-3<<5|12305),o=0);}else if(o>3){for(f(a),--o;o>6;o-=6)f(8304);o>2&&(f(o-3<<5|8208),o=0);}for(;o--;)f(a);o=1,a=t[l];}return {c:e.subarray(0,r),n}},io=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},yf=function(t,n,e){var r=e.length,a=wf(n+2);t[a]=r&255,t[a+1]=r>>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var o=0;o<r;++o)t[a+o+4]=e[o];return (a+4+r)*8},gf=function(t,n,e,r,a,o,f,l,c,d,v){Hr(n,v++,e),++a[256];for(var x=Nl(a,15),N=x.t,p=x.l,T=Nl(o,15),I=T.t,R=T.l,k=pf(N),G=k.c,V=k.n,z=pf(I),it=z.c,mt=z.n,dt=new qn(19),K=0;K<G.length;++K)++dt[G[K]&31];for(var K=0;K<it.length;++K)++dt[it[K]&31];for(var M=Nl(dt,7),tt=M.t,L=M.l,O=19;O>4&&!tt[uf[O-1]];--O);var q=d+5<<3,U=io(a,Bi)+io(o,hs)+f,rt=io(a,N)+io(o,I)+f+14+3*O+io(dt,tt)+2*dt[16]+3*dt[17]+7*dt[18];if(c>=0&&q<=U&&q<=rt)return yf(n,v,t.subarray(c,c+d));var st,ft,nt,ut;if(Hr(n,v,1+(rt<U)),v+=2,rt<U){st=ao(N,p),ft=N,nt=ao(I,R),ut=I;var At=ao(tt,L);Hr(n,v,V-257),Hr(n,v+5,mt-1),Hr(n,v+10,O-4),v+=14;for(var K=0;K<O;++K)Hr(n,v+3*K,tt[uf[K]]);v+=3*O;for(var wt=[G,it],_=0;_<2;++_)for(var B=wt[_],K=0;K<B.length;++K){var j=B[K]&31;Hr(n,v,At[j]),v+=tt[j],j>15&&(Hr(n,v,B[K]>>5&127),v+=B[K]>>12);}}else st=A1,ft=Bi,nt=N1,ut=hs;for(var K=0;K<l;++K){var H=r[K];if(H>255){var j=H>>18&31;ro(n,v,st[j+257]),v+=ft[j+257],j>7&&(Hr(n,v,H>>23&31),v+=El[j]);var $=H&31;ro(n,v,nt[$]),v+=ut[$],$>3&&(ro(n,v,H>>5&8191),v+=Il[$]);}else ro(n,v,st[H]),v+=ft[H];}return ro(n,v,st[256]),v+ft[256]},S1=new Pl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_f=new sr(0),k1=function(t,n,e,r,a,o){var f=o.z||t.length,l=new sr(r+f+5*(1+Math.ceil(f/7e3))+a),c=l.subarray(r,l.length-a),d=o.l,v=(o.r||0)&7;if(n){v&&(c[0]=o.r>>3);for(var x=S1[n-1],N=x>>13,p=x&8191,T=(1<<e)-1,I=o.p||new qn(32768),R=o.h||new qn(T+1),k=Math.ceil(e/3),G=2*k,V=function(Dt){return (t[Dt]^t[Dt+1]<<k^t[Dt+2]<<G)&T},z=new Pl(25e3),it=new qn(288),mt=new qn(32),dt=0,K=0,M=o.i||0,tt=0,L=o.w||0,O=0;M+2<f;++M){var q=V(M),U=M&32767,rt=R[q];if(I[U]=rt,R[q]=U,L<=M){var st=f-M;if((dt>7e3||tt>24576)&&(st>423||!d)){v=gf(t,c,0,z,it,mt,K,tt,O,M-O,v),tt=dt=K=0,O=M;for(var ft=0;ft<286;++ft)it[ft]=0;for(var ft=0;ft<30;++ft)mt[ft]=0;}var nt=2,ut=0,At=p,wt=U-rt&32767;if(st>2&&q==V(M-wt))for(var _=Math.min(N,st)-1,B=Math.min(32767,M),j=Math.min(258,st);wt<=B&&--At&&U!=rt;){if(t[M+nt]==t[M+nt-wt]){for(var H=0;H<j&&t[M+H]==t[M+H-wt];++H);if(H>nt){if(nt=H,ut=wt,H>_)break;for(var $=Math.min(wt,H-2),J=0,ft=0;ft<$;++ft){var at=M-wt+ft&32767,ot=I[at],gt=at-ot&32767;gt>J&&(J=gt,rt=at);}}}U=rt,rt=I[U],wt+=U-rt&32767;}if(ut){z[tt++]=268435456|Ll[nt]<<18|df[ut];var xt=Ll[nt]&31,kt=df[ut]&31;K+=El[xt]+Il[kt],++it[257+xt],++mt[kt],L=M+nt,++dt;}else z[tt++]=t[M],++it[t[M]];}}for(M=Math.max(M,L);M<f;++M)z[tt++]=t[M],++it[t[M]];v=gf(t,c,d,z,it,mt,K,tt,O,M-O,v),d||(o.r=v&7|c[v/8|0]<<3,v-=7,o.h=R,o.p=I,o.i=M,o.w=L);}else {for(var M=o.w||0;M<f+d;M+=65535){var St=M+65535;St>=f&&(c[v/8|0]=d,St=f),v=yf(c,v+1,t.subarray(M,St));}o.i=f;}return L1(l,0,r+wf(v)+a)};var xf=function(){var t=1,n=0;return {p:function(e){for(var r=t,a=n,o=e.length|0,f=0;f!=o;){for(var l=Math.min(f+2655,o);f<l;++f)a+=r+=e[f];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16);}t=r,n=a;},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},P1=function(t,n,e,r,a){if(!a&&(a={l:1},n.dictionary)){var o=n.dictionary.subarray(-32768),f=new sr(o.length+t.length);f.set(o),f.set(t,o.length),t=f,a.w=o.length;}return k1(t,n.level==null?6:n.level,n.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,r,a)};var Af=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8;};var E1=function(t,n){var e=n.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var a=xf();a.p(n.dictionary),Af(t,2,a.d());}};function fs(t,n){n||(n={});var e=xf();e.p(t);var r=P1(t,n,n.dictionary?6:2,4);return E1(r,n),Af(r,r.length-4,e.d()),r}var I1=typeof TextDecoder<"u"&&new TextDecoder,C1=0;try{I1.decode(_f,{stream:!0}),C1=1;}catch(t){}function Nf(t){if(Array.isArray(t))return t}function Lf(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,a,o,f,l=[],c=true,d=false;try{if(o=(e=e.call(t)).next,n===0);else for(;!(c=(r=o.call(e)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(v){d=true,a=v;}finally{try{if(!c&&e.return!=null&&(f=e.return(),Object(f)!==f))return}finally{if(d)throw a}}return l}}function Cl(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function Sf(t,n){if(t){if(typeof t=="string")return Cl(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Cl(t,n):void 0}}function kf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fl(t,n){return Nf(t)||Lf(t,n)||Sf(t,n)||kf()}function Ol(t,n="utf8"){return new TextDecoder(n).decode(t)}var F1=new TextEncoder;function Pf(t){return F1.encode(t)}var O1=1024*8,T1=(()=>{let t=new Uint8Array(4),n=new Uint32Array(t.buffer);return !((n[0]=1)&t[0])})(),Tl={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},oo=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=O1,e={}){let r=false;typeof n=="number"?n=new ArrayBuffer(n):(r=true,this.lastWrittenByte=n.byteLength);let a=e.offset?e.offset>>>0:0,o=n.byteLength-a,f=a;(ArrayBuffer.isView(n)||n instanceof t)&&(n.byteLength!==n.buffer.byteLength&&(f=n.byteOffset+a),n=n.buffer),r?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=n,this.length=o,this.byteLength=o,this.byteOffset=f,this.offset=0,this.littleEndian=true,this._data=new DataView(this.buffer,f,o),this._mark=0,this._marks=[];}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=true,this}isBigEndian(){return !this.littleEndian}setBigEndian(){return this.littleEndian=false,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){let r=(this.offset+n)*2,a=new Uint8Array(r);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=r,this.byteLength=r,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(n=1){return this.readArray(n,"uint8")}readArray(n,e){let r=Tl[e].BYTES_PER_ELEMENT*n,a=this.byteOffset+this.offset,o=this.buffer.slice(a,a+r);if(this.littleEndian===T1&&e!=="uint8"&&e!=="int8"){let l=new Uint8Array(this.buffer.slice(a,a+r));l.reverse();let c=new Tl[e](l.buffer);return this.offset+=r,c.reverse(),c}let f=new Tl[e](o);return this.offset+=r,f}readInt16(){let n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){let n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){let n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){let n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){let n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){let n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){let n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){let n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let r=0;r<n;r++)e+=this.readChar();return e}readUtf8(n=1){return Ol(this.readBytes(n))}decodeText(n=1,e="utf8"){return Ol(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let e=0;e<n.length;e++)this._data.setUint8(this.offset++,n[e]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let e=0;e<n.length;e++)this.writeUint8(n.charCodeAt(e));return this}writeUtf8(n){return this.writeBytes(Pf(n))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset);}};function _a(t){let n=t.length;for(;--n>=0;)t[n]=0;}var M1=3,j1=258,ih=29,xo=256,po=xo+1+ih,ba=30,U1=512,Gr=new Array((po+2)*2);_a(Gr);var fo=new Array(ba*2);_a(fo);var go=new Array(U1);_a(go);var vo=new Array(j1-M1+1);_a(vo);var sh=new Array(ih);_a(sh);var ms=new Array(ba);_a(ms);var i2=(t,n,e,r)=>{let a=t&65535|0,o=t>>>16&65535|0,f=0;for(;e!==0;){f=e>2e3?2e3:e,e-=f;do a=a+n[r++]|0,o=o+a|0;while(--f);a%=65521,o%=65521;}return a|o<<16|0},bo=i2,a2=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t;}return n},o2=new Uint32Array(a2()),s2=(t,n,e,r)=>{let a=o2,o=r+e;t^=-1;for(let f=r;f<o;f++)t=t>>>8^a[(t^n[f])&255];return t^-1},on=s2,Di={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"},xa={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};var X2=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),J2=function(t){let n=Array.prototype.slice.call(arguments,1);for(;n.length;){let e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(let r in e)X2(e,r)&&(t[r]=e[r]);}}return t},Q2=t=>{let n=0;for(let r=0,a=t.length;r<a;r++)n+=t[r].length;let e=new Uint8Array(n);for(let r=0,a=0,o=t.length;r<o;r++){let f=t[r];e.set(f,a),a+=f.length;}return e},_s={assign:J2,flattenChunks:Q2},Oc=true;try{String.fromCharCode.apply(null,new Uint8Array(1));}catch(t){Oc=false;}var wo=new Uint8Array(256);for(let t=0;t<256;t++)wo[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;wo[254]=wo[254]=1;var t0=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,r,a,o,f=t.length,l=0;for(a=0;a<f;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<f&&(r=t.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(l),o=0,a=0;o<l;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<f&&(r=t.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),e<128?n[o++]=e:e<2048?(n[o++]=192|e>>>6,n[o++]=128|e&63):e<65536?(n[o++]=224|e>>>12,n[o++]=128|e>>>6&63,n[o++]=128|e&63):(n[o++]=240|e>>>18,n[o++]=128|e>>>12&63,n[o++]=128|e>>>6&63,n[o++]=128|e&63);return n},e0=(t,n)=>{if(n<65534&&t.subarray&&Oc)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let r=0;r<n;r++)e+=String.fromCharCode(t[r]);return e},n0=(t,n)=>{let e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let r,a,o=new Array(e*2);for(a=0,r=0;r<e;){let f=t[r++];if(f<128){o[a++]=f;continue}let l=wo[f];if(l>4){o[a++]=65533,r+=l-1;continue}for(f&=l===2?31:l===3?15:7;l>1&&r<e;)f=f<<6|t[r++]&63,l--;if(l>1){o[a++]=65533;continue}f<65536?o[a++]=f:(f-=65536,o[a++]=55296|f>>10&1023,o[a++]=56320|f&1023);}return e0(o,a)},r0=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+wo[t[e]]>n?e:n},yo={string2buf:t0,buf2string:n0,utf8border:r0};function i0(){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 Tc=i0;var us=16209,_0=16191,x0=function(n,e){let r,a,o,f,l,c,d,v,x,N,p,T,I,R,k,G,V,z,it,mt,dt,K,M,tt,L=n.state;r=n.next_in,M=n.input,a=r+(n.avail_in-5),o=n.next_out,tt=n.output,f=o-(e-n.avail_out),l=o+(n.avail_out-257),c=L.dmax,d=L.wsize,v=L.whave,x=L.wnext,N=L.window,p=L.hold,T=L.bits,I=L.lencode,R=L.distcode,k=(1<<L.lenbits)-1,G=(1<<L.distbits)-1;t:do{T<15&&(p+=M[r++]<<T,T+=8,p+=M[r++]<<T,T+=8),V=I[p&k];e:for(;;){if(z=V>>>24,p>>>=z,T-=z,z=V>>>16&255,z===0)tt[o++]=V&65535;else if(z&16){it=V&65535,z&=15,z&&(T<z&&(p+=M[r++]<<T,T+=8),it+=p&(1<<z)-1,p>>>=z,T-=z),T<15&&(p+=M[r++]<<T,T+=8,p+=M[r++]<<T,T+=8),V=R[p&G];n:for(;;){if(z=V>>>24,p>>>=z,T-=z,z=V>>>16&255,z&16){if(mt=V&65535,z&=15,T<z&&(p+=M[r++]<<T,T+=8,T<z&&(p+=M[r++]<<T,T+=8)),mt+=p&(1<<z)-1,mt>c){n.msg="invalid distance too far back",L.mode=us;break t}if(p>>>=z,T-=z,z=o-f,mt>z){if(z=mt-z,z>v&&L.sane){n.msg="invalid distance too far back",L.mode=us;break t}if(dt=0,K=N,x===0){if(dt+=d-z,z<it){it-=z;do tt[o++]=N[dt++];while(--z);dt=o-mt,K=tt;}}else if(x<z){if(dt+=d+x-z,z-=x,z<it){it-=z;do tt[o++]=N[dt++];while(--z);if(dt=0,x<it){z=x,it-=z;do tt[o++]=N[dt++];while(--z);dt=o-mt,K=tt;}}}else if(dt+=x-z,z<it){it-=z;do tt[o++]=N[dt++];while(--z);dt=o-mt,K=tt;}for(;it>2;)tt[o++]=K[dt++],tt[o++]=K[dt++],tt[o++]=K[dt++],it-=3;it&&(tt[o++]=K[dt++],it>1&&(tt[o++]=K[dt++]));}else {dt=o-mt;do tt[o++]=tt[dt++],tt[o++]=tt[dt++],tt[o++]=tt[dt++],it-=3;while(it>2);it&&(tt[o++]=tt[dt++],it>1&&(tt[o++]=tt[dt++]));}}else if((z&64)===0){V=R[(V&65535)+(p&(1<<z)-1)];continue n}else {n.msg="invalid distance code",L.mode=us;break t}break}}else if((z&64)===0){V=I[(V&65535)+(p&(1<<z)-1)];continue e}else if(z&32){L.mode=_0;break t}else {n.msg="invalid literal/length code",L.mode=us;break t}break}}while(r<a&&o<l);it=T>>3,r-=it,T-=it<<3,p&=(1<<T)-1,n.next_in=r,n.next_out=o,n.avail_in=r<a?5+(a-r):5-(r-a),n.avail_out=o<l?257+(l-o):257-(o-l),L.hold=p,L.bits=T;},ma=15,Mf=852,jf=592,Df=0,Ul=1,zf=2,A0=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),N0=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),L0=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),S0=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),k0=(t,n,e,r,a,o,f,l)=>{let c=l.bits,d=0,v=0,x=0,N=0,p=0,T=0,I=0,R=0,k=0,G=0,V,z,it,mt,dt,K=null,M,tt=new Uint16Array(ma+1),L=new Uint16Array(ma+1),O=null,q,U,rt;for(d=0;d<=ma;d++)tt[d]=0;for(v=0;v<r;v++)tt[n[e+v]]++;for(p=c,N=ma;N>=1&&tt[N]===0;N--);if(p>N&&(p=N),N===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,l.bits=1,0;for(x=1;x<N&&tt[x]===0;x++);for(p<x&&(p=x),R=1,d=1;d<=ma;d++)if(R<<=1,R-=tt[d],R<0)return -1;if(R>0&&(t===Df||N!==1))return -1;for(L[1]=0,d=1;d<ma;d++)L[d+1]=L[d]+tt[d];for(v=0;v<r;v++)n[e+v]!==0&&(f[L[n[e+v]]++]=v);if(t===Df?(K=O=f,M=20):t===Ul?(K=A0,O=N0,M=257):(K=L0,O=S0,M=0),G=0,v=0,d=x,dt=o,T=p,I=0,it=-1,k=1<<p,mt=k-1,t===Ul&&k>Mf||t===zf&&k>jf)return 1;for(;;){q=d-I,f[v]+1<M?(U=0,rt=f[v]):f[v]>=M?(U=O[f[v]-M],rt=K[f[v]-M]):(U=96,rt=0),V=1<<d-I,z=1<<T,x=z;do z-=V,a[dt+(G>>I)+z]=q<<24|U<<16|rt|0;while(z!==0);for(V=1<<d-1;G&V;)V>>=1;if(V!==0?(G&=V-1,G+=V):G=0,v++,--tt[d]===0){if(d===N)break;d=n[e+f[v]];}if(d>p&&(G&mt)!==it){for(I===0&&(I=p),dt+=x,T=d-I,R=1<<T;T+I<N&&(R-=tt[T+I],!(R<=0));)T++,R<<=1;if(k+=1<<T,t===Ul&&k>Mf||t===zf&&k>jf)return 1;it=G&mt,a[it]=p<<24|T<<16|dt-o|0;}}return G!==0&&(a[dt+G]=d-I<<24|64<<16|0),l.bits=p,0},uo=k0,P0=0,Rc=1,Mc=2,{Z_FINISH:Uf,Z_BLOCK:E0,Z_TREES:ds,Z_OK:Ui,Z_STREAM_END:I0,Z_NEED_DICT:C0,Z_STREAM_ERROR:Qn,Z_DATA_ERROR:jc,Z_MEM_ERROR:Dc,Z_BUF_ERROR:F0,Z_DEFLATED:qf}=xa,xs=16180,Hf=16181,Wf=16182,Gf=16183,Vf=16184,Zf=16185,$f=16186,Yf=16187,Kf=16188,Xf=16189,ws=16190,Wr=16191,ql=16192,Jf=16193,Hl=16194,Qf=16195,tc=16196,ec=16197,nc=16198,ps=16199,gs=16200,rc=16201,ic=16202,ac=16203,oc=16204,sc=16205,Wl=16206,lc=16207,hc=16208,Me=16209,zc=16210,Uc=16211,O0=852,T0=592,B0=15,R0=B0,fc=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function M0(){this.strm=null,this.mode=0,this.last=false,this.wrap=0,this.havedict=false,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;}var qi=t=>{if(!t)return 1;let n=t.state;return !n||n.strm!==t||n.mode<xs||n.mode>Uc?1:0},qc=t=>{if(qi(t))return Qn;let n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=xs,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(O0),n.distcode=n.distdyn=new Int32Array(T0),n.sane=1,n.back=-1,Ui},Hc=t=>{if(qi(t))return Qn;let n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,qc(t)},Wc=(t,n)=>{let e;if(qi(t))return Qn;let r=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Qn:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=e,r.wbits=n,Hc(t))},Gc=(t,n)=>{if(!t)return Qn;let e=new M0;t.state=e,e.strm=t,e.window=null,e.mode=xs;let r=Wc(t,n);return r!==Ui&&(t.state=null),r},j0=t=>Gc(t,R0),cc=true,Gl,Vl,D0=t=>{if(cc){Gl=new Int32Array(512),Vl=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(uo(Rc,t.lens,0,288,Gl,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;uo(Mc,t.lens,0,32,Vl,0,t.work,{bits:5}),cc=false;}t.lencode=Gl,t.lenbits=9,t.distcode=Vl,t.distbits=5;},Vc=(t,n,e,r)=>{let a,o=t.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(n.subarray(e-o.wsize,e),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(n.subarray(e-r,e-r+a),o.wnext),r-=a,r?(o.window.set(n.subarray(e-r,e),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0},z0=(t,n)=>{let e,r,a,o,f,l,c,d,v,x,N,p,T,I,R=0,k,G,V,z,it,mt,dt,K,M=new Uint8Array(4),tt,L,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qi(t)||!t.output||!t.input&&t.avail_in!==0)return Qn;e=t.state,e.mode===Wr&&(e.mode=ql),f=t.next_out,a=t.output,c=t.avail_out,o=t.next_in,r=t.input,l=t.avail_in,d=e.hold,v=e.bits,x=l,N=c,K=Ui;t:for(;;)switch(e.mode){case xs:if(e.wrap===0){e.mode=ql;break}for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(e.wrap&2&&d===35615){e.wbits===0&&(e.wbits=15),e.check=0,M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0),d=0,v=0,e.mode=Hf;break}if(e.head&&(e.head.done=false),!(e.wrap&1)||(((d&255)<<8)+(d>>8))%31){t.msg="incorrect header check",e.mode=Me;break}if((d&15)!==qf){t.msg="unknown compression method",e.mode=Me;break}if(d>>>=4,v-=4,dt=(d&15)+8,e.wbits===0&&(e.wbits=dt),dt>15||dt>e.wbits){t.msg="invalid window size",e.mode=Me;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=d&512?Xf:Wr,d=0,v=0;break;case Hf:for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(e.flags=d,(e.flags&255)!==qf){t.msg="unknown compression method",e.mode=Me;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=Me;break}e.head&&(e.head.text=d>>8&1),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0)),d=0,v=0,e.mode=Wf;case Wf:for(;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}e.head&&(e.head.time=d),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,M[2]=d>>>16&255,M[3]=d>>>24&255,e.check=on(e.check,M,4,0)),d=0,v=0,e.mode=Gf;case Gf:for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}e.head&&(e.head.xflags=d&255,e.head.os=d>>8),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0)),d=0,v=0,e.mode=Vf;case Vf:if(e.flags&1024){for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}e.length=d,e.head&&(e.head.extra_len=d),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0)),d=0,v=0;}else e.head&&(e.head.extra=null);e.mode=Zf;case Zf:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(dt=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(o,o+p),dt)),e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,o)),l-=p,o+=p,e.length-=p),e.length))break t;e.length=0,e.mode=$f;case $f:if(e.flags&2048){if(l===0)break t;p=0;do dt=r[o+p++],e.head&&dt&&e.length<65536&&(e.head.name+=String.fromCharCode(dt));while(dt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,o)),l-=p,o+=p,dt)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=Yf;case Yf:if(e.flags&4096){if(l===0)break t;p=0;do dt=r[o+p++],e.head&&dt&&e.length<65536&&(e.head.comment+=String.fromCharCode(dt));while(dt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,o)),l-=p,o+=p,dt)break t}else e.head&&(e.head.comment=null);e.mode=Kf;case Kf:if(e.flags&512){for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(e.wrap&4&&d!==(e.check&65535)){t.msg="header crc mismatch",e.mode=Me;break}d=0,v=0;}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=true),t.adler=e.check=0,e.mode=Wr;break;case Xf:for(;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}t.adler=e.check=fc(d),d=0,v=0,e.mode=ws;case ws:if(e.havedict===0)return t.next_out=f,t.avail_out=c,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=v,C0;t.adler=e.check=1,e.mode=Wr;case Wr:if(n===E0||n===ds)break t;case ql:if(e.last){d>>>=v&7,v-=v&7,e.mode=Wl;break}for(;v<3;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}switch(e.last=d&1,d>>>=1,v-=1,d&3){case 0:e.mode=Jf;break;case 1:if(D0(e),e.mode=ps,n===ds){d>>>=2,v-=2;break t}break;case 2:e.mode=tc;break;case 3:t.msg="invalid block type",e.mode=Me;}d>>>=2,v-=2;break;case Jf:for(d>>>=v&7,v-=v&7;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if((d&65535)!==(d>>>16^65535)){t.msg="invalid stored block lengths",e.mode=Me;break}if(e.length=d&65535,d=0,v=0,e.mode=Hl,n===ds)break t;case Hl:e.mode=Qf;case Qf:if(p=e.length,p){if(p>l&&(p=l),p>c&&(p=c),p===0)break t;a.set(r.subarray(o,o+p),f),l-=p,o+=p,c-=p,f+=p,e.length-=p;break}e.mode=Wr;break;case tc:for(;v<14;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(e.nlen=(d&31)+257,d>>>=5,v-=5,e.ndist=(d&31)+1,d>>>=5,v-=5,e.ncode=(d&15)+4,d>>>=4,v-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=Me;break}e.have=0,e.mode=ec;case ec:for(;e.have<e.ncode;){for(;v<3;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}e.lens[O[e.have++]]=d&7,d>>>=3,v-=3;}for(;e.have<19;)e.lens[O[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,tt={bits:e.lenbits},K=uo(P0,e.lens,0,19,e.lencode,0,e.work,tt),e.lenbits=tt.bits,K){t.msg="invalid code lengths set",e.mode=Me;break}e.have=0,e.mode=nc;case nc:for(;e.have<e.nlen+e.ndist;){for(;R=e.lencode[d&(1<<e.lenbits)-1],k=R>>>24,G=R>>>16&255,V=R&65535,!(k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(V<16)d>>>=k,v-=k,e.lens[e.have++]=V;else {if(V===16){for(L=k+2;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(d>>>=k,v-=k,e.have===0){t.msg="invalid bit length repeat",e.mode=Me;break}dt=e.lens[e.have-1],p=3+(d&3),d>>>=2,v-=2;}else if(V===17){for(L=k+3;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}d>>>=k,v-=k,dt=0,p=3+(d&7),d>>>=3,v-=3;}else {for(L=k+7;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}d>>>=k,v-=k,dt=0,p=11+(d&127),d>>>=7,v-=7;}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=Me;break}for(;p--;)e.lens[e.have++]=dt;}}if(e.mode===Me)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=Me;break}if(e.lenbits=9,tt={bits:e.lenbits},K=uo(Rc,e.lens,0,e.nlen,e.lencode,0,e.work,tt),e.lenbits=tt.bits,K){t.msg="invalid literal/lengths set",e.mode=Me;break}if(e.distbits=6,e.distcode=e.distdyn,tt={bits:e.distbits},K=uo(Mc,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,tt),e.distbits=tt.bits,K){t.msg="invalid distances set",e.mode=Me;break}if(e.mode=ps,n===ds)break t;case ps:e.mode=gs;case gs:if(l>=6&&c>=258){t.next_out=f,t.avail_out=c,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=v,x0(t,N),f=t.next_out,a=t.output,c=t.avail_out,o=t.next_in,r=t.input,l=t.avail_in,d=e.hold,v=e.bits,e.mode===Wr&&(e.back=-1);break}for(e.back=0;R=e.lencode[d&(1<<e.lenbits)-1],k=R>>>24,G=R>>>16&255,V=R&65535,!(k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(G&&(G&240)===0){for(z=k,it=G,mt=V;R=e.lencode[mt+((d&(1<<z+it)-1)>>z)],k=R>>>24,G=R>>>16&255,V=R&65535,!(z+k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}d>>>=z,v-=z,e.back+=z;}if(d>>>=k,v-=k,e.back+=k,e.length=V,G===0){e.mode=sc;break}if(G&32){e.back=-1,e.mode=Wr;break}if(G&64){t.msg="invalid literal/length code",e.mode=Me;break}e.extra=G&15,e.mode=rc;case rc:if(e.extra){for(L=e.extra;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}e.length+=d&(1<<e.extra)-1,d>>>=e.extra,v-=e.extra,e.back+=e.extra;}e.was=e.length,e.mode=ic;case ic:for(;R=e.distcode[d&(1<<e.distbits)-1],k=R>>>24,G=R>>>16&255,V=R&65535,!(k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if((G&240)===0){for(z=k,it=G,mt=V;R=e.distcode[mt+((d&(1<<z+it)-1)>>z)],k=R>>>24,G=R>>>16&255,V=R&65535,!(z+k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}d>>>=z,v-=z,e.back+=z;}if(d>>>=k,v-=k,e.back+=k,G&64){t.msg="invalid distance code",e.mode=Me;break}e.offset=V,e.extra=G&15,e.mode=ac;case ac:if(e.extra){for(L=e.extra;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}e.offset+=d&(1<<e.extra)-1,d>>>=e.extra,v-=e.extra,e.back+=e.extra;}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=Me;break}e.mode=oc;case oc:if(c===0)break t;if(p=N-c,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=Me;break}p>e.wnext?(p-=e.wnext,T=e.wsize-p):T=e.wnext-p,p>e.length&&(p=e.length),I=e.window;}else I=a,T=f-e.offset,p=e.length;p>c&&(p=c),c-=p,e.length-=p;do a[f++]=I[T++];while(--p);e.length===0&&(e.mode=gs);break;case sc:if(c===0)break t;a[f++]=e.length,c--,e.mode=gs;break;case Wl:if(e.wrap){for(;v<32;){if(l===0)break t;l--,d|=r[o++]<<v,v+=8;}if(N-=c,t.total_out+=N,e.total+=N,e.wrap&4&&N&&(t.adler=e.check=e.flags?on(e.check,a,N,f-N):bo(e.check,a,N,f-N)),N=c,e.wrap&4&&(e.flags?d:fc(d))!==e.check){t.msg="incorrect data check",e.mode=Me;break}d=0,v=0;}e.mode=lc;case lc:if(e.wrap&&e.flags){for(;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8;}if(e.wrap&4&&d!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=Me;break}d=0,v=0;}e.mode=hc;case hc:K=I0;break t;case Me:K=jc;break t;case zc:return Dc;case Uc:default:return Qn}return t.next_out=f,t.avail_out=c,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=v,(e.wsize||N!==t.avail_out&&e.mode<Me&&(e.mode<Wl||n!==Uf))&&Vc(t,t.output,t.next_out,N-t.avail_out),x-=t.avail_in,N-=t.avail_out,t.total_in+=x,t.total_out+=N,e.total+=N,e.wrap&4&&N&&(t.adler=e.check=e.flags?on(e.check,a,N,t.next_out-N):bo(e.check,a,N,t.next_out-N)),t.data_type=e.bits+(e.last?64:0)+(e.mode===Wr?128:0)+(e.mode===ps||e.mode===Hl?256:0),(x===0&&N===0||n===Uf)&&K===Ui&&(K=F0),K},U0=t=>{if(qi(t))return Qn;let n=t.state;return n.window&&(n.window=null),t.state=null,Ui},q0=(t,n)=>{if(qi(t))return Qn;let e=t.state;return (e.wrap&2)===0?Qn:(e.head=n,n.done=false,Ui)},H0=(t,n)=>{let e=n.length,r,a,o;return qi(t)||(r=t.state,r.wrap!==0&&r.mode!==ws)?Qn:r.mode===ws&&(a=1,a=bo(a,n,e,0),a!==r.check)?jc:(o=Vc(t,n,e,e),o?(r.mode=zc,Dc):(r.havedict=1,Ui))},W0=Hc,G0=Wc,V0=qc,Z0=j0,$0=Gc,Y0=z0,K0=U0,X0=q0,J0=H0,Q0="pako inflate (from Nodeca project)",Vr={inflateReset:W0,inflateReset2:G0,inflateResetKeep:V0,inflateInit:Z0,inflateInit2:$0,inflate:Y0,inflateEnd:K0,inflateGetHeader:X0,inflateSetDictionary:J0,inflateInfo:Q0};function t5(){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=false;}var e5=t5,Zc=Object.prototype.toString,{Z_NO_FLUSH:n5,Z_FINISH:r5,Z_OK:_o,Z_STREAM_END:Zl,Z_NEED_DICT:$l,Z_STREAM_ERROR:i5,Z_DATA_ERROR:uc,Z_MEM_ERROR:a5}=xa;function Lo(t){this.options=_s.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new Tc,this.strm.avail_out=0;let e=Vr.inflateInit2(this.strm,n.windowBits);if(e!==_o)throw new Error(Di[e]);if(this.header=new e5,Vr.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=yo.string2buf(n.dictionary):Zc.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=Vr.inflateSetDictionary(this.strm,n.dictionary),e!==_o)))throw new Error(Di[e])}Lo.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,a=this.options.dictionary,o,f,l;if(this.ended)return false;for(n===~~n?f=n:f=n===true?r5:n5,Zc.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),o=Vr.inflate(e,f),o===$l&&a&&(o=Vr.inflateSetDictionary(e,a),o===_o?o=Vr.inflate(e,f):o===uc&&(o=$l));e.avail_in>0&&o===Zl&&e.state.wrap>0&&t[e.next_in]!==0;)Vr.inflateReset(e),o=Vr.inflate(e,f);switch(o){case i5:case uc:case $l:case a5:return this.onEnd(o),this.ended=true,false}if(l=e.avail_out,e.next_out&&(e.avail_out===0||o===Zl))if(this.options.to==="string"){let c=yo.utf8border(e.output,e.next_out),d=e.next_out-c,v=yo.buf2string(e.output,c);e.next_out=d,e.avail_out=r-d,d&&e.output.set(e.output.subarray(c,c+d),0),this.onData(v);}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(o===_o&&l===0)){if(o===Zl)return o=Vr.inflateEnd(this.strm),this.onEnd(o),this.ended=true,true;if(e.avail_in===0)break}}return true};Lo.prototype.onData=function(t){this.chunks.push(t);};Lo.prototype.onEnd=function(t){t===_o&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=_s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg;};function fh(t,n){let e=new Lo(n);if(e.push(t),e.err)throw e.msg||Di[e.err];return e.result}var s5=Lo,l5=fh,u5={Inflate:s5,inflate:l5},{Inflate:d5,inflate:p5}=u5;var ch=d5,$c=p5;var Kc=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;Kc[t]=n;}var Yc=4294967295;function g5(t,n,e){let r=t;for(let a=0;a<e;a++)r=Kc[(r^n[a])&255]^r>>>8;return r}function v5(t,n){return (g5(Yc,t,n)^Yc)>>>0}function uh(t,n,e){let r=t.readUint32(),a=v5(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(a!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${a}`)}function As(t,n,e){for(let r=0;r<e;r++)n[r]=t[r];}function Ns(t,n,e,r){let a=0;for(;a<r;a++)n[a]=t[a];for(;a<e;a++)n[a]=t[a]+n[a-r]&255;}function Ls(t,n,e,r){let a=0;if(e.length===0)for(;a<r;a++)n[a]=t[a];else for(;a<r;a++)n[a]=t[a]+e[a]&255;}function Ss(t,n,e,r,a){let o=0;if(e.length===0){for(;o<a;o++)n[o]=t[o];for(;o<r;o++)n[o]=t[o]+(n[o-a]>>1)&255;}else {for(;o<a;o++)n[o]=t[o]+(e[o]>>1)&255;for(;o<r;o++)n[o]=t[o]+(n[o-a]+e[o]>>1)&255;}}function ks(t,n,e,r,a){let o=0;if(e.length===0){for(;o<a;o++)n[o]=t[o];for(;o<r;o++)n[o]=t[o]+n[o-a]&255;}else {for(;o<a;o++)n[o]=t[o]+e[o]&255;for(;o<r;o++)n[o]=t[o]+m5(n[o-a],e[o],e[o-a])&255;}}function m5(t,n,e){let r=t+n-e,a=Math.abs(r-t),o=Math.abs(r-n),f=Math.abs(r-e);return a<=o&&a<=f?t:o<=f?n:e}function Xc(t,n,e,r,a,o){switch(t){case 0:As(n,e,a);break;case 1:Ns(n,e,a,o);break;case 2:Ls(n,e,r,a);break;case 3:Ss(n,e,r,a,o);break;case 4:ks(n,e,r,a,o);break;default:throw new Error(`Unsupported filter: ${t}`)}}var b5=new Uint16Array([255]),w5=new Uint8Array(b5.buffer),y5=w5[0]===255;function Jc(t){let{data:n,width:e,height:r,channels:a,depth:o}=t,f=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(o/8)*a,c=new Uint8Array(r*e*l),d=0;for(let v=0;v<7;v++){let x=f[v],N=Math.ceil((e-x.x)/x.xStep),p=Math.ceil((r-x.y)/x.yStep);if(N<=0||p<=0)continue;let T=N*l,I=new Uint8Array(T);for(let R=0;R<p;R++){let k=n[d++],G=n.subarray(d,d+T);d+=T;let V=new Uint8Array(T);Xc(k,G,V,I,T,l),I.set(V);for(let z=0;z<N;z++){let it=x.x+z*x.xStep,mt=x.y+R*x.yStep;if(!(it>=e||mt>=r))for(let dt=0;dt<l;dt++)c[(mt*e+it)*l+dt]=V[z*l+dt];}}}if(o===16){let v=new Uint16Array(c.buffer);if(y5)for(let x=0;x<v.length;x++)v[x]=_5(v[x]);return v}else return c}function _5(t){return (t&255)<<8|t>>8&255}var x5=new Uint16Array([255]),A5=new Uint8Array(x5.buffer),N5=A5[0]===255,L5=new Uint8Array(0);function dh(t){let{data:n,width:e,height:r,channels:a,depth:o}=t,f=Math.ceil(o/8)*a,l=Math.ceil(o/8*a*e),c=new Uint8Array(r*l),d=L5,v=0,x,N;for(let p=0;p<r;p++){switch(x=n.subarray(v+1,v+1+l),N=c.subarray(p*l,(p+1)*l),n[v]){case 0:As(x,N,l);break;case 1:Ns(x,N,l,f);break;case 2:Ls(x,N,d,l);break;case 3:Ss(x,N,d,l,f);break;case 4:ks(x,N,d,l,f);break;default:throw new Error(`Unsupported filter: ${n[v]}`)}d=N,v+=l+1;}if(o===16){let p=new Uint16Array(c.buffer);if(N5)for(let T=0;T<p.length;T++)p[T]=S5(p[T]);return p}else return c}function S5(t){return (t&255)<<8|t>>8&255}var Ps=Uint8Array.of(137,80,78,71,13,10,26,10);function ph(t){if(!Qc(t.readBytes(Ps.length)))throw new Error("wrong PNG signature")}function Qc(t){if(t.length<Ps.length)return false;for(let n=0;n<Ps.length;n++)if(t[n]!==Ps[n])return false;return true}var tu="tEXt",P5=0,eu=new TextDecoder("latin1");function E5(t){if(C5(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}var I5=/^[\u0000-\u00FF]*$/;function C5(t){if(!I5.test(t))throw new Error("invalid latin1 text")}function nu(t,n,e){let r=gh(n);t[r]=F5(n,e-r.length-1);}function gh(t){for(t.mark();t.readByte()!==P5;);let n=t.offset;t.reset();let e=eu.decode(t.readBytes(n-t.offset-1));return t.skip(1),E5(e),e}function F5(t,n){return eu.decode(t.readBytes(n))}var En={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},So={UNKNOWN:-1,DEFLATE:0},Es={UNKNOWN:-1,ADAPTIVE:0},ko={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Po={NONE:0,BACKGROUND:1,PREVIOUS:2},Is={SOURCE:0,OVER:1};var Cs=class extends oo{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);let{checkCrc:r=false}=e;this._checkCrc=r,this._inflator=new ch,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=false,this._hasPalette=false,this._palette=[],this._hasTransparency=false,this._transparency=new Uint16Array(0),this._compressionMethod=So.UNKNOWN,this._filterMethod=Es.UNKNOWN,this._interlaceMethod=ko.UNKNOWN,this._colorType=En.UNKNOWN,this._isAnimated=false,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=false,this.setBigEndian();}decode(){for(ph(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e);}return this.decodeImage(),this._png}decodeApng(){for(ph(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e);}return this.decodeApngImage(),this._apng}decodeChunk(n,e){let r=this.offset;switch(e){case "IHDR":this.decodeIHDR();break;case "PLTE":this.decodePLTE(n);break;case "IDAT":this.decodeIDAT(n);break;case "IEND":this._end=true;break;case "tRNS":this.decodetRNS(n);break;case "iCCP":this.decodeiCCP(n);break;case tu:nu(this._png.text,this,n);break;case "pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?uh(this,n+4,e):this.skip(4);}decodeApngChunk(n,e){let r=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case "acTL":this.decodeACTL();break;case "fcTL":this.decodeFCTL();break;case "fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=r+n;break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?uh(this,n+4,e):this.skip(4);}decodeIHDR(){let n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=O5(this.readUint8());let e=this.readUint8();this._colorType=e;let r;switch(e){case En.GREYSCALE:r=1;break;case En.TRUECOLOUR:r=3;break;case En.INDEXED_COLOUR:r=1;break;case En.GREYSCALE_ALPHA:r=2;break;case En.TRUECOLOUR_ALPHA:r=4;break;case En.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==So.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=true;}decodeFCTL(){let n={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(n);}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);let e=n/3;this._hasPalette=true;let r=[];this._palette=r;for(let a=0;a<e;a++)r.push([this.readUint8(),this.readUint8(),this.readUint8()]);}decodeIDAT(n){this._writingDataChunks=true;let e=n,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n);}decodeFDAT(n){this._writingDataChunks=true;let e=n,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n);}decodetRNS(n){switch(this._colorType){case En.GREYSCALE:case En.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=true,this._transparency=new Uint16Array(n/2);for(let e=0;e<n/2;e++)this._transparency[e]=this.readUint16();break}case En.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e<n;e++){let r=this.readByte();this._palette[e].push(r);}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case En.UNKNOWN:case En.GREYSCALE_ALPHA:case En.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){let e=gh(this),r=this.readUint8();if(r!==So.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);let a=this.readBytes(n-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:$c(a)};}decodepHYs(){let n=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:n,y:e,unit:r};}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){let e={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(n);if(r){if(r.data=dh({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else {let a=this._apng.frames.at(n-1);this.disposeFrame(r,a,e),this.addFrameDataToCanvas(e,r);}this._apng.frames.push(e);}}return this._apng}disposeFrame(n,e,r){switch(n.disposeOp){case Po.NONE:break;case Po.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let o=0;o<this._png.width;o++){let f=(a*n.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)r.data[f+l]=0;}break;case Po.PREVIOUS:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,e){let r=1<<this._png.depth,a=(o,f)=>{let l=((o+e.yOffset)*this._png.width+e.xOffset+f)*this._png.channels,c=(o*e.width+f)*this._png.channels;return {index:l,frameIndex:c}};switch(e.blendOp){case Is.SOURCE:for(let o=0;o<e.height;o++)for(let f=0;f<e.width;f++){let{index:l,frameIndex:c}=a(o,f);for(let d=0;d<this._png.channels;d++)n.data[l+d]=e.data[c+d];}break;case Is.OVER:for(let o=0;o<e.height;o++)for(let f=0;f<e.width;f++){let{index:l,frameIndex:c}=a(o,f);for(let d=0;d<this._png.channels;d++){let v=e.data[c+this._png.channels-1]/r,x=d%(this._png.channels-1)===0?1:e.data[c+d],N=Math.floor(v*x+(1-v)*n.data[l+d]);n.data[l+d]+=N;}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let n=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Es.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===ko.NO_INTERLACE)this._png.data=dh({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===ko.ADAM7)this._png.data=Jc({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency);}pushDataToFrame(){let n=this._inflator.result,e=this._frames.at(-1);e?e.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Po.NONE,blendOp:Is.SOURCE,data:n}),this._inflator=new ch,this._writingDataChunks=false;}};function O5(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}function ru(t,n){return new Cs(t,n).decode()}var Yt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function vh(){Yt.console&&typeof Yt.console.log=="function"&&Yt.console.log.apply(Yt.console,arguments);}var Pe={log:vh,warn:function(t){Yt.console&&(typeof Yt.console.warn=="function"?Yt.console.warn.apply(Yt.console,arguments):vh.call(null,arguments));},error:function(t){Yt.console&&(typeof Yt.console.error=="function"?Yt.console.error.apply(Yt.console,arguments):vh(t));}};function mh(t,n,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Hi(r.response,n,e);},r.onerror=function(){Pe.error("could not download file");},r.send();}function iu(t){var n=new XMLHttpRequest;n.open("HEAD",t,false);try{n.send();}catch(e){}return n.status>=200&&n.status<=299}function Fs(t){try{t.dispatchEvent(new MouseEvent("click"));}catch(e){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),t.dispatchEvent(n);}}var Hi=Yt.saveAs||((typeof window>"u"?"undefined":o(window))!=="object"||window!==Yt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var r=Yt.URL||Yt.webkitURL,a=document.createElement("a");n=n||t.name||"download",a.download=n,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?iu(a.href)?mh(t,n,e):Fs(a,a.target="_blank"):Fs(a)):(a.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(a.href);},4e4),setTimeout(function(){Fs(a);},0));}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(iu(t))mh(t,n,e);else {var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Fs(r);});}else navigator.msSaveOrOpenBlob((function(a,o$1){return o$1===void 0?o$1={autoBom:false}:o(o$1)!=="object"&&(Pe.warn("Deprecated: Expected third argument to be a object"),o$1={autoBom:!o$1}),o$1.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(t,e),n);}:function(t,n,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return mh(t,n,e);var a=t.type==="application/octet-stream",o$1=/constructor/i.test(Yt.HTMLElement)||Yt.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||a&&o$1)&&(typeof FileReader>"u"?"undefined":o(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var v=l.result;v=f?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=v:location=v,r=null;},l.readAsDataURL(t);}else {var c=Yt.URL||Yt.webkitURL,d=c.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){c.revokeObjectURL(d);},4e4);}});function Su(t){var n;t=t||"",this.ok=false,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{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)]}}],r=0;r<e.length;r++){var a=e[r].re,o=e[r].process,f=a.exec(t);f&&(n=o(f),this.r=n[0],this.g=n[1],this.b=n[2],this.ok=true);}this.r=this.r<0||isNaN(this.r)?0:this.r>255?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 Bs=Yt.atob.bind(Yt),au=Yt.btoa.bind(Yt);function bh(t,n){var e=t[0],r=t[1],a=t[2],o=t[3];e=wn(e,r,a,o,n[0],7,-680876936),o=wn(o,e,r,a,n[1],12,-389564586),a=wn(a,o,e,r,n[2],17,606105819),r=wn(r,a,o,e,n[3],22,-1044525330),e=wn(e,r,a,o,n[4],7,-176418897),o=wn(o,e,r,a,n[5],12,1200080426),a=wn(a,o,e,r,n[6],17,-1473231341),r=wn(r,a,o,e,n[7],22,-45705983),e=wn(e,r,a,o,n[8],7,1770035416),o=wn(o,e,r,a,n[9],12,-1958414417),a=wn(a,o,e,r,n[10],17,-42063),r=wn(r,a,o,e,n[11],22,-1990404162),e=wn(e,r,a,o,n[12],7,1804603682),o=wn(o,e,r,a,n[13],12,-40341101),a=wn(a,o,e,r,n[14],17,-1502002290),e=yn(e,r=wn(r,a,o,e,n[15],22,1236535329),a,o,n[1],5,-165796510),o=yn(o,e,r,a,n[6],9,-1069501632),a=yn(a,o,e,r,n[11],14,643717713),r=yn(r,a,o,e,n[0],20,-373897302),e=yn(e,r,a,o,n[5],5,-701558691),o=yn(o,e,r,a,n[10],9,38016083),a=yn(a,o,e,r,n[15],14,-660478335),r=yn(r,a,o,e,n[4],20,-405537848),e=yn(e,r,a,o,n[9],5,568446438),o=yn(o,e,r,a,n[14],9,-1019803690),a=yn(a,o,e,r,n[3],14,-187363961),r=yn(r,a,o,e,n[8],20,1163531501),e=yn(e,r,a,o,n[13],5,-1444681467),o=yn(o,e,r,a,n[2],9,-51403784),a=yn(a,o,e,r,n[7],14,1735328473),e=_n(e,r=yn(r,a,o,e,n[12],20,-1926607734),a,o,n[5],4,-378558),o=_n(o,e,r,a,n[8],11,-2022574463),a=_n(a,o,e,r,n[11],16,1839030562),r=_n(r,a,o,e,n[14],23,-35309556),e=_n(e,r,a,o,n[1],4,-1530992060),o=_n(o,e,r,a,n[4],11,1272893353),a=_n(a,o,e,r,n[7],16,-155497632),r=_n(r,a,o,e,n[10],23,-1094730640),e=_n(e,r,a,o,n[13],4,681279174),o=_n(o,e,r,a,n[0],11,-358537222),a=_n(a,o,e,r,n[3],16,-722521979),r=_n(r,a,o,e,n[6],23,76029189),e=_n(e,r,a,o,n[9],4,-640364487),o=_n(o,e,r,a,n[12],11,-421815835),a=_n(a,o,e,r,n[15],16,530742520),e=xn(e,r=_n(r,a,o,e,n[2],23,-995338651),a,o,n[0],6,-198630844),o=xn(o,e,r,a,n[7],10,1126891415),a=xn(a,o,e,r,n[14],15,-1416354905),r=xn(r,a,o,e,n[5],21,-57434055),e=xn(e,r,a,o,n[12],6,1700485571),o=xn(o,e,r,a,n[3],10,-1894986606),a=xn(a,o,e,r,n[10],15,-1051523),r=xn(r,a,o,e,n[1],21,-2054922799),e=xn(e,r,a,o,n[8],6,1873313359),o=xn(o,e,r,a,n[15],10,-30611744),a=xn(a,o,e,r,n[6],15,-1560198380),r=xn(r,a,o,e,n[13],21,1309151649),e=xn(e,r,a,o,n[4],6,-145523070),o=xn(o,e,r,a,n[11],10,-1120210379),a=xn(a,o,e,r,n[2],15,718787259),r=xn(r,a,o,e,n[9],21,-343485551),t[0]=pi(e,t[0]),t[1]=pi(r,t[1]),t[2]=pi(a,t[2]),t[3]=pi(o,t[3]);}function qs(t,n,e,r,a,o){return n=pi(pi(n,t),pi(r,o)),pi(n<<a|n>>>32-a,e)}function wn(t,n,e,r,a,o,f){return qs(n&e|~n&r,t,n,a,o,f)}function yn(t,n,e,r,a,o,f){return qs(n&r|e&~r,t,n,a,o,f)}function _n(t,n,e,r,a,o,f){return qs(n^e^r,t,n,a,o,f)}function xn(t,n,e,r,a,o,f){return qs(e^(n|~r),t,n,a,o,f)}function ku(t){var n,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)bh(r,T5(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)a[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(bh(r,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,bh(r,a),r}function T5(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var ou="0123456789abcdef".split("");function B5(t){for(var n="",e=0;e<4;e++)n+=ou[t>>8*e+4&15]+ou[t>>8*e&15];return n}function R5(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Nh(t){return ku(t).map(R5).join("")}var M5=(function(t){for(var n=0;n<t.length;n++)t[n]=B5(t[n]);return t.join("")})(ku("hello"))!="5d41402abc4b2a76b9719d911017c592";function pi(t,n){if(M5){var e=(65535&t)+(65535&n);return (t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function Lh(t,n){var e,r,a,o;if(t!==e){for(var f=(a=t,o=1+(256/t.length|0),new Array(o+1).join(a)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var v=l[c];d=(d+v+f.charCodeAt(c))%256,l[c]=l[d],l[d]=v;}e=t,r=l;}else l=r;var x=n.length,N=0,p=0,T="";for(c=0;c<x;c++)p=(p+(v=l[N=(N+1)%256]))%256,l[N]=l[p],l[p]=v,f=l[(l[N]+l[p])%256],T+=String.fromCharCode(n.charCodeAt(c)^f);return T}var su={print:4,modify:8,copy:16,"annot-forms":32};function ka(t,n,e,r){this.v=1,this.r=2;var a=192;t.forEach(function(l){if(su.perm!==void 0)throw new Error("Invalid permission: "+l);a+=su[l];}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(n+this.padding).substr(0,32),f=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,f),this.P=-(1+(255^a)),this.encryptionKey=Nh(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Lh(this.encryptionKey,this.padding);}function Pa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,r=0;r<e;r++){var a=t.charCodeAt(r);n+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):t[r];}return n}function lu(t){if(o(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,r,a){if(a=a||false,typeof e!="string"||typeof r!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var o=Math.random().toString(35);return n[e][o]=[r,!!a],o},this.unsubscribe=function(e){for(var r in n)if(n[r][e])return delete n[r][e],Object.keys(n[r]).length===0&&delete n[r],true;return false},this.publish=function(e){if(n.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var o in n[e]){var f=n[e][o];try{f[0].apply(t,r);}catch(l){Yt.console&&Pe.error("jsPDF PubSub Error",l.message,l);}f[1]&&a.push(o);}a.length&&a.forEach(this.unsubscribe);}},this.getTopics=function(){return n};}function zs(t){if(!(this instanceof zs))return new zs(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1;}function Pu(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1;}function Wi(t,n,e,r,a){if(!(this instanceof Wi))return new Wi(t,n,e,r,a);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,Pu.call(this,r,a);}function Ea(t,n,e,r,a){if(!(this instanceof Ea))return new Ea(t,n,e,r,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,Pu.call(this,r,a);}function jt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],o$1=arguments[3],f=[],l=1,c=16,d="S",v=null;o(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,a=t.format||a,o$1=t.compress||t.compressPdf||o$1,(v=t.encryption||null)!==null&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(c=t.floatPrecision),d=t.defaultPathOperation||"S"),f=t.filters||(o$1===true?["FlateEncode"]:f),r=r||"mm",e=(""+(e||"P")).toLowerCase();var x=t.putOnlyUsedFonts||false,N={},p={internal:{},__private__:{}};p.__private__.PubSub=lu;var T="1.3",I=p.__private__.getPdfVersion=function(){return T};p.__private__.setPdfVersion=function(h){T=h;};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 k=p.__private__.getPageFormat=function(h){return R[h]};a=a||"a4";var G="compat",V="advanced",z=G;function it(){this.saveGraphicsState(),P(new Vt(ne,0,0,-ne,0,xi()*ne).toString()+" cm"),this.setFontSize(this.getFontSize()/ne),d="n",z=V;}function mt(){this.restoreGraphicsState(),d="S",z=G;}var dt=p.__private__.combineFontStyleAndFontWeight=function(h,m){if(h=="bold"&&m=="normal"||h=="bold"&&m==400||h=="normal"&&m=="italic"||h=="bold"&&m=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return m&&(h=m==400||m==="normal"?h==="italic"?"italic":"normal":m!=700&&m!=="bold"||h!=="normal"?(m==700?"bold":m)+""+h:"bold"),h};p.advancedAPI=function(h){var m=z===G;return m&&it.call(this),typeof h!="function"||(h(this),m&&mt.call(this)),this},p.compatAPI=function(h){var m=z===V;return m&&mt.call(this),typeof h!="function"||(h(this),m&&it.call(this)),this},p.isAdvancedAPI=function(){return z===V};var K,M=function(h){if(z!==V)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},tt=p.roundToPrecision=p.__private__.roundToPrecision=function(h,m){var E=n||m;if(isNaN(h)||isNaN(E))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(E).replace(/0+$/,"")};K=p.hpf=p.__private__.hpf=typeof c=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(h,c)}:c==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(h,16)};var L=p.f2=p.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return tt(h,2)},O=p.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return tt(h,3)},q=p.scale=p.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return z===G?h*ne:z===V?h:void 0},U=function(h){return q((function(m){return z===G?xi()-m:z===V?m:void 0})(h))};p.__private__.setPrecision=p.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(n=parseInt(h,10));};var rt,st="00000000000000000000000000000000",ft=p.__private__.getFileId=function(){return st},nt=p.__private__.setFileId=function(h){return st=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():st.split("").map(function(){return "ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),v!==null&&(hn=new ka(v.userPermissions,v.userPassword,v.ownerPassword,st)),st};p.setFileId=function(h){return nt(h),this},p.getFileId=function(){return ft()};var ut=p.__private__.convertDateToPDFDate=function(h){var m=h.getTimezoneOffset(),E=m<0?"+":"-",D=Math.floor(Math.abs(m/60)),Y=Math.abs(m%60),lt=[E,j(D),"'",j(Y),"'"].join("");return ["D:",h.getFullYear(),j(h.getMonth()+1),j(h.getDate()),j(h.getHours()),j(h.getMinutes()),j(h.getSeconds()),lt].join("")},At=p.__private__.convertPDFDateToDate=function(h){var m=parseInt(h.substr(2,4),10),E=parseInt(h.substr(6,2),10)-1,D=parseInt(h.substr(8,2),10),Y=parseInt(h.substr(10,2),10),lt=parseInt(h.substr(12,2),10),vt=parseInt(h.substr(14,2),10);return new Date(m,E,D,Y,lt,vt,0)},wt=p.__private__.setCreationDate=function(h){var m;if(h===void 0&&(h=new Date),h instanceof Date)m=ut(h);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(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");m=h;}return rt=m},_=p.__private__.getCreationDate=function(h){var m=rt;return h==="jsDate"&&(m=At(rt)),m};p.setCreationDate=function(h){return wt(h),this},p.getCreationDate=function(h){return _(h)};var B,j=p.__private__.padd2=function(h){return ("0"+parseInt(h)).slice(-2)},H=p.__private__.padd2Hex=function(h){return ("00"+(h=h.toString())).substr(h.length)},$=0,J=[],at=[],ot=0,gt=[],xt=[],kt=false,St=at;p.__private__.setCustomOutputDestination=function(h){kt=true,St=h;};var Dt=function(h){kt||(St=h);};p.__private__.resetCustomOutputDestination=function(){kt=false,St=at;};var P=p.__private__.out=function(h){return h=h.toString(),ot+=h.length+1,St.push(h),St},Lt=p.__private__.write=function(h){return P(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(h){for(var m=h.length,E=new ArrayBuffer(m),D=new Uint8Array(E);m--;)D[m]=h.charCodeAt(m);return E},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 yt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(h){return yt=z===V?h/ne:h,this};var Wt,Et=p.__private__.getFontSize=p.getFontSize=function(){return z===G?yt:yt*ne},qt=t.R2L||false;p.__private__.setR2L=p.setR2L=function(h){return qt=h,this},p.__private__.getR2L=p.getR2L=function(){return qt};var zt,ye=p.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Wt=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');Wt=h;}else Wt=parseInt(h,10);};p.__private__.getZoomMode=function(){return Wt};var he,Jt=p.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');zt=h;};p.__private__.getPageMode=function(){return zt};var ce=p.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');he=h;};p.__private__.getLayoutMode=function(){return he},p.__private__.setDisplayMode=p.setDisplayMode=function(h,m,E){return ye(h),ce(m),Jt(E),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(h){if(Object.keys(fe).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[h]},p.__private__.getDocumentProperties=function(){return fe},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(h){for(var m in fe)fe.hasOwnProperty(m)&&h[m]&&(fe[m]=h[m]);return this},p.__private__.setDocumentProperty=function(h,m){if(Object.keys(fe).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[h]=m};var Bt,ne,Mt,We,ve,oe={},se={},Be=[],Ut={},Ee={},Zt={},Qt={},Re=null,le=0,Gt=[],_e=new lu(p),vi=t.hotfixes||[],pn={},Pr={},cr=[],Vt=function h(m,E,D,Y,lt,vt){if(!(this instanceof h))return new h(m,E,D,Y,lt,vt);isNaN(m)&&(m=1),isNaN(E)&&(E=0),isNaN(D)&&(D=0),isNaN(Y)&&(Y=1),isNaN(lt)&&(lt=0),isNaN(vt)&&(vt=0),this._matrix=[m,E,D,Y,lt,vt];};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h;}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h;}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h;}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h;}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h;}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h;}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h;}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h;}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h;}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h;}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h;}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h;}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(h){return [this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(h)},Vt.prototype.multiply=function(h){var m=h.sx*this.sx+h.shy*this.shx,E=h.sx*this.shy+h.shy*this.sy,D=h.shx*this.sx+h.sy*this.shx,Y=h.shx*this.shy+h.sy*this.sy,lt=h.tx*this.sx+h.ty*this.shx+this.tx,vt=h.tx*this.shy+h.ty*this.sy+this.ty;return new Vt(m,E,D,Y,lt,vt)},Vt.prototype.decompose=function(){var h=this.sx,m=this.shy,E=this.shx,D=this.sy,Y=this.tx,lt=this.ty,vt=Math.sqrt(h*h+m*m),Ft=(h/=vt)*E+(m/=vt)*D;E-=h*Ft,D-=m*Ft;var Ct=Math.sqrt(E*E+D*D);return Ft/=Ct,h*(D/=Ct)<m*(E/=Ct)&&(h=-h,m=-m,Ft=-Ft,vt=-vt),{scale:new Vt(vt,0,0,Ct,0,0),translate:new Vt(1,0,0,1,Y,lt),rotate:new Vt(h,m,-m,h,0,0),skew:new Vt(1,0,Ft,1,0,0)}},Vt.prototype.toString=function(h){return this.join(" ")},Vt.prototype.inversed=function(){var h=this.sx,m=this.shy,E=this.shx,D=this.sy,Y=this.tx,lt=this.ty,vt=1/(h*D-m*E),Ft=D*vt,Ct=-m*vt,Kt=-E*vt,te=h*vt;return new Vt(Ft,Ct,Kt,te,-Ft*Y-Kt*lt,-Ct*Y-te*lt)},Vt.prototype.applyToPoint=function(h){var m=h.x*this.sx+h.y*this.shx+this.tx,E=h.x*this.shy+h.y*this.sy+this.ty;return new _i(m,E)},Vt.prototype.applyToRectangle=function(h){var m=this.applyToPoint(h),E=this.applyToPoint(new _i(h.x+h.w,h.y+h.h));return new qa(m.x,m.y,E.x-m.x,E.y-m.y)},Vt.prototype.clone=function(){var h=this.sx,m=this.shy,E=this.shx,D=this.sy,Y=this.tx,lt=this.ty;return new Vt(h,m,E,D,Y,lt)},p.Matrix=Vt;var Er=p.matrixMult=function(h,m){return m.multiply(h)},Ir=new Vt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Ir;var Gn=function(h,m){if(!Ee[h]){var E=(m instanceof Wi?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);m.id=E,Ee[h]=E,Ut[E]=m,_e.publish("addPattern",m);}};p.ShadingPattern=Wi,p.TilingPattern=Ea,p.addShadingPattern=function(h,m){return M("addShadingPattern()"),Gn(h,m),this},p.beginTilingPattern=function(h){M("beginTilingPattern()"),Ha(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix);},p.endTilingPattern=function(h,m){M("endTilingPattern()"),m.stream=xt[B].join(`
`),Gn(h,m),_e.publish("endTilingPattern",m),cr.pop().restore();};var Vn,ze=p.__private__.newObject=function(){var h=an();return ln(h,true),h},an=p.__private__.newObjectDeferred=function(){return $++,J[$]=function(){return ot},$},ln=function(h,m){return m=typeof m=="boolean"&&m,J[h]=ot,m&&P(h+" 0 obj"),h},mi=p.__private__.newAdditionalObject=function(){var h={objId:an(),content:""};return gt.push(h),h},Zr=an(),tr=an(),ur=p.__private__.decodeColorString=function(h){var m=h.split(" ");if(m.length!==2||m[1]!=="g"&&m[1]!=="G")m.length!==5||m[4]!=="k"&&m[4]!=="K"||(m=[(1-m[0])*(1-m[3]),(1-m[1])*(1-m[3]),(1-m[2])*(1-m[3]),"r"]);else {var E=parseFloat(m[0]);m=[E,E,E,"r"];}for(var D="#",Y=0;Y<3;Y++)D+=("0"+Math.floor(255*parseFloat(m[Y])).toString(16)).slice(-2);return D},er=p.__private__.encodeColorString=function(h){var m;typeof h=="string"&&(h={ch1:h});var E=h.ch1,D=h.ch2,Y=h.ch3,lt=h.ch4,vt=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof E=="string"&&E.charAt(0)!=="#"){var Ft=new Su(E);if(Ft.ok)E=Ft.toHex();else if(!/^\d*\.?\d*$/.test(E))throw new Error('Invalid color "'+E+'" passed to jsPDF.encodeColorString.')}if(typeof E=="string"&&/^#[0-9A-Fa-f]{3}$/.test(E)&&(E="#"+E[1]+E[1]+E[2]+E[2]+E[3]+E[3]),typeof E=="string"&&/^#[0-9A-Fa-f]{6}$/.test(E)){var Ct=parseInt(E.substr(1),16);E=Ct>>16&255,D=Ct>>8&255,Y=255&Ct;}if(D===void 0||lt===void 0&&E===D&&D===Y)m=typeof E=="string"?E+" "+vt[0]:h.precision===2?L(E/255)+" "+vt[0]:O(E/255)+" "+vt[0];else if(lt===void 0||o(lt)==="object"){if(lt&&!isNaN(lt.a)&<.a===0)return ["1.","1.","1.",vt[1]].join(" ");m=typeof E=="string"?[E,D,Y,vt[1]].join(" "):h.precision===2?[L(E/255),L(D/255),L(Y/255),vt[1]].join(" "):[O(E/255),O(D/255),O(Y/255),vt[1]].join(" ");}else m=typeof E=="string"?[E,D,Y,lt,vt[2]].join(" "):h.precision===2?[L(E),L(D),L(Y),L(lt),vt[2]].join(" "):[O(E),O(D),O(Y),O(lt),vt[2]].join(" ");return m},nr=p.__private__.getFilters=function(){return f},Zn=p.__private__.putStream=function(h){var m=(h=h||{}).data||"",E=h.filters||nr(),D=h.alreadyAppliedFilters||[],Y=h.addLength1||false,lt=m.length,vt=h.objectId,Ft=function(Oe){return Oe};if(v!==null&&vt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");v!==null&&(Ft=hn.encryptor(vt,0));var Ct={};E===true&&(E=["FlateEncode"]);var Kt=h.additionalKeyValues||[],te=(Ct=jt.API.processDataByFilters!==void 0?jt.API.processDataByFilters(m,E):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(D)?D.join(" "):D.toString());if(Ct.data.length!==0&&(Kt.push({key:"Length",value:Ct.data.length}),Y===true&&Kt.push({key:"Length1",value:lt})),te.length!=0)if(te.split("/").length-1==1)Kt.push({key:"Filter",value:te});else {Kt.push({key:"Filter",value:"["+te+"]"});for(var pe=0;pe<Kt.length;pe+=1)if(Kt[pe].key==="DecodeParms"){for(var Je=[],Se=0;Se<Ct.reverseChain.split("/").length-1;Se+=1)Je.push("null");Je.push(Kt[pe].value),Kt[pe].value="["+Je.join(" ")+"]";}}P("<<");for(var Ne=0;Ne<Kt.length;Ne++)P("/"+Kt[Ne].key+" "+Kt[Ne].value);P(">>"),Ct.data.length!==0&&(P("stream"),P(Ft(Ct.data)),P("endstream"));},bi=p.__private__.putPage=function(h){var m=h.number,E=h.data,D=h.objId,Y=h.contentsObjId;ln(D,true),P("<</Type /Page"),P("/Parent "+h.rootDictionaryObjId+" 0 R"),P("/Resources "+h.resourceDictionaryObjId+" 0 R"),P("/MediaBox ["+parseFloat(K(h.mediaBox.bottomLeftX))+" "+parseFloat(K(h.mediaBox.bottomLeftY))+" "+K(h.mediaBox.topRightX)+" "+K(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&P("/CropBox ["+K(h.cropBox.bottomLeftX)+" "+K(h.cropBox.bottomLeftY)+" "+K(h.cropBox.topRightX)+" "+K(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&P("/BleedBox ["+K(h.bleedBox.bottomLeftX)+" "+K(h.bleedBox.bottomLeftY)+" "+K(h.bleedBox.topRightX)+" "+K(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&P("/TrimBox ["+K(h.trimBox.bottomLeftX)+" "+K(h.trimBox.bottomLeftY)+" "+K(h.trimBox.topRightX)+" "+K(h.trimBox.topRightY)+"]"),h.artBox!==null&&P("/ArtBox ["+K(h.artBox.bottomLeftX)+" "+K(h.artBox.bottomLeftY)+" "+K(h.artBox.topRightX)+" "+K(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&P("/UserUnit "+h.userUnit),_e.publish("putPage",{objId:D,pageContext:Gt[m],pageNumber:m,page:E}),P("/Contents "+Y+" 0 R"),P(">>"),P("endobj");var lt=E.join(`
`);return z===V&&(lt+=`
Q`),ln(Y,true),Zn({data:lt,filters:nr(),objectId:Y}),P("endobj"),D},dr=p.__private__.putPages=function(){var h,m,E=[];for(h=1;h<=le;h++)Gt[h].objId=an(),Gt[h].contentsObjId=an();for(h=1;h<=le;h++)E.push(bi({number:h,data:xt[h],objId:Gt[h].objId,contentsObjId:Gt[h].contentsObjId,mediaBox:Gt[h].mediaBox,cropBox:Gt[h].cropBox,bleedBox:Gt[h].bleedBox,trimBox:Gt[h].trimBox,artBox:Gt[h].artBox,userUnit:Gt[h].userUnit,rootDictionaryObjId:Zr,resourceDictionaryObjId:tr}));ln(Zr,true),P("<</Type /Pages");var D="/Kids [";for(m=0;m<le;m++)D+=E[m]+" 0 R ";P(D+"]"),P("/Count "+le),P(">>"),P("endobj"),_e.publish("postPutPages");},wi=function(h){_e.publish("putFont",{font:h,out:P,newObject:ze,putStream:Zn}),h.isAlreadyPutted!==true&&(h.objectNumber=ze(),P("<<"),P("/Type /Font"),P("/BaseFont /"+Pa(h.postScriptName)),P("/Subtype /Type1"),typeof h.encoding=="string"&&P("/Encoding /"+h.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"));},$i=function(h){h.objectNumber=ze();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[K(h.x),K(h.y),K(h.x+h.width),K(h.y+h.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var E=h.pages[1].join(`
`);Zn({data:E,additionalKeyValues:m,objectId:h.objectNumber}),P("endobj");},Yi=function(h,m){m||(m=21);var E=ze(),D=(function(vt,Ft){var Ct,Kt=[],te=1/(Ft-1);for(Ct=0;Ct<1;Ct+=te)Kt.push(Ct);if(Kt.push(1),vt[0].offset!=0){var pe={offset:0,color:vt[0].color};vt.unshift(pe);}if(vt[vt.length-1].offset!=1){var Je={offset:1,color:vt[vt.length-1].color};vt.push(Je);}for(var Se="",Ne=0,Oe=0;Oe<Kt.length;Oe++){for(Ct=Kt[Oe];Ct>vt[Ne+1].offset;)Ne++;var je=vt[Ne].offset,De=(Ct-je)/(vt[Ne+1].offset-je),gn=vt[Ne].color,Rr=vt[Ne+1].color;Se+=H(Math.round((1-De)*gn[0]+De*Rr[0]).toString(16))+H(Math.round((1-De)*gn[1]+De*Rr[1]).toString(16))+H(Math.round((1-De)*gn[2]+De*Rr[2]).toString(16));}return Se.trim()})(h.colors,m),Y=[];Y.push({key:"FunctionType",value:"0"}),Y.push({key:"Domain",value:"[0.0 1.0]"}),Y.push({key:"Size",value:"["+m+"]"}),Y.push({key:"BitsPerSample",value:"8"}),Y.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Y.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Zn({data:D,additionalKeyValues:Y,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:E}),P("endobj"),h.objectNumber=ze(),P("<< /ShadingType "+h.type),P("/ColorSpace /DeviceRGB");var lt="/Coords ["+K(parseFloat(h.coords[0]))+" "+K(parseFloat(h.coords[1]))+" ";h.type===2?lt+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3])):lt+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3]))+" "+K(parseFloat(h.coords[4]))+" "+K(parseFloat(h.coords[5])),P(lt+="]"),h.matrix&&P("/Matrix ["+h.matrix.toString()+"]"),P("/Function "+E+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj");},Ki=function(h,m){var E=an(),D=ze();m.push({resourcesOid:E,objectOid:D}),h.objectNumber=D;var Y=[];Y.push({key:"Type",value:"/Pattern"}),Y.push({key:"PatternType",value:"1"}),Y.push({key:"PaintType",value:"1"}),Y.push({key:"TilingType",value:"1"}),Y.push({key:"BBox",value:"["+h.boundingBox.map(K).join(" ")+"]"}),Y.push({key:"XStep",value:K(h.xStep)}),Y.push({key:"YStep",value:K(h.yStep)}),Y.push({key:"Resources",value:E+" 0 R"}),h.matrix&&Y.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Zn({data:h.stream,additionalKeyValues:Y,objectId:h.objectNumber}),P("endobj");},Hs=function(h){for(var m in h.objectNumber=ze(),P("<<"),h)switch(m){case "opacity":P("/ca "+L(h[m]));break;case "stroke-opacity":P("/CA "+L(h[m]));}P(">>"),P("endobj");},Ta=function(h){ln(h.resourcesOid,true),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var m in P("/Font <<"),oe)oe.hasOwnProperty(m)&&(x===false||x===true&&N.hasOwnProperty(m))&&P("/"+m+" "+oe[m].objectNumber+" 0 R");P(">>");})(),(function(){if(Object.keys(Ut).length>0){for(var m in P("/Shading <<"),Ut)Ut.hasOwnProperty(m)&&Ut[m]instanceof Wi&&Ut[m].objectNumber>=0&&P("/"+m+" "+Ut[m].objectNumber+" 0 R");_e.publish("putShadingPatternDict"),P(">>");}})(),(function(m){if(Object.keys(Ut).length>0){for(var E in P("/Pattern <<"),Ut)Ut.hasOwnProperty(E)&&Ut[E]instanceof p.TilingPattern&&Ut[E].objectNumber>=0&&Ut[E].objectNumber<m&&P("/"+E+" "+Ut[E].objectNumber+" 0 R");_e.publish("putTilingPatternDict"),P(">>");}})(h.objectOid),(function(){if(Object.keys(Zt).length>0){var m;for(m in P("/ExtGState <<"),Zt)Zt.hasOwnProperty(m)&&Zt[m].objectNumber>=0&&P("/"+m+" "+Zt[m].objectNumber+" 0 R");_e.publish("putGStateDict"),P(">>");}})(),(function(){for(var m in P("/XObject <<"),pn)pn.hasOwnProperty(m)&&pn[m].objectNumber>=0&&P("/"+m+" "+pn[m].objectNumber+" 0 R");_e.publish("putXobjectDict"),P(">>");})(),P(">>"),P("endobj");},Eo=function(h){se[h.fontName]=se[h.fontName]||{},se[h.fontName][h.fontStyle]=h.id;},Io=function(h,m,E,D,Y){var lt={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:m,fontStyle:E,encoding:D,isStandardFont:Y||false,metadata:{}};return _e.publish("addFont",{font:lt,instance:this}),oe[lt.id]=lt,Eo(lt),lt.id},$n=p.__private__.pdfEscape=p.pdfEscape=function(h,m){return (function(E,D){var Y,lt,vt,Ft,Ct,Kt,te,pe,Je;if(vt=(D=D||{}).sourceEncoding||"Unicode",Ct=D.outputEncoding,(D.autoencode||Ct)&&oe[Bt].metadata&&oe[Bt].metadata[vt]&&oe[Bt].metadata[vt].encoding&&(Ft=oe[Bt].metadata[vt].encoding,!Ct&&oe[Bt].encoding&&(Ct=oe[Bt].encoding),!Ct&&Ft.codePages&&(Ct=Ft.codePages[0]),typeof Ct=="string"&&(Ct=Ft[Ct]),Ct)){for(te=false,Kt=[],Y=0,lt=E.length;Y<lt;Y++)(pe=Ct[E.charCodeAt(Y)])?Kt.push(String.fromCharCode(pe)):Kt.push(E[Y]),Kt[Y].charCodeAt(0)>>8&&(te=true);E=Kt.join("");}for(Y=E.length;te===void 0&&Y!==0;)E.charCodeAt(Y-1)>>8&&(te=true),Y--;if(!te)return E;for(Kt=D.noBOM?[]:[254,255],Y=0,lt=E.length;Y<lt;Y++){if((Je=(pe=E.charCodeAt(Y))>>8)>>8)throw new Error("Character at position "+Y+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Kt.push(Je),Kt.push(pe-(Je<<8));}return String.fromCharCode.apply(void 0,Kt)})(h,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ba=p.__private__.beginPage=function(h){xt[++le]=[],Gt[le]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Fo(le),Dt(xt[B]);},Co=function(h,m){var E,D,Y;switch(e=m||e,typeof h=="string"&&(E=k(h.toLowerCase()),Array.isArray(E)&&(D=E[0],Y=E[1])),Array.isArray(h)&&(D=h[0]*ne,Y=h[1]*ne),isNaN(D)&&(D=a[0],Y=a[1]),(D>14400||Y>14400)&&(Pe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),D=Math.min(14400,D),Y=Math.min(14400,Y)),a=[D,Y],e.substr(0,1)){case "l":Y>D&&(a=[Y,D]);break;case "p":D>Y&&(a=[Y,D]);}Ba(a),Qs($t),P(na),za!==0&&P(za+" J"),Kr!==0&&P(Kr+" j"),_e.publish("addPage",{pageNumber:le});},Ra=function(h){h>0&&h<=le&&(xt.splice(h,1),Gt.splice(h,1),le--,B>le&&(B=le),this.setPage(B));},Fo=function(h){h>0&&h<=le&&(B=h);},Oo=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return xt.length-1},To=function(h,m,E){var D,Y=void 0;return E=E||{},h=h!==void 0?h:oe[Bt].fontName,m=m!==void 0?m:oe[Bt].fontStyle,D=h.toLowerCase(),se[D]!==void 0&&se[D][m]!==void 0?Y=se[D][m]:se[h]!==void 0&&se[h][m]!==void 0?Y=se[h][m]:E.disableWarning===false&&Pe.warn("Unable to look up font label for font '"+h+"', '"+m+"'. Refer to getFontList() for available fonts."),Y||E.noFallback||(Y=se.times[m])==null&&(Y=se.times.normal),Y},pr=p.__private__.putInfo=function(){var h=ze(),m=function(D){return D};for(var E in v!==null&&(m=hn.encryptor(h,0)),P("<<"),P("/Producer ("+$n(m("jsPDF "+jt.version))+")"),fe)fe.hasOwnProperty(E)&&fe[E]&&P("/"+E.substr(0,1).toUpperCase()+E.substr(1)+" ("+$n(m(fe[E]))+")");P("/CreationDate ("+$n(m(rt))+")"),P(">>"),P("endobj");},Xi=p.__private__.putCatalog=function(h){var m=(h=h||{}).rootDictionaryObjId||Zr;switch(ze(),P("<<"),P("/Type /Catalog"),P("/Pages "+m+" 0 R"),Wt||(Wt="fullwidth"),Wt){case "fullwidth":P("/OpenAction [3 0 R /FitH null]");break;case "fullheight":P("/OpenAction [3 0 R /FitV null]");break;case "fullpage":P("/OpenAction [3 0 R /Fit]");break;case "original":P("/OpenAction [3 0 R /XYZ null null 1]");break;default:var E=""+Wt;E.substr(E.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&P("/OpenAction [3 0 R /XYZ null null "+L(Wt)+"]");}switch(he||(he="continuous"),he){case "continuous":P("/PageLayout /OneColumn");break;case "single":P("/PageLayout /SinglePage");break;case "two":case "twoleft":P("/PageLayout /TwoColumnLeft");break;case "tworight":P("/PageLayout /TwoColumnRight");}zt&&P("/PageMode /"+zt),_e.publish("putCatalog"),P(">>"),P("endobj");},Ws=p.__private__.putTrailer=function(){P("trailer"),P("<<"),P("/Size "+($+1)),P("/Root "+$+" 0 R"),P("/Info "+($-1)+" 0 R"),v!==null&&P("/Encrypt "+hn.oid+" 0 R"),P("/ID [ <"+st+"> <"+st+"> ]"),P(">>");},Xe=p.__private__.putHeader=function(){P("%PDF-"+T),P("%\xBA\xDF\xAC\xE0");},Bo=p.__private__.putXRef=function(){var h="0000000000";P("xref"),P("0 "+($+1)),P("0000000000 65535 f ");for(var m=1;m<=$;m++)typeof J[m]=="function"?P((h+J[m]()).slice(-10)+" 00000 n "):J[m]!==void 0?P((h+J[m]).slice(-10)+" 00000 n "):P("0000000000 00000 n ");},gr=p.__private__.buildDocument=function(){var h;$=0,ot=0,at=[],J=[],gt=[],Zr=an(),tr=an(),Dt(at),_e.publish("buildDocument"),Xe(),dr(),(function(){_e.publish("putAdditionalObjects");for(var E=0;E<gt.length;E++){var D=gt[E];ln(D.objId,true),P(D.content),P("endobj");}_e.publish("postPutAdditionalObjects");})(),h=[],(function(){for(var E in oe)oe.hasOwnProperty(E)&&(x===false||x===true&&N.hasOwnProperty(E))&&wi(oe[E]);})(),(function(){var E;for(E in Zt)Zt.hasOwnProperty(E)&&Hs(Zt[E]);})(),(function(){for(var E in pn)pn.hasOwnProperty(E)&&$i(pn[E]);})(),(function(E){var D;for(D in Ut)Ut.hasOwnProperty(D)&&(Ut[D]instanceof Wi?Yi(Ut[D]):Ut[D]instanceof Ea&&Ki(Ut[D],E));})(h),_e.publish("putResources"),h.forEach(Ta),Ta({resourcesOid:tr,objectOid:Number.MAX_SAFE_INTEGER}),_e.publish("postPutResources"),v!==null&&(hn.oid=ze(),P("<<"),P("/Filter /Standard"),P("/V "+hn.v),P("/R "+hn.r),P("/U <"+hn.toHexString(hn.U)+">"),P("/O <"+hn.toHexString(hn.O)+">"),P("/P "+hn.P),P(">>"),P("endobj")),pr(),Xi();var m=ot;return Bo(),Ws(),P("startxref"),P(""+m),P("%%EOF"),Dt(xt[B]),at.join(`
`)},Ji=p.__private__.getBlob=function(h){return new Blob([ae(h)],{type:"application/pdf"})},Ma=function(h){for(;h.firstChild;)h.removeChild(h.firstChild);},Bn=function(h){var m,E=h.document,D=E.documentElement,Y=E.head,lt=E.body;return Y||(Y=E.createElement("head"),D.appendChild(Y)),lt||(lt=E.createElement("body"),D.appendChild(lt)),Ma(Y),Ma(lt),(m=E.createElement("style")).appendChild(E.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),Y.appendChild(m),{document:E,body:lt}},Qi=p.output=p.__private__.output=(Vn=function(h,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",h){case void 0:return gr();case "save":p.save(m.filename);break;case "arraybuffer":return ae(gr());case "blob":return Ji(gr());case "bloburi":case "bloburl":if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL=="function")return Yt.URL&&Yt.URL.createObjectURL(Ji(gr()))||void 0;Pe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case "datauristring":case "dataurlstring":var E="",D=gr();try{E=au(D);}catch(gn){E=au(unescape(encodeURIComponent(D)));}return "data:application/pdf;filename="+encodeURIComponent(m.filename)+";base64,"+E;case "pdfobjectnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var Y="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",lt=!m.pdfObjectUrl;lt||(Y=m.pdfObjectUrl);var vt=Yt.open();if(vt!==null){var Ft=Bn(vt),Ct=Ft.document.createElement("script"),Kt=this;Ct.src=Y,lt&&(Ct.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ct.crossOrigin="anonymous"),Ct.onload=function(){vt.PDFObject.embed(Kt.output("dataurlstring"),m);},Ft.body.appendChild(Ct);}return vt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case "pdfjsnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var te=m.pdfJsUrl||"examples/PDF.js/web/viewer.html",pe=Yt.open();if(pe!==null){var Je=Bn(pe),Se=Je.document.createElement("iframe"),Ne=te.indexOf("?")===-1?"?":"&";Kt=this,Se.id="pdfViewer",Se.width="500px",Se.height="400px",Se.src=te+Ne+"file=&downloadName="+encodeURIComponent(m.filename),Se.onload=function(){pe.document.title=m.filename,Se.contentWindow.PDFViewerApplication.open(Kt.output("bloburl"));},Je.body.appendChild(Se);}return pe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case "dataurlnewwindow":if(Object.prototype.toString.call(Yt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Oe=Yt.open();if(Oe!==null){var je=Bn(Oe),De=je.document.createElement("iframe");De.src=this.output("datauristring",m),je.body.appendChild(De),Oe.document.title=m.filename;}if(Oe||typeof safari>"u")return Oe;break;case "datauri":case "dataurl":return Yt.document.location.href=this.output("datauristring",m);default:return null}},Vn.foo=function(){try{return Vn.apply(this,arguments)}catch(E){var h=E.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var m="Error in function "+h.split(`
`)[0].split("<")[0]+": "+E.message;if(!Yt.console)throw new Error(m);Yt.console.error(m,E),Yt.alert&&alert(m);}},Vn.foo.bar=Vn,Vn.foo),Cr=function(h){return Array.isArray(vi)===true&&vi.indexOf(h)>-1};switch(r){case "pt":ne=1;break;case "mm":ne=72/25.4;break;case "cm":ne=72/2.54;break;case "in":ne=72;break;case "px":ne=Cr("px_scaling")==1?.75:96/72;break;case "pc":case "em":ne=12;break;case "ex":ne=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);ne=r;}var hn=null;wt(),nt();var Ro=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return {objId:Gt[h].objId,pageNumber:h,pageContext:Gt[h]}},Gs=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in Gt)if(Gt[m].objId===h)break;return Ro(m)},Vs=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return {objId:Gt[B].objId,pageNumber:B,pageContext:Gt[B]}};p.addPage=function(){return Co.apply(this,arguments),this},p.setPage=function(){return Fo.apply(this,arguments),Dt.call(this,xt[B]),this},p.insertPage=function(h){return this.addPage(),this.movePage(B,h),this},p.movePage=function(h,m){var E,D;if(h>m){E=xt[h],D=Gt[h];for(var Y=h;Y>m;Y--)xt[Y]=xt[Y-1],Gt[Y]=Gt[Y-1];xt[m]=E,Gt[m]=D,this.setPage(m);}else if(h<m){E=xt[h],D=Gt[h];for(var lt=h;lt<m;lt++)xt[lt]=xt[lt+1],Gt[lt]=Gt[lt+1];xt[m]=E,Gt[m]=D,this.setPage(m);}return this},p.deletePage=function(){return Ra.apply(this,arguments),this},p.__private__.text=p.text=function(h,m,E,D,Y){var lt,vt,Ft,Ct,Kt,te,pe,Je,Se,Ne=(D=D||{}).scope||this;if(typeof h=="number"&&typeof m=="number"&&(typeof E=="string"||Array.isArray(E))){var Oe=E;E=m,m=h,h=Oe;}if(arguments[3]instanceof Vt==0?(Ft=arguments[4],Ct=arguments[5],o(pe=arguments[3])==="object"&&pe!==null||(typeof Ft=="string"&&(Ct=Ft,Ft=null),typeof pe=="string"&&(Ct=pe,pe=null),typeof pe=="number"&&(Ft=pe,pe=null),D={flags:pe,angle:Ft,align:Ct})):(M("The transform parameter of text() with a Matrix value"),Se=Y),isNaN(m)||isNaN(E)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return Ne;var je,De="",gn=typeof D.lineHeightFactor=="number"?D.lineHeightFactor:yi,Rr=Ne.internal.scaleFactor;function Wa(Ie){return Ie=Ie.split(" ").join(Array(D.TabLen||9).join(" ")),$n(Ie,pe)}function Ai(Ie){for(var Ce,Ge=Ie.concat(),tn=[],jr=Ge.length;jr--;)typeof(Ce=Ge.shift())=="string"?tn.push(Ce):Array.isArray(Ie)&&(Ce.length===1||Ce[1]===void 0&&Ce[2]===void 0)?tn.push(Ce[0]):tn.push([Ce[0],Ce[1],Ce[2]]);return tn}function Ni(Ie,Ce){var Ge;if(typeof Ie=="string")Ge=Ce(Ie)[0];else if(Array.isArray(Ie)){for(var tn,jr,Ka=Ie.concat(),pa=[],Vo=Ka.length;Vo--;)typeof(tn=Ka.shift())=="string"?pa.push(Ce(tn)[0]):Array.isArray(tn)&&typeof tn[0]=="string"&&(jr=Ce(tn[0],tn[1],tn[2]),pa.push([jr[0],jr[1],jr[2]]));Ge=pa;}return Ge}var Xr=false,Li=true;if(typeof h=="string")Xr=true;else if(Array.isArray(h)){var oa=h.concat();vt=[];for(var sa,vn=oa.length;vn--;)(typeof(sa=oa.shift())!="string"||Array.isArray(sa)&&typeof sa[0]!="string")&&(Li=false);Xr=Li;}if(Xr===false)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var Si=yt/Ne.internal.scaleFactor,ki=Si*(gn-1);switch(D.baseline){case "bottom":E-=ki;break;case "top":E+=Si-ki;break;case "hanging":E+=Si-2*ki;break;case "middle":E+=Si/2-ki;}if((te=D.maxWidth||0)>0&&(typeof h=="string"?h=Ne.splitTextToSize(h,te):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Ie,Ce){return Ie.concat(Ne.splitTextToSize(Ce,te))},[]))),lt={text:h,x:m,y:E,options:D,mutex:{pdfEscape:$n,activeFontKey:Bt,fonts:oe,activeFontSize:yt}},_e.publish("preProcessText",lt),h=lt.text,Ft=(D=lt.options).angle,Se instanceof Vt==0&&Ft&&typeof Ft=="number"){Ft*=Math.PI/180,D.rotationDirection===0&&(Ft=-Ft),z===V&&(Ft=-Ft);var Ga=Math.cos(Ft),br=Math.sin(Ft);Se=new Vt(Ga,br,-br,Ga,0,0);}else Ft&&Ft instanceof Vt&&(Se=Ft);z!==V||Se||(Se=Ir),(Kt=D.charSpace||ra)!==void 0&&(De+=K(q(Kt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Je=D.horizontalScale)!==void 0&&(De+=K(100*Je)+` Tz
`),D.lang;var An=-1,Wo=D.renderingMode!==void 0?D.renderingMode:D.stroke,la=Ne.internal.getCurrentPageInfo().pageContext;switch(Wo){case 0:case false:case "fill":An=0;break;case 1:case true:case "stroke":An=1;break;case 2:case "fillThenStroke":An=2;break;case 3:case "invisible":An=3;break;case 4:case "fillAndAddForClipping":An=4;break;case 5:case "strokeAndAddPathForClipping":An=5;break;case 6:case "fillThenStrokeAndAddToPathForClipping":An=6;break;case 7:case "addToPathForClipping":An=7;}var Go=la.usedRenderingMode!==void 0?la.usedRenderingMode:-1;An!==-1?De+=An+` Tr
`:Go!==-1&&(De+=`0 Tr
`),An!==-1&&(la.usedRenderingMode=An),Ct=D.align||"left";var Yn,Pi=yt*gn,Va=Ne.internal.pageSize.getWidth(),ha=oe[Bt];Kt=D.charSpace||ra,te=D.maxWidth||0,pe=Object.assign({autoencode:true,noBOM:true},D.flags);var Ei=[],Za=function(Ie){return Ne.getStringUnitWidth(Ie,{font:ha,charSpace:Kt,fontSize:yt,doKerning:false})*yt/Rr};if(Object.prototype.toString.call(h)==="[object Array]"){var Nn;vt=Ai(h),Ct!=="left"&&(Yn=vt.map(Za));var In,fa=0;if(Ct==="right"){m-=Yn[0],h=[],vn=vt.length;for(var Jr=0;Jr<vn;Jr++)Jr===0?(In=Fr(m),Nn=Or(E)):(In=q(fa-Yn[Jr]),Nn=-Pi),h.push([vt[Jr],In,Nn]),fa=Yn[Jr];}else if(Ct==="center"){m-=Yn[0]/2,h=[],vn=vt.length;for(var Qr=0;Qr<vn;Qr++)Qr===0?(In=Fr(m),Nn=Or(E)):(In=q((fa-Yn[Qr])/2),Nn=-Pi),h.push([vt[Qr],In,Nn]),fa=Yn[Qr];}else if(Ct==="left"){h=[],vn=vt.length;for(var ca=0;ca<vn;ca++)h.push(vt[ca]);}else if(Ct==="justify"&&ha.encoding==="Identity-H"){h=[],vn=vt.length,te=te!==0?te:Va;for(var Ii=0,Qe=0;Qe<vn;Qe++)if(Nn=Qe===0?Or(E):-Pi,In=Qe===0?Fr(m):Ii,Qe<vn-1){var sl=q((te-Yn[Qe])/(vt[Qe].split(" ").length-1)),wr=vt[Qe].split(" ");h.push([wr[0]+" ",In,Nn]),Ii=0;for(var rr=1;rr<wr.length;rr++){var Ci=(Za(wr[rr-1]+" "+wr[rr])-Za(wr[rr]))*Rr+sl;rr==wr.length-1?h.push([wr[rr],Ci,0]):h.push([wr[rr]+" ",Ci,0]),Ii-=Ci;}}else h.push([vt[Qe],In,Nn]);h.push(["",Ii,0]);}else {if(Ct!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],vn=vt.length,te=te!==0?te:Va,Qe=0;Qe<vn;Qe++){Nn=Qe===0?Or(E):-Pi,In=Qe===0?Fr(m):0;var $a=vt[Qe].split(" ").length-1,Ya=$a>0?(te-Yn[Qe])/$a:0;Qe<vn-1?Ei.push(K(q(Ya))):Ei.push(0),h.push([vt[Qe],In,Nn]);}}}(typeof D.R2L=="boolean"?D.R2L:qt)===true&&(h=Ni(h,function(Ie,Ce,Ge){return [Ie.split("").reverse().join(""),Ce,Ge]})),lt={text:h,x:m,y:E,options:D,mutex:{pdfEscape:$n,activeFontKey:Bt,fonts:oe,activeFontSize:yt}},_e.publish("postProcessText",lt),h=lt.text,je=lt.mutex.isHex||false;var ua=oe[Bt].encoding;ua!=="WinAnsiEncoding"&&ua!=="StandardEncoding"||(h=Ni(h,function(Ie,Ce,Ge){return [Wa(Ie),Ce,Ge]})),vt=Ai(h),h=[];for(var Fi,Oi,ti,Mr=Array.isArray(vt[0])?1:0,ei="",da=function(Ie,Ce,Ge){var tn="";return Ge instanceof Vt?(Ge=typeof D.angle=="number"?Er(Ge,new Vt(1,0,0,1,Ie,Ce)):Er(new Vt(1,0,0,1,Ie,Ce),Ge),z===V&&(Ge=Er(new Vt(1,0,0,-1,0,0),Ge)),tn=Ge.join(" ")+` Tm
`):tn=K(Ie)+" "+K(Ce)+` Td
`,tn},mn=0;mn<vt.length;mn++){switch(ei="",Mr){case 1:ti=(je?"<":"(")+vt[mn][0]+(je?">":")"),Fi=parseFloat(vt[mn][1]),Oi=parseFloat(vt[mn][2]);break;case 0:ti=(je?"<":"(")+vt[mn]+(je?">":")"),Fi=Fr(m),Oi=Or(E);}Ei!==void 0&&Ei[mn]!==void 0&&(ei=Ei[mn]+` Tw
`),mn===0?h.push(ei+da(Fi,Oi,Se)+ti):Mr===0?h.push(ei+ti):Mr===1&&h.push(ei+da(Fi,Oi,Se)+ti);}h=Mr===0?h.join(` Tj
T* `):h.join(` Tj
`),h+=` Tj
`;var yr=`BT
/`;return yr+=Bt+" "+yt+` Tf
`,yr+=K(yt*gn)+` TL
`,yr+=mr+`
`,yr+=De,yr+=h,P(yr+="ET"),N[Bt]=true,Ne};var Zs=p.__private__.clip=p.clip=function(h){return P(h==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Zs("evenodd")},p.__private__.discardPath=p.discardPath=function(){return P("n"),this};var vr=p.__private__.isValidStyle=function(h){var m=false;return [void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(m=true),m};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return vr(h)&&(d=h),this};var Mo=p.__private__.getStyle=p.getStyle=function(h){var m=d;switch(h){case "D":case "S":m="S";break;case "F":m="f";break;case "FD":case "DF":m="B";break;case "f":case "f*":case "B":case "B*":m=h;}return m},ta=p.close=function(){return P("h"),this};p.stroke=function(){return P("S"),this},p.fill=function(h){return ea("f",h),this},p.fillEvenOdd=function(h){return ea("f*",h),this},p.fillStroke=function(h){return ea("B",h),this},p.fillStrokeEvenOdd=function(h){return ea("B*",h),this};var ea=function(h,m){o(m)==="object"?Ys(m,h):P(h);},ja=function(h){h===null||z===V&&h===void 0||(h=Mo(h),P(h));};function $s(h,m,E,D,Y){var lt=new Ea(m||this.boundingBox,E||this.xStep,D||this.yStep,this.gState,Y||this.matrix);lt.stream=this.stream;var vt=h+"$$"+this.cloneIndex+++"$$";return Gn(vt,lt),lt}var Ys=function(h,m){var E=Ee[h.key],D=Ut[E];if(D instanceof Wi)P("q"),P(Ks(m)),D.gState&&p.setGState(D.gState),P(h.matrix.toString()+" cm"),P("/"+E+" sh"),P("Q");else if(D instanceof Ea){var Y=new Vt(1,0,0,-1,0,xi());h.matrix&&(Y=Y.multiply(h.matrix||Ir),E=$s.call(D,h.key,h.boundingBox,h.xStep,h.yStep,Y).id),P("q"),P("/Pattern cs"),P("/"+E+" scn"),D.gState&&p.setGState(D.gState),P(m),P("Q");}},Ks=function(h){switch(h){case "f":case "F":case "n":return "W n";case "f*":return "W* n";case "B":case "S":return "W S";case "B*":return "W* S"}},$r=p.moveTo=function(h,m){return P(K(q(h))+" "+K(U(m))+" m"),this},jo=p.lineTo=function(h,m){return P(K(q(h))+" "+K(U(m))+" l"),this},Yr=p.curveTo=function(h,m,E,D,Y,lt){return P([K(q(h)),K(U(m)),K(q(E)),K(U(D)),K(q(Y)),K(U(lt)),"c"].join(" ")),this};p.__private__.line=p.line=function(h,m,E,D,Y){if(isNaN(h)||isNaN(m)||isNaN(E)||isNaN(D)||!vr(Y))throw new Error("Invalid arguments passed to jsPDF.line");return z===G?this.lines([[E-h,D-m]],h,m,[1,1],Y||"S"):this.lines([[E-h,D-m]],h,m,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,m,E,D,Y,lt){var vt,Ft,Ct,Kt,te,pe,Je,Se,Ne,Oe,je,De;if(typeof h=="number"&&(De=E,E=m,m=h,h=De),D=D||[1,1],lt=lt||false,isNaN(m)||isNaN(E)||!Array.isArray(h)||!Array.isArray(D)||!vr(Y)||typeof lt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for($r(m,E),vt=D[0],Ft=D[1],Kt=h.length,Oe=m,je=E,Ct=0;Ct<Kt;Ct++)(te=h[Ct]).length===2?(Oe=te[0]*vt+Oe,je=te[1]*Ft+je,jo(Oe,je)):(pe=te[0]*vt+Oe,Je=te[1]*Ft+je,Se=te[2]*vt+Oe,Ne=te[3]*Ft+je,Oe=te[4]*vt+Oe,je=te[5]*Ft+je,Yr(pe,Je,Se,Ne,Oe,je));return lt&&ta(),ja(Y),this},p.path=function(h){for(var m=0;m<h.length;m++){var E=h[m],D=E.c;switch(E.op){case "m":$r(D[0],D[1]);break;case "l":jo(D[0],D[1]);break;case "c":Yr.apply(this,D);break;case "h":ta();}}return this},p.__private__.rect=p.rect=function(h,m,E,D,Y){if(isNaN(h)||isNaN(m)||isNaN(E)||isNaN(D)||!vr(Y))throw new Error("Invalid arguments passed to jsPDF.rect");return z===G&&(D=-D),P([K(q(h)),K(U(m)),K(q(E)),K(q(D)),"re"].join(" ")),ja(Y),this},p.__private__.triangle=p.triangle=function(h,m,E,D,Y,lt,vt){if(isNaN(h)||isNaN(m)||isNaN(E)||isNaN(D)||isNaN(Y)||isNaN(lt)||!vr(vt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[E-h,D-m],[Y-E,lt-D],[h-Y,m-lt]],h,m,[1,1],vt,true),this},p.__private__.roundedRect=p.roundedRect=function(h,m,E,D,Y,lt,vt){if(isNaN(h)||isNaN(m)||isNaN(E)||isNaN(D)||isNaN(Y)||isNaN(lt)||!vr(vt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ft=4/3*(Math.SQRT2-1);return Y=Math.min(Y,.5*E),lt=Math.min(lt,.5*D),this.lines([[E-2*Y,0],[Y*Ft,0,Y,lt-lt*Ft,Y,lt],[0,D-2*lt],[0,lt*Ft,-Y*Ft,lt,-Y,lt],[2*Y-E,0],[-Y*Ft,0,-Y,-lt*Ft,-Y,-lt],[0,2*lt-D],[0,-lt*Ft,Y*Ft,-lt,Y,-lt]],h+Y,m,[1,1],vt,true),this},p.__private__.ellipse=p.ellipse=function(h,m,E,D,Y){if(isNaN(h)||isNaN(m)||isNaN(E)||isNaN(D)||!vr(Y))throw new Error("Invalid arguments passed to jsPDF.ellipse");var lt=4/3*(Math.SQRT2-1)*E,vt=4/3*(Math.SQRT2-1)*D;return $r(h+E,m),Yr(h+E,m-vt,h+lt,m-D,h,m-D),Yr(h-lt,m-D,h-E,m-vt,h-E,m),Yr(h-E,m+vt,h-lt,m+D,h,m+D),Yr(h+lt,m+D,h+E,m+vt,h+E,m),ja(Y),this},p.__private__.circle=p.circle=function(h,m,E,D){if(isNaN(h)||isNaN(m)||isNaN(E)||!vr(D))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,m,E,E,D)},p.setFont=function(h,m,E){return E&&(m=dt(m,E)),Bt=To(h,m,{disableWarning:false}),this};var Xs=p.__private__.getFont=p.getFont=function(){return oe[To.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var h,m,E={};for(h in se)if(se.hasOwnProperty(h))for(m in E[h]=[],se[h])se[h].hasOwnProperty(m)&&E[h].push(m);return E},p.addFont=function(h,m,E,D,Y){var lt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&<.indexOf(arguments[3])!==-1?Y=arguments[3]:arguments[3]&<.indexOf(arguments[3])==-1&&(E=dt(E,D)),Io.call(this,h,m,E,Y=Y||"Identity-H")};var yi,$t=t.lineWidth||.200025,Js=p.__private__.getLineWidth=p.getLineWidth=function(){return $t},Qs=p.__private__.setLineWidth=p.setLineWidth=function(h){return $t=h,P(K(q(h))+" w"),this};p.__private__.setLineDash=jt.API.setLineDash=jt.API.setLineDashPattern=function(h,m){if(h=h||[],m=m||0,isNaN(m)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(E){return K(q(E))}).join(" "),m=K(q(m)),P("["+h+"] "+m+" d"),this};var tl=p.__private__.getLineHeight=p.getLineHeight=function(){return yt*yi};p.__private__.getLineHeight=p.getLineHeight=function(){return yt*yi};var el=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&(yi=h),this},nl=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return yi};el(t.lineHeight);var Fr=p.__private__.getHorizontalCoordinate=function(h){return q(h)},Or=p.__private__.getVerticalCoordinate=function(h){return z===V?h:Gt[B].mediaBox.topRightY-Gt[B].mediaBox.bottomLeftY-q(h)},rl=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(h){return K(Fr(h))},il=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(h){return K(Or(h))},na=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ur(na)},p.__private__.setStrokeColor=p.setDrawColor=function(h,m,E,D){return na=er({ch1:h,ch2:m,ch3:E,ch4:D,pdfColorType:"draw",precision:2}),P(na),this};var Da=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ur(Da)},p.__private__.setFillColor=p.setFillColor=function(h,m,E,D){return Da=er({ch1:h,ch2:m,ch3:E,ch4:D,pdfColorType:"fill",precision:2}),P(Da),this};var mr=t.textColor||"0 g",al=p.__private__.getTextColor=p.getTextColor=function(){return ur(mr)};p.__private__.setTextColor=p.setTextColor=function(h,m,E,D){return mr=er({ch1:h,ch2:m,ch3:E,ch4:D,pdfColorType:"text",precision:3}),this};var ra=t.charSpace,ol=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(ra||0)};p.__private__.setCharSpace=p.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ra=h,this};var za=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(h){var m=p.CapJoinStyles[h];if(m===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return za=m,P(m+" J"),this};var Kr=0;p.__private__.setLineJoin=p.setLineJoin=function(h){var m=p.CapJoinStyles[h];if(m===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Kr=m,P(m+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return P(K(q(h))+" M"),this},p.GState=zs,p.setGState=function(h){(h=typeof h=="string"?Zt[Qt[h]]:Ua(null,h)).equals(Re)||(P("/"+h.id+" gs"),Re=h);};var Ua=function(h,m){if(!h||!Qt[h]){var E=false;for(var D in Zt)if(Zt.hasOwnProperty(D)&&Zt[D].equals(m)){E=true;break}if(E)m=Zt[D];else {var Y="GS"+(Object.keys(Zt).length+1).toString(10);Zt[Y]=m,m.id=Y;}return h&&(Qt[h]=m.id),_e.publish("addGState",m),m}};p.addGState=function(h,m){return Ua(h,m),this},p.saveGraphicsState=function(){return P("q"),Be.push({key:Bt,size:yt,color:mr}),this},p.restoreGraphicsState=function(){P("Q");var h=Be.pop();return Bt=h.key,yt=h.size,mr=h.color,Re=null,this},p.setCurrentTransformationMatrix=function(h){return P(h.toString()+" cm"),this},p.comment=function(h){return P("#"+h),this};var _i=function(h,m){var E=h||0;Object.defineProperty(this,"x",{enumerable:true,get:function(){return E},set:function(lt){isNaN(lt)||(E=parseFloat(lt));}});var D=m||0;Object.defineProperty(this,"y",{enumerable:true,get:function(){return D},set:function(lt){isNaN(lt)||(D=parseFloat(lt));}});var Y="pt";return Object.defineProperty(this,"type",{enumerable:true,get:function(){return Y},set:function(lt){Y=lt.toString();}}),this},qa=function(h,m,E,D){_i.call(this,h,m),this.type="rect";var Y=E||0;Object.defineProperty(this,"w",{enumerable:true,get:function(){return Y},set:function(vt){isNaN(vt)||(Y=parseFloat(vt));}});var lt=D||0;return Object.defineProperty(this,"h",{enumerable:true,get:function(){return lt},set:function(vt){isNaN(vt)||(lt=parseFloat(vt));}}),this},ia=function(){this.page=le,this.currentPage=B,this.pages=xt.slice(0),this.pagesContext=Gt.slice(0),this.x=Mt,this.y=We,this.matrix=ve,this.width=Do(B),this.height=Br(B),this.outputDestination=St,this.id="",this.objectNumber=-1;};ia.prototype.restore=function(){le=this.page,B=this.currentPage,Gt=this.pagesContext,xt=this.pages,Mt=this.x,We=this.y,ve=this.matrix,Tr(B,this.width),zo(B,this.height),St=this.outputDestination;};var Ha=function(h,m,E,D,Y){cr.push(new ia),le=B=0,xt=[],Mt=h,We=m,ve=Y,Ba([E,D]);};for(var aa in p.beginFormObject=function(h,m,E,D,Y){return Ha(h,m,E,D,Y),this},p.endFormObject=function(h){return (function(m){if(Pr[m])cr.pop().restore();else {var E=new ia,D="Xo"+(Object.keys(pn).length+1).toString(10);E.id=D,Pr[m]=D,pn[D]=E,_e.publish("addFormObject",E),cr.pop().restore();}})(h),this},p.doFormObject=function(h,m){var E=pn[Pr[h]];return P("q"),P(m.toString()+" cm"),P("/"+E.id+" Do"),P("Q"),this},p.getFormObject=function(h){var m=pn[Pr[h]];return {x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},p.save=function(h,m){return h=h||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||false,m.returnPromise===false?(Hi(Ji(gr()),h),typeof Hi.unload=="function"&&Yt.setTimeout&&setTimeout(Hi.unload,911),this):new Promise(function(E,D){try{var Y=Hi(Ji(gr()),h);typeof Hi.unload=="function"&&Yt.setTimeout&&setTimeout(Hi.unload,911),E(Y);}catch(lt){D(lt.message);}})},jt.API)jt.API.hasOwnProperty(aa)&&(aa==="events"&&jt.API.events.length?(function(h,m){var E,D,Y;for(Y=m.length-1;Y!==-1;Y--)E=m[Y][0],D=m[Y][1],h.subscribe.apply(h,[E].concat(typeof D=="function"?[D]:D));})(_e,jt.API.events):p[aa]=jt.API[aa]);function Do(h){return Gt[h].mediaBox.topRightX-Gt[h].mediaBox.bottomLeftX}function Tr(h,m){Gt[h].mediaBox.topRightX=m+Gt[h].mediaBox.bottomLeftX;}function Br(h){return Gt[h].mediaBox.topRightY-Gt[h].mediaBox.bottomLeftY}function zo(h,m){Gt[h].mediaBox.topRightY=m+Gt[h].mediaBox.bottomLeftY;}var Uo=p.getPageWidth=function(h){return Do(h=h||B)/ne},qo=p.setPageWidth=function(h,m){Tr(h,m*ne);},xi=p.getPageHeight=function(h){return Br(h=h||B)/ne},Ho=p.setPageHeight=function(h,m){zo(h,m*ne);};return p.internal={pdfEscape:$n,getStyle:Mo,getFont:Xs,getFontSize:Et,getCharSpace:ol,getTextColor:al,getLineHeight:tl,getLineHeightFactor:nl,getLineWidth:Js,write:Lt,getHorizontalCoordinate:Fr,getVerticalCoordinate:Or,getCoordinateString:rl,getVerticalCoordinateString:il,collections:{},newObject:ze,newAdditionalObject:mi,newObjectDeferred:an,newObjectDeferredBegin:ln,getFilters:nr,putStream:Zn,events:_e,scaleFactor:ne,pageSize:{getWidth:function(){return Uo(B)},setWidth:function(h){qo(B,h);},getHeight:function(){return xi(B)},setHeight:function(h){Ho(B,h);}},encryptionOptions:v,encryption:hn,getEncryptor:function(h){return v!==null?hn.encryptor(h,0):function(m){return m}},output:Qi,getNumberOfPages:Oo,get pages(){return xt},out:P,f2:L,f3:O,getPageInfo:Ro,getPageInfoByObjId:Gs,getCurrentPageInfo:Vs,getPDFVersion:I,Point:_i,Rectangle:qa,Matrix:Vt,hasHotfix:Cr},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Uo(B)},set:function(h){qo(B,h);},enumerable:true,configurable:true}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return xi(B)},set:function(h){Ho(B,h);},enumerable:true,configurable:true}),function(h){for(var m=0,E=Ht.length;m<E;m++){var D=Io.call(this,h[m][0],h[m][1],h[m][2],Ht[m][3],true);x===false&&(N[D]=true);var Y=h[m][0].split("-");Eo({id:D,fontName:Y[0],fontStyle:Y[1]||""});}_e.publish("addFonts",{fonts:oe,dictionary:se});}.call(p,Ht),Bt="F1",Co(a,e),_e.publish("initialized"),p}ka.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},ka.prototype.toHexString=function(t){return t.split("").map(function(n){return ("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ka.prototype.hexToBytes=function(t){for(var n=[],e=0;e<t.length;e+=2)n.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return n.join("")},ka.prototype.processOwnerPassword=function(t,n){return Lh(Nh(n).substr(0,5),t)},ka.prototype.encryptor=function(t,n){var e=Nh(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(r){return Lh(e,r)}},zs.prototype.equals=function(t){var n,e="id,objectNumber,equals";if(!t||o(t)!==o(this))return false;var r=0;for(n in this)if(!(e.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n)||this[n]!==t[n])return false;r++;}for(n in t)t.hasOwnProperty(n)&&e.indexOf(n)<0&&r--;return r===0},jt.API={events:[]},jt.version="4.2.1";var He=jt.API,Ph=1,Zi=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},La=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Vi=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(n){var e=n.charCodeAt(0).toString(16).toUpperCase();return "#"+(e.length===1?"0"+e:e)})},Xt=function(t){return t.toFixed(2)},di=function(t){return t.toFixed(5)};He.__acroform__={};var Tn=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t;},hu=function(t){return t*Ph},Lr=function(t){var n=new Iu,e=It.internal.getHeight(t)||0,r=It.internal.getWidth(t)||0;return n.BBox=[0,0,Number(Xt(r)),Number(Xt(e))],n},j5=He.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<n},D5=He.__acroform__.clearBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<n)},z5=He.__acroform__.getBit=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<n?1:0},$e=He.__acroform__.getBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return z5(t,n-1)},Ye=He.__acroform__.setBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return j5(t,n-1)},Ke=He.__acroform__.clearBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return D5(t,n-1)},U5=He.__acroform__.calculateCoordinates=function(t,n){var e=n.internal.getHorizontalCoordinate,r=n.internal.getVerticalCoordinate,a=t[0],o=t[1],f=t[2],l=t[3],c={};return c.lowerLeft_X=e(a)||0,c.lowerLeft_Y=r(o+l)||0,c.upperRight_X=e(a+f)||0,c.upperRight_Y=r(o)||0,[Number(Xt(c.lowerLeft_X)),Number(Xt(c.lowerLeft_Y)),Number(Xt(c.upperRight_X)),Number(Xt(c.upperRight_Y))]},q5=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var n=[],e=t._V||t.DV,r=Sh(t,e),a=t.scope.internal.getFont(t.fontName,t.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(t.scope.__private__.encodeColorString(t.color)),n.push("/"+a+" "+Xt(r.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC");var o=Lr(t);return o.scope=t.scope,o.stream=n.join(`
`),o}},Sh=function(t,n){var e=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},a=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");a=t.multiline?a.map(function(L){return L.split(`
`)}):a.map(function(L){return [L]});var o=e,f=It.internal.getHeight(t)||0;f=f<0?-f:f;var l=It.internal.getWidth(t)||0;l=l<0?-l:l;var c=function(L,O,q){if(L+1<a.length){var U=O+" "+a[L+1][0];return Os(U,t,q).width<=l-4}return false};o++;t:for(;o>0;){n="",o--;var d,v,x=Os("3",t,o).height,N=t.multiline?f-o:(f-x)/2,p=N+=2,T=0,I=0,R=0;if(o<=0){n=`(...) Tj
`,n+="% Width of Text: "+Os(n,t,o=12).width+", FieldWidth:"+l+`
`;break}for(var k="",G=0,V=0;V<a.length;V++)if(a.hasOwnProperty(V)){var z=false;if(a[V].length!==1&&R!==a[V].length-1){if((x+2)*(G+2)+2>f)continue t;k+=a[V][R],z=true,I=V,V--;}else {k=(k+=a[V][R]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var it=parseInt(V),mt=c(it,k,o),dt=V>=a.length-1;if(mt&&!dt){k+=" ",R=0;continue}if(mt||dt){if(dt)I=it;else if(t.multiline&&(x+2)*(G+2)+2>f)continue t}else {if(!t.multiline||(x+2)*(G+2)+2>f)continue t;I=it;}}for(var K="",M=T;M<=I;M++){var tt=a[M];if(t.multiline){if(M===I){K+=tt[R]+" ",R=(R+1)%tt.length;continue}if(M===T){K+=tt[tt.length-1]+" ";continue}}K+=tt[0]+" ";}switch(K=K.substr(K.length-1)==" "?K.substr(0,K.length-1):K,v=Os(K,t,o).width,t.textAlign){case "right":d=l-v-2;break;case "center":d=(l-v)/2;break;default:d=2;}n+=Xt(d)+" "+Xt(p)+` Td
`,n+="("+Zi(K)+`) Tj
`,n+=-Xt(d)+` 0 Td
`,p=-(o+2),v=0,T=z?I:I+1,G++,k="";}break}return r.text=n,r.fontSize=o,r},Os=function(t,n,e){var r=n.scope.internal.getFont(n.fontName,n.fontStyle),a=n.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return {height:n.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},H5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:false,internal:null,isInitialized:false},W5=function(t,n){var e={type:"reference",object:t};n.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e);},G5=function(t,n){if(n.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===false)){if(hr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(H5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ph=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Cu,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=true;})(t);}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in r)if(r.hasOwnProperty(a)){var o=r[a];o.objId=void 0,o.hasAnnotation&&W5(o,e);}})(t);}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R");})(t);}),t.internal.events.subscribe("postPutPages",function(e){(function(r,a){var o$1=!r;for(var f in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,true),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(f)){var l=r[f],c=[],d=l.Rect;if(l.Rect&&(l.Rect=U5(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,true),l.DA=It.createDefaultAppearanceStream(l),o(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var v=q5(l);c.push({key:"AP",value:"<</N "+v+">>"}),a.internal.acroformPlugin.xForms.push(v);}if(l.appearanceStreamContent){var x="";for(var N in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(N)){var p=l.appearanceStreamContent[N];if(x+="/"+N+" ",x+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var f in p)if(p.hasOwnProperty(f)){var T=p[f];typeof T=="function"&&(T=T.call(a,l)),x+="/"+f+" "+T+" ",a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T);}}else typeof(T=p)=="function"&&(T=T.call(a,l)),x+="/"+f+" "+T,a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T);x+=">>";}c.push({key:"AP",value:`<<
`+x+">>"});}a.internal.putStream({additionalKeyValues:c,objectId:l.objId}),a.internal.out("endobj");}o$1&&(function(I,R){for(var k in I)if(I.hasOwnProperty(k)){var G=k,V=I[k];R.internal.newObjectDeferredBegin(V.objId,true),o(V)==="object"&&typeof V.putStream=="function"&&V.putStream(),delete I[G];}})(a.internal.acroformPlugin.xForms,a);})(e,t);}),t.internal.acroformPlugin.isInitialized=true;}},Eu=He.__acroform__.arrayToPdfArray=function(t,n,e){var r=function(f){return f};if(Array.isArray(t)){for(var a="[",o$1=0;o$1<t.length;o$1++)switch(o$1!==0&&(a+=" "),o(t[o$1])){case "boolean":case "number":case "object":a+=t[o$1].toString();break;case "string":t[o$1].substr(0,1)==="/"?a+="/"+Vi(t[o$1].substr(1)):(n!==void 0&&e&&(r=e.internal.getEncryptor(n)),a+="("+Zi(r(t[o$1].toString()))+")");}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},wh=function(t,n,e){var r=function(a){return a};return n!==void 0&&e&&(r=e.internal.getEncryptor(n)),(t=t||"").toString(),"("+Zi(r(t))+")"},Sr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred();}return this._objId},set:function(t){this._objId=t;}}),Object.defineProperty(this,"scope",{value:this._scope,writable:true});};Sr.prototype.toString=function(){return this.objId+" 0 R"},Sr.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj");},Sr.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var e in n)if(Object.getOwnPropertyDescriptor(this,n[e]).configurable===false){var r=n[e],a=this[r];a&&(Array.isArray(a)?t.push({key:r,value:Eu(a,this.objId,this.scope)}):a instanceof Sr?(a.scope=this.scope,t.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&t.push({key:r,value:a}));}return t};var Iu=function(){Sr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:false,writable:true}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:false,writable:true}),Object.defineProperty(this,"FormType",{value:1,configurable:false,writable:true});var t,n=[];Object.defineProperty(this,"BBox",{configurable:false,get:function(){return n},set:function(e){n=e;}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:false,writable:true}),Object.defineProperty(this,"stream",{enumerable:false,configurable:true,set:function(e){t=e.trim();},get:function(){return t||null}});};Tn(Iu,Sr);var Cu=function(){Sr.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:false,configurable:true,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:false,configurable:false,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:false,configurable:false,get:function(){if(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Zi(e(t))+")"}},set:function(e){t=e;}});};Tn(Cu,Sr);var hr=function t(){Sr.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:false,configurable:false,get:function(){return n},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute F supplied.');n=k;}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:true,configurable:true,get:function(){return !!$e(n,3)},set:function(k){k?this.F=Ye(n,3):this.F=Ke(n,3);}});var e=0;Object.defineProperty(this,"Ff",{enumerable:false,configurable:false,get:function(){return e},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');e=k;}});var r=[];Object.defineProperty(this,"Rect",{enumerable:false,configurable:false,get:function(){if(r.length!==0)return r},set:function(k){r=k!==void 0?k:[];}}),Object.defineProperty(this,"x",{enumerable:true,configurable:true,get:function(){return !r||isNaN(r[0])?0:r[0]},set:function(k){r[0]=k;}}),Object.defineProperty(this,"y",{enumerable:true,configurable:true,get:function(){return !r||isNaN(r[1])?0:r[1]},set:function(k){r[1]=k;}}),Object.defineProperty(this,"width",{enumerable:true,configurable:true,get:function(){return !r||isNaN(r[2])?0:r[2]},set:function(k){r[2]=k;}}),Object.defineProperty(this,"height",{enumerable:true,configurable:true,get:function(){return !r||isNaN(r[3])?0:r[3]},set:function(k){r[3]=k;}});var a="";Object.defineProperty(this,"FT",{enumerable:true,configurable:false,get:function(){return a},set:function(k){switch(k){case "/Btn":case "/Tx":case "/Ch":case "/Sig":a=k;break;default:throw new Error('Invalid value "'+k+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:true,configurable:false,get:function(){if(!o||o.length<1){if(this instanceof Us)return;o="FieldObject"+t.FieldNum++;}var k=function(G){return G};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+Zi(k(o))+")"},set:function(k){o=k.toString();}}),Object.defineProperty(this,"fieldName",{configurable:true,enumerable:true,get:function(){return o},set:function(k){o=k;}});var f="helvetica";Object.defineProperty(this,"fontName",{enumerable:true,configurable:true,get:function(){return f},set:function(k){f=k;}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:true,configurable:true,get:function(){return l},set:function(k){l=k;}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:true,configurable:true,get:function(){return c},set:function(k){c=k;}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:true,configurable:true,get:function(){return d===void 0?50/Ph:d},set:function(k){d=k;}});var v="black";Object.defineProperty(this,"color",{enumerable:true,configurable:true,get:function(){return v},set:function(k){v=k;}});var x="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:true,configurable:false,get:function(){if(!(!x||this instanceof Us||this instanceof Gi))return wh(x,this.objId,this.scope)},set:function(k){k=k.toString(),x=k;}});var N=null;Object.defineProperty(this,"DV",{enumerable:false,configurable:false,get:function(){if(N)return this instanceof sn==0?wh(N,this.objId,this.scope):N},set:function(k){k=k.toString(),N=this instanceof sn==0?k.substr(0,1)==="("?La(k.substr(1,k.length-2)):La(k):k;}}),Object.defineProperty(this,"defaultValue",{enumerable:true,configurable:true,get:function(){return this instanceof sn==1?La(N.substr(1,N.length-1)):N},set:function(k){k=k.toString(),N=this instanceof sn==1?"/"+Vi(k):k;}});var p=null;Object.defineProperty(this,"_V",{enumerable:false,configurable:false,get:function(){if(p)return p},set:function(k){this.V=k;}}),Object.defineProperty(this,"V",{enumerable:false,configurable:false,get:function(){if(p)return this instanceof sn==0?wh(p,this.objId,this.scope):p},set:function(k){k=k.toString(),p=this instanceof sn==0?k.substr(0,1)==="("?La(k.substr(1,k.length-2)):La(k):k;}}),Object.defineProperty(this,"value",{enumerable:true,configurable:true,get:function(){return this instanceof sn==1?La(p.substr(1,p.length-1)):p},set:function(k){k=k.toString(),p=this instanceof sn==1?"/"+Vi(k):k;}}),Object.defineProperty(this,"hasAnnotation",{enumerable:true,configurable:true,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:true,configurable:false,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:true,configurable:false,get:function(){return this.hasAnnotation?"/Widget":null}});var T,I=false;Object.defineProperty(this,"hasAppearanceStream",{enumerable:true,configurable:true,get:function(){return I},set:function(k){k=!!k,I=k;}}),Object.defineProperty(this,"page",{enumerable:true,configurable:true,get:function(){if(T)return T},set:function(k){T=k;}}),Object.defineProperty(this,"readOnly",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,1)},set:function(k){k?this.Ff=Ye(this.Ff,1):this.Ff=Ke(this.Ff,1);}}),Object.defineProperty(this,"required",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,2)},set:function(k){k?this.Ff=Ye(this.Ff,2):this.Ff=Ke(this.Ff,2);}}),Object.defineProperty(this,"noExport",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,3)},set:function(k){k?this.Ff=Ye(this.Ff,3):this.Ff=Ke(this.Ff,3);}});var R=null;Object.defineProperty(this,"Q",{enumerable:true,configurable:false,get:function(){if(R!==null)return R},set:function(k){if([0,1,2].indexOf(k)===-1)throw new Error('Invalid value "'+k+'" for attribute Q supplied.');R=k;}}),Object.defineProperty(this,"textAlign",{get:function(){var k;switch(R){case 0:default:k="left";break;case 1:k="center";break;case 2:k="right";}return k},configurable:true,enumerable:true,set:function(k){switch(k){case "right":case 2:R=2;break;case "center":case 1:R=1;break;default:R=0;}}});};Tn(hr,Sr);var Ia=function(){hr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:true,configurable:false,get:function(){return t},set:function(e){t=e;}}),Object.defineProperty(this,"topIndex",{enumerable:true,configurable:true,get:function(){return t},set:function(e){t=e;}});var n=[];Object.defineProperty(this,"Opt",{enumerable:true,configurable:false,get:function(){return Eu(n,this.objId,this.scope)},set:function(e){var r,a;a=[],typeof(r=e)=="string"&&(a=(function(o,f,l){l||(l=1);for(var c,d=[];c=f.exec(o);)d.push(c[l]);return d})(r,/\((.*?)\)/g)),n=a;}}),this.getOptions=function(){return n},this.setOptions=function(e){n=e,this.sort&&n.sort();},this.addOption=function(e){e=(e=e||"").toString(),n.push(e),this.sort&&n.sort();},this.removeOption=function(e,r){for(r=r||false,e=(e=e||"").toString();n.indexOf(e)!==-1&&(n.splice(n.indexOf(e),1),r!==false););},Object.defineProperty(this,"combo",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,18)},set:function(e){e?this.Ff=Ye(this.Ff,18):this.Ff=Ke(this.Ff,18);}}),Object.defineProperty(this,"edit",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,19)},set:function(e){this.combo===true&&(e?this.Ff=Ye(this.Ff,19):this.Ff=Ke(this.Ff,19));}}),Object.defineProperty(this,"sort",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,20)},set:function(e){e?(this.Ff=Ye(this.Ff,20),n.sort()):this.Ff=Ke(this.Ff,20);}}),Object.defineProperty(this,"multiSelect",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,22)},set:function(e){e?this.Ff=Ye(this.Ff,22):this.Ff=Ke(this.Ff,22);}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,23)},set:function(e){e?this.Ff=Ye(this.Ff,23):this.Ff=Ke(this.Ff,23);}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,27)},set:function(e){e?this.Ff=Ye(this.Ff,27):this.Ff=Ke(this.Ff,27);}}),this.hasAppearanceStream=false;};Tn(Ia,hr);var Ca=function(){Ia.call(this),this.fontName="helvetica",this.combo=false;};Tn(Ca,Ia);var Fa=function(){Ca.call(this),this.combo=true;};Tn(Fa,Ca);var Rs=function(){Fa.call(this),this.edit=true;};Tn(Rs,Fa);var sn=function(){hr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,15)},set:function(e){e?this.Ff=Ye(this.Ff,15):this.Ff=Ke(this.Ff,15);}}),Object.defineProperty(this,"radio",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,16)},set:function(e){e?this.Ff=Ye(this.Ff,16):this.Ff=Ke(this.Ff,16);}}),Object.defineProperty(this,"pushButton",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,17)},set:function(e){e?this.Ff=Ye(this.Ff,17):this.Ff=Ke(this.Ff,17);}}),Object.defineProperty(this,"radioIsUnison",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,26)},set:function(e){e?this.Ff=Ye(this.Ff,26):this.Ff=Ke(this.Ff,26);}});var t,n={};Object.defineProperty(this,"MK",{enumerable:false,configurable:false,get:function(){var e=function(o){return o};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var r,a=[];for(r in a.push("<<"),n)a.push("/"+r+" ("+Zi(e(n[r]))+")");return a.push(">>"),a.join(`
`)}},set:function(e){o(e)==="object"&&(n=e);}}),Object.defineProperty(this,"caption",{enumerable:true,configurable:true,get:function(){return n.CA||""},set:function(e){typeof e=="string"&&(n.CA=e);}}),Object.defineProperty(this,"AS",{enumerable:false,configurable:false,get:function(){return t},set:function(e){var r=e==null?"":e.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),t="/"+Vi(r);}}),Object.defineProperty(this,"appearanceState",{enumerable:true,configurable:true,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+Vi(e);}});};Tn(sn,hr);var Ms=function(){sn.call(this),this.pushButton=true;};Tn(Ms,sn);var Oa=function(){sn.call(this),this.radio=true,this.pushButton=false;var t=[];Object.defineProperty(this,"Kids",{enumerable:true,configurable:false,get:function(){return t},set:function(n){t=n!==void 0?n:[];}});};Tn(Oa,sn);var Us=function(){var t,n;hr.call(this),Object.defineProperty(this,"Parent",{enumerable:false,configurable:false,get:function(){return t},set:function(a){t=a;}}),Object.defineProperty(this,"optionName",{enumerable:false,configurable:true,get:function(){return n},set:function(a){n=a;}});var e,r={};Object.defineProperty(this,"MK",{enumerable:false,configurable:false,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var o,f=[];for(o in f.push("<<"),r)f.push("/"+o+" ("+Zi(a(r[o]))+")");return f.push(">>"),f.join(`
`)},set:function(a){o(a)==="object"&&(r=a);}}),Object.defineProperty(this,"caption",{enumerable:true,configurable:true,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a);}}),Object.defineProperty(this,"AS",{enumerable:false,configurable:false,get:function(){return e},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Vi(o);}}),Object.defineProperty(this,"appearanceState",{enumerable:true,configurable:true,get:function(){return e.substr(1,e.length-1)},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Vi(o);}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=It.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName);};Tn(Us,hr),Oa.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var e=this.Kids[n];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA();}},Oa.prototype.createOption=function(t){var n=new Us;return n.Parent=this,n.optionName=t,this.Kids.push(n),V5.call(this.scope,n),n};var js=function(){sn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=It.CheckBox.createAppearanceStream();};Tn(js,sn);var Gi=function(){hr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,13)},set:function(n){n?this.Ff=Ye(this.Ff,13):this.Ff=Ke(this.Ff,13);}}),Object.defineProperty(this,"fileSelect",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,21)},set:function(n){n?this.Ff=Ye(this.Ff,21):this.Ff=Ke(this.Ff,21);}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,23)},set:function(n){n?this.Ff=Ye(this.Ff,23):this.Ff=Ke(this.Ff,23);}}),Object.defineProperty(this,"doNotScroll",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,24)},set:function(n){n?this.Ff=Ye(this.Ff,24):this.Ff=Ke(this.Ff,24);}}),Object.defineProperty(this,"comb",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,25)},set:function(n){n?this.Ff=Ye(this.Ff,25):this.Ff=Ke(this.Ff,25);}}),Object.defineProperty(this,"richText",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,26)},set:function(n){n?this.Ff=Ye(this.Ff,26):this.Ff=Ke(this.Ff,26);}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:true,configurable:false,get:function(){return t},set:function(n){t=n;}}),Object.defineProperty(this,"maxLength",{enumerable:true,configurable:true,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n);}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:true,configurable:true,get:function(){return this.V||this.DV}});};Tn(Gi,hr);var Ds=function(){Gi.call(this),Object.defineProperty(this,"password",{enumerable:true,configurable:true,get:function(){return !!$e(this.Ff,14)},set:function(t){t?this.Ff=Ye(this.Ff,14):this.Ff=Ke(this.Ff,14);}}),this.password=true;};Tn(Ds,Gi);var It={CheckBox:{createAppearanceStream:function(){return {N:{On:It.CheckBox.YesNormal},D:{On:It.CheckBox.YesPushDown,Off:It.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),o=Sh(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+Xt(o.fontSize)+" Tf "+a),e.push("BT"),e.push(o.text),e.push("ET"),e.push("Q"),e.push("EMC"),n.stream=e.join(`
`),n},YesNormal:function(t){var n=Lr(t);n.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),a=[],o=It.internal.getHeight(t),f=It.internal.getWidth(t),l=Sh(t,t.caption);return a.push("1 g"),a.push("0 0 "+Xt(f)+" "+Xt(o)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Xt(f-1)+" "+Xt(o-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+Xt(l.fontSize)+" Tf "+r),a.push(l.text),a.push("ET"),a.push("Q"),n.stream=a.join(`
`),n},OffPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
`),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=It.RadioButton.Circle.YesNormal,n.D[t]=It.RadioButton.Circle.YesPushDown,n},getCA:function(){return "l"},YesNormal:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=It.internal.Bezier_C,o=Number((r*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+di(It.internal.getWidth(t)/2)+" "+di(It.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
`),n},YesPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5)),f=Number((r*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+di(It.internal.getWidth(t)/2)+" "+di(It.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+di(It.internal.getWidth(t)/2)+" "+di(It.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+f+" "+f+" "+r+" 0 "+r+" c"),e.push("-"+f+" "+r+" -"+r+" "+f+" -"+r+" 0 c"),e.push("-"+r+" -"+f+" -"+f+" -"+r+" 0 -"+r+" c"),e.push(f+" -"+r+" "+r+" -"+f+" "+r+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
`),n},OffPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+di(It.internal.getWidth(t)/2)+" "+di(It.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=It.RadioButton.Cross.YesNormal,n.D[t]=It.RadioButton.Cross.YesPushDown,n},getCA:function(){return "8"},YesNormal:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(r.x1.x)+" "+Xt(r.x1.y)+" m"),e.push(Xt(r.x2.x)+" "+Xt(r.x2.y)+" l"),e.push(Xt(r.x4.x)+" "+Xt(r.x4.y)+" m"),e.push(Xt(r.x3.x)+" "+Xt(r.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(`
`),n},YesPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=It.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),r.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),r.push(Xt(e.x4.x)+" "+Xt(e.x4.y)+" m"),r.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join(`
`),n},OffPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return "/"+n+" "+t.fontSize+" Tf "+e}};It.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=It.internal.getWidth(t),e=It.internal.getHeight(t),r=Math.min(n,e);return {x1:{x:(n-r)/2,y:(e-r)/2+r},x2:{x:(n-r)/2+r,y:(e-r)/2},x3:{x:(n-r)/2,y:(e-r)/2},x4:{x:(n-r)/2+r,y:(e-r)/2+r}}}},It.internal.getWidth=function(t){var n=0;return o(t)==="object"&&(n=hu(t.Rect[2])),n},It.internal.getHeight=function(t){var n=0;return o(t)==="object"&&(n=hu(t.Rect[3])),n};var V5=He.addField=function(t){if(G5(this,t),!(t instanceof hr))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return (n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=false,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};He.AcroFormChoiceField=Ia,He.AcroFormListBox=Ca,He.AcroFormComboBox=Fa,He.AcroFormEditBox=Rs,He.AcroFormButton=sn,He.AcroFormPushButton=Ms,He.AcroFormRadioButton=Oa,He.AcroFormCheckBox=js,He.AcroFormTextField=Gi,He.AcroFormPasswordField=Ds,He.AcroFormAppearance=It,He.AcroForm={ChoiceField:Ia,ListBox:Ca,ComboBox:Fa,EditBox:Rs,Button:sn,PushButton:Ms,RadioButton:Oa,CheckBox:js,TextField:Gi,PasswordField:Ds,Appearance:It},jt.AcroForm={ChoiceField:Ia,ListBox:Ca,ComboBox:Fa,EditBox:Rs,Button:sn,PushButton:Ms,RadioButton:Oa,CheckBox:js,TextField:Gi,PasswordField:Ds,Appearance:It};var Tp=jt.AcroForm;function Fu(t){return t.reduce(function(n,e,r){return n[e]=r,n},{})}((function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=t.__addimage__.getImageFileTypeByImageData=function(L,O){var q,U,rt,st,ft,nt=e;if((O=O||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return "RGBA";if(mt(L))for(ft in r)for(rt=r[ft],q=0;q<rt.length;q+=1){for(st=true,U=0;U<rt[q].length;U+=1)if(rt[q][U]!==void 0&&rt[q][U]!==L[U]){st=false;break}if(st===true){nt=ft;break}}else for(ft in r)for(rt=r[ft],q=0;q<rt.length;q+=1){for(st=true,U=0;U<rt[q].length;U+=1)if(rt[q][U]!==void 0&&rt[q][U]!==L.charCodeAt(U)){st=false;break}if(st===true){nt=ft;break}}return nt===e&&O!==e&&(nt=O),nt},o$1=function L(O){for(var q=this.internal.write,U=this.internal.putStream,rt=(0, this.internal.getFilters)();rt.indexOf("FlateEncode")!==-1;)rt.splice(rt.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:O.width}),st.push({key:"Height",value:O.height}),O.colorSpace===k.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===k.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var ft="",nt=0,ut=O.transparency.length;nt<ut;nt++)ft+=O.transparency[nt]+" "+O.transparency[nt]+" ";st.push({key:"Mask",value:"["+ft+"]"});}O.sMask!==void 0&&st.push({key:"SMask",value:O.objectId+1+" 0 R"});var At=O.filter!==void 0?["/"+O.filter]:void 0;if(U({data:O.data,additionalKeyValues:st,alreadyAppliedFilters:At,objectId:O.objectId}),q("endobj"),"sMask"in O&&O.sMask!==void 0){var wt,_=(wt=O.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:O.bitsPerComponent,B={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:_,data:O.sMask};"filter"in O&&(B.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(_," /Columns ").concat(O.width),B.filter=O.filter),L.call(this,B);}if(O.colorSpace===k.INDEXED){var j=this.internal.newObject();U({data:K(new Uint8Array(O.palette)),objectId:j}),q("endobj");}},f=function(){var L=this.internal.collections[n+"images"];for(var O in L)o$1.call(this,L[O]);},l=function(){var L,O=this.internal.collections[n+"images"],q=this.internal.write;for(var U in O)q("/I"+(L=O[U]).index,L.objectId,"0","R");},c=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",f),this.internal.events.subscribe("putXobjectDict",l));},d=function(){var L=this.internal.collections[n+"images"];return c.call(this),L},v=function(){return Object.keys(this.internal.collections[n+"images"]).length},x=function(L){return typeof t["process"+L.toUpperCase()]=="function"},N=function(L){return o(L)==="object"&&L.nodeType===1},p=function(L,O){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var q=""+L.getAttribute("src");if(q.indexOf("data:image/")===0)return Bs(unescape(q).split("base64,").pop());var U=t.loadFile(q,true);if(U!==void 0)return U}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var rt;switch(O){case "PNG":rt="image/png";break;case "WEBP":rt="image/webp";break;default:rt="image/jpeg";}return Bs(L.toDataURL(rt,1).split("base64,").pop())}},T=function(L){var O=this.internal.collections[n+"images"];if(O){for(var q in O)if(L===O[q].alias)return O[q]}},I=function(L,O,q){return L||O||(L=-96,O=-96),L<0&&(L=-1*q.width*72/L/this.internal.scaleFactor),O<0&&(O=-1*q.height*72/O/this.internal.scaleFactor),L===0&&(L=O*q.width/q.height),O===0&&(O=L*q.height/q.width),[L,O]},R=function(L,O,q,U,rt,st){var ft=I.call(this,q,U,rt),nt=this.internal.getCoordinateString,ut=this.internal.getVerticalCoordinateString,At=d.call(this);if(q=ft[0],U=ft[1],At[rt.index]=rt,st){st*=Math.PI/180;var wt=Math.cos(st),_=Math.sin(st),B=function(H){return H.toFixed(4)},j=[B(wt),B(_),B(-1*_),B(wt),0,0,"cm"];}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,nt(L),ut(O+U),"cm"].join(" ")),this.internal.write(j.join(" ")),this.internal.write([nt(q),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(q),"0","0",nt(U),nt(L),ut(O+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+rt.index+" Do"),this.internal.write("Q");},k=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var G=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},V=t.__addimage__.sHashCode=function(L){var O,q,U=0;if(typeof L=="string")for(q=L.length,O=0;O<q;O++)U=(U<<5)-U+L.charCodeAt(O),U|=0;else if(mt(L))for(q=L.byteLength/2,O=0;O<q;O++)U=(U<<5)-U+L[O],U|=0;return U},z=t.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var O=true;return L.length===0&&(O=false),L.length%4!=0&&(O=false),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===false&&(O=false),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===false&&(O=false),O},it=t.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var O=L.indexOf(",");return O<0?null:L.substring(0,O).trim().endsWith("base64")?L.substring(O+1):null};t.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var mt=t.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},dt=t.__addimage__.binaryStringToUint8Array=function(L){for(var O=L.length,q=new Uint8Array(O),U=0;U<O;U++)q[U]=L.charCodeAt(U);return q},K=t.__addimage__.arrayBufferToBinaryString=function(L){for(var O="",q=mt(L)?L:new Uint8Array(L),U=0;U<q.length;U+=8192)O+=String.fromCharCode.apply(null,q.subarray(U,U+8192));return O};t.addImage=function(){var L,O,q,U,rt,st,ft,nt,ut;if(typeof arguments[1]=="number"?(O=e,q=arguments[1],U=arguments[2],rt=arguments[3],st=arguments[4],ft=arguments[5],nt=arguments[6],ut=arguments[7]):(O=arguments[1],q=arguments[2],U=arguments[3],rt=arguments[4],st=arguments[5],ft=arguments[6],nt=arguments[7],ut=arguments[8]),o(L=arguments[0])==="object"&&!N(L)&&"imageData"in L){var At=L;L=At.imageData,O=At.format||O||e,q=At.x||q||0,U=At.y||U||0,rt=At.w||At.width||rt,st=At.h||At.height||st,ft=At.alias||ft,nt=At.compression||nt,ut=At.rotation||At.angle||ut;}var wt=this.internal.getFilters();if(nt===void 0&&wt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(q)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var _=M.call(this,L,O,ft,nt);return R.call(this,q,U,rt,st,_,ut),this};var M=function(L,O,q,U){var rt,st,ft;if(typeof L=="string"&&a(L)===e){L=unescape(L);var nt=tt(L,false);(nt!==""||(nt=t.loadFile(L,true))!==void 0)&&(L=nt);}if(N(L)&&(L=p(L,O)),O=a(L,O),!x(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((ft=q)==null||ft.length===0)&&(q=(function(ut){return typeof ut=="string"||mt(ut)?V(ut):mt(ut.data)?V(ut.data):null})(L)),(rt=T.call(this,q))||(L instanceof Uint8Array||O==="RGBA"||(st=L,L=dt(L)),rt=this["process"+O.toUpperCase()](L,v.call(this),q,(function(ut){return ut&&typeof ut=="string"&&(ut=ut.toUpperCase()),ut in t.image_compression?ut:G.NONE})(U),st)),!rt)throw new Error("An unknown error occurred whilst processing the image.");return rt},tt=t.__addimage__.convertBase64ToBinaryString=function(L,O){O=typeof O!="boolean"||O;var q,U="";if(typeof L=="string"){var rt;q=(rt=it(L))!==null&&rt!==void 0?rt:L;try{U=Bs(q);}catch(st){if(O)throw z(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};t.getImageProperties=function(L){var O,q,U="";if(N(L)&&(L=p(L)),typeof L=="string"&&a(L)===e&&((U=tt(L,false))===""&&(U=t.loadFile(L)||""),L=U),q=a(L),!x(q))throw new Error("addImage does not support files of type '"+q+"', please ensure that a plugin for '"+q+"' support is added.");if(L instanceof Uint8Array||(L=dt(L)),!(O=this["process"+q.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=q,O};}))(jt.API),(function(t){var n=function(e){if(e!==void 0&&e!="")return true};jt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[];}]),t.events.push(["putPage",function(e){for(var r,a,o,f=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(e.objId),d=e.pageContext.annotations,v=false,x=0;x<d.length&&!v;x++)switch((r=d[x]).type){case "link":(n(r.options.url)||n(r.options.pageNumber))&&(v=true);break;case "reference":case "text":case "freetext":v=true;}if(v!=0){this.internal.write("/Annots [");for(var N=0;N<d.length;N++){r=d[N];var p=this.internal.pdfEscape,T=this.internal.getEncryptor(e.objId);switch(r.type){case "reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case "text":var I=this.internal.newAdditionalObject(),R=this.internal.newAdditionalObject(),k=this.internal.getEncryptor(I.objId),G=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(a="/Rect ["+f(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+f(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(k(r.contents))+")",o+=" /Popup "+R.objId+" 0 R",o+=" /P "+c.objId+" 0 R",o+=" /T ("+p(k(G))+") >>",I.content=o;var V=I.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+f(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+f(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+V,r.open&&(o+=" /Open true"),o+=" >>",R.content=o,this.internal.write(I.objId,"0 R",R.objId,"0 R");break;case "freetext":a="/Rect ["+f(r.bounds.x)+" "+l(r.bounds.y)+" "+f(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var z="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+p(T(r.contents))+")",o+=" /DS("+p(T(z))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case "link":if(r.options.name){var it=this.annotations._nameMap[r.options.name];r.options.pageNumber=it.page,r.options.top=it.y;}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+p(T(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case "Fit":o+=" /Fit]";break;case "FitH":o+=" /FitH "+r.options.top+"]";break;case "FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;default:var mt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+mt+" "+r.options.zoom+"]";}o!=""&&(o+=" >>",this.internal.write(o));}}this.internal.write("]");}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case "link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case "text":case "freetext":r.pageContext.annotations.push(e);}},t.link=function(e,r,a,o,f){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(e),y:d(r),w:c(e+a),h:d(r+o)},options:f,type:"link"});},t.textWithLink=function(e,r,a,o){var f,l,c=this.getTextWidth(e),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){l=o.maxWidth;var v=this.splitTextToSize(e,l).length;f=Math.ceil(d*v);}else l=c,f=d;return this.text(e,r,a,o),a+=.2*d,o.align==="center"&&(r-=c/2),o.align==="right"&&(r-=c),this.link(r,a-d,l,f,o),c},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor};})(jt.API),(function(t){var n={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(I){return n[I.charCodeAt(0)]!==void 0},f=t.__arabicParser__.isArabicLetter=function(I){return typeof I=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(I)},l=t.__arabicParser__.isArabicEndLetter=function(I){return f(I)&&o(I)&&n[I.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(I){return f(I)&&a.indexOf(I.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(I){return f(I)&&o(I)&&n[I.charCodeAt(0)].length>=1};var d=t.__arabicParser__.arabicLetterHasFinalForm=function(I){return f(I)&&o(I)&&n[I.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(I){return f(I)&&o(I)&&n[I.charCodeAt(0)].length>=3};var v=t.__arabicParser__.arabicLetterHasMedialForm=function(I){return f(I)&&o(I)&&n[I.charCodeAt(0)].length==4},x=t.__arabicParser__.resolveLigatures=function(I){var R=0,k=e,G="",V=0;for(R=0;R<I.length;R+=1)k[I.charCodeAt(R)]!==void 0?(V++,typeof(k=k[I.charCodeAt(R)])=="number"&&(G+=String.fromCharCode(k),k=e,V=0),R===I.length-1&&(k=e,G+=I.charAt(R-(V-1)),R-=V-1,V=0)):(k=e,G+=I.charAt(R-V),R-=V,V=0);return G};t.__arabicParser__.isArabicDiacritic=function(I){return I!==void 0&&r[I.charCodeAt(0)]!==void 0};var N=t.__arabicParser__.getCorrectForm=function(I,R,k){return f(I)?o(I)===false?-1:!d(I)||!f(R)&&!f(k)||!f(k)&&l(R)||l(I)&&!f(R)||l(I)&&c(R)||l(I)&&l(R)?0:v(I)&&f(R)&&!l(R)&&f(k)&&d(k)?3:l(I)||!f(k)?1:2:-1},p=function(I){var R=0,k=0,G=0,V="",z="",it="",mt=(I=I||"").split("\\s+"),dt=[];for(R=0;R<mt.length;R+=1){for(dt.push(""),k=0;k<mt[R].length;k+=1)V=mt[R][k],z=mt[R][k-1],it=mt[R][k+1],f(V)?(G=N(V,z,it),dt[R]+=G!==-1?String.fromCharCode(n[V.charCodeAt(0)][G]):V):dt[R]+=V;dt[R]=x(dt[R]);}return dt.join(" ")},T=t.__arabicParser__.processArabic=t.processArabic=function(){var I,R=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,k=[];if(Array.isArray(R)){var G=0;for(k=[],G=0;G<R.length;G+=1)Array.isArray(R[G])?k.push([p(R[G][0]),R[G][1],R[G][2]]):k.push([p(R[G])]);I=k;}else I=p(R);return typeof arguments[0]=="string"?I:(arguments[0].text=I,arguments[0])};t.events.push(["preProcessText",T]);})(jt.API),jt.API.autoPrint=function(t){var n;return (t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj");}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+n+" 0 R");})),this},(function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l;}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===false||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1);}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===false||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1);}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(l){o=l;}});var f={};Object.defineProperty(this,"style",{get:function(){return f},set:function(l){f=l;}}),Object.defineProperty(this,"parentNode",{});};n.prototype.getContext=function(e,r){var a;if((e=e||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this;}]);})(jt.API),(function(t){var n={left:0,top:0,bottom:0,right:0},e=false,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this));},a=function(){this.internal.__cell__.lastCell=new o$1,this.internal.__cell__.pages=1;},o$1=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:true,get:function(){return c},set:function(I){c=I;}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:true,get:function(){return d},set:function(I){d=I;}});var v=arguments[2];Object.defineProperty(this,"width",{enumerable:true,get:function(){return v},set:function(I){v=I;}});var x=arguments[3];Object.defineProperty(this,"height",{enumerable:true,get:function(){return x},set:function(I){x=I;}});var N=arguments[4];Object.defineProperty(this,"text",{enumerable:true,get:function(){return N},set:function(I){N=I;}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:true,get:function(){return p},set:function(I){p=I;}});var T=arguments[6];return Object.defineProperty(this,"align",{enumerable:true,get:function(){return T},set:function(I){T=I;}}),this};o$1.prototype.clone=function(){return new o$1(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o$1.prototype.toArray=function(){return [this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},t.getTextDimensions=function(c,d){r.call(this);var v=(d=d||{}).fontSize||this.getFontSize(),x=d.font||this.getFont(),N=d.scaleFactor||this.internal.scaleFactor,p=0,T=0,I=0,R=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c);}var k=d.maxWidth;k>0?typeof c=="string"?c=this.splitTextToSize(c,k):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(V,z){return V.concat(R.splitTextToSize(z,k))},[])):c=Array.isArray(c)?c:[c];for(var G=0;G<c.length;G++)p<(I=this.getStringUnitWidth(c[G],{font:x})*v)&&(p=I);return p!==0&&(T=c.length),{w:p/=N,h:Math.max((T*v*this.getLineHeightFactor()-v*(this.getLineHeightFactor()-1))/N,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new o$1(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var f=t.cell=function(){var c;c=arguments[0]instanceof o$1?arguments[0]:new o$1(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var d=this.internal.__cell__.lastCell,v=this.internal.__cell__.padding,x=this.internal.__cell__.margins||n,N=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===c.lineNumber?(c.x=(d.x||0)+(d.width||0),c.y=d.y||0):d.y+d.height+c.height+x.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=x.top,p&&N&&(this.printHeaderRow(c.lineNumber,true),c.y+=N[0].height)):c.y=d.y+d.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,e===true?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-v,c.y+v,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+v,{align:"center",baseline:"top",maxWidth:c.width-v-v}):this.text(c.text,c.x+v,c.y+v,{align:"left",baseline:"top",maxWidth:c.width-v-v})),this.internal.__cell__.lastCell=c,this};t.table=function(c,d,v,x,N){if(r.call(this),!v)throw new Error("No data for PDF table.");var p,T,I,R,k=[],G=[],V=[],z={},it={},mt=[],dt=[],K=(N=N||{}).autoSize||false,M=N.printHeaders!==false,tt=N.css&&N.css["font-size"]!==void 0?16*N.css["font-size"]:N.fontSize||12,L=N.margins||Object.assign({width:this.getPageWidth()},n),O=typeof N.padding=="number"?N.padding:3,q=N.headerBackgroundColor||"#c8c8c8",U=N.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=M,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=tt,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=q,this.internal.__cell__.headerTextColor=U,this.setFontSize(tt),x==null)G=k=Object.keys(v[0]),V=k.map(function(){return "left"});else if(Array.isArray(x)&&o(x[0])==="object")for(k=x.map(function(At){return At.name}),G=x.map(function(At){return At.prompt||At.name||""}),V=x.map(function(At){return At.align||"left"}),p=0;p<x.length;p+=1)it[x[p].name]=.7499990551181103*x[p].width;else Array.isArray(x)&&typeof x[0]=="string"&&(G=k=x,V=k.map(function(){return "left"}));if(K||Array.isArray(x)&&typeof x[0]=="string")for(p=0;p<k.length;p+=1){for(z[R=k[p]]=v.map(function(At){return At[R]}),this.setFont(void 0,"bold"),mt.push(this.getTextDimensions(G[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),T=z[R],this.setFont(void 0,"normal"),I=0;I<T.length;I+=1)mt.push(this.getTextDimensions(T[I],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);it[R]=Math.max.apply(null,mt)+O+O,mt=[];}if(M){var rt={};for(p=0;p<k.length;p+=1)rt[k[p]]={},rt[k[p]].text=G[p],rt[k[p]].align=V[p];var st=l.call(this,rt,it);dt=k.map(function(At){return new o$1(c,d,it[At],st,rt[At].text,void 0,rt[At].align)}),this.setTableHeaderRow(dt),this.printHeaderRow(1,false);}var ft=x.reduce(function(At,wt){return At[wt.name]=wt.align,At},{});for(p=0;p<v.length;p+=1){"rowStart"in N&&N.rowStart instanceof Function&&N.rowStart({row:p,data:v[p]},this);var nt=l.call(this,v[p],it);for(I=0;I<k.length;I+=1){var ut=v[p][k[I]];"cellStart"in N&&N.cellStart instanceof Function&&N.cellStart({row:p,col:I,data:ut},this),f.call(this,new o$1(c,d,it[k[I]],nt,ut,p+2,ft[k[I]]));}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=d,this};var l=function(c,d){var v=this.internal.__cell__.padding,x=this.internal.__cell__.table_font_size,N=this.internal.scaleFactor;return Object.keys(c).map(function(p){var T=c[p];return this.splitTextToSize(T.hasOwnProperty("text")?T.text:T,d[p]-v-v)},this).map(function(p){return this.getLineHeightFactor()*p.length*x/N+v+v},this).reduce(function(p,T){return Math.max(p,T)},0)};t.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c;},t.printHeaderRow=function(c,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var v;if(e=true,typeof this.internal.__cell__.headerFunction=="function"){var x=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o$1(x[0],x[1],x[2],x[3],void 0,-1);}this.setFont(void 0,"bold");for(var N=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){v=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(v.y=this.internal.__cell__.margins.top||0,N.push(v)),v.lineNumber=c;var T=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),f.call(this,v),this.setTextColor(T);}N.length>0&&this.setTableHeaderRow(N),this.setFont(void 0,"normal"),e=false;};})(jt.API);var Ou={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Tu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],kh=Fu(Tu),Bu=[100,200,300,400,500,600,700,800,900],Z5=Fu(Bu);function yh(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(o){return Ou[o=o||"normal"]?o:"normal"})(t.style),r=(function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400})(t.weight),a=(function(o){return typeof kh[o=o||"normal"]=="number"?o:"normal"})(t.stretch);return {family:n,style:e,weight:r,stretch:a,src:t.src||[],ref:t.ref||{name:n,style:[a,e,r].join(" ")}}}function fu(t,n,e,r){var a;for(a=e;a>=0&&a<n.length;a+=r)if(t[n[a]])return t[n[a]];for(a=e;a>=0&&a<n.length;a-=r)if(t[n[a]])return t[n[a]]}var $5={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},cu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function uu(t){return [t.stretch,t.style,t.weight,t.family].join(" ")}function du(t){return t.trimLeft()}function Y5(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return [t.substring(0,e),t.substring(e+1)];e+=1;}return null}function K5(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var Sa,Ts,pu,gu,vu,_h=["times"];function mu(t,n,e,r,a){var o=4,f=wu;switch(a){case jt.API.image_compression.FAST:o=1,f=bu;break;case jt.API.image_compression.MEDIUM:o=6,f=yu;break;case jt.API.image_compression.SLOW:o=9,f=_u;}t=(function(c,d,v,x){for(var N,p=c.length/d,T=new Uint8Array(c.length+p),I=[X5,bu,wu,yu,_u],R=0;R<p;R+=1){var k=R*d,G=c.subarray(k,k+d);if(x)T.set(x(G,v,N),k+R);else {for(var V=I.length,z=[],it=0;it<V;it+=1)z[it]=I[it](G,v,N);var mt=Q5(z.concat());T.set(z[mt],k+R);}N=G;}return T})(t,n,Math.ceil(e*r/8),f);var l=fs(t,{level:o});return jt.API.__addimage__.arrayBufferToBinaryString(l)}function X5(t){var n=Array.apply([],t);return n.unshift(0),n}function bu(t,n){var e=t.length,r=[];r[0]=1;for(var a=0;a<e;a+=1){var o=t[a-n]||0;r[a+1]=t[a]-o+256&255;}return r}function wu(t,n,e){var r=t.length,a=[];a[0]=2;for(var o=0;o<r;o+=1){var f=e&&e[o]||0;a[o+1]=t[o]-f+256&255;}return a}function yu(t,n,e){var r=t.length,a=[];a[0]=3;for(var o=0;o<r;o+=1){var f=t[o-n]||0,l=e&&e[o]||0;a[o+1]=t[o]+256-(f+l>>>1)&255;}return a}function _u(t,n,e){var r=t.length,a=[];a[0]=4;for(var o=0;o<r;o+=1){var f=J5(t[o-n]||0,e&&e[o]||0,e&&e[o-n]||0);a[o+1]=t[o]-f+256&255;}return a}function J5(t,n,e){if(t===n&&n===e)return t;var r=Math.abs(n-e),a=Math.abs(t-e),o=Math.abs(t+n-e-e);return r<=a&&r<=o?t:a<=o?n:e}function Q5(t){var n=t.map(function(e){return e.reduce(function(r,a){return r+Math.abs(a)},0)});return n.indexOf(Math.min.apply(null,n))}function xh(t,n,e){var r=n*e,a=Math.floor(r/8),o=16-(r-8*a+e),f=(1<<e)-1;return Ru(t,a)>>o&f}function xu(t,n,e,r){var a=e*r,o=Math.floor(a/8),f=16-(a-8*o+r),l=(1<<r)-1,c=(n&l)<<f;(function(d,v,x){if(v+1<d.byteLength)d.setUint16(v,x,false);else {var N=x>>8&255;d.setUint8(v,N);}})(t,o,Ru(t,o)&~(l<<f)&65535|c);}function Ru(t,n){return n+1<t.byteLength?t.getUint16(n,false):t.getUint8(n)<<8}function td(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,r=t[n++]|t[n++]<<8,a=t[n++],o=a>>7,f=1<<1+(7&a);t[n++],t[n++];var l=null,c=null;o&&(l=n,c=f,n+=3*f);var d=true,v=[],x=0,N=null,p=0,T=null;for(this.width=e,this.height=r;d&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,T=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((L=t[n++])>=0))throw Error("Invalid block size");if(L===0)break;n+=L;}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var I=t[n++];x=t[n++]|t[n++]<<8,N=t[n++],1&I||(N=null),p=I>>2&7,n++;break;case 254:for(;;){if(!((L=t[n++])>=0))throw Error("Invalid block size");if(L===0)break;n+=L;}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var R=t[n++]|t[n++]<<8,k=t[n++]|t[n++]<<8,G=t[n++]|t[n++]<<8,V=t[n++]|t[n++]<<8,z=t[n++],it=z>>6&1,mt=1<<1+(7&z),dt=l,K=c,M=false;z>>7&&(M=true,dt=n,K=mt,n+=3*mt);var tt=n;for(n++;;){var L;if(!((L=t[n++])>=0))throw Error("Invalid block size");if(L===0)break;n+=L;}v.push({x:R,y:k,width:G,height:V,has_local_palette:M,palette_offset:dt,palette_size:K,data_offset:tt,data_length:n-tt,transparent_index:N,interlaced:!!it,delay:x,disposal:p});break;case 59:d=false;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return v.length},this.loopCount=function(){return T},this.frameInfo=function(O){if(O<0||O>=v.length)throw new Error("Frame index out of range.");return v[O]},this.decodeAndBlitFrameBGRA=function(O,q){var U=this.frameInfo(O),rt=U.width*U.height;if(rt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var st=new Uint8Array(rt);Au(t,U.data_offset,st,rt);var ft=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ut=U.width,At=e-ut,wt=ut,_=4*(U.y*e+U.x),B=4*((U.y+U.height)*e+U.x),j=_,H=4*At;U.interlaced===true&&(H+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ut,(j+=H)>=B&&(H=4*At+4*e*($-1),j=_+(ut+At)*($<<1),$>>=1)),ot===nt)j+=4;else {var gt=t[ft+3*ot],xt=t[ft+3*ot+1],kt=t[ft+3*ot+2];q[j++]=kt,q[j++]=xt,q[j++]=gt,q[j++]=255;}--wt;}},this.decodeAndBlitFrameRGBA=function(O,q){var U=this.frameInfo(O),rt=U.width*U.height;if(rt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var st=new Uint8Array(rt);Au(t,U.data_offset,st,rt);var ft=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ut=U.width,At=e-ut,wt=ut,_=4*(U.y*e+U.x),B=4*((U.y+U.height)*e+U.x),j=_,H=4*At;U.interlaced===true&&(H+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ut,(j+=H)>=B&&(H=4*At+4*e*($-1),j=_+(ut+At)*($<<1),$>>=1)),ot===nt)j+=4;else {var gt=t[ft+3*ot],xt=t[ft+3*ot+1],kt=t[ft+3*ot+2];q[j++]=gt,q[j++]=xt,q[j++]=kt,q[j++]=255;}--wt;}};}function Au(t,n,e,r){for(var a=t[n++],o=1<<a,f=o+1,l=f+1,c=a+1,d=(1<<c)-1,v=0,x=0,N=0,p=t[n++],T=new Int32Array(4096),I=null;;){for(;v<16&&p!==0;)x|=t[n++]<<v,v+=8,p===1?p=t[n++]:--p;if(v<c)break;var R=x&d;if(x>>=c,v-=c,R!==o){if(R===f)break;for(var k=R<l?R:I,G=0,V=k;V>o;)V=T[V]>>8,++G;var z=V;if(N+G+(k!==R?1:0)>r)return void Pe.log("Warning, gif stream longer than expected.");e[N++]=z;var it=N+=G;for(k!==R&&(e[N++]=z),V=k;G--;)V=T[V],e[--it]=255&V,V>>=8;I!==null&&l<4096&&(T[l++]=I<<8|z,l>=d+1&&c<12&&(++c,d=d<<1|1)),I=R;}else l=f+1,d=(1<<(c=a+1))-1,I=null;}return N!==r&&Pe.log("Warning, gif stream shorter than expected."),e}function Ah(t){var n,e,r,a,o,f=Math.floor,l=new Array(64),c=new Array(64),d=new Array(64),v=new Array(64),x=new Array(65535),N=new Array(65535),p=new Array(64),T=new Array(64),I=[],R=0,k=7,G=new Array(64),V=new Array(64),z=new Array(64),it=new Array(256),mt=new Array(2048),dt=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],K=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],tt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],rt=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function st(_,B){for(var j=0,H=0,$=new Array,J=1;J<=16;J++){for(var at=1;at<=_[J];at++)$[B[H]]=[],$[B[H]][0]=j,$[B[H]][1]=J,H++,j++;j*=2;}return $}function ft(_){for(var B=_[0],j=_[1]-1;j>=0;)B&1<<j&&(R|=1<<k),j--,--k<0&&(R==255?(nt(255),nt(0)):nt(R),k=7,R=0);}function nt(_){I.push(_);}function ut(_){nt(_>>8&255),nt(255&_);}function At(_,B,j,H,$){for(var J,at=$[0],ot=$[240],gt=(function(yt,Wt){var Et,qt,zt,ye,he,Jt,ce,fe,Bt,ne,Mt=0;for(Bt=0;Bt<8;++Bt){Et=yt[Mt],qt=yt[Mt+1],zt=yt[Mt+2],ye=yt[Mt+3],he=yt[Mt+4],Jt=yt[Mt+5],ce=yt[Mt+6];var We=Et+(fe=yt[Mt+7]),ve=Et-fe,oe=qt+ce,se=qt-ce,Be=zt+Jt,Ut=zt-Jt,Ee=ye+he,Zt=ye-he,Qt=We+Ee,Re=We-Ee,le=oe+Be,Gt=oe-Be;yt[Mt]=Qt+le,yt[Mt+4]=Qt-le;var _e=.707106781*(Gt+Re);yt[Mt+2]=Re+_e,yt[Mt+6]=Re-_e;var vi=.382683433*((Qt=Zt+Ut)-(Gt=se+ve)),pn=.5411961*Qt+vi,Pr=1.306562965*Gt+vi,cr=.707106781*(le=Ut+se),Vt=ve+cr,Er=ve-cr;yt[Mt+5]=Er+pn,yt[Mt+3]=Er-pn,yt[Mt+1]=Vt+Pr,yt[Mt+7]=Vt-Pr,Mt+=8;}for(Mt=0,Bt=0;Bt<8;++Bt){Et=yt[Mt],qt=yt[Mt+8],zt=yt[Mt+16],ye=yt[Mt+24],he=yt[Mt+32],Jt=yt[Mt+40],ce=yt[Mt+48];var Ir=Et+(fe=yt[Mt+56]),Gn=Et-fe,Vn=qt+ce,ze=qt-ce,an=zt+Jt,ln=zt-Jt,mi=ye+he,Zr=ye-he,tr=Ir+mi,ur=Ir-mi,er=Vn+an,nr=Vn-an;yt[Mt]=tr+er,yt[Mt+32]=tr-er;var Zn=.707106781*(nr+ur);yt[Mt+16]=ur+Zn,yt[Mt+48]=ur-Zn;var bi=.382683433*((tr=Zr+ln)-(nr=ze+Gn)),dr=.5411961*tr+bi,wi=1.306562965*nr+bi,$i=.707106781*(er=ln+ze),Yi=Gn+$i,Ki=Gn-$i;yt[Mt+40]=Ki+dr,yt[Mt+24]=Ki-dr,yt[Mt+8]=Yi+wi,yt[Mt+56]=Yi-wi,Mt++;}for(Bt=0;Bt<64;++Bt)ne=yt[Bt]*Wt[Bt],p[Bt]=ne>0?ne+.5|0:ne-.5|0;return p})(_,B),xt=0;xt<64;++xt)T[dt[xt]]=gt[xt];var kt=T[0]-j;j=T[0],kt==0?ft(H[0]):(ft(H[N[J=32767+kt]]),ft(x[J]));for(var St=63;St>0&&T[St]==0;)St--;if(St==0)return ft(at),j;for(var Dt,P=1;P<=St;){for(var Lt=P;T[P]==0&&P<=St;)++P;var ae=P-Lt;if(ae>=16){Dt=ae>>4;for(var Ht=1;Ht<=Dt;++Ht)ft(ot);ae&=15;}J=32767+T[P],ft($[(ae<<4)+N[J]]),ft(x[J]),P++;}return St!=63&&ft(at),j}function wt(_){_=Math.min(Math.max(_,1),100),o!=_&&((function(B){for(var j=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],H=0;H<64;H++){var $=f((j[H]*B+50)/100);$=Math.min(Math.max($,1),255),l[dt[H]]=$;}for(var J=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],at=0;at<64;at++){var ot=f((J[at]*B+50)/100);ot=Math.min(Math.max(ot,1),255),c[dt[at]]=ot;}for(var gt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,kt=0;kt<8;kt++)for(var St=0;St<8;St++)d[xt]=1/(l[dt[xt]]*gt[kt]*gt[St]*8),v[xt]=1/(c[dt[xt]]*gt[kt]*gt[St]*8),xt++;})(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),o=_);}this.encode=function(_,B){B&&wt(B),I=new Array,R=0,k=7,ut(65496),ut(65504),ut(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),ut(1),ut(1),nt(0),nt(0),(function(){ut(65499),ut(132),nt(0);for(var qt=0;qt<64;qt++)nt(l[qt]);nt(1);for(var zt=0;zt<64;zt++)nt(c[zt]);})(),(function(qt,zt){ut(65472),ut(17),nt(8),ut(zt),ut(qt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1);})(_.width,_.height),(function(){ut(65476),ut(418),nt(0);for(var qt=0;qt<16;qt++)nt(K[qt+1]);for(var zt=0;zt<=11;zt++)nt(M[zt]);nt(16);for(var ye=0;ye<16;ye++)nt(tt[ye+1]);for(var he=0;he<=161;he++)nt(L[he]);nt(1);for(var Jt=0;Jt<16;Jt++)nt(O[Jt+1]);for(var ce=0;ce<=11;ce++)nt(q[ce]);nt(17);for(var fe=0;fe<16;fe++)nt(U[fe+1]);for(var Bt=0;Bt<=161;Bt++)nt(rt[Bt]);})(),ut(65498),ut(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var j=0,H=0,$=0;R=0,k=7,this.encode.displayName="_encode_";for(var J,at,ot,gt,xt,kt,St,Dt,P,Lt=_.data,ae=_.width,Ht=_.height,yt=4*ae,Wt=0;Wt<Ht;){for(J=0;J<yt;){for(xt=yt*Wt+J,St=-1,Dt=0,P=0;P<64;P++)kt=xt+(Dt=P>>3)*yt+(St=4*(7&P)),Wt+Dt>=Ht&&(kt-=yt*(Wt+1+Dt-Ht)),J+St>=yt&&(kt-=J+St-yt+4),at=Lt[kt++],ot=Lt[kt++],gt=Lt[kt++],G[P]=(mt[at]+mt[ot+256|0]+mt[gt+512|0]>>16)-128,V[P]=(mt[at+768|0]+mt[ot+1024|0]+mt[gt+1280|0]>>16)-128,z[P]=(mt[at+1280|0]+mt[ot+1536|0]+mt[gt+1792|0]>>16)-128;j=At(G,d,j,n,r),H=At(V,v,H,e,a),$=At(z,v,$,e,a),J+=32;}Wt+=8;}if(k>=0){var Et=[];Et[1]=k+1,Et[0]=(1<<k+1)-1,ft(Et);}return ut(65497),new Uint8Array(I)},t=t||50,(function(){for(var _=String.fromCharCode,B=0;B<256;B++)it[B]=_(B);})(),n=st(K,M),e=st(O,q),r=st(tt,L),a=st(U,rt),(function(){for(var _=1,B=2,j=1;j<=15;j++){for(var H=_;H<B;H++)N[32767+H]=j,x[32767+H]=[],x[32767+H][1]=j,x[32767+H][0]=H;for(var $=-(B-1);$<=-_;$++)N[32767+$]=j,x[32767+$]=[],x[32767+$][1]=j,x[32767+$][0]=B-1+$;_<<=1,B<<=1;}})(),(function(){for(var _=0;_<256;_++)mt[_]=19595*_,mt[_+256|0]=38470*_,mt[_+512|0]=7471*_+32768,mt[_+768|0]=-11059*_,mt[_+1024|0]=-21709*_,mt[_+1280|0]=32768*_+8421375,mt[_+1536|0]=-27439*_,mt[_+1792|0]=-5329*_;})(),wt(t);}function lr(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,this.bottom_up=true,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR();}function Nu(t){function n(M){if(!M)throw Error("assert :P")}function e(M,tt,L){for(var O=0;4>O;O++)if(M[tt+O]!=L.charCodeAt(O))return true;return false}function r(M,tt,L,O,q){for(var U=0;U<q;U++)M[tt+U]=L[O+U];}function a(M,tt,L,O){for(var q=0;q<O;q++)M[tt+q]=L;}function o(M){return new Int32Array(M)}function f(M,tt){for(var L=[],O=0;O<M;O++)L.push(new tt);return L}function l(M,tt){var L=[];return (function O(q,U,rt){for(var st=rt[U],ft=0;ft<st&&(q.push(rt.length>U+1?[]:new tt),!(rt.length<U+1));ft++)O(q[ft],U+1,rt);})(L,0,M),L}var c=function(){var M=this;function tt(i,s){for(var u=1<<s-1>>>0;i&u;)u>>>=1;return u?(i&u-1)+u:i}function L(i,s,u,g,b){n(!(g%u));do i[s+(g-=u)]=b;while(0<g)}function O(i,s,u,g,b){if(n(2328>=b),512>=b)var w=o(512);else if((w=o(b))==null)return 0;return (function(y,A,S,C,W,et){var F,Z,X=A,ht=1<<S,Q=o(16),ct=o(16);for(n(W!=0),n(C!=null),n(y!=null),n(0<S),Z=0;Z<W;++Z){if(15<C[Z])return 0;++Q[C[Z]];}if(Q[0]==W)return 0;for(ct[1]=0,F=1;15>F;++F){if(Q[F]>1<<F)return 0;ct[F+1]=ct[F]+Q[F];}for(Z=0;Z<W;++Z)F=C[Z],0<C[Z]&&(et[ct[F]++]=Z);if(ct[15]==1)return (C=new q).g=0,C.value=et[0],L(y,X,1,ht,C),ht;var pt,_t=-1,bt=ht-1,Rt=0,Pt=1,re=1,Ot=1<<S;for(Z=0,F=1,W=2;F<=S;++F,W<<=1){if(Pt+=re<<=1,0>(re-=Q[F]))return 0;for(;0<Q[F];--Q[F])(C=new q).g=F,C.value=et[Z++],L(y,X+Rt,W,Ot,C),Rt=tt(Rt,F);}for(F=S+1,W=2;15>=F;++F,W<<=1){if(Pt+=re<<=1,0>(re-=Q[F]))return 0;for(;0<Q[F];--Q[F]){if(C=new q,(Rt&bt)!=_t){for(X+=Ot,pt=1<<(_t=F)-S;15>_t&&!(0>=(pt-=Q[_t]));)++_t,pt<<=1;ht+=Ot=1<<(pt=_t-S),y[A+(_t=Rt&bt)].g=pt+S,y[A+_t].value=X-A-_t;}C.g=F-S,C.value=et[Z++],L(y,X+(Rt>>S),W,Ot,C),Rt=tt(Rt,F);}}return Pt!=2*ct[15]-1?0:ht})(i,s,u,g,b,w)}function q(){this.value=this.g=0;}function U(){this.value=this.g=0;}function rt(){this.G=f(5,q),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=f(ha,U);}function st(i,s,u,g){n(i!=null),n(s!=null),n(2147483648>g),i.Ca=254,i.I=0,i.b=-8,i.Ka=0,i.oa=s,i.pa=u,i.Jd=s,i.Yc=u+g,i.Zc=4<=g?u+g-4+1:u,at(i);}function ft(i,s){for(var u=0;0<s--;)u|=gt(i,128)<<s;return u}function nt(i,s){var u=ft(i,s);return ot(i)?-u:u}function ut(i,s,u,g){var b,w=0;for(n(i!=null),n(s!=null),n(4294967288>g),i.Sb=g,i.Ra=0,i.u=0,i.h=0,4<g&&(g=4),b=0;b<g;++b)w+=s[u+b]<<8*b;i.Ra=w,i.bb=g,i.oa=s,i.pa=u;}function At(i){for(;8<=i.u&&i.bb<i.Sb;)i.Ra>>>=8,i.Ra+=i.oa[i.pa+i.bb]<<Nn-8>>>0,++i.bb,i.u-=8;H(i)&&(i.h=1,i.u=0);}function wt(i,s){if(n(0<=s),!i.h&&s<=Za){var u=j(i)&Ei[s];return i.u+=s,At(i),u}return i.h=1,i.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0;}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0;}function j(i){return i.Ra>>>(i.u&Nn-1)>>>0}function H(i){return n(i.bb<=i.Sb),i.h||i.bb==i.Sb&&i.u>Nn}function $(i,s){i.u=s,i.h=H(i);}function J(i){i.u>=In&&(n(i.u>=In),At(i));}function at(i){n(i!=null&&i.oa!=null),i.pa<i.Zc?(i.I=(i.oa[i.pa++]|i.I<<8)>>>0,i.b+=8):(n(i!=null&&i.oa!=null),i.pa<i.Yc?(i.b+=8,i.I=i.oa[i.pa++]|i.I<<8):i.Ka?i.b=0:(i.I<<=8,i.b+=8,i.Ka=1));}function ot(i){return ft(i,1)}function gt(i,s){var u=i.Ca;0>i.b&&at(i);var g=i.b,b=u*s>>>8,w=(i.I>>>g>b)+0;for(w?(u-=b,i.I-=b+1<<g>>>0):u=b+1,g=u,b=0;256<=g;)b+=8,g>>=8;return g=7^b+fa[g],i.b-=g,i.Ca=(u<<g)-1,w}function xt(i,s,u){i[s+0]=u>>24&255,i[s+1]=u>>16&255,i[s+2]=u>>8&255,i[s+3]=255&u;}function kt(i,s){return i[s+0]|i[s+1]<<8}function St(i,s){return kt(i,s)|i[s+2]<<16}function Dt(i,s){return kt(i,s)|kt(i,s+2)<<16}function P(i,s){var u=1<<s;return n(i!=null),n(0<s),i.X=o(u),i.X==null?0:(i.Mb=32-s,i.Xa=s,1)}function Lt(i,s){n(i!=null),n(s!=null),n(i.Xa==s.Xa),r(s.X,0,i.X,0,1<<s.Xa);}function ae(){this.X=[],this.Xa=this.Mb=0;}function Ht(i,s,u,g){n(u!=null),n(g!=null);var b=u[0],w=g[0];return b==0&&(b=(i*w+s/2)/s),w==0&&(w=(s*b+i/2)/i),0>=b||0>=w?0:(u[0]=b,g[0]=w,1)}function yt(i,s){return i+(1<<s)-1>>>s}function Wt(i,s){return ((4278255360&i)+(4278255360&s)>>>0&4278255360)+((16711935&i)+(16711935&s)>>>0&16711935)>>>0}function Et(i,s){M[s]=function(u,g,b,w,y,A,S){var C;for(C=0;C<y;++C){var W=M[i](A[S+C-1],b,w+C);A[S+C]=Wt(u[g+C],W);}};}function qt(){this.ud=this.hd=this.jd=0;}function zt(i,s){return ((4278124286&(i^s))>>>1)+(i&s)>>>0}function ye(i){return 0<=i&&256>i?i:0>i?0:255<i?255:void 0}function he(i,s){return ye(i+(i-s+.5>>1))}function Jt(i,s,u){return Math.abs(s-u)-Math.abs(i-u)}function ce(i,s,u,g,b,w,y){for(g=w[y-1],u=0;u<b;++u)w[y+u]=g=Wt(i[s+u],g);}function fe(i,s,u,g,b){var w;for(w=0;w<u;++w){var y=i[s+w],A=y>>8&255,S=16711935&(S=(S=16711935&y)+((A<<16)+A));g[b+w]=(4278255360&y)+S>>>0;}}function Bt(i,s){s.jd=255&i,s.hd=i>>8&255,s.ud=i>>16&255;}function ne(i,s,u,g,b,w){var y;for(y=0;y<g;++y){var A=s[u+y],S=A>>>8,C=A,W=255&(W=(W=A>>>16)+((i.jd<<24>>24)*(S<<24>>24)>>>5));C=255&(C=(C+=(i.hd<<24>>24)*(S<<24>>24)>>>5)+((i.ud<<24>>24)*(W<<24>>24)>>>5)),b[w+y]=(4278255360&A)+(W<<16)+C;}}function Mt(i,s,u,g,b){M[s]=function(w,y,A,S,C,W,et,F,Z){for(S=et;S<F;++S)for(et=0;et<Z;++et)C[W++]=b(A[g(w[y++])]);},M[i]=function(w,y,A,S,C,W,et){var F=8>>w.b,Z=w.Ea,X=w.K[0],ht=w.w;if(8>F)for(w=(1<<w.b)-1,ht=(1<<F)-1;y<A;++y){var Q,ct=0;for(Q=0;Q<Z;++Q)Q&w||(ct=g(S[C++])),W[et++]=b(X[ct&ht]),ct>>=F;}else M["VP8LMapColor"+u](S,C,X,ht,W,et,y,A,Z);};}function We(i,s,u,g,b){for(u=s+u;s<u;){var w=i[s++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w;}}function ve(i,s,u,g,b){for(u=s+u;s<u;){var w=i[s++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w,g[b++]=w>>24&255;}}function oe(i,s,u,g,b){for(u=s+u;s<u;){var w=(y=i[s++])>>16&240|y>>12&15,y=240&y|y>>28&15;g[b++]=w,g[b++]=y;}}function se(i,s,u,g,b){for(u=s+u;s<u;){var w=(y=i[s++])>>16&248|y>>13&7,y=y>>5&224|y>>3&31;g[b++]=w,g[b++]=y;}}function Be(i,s,u,g,b){for(u=s+u;s<u;){var w=i[s++];g[b++]=255&w,g[b++]=w>>8&255,g[b++]=w>>16&255;}}function Ut(i,s,u,g,b,w){if(w==0)for(u=s+u;s<u;)xt(g,((w=i[s++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),b+=32;else r(g,b,i,s,u);}function Ee(i,s){M[s][0]=M[i+"0"],M[s][1]=M[i+"1"],M[s][2]=M[i+"2"],M[s][3]=M[i+"3"],M[s][4]=M[i+"4"],M[s][5]=M[i+"5"],M[s][6]=M[i+"6"],M[s][7]=M[i+"7"],M[s][8]=M[i+"8"],M[s][9]=M[i+"9"],M[s][10]=M[i+"10"],M[s][11]=M[i+"11"],M[s][12]=M[i+"12"],M[s][13]=M[i+"13"],M[s][14]=M[i+"0"],M[s][15]=M[i+"0"];}function Zt(i){return i==fl||i==cl||i==Jo||i==ul}function Qt(){this.eb=[],this.size=this.A=this.fb=0;}function Re(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0;}function le(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Re,this.sd=null;}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0];}function _e(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0;}function vi(i){return alert("todo:WebPSamplerProcessPlane"),i.T}function pn(i,s){var u=i.T,g=s.ba.f.RGBA,b=g.eb,w=g.fb+i.ka*g.A,y=Xn[s.ba.S],A=i.y,S=i.O,C=i.f,W=i.N,et=i.ea,F=i.W,Z=s.cc,X=s.dc,ht=s.Mc,Q=s.Nc,ct=i.ka,pt=i.ka+i.T,_t=i.U,bt=_t+1>>1;for(ct==0?y(A,S,null,null,C,W,et,F,C,W,et,F,b,w,null,null,_t):(y(s.ec,s.fc,A,S,Z,X,ht,Q,C,W,et,F,b,w-g.A,b,w,_t),++u);ct+2<pt;ct+=2)Z=C,X=W,ht=et,Q=F,W+=i.Rc,F+=i.Rc,w+=2*g.A,y(A,(S+=2*i.fa)-i.fa,A,S,Z,X,ht,Q,C,W,et,F,b,w-g.A,b,w,_t);return S+=i.fa,i.j+pt<i.o?(r(s.ec,s.fc,A,S,_t),r(s.cc,s.dc,C,W,bt),r(s.Mc,s.Nc,et,F,bt),u--):1&pt||y(A,S,null,null,C,W,et,F,C,W,et,F,b,w+g.A,null,null,_t),u}function Pr(i,s,u){var g=i.F,b=[i.J];if(g!=null){var w=i.U,y=s.ba.S,A=y==Xo||y==Jo;s=s.ba.f.RGBA;var S=[0],C=i.ka;S[0]=i.T,i.Kb&&(C==0?--S[0]:(--C,b[0]-=i.width),i.j+i.ka+i.T==i.o&&(S[0]=i.o-i.j-C));var W=s.eb;C=s.fb+C*s.A,i=Th(g,b[0],i.width,w,S,W,C+(A?0:3),s.A),n(u==S),i&&Zt(y)&&Xa(W,C,A,w,S,s.A);}return 0}function cr(i){var s=i.ma,u=s.ba.S,g=11>u,b=u==Yo||u==Ko||u==Xo||u==hl||u==12||Zt(u);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Yn(s.Oa,i,b?11:12))return 0;if(b&&Zt(u)&&Rr(),i.da)alert("todo:use_scaling");else {if(g){if(s.Ib=vi,i.Kb){if(u=i.U+1>>1,s.memory=o(i.U+2*u),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+i.U,s.Mc=s.cc,s.Nc=s.dc+u,s.Ib=pn,Rr();}}else alert("todo:EmitYUV");b&&(s.Jb=Pr,g&&De());}if(g&&!Xh){for(i=0;256>i;++i)r1[i]=89858*(i-128)+ts>>Qo,o1[i]=-22014*(i-128)+ts,a1[i]=-45773*(i-128),i1[i]=113618*(i-128)+ts>>Qo;for(i=Qa;i<gl;++i)s=76283*(i-16)+ts>>Qo,s1[i-Qa]=pr(s,255),l1[i-Qa]=pr(s+8>>4,15);Xh=1;}return 1}function Vt(i){var s=i.ma,u=i.U,g=i.T;return n(!(1&i.ka)),0>=u||0>=g?0:(u=s.Ib(i,s),s.Jb!=null&&s.Jb(i,s,u),s.Dc+=u,1)}function Er(i){i.ma.memory=null;}function Ir(i,s,u,g){return wt(i,8)!=47?0:(s[0]=wt(i,14)+1,u[0]=wt(i,14)+1,g[0]=wt(i,1),wt(i,3)!=0?0:!i.h)}function Gn(i,s){if(4>i)return i+1;var u=i-2>>1;return (2+(1&i)<<u)+wt(s,u)+1}function Vn(i,s){return 120<s?s-120:1<=(u=((u=Hu[s-1])>>4)*i+(8-(15&u)))?u:1;var u;}function ze(i,s,u){var g=j(u),b=i[s+=255&g].g-8;return 0<b&&($(u,u.u+8),g=j(u),s+=i[s].value,s+=g&(1<<b)-1),$(u,u.u+i[s].g),i[s].value}function an(i,s,u){return u.g+=i.g,u.value+=i.value<<s>>>0,n(8>=u.g),i.g}function ln(i,s,u){var g=i.xc;return n((s=g==0?0:i.vc[i.md*(u>>g)+(s>>g)])<i.Wb),i.Ya[s]}function mi(i,s,u,g){var b=i.ab,w=i.c*s,y=i.C;s=y+s;var A=u,S=g;for(g=i.Ta,u=i.Ua;0<b--;){var C=i.gc[b],W=y,et=s,F=A,Z=S,X=(S=g,A=u,C.Ea);switch(n(W<et),n(et<=C.nc),C.hc){case 2:ca(F,Z,(et-W)*X,S,A);break;case 0:var ht=W,Q=et,ct=S,pt=A,_t=(Ot=C).Ea;ht==0&&(Jr(F,Z,null,null,1,ct,pt),ce(F,Z+1,0,0,_t-1,ct,pt+1),Z+=_t,pt+=_t,++ht);for(var bt=1<<Ot.b,Rt=bt-1,Pt=yt(_t,Ot.b),re=Ot.K,Ot=Ot.w+(ht>>Ot.b)*Pt;ht<Q;){var ue=re,en=Ot,ie=1;for(Qr(F,Z,ct,pt-_t,1,ct,pt);ie<_t;){var Tt=(ie&~Rt)+bt;Tt>_t&&(Tt=_t),(0, rr[ue[en++]>>8&15])(F,Z+ +ie,ct,pt+ie-_t,Tt-ie,ct,pt+ie),ie=Tt;}Z+=_t,pt+=_t,++ht&Rt||(Ot+=Pt);}et!=C.nc&&r(S,A-X,S,A+(et-W-1)*X,X);break;case 1:for(X=F,Q=Z,_t=(F=C.Ea)-(pt=F&~(ct=(Z=1<<C.b)-1)),ht=yt(F,C.b),bt=C.K,C=C.w+(W>>C.b)*ht;W<et;){for(Rt=bt,Pt=C,re=new qt,Ot=Q+pt,ue=Q+F;Q<Ot;)Bt(Rt[Pt++],re),Ci(re,X,Q,Z,S,A),Q+=Z,A+=Z;Q<ue&&(Bt(Rt[Pt++],re),Ci(re,X,Q,_t,S,A),Q+=_t,A+=_t),++W&ct||(C+=ht);}break;case 3:if(F==S&&Z==A&&0<C.b){for(Q=S,F=X=A+(et-W)*X-(pt=(et-W)*yt(C.Ea,C.b)),Z=S,ct=A,ht=[],pt=(_t=pt)-1;0<=pt;--pt)ht[pt]=Z[ct+pt];for(pt=_t-1;0<=pt;--pt)Q[F+pt]=ht[pt];Ii(C,W,et,S,X,S,A);}else Ii(C,W,et,F,Z,S,A);}A=g,S=u;}S!=u&&r(g,u,A,S,w);}function Zr(i,s){var u=i.V,g=i.Ba+i.c*i.C,b=s-i.C;if(n(s<=i.l.o),n(16>=b),0<b){var w=i.l,y=i.Ta,A=i.Ua,S=w.width;if(mi(i,b,u,g),b=A=[A],n((u=i.C)<(g=s)),n(w.v<w.va),g>w.o&&(g=w.o),u<w.j){var C=w.j-u;u=w.j,b[0]+=C*S;}if(u>=g?u=0:(b[0]+=4*w.v,w.ka=u-w.j,w.U=w.va-w.v,w.T=g-u,u=1),u){if(A=A[0],11>(u=i.ca).S){var W=u.f.RGBA,et=(g=u.S,b=w.U,w=w.T,C=W.eb,W.A),F=w;for(W=W.fb+i.Ma*W.A;0<F--;){var Z=y,X=A,ht=b,Q=C,ct=W;switch(g){case $o:$a(Z,X,ht,Q,ct);break;case Yo:Ya(Z,X,ht,Q,ct);break;case fl:Ya(Z,X,ht,Q,ct),Xa(Q,ct,0,ht,1,0);break;case Uh:Oi(Z,X,ht,Q,ct);break;case Ko:Ut(Z,X,ht,Q,ct,1);break;case cl:Ut(Z,X,ht,Q,ct,1),Xa(Q,ct,0,ht,1,0);break;case Xo:Ut(Z,X,ht,Q,ct,0);break;case Jo:Ut(Z,X,ht,Q,ct,0),Xa(Q,ct,1,ht,1,0);break;case hl:ua(Z,X,ht,Q,ct);break;case ul:ua(Z,X,ht,Q,ct),Oh(Q,ct,ht,1,0);break;case qh:Fi(Z,X,ht,Q,ct);break;default:n(0);}A+=S,W+=et;}i.Ma+=w;}else alert("todo:EmitRescaledRowsYUVA");n(i.Ma<=u.height);}}i.C=s,n(i.C<=i.i);}function tr(i){var s;if(0<i.ua)return 0;for(s=0;s<i.Wb;++s){var u=i.Ya[s].G,g=i.Ya[s].H;if(0<u[1][g[1]+0].g||0<u[2][g[2]+0].g||0<u[3][g[3]+0].g)return 0}return 1}function ur(i,s,u,g,b,w){if(i.Z!=0){var y=i.qd,A=i.rd;for(n(ri[i.Z]!=null);s<u;++s)ri[i.Z](y,A,g,b,g,b,w),y=g,A=b,b+=w;i.qd=y,i.rd=A;}}function er(i,s){var u=i.l.ma,g=u.Z==0||u.Z==1?i.l.j:i.C;if(g=i.C<g?g:i.C,n(s<=i.l.o),s>g){var b=i.l.width,w=u.ca,y=u.tb+b*g,A=i.V,S=i.Ba+i.c*g,C=i.gc;n(i.ab==1),n(C[0].hc==3),sl(C[0],g,s,A,S,w,y),ur(u,g,s,w,y,b);}i.C=i.Ma=s;}function nr(i,s,u,g,b,w,y){var A=i.$/g,S=i.$%g,C=i.m,W=i.s,et=u+i.$,F=et;b=u+g*b;var Z=u+g*w,X=280+W.ua,ht=i.Pb?A:16777216,Q=0<W.ua?W.Wa:null,ct=W.wc,pt=et<Z?ln(W,S,A):null;n(i.C<w),n(Z<=b);var _t=false;t:for(;;){for(;_t||et<Z;){var bt=0;if(A>=ht){var Rt=et-u;n((ht=i).Pb),ht.wd=ht.m,ht.xd=Rt,0<ht.s.ua&&Lt(ht.s.Wa,ht.s.vb),ht=A+Gu;}if(S&ct||(pt=ln(W,S,A)),n(pt!=null),pt.Qb&&(s[et]=pt.qb,_t=true),!_t)if(J(C),pt.jc){bt=C,Rt=s;var Pt=et,re=pt.pd[j(bt)&ha-1];n(pt.jc),256>re.g?($(bt,bt.u+re.g),Rt[Pt]=re.value,bt=0):($(bt,bt.u+re.g-256),n(256<=re.value),bt=re.value),bt==0&&(_t=true);}else bt=ze(pt.G[0],pt.H[0],C);if(C.h)break;if(_t||256>bt){if(!_t)if(pt.nd)s[et]=(pt.qb|bt<<8)>>>0;else {if(J(C),_t=ze(pt.G[1],pt.H[1],C),J(C),Rt=ze(pt.G[2],pt.H[2],C),Pt=ze(pt.G[3],pt.H[3],C),C.h)break;s[et]=(Pt<<24|_t<<16|bt<<8|Rt)>>>0;}if(_t=false,++et,++S>=g&&(S=0,++A,y!=null&&A<=w&&!(A%16)&&y(i,A),Q!=null))for(;F<et;)bt=s[F++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;}else if(280>bt){if(bt=Gn(bt-256,C),Rt=ze(pt.G[4],pt.H[4],C),J(C),Rt=Vn(g,Rt=Gn(Rt,C)),C.h)break;if(et-u<Rt||b-et<bt)break t;for(Pt=0;Pt<bt;++Pt)s[et+Pt]=s[et+Pt-Rt];for(et+=bt,S+=bt;S>=g;)S-=g,++A,y!=null&&A<=w&&!(A%16)&&y(i,A);if(n(et<=b),S&ct&&(pt=ln(W,S,A)),Q!=null)for(;F<et;)bt=s[F++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;}else {if(!(bt<X))break t;for(_t=bt-280,n(Q!=null);F<et;)bt=s[F++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=et,n(!(_t>>>(Rt=Q).Xa)),s[bt]=Rt.X[_t],_t=true;}_t||n(C.h==H(C));}if(i.Pb&&C.h&&et<b)n(i.m.h),i.a=5,i.m=i.wd,i.$=i.xd,0<i.s.ua&&Lt(i.s.vb,i.s.Wa);else {if(C.h)break t;y?.(i,A>w?w:A),i.a=0,i.$=et-u;}return 1}return i.a=3,0}function Zn(i){n(i!=null),i.vc=null,i.yc=null,i.Ya=null;var s=i.Wa;s!=null&&(s.X=null),i.vb=null,n(i!=null);}function bi(){var i=new Ft;return i==null?null:(i.a=0,i.xb=Gh,Ee("Predictor","VP8LPredictors"),Ee("Predictor","VP8LPredictors_C"),Ee("PredictorAdd","VP8LPredictorsAdd"),Ee("PredictorAdd","VP8LPredictorsAdd_C"),ca=fe,Ci=ne,$a=We,Ya=ve,ua=oe,Fi=se,Oi=Be,M.VP8LMapColor32b=Qe,M.VP8LMapColor8b=wr,i)}function dr(i,s,u,g,b){var w=1,y=[i],A=[s],S=g.m,C=g.s,W=null,et=0;t:for(;;){if(u)for(;w&&wt(S,1);){var F=y,Z=A,X=g,ht=1,Q=X.m,ct=X.gc[X.ab],pt=wt(Q,2);if(X.Oc&1<<pt)w=0;else {switch(X.Oc|=1<<pt,ct.hc=pt,ct.Ea=F[0],ct.nc=Z[0],ct.K=[null],++X.ab,n(4>=X.ab),pt){case 0:case 1:ct.b=wt(Q,3)+2,ht=dr(yt(ct.Ea,ct.b),yt(ct.nc,ct.b),0,X,ct.K),ct.K=ct.K[0];break;case 3:var _t,bt=wt(Q,8)+1,Rt=16<bt?0:4<bt?1:2<bt?2:3;if(F[0]=yt(ct.Ea,Rt),ct.b=Rt,_t=ht=dr(bt,1,0,X,ct.K)){var Pt,re=bt,Ot=ct,ue=1<<(8>>Ot.b),en=o(ue);if(en==null)_t=0;else {var ie=Ot.K[0],Tt=Ot.w;for(en[0]=Ot.K[0][0],Pt=1;Pt<1*re;++Pt)en[Pt]=Wt(ie[Tt+Pt],en[Pt-1]);for(;Pt<4*ue;++Pt)en[Pt]=0;Ot.K[0]=null,Ot.K[0]=en,_t=1;}}ht=_t;break;case 2:break;default:n(0);}w=ht;}}if(y=y[0],A=A[0],w&&wt(S,1)&&!(w=1<=(et=wt(S,4))&&11>=et)){g.a=3;break t}var Nt;if(Nt=w)e:{var Ve,ee,ge,Te=g,fn=y,Ln=A,Ue=et,bn=u,Sn=Te.m,nn=Te.s,me=[null],xe=1,qe=0,Ae=Wu[Ue];n:for(;;){if(bn&&wt(Sn,1)){var cn=wt(Sn,3)+2,ar=yt(fn,cn),Ze=yt(Ln,cn),Cn=ar*Ze;if(!dr(ar,Ze,0,Te,me))break n;for(me=me[0],nn.xc=cn,Ve=0;Ve<Cn;++Ve){var ke=me[Ve]>>8&65535;me[Ve]=ke,ke>=xe&&(xe=ke+1);}}if(Sn.h)break n;for(ee=0;5>ee;++ee){var rn=Hh[ee];!ee&&0<Ue&&(rn+=1<<Ue),qe<rn&&(qe=rn);}var Mn=f(xe*Ae,q),kn=xe,jn=f(kn,rt);if(jn==null)var Dn=null;else n(65536>=kn),Dn=jn;var Fn=o(qe);if(Dn==null||Fn==null||Mn==null){Te.a=1;break n}var zn=Mn;for(Ve=ge=0;Ve<xe;++Ve){var Fe=Dn[Ve],Un=Fe.G,or=Fe.H,Ti=0,zr=1,un=0;for(ee=0;5>ee;++ee){rn=Hh[ee],Un[ee]=zn,or[ee]=ge,!ee&&0<Ue&&(rn+=1<<Ue);i:{var ns,vl=rn,rs=Te,to=Fn,c1=zn,u1=ge,ml=0,ii=rs.m,d1=wt(ii,1);if(a(to,0,0,vl),d1){var p1=wt(ii,1)+1,g1=wt(ii,1),tf=wt(ii,g1==0?1:8);to[tf]=1,p1==2&&(to[tf=wt(ii,8)]=1);var is=1;}else {var ef=o(19),nf=wt(ii,4)+4;if(19<nf){rs.a=3;var as=0;break i}for(ns=0;ns<nf;++ns)ef[qu[ns]]=wt(ii,3);var bl=void 0,eo=void 0,rf=rs,v1=ef,os=vl,af=to,wl=0,ai=rf.m,of=8,sf=f(128,q);r:for(;O(sf,0,7,v1,19);){if(wt(ai,1)){var m1=2+2*wt(ai,3);if((bl=2+wt(ai,m1))>os)break r}else bl=os;for(eo=0;eo<os&&bl--;){J(ai);var lf=sf[0+(127&j(ai))];$(ai,ai.u+lf.g);var ga=lf.value;if(16>ga)af[eo++]=ga,ga!=0&&(of=ga);else {var b1=ga==16,hf=ga-16,w1=zu[hf],ff=wt(ai,Du[hf])+w1;if(eo+ff>os)break r;for(var y1=b1?of:0;0<ff--;)af[eo++]=y1;}}wl=1;break r}wl||(rf.a=3),is=wl;}(is=is&&!ii.h)&&(ml=O(c1,u1,8,to,vl)),is&&ml!=0?as=ml:(rs.a=3,as=0);}if(as==0)break n;if(zr&&Uu[ee]==1&&(zr=zn[ge].g==0),Ti+=zn[ge].g,ge+=as,3>=ee){var no,yl=Fn[0];for(no=1;no<rn;++no)Fn[no]>yl&&(yl=Fn[no]);un+=yl;}}if(Fe.nd=zr,Fe.Qb=0,zr&&(Fe.qb=(Un[3][or[3]+0].value<<24|Un[1][or[1]+0].value<<16|Un[2][or[2]+0].value)>>>0,Ti==0&&256>Un[0][or[0]+0].value&&(Fe.Qb=1,Fe.qb+=Un[0][or[0]+0].value<<8)),Fe.jc=!Fe.Qb&&6>un,Fe.jc){var ss,Ur=Fe;for(ss=0;ss<ha;++ss){var oi=ss,si=Ur.pd[oi],ls=Ur.G[0][Ur.H[0]+oi];256<=ls.value?(si.g=ls.g+256,si.value=ls.value):(si.g=0,si.value=0,oi>>=an(ls,8,si),oi>>=an(Ur.G[1][Ur.H[1]+oi],16,si),oi>>=an(Ur.G[2][Ur.H[2]+oi],0,si),an(Ur.G[3][Ur.H[3]+oi],24,si));}}}nn.vc=me,nn.Wb=xe,nn.Ya=Dn,nn.yc=Mn,Nt=1;break e}Nt=0;}if(!(w=Nt)){g.a=3;break t}if(0<et){if(C.ua=1<<et,!P(C.Wa,et)){g.a=1,w=0;break t}}else C.ua=0;var _l=g,cf=y,_1=A,xl=_l.s,Al=xl.xc;if(_l.c=cf,_l.i=_1,xl.md=yt(cf,Al),xl.wc=Al==0?-1:(1<<Al)-1,u){g.xb=Ju;break t}if((W=o(y*A))==null){g.a=1,w=0;break t}w=(w=nr(g,W,0,y,A,A,null))&&!S.h;break t}return w?(b!=null?b[0]=W:(n(W==null),n(u)),g.$=0,u||Zn(C)):Zn(C),w}function wi(i,s){var u=i.c*i.i,g=u+s+16*s;return n(i.c<=s),i.V=o(g),i.V==null?(i.Ta=null,i.Ua=0,i.a=1,0):(i.Ta=i.V,i.Ua=i.Ba+u+s,1)}function $i(i,s){var u=i.C,g=s-u,b=i.V,w=i.Ba+i.c*u;for(n(s<=i.l.o);0<g;){var y=16<g?16:g,A=i.l.ma,S=i.l.width,C=S*y,W=A.ca,et=A.tb+S*u,F=i.Ta,Z=i.Ua;mi(i,y,b,w),Bh(F,Z,W,et,C),ur(A,u,u+y,W,et,S),g-=y,b+=y*i.c,u+=y;}n(u==s),i.C=i.Ma=s;}function Yi(){this.ub=this.yd=this.td=this.Rb=0;}function Ki(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0;}function Hs(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4);}function Ta(){this.Yb=(function(){var i=[];return (function s(u,g,b){for(var w=b[g],y=0;y<w&&(u.push(b.length>g+1?[]:0),!(b.length<g+1));y++)s(u[y],g+1,b);})(i,0,[3,11]),i})();}function Eo(){this.jb=o(3),this.Wc=l([4,8],Ta),this.Xc=l([4,17],Ta);}function Io(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4);}function $n(){this.ld=this.La=this.dd=this.tc=0;}function Ba(){this.Na=this.la=0;}function Co(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0;}function Ra(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0;}function Fo(){this.uc=this.M=this.Nb=0,this.wa=Array(new $n),this.Y=0,this.ya=Array(new Ra),this.aa=0,this.l=new Xi;}function Oo(){this.y=o(16),this.f=o(8),this.ea=o(8);}function To(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Yi,this.Kc=new Ki,this.ed=new Io,this.Qa=new Hs,this.Ic=this.$c=this.Aa=0,this.D=new Fo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=f(8,_),this.ia=0,this.pb=f(4,Co),this.Pa=new Eo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Oo),this.Hd=0,this.rb=Array(new Ba),this.sb=0,this.wa=Array(new $n),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ra),this.L=this.aa=0,this.gd=l([4,2],$n),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0;}function pr(i,s){return 0>i?0:i>s?s:i}function Xi(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0;}function Ws(){var i=new To;return i!=null&&(i.a=0,i.sc="OK",i.cb=0,i.Xb=0,Ja||(Ja=Ji)),i}function Xe(i,s,u){return i.a==0&&(i.a=s,i.sc=u,i.cb=0),0}function Bo(i,s,u){return 3<=u&&i[s+0]==157&&i[s+1]==1&&i[s+2]==42}function gr(i,s){if(i==null)return 0;if(i.a=0,i.sc="OK",s==null)return Xe(i,2,"null VP8Io passed to VP8GetHeaders()");var u=s.data,g=s.w,b=s.ha;if(4>b)return Xe(i,7,"Truncated header.");var w=u[g+0]|u[g+1]<<8|u[g+2]<<16,y=i.Od;if(y.Rb=!(1&w),y.td=w>>1&7,y.yd=w>>4&1,y.ub=w>>5,3<y.td)return Xe(i,3,"Incorrect keyframe parameters.");if(!y.yd)return Xe(i,4,"Frame not displayable.");g+=3,b-=3;var A=i.Kc;if(y.Rb){if(7>b)return Xe(i,7,"cannot parse picture header");if(!Bo(u,g,b))return Xe(i,3,"Bad code word");A.c=16383&(u[g+4]<<8|u[g+3]),A.Td=u[g+4]>>6,A.i=16383&(u[g+6]<<8|u[g+5]),A.Ud=u[g+6]>>6,g+=7,b-=7,i.za=A.c+15>>4,i.Ub=A.i+15>>4,s.width=A.c,s.height=A.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,a((w=i.Pa).jb,0,255,w.jb.length),n((w=i.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,a(w.Zb,0,0,w.Zb.length),a(w.Lb,0,0,w.Lb);}if(y.ub>b)return Xe(i,7,"bad partition length");st(w=i.m,u,g,y.ub),g+=y.ub,b-=y.ub,y.Rb&&(A.Ld=ot(w),A.Kd=ot(w)),A=i.Qa;var S,C=i.Pa;if(n(w!=null),n(A!=null),A.Cb=ot(w),A.Cb){if(A.Bb=ot(w),ot(w)){for(A.Fb=ot(w),S=0;4>S;++S)A.Zb[S]=ot(w)?nt(w,7):0;for(S=0;4>S;++S)A.Lb[S]=ot(w)?nt(w,6):0;}if(A.Bb)for(S=0;3>S;++S)C.jb[S]=ot(w)?ft(w,8):255;}else A.Bb=0;if(w.Ka)return Xe(i,3,"cannot parse segment header");if((A=i.ed).zd=ot(w),A.Tb=ft(w,6),A.wb=ft(w,3),A.Pc=ot(w),A.Pc&&ot(w)){for(C=0;4>C;++C)ot(w)&&(A.vd[C]=nt(w,6));for(C=0;4>C;++C)ot(w)&&(A.od[C]=nt(w,6));}if(i.L=A.Tb==0?0:A.zd?1:2,w.Ka)return Xe(i,3,"cannot parse filter header");var W=b;if(b=S=g,g=S+W,A=W,i.Xb=(1<<ft(i.m,2))-1,W<3*(C=i.Xb))u=7;else {for(S+=3*C,A-=3*C,W=0;W<C;++W){var et=u[b+0]|u[b+1]<<8|u[b+2]<<16;et>A&&(et=A),st(i.Jc[+W],u,S,et),S+=et,A-=et,b+=3;}st(i.Jc[+C],u,S,A),u=S<g?0:5;}if(u!=0)return Xe(i,u,"cannot parse partitions");for(u=ft(S=i.m,7),b=ot(S)?nt(S,4):0,g=ot(S)?nt(S,4):0,A=ot(S)?nt(S,4):0,C=ot(S)?nt(S,4):0,S=ot(S)?nt(S,4):0,W=i.Qa,et=0;4>et;++et){if(W.Cb){var F=W.Zb[et];W.Fb||(F+=u);}else {if(0<et){i.pb[et]=i.pb[0];continue}F=u;}var Z=i.pb[et];Z.Sc[0]=dl[pr(F+b,127)],Z.Sc[1]=pl[pr(F+0,127)],Z.Eb[0]=2*dl[pr(F+g,127)],Z.Eb[1]=101581*pl[pr(F+A,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=dl[pr(F+C,117)],Z.Qc[1]=pl[pr(F+S,127)],Z.lc=F+S;}if(!y.Rb)return Xe(i,4,"Not a key frame.");for(ot(w),y=i.Pa,u=0;4>u;++u){for(b=0;8>b;++b)for(g=0;3>g;++g)for(A=0;11>A;++A)C=gt(w,Ku[u][b][g][A])?ft(w,8):$u[u][b][g][A],y.Wc[u][b].Yb[g][A]=C;for(b=0;17>b;++b)y.Xc[u][b]=y.Wc[u][Xu[b]];}return i.kc=ot(w),i.kc&&(i.Bd=ft(w,8)),i.cb=1}function Ji(i,s,u,g,b,w,y){var A=s[b].Yb[u];for(u=0;16>b;++b){if(!gt(i,A[u+0]))return b;for(;!gt(i,A[u+1]);)if(A=s[++b].Yb[0],u=0,b==16)return 16;var S=s[b+1].Yb;if(gt(i,A[u+2])){var C=i,W=0;if(gt(C,(F=A)[(et=u)+3]))if(gt(C,F[et+6])){for(A=0,et=2*(W=gt(C,F[et+8]))+(F=gt(C,F[et+9+W])),W=0,F=Vu[et];F[A];++A)W+=W+gt(C,F[A]);W+=3+(8<<et);}else gt(C,F[et+7])?(W=7+2*gt(C,165),W+=gt(C,145)):W=5+gt(C,159);else W=gt(C,F[et+4])?3+gt(C,F[et+5]):2;A=S[2];}else W=1,A=S[1];S=y+Zu[b],0>(C=i).b&&at(C);var et,F=C.b,Z=(et=C.Ca>>1)-(C.I>>F)>>31;--C.b,C.Ca+=Z,C.Ca|=1,C.I-=(et+1&Z)<<F,w[S]=((W^Z)-Z)*g[(0<b)+0];}return 16}function Ma(i){var s=i.rb[i.sb-1];s.la=0,s.Na=0,a(i.zc,0,0,i.zc.length),i.ja=0;}function Bn(i,s,u,g,b){b=i[s+u+32*g]+(b>>3),i[s+u+32*g]=-256&b?0>b?0:255:b;}function Qi(i,s,u,g,b,w){Bn(i,s,0,u,g+b),Bn(i,s,1,u,g+w),Bn(i,s,2,u,g-w),Bn(i,s,3,u,g-b);}function Cr(i){return (20091*i>>16)+i}function hn(i,s,u,g){var b,w=0,y=o(16);for(b=0;4>b;++b){var A=i[s+0]+i[s+8],S=i[s+0]-i[s+8],C=(35468*i[s+4]>>16)-Cr(i[s+12]),W=Cr(i[s+4])+(35468*i[s+12]>>16);y[w+0]=A+W,y[w+1]=S+C,y[w+2]=S-C,y[w+3]=A-W,w+=4,s++;}for(b=w=0;4>b;++b)A=(i=y[w+0]+4)+y[w+8],S=i-y[w+8],C=(35468*y[w+4]>>16)-Cr(y[w+12]),Bn(u,g,0,0,A+(W=Cr(y[w+4])+(35468*y[w+12]>>16))),Bn(u,g,1,0,S+C),Bn(u,g,2,0,S-C),Bn(u,g,3,0,A-W),w++,g+=32;}function Ro(i,s,u,g){var b=i[s+0]+4,w=35468*i[s+4]>>16,y=Cr(i[s+4]),A=35468*i[s+1]>>16;Qi(u,g,0,b+y,i=Cr(i[s+1]),A),Qi(u,g,1,b+w,i,A),Qi(u,g,2,b-w,i,A),Qi(u,g,3,b-y,i,A);}function Gs(i,s,u,g,b){hn(i,s,u,g),b&&hn(i,s+16,u,g+4);}function Vs(i,s,u,g){Mr(i,s+0,u,g,1),Mr(i,s+32,u,g+128,1);}function Zs(i,s,u,g){var b;for(i=i[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)Bn(u,g,s,b,i);}function vr(i,s,u,g){i[s+0]&&mn(i,s+0,u,g),i[s+16]&&mn(i,s+16,u,g+4),i[s+32]&&mn(i,s+32,u,g+128),i[s+48]&&mn(i,s+48,u,g+128+4);}function Mo(i,s,u,g){var b,w=o(16);for(b=0;4>b;++b){var y=i[s+0+b]+i[s+12+b],A=i[s+4+b]+i[s+8+b],S=i[s+4+b]-i[s+8+b],C=i[s+0+b]-i[s+12+b];w[0+b]=y+A,w[8+b]=y-A,w[4+b]=C+S,w[12+b]=C-S;}for(b=0;4>b;++b)y=(i=w[0+4*b]+3)+w[3+4*b],A=w[1+4*b]+w[2+4*b],S=w[1+4*b]-w[2+4*b],C=i-w[3+4*b],u[g+0]=y+A>>3,u[g+16]=C+S>>3,u[g+32]=y-A>>3,u[g+48]=C-S>>3,g+=64;}function ta(i,s,u){var g,b=s-32,w=Rn,y=255-i[b-1];for(g=0;g<u;++g){var A,S=w,C=y+i[s-1];for(A=0;A<u;++A)i[s+A]=S[C+i[b+A]];s+=32;}}function ea(i,s){ta(i,s,4);}function ja(i,s){ta(i,s,8);}function $s(i,s){ta(i,s,16);}function Ys(i,s){var u;for(u=0;16>u;++u)r(i,s+32*u,i,s-32,16);}function Ks(i,s){var u;for(u=16;0<u;--u)a(i,s,i[s-1],16),s+=32;}function $r(i,s,u){var g;for(g=0;16>g;++g)a(s,u+32*g,i,16);}function jo(i,s){var u,g=16;for(u=0;16>u;++u)g+=i[s-1+32*u]+i[s+u-32];$r(g>>5,i,s);}function Yr(i,s){var u,g=8;for(u=0;16>u;++u)g+=i[s-1+32*u];$r(g>>4,i,s);}function Xs(i,s){var u,g=8;for(u=0;16>u;++u)g+=i[s+u-32];$r(g>>4,i,s);}function yi(i,s){$r(128,i,s);}function $t(i,s,u){return i+2*s+u+2>>2}function Js(i,s){var u,g=s-32;for(g=new Uint8Array([$t(i[g-1],i[g+0],i[g+1]),$t(i[g+0],i[g+1],i[g+2]),$t(i[g+1],i[g+2],i[g+3]),$t(i[g+2],i[g+3],i[g+4])]),u=0;4>u;++u)r(i,s+32*u,g,0,g.length);}function Qs(i,s){var u=i[s-1],g=i[s-1+32],b=i[s-1+64],w=i[s-1+96];xt(i,s+0,16843009*$t(i[s-1-32],u,g)),xt(i,s+32,16843009*$t(u,g,b)),xt(i,s+64,16843009*$t(g,b,w)),xt(i,s+96,16843009*$t(b,w,w));}function tl(i,s){var u,g=4;for(u=0;4>u;++u)g+=i[s+u-32]+i[s-1+32*u];for(g>>=3,u=0;4>u;++u)a(i,s+32*u,g,4);}function el(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1-32],y=i[s+0-32],A=i[s+1-32],S=i[s+2-32],C=i[s+3-32];i[s+0+96]=$t(g,b,i[s-1+96]),i[s+1+96]=i[s+0+64]=$t(u,g,b),i[s+2+96]=i[s+1+64]=i[s+0+32]=$t(w,u,g),i[s+3+96]=i[s+2+64]=i[s+1+32]=i[s+0+0]=$t(y,w,u),i[s+3+64]=i[s+2+32]=i[s+1+0]=$t(A,y,w),i[s+3+32]=i[s+2+0]=$t(S,A,y),i[s+3+0]=$t(C,S,A);}function nl(i,s){var u=i[s+1-32],g=i[s+2-32],b=i[s+3-32],w=i[s+4-32],y=i[s+5-32],A=i[s+6-32],S=i[s+7-32];i[s+0+0]=$t(i[s+0-32],u,g),i[s+1+0]=i[s+0+32]=$t(u,g,b),i[s+2+0]=i[s+1+32]=i[s+0+64]=$t(g,b,w),i[s+3+0]=i[s+2+32]=i[s+1+64]=i[s+0+96]=$t(b,w,y),i[s+3+32]=i[s+2+64]=i[s+1+96]=$t(w,y,A),i[s+3+64]=i[s+2+96]=$t(y,A,S),i[s+3+96]=$t(A,S,S);}function Fr(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1-32],y=i[s+0-32],A=i[s+1-32],S=i[s+2-32],C=i[s+3-32];i[s+0+0]=i[s+1+64]=w+y+1>>1,i[s+1+0]=i[s+2+64]=y+A+1>>1,i[s+2+0]=i[s+3+64]=A+S+1>>1,i[s+3+0]=S+C+1>>1,i[s+0+96]=$t(b,g,u),i[s+0+64]=$t(g,u,w),i[s+0+32]=i[s+1+96]=$t(u,w,y),i[s+1+32]=i[s+2+96]=$t(w,y,A),i[s+2+32]=i[s+3+96]=$t(y,A,S),i[s+3+32]=$t(A,S,C);}function Or(i,s){var u=i[s+0-32],g=i[s+1-32],b=i[s+2-32],w=i[s+3-32],y=i[s+4-32],A=i[s+5-32],S=i[s+6-32],C=i[s+7-32];i[s+0+0]=u+g+1>>1,i[s+1+0]=i[s+0+64]=g+b+1>>1,i[s+2+0]=i[s+1+64]=b+w+1>>1,i[s+3+0]=i[s+2+64]=w+y+1>>1,i[s+0+32]=$t(u,g,b),i[s+1+32]=i[s+0+96]=$t(g,b,w),i[s+2+32]=i[s+1+96]=$t(b,w,y),i[s+3+32]=i[s+2+96]=$t(w,y,A),i[s+3+64]=$t(y,A,S),i[s+3+96]=$t(A,S,C);}function rl(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1+96];i[s+0+0]=u+g+1>>1,i[s+2+0]=i[s+0+32]=g+b+1>>1,i[s+2+32]=i[s+0+64]=b+w+1>>1,i[s+1+0]=$t(u,g,b),i[s+3+0]=i[s+1+32]=$t(g,b,w),i[s+3+32]=i[s+1+64]=$t(b,w,w),i[s+3+64]=i[s+2+64]=i[s+0+96]=i[s+1+96]=i[s+2+96]=i[s+3+96]=w;}function il(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1+96],y=i[s-1-32],A=i[s+0-32],S=i[s+1-32],C=i[s+2-32];i[s+0+0]=i[s+2+32]=u+y+1>>1,i[s+0+32]=i[s+2+64]=g+u+1>>1,i[s+0+64]=i[s+2+96]=b+g+1>>1,i[s+0+96]=w+b+1>>1,i[s+3+0]=$t(A,S,C),i[s+2+0]=$t(y,A,S),i[s+1+0]=i[s+3+32]=$t(u,y,A),i[s+1+32]=i[s+3+64]=$t(g,u,y),i[s+1+64]=i[s+3+96]=$t(b,g,u),i[s+1+96]=$t(w,b,g);}function na(i,s){var u;for(u=0;8>u;++u)r(i,s+32*u,i,s-32,8);}function Da(i,s){var u;for(u=0;8>u;++u)a(i,s,i[s-1],8),s+=32;}function mr(i,s,u){var g;for(g=0;8>g;++g)a(s,u+32*g,i,8);}function al(i,s){var u,g=8;for(u=0;8>u;++u)g+=i[s+u-32]+i[s-1+32*u];mr(g>>4,i,s);}function ra(i,s){var u,g=4;for(u=0;8>u;++u)g+=i[s+u-32];mr(g>>3,i,s);}function ol(i,s){var u,g=4;for(u=0;8>u;++u)g+=i[s-1+32*u];mr(g>>3,i,s);}function za(i,s){mr(128,i,s);}function Kr(i,s,u){var g=i[s-u],b=i[s+0],w=3*(b-g)+ll[1020+i[s-2*u]-i[s+u]],y=Zo[112+(w+4>>3)];i[s-u]=Rn[255+g+Zo[112+(w+3>>3)]],i[s+0]=Rn[255+b-y];}function Ua(i,s,u,g){var b=i[s+0],w=i[s+u];return Kn[255+i[s-2*u]-i[s-u]]>g||Kn[255+w-b]>g}function _i(i,s,u,g){return 4*Kn[255+i[s-u]-i[s+0]]+Kn[255+i[s-2*u]-i[s+u]]<=g}function qa(i,s,u,g,b){var w=i[s-3*u],y=i[s-2*u],A=i[s-u],S=i[s+0],C=i[s+u],W=i[s+2*u],et=i[s+3*u];return 4*Kn[255+A-S]+Kn[255+y-C]>g?0:Kn[255+i[s-4*u]-w]<=b&&Kn[255+w-y]<=b&&Kn[255+y-A]<=b&&Kn[255+et-W]<=b&&Kn[255+W-C]<=b&&Kn[255+C-S]<=b}function ia(i,s,u,g){var b=2*g+1;for(g=0;16>g;++g)_i(i,s+g,u,b)&&Kr(i,s+g,u);}function Ha(i,s,u,g){var b=2*g+1;for(g=0;16>g;++g)_i(i,s+g*u,1,b)&&Kr(i,s+g*u,1);}function aa(i,s,u,g){var b;for(b=3;0<b;--b)ia(i,s+=4*u,u,g);}function Do(i,s,u,g){var b;for(b=3;0<b;--b)Ha(i,s+=4,u,g);}function Tr(i,s,u,g,b,w,y,A){for(w=2*w+1;0<b--;){if(qa(i,s,u,w,y))if(Ua(i,s,u,A))Kr(i,s,u);else {var S=i,C=s,W=u,et=S[C-2*W],F=S[C-W],Z=S[C+0],X=S[C+W],ht=S[C+2*W],Q=27*(pt=ll[1020+3*(Z-F)+ll[1020+et-X]])+63>>7,ct=18*pt+63>>7,pt=9*pt+63>>7;S[C-3*W]=Rn[255+S[C-3*W]+pt],S[C-2*W]=Rn[255+et+ct],S[C-W]=Rn[255+F+Q],S[C+0]=Rn[255+Z-Q],S[C+W]=Rn[255+X-ct],S[C+2*W]=Rn[255+ht-pt];}s+=g;}}function Br(i,s,u,g,b,w,y,A){for(w=2*w+1;0<b--;){if(qa(i,s,u,w,y))if(Ua(i,s,u,A))Kr(i,s,u);else {var S=i,C=s,W=u,et=S[C-W],F=S[C+0],Z=S[C+W],X=Zo[112+(4+(ht=3*(F-et))>>3)],ht=Zo[112+(ht+3>>3)],Q=X+1>>1;S[C-2*W]=Rn[255+S[C-2*W]+Q],S[C-W]=Rn[255+et+ht],S[C+0]=Rn[255+F-X],S[C+W]=Rn[255+Z-Q];}s+=g;}}function zo(i,s,u,g,b,w){Tr(i,s,u,1,16,g,b,w);}function Uo(i,s,u,g,b,w){Tr(i,s,1,u,16,g,b,w);}function qo(i,s,u,g,b,w){var y;for(y=3;0<y;--y)Br(i,s+=4*u,u,1,16,g,b,w);}function xi(i,s,u,g,b,w){var y;for(y=3;0<y;--y)Br(i,s+=4,1,u,16,g,b,w);}function Ho(i,s,u,g,b,w,y,A){Tr(i,s,b,1,8,w,y,A),Tr(u,g,b,1,8,w,y,A);}function h(i,s,u,g,b,w,y,A){Tr(i,s,1,b,8,w,y,A),Tr(u,g,1,b,8,w,y,A);}function m(i,s,u,g,b,w,y,A){Br(i,s+4*b,b,1,8,w,y,A),Br(u,g+4*b,b,1,8,w,y,A);}function E(i,s,u,g,b,w,y,A){Br(i,s+4,1,b,8,w,y,A),Br(u,g+4,1,b,8,w,y,A);}function D(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc";}function Y(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0;}function lt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0;}function vt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new rt,this.yc=new q;}function Ft(){this.xb=this.a=0,this.l=new Xi,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new vt,this.ab=0,this.gc=f(4,lt),this.Oc=0;}function Ct(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Xi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0;}function Kt(i,s,u,g,b,w,y){for(i=i==null?0:i[s+0],s=0;s<y;++s)b[w+s]=i+u[g+s]&255,i=b[w+s];}function te(i,s,u,g,b,w,y){var A;if(i==null)Kt(null,null,u,g,b,w,y);else for(A=0;A<y;++A)b[w+A]=i[s+A]+u[g+A]&255;}function pe(i,s,u,g,b,w,y){if(i==null)Kt(null,null,u,g,b,w,y);else {var A,S=i[s+0],C=S,W=S;for(A=0;A<y;++A)C=W+(S=i[s+A])-C,W=u[g+A]+(-256&C?0>C?0:255:C)&255,C=S,b[w+A]=W;}}function Je(i,s,u,g){var b=s.width,w=s.o;if(n(i!=null&&s!=null),0>u||0>=g||u+g>w)return null;if(!i.Cc){if(i.ga==null){var y;if(i.ga=new Ct,(y=i.ga==null)||(y=s.width*s.o,n(i.Gb.length==0),i.Gb=o(y),i.Uc=0,i.Gb==null?y=0:(i.mb=i.Gb,i.nb=i.Uc,i.rc=null,y=1),y=!y),!y){y=i.ga;var A=i.Fa,S=i.P,C=i.qc,W=i.mb,et=i.nb,F=S+1,Z=C-1,X=y.l;if(n(A!=null&&W!=null&&s!=null),ri[0]=null,ri[1]=Kt,ri[2]=te,ri[3]=pe,y.ca=W,y.tb=et,y.c=s.width,y.i=s.height,n(0<y.c&&0<y.i),1>=C)s=0;else if(y.$a=3&A[S+0],y.Z=A[S+0]>>2&3,y.Lc=A[S+0]>>4&3,S=A[S+0]>>6&3,0>y.$a||1<y.$a||4<=y.Z||1<y.Lc||S)s=0;else if(X.put=Vt,X.ac=cr,X.bc=Er,X.ma=y,X.width=s.width,X.height=s.height,X.Da=s.Da,X.v=s.v,X.va=s.va,X.j=s.j,X.o=s.o,y.$a)t:{n(y.$a==1),s=bi();e:for(;;){if(s==null){s=0;break t}if(n(y!=null),y.mc=s,s.c=y.c,s.i=y.i,s.l=y.l,s.l.ma=y,s.l.width=y.c,s.l.height=y.i,s.a=0,ut(s.m,A,F,Z),!dr(y.c,y.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&tr(s.s)?(y.ic=1,A=s.c*s.i,s.Ta=null,s.Ua=0,s.V=o(A),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(y.ic=0,s=wi(s,y.c)),!s))break e;s=1;break t}y.mc=null,s=0;}else s=Z>=y.c*y.i;y=!s;}if(y)return null;i.ga.Lc!=1?i.Ga=0:g=w-u;}n(i.ga!=null),n(u+g<=w);t:{if(s=(A=i.ga).c,w=A.l.o,A.$a==0){if(F=i.rc,Z=i.Vc,X=i.Fa,S=i.P+1+u*s,C=i.mb,W=i.nb+u*s,n(S<=i.P+i.qc),A.Z!=0)for(n(ri[A.Z]!=null),y=0;y<g;++y)ri[A.Z](F,Z,X,S,C,W,s),F=C,Z=W,W+=s,S+=s;else for(y=0;y<g;++y)r(C,W,X,S,s),F=C,Z=W,W+=s,S+=s;i.rc=F,i.Vc=Z;}else {if(n(A.mc!=null),s=u+g,n((y=A.mc)!=null),n(s<=y.i),y.C>=s)s=1;else if(A.ic||De(),A.ic){A=y.V,F=y.Ba,Z=y.c;var ht=y.i,Q=(X=1,S=y.$/Z,C=y.$%Z,W=y.m,et=y.s,y.$),ct=Z*ht,pt=Z*s,_t=et.wc,bt=Q<pt?ln(et,C,S):null;n(Q<=ct),n(s<=ht),n(tr(et));e:for(;;){for(;!W.h&&Q<pt;){if(C&_t||(bt=ln(et,C,S)),n(bt!=null),J(W),256>(ht=ze(bt.G[0],bt.H[0],W)))A[F+Q]=ht,++Q,++C>=Z&&(C=0,++S<=s&&!(S%16)&&er(y,S));else {if(!(280>ht)){X=0;break e}ht=Gn(ht-256,W);var Rt,Pt=ze(bt.G[4],bt.H[4],W);if(J(W),!(Q>=(Pt=Vn(Z,Pt=Gn(Pt,W)))&&ct-Q>=ht)){X=0;break e}for(Rt=0;Rt<ht;++Rt)A[F+Q+Rt]=A[F+Q+Rt-Pt];for(Q+=ht,C+=ht;C>=Z;)C-=Z,++S<=s&&!(S%16)&&er(y,S);Q<pt&&C&_t&&(bt=ln(et,C,S));}n(W.h==H(W));}er(y,S>s?s:S);break e}!X||W.h&&Q<ct?(X=0,y.a=W.h?5:3):y.$=Q,s=X;}else s=nr(y,y.V,y.Ba,y.c,y.i,s,$i);if(!s){g=0;break t}}u+g>=w&&(i.Cc=1),g=1;}if(!g)return null;if(i.Cc&&((g=i.ga)!=null&&(g.mc=null),i.ga=null,0<i.Ga))return alert("todo:WebPDequantizeLevels"),null}return i.nb+u*b}function Se(i,s,u,g,b,w){for(;0<b--;){var y,A=i,S=s+(u?1:0),C=i,W=s+(u?0:3);for(y=0;y<g;++y){var et=C[W+4*y];et!=255&&(et*=32897,A[S+4*y+0]=A[S+4*y+0]*et>>23,A[S+4*y+1]=A[S+4*y+1]*et>>23,A[S+4*y+2]=A[S+4*y+2]*et>>23);}s+=w;}}function Ne(i,s,u,g,b){for(;0<g--;){var w;for(w=0;w<u;++w){var y=i[s+2*w+0],A=15&(C=i[s+2*w+1]),S=4369*A,C=(240&C|C>>4)*S>>16;i[s+2*w+0]=(240&y|y>>4)*S>>16&240|(15&y|y<<4)*S>>16>>4&15,i[s+2*w+1]=240&C|A;}s+=b;}}function Oe(i,s,u,g,b,w,y,A){var S,C,W=255;for(C=0;C<b;++C){for(S=0;S<g;++S){var et=i[s+S];w[y+4*S]=et,W&=et;}s+=u,y+=A;}return W!=255}function je(i,s,u,g,b){var w;for(w=0;w<b;++w)u[g+w]=i[s+w]>>8;}function De(){Xa=Se,Oh=Ne,Th=Oe,Bh=je;}function gn(i,s,u){M[i]=function(g,b,w,y,A,S,C,W,et,F,Z,X,ht,Q,ct,pt,_t){var bt,Rt=_t-1>>1,Pt=A[S+0]|C[W+0]<<16,re=et[F+0]|Z[X+0]<<16;n(g!=null);var Ot=3*Pt+re+131074>>2;for(s(g[b+0],255&Ot,Ot>>16,ht,Q),w!=null&&(Ot=3*re+Pt+131074>>2,s(w[y+0],255&Ot,Ot>>16,ct,pt)),bt=1;bt<=Rt;++bt){var ue=A[S+bt]|C[W+bt]<<16,en=et[F+bt]|Z[X+bt]<<16,ie=Pt+ue+re+en+524296,Tt=ie+2*(ue+re)>>3;Ot=Tt+Pt>>1,Pt=(ie=ie+2*(Pt+en)>>3)+ue>>1,s(g[b+2*bt-1],255&Ot,Ot>>16,ht,Q+(2*bt-1)*u),s(g[b+2*bt-0],255&Pt,Pt>>16,ht,Q+(2*bt-0)*u),w!=null&&(Ot=ie+re>>1,Pt=Tt+en>>1,s(w[y+2*bt-1],255&Ot,Ot>>16,ct,pt+(2*bt-1)*u),s(w[y+2*bt+0],255&Pt,Pt>>16,ct,pt+(2*bt+0)*u)),Pt=ue,re=en;}1&_t||(Ot=3*Pt+re+131074>>2,s(g[b+_t-1],255&Ot,Ot>>16,ht,Q+(_t-1)*u),w!=null&&(Ot=3*re+Pt+131074>>2,s(w[y+_t-1],255&Ot,Ot>>16,ct,pt+(_t-1)*u)));};}function Rr(){Xn[$o]=Qu,Xn[Yo]=Vh,Xn[Uh]=t1,Xn[Ko]=Zh,Xn[Xo]=$h,Xn[hl]=Yh,Xn[qh]=e1,Xn[fl]=Vh,Xn[cl]=Zh,Xn[Jo]=$h,Xn[ul]=Yh;}function Wa(i){return i&-16384?0>i?0:255:i>>Kh}function Ai(i,s){return Wa((19077*i>>8)+(26149*s>>8)-14234)}function Ni(i,s,u){return Wa((19077*i>>8)-(6419*s>>8)-(13320*u>>8)+8708)}function Xr(i,s){return Wa((19077*i>>8)+(33050*s>>8)-17685)}function Li(i,s,u,g,b){g[b+0]=Ai(i,u),g[b+1]=Ni(i,s,u),g[b+2]=Xr(i,s);}function oa(i,s,u,g,b){g[b+0]=Xr(i,s),g[b+1]=Ni(i,s,u),g[b+2]=Ai(i,u);}function sa(i,s,u,g,b){var w=Ni(i,s,u);s=w<<3&224|Xr(i,s)>>3,g[b+0]=248&Ai(i,u)|w>>5,g[b+1]=s;}function vn(i,s,u,g,b){var w=240&Xr(i,s)|15;g[b+0]=240&Ai(i,u)|Ni(i,s,u)>>4,g[b+1]=w;}function Si(i,s,u,g,b){g[b+0]=255,Li(i,s,u,g,b+1);}function ki(i,s,u,g,b){oa(i,s,u,g,b),g[b+3]=255;}function Ga(i,s,u,g,b){Li(i,s,u,g,b),g[b+3]=255;}function br(i,s,u){M[i]=function(g,b,w,y,A,S,C,W,et){for(var F=W+(-2&et)*u;W!=F;)s(g[b+0],w[y+0],A[S+0],C,W),s(g[b+1],w[y+0],A[S+0],C,W+u),b+=2,++y,++S,W+=2*u;1&et&&s(g[b+0],w[y+0],A[S+0],C,W);};}function An(i,s,u){return u==0?i==0?s==0?6:5:s==0?4:0:u}function Wo(i,s,u,g,b){switch(i>>>30){case 3:Mr(s,u,g,b,0);break;case 2:ei(s,u,g,b);break;case 1:mn(s,u,g,b);}}function la(i,s){var u,g,b=s.M,w=s.Nb,y=i.oc,A=i.pc+40,S=i.oc,C=i.pc+584,W=i.oc,et=i.pc+600;for(u=0;16>u;++u)y[A+32*u-1]=129;for(u=0;8>u;++u)S[C+32*u-1]=129,W[et+32*u-1]=129;for(0<b?y[A-1-32]=S[C-1-32]=W[et-1-32]=129:(a(y,A-32-1,127,21),a(S,C-32-1,127,9),a(W,et-32-1,127,9)),g=0;g<i.za;++g){var F=s.ya[s.aa+g];if(0<g){for(u=-1;16>u;++u)r(y,A+32*u-4,y,A+32*u+12,4);for(u=-1;8>u;++u)r(S,C+32*u-4,S,C+32*u+4,4),r(W,et+32*u-4,W,et+32*u+4,4);}var Z=i.Gd,X=i.Hd+g,ht=F.ad,Q=F.Hc;if(0<b&&(r(y,A-32,Z[X].y,0,16),r(S,C-32,Z[X].f,0,8),r(W,et-32,Z[X].ea,0,8)),F.Za){var ct=y,pt=A-32+16;for(0<b&&(g>=i.za-1?a(ct,pt,Z[X].y[15],4):r(ct,pt,Z[X+1].y,0,4)),u=0;4>u;u++)ct[pt+128+u]=ct[pt+256+u]=ct[pt+384+u]=ct[pt+0+u];for(u=0;16>u;++u,Q<<=2)ct=y,pt=A+Jh[u],ir[F.Ob[u]](ct,pt),Wo(Q,ht,16*+u,ct,pt);}else if(ct=An(g,b,F.Ob[0]),ni[ct](y,A),Q!=0)for(u=0;16>u;++u,Q<<=2)Wo(Q,ht,16*+u,y,A+Jh[u]);for(u=F.Gc,ct=An(g,b,F.Dd),Dr[ct](S,C),Dr[ct](W,et),Q=ht,ct=S,pt=C,255&(F=0|u)&&(170&F?da(Q,256,ct,pt):yr(Q,256,ct,pt)),F=W,Q=et,255&(u>>=8)&&(170&u?da(ht,320,F,Q):yr(ht,320,F,Q)),b<i.Ub-1&&(r(Z[X].y,0,y,A+480,16),r(Z[X].f,0,S,C+224,8),r(Z[X].ea,0,W,et+224,8)),u=8*w*i.B,Z=i.sa,X=i.ta+16*g+16*w*i.R,ht=i.qa,F=i.ra+8*g+u,Q=i.Ha,ct=i.Ia+8*g+u,u=0;16>u;++u)r(Z,X+u*i.R,y,A+32*u,16);for(u=0;8>u;++u)r(ht,F+u*i.B,S,C+32*u,8),r(Q,ct+u*i.B,W,et+32*u,8);}}function Go(i,s,u,g,b,w,y,A,S){var C=[0],W=[0],et=0,F=S!=null?S.kd:0,Z=S??new Y;if(i==null||12>u)return 7;Z.data=i,Z.w=s,Z.ha=u,s=[s],u=[u],Z.gb=[Z.gb];t:{var X=s,ht=u,Q=Z.gb;if(n(i!=null),n(ht!=null),n(Q!=null),Q[0]=0,12<=ht[0]&&!e(i,X[0],"RIFF")){if(e(i,X[0]+8,"WEBP")){Q=3;break t}var ct=Dt(i,X[0]+4);if(12>ct||4294967286<ct){Q=3;break t}if(F&&ct>ht[0]-8){Q=7;break t}Q[0]=ct,X[0]+=12,ht[0]-=12;}Q=0;}if(Q!=0)return Q;for(ct=0<Z.gb[0],u=u[0];;){t:{var pt=i;ht=s,Q=u;var _t=C,bt=W,Rt=X=[0];if((Ot=et=[et])[0]=0,8>Q[0])Q=7;else {if(!e(pt,ht[0],"VP8X")){if(Dt(pt,ht[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Pt=Dt(pt,ht[0]+8),re=1+St(pt,ht[0]+12);if(2147483648<=re*(pt=1+St(pt,ht[0]+15))){Q=3;break t}Rt!=null&&(Rt[0]=Pt),_t!=null&&(_t[0]=re),bt!=null&&(bt[0]=pt),ht[0]+=18,Q[0]-=18,Ot[0]=1;}Q=0;}}if(et=et[0],X=X[0],Q!=0)return Q;if(ht=!!(2&X),!ct&&et)return 3;if(w!=null&&(w[0]=!!(16&X)),y!=null&&(y[0]=ht),A!=null&&(A[0]=0),y=C[0],X=W[0],et&&ht&&S==null){Q=0;break}if(4>u){Q=7;break}if(ct&&et||!ct&&!et&&!e(i,s[0],"ALPH")){u=[u],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{Pt=i,Q=s,ct=u;var Ot=Z.gb;_t=Z.na,bt=Z.P,Rt=Z.Sa,re=22,n(Pt!=null),n(ct!=null),pt=Q[0];var ue=ct[0];for(n(_t!=null),n(Rt!=null),_t[0]=null,bt[0]=null,Rt[0]=0;;){if(Q[0]=pt,ct[0]=ue,8>ue){Q=7;break t}var en=Dt(Pt,pt+4);if(4294967286<en){Q=3;break t}var ie=8+en+1&-2;if(re+=ie,0<Ot&&re>Ot){Q=3;break t}if(!e(Pt,pt,"VP8 ")||!e(Pt,pt,"VP8L")){Q=0;break t}if(ue[0]<ie){Q=7;break t}e(Pt,pt,"ALPH")||(_t[0]=Pt,bt[0]=pt+8,Rt[0]=en),pt+=ie,ue-=ie;}}if(u=u[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],Q!=0)break}u=[u],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(Ot=i,Q=s,ct=u,_t=Z.gb[0],bt=Z.Ja,Rt=Z.xa,Pt=Q[0],pt=!e(Ot,Pt,"VP8 "),re=!e(Ot,Pt,"VP8L"),n(Ot!=null),n(ct!=null),n(bt!=null),n(Rt!=null),8>ct[0])Q=7;else {if(pt||re){if(Ot=Dt(Ot,Pt+4),12<=_t&&Ot>_t-12){Q=3;break t}if(F&&Ot>ct[0]-8){Q=7;break t}bt[0]=Ot,Q[0]+=8,ct[0]-=8,Rt[0]=re;}else Rt[0]=5<=ct[0]&&Ot[Pt+0]==47&&!(Ot[Pt+4]>>5),bt[0]=ct[0];Q=0;}if(u=u[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],Q!=0)break;if(4294967286<Z.Ja)return 3;if(A==null||ht||(A[0]=Z.xa?2:1),y=[y],X=[X],Z.xa){if(5>u){Q=7;break}A=y,F=X,ht=w,i==null||5>u?i=0:5<=u&&i[s+0]==47&&!(i[s+4]>>5)?(ct=[0],Ot=[0],_t=[0],ut(bt=new B,i,s,u),Ir(bt,ct,Ot,_t)?(A!=null&&(A[0]=ct[0]),F!=null&&(F[0]=Ot[0]),ht!=null&&(ht[0]=_t[0]),i=1):i=0):i=0;}else {if(10>u){Q=7;break}A=X,i==null||10>u||!Bo(i,s+3,u-3)?i=0:(F=i[s+0]|i[s+1]<<8|i[s+2]<<16,ht=16383&(i[s+7]<<8|i[s+6]),i=16383&(i[s+9]<<8|i[s+8]),1&F||3<(F>>1&7)||!(F>>4&1)||F>>5>=Z.Ja||!ht||!i?i=0:(y&&(y[0]=ht),A&&(A[0]=i),i=1));}if(!i||(y=y[0],X=X[0],et&&(C[0]!=y||W[0]!=X)))return 3;S!=null&&(S[0]=Z,S.offset=s-S.w,n(4294967286>s-S.w),n(S.offset==S.ha-u));break}return Q==0||Q==7&&et&&S==null?(w!=null&&(w[0]|=Z.na!=null&&0<Z.na.length),g!=null&&(g[0]=y),b!=null&&(b[0]=X),0):Q}function Yn(i,s,u){var g=s.width,b=s.height,w=0,y=0,A=g,S=b;if(s.Da=i!=null&&0<i.Da,s.Da&&(A=i.cd,S=i.bd,w=i.v,y=i.j,11>u||(w&=-2,y&=-2),0>w||0>y||0>=A||0>=S||w+A>g||y+S>b))return 0;if(s.v=w,s.j=y,s.va=w+A,s.o=y+S,s.U=A,s.T=S,s.da=i!=null&&0<i.da,s.da){if(!Ht(A,S,u=[i.ib],w=[i.hb]))return 0;s.ib=u[0],s.hb=w[0];}return s.ob=i!=null&&i.ob,s.Kb=i==null||!i.Sd,s.da&&(s.ob=s.ib<3*g/4&&s.hb<3*b/4,s.Kb=0),1}function Pi(i){if(i==null)return 2;if(11>i.S){var s=i.f.RGBA;s.fb+=(i.height-1)*s.A,s.A=-s.A;}else s=i.f.kb,i=i.height,s.O+=(i-1)*s.fa,s.fa=-s.fa,s.N+=(i-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(i-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(i-1)*s.lb,s.lb=-s.lb);return 0}function Va(i,s,u,g){if(g==null||0>=i||0>=s)return 2;if(u!=null){if(u.Da){var b=u.cd,w=u.bd,y=-2&u.v,A=-2&u.j;if(0>y||0>A||0>=b||0>=w||y+b>i||A+w>s)return 2;i=b,s=w;}if(u.da){if(!Ht(i,s,b=[u.ib],w=[u.hb]))return 2;i=b[0],s=w[0];}}g.width=i,g.height=s;t:{var S=g.width,C=g.height;if(i=g.S,0>=S||0>=C||!(i>=$o&&13>i))i=2;else {if(0>=g.Rd&&g.sd==null){y=w=b=s=0;var W=(A=S*Qh[i])*C;if(11>i||(w=(C+1)/2*(s=(S+1)/2),i==12&&(y=(b=S)*C)),(C=o(W+2*w+y))==null){i=1;break t}g.sd=C,11>i?((S=g.f.RGBA).eb=C,S.fb=0,S.A=A,S.size=W):((S=g.f.kb).y=C,S.O=0,S.fa=A,S.Fd=W,S.f=C,S.N=0+W,S.Ab=s,S.Cd=w,S.ea=C,S.W=0+W+w,S.Db=s,S.Ed=w,i==12&&(S.F=C,S.J=0+W+2*w),S.Tc=y,S.lb=b);}if(s=1,b=g.S,w=g.width,y=g.height,b>=$o&&13>b)if(11>b)i=g.f.RGBA,s&=(A=Math.abs(i.A))*(y-1)+w<=i.size,s&=A>=w*Qh[b],s&=i.eb!=null;else {i=g.f.kb,A=(w+1)/2,W=(y+1)/2,S=Math.abs(i.fa),C=Math.abs(i.Ab);var et=Math.abs(i.Db),F=Math.abs(i.lb),Z=F*(y-1)+w;s&=S*(y-1)+w<=i.Fd,s&=C*(W-1)+A<=i.Cd,s=(s&=et*(W-1)+A<=i.Ed)&S>=w&C>=A&et>=A,s&=i.y!=null,s&=i.f!=null,s&=i.ea!=null,b==12&&(s&=F>=w,s&=Z<=i.Tc,s&=i.F!=null);}else s=0;i=s?0:2;}}return i!=0||u!=null&&u.fd&&(i=Pi(g)),i}var ha=64,Ei=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Za=24,Nn=32,In=8,fa=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Et("Predictor0","PredictorAdd0"),M.Predictor0=function(){return 4278190080},M.Predictor1=function(i){return i},M.Predictor2=function(i,s,u){return s[u+0]},M.Predictor3=function(i,s,u){return s[u+1]},M.Predictor4=function(i,s,u){return s[u-1]},M.Predictor5=function(i,s,u){return zt(zt(i,s[u+1]),s[u+0])},M.Predictor6=function(i,s,u){return zt(i,s[u-1])},M.Predictor7=function(i,s,u){return zt(i,s[u+0])},M.Predictor8=function(i,s,u){return zt(s[u-1],s[u+0])},M.Predictor9=function(i,s,u){return zt(s[u+0],s[u+1])},M.Predictor10=function(i,s,u){return zt(zt(i,s[u-1]),zt(s[u+0],s[u+1]))},M.Predictor11=function(i,s,u){var g=s[u+0];return 0>=Jt(g>>24&255,i>>24&255,(s=s[u-1])>>24&255)+Jt(g>>16&255,i>>16&255,s>>16&255)+Jt(g>>8&255,i>>8&255,s>>8&255)+Jt(255&g,255&i,255&s)?g:i},M.Predictor12=function(i,s,u){var g=s[u+0];return (ye((i>>24&255)+(g>>24&255)-((s=s[u-1])>>24&255))<<24|ye((i>>16&255)+(g>>16&255)-(s>>16&255))<<16|ye((i>>8&255)+(g>>8&255)-(s>>8&255))<<8|ye((255&i)+(255&g)-(255&s)))>>>0},M.Predictor13=function(i,s,u){var g=s[u-1];return (he((i=zt(i,s[u+0]))>>24&255,g>>24&255)<<24|he(i>>16&255,g>>16&255)<<16|he(i>>8&255,g>>8&255)<<8|he(255&i,255&g))>>>0};var Jr=M.PredictorAdd0;M.PredictorAdd1=ce,Et("Predictor2","PredictorAdd2"),Et("Predictor3","PredictorAdd3"),Et("Predictor4","PredictorAdd4"),Et("Predictor5","PredictorAdd5"),Et("Predictor6","PredictorAdd6"),Et("Predictor7","PredictorAdd7"),Et("Predictor8","PredictorAdd8"),Et("Predictor9","PredictorAdd9"),Et("Predictor10","PredictorAdd10"),Et("Predictor11","PredictorAdd11"),Et("Predictor12","PredictorAdd12"),Et("Predictor13","PredictorAdd13");var Qr=M.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",function(i){return i>>8&255},function(i){return i}),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(i){return i},function(i){return i>>8&255});var ca,Ii=M.ColorIndexInverseTransform,Qe=M.MapARGB,sl=M.VP8LColorIndexInverseTransformAlpha,wr=M.MapAlpha,rr=M.VP8LPredictorsAdd=[];rr.length=16,(M.VP8LPredictors=[]).length=16,(M.VP8LPredictorsAdd_C=[]).length=16,(M.VP8LPredictors_C=[]).length=16;var Ci,$a,Ya,ua,Fi,Oi,ti,Mr,ei,da,mn,yr,Ie,Ce,Ge,tn,jr,Ka,pa,Vo,Eh,Ih,Ch,Fh,Xa,Oh,Th,Bh,Rh=o(511),Mh=o(2041),jh=o(225),Dh=o(767),zh=0,ll=Mh,Zo=jh,Rn=Dh,Kn=Rh,$o=0,Yo=1,Uh=2,Ko=3,Xo=4,hl=5,qh=6,fl=7,cl=8,Jo=9,ul=10,Du=[2,3,7],zu=[3,3,11],Hh=[280,256,256,256,40],Uu=[0,1,1,1,0],qu=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Hu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Wu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Gu=8,dl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],pl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ja=null,Vu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Zu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Wh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],$u=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Yu=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Ku=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Xu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ni=[],ir=[],Dr=[],Ju=1,Gh=2,ri=[],Xn=[];gn("UpsampleRgbLinePair",Li,3),gn("UpsampleBgrLinePair",oa,3),gn("UpsampleRgbaLinePair",Ga,4),gn("UpsampleBgraLinePair",ki,4),gn("UpsampleArgbLinePair",Si,4),gn("UpsampleRgba4444LinePair",vn,2),gn("UpsampleRgb565LinePair",sa,2);var Qu=M.UpsampleRgbLinePair,t1=M.UpsampleBgrLinePair,Vh=M.UpsampleRgbaLinePair,Zh=M.UpsampleBgraLinePair,$h=M.UpsampleArgbLinePair,Yh=M.UpsampleRgba4444LinePair,e1=M.UpsampleRgb565LinePair,Qo=16,ts=1<<Qo-1,Qa=-227,gl=482,Kh=6,Xh=0,r1=o(256),i1=o(256),a1=o(256),o1=o(256),s1=o(gl-Qa),l1=o(gl-Qa);br("YuvToRgbRow",Li,3),br("YuvToBgrRow",oa,3),br("YuvToRgbaRow",Ga,4),br("YuvToBgraRow",ki,4),br("YuvToArgbRow",Si,4),br("YuvToRgba4444Row",vn,2),br("YuvToRgb565Row",sa,2);var Jh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],es=[0,2,8],h1=[8,7,6,4,4,2,2,2,1,1,1,1],f1=1;this.WebPDecodeRGBA=function(i,s,u,g,b){var w=Yo,y=new D,A=new le;y.ba=A,A.S=w,A.width=[A.width],A.height=[A.height];var S=A.width,C=A.height,W=new Gt;if(W==null||i==null)var et=2;else n(W!=null),et=Go(i,s,u,W.width,W.height,W.Pd,W.Qd,W.format,null);if(et!=0?S=0:(S!=null&&(S[0]=W.width[0]),C!=null&&(C[0]=W.height[0]),S=1),S){A.width=A.width[0],A.height=A.height[0],g!=null&&(g[0]=A.width),b!=null&&(b[0]=A.height);t:{if(g=new Xi,(b=new Y).data=i,b.w=s,b.ha=u,b.kd=1,s=[0],n(b!=null),((i=Go(b.data,b.w,b.ha,null,null,null,s,null,b))==0||i==7)&&s[0]&&(i=4),(s=i)==0){if(n(y!=null),g.data=b.data,g.w=b.w+b.offset,g.ha=b.ha-b.offset,g.put=Vt,g.ac=cr,g.bc=Er,g.ma=y,b.xa){if((i=bi())==null){y=1;break t}if((function(F,Z){var X=[0],ht=[0],Q=[0];e:for(;;){if(F==null)return 0;if(Z==null)return F.a=2,0;if(F.l=Z,F.a=0,ut(F.m,Z.data,Z.w,Z.ha),!Ir(F.m,X,ht,Q)){F.a=3;break e}if(F.xb=Gh,Z.width=X[0],Z.height=ht[0],!dr(X[0],ht[0],1,F,null))break e;return 1}return n(F.a!=0),0})(i,g)){if(g=(s=Va(g.width,g.height,y.Oa,y.ba))==0){e:{g=i;n:for(;;){if(g==null){g=0;break e}if(n(g.s.yc!=null),n(g.s.Ya!=null),n(0<g.s.Wb),n((u=g.l)!=null),n((b=u.ma)!=null),g.xb!=0){if(g.ca=b.ba,g.tb=b.tb,n(g.ca!=null),!Yn(b.Oa,u,Ko)){g.a=2;break n}if(!wi(g,u.width)||u.da)break n;if((u.da||Zt(g.ca.S))&&De(),11>g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&De()),g.Pb&&0<g.s.ua&&g.s.vb.X==null&&!P(g.s.vb,g.s.Wa.Xa)){g.a=1;break n}g.xb=0;}if(!nr(g,g.V,g.Ba,g.c,g.i,u.o,Zr))break n;b.Dc=g.Ma,g=1;break e}n(g.a!=0),g=0;}g=!g;}g&&(s=i.a);}else s=i.a;}else {if((i=new Ws)==null){y=1;break t}if(i.Fa=b.na,i.P=b.P,i.qc=b.Sa,gr(i,g)){if((s=Va(g.width,g.height,y.Oa,y.ba))==0){if(i.Aa=0,u=y.Oa,n((b=i)!=null),u!=null){if(0<(S=0>(S=u.Md)?0:100<S?255:255*S/100)){for(C=W=0;4>C;++C)12>(et=b.pb[C]).lc&&(et.ia=S*h1[0>et.lc?0:et.lc]>>3),W|=et.ia;W&&(alert("todo:VP8InitRandom"),b.ia=1);}b.Ga=u.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0);}(function(F,Z){if(F==null)return 0;if(Z==null)return Xe(F,2,"NULL VP8Io parameter in VP8Decode().");if(!F.cb&&!gr(F,Z))return 0;if(n(F.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(F.L=0);var X=es[F.L];if(F.L==2?(F.yb=0,F.zb=0):(F.yb=Z.v-X>>4,F.zb=Z.j-X>>4,0>F.yb&&(F.yb=0),0>F.zb&&(F.zb=0)),F.Va=Z.o+15+X>>4,F.Hb=Z.va+15+X>>4,F.Hb>F.za&&(F.Hb=F.za),F.Va>F.Ub&&(F.Va=F.Ub),0<F.L){var ht=F.ed;for(X=0;4>X;++X){var Q;if(F.Qa.Cb){var ct=F.Qa.Lb[X];F.Qa.Fb||(ct+=ht.Tb);}else ct=ht.Tb;for(Q=0;1>=Q;++Q){var pt=F.gd[X][Q],_t=ct;if(ht.Pc&&(_t+=ht.vd[0],Q&&(_t+=ht.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var bt=_t;0<ht.wb&&(bt=4<ht.wb?bt>>2:bt>>1)>9-ht.wb&&(bt=9-ht.wb),1>bt&&(bt=1),pt.dd=bt,pt.tc=2*_t+bt,pt.ld=40<=_t?2:15<=_t?1:0;}else pt.tc=0;pt.La=Q;}}}X=0;}else Xe(F,6,"Frame setup failed"),X=F.a;if(X=X==0){if(X){F.$c=0,0<F.Aa||(F.Ic=f1);e:{X=F.Ic,ht=4*(bt=F.za);var Rt=32*bt,Pt=bt+1,re=0<F.L?bt*(0<F.Aa?2:1):0,Ot=(F.Aa==2?2:1)*bt;if((pt=ht+832+(Q=3*(16*X+es[F.L])/2*Rt)+(ct=F.Fa!=null&&0<F.Fa.length?F.Kc.c*F.Kc.i:0))!=pt)X=0;else {if(pt>F.Vb){if(F.Vb=0,F.Ec=o(pt),F.Fc=0,F.Ec==null){X=Xe(F,1,"no memory during frame initialization.");break e}F.Vb=pt;}pt=F.Ec,_t=F.Fc,F.Ac=pt,F.Bc=_t,_t+=ht,F.Gd=f(Rt,Oo),F.Hd=0,F.rb=f(Pt+1,Ba),F.sb=1,F.wa=re?f(re,$n):null,F.Y=0,F.D.Nb=0,F.D.wa=F.wa,F.D.Y=F.Y,0<F.Aa&&(F.D.Y+=bt),n(true),F.oc=pt,F.pc=_t,_t+=832,F.ya=f(Ot,Ra),F.aa=0,F.D.ya=F.ya,F.D.aa=F.aa,F.Aa==2&&(F.D.aa+=bt),F.R=16*bt,F.B=8*bt,bt=(Rt=es[F.L])*F.R,Rt=Rt/2*F.B,F.sa=pt,F.ta=_t+bt,F.qa=F.sa,F.ra=F.ta+16*X*F.R+Rt,F.Ha=F.qa,F.Ia=F.ra+8*X*F.B+Rt,F.$c=0,_t+=Q,F.mb=ct?pt:null,F.nb=ct?_t:null,n(_t+ct<=F.Fc+F.Vb),Ma(F),a(F.Ac,F.Bc,0,ht),X=1;}}if(X){if(Z.ka=0,Z.y=F.sa,Z.O=F.ta,Z.f=F.qa,Z.N=F.ra,Z.ea=F.Ha,Z.Vd=F.Ia,Z.fa=F.R,Z.Rc=F.B,Z.F=null,Z.J=0,!zh){for(X=-255;255>=X;++X)Rh[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)Mh[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)jh[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)Dh[255+X]=0>X?0:255<X?255:X;zh=1;}ti=Mo,Mr=Gs,da=Vs,mn=Zs,yr=vr,ei=Ro,Ie=zo,Ce=Uo,Ge=Ho,tn=h,jr=qo,Ka=xi,pa=m,Vo=E,Eh=ia,Ih=Ha,Ch=aa,Fh=Do,ir[0]=tl,ir[1]=ea,ir[2]=Js,ir[3]=Qs,ir[4]=el,ir[5]=Fr,ir[6]=nl,ir[7]=Or,ir[8]=il,ir[9]=rl,ni[0]=jo,ni[1]=$s,ni[2]=Ys,ni[3]=Ks,ni[4]=Yr,ni[5]=Xs,ni[6]=yi,Dr[0]=al,Dr[1]=ja,Dr[2]=na,Dr[3]=Da,Dr[4]=ol,Dr[5]=ra,Dr[6]=za,X=1;}else X=0;}X&&(X=(function(ue,en){for(ue.M=0;ue.M<ue.Va;++ue.M){var ie,Tt=ue.Jc[ue.M&ue.Xb],Nt=ue.m,Ve=ue;for(ie=0;ie<Ve.za;++ie){var ee=Nt,ge=Ve,Te=ge.Ac,fn=ge.Bc+4*ie,Ln=ge.zc,Ue=ge.ya[ge.aa+ie];if(ge.Qa.Bb?Ue.$b=gt(ee,ge.Pa.jb[0])?2+gt(ee,ge.Pa.jb[2]):gt(ee,ge.Pa.jb[1]):Ue.$b=0,ge.kc&&(Ue.Ad=gt(ee,ge.Bd)),Ue.Za=!gt(ee,145)+0,Ue.Za){var bn=Ue.Ob,Sn=0;for(ge=0;4>ge;++ge){var nn,me=Ln[0+ge];for(nn=0;4>nn;++nn){me=Yu[Te[fn+nn]][me];for(var xe=Wh[gt(ee,me[0])];0<xe;)xe=Wh[2*xe+gt(ee,me[xe])];me=-xe,Te[fn+nn]=me;}r(bn,Sn,Te,fn,4),Sn+=4,Ln[0+ge]=me;}}else me=gt(ee,156)?gt(ee,128)?1:3:gt(ee,163)?2:0,Ue.Ob[0]=me,a(Te,fn,me,4),a(Ln,0,me,4);Ue.Dd=gt(ee,142)?gt(ee,114)?gt(ee,183)?1:3:2:0;}if(Ve.m.Ka)return Xe(ue,7,"Premature end-of-partition0 encountered.");for(;ue.ja<ue.za;++ue.ja){if(Ve=Tt,ee=(Nt=ue).rb[Nt.sb-1],Te=Nt.rb[Nt.sb+Nt.ja],ie=Nt.ya[Nt.aa+Nt.ja],fn=Nt.kc?ie.Ad:0)ee.la=Te.la=0,ie.Za||(ee.Na=Te.Na=0),ie.Hc=0,ie.Gc=0,ie.ia=0;else {var qe,Ae;if(ee=Te,Te=Ve,fn=Nt.Pa.Xc,Ln=Nt.ya[Nt.aa+Nt.ja],Ue=Nt.pb[Ln.$b],ge=Ln.ad,bn=0,Sn=Nt.rb[Nt.sb-1],me=nn=0,a(ge,bn,0,384),Ln.Za)var cn=0,ar=fn[3];else {xe=o(16);var Ze=ee.Na+Sn.Na;if(Ze=Ja(Te,fn[1],Ze,Ue.Eb,0,xe,0),ee.Na=Sn.Na=(0<Ze)+0,1<Ze)ti(xe,0,ge,bn);else {var Cn=xe[0]+3>>3;for(xe=0;256>xe;xe+=16)ge[bn+xe]=Cn;}cn=1,ar=fn[0];}var ke=15&ee.la,rn=15&Sn.la;for(xe=0;4>xe;++xe){var Mn=1&rn;for(Cn=Ae=0;4>Cn;++Cn)ke=ke>>1|(Mn=(Ze=Ja(Te,ar,Ze=Mn+(1&ke),Ue.Sc,cn,ge,bn))>cn)<<7,Ae=Ae<<2|(3<Ze?3:1<Ze?2:ge[bn+0]!=0),bn+=16;ke>>=4,rn=rn>>1|Mn<<7,nn=(nn<<8|Ae)>>>0;}for(ar=ke,cn=rn>>4,qe=0;4>qe;qe+=2){for(Ae=0,ke=ee.la>>4+qe,rn=Sn.la>>4+qe,xe=0;2>xe;++xe){for(Mn=1&rn,Cn=0;2>Cn;++Cn)Ze=Mn+(1&ke),ke=ke>>1|(Mn=0<(Ze=Ja(Te,fn[2],Ze,Ue.Qc,0,ge,bn)))<<3,Ae=Ae<<2|(3<Ze?3:1<Ze?2:ge[bn+0]!=0),bn+=16;ke>>=2,rn=rn>>1|Mn<<5;}me|=Ae<<4*qe,ar|=ke<<4<<qe,cn|=(240&rn)<<qe;}ee.la=ar,Sn.la=cn,Ln.Hc=nn,Ln.Gc=me,Ln.ia=43690&me?0:Ue.ia,fn=!(nn|me);}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[ie.$b][ie.Za],Nt.wa[Nt.Y+Nt.ja].La|=!fn),Ve.Ka)return Xe(ue,7,"Premature end-of-file encountered.")}if(Ma(ue),Nt=en,Ve=1,ie=(Tt=ue).D,ee=0<Tt.L&&Tt.M>=Tt.zb&&Tt.M<=Tt.Va,Tt.Aa==0)e:{if(ie.M=Tt.M,ie.uc=ee,la(Tt,ie),Ve=1,ie=(Ae=Tt.D).Nb,ee=(me=es[Tt.L])*Tt.R,Te=me/2*Tt.B,xe=16*ie*Tt.R,Cn=8*ie*Tt.B,fn=Tt.sa,Ln=Tt.ta-ee+xe,Ue=Tt.qa,ge=Tt.ra-Te+Cn,bn=Tt.Ha,Sn=Tt.Ia-Te+Cn,rn=(ke=Ae.M)==0,nn=ke>=Tt.Va-1,Tt.Aa==2&&la(Tt,Ae),Ae.uc)for(Mn=(Ze=Tt).D.M,n(Ze.D.uc),Ae=Ze.yb;Ae<Ze.Hb;++Ae){cn=Ae,ar=Mn;var kn=(jn=(un=Ze).D).Nb;qe=un.R;var jn=jn.wa[jn.Y+cn],Dn=un.sa,Fn=un.ta+16*kn*qe+16*cn,zn=jn.dd,Fe=jn.tc;if(Fe!=0)if(n(3<=Fe),un.L==1)0<cn&&Ih(Dn,Fn,qe,Fe+4),jn.La&&Fh(Dn,Fn,qe,Fe),0<ar&&Eh(Dn,Fn,qe,Fe+4),jn.La&&Ch(Dn,Fn,qe,Fe);else {var Un=un.B,or=un.qa,Ti=un.ra+8*kn*Un+8*cn,zr=un.Ha,un=un.Ia+8*kn*Un+8*cn;kn=jn.ld,0<cn&&(Ce(Dn,Fn,qe,Fe+4,zn,kn),tn(or,Ti,zr,un,Un,Fe+4,zn,kn)),jn.La&&(Ka(Dn,Fn,qe,Fe,zn,kn),Vo(or,Ti,zr,un,Un,Fe,zn,kn)),0<ar&&(Ie(Dn,Fn,qe,Fe+4,zn,kn),Ge(or,Ti,zr,un,Un,Fe+4,zn,kn)),jn.La&&(jr(Dn,Fn,qe,Fe,zn,kn),pa(or,Ti,zr,un,Un,Fe,zn,kn));}}if(Tt.ia&&alert("todo:DitherRow"),Nt.put!=null){if(Ae=16*ke,ke=16*(ke+1),rn?(Nt.y=Tt.sa,Nt.O=Tt.ta+xe,Nt.f=Tt.qa,Nt.N=Tt.ra+Cn,Nt.ea=Tt.Ha,Nt.W=Tt.Ia+Cn):(Ae-=me,Nt.y=fn,Nt.O=Ln,Nt.f=Ue,Nt.N=ge,Nt.ea=bn,Nt.W=Sn),nn||(ke-=me),ke>Nt.o&&(ke=Nt.o),Nt.F=null,Nt.J=null,Tt.Fa!=null&&0<Tt.Fa.length&&Ae<ke&&(Nt.J=Je(Tt,Nt,Ae,ke-Ae),Nt.F=Tt.mb,Nt.F==null&&Nt.F.length==0)){Ve=Xe(Tt,3,"Could not decode alpha data.");break e}Ae<Nt.j&&(me=Nt.j-Ae,Ae=Nt.j,n(!(1&me)),Nt.O+=Tt.R*me,Nt.N+=Tt.B*(me>>1),Nt.W+=Tt.B*(me>>1),Nt.F!=null&&(Nt.J+=Nt.width*me)),Ae<ke&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=Ae-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=ke-Ae,Ve=Nt.put(Nt));}ie+1!=Tt.Ic||nn||(r(Tt.sa,Tt.ta-ee,fn,Ln+16*Tt.R,ee),r(Tt.qa,Tt.ra-Te,Ue,ge+8*Tt.B,Te),r(Tt.Ha,Tt.Ia-Te,bn,Sn+8*Tt.B,Te));}if(!Ve)return Xe(ue,6,"Output aborted.")}return 1})(F,Z)),Z.bc!=null&&Z.bc(Z),X&=1;}return X?(F.cb=0,X):0})(i,g)||(s=i.a);}}else s=i.a;}s==0&&y.Oa!=null&&y.Oa.fd&&(s=Pi(y.ba));}y=s;}w=y!=0?null:11>w?A.f.RGBA.eb:A.f.kb.y;}else w=null;return w};var Qh=[3,4,3,4,4,2,2,4,4,4,2,1,1];};function d(M,tt){for(var L="",O=0;O<4;O++)L+=String.fromCharCode(M[tt++]);return L}function v(M,tt){return M[tt+0]|M[tt+1]<<8}function x(M,tt){return (M[tt+0]|M[tt+1]<<8|M[tt+2]<<16)>>>0}function N(M,tt){return (M[tt+0]|M[tt+1]<<8|M[tt+2]<<16|M[tt+3]<<24)>>>0}new c;var p=[0],T=[0],I=[],R=new c,k=t,G=(function(M,tt){var L={},O=0,q=false,U=0,rt=0;if(L.frames=[],!(function(_,B){for(var j=0;j<4;j++)if(_[B+j]!="RIFF".charCodeAt(j))return true;return false})(M,tt)){for(N(M,tt+=4),tt+=8;tt<M.length;){var st=d(M,tt),ft=N(M,tt+=4);tt+=4;var nt=ft+(1&ft);switch(st){case "VP8 ":case "VP8L":L.frames[O]===void 0&&(L.frames[O]={}),(wt=L.frames[O]).src_off=q?rt:tt-8,wt.src_size=U+ft+8,O++,q&&(q=false,U=0,rt=0);break;case "VP8X":(wt=L.header={}).feature_flags=M[tt];var ut=tt+4;wt.canvas_width=1+x(M,ut),ut+=3,wt.canvas_height=1+x(M,ut),ut+=3;break;case "ALPH":q=true,U=nt+8,rt=tt-8;break;case "ANIM":(wt=L.header).bgcolor=N(M,tt),ut=tt+4,wt.loop_count=v(M,ut),ut+=2;break;case "ANMF":var At,wt;(wt=L.frames[O]={}).offset_x=2*x(M,tt),tt+=3,wt.offset_y=2*x(M,tt),tt+=3,wt.width=1+x(M,tt),tt+=3,wt.height=1+x(M,tt),tt+=3,wt.duration=x(M,tt),tt+=3,At=M[tt++],wt.dispose=1&At,wt.blend=At>>1&1;}st!="ANMF"&&(tt+=nt);}return L}})(k,0);G.response=k,G.rgbaoutput=true,G.dataurl=false;var V=G.header?G.header:null,z=G.frames?G.frames:null;if(V){V.loop_counter=V.loop_count,p=[V.canvas_height],T=[V.canvas_width];for(var it=0;it<z.length&&z[it].blend!=0;it++);}var mt=z[0],dt=R.WebPDecodeRGBA(k,mt.src_off,mt.src_size,T,p);mt.rgba=dt,mt.imgwidth=T[0],mt.imgheight=p[0];for(var K=0;K<T[0]*p[0]*4;K++)I[K]=dt[K];return this.width=T,this.height=p,this.data=I,this}function ed(){var t,n=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(n));t=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj");}function nd(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R");}((function(t){var n,e,r,a,o$1,f,l,c,d,v=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||false,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||false,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new c,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new f,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new f,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new x(this),n=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o$1=this.internal.getVerticalCoordinate,f=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,d=new v;}]);var x=function(_){Object.defineProperty(this,"canvas",{get:function(){return {parentNode:false,style:false}}});var B=_;Object.defineProperty(this,"pdf",{get:function(){return B}});var j=false;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return j},set:function(P){j=!!P;}});var H=false;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(P){H=!!P;}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(P){isNaN(P)||($=P);}});var J=0;Object.defineProperty(this,"posY",{get:function(){return J},set:function(P){isNaN(P)||(J=P);}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(P){var Lt;typeof P=="number"?Lt=[P,P,P,P]:((Lt=new Array(4))[0]=P[0],Lt[1]=P.length>=2?P[1]:Lt[0],Lt[2]=P.length>=3?P[2]:Lt[0],Lt[3]=P.length>=4?P[3]:Lt[1]),d.margin=Lt;}});var at=false;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(P){at=P;}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(P){ot=P;}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(P){gt=P;}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(P){P instanceof v&&(d=P);}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(P){d.path=P;}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(P){xt=P;}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var Lt;Lt=N(P),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a});}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(P){var Lt=N(P);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b));}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(P){["butt","round","square"].indexOf(P)!==-1&&(this.ctx.lineCap=P,this.pdf.setLineCap(P));}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(P){isNaN(P)||(this.ctx.lineWidth=P,this.pdf.setLineWidth(P));}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(P){["bevel","round","miter"].indexOf(P)!==-1&&(this.ctx.lineJoin=P,this.pdf.setLineJoin(P));}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(P){isNaN(P)||(this.ctx.miterLimit=P,this.pdf.setMiterLimit(P));}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(P){this.ctx.textBaseline=P;}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(P){["right","end","center","left","start"].indexOf(P)!==-1&&(this.ctx.textAlign=P);}});var kt=null,St=null,Dt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Dt},set:function(P){kt=null,St=null,Dt=P;}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(P){var Lt;if(this.ctx.font=P,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(P))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],yt=Lt[4];Lt[5];var Wt=Lt[6],Et=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(Et==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:Et==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var qt=(function(Mt){var We,ve,oe=[],se=Mt.trim();if(se==="")return _h;if(se in cu)return [cu[se]];for(;se!=="";){switch(ve=null,We=(se=du(se)).charAt(0)){case '"':case "'":ve=Y5(se.substring(1),We);break;default:ve=K5(se);}if(ve===null||(oe.push(ve[0]),(se=du(ve[1]))!==""&&se.charAt(0)!==","))return _h;se=se.replace(/^,/,"");}return oe})(Wt);if(this.fontFaces){var zt=(function(Mt,We){var ve=Mt.getFontList(),oe=JSON.stringify(ve);if(kt===null||St!==oe){var se=(function(Be){var Ut=[];return Object.keys(Be).forEach(function(Ee){Be[Ee].forEach(function(Zt){var Qt=null;switch(Zt){case "bold":Qt={family:Ee,weight:"bold"};break;case "italic":Qt={family:Ee,style:"italic"};break;case "bolditalic":Qt={family:Ee,weight:"bold",style:"italic"};break;case "":case "normal":Qt={family:Ee};}Qt!==null&&(Qt.ref={name:Ee,style:Zt},Ut.push(Qt));});}),Ut})(ve);kt=(function(Be){for(var Ut={},Ee=0;Ee<Be.length;++Ee){var Zt=yh(Be[Ee]),Qt=Zt.family,Re=Zt.stretch,le=Zt.style,Gt=Zt.weight;Ut[Qt]=Ut[Qt]||{},Ut[Qt][Re]=Ut[Qt][Re]||{},Ut[Qt][Re][le]=Ut[Qt][Re][le]||{},Ut[Qt][Re][le][Gt]=Zt;}return Ut})(se.concat(We)),St=oe;}return kt})(this.pdf,this.fontFaces),ye=qt.map(function(Mt){return {family:Mt,stretch:"normal",weight:Ht,style:ae}}),he=(function(Mt,We,ve){for(var oe=(ve=ve||{}).defaultFontFamily||"times",se=Object.assign({},$5,ve.genericFontFamilies||{}),Be=null,Ut=null,Ee=0;Ee<We.length;++Ee)if(se[(Be=yh(We[Ee])).family]&&(Be.family=se[Be.family]),Mt.hasOwnProperty(Be.family)){Ut=Mt[Be.family];break}if(!(Ut=Ut||Mt[oe]))throw new Error("Could not find a font-family for the rule '"+uu(Be)+"' and default family '"+oe+"'.");if(Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];var Re=kh[Zt],le=Re<=kh.normal?-1:1,Gt=fu(Qt,Tu,Re,le);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Zt);return Gt})(Be.stretch,Ut),Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];for(var Re=Ou[Zt],le=0;le<Re.length;++le)if(Qt[Re[le]])return Qt[Re[le]];throw new Error("Could not find a matching font-style for "+Zt)})(Be.style,Ut),!(Ut=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];if(Zt===400&&Qt[500])return Qt[500];if(Zt===500&&Qt[400])return Qt[400];var Re=Z5[Zt],le=fu(Qt,Bu,Re,Zt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Zt);return le})(Be.weight,Ut)))throw new Error("Failed to resolve a font for the rule '"+uu(Be)+"'.");return Ut})(zt,ye);this.pdf.setFont(he.ref.name,he.ref.style);}else {var Jt="";(Ht==="bold"||parseInt(Ht,10)>=700||ae==="bold")&&(Jt="bold"),ae==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var ce="",fe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Bt=0;Bt<qt.length;Bt++){if(this.pdf.internal.getFont(qt[Bt],Jt,{noFallback:true,disableWarning:true})!==void 0){ce=qt[Bt];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(qt[Bt],"bold",{noFallback:true,disableWarning:true})!==void 0)ce=qt[Bt],Jt="bold";else if(this.pdf.internal.getFont(qt[Bt],"normal",{noFallback:true,disableWarning:true})!==void 0){ce=qt[Bt],Jt="normal";break}}if(ce===""){for(var ne=0;ne<qt.length;ne++)if(fe[qt[ne]]){ce=fe[qt[ne]];break}}ce=ce===""?"Times":ce,this.pdf.setFont(ce,Jt);}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(P){this.ctx.globalCompositeOperation=P;}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(P){this.ctx.globalAlpha=P;}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(P){this.ctx.lineDashOffset=P,wt.call(this);}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(P){this.ctx.lineDash=P,wt.call(this);}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(P){this.ctx.ignoreClearRect=!!P;}});};x.prototype.setLineDash=function(_){this.lineDash=_;},x.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},x.prototype.fill=function(){z.call(this,"fill",false);},x.prototype.stroke=function(){z.call(this,"stroke",false);},x.prototype.beginPath=function(){this.path=[{type:"begin"}];},x.prototype.moveTo=function(_,B){if(isNaN(_)||isNaN(B))throw Pe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var j=this.ctx.transform.applyToPoint(new f(_,B));this.path.push({type:"mt",x:j.x,y:j.y}),this.ctx.lastPoint=new f(_,B);},x.prototype.closePath=function(){var _=new f(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&o(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){_=new f(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new f(_.x,_.y);},x.prototype.lineTo=function(_,B){if(isNaN(_)||isNaN(B))throw Pe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var j=this.ctx.transform.applyToPoint(new f(_,B));this.path.push({type:"lt",x:j.x,y:j.y}),this.ctx.lastPoint=new f(j.x,j.y);},x.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),z.call(this,null,true);},x.prototype.quadraticCurveTo=function(_,B,j,H){if(isNaN(j)||isNaN(H)||isNaN(_)||isNaN(B))throw Pe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new f(j,H)),J=this.ctx.transform.applyToPoint(new f(_,B));this.path.push({type:"qct",x1:J.x,y1:J.y,x:$.x,y:$.y}),this.ctx.lastPoint=new f($.x,$.y);},x.prototype.bezierCurveTo=function(_,B,j,H,$,J){if(isNaN($)||isNaN(J)||isNaN(_)||isNaN(B)||isNaN(j)||isNaN(H))throw Pe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var at=this.ctx.transform.applyToPoint(new f($,J)),ot=this.ctx.transform.applyToPoint(new f(_,B)),gt=this.ctx.transform.applyToPoint(new f(j,H));this.path.push({type:"bct",x1:ot.x,y1:ot.y,x2:gt.x,y2:gt.y,x:at.x,y:at.y}),this.ctx.lastPoint=new f(at.x,at.y);},x.prototype.arc=function(_,B,j,H,$,J){if(isNaN(_)||isNaN(B)||isNaN(j)||isNaN(H)||isNaN($))throw Pe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(J=!!J,!this.ctx.transform.isIdentity){var at=this.ctx.transform.applyToPoint(new f(_,B));_=at.x,B=at.y;var ot=this.ctx.transform.applyToPoint(new f(0,j)),gt=this.ctx.transform.applyToPoint(new f(0,0));j=Math.sqrt(Math.pow(ot.x-gt.x,2)+Math.pow(ot.y-gt.y,2));}Math.abs($-H)>=2*Math.PI&&(H=0,$=2*Math.PI),this.path.push({type:"arc",x:_,y:B,radius:j,startAngle:H,endAngle:$,counterclockwise:J});},x.prototype.arcTo=function(_,B,j,H,$){throw new Error("arcTo not implemented.")},x.prototype.rect=function(_,B,j,H){if(isNaN(_)||isNaN(B)||isNaN(j)||isNaN(H))throw Pe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,B),this.lineTo(_+j,B),this.lineTo(_+j,B+H),this.lineTo(_,B+H),this.lineTo(_,B),this.lineTo(_+j,B),this.lineTo(_,B);},x.prototype.fillRect=function(_,B,j,H){if(isNaN(_)||isNaN(B)||isNaN(j)||isNaN(H))throw Pe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,B,j,H),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin);}},x.prototype.strokeRect=function(_,B,j,H){if(isNaN(_)||isNaN(B)||isNaN(j)||isNaN(H))throw Pe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");T.call(this)||(this.beginPath(),this.rect(_,B,j,H),this.stroke());},x.prototype.clearRect=function(_,B,j,H){if(isNaN(_)||isNaN(B)||isNaN(j)||isNaN(H))throw Pe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,B,j,H));},x.prototype.save=function(_){_=typeof _!="boolean"||_;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("q");if(this.pdf.setPage(B),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new v(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H;}},x.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("Q");this.pdf.setPage(B),_&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset);},x.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var N=function(_){var B,j,H,$;if(_.isCanvasGradient===true&&(_=_.getColor()),!_)return {r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))B=0,j=0,H=0,$=0;else {var J=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(J!==null)B=parseInt(J[1]),j=parseInt(J[2]),H=parseInt(J[3]),$=1;else if((J=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)B=parseInt(J[1]),j=parseInt(J[2]),H=parseInt(J[3]),$=parseFloat(J[4]);else {if($=1,typeof _=="string"&&_.charAt(0)!=="#"){var at=new Su(_);_=at.ok?at.toHex():"#000000";}_.length===4?(B=_.substring(1,2),B+=B,j=_.substring(2,3),j+=j,H=_.substring(3,4),H+=H):(B=_.substring(1,3),j=_.substring(3,5),H=_.substring(5,7)),B=parseInt(B,16),j=parseInt(j,16),H=parseInt(H,16);}}return {r:B,g:j,b:H,a:$,style:_}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},T=function(){return !!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};x.prototype.fillText=function(_,B,j,H){if(isNaN(B)||isNaN(j)||typeof _!="string")throw Pe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!p.call(this)){var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;O.call(this,{text:_,x:B,y:j,scale:J,angle:$,align:this.textAlign,maxWidth:H});}},x.prototype.strokeText=function(_,B,j,H){if(isNaN(B)||isNaN(j)||typeof _!="string")throw Pe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!T.call(this)){H=isNaN(H)?void 0:H;var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;O.call(this,{text:_,x:B,y:j,scale:J,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:H});}},x.prototype.measureText=function(_){if(typeof _!="string")throw Pe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,j=this.pdf.internal.scaleFactor,H=B.internal.getFontSize(),$=B.getStringUnitWidth(_)*H/B.internal.scaleFactor;return new function(J){var at=(J=J||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:$*=Math.round(96*j/72*1e4)/1e4})},x.prototype.scale=function(_,B){if(isNaN(_)||isNaN(B))throw Pe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var j=new c(_,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(j);},x.prototype.rotate=function(_){if(isNaN(_))throw Pe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new c(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(B);},x.prototype.translate=function(_,B){if(isNaN(_)||isNaN(B))throw Pe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var j=new c(1,0,0,1,_,B);this.ctx.transform=this.ctx.transform.multiply(j);},x.prototype.transform=function(_,B,j,H,$,J){if(isNaN(_)||isNaN(B)||isNaN(j)||isNaN(H)||isNaN($)||isNaN(J))throw Pe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var at=new c(_,B,j,H,$,J);this.ctx.transform=this.ctx.transform.multiply(at);},x.prototype.setTransform=function(_,B,j,H,$,J){_=isNaN(_)?1:_,B=isNaN(B)?0:B,j=isNaN(j)?0:j,H=isNaN(H)?1:H,$=isNaN($)?0:$,J=isNaN(J)?0:J,this.ctx.transform=new c(_,B,j,H,$,J);};var I=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};x.prototype.drawImage=function(_,B,j,H,$,J,at,ot,gt){var xt=this.pdf.getImageProperties(_),kt=1,St=1,Dt=1,P=1;H!==void 0&&ot!==void 0&&(Dt=ot/H,P=gt/$,kt=xt.width/H*ot/H,St=xt.height/$*gt/$),J===void 0&&(J=B,at=j,B=0,j=0),H!==void 0&&ot===void 0&&(ot=H,gt=$),H===void 0&&ot===void 0&&(ot=xt.width,gt=xt.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,yt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(J-B*Dt,at-j*P,H*kt,$*St));if(this.autoPaging){for(var Wt,Et=R.call(this,yt),qt=[],zt=0;zt<Et.length;zt+=1)qt.indexOf(Et[zt])===-1&&qt.push(Et[zt]);V(qt);for(var ye=qt[0],he=qt[qt.length-1],Jt=ye;Jt<he+1;Jt++){this.pdf.setPage(Jt);var ce=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Jt===1?this.posY+this.margin[0]:this.margin[0],Bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Mt=Jt===1?0:Bt+(Jt-2)*ne;if(this.ctx.clip_path.length!==0){var We=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(Wt,this.posX+this.margin[3],-Mt+fe+this.ctx.prevPageLastElemOffset),it.call(this,"fill",true),this.path=We;}var ve=JSON.parse(JSON.stringify(yt));ve=G([ve],this.posX+this.margin[3],-Mt+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Jt>ye||Jt<he)&&I.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ce,ne,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",ve.x,ve.y,ve.w,ve.h,null,null,ae),oe&&this.pdf.restoreGraphicsState();}}else this.pdf.addImage(_,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,ae);};var R=function(_,B,j){var H=[];B=B||this.pdf.internal.pageSize.width,j=j||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case "mt":case "lt":H.push(Math.floor((_.y+$)/j)+1);break;case "arc":H.push(Math.floor((_.y+$-_.radius)/j)+1),H.push(Math.floor((_.y+$+_.radius)/j)+1);break;case "qct":var J=ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);H.push(Math.floor((J.y+$)/j)+1),H.push(Math.floor((J.y+J.h+$)/j)+1);break;case "bct":var at=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);H.push(Math.floor((at.y+$)/j)+1),H.push(Math.floor((at.y+at.h+$)/j)+1);break;case "rect":H.push(Math.floor((_.y+$)/j)+1),H.push(Math.floor((_.y+_.h+$)/j)+1);}for(var ot=0;ot<H.length;ot+=1)for(;this.pdf.internal.getNumberOfPages()<H[ot];)k.call(this);return H},k=function(){var _=this.fillStyle,B=this.strokeStyle,j=this.font,H=this.lineCap,$=this.lineWidth,J=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=B,this.font=j,this.lineCap=H,this.lineWidth=$,this.lineJoin=J;},G=function(_,B,j){for(var H=0;H<_.length;H++)switch(_[H].type){case "bct":_[H].x2+=B,_[H].y2+=j;case "qct":_[H].x1+=B,_[H].y1+=j;default:_[H].x+=B,_[H].y+=j;}return _},V=function(_){return _.sort(function(B,j){return B-j})},z=function(_,B){var j=this.fillStyle,H=this.strokeStyle,$=this.lineCap,J=this.lineWidth,at=Math.abs(J*this.ctx.transform.scaleX),ot=this.lineJoin;if(this.autoPaging){for(var gt,xt,kt=JSON.parse(JSON.stringify(this.path)),St=JSON.parse(JSON.stringify(this.path)),Dt=[],P=0;P<St.length;P++)if(St[P].x!==void 0)for(var Lt=R.call(this,St[P]),ae=0;ae<Lt.length;ae+=1)Dt.indexOf(Lt[ae])===-1&&Dt.push(Lt[ae]);for(var Ht=0;Ht<Dt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<Dt[Ht];)k.call(this);V(Dt);for(var yt=Dt[0],Wt=Dt[Dt.length-1],Et=yt;Et<Wt+1;Et++){this.pdf.setPage(Et),this.fillStyle=j,this.strokeStyle=H,this.lineCap=$,this.lineWidth=at,this.lineJoin=ot;var qt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zt=Et===1?this.posY+this.margin[0]:this.margin[0],ye=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],he=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jt=Et===1?0:ye+(Et-2)*he;if(this.ctx.clip_path.length!==0){var ce=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(gt,this.posX+this.margin[3],-Jt+zt+this.ctx.prevPageLastElemOffset),it.call(this,_,true),this.path=ce;}if(xt=JSON.parse(JSON.stringify(kt)),this.path=G(xt,this.posX+this.margin[3],-Jt+zt+this.ctx.prevPageLastElemOffset),B===false||Et===0){var fe=(Et>yt||Et<Wt)&&I.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qt,he,null).clip().discardPath()),it.call(this,_,B),fe&&this.pdf.restoreGraphicsState();}this.lineWidth=J;}this.path=kt;}else this.lineWidth=at,it.call(this,_,B),this.lineWidth=J;},it=function(_,B){if((_!=="stroke"||B||!T.call(this))&&(_==="stroke"||B||!p.call(this))){for(var j,H,$=[],J=this.path,at=0;at<J.length;at++){var ot=J[at];switch(ot.type){case "begin":$.push({begin:true});break;case "close":$.push({close:true});break;case "mt":$.push({start:ot,deltas:[],abs:[]});break;case "lt":var gt=$.length;if(J[at-1]&&!isNaN(J[at-1].x)&&(j=[ot.x-J[at-1].x,ot.y-J[at-1].y],gt>0)){for(;gt>=0;gt--)if($[gt-1].close!==true&&$[gt-1].begin!==true){$[gt-1].deltas.push(j),$[gt-1].abs.push(ot);break}}break;case "bct":j=[ot.x1-J[at-1].x,ot.y1-J[at-1].y,ot.x2-J[at-1].x,ot.y2-J[at-1].y,ot.x-J[at-1].x,ot.y-J[at-1].y],$[$.length-1].deltas.push(j);break;case "qct":var xt=J[at-1].x+2/3*(ot.x1-J[at-1].x),kt=J[at-1].y+2/3*(ot.y1-J[at-1].y),St=ot.x+2/3*(ot.x1-ot.x),Dt=ot.y+2/3*(ot.y1-ot.y),P=ot.x,Lt=ot.y;j=[xt-J[at-1].x,kt-J[at-1].y,St-J[at-1].x,Dt-J[at-1].y,P-J[at-1].x,Lt-J[at-1].y],$[$.length-1].deltas.push(j);break;case "arc":$.push({deltas:[],abs:[],arc:true}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(ot);}}H=B?null:_==="stroke"?"stroke":"fill";for(var ae=false,Ht=0;Ht<$.length;Ht++)if($[Ht].arc)for(var yt=$[Ht].abs,Wt=0;Wt<yt.length;Wt++){var Et=yt[Wt];Et.type==="arc"?K.call(this,Et.x,Et.y,Et.radius,Et.startAngle,Et.endAngle,Et.counterclockwise,void 0,B,!ae):q.call(this,Et.x,Et.y),ae=true;}else if($[Ht].close===true)this.pdf.internal.out("h"),ae=false;else if($[Ht].begin!==true){var qt=$[Ht].start.x,zt=$[Ht].start.y;U.call(this,$[Ht].deltas,qt,zt),ae=true;}H&&M.call(this,H),B&&tt.call(this);}},mt=function(_){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,j=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case "bottom":return _-j;case "top":return _+B-j;case "hanging":return _+B-2*j;case "middle":return _+B/2-j;default:return _}},dt=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};x.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(B,j){this.colorStops.push([B,j]);},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=true,_},x.prototype.createPattern=function(){return this.createLinearGradient()},x.prototype.createRadialGradient=function(){return this.createLinearGradient()};var K=function(_,B,j,H,$,J,at,ot,gt){for(var xt=st.call(this,j,H,$,J),kt=0;kt<xt.length;kt++){var St=xt[kt];kt===0&&(gt?L.call(this,St.x1+_,St.y1+B):q.call(this,St.x1+_,St.y1+B)),rt.call(this,_,B,St.x2,St.y2,St.x3,St.y3,St.x4,St.y4);}ot?tt.call(this):M.call(this,at);},M=function(_){switch(_){case "stroke":this.pdf.internal.out("S");break;case "fill":this.pdf.internal.out("f");}},tt=function(){this.pdf.clip(),this.pdf.discardPath();},L=function(_,B){this.pdf.internal.out(e(_)+" "+r(B)+" m");},O=function(_){var B;switch(_.align){case "right":case "end":B="right";break;case "center":B="center";break;default:B="left";}var j,H,$,J=this.pdf.getTextDimensions(_.text),at=mt.call(this,_.y),ot=dt.call(this,at)-J.h,gt=this.ctx.transform.applyToPoint(new f(_.x,at));if(this.autoPaging){var xt=this.ctx.transform.decompose(),kt=new c;kt=(kt=(kt=kt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale);for(var St=this.ctx.transform.applyToRectangle(new l(_.x,at,J.w,J.h)),Dt=kt.applyToRectangle(new l(_.x,ot,J.w,J.h)),P=R.call(this,Dt),Lt=[],ae=0;ae<P.length;ae+=1)Lt.indexOf(P[ae])===-1&&Lt.push(P[ae]);V(Lt);for(var Ht=Lt[0],yt=Lt[Lt.length-1],Wt=Ht;Wt<yt+1;Wt++){this.pdf.setPage(Wt);var Et=Wt===1?this.posY+this.margin[0]:this.margin[0],qt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],zt=this.pdf.internal.pageSize.height-this.margin[2],ye=zt-this.margin[0],he=this.pdf.internal.pageSize.width-this.margin[1],Jt=he-this.margin[3],ce=Wt===1?0:qt+(Wt-2)*ye;if(this.ctx.clip_path.length!==0){var fe=this.path;j=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(j,this.posX+this.margin[3],-1*ce+Et),it.call(this,"fill",true),this.path=fe;}var Bt=G([JSON.parse(JSON.stringify(Dt))],this.posX+this.margin[3],-ce+Et+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*_.scale),$=this.lineWidth,this.lineWidth=$*_.scale);var ne=this.autoPaging!=="text";if(ne||Bt.y+Bt.h<=zt){if(ne||Bt.y>=Et&&Bt.x<=he){var Mt=ne?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||he-Bt.x)[0],We=G([JSON.parse(JSON.stringify(St))],this.posX+this.margin[3],-ce+Et+this.ctx.prevPageLastElemOffset)[0],ve=ne&&(Wt>Ht||Wt<yt)&&I.call(this);ve&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,ye,null).clip().discardPath()),this.pdf.text(Mt,We.x,We.y,{angle:_.angle,align:B,renderingMode:_.renderingMode}),ve&&this.pdf.restoreGraphicsState();}}else Bt.y<zt&&(this.ctx.prevPageLastElemOffset+=zt-Bt.y);_.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=$);}}else _.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*_.scale),$=this.lineWidth,this.lineWidth=$*_.scale),this.pdf.text(_.text,gt.x+this.posX,gt.y+this.posY,{angle:_.angle,align:B,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=$);},q=function(_,B,j,H){j=j||0,H=H||0,this.pdf.internal.out(e(_+j)+" "+r(B+H)+" l");},U=function(_,B,j){return this.pdf.lines(_,B,j,null,null)},rt=function(_,B,j,H,$,J,at,ot){this.pdf.internal.out([n(a(j+_)),n(o$1(H+B)),n(a($+_)),n(o$1(J+B)),n(a(at+_)),n(o$1(ot+B)),"c"].join(" "));},st=function(_,B,j,H){for(var $=2*Math.PI,J=Math.PI/2;B>j;)B-=$;var at=Math.abs(j-B);at<$&&H&&(at=$-at);for(var ot=[],gt=H?-1:1,xt=B;at>1e-5;){var kt=xt+gt*Math.min(at,J);ot.push(ft.call(this,_,xt,kt)),at-=Math.abs(kt-xt),xt=kt;}return ot},ft=function(_,B,j){var H=(j-B)/2,$=_*Math.cos(H),J=_*Math.sin(H),at=$,ot=-J,gt=at*at+ot*ot,xt=gt+at*$+ot*J,kt=4/3*(Math.sqrt(2*gt*xt)-xt)/(at*J-ot*$),St=at-kt*ot,Dt=ot+kt*at,P=St,Lt=-Dt,ae=H+B,Ht=Math.cos(ae),yt=Math.sin(ae);return {x1:_*Math.cos(B),y1:_*Math.sin(B),x2:St*Ht-Dt*yt,y2:St*yt+Dt*Ht,x3:P*Ht-Lt*yt,y3:P*yt+Lt*Ht,x4:_*Math.cos(j),y4:_*Math.sin(j)}},nt=function(_){return 180*_/Math.PI},ut=function(_,B,j,H,$,J){var at=_+.5*(j-_),ot=B+.5*(H-B),gt=$+.5*(j-$),xt=J+.5*(H-J),kt=Math.min(_,$,at,gt),St=Math.max(_,$,at,gt),Dt=Math.min(B,J,ot,xt),P=Math.max(B,J,ot,xt);return new l(kt,Dt,St-kt,P-Dt)},At=function(_,B,j,H,$,J,at,ot){var gt,xt,kt,St,Dt,P,Lt,ae,Ht,yt,Wt,Et,qt,zt,ye=j-_,he=H-B,Jt=$-j,ce=J-H,fe=at-$,Bt=ot-J;for(xt=0;xt<41;xt++)Ht=(Lt=(kt=_+(gt=xt/40)*ye)+gt*((Dt=j+gt*Jt)-kt))+gt*(Dt+gt*($+gt*fe-Dt)-Lt),yt=(ae=(St=B+gt*he)+gt*((P=H+gt*ce)-St))+gt*(P+gt*(J+gt*Bt-P)-ae),xt==0?(Wt=Ht,Et=yt,qt=Ht,zt=yt):(Wt=Math.min(Wt,Ht),Et=Math.min(Et,yt),qt=Math.max(qt,Ht),zt=Math.max(zt,yt));return new l(Math.round(Wt),Math.round(Et),Math.round(qt-Wt),Math.round(zt-Et))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,B,j=(_=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:B}));this.prevLineDash!==j&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=j);}};}))(jt.API),(function(t){var n=function(f){var l,c,d,v,x,N,p,T,I,R;for(c=[],d=0,v=(f+=l="\0\0\0\0".slice(f.length%4||4)).length;v>d;d+=4)(x=(f.charCodeAt(d)<<24)+(f.charCodeAt(d+1)<<16)+(f.charCodeAt(d+2)<<8)+f.charCodeAt(d+3))!==0?(N=(x=((x=((x=((x=(x-(R=x%85))/85)-(I=x%85))/85)-(T=x%85))/85)-(p=x%85))/85)%85,c.push(N+33,p+33,T+33,I+33,R+33)):c.push(122);return (function(k,G){for(var V=G;V>0;V--)k.pop();})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},e=function(f){var l,c,d,v,x,N=String,p="length",T=255,I="charCodeAt",R="slice",k="replace";for(f[R](-2),f=f[R](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),d=[],v=0,x=(f+=l="uuuuu"[R](f[p]%5||5))[p];x>v;v+=5)c=52200625*(f[I](v)-33)+614125*(f[I](v+1)-33)+7225*(f[I](v+2)-33)+85*(f[I](v+3)-33)+(f[I](v+4)-33),d.push(T&c>>24,T&c>>16,T&c>>8,T&c);return (function(G,V){for(var z=V;z>0;z--)G.pop();})(d,l[p]),N.fromCharCode.apply(N,d)},r=function(f){return f.split("").map(function(l){return ("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(f){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),l.test(f)===false)return "";for(var c="",d=0;d<f.length;d+=2)c+=String.fromCharCode("0x"+(f[d]+f[d+1]));return c},o=function(f){for(var l=new Uint8Array(f.length),c=f.length;c--;)l[c]=f.charCodeAt(c);return (l=fs(l)).reduce(function(d,v){return d+String.fromCharCode(v)},"")};t.processDataByFilters=function(f,l){var c=0,d=f||"",v=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case "ASCII85Decode":case "/ASCII85Decode":d=e(d),v.push("/ASCII85Encode");break;case "ASCII85Encode":case "/ASCII85Encode":d=n(d),v.push("/ASCII85Decode");break;case "ASCIIHexDecode":case "/ASCIIHexDecode":d=a(d),v.push("/ASCIIHexEncode");break;case "ASCIIHexEncode":case "/ASCIIHexEncode":d=r(d),v.push("/ASCIIHexDecode");break;case "FlateEncode":case "/FlateEncode":d=o(d),v.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return {data:d,reverseChain:v.reverse().join(" ")}};})(jt.API),(function(t){t.loadFile=function(n,e,r){return (function(a,o,f){o=o!==false,f=typeof f=="function"?f:function(){};var l=void 0;try{l=(function(c,d,v){var x=new XMLHttpRequest,N=0,p=function(T){var I=T.length,R=[],k=String.fromCharCode;for(N=0;N<I;N+=1)R.push(k(255&T.charCodeAt(N)));return R.join("")};if(x.open("GET",c,!d),x.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(x.onload=function(){x.status===200?v(p(this.responseText)):v(void 0);}),x.send(null),d&&x.status===200)return p(x.responseText)})(a,o,f);}catch(c){}return l})(n,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile;})(jt.API),(function(t){function n(){return (Yt.html2canvas?Promise.resolve(Yt.html2canvas):import('./chunk-0DOc6Eih.js')).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return (Yt.DOMPurify?Promise.resolve(Yt.DOMPurify):import('./chunk-PK-OtAFD.js')).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var c=o(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},a=function(l,c){var d=document.createElement(l);for(var v in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[v]=c.style[v];return d},o$1=function l(c,d){for(var v=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(false),x=c.firstChild;x;x=x.nextSibling)d!==true&&x.nodeType===1&&x.nodeName==="SCRIPT"||v.appendChild(l(x,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(v.width=c.width,v.height=c.height,v.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(v.value=c.value),v.addEventListener("load",function(){v.scrollTop=c.scrollTop,v.scrollLeft=c.scrollLeft;},true)),v},f=function l(c){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),v=l.convert(Promise.resolve(),d);return (v=v.setProgress(1,l,1,[l])).set(c)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(l,c){return l.__proto__=c||f.prototype,l},f.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:true,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},f.prototype.from=function(l,c){return this.then(function(){switch(c=c||(function(d){switch(r(d)){case "string":return "string";case "element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return "unknown"}})(l),c){case "string":return this.then(e).then(function(d){return this.set({src:a("div",{innerHTML:l,dompurify:d})})});case "element":return this.set({src:l});case "canvas":return this.set({canvas:l});case "img":return this.set({img:l});default:return this.error("Unknown source type.")}})},f.prototype.to=function(l){switch(l){case "container":return this.toContainer();case "canvas":return this.toCanvas();case "img":return this.toImg();case "pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=o$1(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px";})},f.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay);})},f.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(c){var d=this.opt.jsPDF,v=this.opt.fontFaces,x=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,N=Object.assign({async:true,allowTaint:true,scale:x,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:true,proxy:null,removeContainer:true,foreignObjectRendering:false,useCORS:false},this.opt.html2canvas);if(delete N.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=v,v)for(var p=0;p<v.length;++p){var T=v[p],I=T.src.find(function(R){return R.format==="truetype"});I&&d.addFont(I.url,T.ref.name,T.ref.style);}return N.windowHeight=N.windowHeight||0,N.windowHeight=N.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):N.windowHeight,d.context2d.save(true),c(this.prop.container,N)}).then(function(c){this.opt.jsPDF.context2d.restore(true),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay);})},f.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l;})},f.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF;})},f.prototype.output=function(l,c,d){return (d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},f.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,c)})},f.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case "img":return this.prop.img;case "datauristring":case "dataurlstring":return this.prop.img.src;case "datauri":case "dataurl":return document.location.href=this.prop.img.src;default:throw 'Image output type "'+l+'" is not supported.'}})},f.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename);})},f.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf);})},f.prototype.set=function(l){if(r(l)!=="object")return this;var c=Object.keys(l||{}).map(function(d){if(d in f.template.prop)return function(){this.prop[d]=l[d];};switch(d){case "margin":return this.setMargin.bind(this,l.margin);case "jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case "pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[d]=l[d];}}},this);return this.then(function(){return this.thenList(c)})},f.prototype.get=function(l,c){return this.then(function(){var d=l in f.template.prop?this.prop[l]:this.opt[l];return c?c(d):d})},f.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case "number":l=[l,l,l,l];case "array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l;}).then(this.setPageSize)},f.prototype.setPageSize=function(l){function c(d,v){return Math.floor(d*v/72*96)}return this.then(function(){(l=l||jt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l;})},f.prototype.setProgress=function(l,c,d,v){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),d!=null&&(this.progress.n=d),v!=null&&(this.progress.stack=v),this.progress.ratio=this.progress.val/this.progress.state,this},f.prototype.updateProgress=function(l,c,d,v){return this.setProgress(l?this.progress.val+l:null,c||null,d?this.progress.n+d:null,v?this.progress.stack.concat(v):null)},f.prototype.then=function(l,c){var d=this;return this.thenCore(l,c,function(v,x){return d.updateProgress(null,null,1,[v]),Promise.prototype.then.call(this,function(N){return d.updateProgress(null,v),N}).then(v,x).then(function(N){return d.updateProgress(1),N})})},f.prototype.thenCore=function(l,c,d){d=d||Promise.prototype.then;var v=this;l&&(l=l.bind(v)),c&&(c=c.bind(v));var x=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?v:f.convert(Object.assign({},v),Promise.prototype),N=d.call(x,l,c);return f.convert(N,v.__proto__)},f.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},f.prototype.thenList=function(l){var c=this;return l.forEach(function(d){c=c.thenCore(d);}),c},f.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return f.convert(c,this)},f.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},f.prototype.error=function(l){return this.then(function(){throw new Error(l)})},f.prototype.using=f.prototype.set,f.prototype.saveAs=f.prototype.save,f.prototype.export=f.prototype.output,f.prototype.run=f.prototype.then,jt.getPageSize=function(l,c,d){if(o(l)==="object"){var v=l;l=v.orientation,c=v.unit||c,d=v.format||d;}c=c||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var x,N=(""+d).toLowerCase(),p={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]};switch(c){case "pt":x=1;break;case "mm":x=72/25.4;break;case "cm":x=72/2.54;break;case "in":x=72;break;case "px":x=.75;break;case "pc":case "em":x=12;break;case "ex":x=6;break;default:throw "Invalid unit: "+c}var T,I=0,R=0;if(p.hasOwnProperty(N))I=p[N][1]/x,R=p[N][0]/x;else try{I=d[1],R=d[0];}catch(k){throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",R>I&&(T=R,R=I,I=T);else {if(l!=="l"&&l!=="landscape")throw "Invalid orientation: "+l;l="l",I>R&&(T=R,R=I,I=T);}return {width:R,height:I,unit:c,k:x,orientation:l}},t.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(yh):null;var d=new f(c);return c.worker?d:d.from(l).doCallback()};})(jt.API),jt.API.addJS=function(t){var n,e,r=(function(a){for(var o="",f=0;f<a.length;f++){var l=a[f];if(l==="("||l===")"){for(var c=0,d=f-1;d>=0&&a[d]==="\\";d--)c++;o+=c%2==0?"\\"+l:l;}else o+=l;}return o})(t);return this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(n+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj");}),this.internal.events.subscribe("putCatalog",function(){n!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+n+" 0 R>>");}),this},(function(t){var n;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),o=0;o<a.length;o++){var f=a[o],l=r.exec(f);if(l!=null){var c=l[1];e.internal.newObjectDeferredBegin(c,false);}e.internal.write(f);}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,v=[];for(o=0;o<d;o++){var x=e.internal.newObject();v.push(x);var N=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+N.objId+" 0 R /XYZ null null null]>> endobj");}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<v.length;o++)e.internal.write("(page_"+(o+1)+")"+v[o]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj");}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+n+" 0 R"));}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:false,root:{children:[]}},e.outline.add=function(r,a,o){var f={title:a,options:o,children:[]};return r==null&&(r=this.root),r.children.push(f),f},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var a=0;a<r.children.length;a++)this.genIds_r(r.children[a]);},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd();},e.outline.renderItems=function(r){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var f=r.children[o];this.objStart(f),this.line("/Title "+this.makeString(f.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[o+1])),f.children.length>0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var l=this.count=this.count_r({count:0},f);if(l>0&&this.line("/Count "+l),f.options&&f.options.pageNumber){var c=e.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+a(0)+" 0]");}this.objEnd();}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d]);},e.outline.line=function(r){this.ctx.val+=r+`\r
`;},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return "("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`;},e.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`;},e.outline.count_r=function(r,a){for(var o=0;o<a.children.length;o++)r.count++,this.count_r(r,a.children[o]);return r.count};}]);})(jt.API),(function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,a,o,f,l){var c,d=this.decode.DCT_DECODE,v=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=f||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,c=(function(x){for(var N,p=256*x.charCodeAt(4)+x.charCodeAt(5),T=x.length,I={width:0,height:0,numcomponents:1},R=4;R<T;R+=2){if(R+=p,n.indexOf(x.charCodeAt(R+1))!==-1){N=256*x.charCodeAt(R+5)+x.charCodeAt(R+6),I={width:256*x.charCodeAt(R+7)+x.charCodeAt(R+8),height:N,numcomponents:x.charCodeAt(R+9)};break}p=256*x.charCodeAt(R+2)+x.charCodeAt(R+3);}return I})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),c.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB;}v={data:e,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:d,index:r,alias:a};}return v};})(jt.API),jt.API.processPNG=function(t,n,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,o=ru(t,{checkCrc:true}),f=o.width,l=o.height,c=o.channels,d=o.palette,v=o.depth;a=d&&c===1?(function(K){for(var M=K.width,tt=K.height,L=K.data,O=K.palette,q=K.depth,U=false,rt=[],st=[],ft=void 0,nt=false,ut=0,At=0;At<O.length;At++){var wt=Fl(O[At],4),_=wt[0],B=wt[1],j=wt[2],H=wt[3];rt.push(_,B,j),H!=null&&(H===0?(ut++,st.length<1&&st.push(At)):H<255&&(nt=true));}if(nt||ut>1){U=true,st=void 0;var $=M*tt;ft=new Uint8Array($);for(var J=new DataView(L.buffer),at=0;at<$;at++){var ot=xh(J,at,q),gt=Fl(O[ot],4)[3];ft[at]=gt;}}else ut===0&&(st=void 0);return {colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:L,alphaBytes:ft,needSMask:U,palette:rt,mask:st}})(o):c===2||c===4?(function(K){for(var M=K.data,tt=K.width,L=K.height,O=K.channels,q=K.depth,U=O===2?"DeviceGray":"DeviceRGB",rt=O-1,st=tt*L,ft=rt,nt=st*ft,ut=1*st,At=Math.ceil(nt*q/8),wt=Math.ceil(ut*q/8),_=new Uint8Array(At),B=new Uint8Array(wt),j=new DataView(M.buffer),H=new DataView(_.buffer),$=new DataView(B.buffer),J=false,at=0;at<st;at++){for(var ot=at*O,gt=0;gt<ft;gt++)xu(H,xh(j,ot+gt,q),at*ft+gt,q);var xt=xh(j,ot+ft,q);xt<(1<<q)-1&&(J=true),xu($,xt,1*at,q);}return {colorSpace:U,colorsPerPixel:rt,sMaskBitsPerComponent:J?q:void 0,colorBytes:_,alphaBytes:B,needSMask:J}})(o):(function(K){var M=K.data,tt=K.channels===1?"DeviceGray":"DeviceRGB";return {colorSpace:tt,colorsPerPixel:tt==="DeviceGray"?1:3,colorBytes:M instanceof Uint16Array?(function(L){for(var O=L.length,q=new Uint8Array(2*O),U=new DataView(q.buffer,q.byteOffset,q.byteLength),rt=0;rt<O;rt++)U.setUint16(2*rt,L[rt],false);return q})(M):M,needSMask:false}})(o);var x,N,p,T=a,I=T.colorSpace,R=T.colorsPerPixel,k=T.sMaskBitsPerComponent,G=T.colorBytes,V=T.alphaBytes,z=T.needSMask,it=T.palette,mt=T.mask,dt=null;return r!==jt.API.image_compression.NONE&&typeof fs=="function"?(dt=(function(K){var M;switch(K){case jt.API.image_compression.FAST:M=11;break;case jt.API.image_compression.MEDIUM:M=13;break;case jt.API.image_compression.SLOW:M=14;break;default:M=12;}return M})(r),x=this.decode.FLATE_DECODE,N="/Predictor ".concat(dt," /Colors ").concat(R," /BitsPerComponent ").concat(v," /Columns ").concat(f),t=mu(G,Math.ceil(f*R*v/8),R,v,r),z&&(p=mu(V,Math.ceil(f*k/8),1,k,r))):(x=void 0,N=void 0,t=G,z&&(p=V)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:t,index:n,filter:x,decodeParameters:N,transparency:mt,palette:it,sMask:p,predictor:dt,width:f,height:l,bitsPerComponent:v,sMaskBitsPerComponent:k,colorSpace:I}}},(function(t){t.processGIF89A=function(n,e,r,a){var o=new td(n),f=o.width,l=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var d={data:c,width:f,height:l},v=new Ah(100).encode(d,100);return t.processJPEG.call(this,v,e,r,a)},t.processGIF87A=t.processGIF89A;})(jt.API),lr.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,true),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,true),this.pos+=4,this.offset=this.datav.getUint32(this.pos,true),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,true),this.pos+=4,this.width=this.datav.getUint32(this.pos,true),this.pos+=4,this.height=this.datav.getInt32(this.pos,true),this.pos+=4,this.planes=this.datav.getUint16(this.pos,true),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,true),this.pos+=2,this.compress=this.datav.getUint32(this.pos,true),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,true),this.pos+=4,this.hr=this.datav.getUint32(this.pos,true),this.pos+=4,this.vr=this.datav.getUint32(this.pos,true),this.pos+=4,this.colors=this.datav.getUint32(this.pos,true),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,true),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,true),r=this.datav.getUint8(this.pos++,true),a=this.datav.getUint8(this.pos++,true),o=this.datav.getUint8(this.pos++,true);this.palette[n]={red:a,green:r,blue:e,quad:o};}}this.height<0&&(this.height*=-1,this.bottom_up=false);},lr.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,n=this.width*this.height*4;if(n>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(n);try{this[t]();}catch(e){Pe.log("bit decode error:"+e);}},lr.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,a=0;a<n;a++)for(var o=this.datav.getUint8(this.pos++,true),f=r*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var c=this.palette[o>>7-l&1];this.data[f+4*l]=c.blue,this.data[f+4*l+1]=c.green,this.data[f+4*l+2]=c.red,this.data[f+4*l+3]=255;}e!==0&&(this.pos+=4-e);}},lr.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<t;a++){var o=this.datav.getUint8(this.pos++,true),f=r*this.width*4+2*a*4,l=o>>4,c=15&o,d=this.palette[l];if(this.data[f]=d.blue,this.data[f+1]=d.green,this.data[f+2]=d.red,this.data[f+3]=255,2*a+1>=this.width)break;d=this.palette[c],this.data[f+4]=d.blue,this.data[f+4+1]=d.green,this.data[f+4+2]=d.red,this.data[f+4+3]=255;}n!==0&&(this.pos+=4-n);}},lr.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,true),o=e*this.width*4+4*r;if(a<this.palette.length){var f=this.palette[a];this.data[o]=f.red,this.data[o+1]=f.green,this.data[o+2]=f.blue,this.data[o+3]=255;}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255;}t!==0&&(this.pos+=4-t);}},lr.prototype.bit15=function(){for(var t=this.width%3,n=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,true);this.pos+=2;var f=(o&n)/n*255|0,l=(o>>5&n)/n*255|0,c=(o>>10&n)/n*255|0,d=o>>15?255:0,v=r*this.width*4+4*a;this.data[v]=c,this.data[v+1]=l,this.data[v+2]=f,this.data[v+3]=d;}this.pos+=t;}},lr.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var f=this.datav.getUint16(this.pos,true);this.pos+=2;var l=(f&n)/n*255|0,c=(f>>5&e)/e*255|0,d=(f>>11)/n*255|0,v=a*this.width*4+4*o;this.data[v]=d,this.data[v+1]=c,this.data[v+2]=l,this.data[v+3]=255;}this.pos+=t;}},lr.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,true),a=this.datav.getUint8(this.pos++,true),o=this.datav.getUint8(this.pos++,true),f=n*this.width*4+4*e;this.data[f]=o,this.data[f+1]=a,this.data[f+2]=r,this.data[f+3]=255;}this.pos+=this.width%4;}},lr.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,true),a=this.datav.getUint8(this.pos++,true),o=this.datav.getUint8(this.pos++,true),f=this.datav.getUint8(this.pos++,true),l=n*this.width*4+4*e;this.data[l]=o,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=f;}},lr.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(n,e,r,a){var o=new lr(n,false),f=o.width,l=o.height,c={data:o.getData(),width:f,height:l},d=new Ah(100).encode(c,100);return t.processJPEG.call(this,d,e,r,a)};})(jt.API),Nu.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(n,e,r,a){var o=new Nu(n),f=o.width,l=o.height,c={data:o.getData(),width:f,height:l},d=new Ah(100).encode(c,100);return t.processJPEG.call(this,d,e,r,a)};})(jt.API),jt.API.processRGBA=function(t,n,e){for(var r=t.data,a=r.length,o=new Uint8Array(a/4*3),f=new Uint8Array(a/4),l=0,c=0,d=0;d<a;d+=4){var v=r[d],x=r[d+1],N=r[d+2],p=r[d+3];o[l++]=v,o[l++]=x,o[l++]=N,f[c++]=p;}var T=this.__addimage__.arrayBufferToBinaryString(o);return {alpha:this.__addimage__.arrayBufferToBinaryString(f),data:T,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},jt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=false),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===false&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")");}),this.internal.languageSettings.isSubscribed=true)),this},Sa=jt.API,Ts=Sa.getCharWidthsArray=function(t,n){var e,r,a=(n=n||{}).font||this.internal.getFont(),o$1=n.fontSize||this.internal.getFontSize(),f=n.charSpace||this.internal.getCharSpace(),l=n.widths?n.widths:a.metadata.Unicode.widths,c=l.fof?l.fof:1,d=n.kerning?n.kerning:a.metadata.Unicode.kerning,v=d.fof?d.fof:1,x=n.doKerning!==false,N=0,p=t.length,T=0,I=l[0]||c,R=[];for(e=0;e<p;e++)r=t.charCodeAt(e),typeof a.metadata.widthOfString=="function"?R.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+f*(1e3/o$1)||0)/1e3):(N=x&&o(d[r])==="object"&&!isNaN(parseInt(d[r][T],10))?d[r][T]/v:0,R.push((l[r]||I)/c+N)),T=r;return R},pu=Sa.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),a=n.charSpace||this.internal.getCharSpace();return Sa.processArabic&&(t=Sa.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,a)/e:Ts.apply(this,arguments).reduce(function(o,f){return o+f},0)},gu=function(t,n,e,r){for(var a=[],o=0,f=t.length,l=0;o!==f&&l+n[o]<e;)l+=n[o],o++;a.push(t.slice(0,o));var c=o;for(l=0;o!==f;)l+n[o]>r&&(a.push(t.slice(c,o)),l=0,c=o),l+=n[o],o++;return c!==o&&a.push(t.slice(c,o)),a},vu=function(t,n,e){e||(e={});var r,a,o,f,l,c,d,v=[],x=[v],N=e.textIndent||0,p=0,T=0,I=t.split(" "),R=Ts.apply(this,[" ",e])[0];if(c=e.lineIndent===-1?I[0].length+2:e.lineIndent||0){var k=Array(c).join(" "),G=[];I.map(function(z){(z=z.split(/\s*\n/)).length>1?G=G.concat(z.map(function(it,mt){return (mt&&it.length?`
`:"")+it})):G.push(z[0]);}),I=G,c=pu.apply(this,[k,e]);}for(o=0,f=I.length;o<f;o++){var V=0;if(r=I[o],c&&r[0]==`
`&&(r=r.substr(1),V=1),N+p+(T=(a=Ts.apply(this,[r,e])).reduce(function(z,it){return z+it},0))>n||V){if(T>n){for(l=gu.apply(this,[r,a,n-(N+p),n]),v.push(l.shift()),v=[l.pop()];l.length;)x.push([l.shift()]);T=a.slice(r.length-(v[0]?v[0].length:0)).reduce(function(z,it){return z+it},0);}else v=[r];x.push(v),N=T+c,p=R;}else v.push(r),N+=p+T,p=R;}return d=c?function(z,it){return (it?k:"")+z.join(" ")}:function(z){return z.join(" ")},x.map(d)},Sa.splitTextToSize=function(t,n,e){var r,a=(e=e||{}).fontSize||this.internal.getFontSize(),o=function(v){if(v.widths&&v.kerning)return {widths:v.widths,kerning:v.kerning};var x=this.internal.getFont(v.fontName,v.fontStyle),N="Unicode";return x.metadata[N]?{widths:x.metadata[N].widths||{0:1},kerning:x.metadata[N].kerning||{}}:{font:x.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var f=1*this.internal.scaleFactor*n/a;o.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=e.lineIndent;var l,c,d=[];for(l=0,c=r.length;l<c;l++)d=d.concat(vu.apply(this,[r[l],f,o]));return d},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",r={},a={},o$1=0;o$1<16;o$1++)r[e[o$1]]=n[o$1],a[n[o$1]]=e[o$1];var f=function(N){return "0x"+parseInt(N,10).toString(16)},l=t.__fontmetrics__.compress=function(N){var p,T,I,R,k=["{"];for(var G in N){if(p=N[G],isNaN(parseInt(G,10))?T="'"+G+"'":(G=parseInt(G,10),T=(T=f(G).slice(2)).slice(0,-1)+a[T.slice(-1)]),typeof p=="number")p<0?(I=f(p).slice(3),R="-"):(I=f(p).slice(2),R=""),I=R+I.slice(0,-1)+a[I.slice(-1)];else {if(o(p)!=="object")throw new Error("Don't know what to do with value type "+o(p)+".");I=l(p);}k.push(T+I);}return k.push("}"),k.join("")},c=t.__fontmetrics__.uncompress=function(N){if(typeof N!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,T,I,R,k={},G=1,V=k,z=[],it="",mt="",dt=N.length-1,K=1;K<dt;K+=1)(R=N[K])=="'"?p?(I=p.join(""),p=void 0):p=[]:p?p.push(R):R=="{"?(z.push([V,I]),V={},I=void 0):R=="}"?((T=z.pop())[0][T[1]]=V,I=void 0,V=T[0]):R=="-"?G=-1:I===void 0?r.hasOwnProperty(R)?(it+=r[R],I=parseInt(it,16)*G,G=1,it=""):it+=R:r.hasOwnProperty(R)?(mt+=r[R],V[I]=parseInt(mt,16)*G,G=1,I=void 0,mt=""):mt+=R;return k},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},v={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},x={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(N){var p=N.font,T=x.Unicode[p.postScriptName];T&&(p.metadata.Unicode={},p.metadata.Unicode.widths=T.widths,p.metadata.Unicode.kerning=T.kerning);var I=v.Unicode[p.postScriptName];I&&(p.metadata.Unicode.encoding=I,p.encoding=I.codePages[0]);}]);})(jt.API),(function(t){var n=function(e){for(var r=e.length,a=new Uint8Array(r),o=0;o<r;o++)a[o]=e.charCodeAt(o);return a};t.API.events.push(["addFont",function(e){var r=void 0,a=e.font,o=e.instance;if(!a.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=o.existsFileInVFS(a.postScriptName)===false?o.loadFile(a.postScriptName):o.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(f,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(Bs(l)),f.metadata=t.API.TTFFont.open(l),f.metadata.Unicode=f.metadata.Unicode||{encoding:{},kerning:{},widths:[]},f.metadata.glyIdsUsed=[0];})(a,r);}}]);})(jt),jt.API.addSvgAsImage=function(t,n,e,r,a,o,f,l){if(isNaN(n)||isNaN(e))throw Pe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw Pe.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=a;var d=c.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,c.width,c.height);var v={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true},x=this;return (Yt.canvg?Promise.resolve(Yt.canvg):import('./chunk-DxC8zttm.js')).catch(function(N){return Promise.reject(new Error("Could not load canvg: "+N))}).then(function(N){return N.default?N.default:N}).then(function(N){return N.fromString(d,t,v)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(N){return N.render(v)}).then(function(){x.addImage(c.toDataURL("image/jpeg",1),n,e,r,a,f,l);})},jt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(n,e);return this},jt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||false;var r,a,o$1,f={HideToolbar:{defaultValue:false,value:false,type:"boolean",explicitSet:false,valueSet:[true,false],pdfVersion:1.3},HideMenubar:{defaultValue:false,value:false,type:"boolean",explicitSet:false,valueSet:[true,false],pdfVersion:1.3},HideWindowUI:{defaultValue:false,value:false,type:"boolean",explicitSet:false,valueSet:[true,false],pdfVersion:1.3},FitWindow:{defaultValue:false,value:false,type:"boolean",explicitSet:false,valueSet:[true,false],pdfVersion:1.3},CenterWindow:{defaultValue:false,value:false,type:"boolean",explicitSet:false,valueSet:[true,false],pdfVersion:1.3},DisplayDocTitle:{defaultValue:false,value:false,type:"boolean",explicitSet:false,valueSet:[true,false],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:false,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:false,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:false,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:false,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:false,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:false,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:false,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:false,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:false,value:false,type:"boolean",explicitSet:false,valueSet:[true,false],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:false,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:false,valueSet:null,pdfVersion:1.7}},l=Object.keys(f),c=[],d=0,v=0,x=0;function N(T,I){var R,k=false;for(R=0;R<T.length;R+=1)T[R]===I&&(k=true);return k}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(f)),this.internal.viewerpreferences.isSubscribed=false),e=this.internal.viewerpreferences.configuration,t==="reset"||n===true){var p=l.length;for(x=0;x<p;x+=1)e[l[x]].value=e[l[x]].defaultValue,e[l[x]].explicitSet=false;}if(o(t)==="object"){for(a in t)if(o$1=t[a],N(l,a)&&o$1!==void 0){if(e[a].type==="boolean"&&typeof o$1=="boolean")e[a].value=o$1;else if(e[a].type==="name"&&N(e[a].valueSet,o$1))e[a].value=o$1;else if(e[a].type==="integer"&&Number.isInteger(o$1))e[a].value=o$1;else if(e[a].type==="array"){for(d=0;d<o$1.length;d+=1)if(r=true,o$1[d].length===1&&typeof o$1[d][0]=="number")c.push(String(o$1[d]-1));else if(o$1[d].length>1){for(v=0;v<o$1[d].length;v+=1)typeof o$1[d][v]!="number"&&(r=false);r===true&&c.push([o$1[d][0]-1,o$1[d][1]-1].join(" "));}e[a].value="["+c.join(" ")+"]";}else e[a].value=e[a].defaultValue;e[a].explicitSet=true;}}return this.internal.viewerpreferences.isSubscribed===false&&(this.internal.events.subscribe("putCatalog",function(){var T,I=[];for(T in e)e[T].explicitSet===true&&(e[T].type==="name"?I.push("/"+T+" /"+e[T].value):I.push("/"+T+" "+e[T].value));I.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+I.join(`
`)+`
>>`);}),this.internal.viewerpreferences.isSubscribed=true),this.internal.viewerpreferences.configuration=e,this},jt.API.addMetadata=function(t,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceUri:n??"http://jspdf.default.namespaceuri/",rawXml:typeof n=="boolean"&&n},this.internal.events.subscribe("putCatalog",nd),this.internal.events.subscribe("postPutResources",ed)),this},(function(t){var n=t.API,e=n.pdfEscape16=function(o,f){for(var l,c=f.metadata.Unicode.widths,d=["","0","00","000","0000"],v=[""],x=0,N=o.length;x<N;++x){if(l=f.metadata.characterToGlyph(o.charCodeAt(x)),f.metadata.glyIdsUsed.push(l),f.metadata.toUnicode[l]=o.charCodeAt(x),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(f.metadata.widthOfGlyph(l),10)])),l=="0")return v.join("");l=l.toString(16),v.push(d[4-l.length],l);}return v.join("")},r=function(o){var f,l,c,d,v,x,N;for(v=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,c=[],x=0,N=(l=Object.keys(o).sort(function(p,T){return p-T})).length;x<N;x++)f=l[x],c.length>=100&&(v+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar`,c=[]),o[f]!==void 0&&o[f]!==null&&typeof o[f].toString=="function"&&(d=("0000"+o[f].toString(16)).slice(-4),f=("0000"+(+f).toString(16)).slice(-4),c.push("<"+f+"><"+d+">"));return c.length&&(v+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar
`),v+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};n.events.push(["putFont",function(o){(function(f){var l=f.font,c=f.out,d=f.newObject,v=f.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var x=l.metadata.Unicode.widths,N=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",T=0;T<N.length;T++)p+=String.fromCharCode(N[T]);var I=d();v({data:p,addLength1:true,objectId:I}),c("endobj");var R=d();v({data:r(l.metadata.toUnicode),addLength1:true,objectId:R}),c("endobj");var k=d();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Pa(l.fontName)),c("/FontFile2 "+I+" 0 R"),c("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var G=d();c("<<"),c("/Type /Font"),c("/BaseFont /"+Pa(l.fontName)),c("/FontDescriptor "+k+" 0 R"),c("/W "+t.API.PDFObject.convert(x)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=d(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+R+" 0 R"),c("/BaseFont /"+Pa(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+G+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=true;}})(o);}]),n.events.push(["putFont",function(o){(function(f){var l=f.font,c=f.out,d=f.newObject,v=f.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var x=l.metadata.rawData,N="",p=0;p<x.length;p++)N+=String.fromCharCode(x[p]);var T=d();v({data:N,addLength1:true,objectId:T}),c("endobj");var I=d();v({data:r(l.metadata.toUnicode),addLength1:true,objectId:I}),c("endobj");var R=d();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+T+" 0 R"),c("/Flags 96"),c("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+Pa(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=d();for(var k=0;k<l.metadata.hmtx.widths.length;k++)l.metadata.hmtx.widths[k]=parseInt(l.metadata.hmtx.widths[k]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+I+" 0 R/BaseFont/"+Pa(l.fontName)+"/FontDescriptor "+R+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=true;}})(o);}]);var a=function(o){var f,l=o.text||"",c=o.x,d=o.y,v=o.options||{},x=o.mutex||{},N=x.pdfEscape,p=x.activeFontKey,T=x.fonts,I=p,R="",k=0,G="",V=T[I].encoding;if(T[I].encoding!=="Identity-H")return {text:l,x:c,y:d,options:v,mutex:x};for(G=l,I=p,Array.isArray(l)&&(G=l[0]),k=0;k<G.length;k+=1)T[I].metadata.hasOwnProperty("cmap")&&(f=T[I].metadata.cmap.unicode.codeMap[G[k].charCodeAt(0)]),f||G[k].charCodeAt(0)<256&&T[I].metadata.hasOwnProperty("Unicode")?R+=G[k]:R+="";var z="";return parseInt(I.slice(1))<14||V==="WinAnsiEncoding"?z=N(R,I).split("").map(function(it){return it.charCodeAt(0).toString(16)}).join(""):V==="Identity-H"&&(z=e(R,T[I])),x.isHex=true,{text:z,x:c,y:d,options:v,mutex:x}};n.events.push(["postProcessText",function(o){var f=o.text||"",l=[],c={text:f,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(f)){var d=0;for(d=0;d<f.length;d+=1)Array.isArray(f[d])&&f[d].length===3?l.push([a(Object.assign({},c,{text:f[d][0]})).text,f[d][1],f[d][2]]):l.push(a(Object.assign({},c,{text:f[d]})).text);o.text=l;}else o.text=a(Object.assign({},c,{text:f})).text;}]);})(jt),(function(t){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),true};t.existsFileInVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return n.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null};})(jt.API),(function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var a,o,f,l,c,d,v,x=n,N=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],T={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},I={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},R=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],k=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),G=false,V=0;this.__bidiEngine__={};var z=function(L){var O=L.charCodeAt(),q=O>>8,U=I[q];return U!==void 0?x[256*U+(255&O)]:q===252||q===253?"AL":k.test(q)?"L":q===8?"R":"N"},it=function(L){for(var O,q=0;q<L.length;q++){if((O=z(L.charAt(q)))==="L")return false;if(O==="R")return true}return false},mt=function(L,O,q,U){var rt,st,ft,nt,ut=O[U];switch(ut){case "L":case "R":case "LRE":case "RLE":case "LRO":case "RLO":case "PDF":G=false;break;case "N":case "AN":break;case "EN":G&&(ut="AN");break;case "AL":G=true,ut="R";break;case "WS":case "BN":ut="N";break;case "CS":U<1||U+1>=O.length||(rt=q[U-1])!=="EN"&&rt!=="AN"||(st=O[U+1])!=="EN"&&st!=="AN"?ut="N":G&&(st="AN"),ut=st===rt?st:"N";break;case "ES":ut=(rt=U>0?q[U-1]:"B")==="EN"&&U+1<O.length&&O[U+1]==="EN"?"EN":"N";break;case "ET":if(U>0&&q[U-1]==="EN"){ut="EN";break}if(G){ut="N";break}for(ft=U+1,nt=O.length;ft<nt&&O[ft]==="ET";)ft++;ut=ft<nt&&O[ft]==="EN"?"EN":"N";break;case "NSM":if(f&&!l){for(nt=O.length,ft=U+1;ft<nt&&O[ft]==="NSM";)ft++;if(ft<nt){var At=L[U],wt=At>=1425&&At<=2303||At===64286;if(rt=O[ft],wt&&(rt==="R"||rt==="AL")){ut="R";break}}}ut=U<1||(rt=O[U-1])==="B"?"N":q[U-1];break;case "B":G=false,a=true,ut=V;break;case "S":o=true,ut="N";}return ut},dt=function(L,O,q){var U=L.split("");return q&&K(U,q,{hiLevel:V}),U.reverse(),O&&O.reverse(),U.join("")},K=function(L,O,q){var U,rt,st,ft,nt,ut=-1,At=L.length,wt=0,_=[],B=V?p:N,j=[];for(G=false,a=false,o=false,rt=0;rt<At;rt++)j[rt]=z(L[rt]);for(st=0;st<At;st++){if(nt=wt,_[st]=mt(L,j,_,st),U=240&(wt=B[nt][T[_[st]]]),wt&=15,O[st]=ft=B[wt][5],U>0)if(U===16){for(rt=ut;rt<st;rt++)O[rt]=1;ut=-1;}else ut=-1;if(B[wt][6])ut===-1&&(ut=st);else if(ut>-1){for(rt=ut;rt<st;rt++)O[rt]=ft;ut=-1;}j[st]==="B"&&(O[st]=0),q.hiLevel|=ft;}o&&(function(H,$,J){for(var at=0;at<J;at++)if(H[at]==="S"){$[at]=V;for(var ot=at-1;ot>=0&&H[ot]==="WS";ot--)$[ot]=V;}})(j,O,At);},M=function(L,O,q,U,rt){if(!(rt.hiLevel<L)){if(L===1&&V===1&&!a)return O.reverse(),void(q&&q.reverse());for(var st,ft,nt,ut,At=O.length,wt=0;wt<At;){if(U[wt]>=L){for(nt=wt+1;nt<At&&U[nt]>=L;)nt++;for(ut=wt,ft=nt-1;ut<ft;ut++,ft--)st=O[ut],O[ut]=O[ft],O[ft]=st,q&&(st=q[ut],q[ut]=q[ft],q[ft]=st);wt=nt;}wt++;}}},tt=function(L,O,q){var U=L.split(""),rt={hiLevel:V};return q||(q=[]),K(U,q,rt),(function(st,ft,nt){if(nt.hiLevel!==0&&v)for(var ut,At=0;At<st.length;At++)ft[At]===1&&(ut=R.indexOf(st[At]))>=0&&(st[At]=R[ut+1]);})(U,q,rt),M(2,U,O,q,rt),M(1,U,O,q,rt),U.join("")};return this.__bidiEngine__.doBidiReorder=function(L,O,q){if((function(rt,st){if(st)for(var ft=0;ft<rt.length;ft++)st[ft]=ft;l===void 0&&(l=it(rt)),d===void 0&&(d=it(rt));})(L,O),f||!c||d)if(f&&c&&l^d)V=l?1:0,L=dt(L,O,q);else if(!f&&c&&d)V=l?1:0,L=tt(L,O,q),L=dt(L,O);else if(!f||l||c||d){if(f&&!c&&l^d)L=dt(L,O),l?(V=0,L=tt(L,O,q)):(V=1,L=tt(L,O,q),L=dt(L,O));else if(f&&l&&!c&&d)V=1,L=tt(L,O,q),L=dt(L,O);else if(!f&&!c&&l^d){var U=v;l?(V=1,L=tt(L,O,q),V=0,v=false,L=tt(L,O,q),v=U):(V=0,L=tt(L,O,q),L=dt(L,O),V=1,v=false,L=tt(L,O,q),v=U,L=dt(L,O));}}else V=0,L=tt(L,O,q);else V=l?1:0,L=tt(L,O,q);return L},this.__bidiEngine__.setOptions=function(L){L&&(f=L.isInputVisual,c=L.isOutputVisual,l=L.isInputRtl,d=L.isOutputRtl,v=L.isSymmetricSwapping);},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var n=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new t.__bidiEngine__({isInputVisual:true});t.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var o=r.options||{};r.mutex,o.lang;var f=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,e.setOptions(o),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(f=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?f.push([e.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):f.push([e.doBidiReorder(a[l])]);r.text=f;}else r.text=e.doBidiReorder(a);e.setOptions({isInputVisual:true});}]);})(jt),jt.API.TTFFont=(function(){function t(n){var e;if(this.rawData=n,e=this.contents=new gi(n),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new md(this),this.registerTTF();}return t.open=function(n){return new t(n)},t.prototype.parse=function(){return this.directory=new rd(this.contents),this.head=new ad(this),this.name=new fd(this),this.cmap=new Mu(this),this.toUnicode={},this.hhea=new od(this),this.maxp=new cd(this),this.hmtx=new ud(this),this.post=new ld(this),this.os2=new sd(this),this.loca=new vd(this),this.glyf=new dd(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var n,e,r,a,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var f,l,c,d;for(d=[],f=0,l=(c=this.bbox).length;f<l;f++)n=c[f],d.push(Math.round(n*this.scaleFactor));return d}.call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(n){var e;return ((e=this.cmap.unicode)!=null?e.codeMap[n]:void 0)||0},t.prototype.widthOfGlyph=function(n){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*e},t.prototype.widthOfString=function(n,e,r){var a,o,f,l;for(f=0,o=0,l=(n=""+n).length;0<=l?o<l:o>l;o=0<=l?++o:--o)a=n.charCodeAt(o),f+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/e)||0;return f*(e/1e3)},t.prototype.lineHeight=function(n,e){var r;return e==null&&(e=false),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*n},t})();var fr,gi=(function(){function t(n){this.data=n??[],this.pos=0,this.length=this.data.length;}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(n){return this.data[this.pos++]=n},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt32=function(){var n;return (n=this.readUInt32())>=2147483648?n-4294967296:n},t.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt16=function(){var n;return (n=this.readUInt16())>=32768?n-65536:n},t.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},t.prototype.readString=function(n){var e,r;for(r=[],e=0;0<=n?e<n:e>n;e=0<=n?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(n){var e,r,a;for(a=[],e=0,r=n.length;0<=r?e<r:e>r;e=0<=r?++e:--e)a.push(this.writeByte(n.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(n){return this.writeInt16(n)},t.prototype.readLongLong=function(){var n,e,r,a,o,f,l,c;return n=this.readByte(),e=this.readByte(),r=this.readByte(),a=this.readByte(),o=this.readByte(),f=this.readByte(),l=this.readByte(),c=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^o)+65536*(255^f)+256*(255^l)+(255^c)+1):72057594037927940*n+281474976710656*e+1099511627776*r+4294967296*a+16777216*o+65536*f+256*l+c},t.prototype.writeLongLong=function(n){var e,r;return e=Math.floor(n/4294967296),r=4294967295&n,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(n){return this.writeInt32(n)},t.prototype.read=function(n){var e,r;for(e=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(n){var e,r,a,o;for(o=[],r=0,a=n.length;r<a;r++)e=n[r],o.push(this.writeByte(e));return o},t})(),rd=(function(){var t;function n(e){var r,a,o;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},a=0,o=this.tableCount;0<=o?a<o:a>o;a=0<=o?++a:--a)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r;}return n.prototype.encode=function(e){var r,a,o,f,l,c,d,v,x,N,p,T,I;for(I in p=Object.keys(e).length,c=Math.log(2),x=16*Math.floor(Math.log(p)/c),f=Math.floor(x/c),v=16*p-x,(a=new gi).writeInt(this.scalarType),a.writeShort(p),a.writeShort(x),a.writeShort(f),a.writeShort(v),o=16*p,d=a.pos+o,l=null,T=[],e)for(N=e[I],a.writeString(I),a.writeInt(t(N)),a.writeInt(d),a.writeInt(N.length),T=T.concat(N),I==="head"&&(l=d),d+=N.length;d%4;)T.push(0),d++;return a.write(T),r=2981146554-t(a.data),a.pos=l+8,a.writeUInt32(r),a.data},t=function(e){var r,a,o,f;for(e=ju.call(e);e.length%4;)e.push(0);for(o=new gi(e),a=0,r=0,f=e.length;r<f;r=r+=4)a+=o.readUInt32();return 4294967295&a},n})(),id={}.hasOwnProperty,kr=function(t,n){for(var e in n)id.call(n,e)&&(t[e]=n[e]);function r(){this.constructor=t;}return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};fr=(function(){function t(n){var e;this.file=n,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents));}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t})();var ad=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="head",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},t.prototype.encode=function(n){var e;return (e=new gi).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(n),e.writeShort(this.glyphDataFormat),e.data},t})(),Lu=(function(){function t(n,e){var r,a,o,f,l,c,d,v,x,N,p,T,I,R,k,G,V;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=e+n.readInt(),x=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=n.readByte();break;case 4:for(p=n.readUInt16(),N=p/2,n.pos+=6,o=(function(){var z,it;for(it=[],c=z=0;0<=N?z<N:z>N;c=0<=N?++z:--z)it.push(n.readUInt16());return it})(),n.pos+=2,I=(function(){var z,it;for(it=[],c=z=0;0<=N?z<N:z>N;c=0<=N?++z:--z)it.push(n.readUInt16());return it})(),d=(function(){var z,it;for(it=[],c=z=0;0<=N?z<N:z>N;c=0<=N?++z:--z)it.push(n.readUInt16());return it})(),v=(function(){var z,it;for(it=[],c=z=0;0<=N?z<N:z>N;c=0<=N?++z:--z)it.push(n.readUInt16());return it})(),a=(this.length-n.pos+this.offset)/2,l=(function(){var z,it;for(it=[],c=z=0;0<=a?z<a:z>a;c=0<=a?++z:--z)it.push(n.readUInt16());return it})(),c=k=0,V=o.length;k<V;c=++k)for(R=o[c],r=G=T=I[c];T<=R?G<=R:G>=R;r=T<=R?++G:--G)v[c]===0?f=r+d[c]:(f=l[v[c]/2+(r-T)-(N-c)]||0)!==0&&(f+=d[c]),this.codeMap[r]=65535&f;}n.pos=x;}return t.encode=function(n,e){var r,a,o,f,l,c,d,v,x,N,p,T,I,R,k,G,V,z,it,mt,dt,K,M,tt,L,O,q,U,rt,st,ft,nt,ut,At,wt,_,B,j,H,$,J,at,ot,gt,xt,kt;switch(U=new gi,f=Object.keys(n).sort(function(St,Dt){return St-Dt}),e){case "macroman":for(I=0,R=(function(){var St=[];for(T=0;T<256;++T)St.push(0);return St})(),G={0:0},o={},rt=0,ut=f.length;rt<ut;rt++)G[ot=n[a=f[rt]]]==null&&(G[ot]=++I),o[a]={old:n[a],new:G[n[a]]},R[a]=G[n[a]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(R),{charMap:o,subtable:U.data,maxGlyphID:I+1};case "unicode":for(O=[],x=[],V=0,G={},r={},k=d=null,st=0,At=f.length;st<At;st++)G[it=n[a=f[st]]]==null&&(G[it]=++V),r[a]={old:it,new:G[it]},l=G[it]-a,k!=null&&l===d||(k&&x.push(k),O.push(a),d=l),k=a;for(k&&x.push(k),x.push(65535),O.push(65535),tt=2*(M=O.length),K=2*Math.pow(Math.log(M)/Math.LN2,2),N=Math.log(K/2)/Math.LN2,dt=2*M-K,c=[],mt=[],p=[],T=ft=0,wt=O.length;ft<wt;T=++ft){if(L=O[T],v=x[T],L===65535){c.push(0),mt.push(0);break}if(L-(q=r[L].new)>=32768)for(c.push(0),mt.push(2*(p.length+M-T)),a=nt=L;L<=v?nt<=v:nt>=v;a=L<=v?++nt:--nt)p.push(r[a].new);else c.push(q-L),mt.push(0);}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*M+2*p.length),U.writeUInt16(0),U.writeUInt16(tt),U.writeUInt16(K),U.writeUInt16(N),U.writeUInt16(dt),J=0,_=x.length;J<_;J++)a=x[J],U.writeUInt16(a);for(U.writeUInt16(0),at=0,B=O.length;at<B;at++)a=O[at],U.writeUInt16(a);for(gt=0,j=c.length;gt<j;gt++)l=c[gt],U.writeUInt16(l);for(xt=0,H=mt.length;xt<H;xt++)z=mt[xt],U.writeUInt16(z);for(kt=0,$=p.length;kt<$;kt++)I=p[kt],U.writeUInt16(I);return {charMap:r,subtable:U.data,maxGlyphID:V+1}}},t})(),Mu=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="cmap",t.prototype.parse=function(n){var e,r,a;for(n.pos=this.offset,this.version=n.readUInt16(),a=n.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)e=new Lu(n,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return true},t.encode=function(n,e){var r,a;return e==null&&(e="macroman"),r=Lu.encode(n,e),(a=new gi).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},t})(),od=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t})(),sd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=(function(){var e,r;for(r=[],e=0;e<10;++e)r.push(n.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)r.push(n.readInt());return r})(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=(function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(n.readInt());return r})(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t})(),ld=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="post",t.prototype.parse=function(n){var e,r,a;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(r=n.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],a=[];n.pos<this.offset+this.length;)e=n.readByte(),a.push(this.names.push(n.readString(e)));return a;case 151552:return r=n.readUInt16(),this.offsets=n.read(r);case 262144:return this.map=function(){var f,l,c;for(c=[],o=f=0,l=this.file.maxp.numGlyphs;0<=l?f<l:f>l;o=0<=l?++f:--f)c.push(n.readUInt32());return c}.call(this)}},t})(),hd=function(t,n){this.raw=t,this.length=t.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID;},fd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="name",t.prototype.parse=function(n){var e,r,a,o,f,l,c,d,v,x,N;for(n.pos=this.offset,n.readShort(),e=n.readShort(),l=n.readShort(),r=[],o=0;0<=e?o<e:o>e;o=0<=e?++o:--o)r.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+l+n.readShort()});for(c={},o=v=0,x=r.length;v<x;o=++v)a=r[o],n.pos=a.offset,d=n.readString(a.length),f=new hd(d,a),c[N=a.nameID]==null&&(c[N]=[]),c[a.nameID].push(f);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"");}catch(p){this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"");}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},t})(),cd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="maxp",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},t})(),ud=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="hmtx",t.prototype.parse=function(n){var e,r,a,o,f,l,c;for(n.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,v;for(v=[],e=d=0;0<=a?d<a:d>a;e=0<=a?++d:--d)v.push(n.readInt16());return v})(),this.widths=function(){var d,v,x,N;for(N=[],d=0,v=(x=this.metrics).length;d<v;d++)o=x[d],N.push(o.advance);return N}.call(this),r=this.widths[this.widths.length-1],c=[],e=f=0;0<=a?f<a:f>a;e=0<=a?++f:--f)c.push(this.widths.push(r));return c},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t})(),ju=[].slice,dd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var e,r,a,o,f,l,c,d,v,x;return n in this.cache?this.cache[n]:(o=this.file.loca,e=this.file.contents,r=o.indexOf(n),(a=o.lengthOf(n))===0?this.cache[n]=null:(e.pos=this.offset+r,f=(l=new gi(e.read(a))).readShort(),d=l.readShort(),x=l.readShort(),c=l.readShort(),v=l.readShort(),this.cache[n]=f===-1?new gd(l,d,x,c,v):new pd(l,f,d,x,c,v),this.cache[n]))},t.prototype.encode=function(n,e,r){var a,o,f,l,c;for(f=[],o=[],l=0,c=e.length;l<c;l++)a=n[e[l]],o.push(f.length),a&&(f=f.concat(a.encode(r)));return o.push(f.length),{table:f,offsets:o}},t})(),pd=(function(){function t(n,e,r,a,o,f){this.raw=n,this.numberOfContours=e,this.xMin=r,this.yMin=a,this.xMax=o,this.yMax=f,this.compound=false;}return t.prototype.encode=function(){return this.raw.data},t})(),gd=(function(){function t(n,e,r,a,o){var f,l;for(this.raw=n,this.xMin=e,this.yMin=r,this.xMax=a,this.yMax=o,this.compound=true,this.glyphIDs=[],this.glyphOffsets=[],f=this.raw;l=f.readShort(),this.glyphOffsets.push(f.pos),this.glyphIDs.push(f.readUInt16()),32&l;)f.pos+=1&l?4:2,128&l?f.pos+=8:64&l?f.pos+=4:8&l&&(f.pos+=2);}return t.prototype.encode=function(){var n,e,r;for(e=new gi(ju.call(this.raw.data)),n=0,r=this.glyphIDs.length;n<r;++n)e.pos=this.glyphOffsets[n];return e.data},t})(),vd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="loca",t.prototype.parse=function(n){var e,r;return n.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?function(){var a,o;for(o=[],r=0,a=this.length;r<a;r+=2)o.push(2*n.readUInt16());return o}.call(this):function(){var a,o;for(o=[],r=0,a=this.length;r<a;r+=4)o.push(n.readUInt32());return o}.call(this)},t.prototype.indexOf=function(n){return this.offsets[n]},t.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},t.prototype.encode=function(n,e){for(var r=new Uint32Array(this.offsets.length),a=0,o=0,f=0;f<r.length;++f)if(r[f]=a,o<e.length&&e[o]==f){++o,r[f]=a;var l=this.offsets[f],c=this.offsets[f+1]-l;c>0&&(a+=c);}for(var d=new Array(4*r.length),v=0;v<r.length;++v)d[4*v+3]=255&r[v],d[4*v+2]=(65280&r[v])>>8,d[4*v+1]=(16711680&r[v])>>16,d[4*v]=(4278190080&r[v])>>24;return d},t})(),md=(function(){function t(n){this.font=n,this.subset={},this.unicodes={},this.next=33;}return t.prototype.generateCmap=function(){var n,e,r,a,o;for(e in a=this.font.cmap.tables[0].codeMap,n={},o=this.subset)r=o[e],n[e]=a[r];return n},t.prototype.glyphsFor=function(n){var e,r,a,o,f,l,c;for(a={},f=0,l=n.length;f<l;f++)a[o=n[f]]=this.font.glyf.glyphFor(o);for(o in e=[],a)(r=a[o])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(o in c=this.glyphsFor(e))r=c[o],a[o]=r;return a},t.prototype.encode=function(n,e){var r,a,o,f,l,c,d,v,x,N,p,T,I,R,k;for(a in r=Mu.encode(this.generateCmap(),"unicode"),f=this.glyphsFor(n),p={0:0},k=r.charMap)p[(c=k[a]).old]=c.new;for(T in N=r.maxGlyphID,f)T in p||(p[T]=N++);return v=(function(G){var V,z;for(V in z={},G)z[G[V]]=V;return z})(p),x=Object.keys(v).sort(function(G,V){return G-V}),I=(function(){var G,V,z;for(z=[],G=0,V=x.length;G<V;G++)l=x[G],z.push(v[l]);return z})(),o=this.font.glyf.encode(f,I,p),d=this.font.loca.encode(o.offsets,I),R={cmap:this.font.cmap.raw(),glyf:o.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(R["OS/2"]=this.font.os2.raw()),this.font.directory.encode(R)},t})();jt.API.PDFObject=(function(){var t;function n(){}return t=function(e,r){return (Array(r+1).join("0")+e).slice(-r)},n.convert=function(e){var r,a,o,f;if(Array.isArray(e))return "["+(function(){var l,c,d;for(d=[],l=0,c=e.length;l<c;l++)r=e[l],d.push(n.convert(r));return d})().join(" ")+"]";if(typeof e=="string")return "/"+e;if(e?.isString)return "("+e+")";if(e instanceof Date)return "(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in o=["<<"],e)f=e[a],o.push("/"+a+" "+n.convert(f));return o.push(">>"),o.join(`
`)}return ""+e},n})();var chunkO3LP573K=/*#__PURE__*/Object.freeze({__proto__:null,AcroForm:Tp,AcroFormAppearance:It,AcroFormButton:sn,AcroFormCheckBox:js,AcroFormChoiceField:Ia,AcroFormComboBox:Fa,AcroFormEditBox:Rs,AcroFormListBox:Ca,AcroFormPasswordField:Ds,AcroFormPushButton:Ms,AcroFormRadioButton:Oa,AcroFormTextField:Gi,GState:zs,ShadingPattern:Wi,TilingPattern:Ea,default:jt,jsPDF:jt});export{chunkO3LP573K as c,o};