PageSourceSearch

https://hellojimo.com/assets/jspdf-Bi_e3ESl.js

js hellojimo.com collected 2026-10-09 22:01:37 UTC 446,677 bytes, 171 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-DY-cJQTg.js","assets/vendor-Cpj98o6Y.js"])))=>i.map(i=>d[i]);
2const Y1="modulepreload",$1=function(t){return"/"+t},uf={},vl=function(e,n,i){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),s=h?.nonce||h?.getAttribute("nonce");r=Promise.allSettled(n.map(f=>{if(f=$1(f),f in uf)return;uf[f]=!0;const u=f.endsWith(".css"),p=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const m=document.createElement("link");if(m.rel=u?"stylesheet":Y1,u||(m.as="script"),m.crossOrigin="",m.href=f,s&&m.setAttribute("nonce",s),document.head.appendChild(m),u)return new Promise((y,g)=>{m.addEventListener("load",y),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(h){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=h,window.dispatchEvent(s),!s.defaultPrevented)throw h}return r.then(h=>{for(const s of h||[])s.status==="rejected"&&a(s.reason);return e().catch(a)})};function Se(t){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(t)}var li=Uint8Array,qn=Uint16Array,ph=Int32Array,gh=new li([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]),vh=new li([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]),cf=new li([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zu=function(t,e){for(var n=new qn(31),i=0;i<31;++i)n[i]=e+=1<<t[i-1];for(var r=new ph(n[30]),i=1;i<30;++i)for(var a=n[i];a<n[i+1];++a)r[a]=a-n[i]<<5|i;return{b:n,r}},Uu=zu(gh,2),K1=Uu.b,Yl=Uu.r;K1[28]=258,Yl[258]=28;var J1=zu(vh,0),df=J1.r,$l=new qn(32768);for(var Ie=0;Ie<32768;++Ie){var dr=(Ie&43690)>>1|(Ie&21845)<<1;dr=(dr&52428)>>2|(dr&13107)<<2,dr=(dr&61680)>>4|(dr&3855)<<4,$l[Ie]=((dr&65280)>>8|(dr&255)<<8)>>1}var lo=function(t,e,n){for(var i=t.length,r=0,a=new qn(e);r<i;++r)t[r]&&++a[t[r]-1];var h=new qn(e);for(r=1;r<e;++r)h[r]=h[r-1]+a[r-1]<<1;var s;if(n){s=new qn(1<<e);var f=15-e;for(r=0;r<i;++r)if(t[r])for(var u=r<<4|t[r],p=e-t[r],m=h[t[r]-1]++<<p,y=m|(1<<p)-1;m<=y;++m)s[$l[m]>>f]=u}else for(s=new qn(i),r=0;r<i;++r)t[r]&&(s[r]=$l[h[t[r]-1]++]>>15-t[r]);return s},Jr=new li(288);for(var Ie=0;Ie<144;++Ie)Jr[Ie]=8;for(var Ie=144;Ie<256;++Ie)Jr[Ie]=9;for(var Ie=256;Ie<280;++Ie)Jr[Ie]=7;for(var Ie=280;Ie<288;++Ie)Jr[Ie]=8;var Ns=new li(32);for(var Ie=0;Ie<32;++Ie)Ns[Ie]=5;var X1=lo(Jr,9,0),Q1=lo(Ns,5,0),Hu=function(t){return(t+7)/8|0},t2=function(t,e,n){return(n==null||n>t.length)&&(n=t.length),new li(t.subarray(e,n))},Gi=function(t,e,n){n<<=e&7;var i=e/8|0;t[i]|=n,t[i+1]|=n>>8},io=function(t,e,n){n<<=e&7;var i=e/8|0;t[i]|=n,t[i+1]|=n>>8,t[i+2]|=n>>16},ml=function(t,e){for(var n=[],i=0;i<t.length;++i)t[i]&&n.push({s:i,f:t[i]});var r=n.length,a=n.slice();if(!r)return{t:Gu,l:0};if(r==1){var h=new li(n[0].s+1);return h[n[0].s]=1,{t:h,l:1}}n.sort(function(rt,vt){return rt.f-vt.f}),n.push({s:-1,f:25001});var s=n[0],f=n[1],u=0,p=1,m=2;for(n[0]={s:-1,f:s.f+f.f,l:s,r:f};p!=r-1;)s=n[n[u].f<n[m].f?u++:m++],f=n[u!=p&&n[u].f<n[m].f?u++:m++],n[p++]={s:-1,f:s.f+f.f,l:s,r:f};for(var y=a[0].s,i=1;i<r;++i)a[i].s>y&&(y=a[i].s);var g=new qn(y+1),P=Kl(n[p-1],g,0);if(P>e){var i=0,C=0,R=P-e,L=1<<R;for(a.sort(function(vt,ct){return g[ct.s]-g[vt.s]||vt.f-ct.f});i<r;++i){var G=a[i].s;if(g[G]>e)C+=L-(1<<P-g[G]),g[G]=e;else break}for(C>>=R;C>0;){var V=a[i].s;g[V]<e?C-=1<<e-g[V]++-1:++i}for(;i>=0&&C;--i){var M=a[i].s;g[M]==e&&(--g[M],++C)}P=e}return{t:new li(g),l:P}},Kl=function(t,e,n){return t.s==-1?Math.max(Kl(t.l,e,n+1),Kl(t.r,e,n+1)):e[t.s]=n},pf=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new qn(++e),i=0,r=t[0],a=1,h=function(f){n[i++]=f},s=1;s<=e;++s)if(t[s]==r&&s!=e)++a;else{if(!r&&a>2){for(;a>138;a-=138)h(32754);a>2&&(h(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(h(r),--a;a>6;a-=6)h(8304);a>
vendor: 12,015 bytes, lines 2-3
22&&(h(a-3<<5|8208),a=0)}for(;a--;)h(r);a=1,r=t[s]}return{c:n.subarray(0,i),n:e}},ro=function(t,e){for(var n=0,i=0;i<e.length;++i)n+=t[i]*e[i];return n},Wu=function(t,e,n){var i=n.length,r=Hu(e+2);t[r]=i&255,t[r+1]=i>>8,t[r+2]=t[r]^255,t[r+3]=t[r+1]^255;for(var a=0;a<i;++a)t[r+a+4]=n[a];return(r+4+i)*8},gf=function(t,e,n,i,r,a,h,s,f,u,p){Gi(e,p++,n),++r[256];for(var m=ml(r,15),y=m.t,g=m.l,P=ml(a,15),C=P.t,R=P.l,L=pf(y),G=L.c,V=L.n,M=pf(C),rt=M.c,vt=M.n,ct=new qn(19),$=0;$<G.length;++$)++ct[G[$]&31];for(var $=0;$<rt.length;++$)++ct[rt[$]&31];for(var j=ml(ct,7),tt=j.t,N=j.l,O=19;O>4&&!tt[cf[O-1]];--O);var U=u+5<<3,z=ro(r,Jr)+ro(a,Ns)+h,it=ro(r,y)+ro(a,C)+h+14+3*O+ro(ct,tt)+2*ct[16]+3*ct[17]+7*ct[18];if(f>=0&&U<=z&&U<=it)return Wu(e,p,t.subarray(f,f+u));var st,ht,nt,ut;if(Gi(e,p,1+(it<z)),p+=2,it<z){st=lo(y,g,0),ht=y,nt=lo(C,R,0),ut=C;var At=lo(tt,N,0);Gi(e,p,V-257),Gi(e,p+5,vt-1),Gi(e,p+10,O-4),p+=14;for(var $=0;$<O;++$)Gi(e,p+3*$,tt[cf[$]]);p+=3*O;for(var wt=[G,rt],A=0;A<2;++A)for(var D=wt[A],$=0;$<D.length;++$){var B=D[$]&31;Gi(e,p,At[B]),p+=tt[B],B>15&&(Gi(e,p,D[$]>>5&127),p+=D[$]>>12)}}else st=X1,ht=Jr,nt=Q1,ut=Ns;for(var $=0;$<s;++$){var H=i[$];if(H>255){var B=H>>18&31;io(e,p,st[B+257]),p+=ht[B+257],B>7&&(Gi(e,p,H>>23&31),p+=gh[B]);var Y=H&31;io(e,p,nt[Y]),p+=ut[Y],Y>3&&(io(e,p,H>>5&8191),p+=vh[Y])}else io(e,p,st[H]),p+=ht[H]}return io(e,p,st[256]),p+ht[256]},e2=new ph([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gu=new li(0),n2=function(t,e,n,i,r,a){var h=a.z||t.length,s=new li(i+h+5*(1+Math.ceil(h/7e3))+r),f=s.subarray(i,s.length-r),u=a.l,p=(a.r||0)&7;if(e){p&&(f[0]=a.r>>3);for(var m=e2[e-1],y=m>>13,g=m&8191,P=(1<<n)-1,C=a.p||new qn(32768),R=a.h||new qn(P+1),L=Math.ceil(n/3),G=2*L,V=function(Mt){return(t[Mt]^t[Mt+1]<<L^t[Mt+2]<<G)&P},M=new ph(25e3),rt=new qn(288),vt=new qn(32),ct=0,$=0,j=a.i||0,tt=0,N=a.w||0,O=0;j+2<h;++j){var U=V(j),z=j&32767,it=R[U];if(C[z]=it,R[U]=z,N<=j){var st=h-j;if((ct>7e3||tt>24576)&&(st>423||!u)){p=gf(t,f,0,M,rt,vt,$,tt,O,j-O,p),tt=ct=$=0,O=j;for(var ht=0;ht<286;++ht)rt[ht]=0;for(var ht=0;ht<30;++ht)vt[ht]=0}var nt=2,ut=0,At=g,wt=z-it&32767;if(st>2&&U==V(j-wt))for(var A=Math.min(y,st)-1,D=Math.min(32767,j),B=Math.min(258,st);wt<=D&&--At&&z!=it;){if(t[j+nt]==t[j+nt-wt]){for(var H=0;H<B&&t[j+H]==t[j+H-wt];++H);if(H>nt){if(nt=H,ut=wt,H>A)break;for(var Y=Math.min(wt,H-2),X=0,ht=0;ht<Y;++ht){var at=j-wt+ht&32767,ot=C[at],gt=at-ot&32767;gt>X&&(X=gt,it=at)}}}z=it,it=C[z],wt+=z-it&32767}if(ut){M[tt++]=268435456|Yl[nt]<<18|df[ut];var xt=Yl[nt]&31,kt=df[ut]&31;$+=gh[xt]+vh[kt],++rt[257+xt],++vt[kt],N=j+nt,++ct}else M[tt++]=t[j],++rt[t[j]]}}for(j=Math.max(j,N);j<h;++j)M[tt++]=t[j],++rt[t[j]];p=gf(t,f,u,M,rt,vt,$,tt,O,j-O,p),u||(a.r=p&7|f[p/8|0]<<3,p-=7,a.h=R,a.p=C,a.i=j,a.w=N)}else{for(var j=a.w||0;j<h+u;j+=65535){var Lt=j+65535;Lt>=h&&(f[p/8|0]=u,Lt=h),p=Wu(f,p+1,t.subarray(j,Lt))}a.i=h}return t2(s,0,i+Hu(p)+r)},Vu=function(){var t=1,e=0;return{p:function(n){for(var i=t,r=e,a=n.length|0,h=0;h!=a;){for(var s=Math.min(h+2655,a);h<s;++h)r+=i+=n[h];i=(i&65535)+15*(i>>16),r=(r&65535)+15*(r>>16)}t=i,e=r},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},i2=function(t,e,n,i,r){if(!r&&(r={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),h=new li(a.length+t.length);h.set(a),h.set(t,a.length),t=h,r.w=a.length}return n2(t,e.level==null?6:e.level,e.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,n,i,r)},Zu=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},r2=function(t,e){var n=e.level,i=n==0?0:n<6?1:n==9?3:2;if(t[0]=120,t[1]=i<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var r=Vu();r.p(e.dictionary),Zu(t,2,r.d())}};function Jl(t,e){e||(e={});var n=Vu();n.p(t);var i=i2(t,e,e.dictionary?6:2,4);return r2(i,e),Zu(i,i.length-4,n.d()),i}var a2=typeof TextDecoder<"u"&&new TextDecoder,o2=0;try{a2.decode(Gu,{stream:!0}),o2=1}catch{}function s2(t){if(Array.isArray(t))return t}function l2(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,a,h,s=[],f=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(f=(i=a.call(n)).done)&&(s.push(i.value),s.length!==e);f=!0);}catch(p){u=!0,r=p}finally{try{if(!f&&n.return!=null&&(h=n.return(),Object(h)!==h))return}finally{if(u)throw r}}return s}}function vf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function h2(t,e){if(t){if(typeof t=="string")return vf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vf(t,e):void 0}}function f2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mf(t,e){return s2(t)||l2(t,e)||h2(t,e)||f2()}function bf(t,e="utf8"){return new TextDecoder(e).decode(t)}const u2=new TextEncoder;function c2(t){return u2.encode(t)}const d2=1024*8,p2=(()=>{const t=new Uint8Array(4),e=new Uint32Array(t.buffer);return!((e[0]=1)&t[0])})(),bl={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class mh{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=d2,n={}){let i=!1;typeof e=="number"?e=new ArrayBuffer(e):(i=!0,this.lastWrittenByte=e.byteLength);const r=n.offset?n.offset>>>0:0,a=e.byteLength-r;let h=r;(ArrayBuffer.isView(e)||e instanceof mh)&&(e.byteLength!==e.buffer.byteLength&&(h=e.byteOffset+r),e=e.buffer),i?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=e,this.length=a,this.byteLength=a,this.byteOffset=h,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,h,a),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const i=(this.offset+e)*2,r=new Uint8Array(i);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,n){const i=bl[n].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,a=this.buffer.slice(r,r+i);if(this.littleEndian===p2&&n!=="uint8"&&n!=="int8"){const s=new Uint8Array(this.buffer.slice(r,r+i));s.reverse();const f=new bl[n](s.buffer);return this.offset+=i,f.reverse(),f}const h=new bl[n](a);return this.offset+=i,h}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let n="";for(let i=0;i<e;i++)n+=this.readChar();return n}readUtf8(e=1){return bf(this.readBytes(e))}decodeText(e=1,n="utf8"){return bf(this.readBytes(e),n)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let n=0;n<e.length;n++)this._data.setUint8(this.offset++,e[n]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let n=0;n<e.length;n++)this.writeUint8(e.charCodeAt(n));return this}writeUtf8(e){return this.writeBytes(c2(e))}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)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const g2=4,wf=0,yf=1,v2=2;function La(t){let e=t.length;for(;--e>=0;)t[e]=0}const m2=0,Yu=1,b2=2,w2=3,y2=258,bh=29,ko=256,bo=ko+1+bh,_a=30,wh=19,$u=2*bo+1,Hr=15,wl=16,_2=7,yh=256,Ku=16,Ju=17,Xu=18,Xl=new Uint8Array([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]),xs=new Uint8Array([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]),x2=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Qu=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),A2=512,Zi=new Array((bo+2)*2);La(Zi);const ho=new Array(_a*2);La(ho);const wo=new Array(A2);La(wo);const yo=new Array(y2-w2+1);La(yo);const _h=new Array(bh);La(_h);const Ls=new Array(_a);La(Ls);function yl(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}let tc,ec,nc;function _l(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const ic=t=>t<256?wo[t]:wo[256+(t>>>7)],_o=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},Pn=(t,e,n)=>{t.bi_valid>wl-n?(t.bi_buf|=e<<t.bi_valid&65535,_o(t,t.bi_buf),t.bi_buf=e>>wl-t.bi_valid,t.bi_valid+=n-wl):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},xi=(t,e,n)=>{Pn(t,n[e*2],n[e*2+1])},rc=(t,e)=>{let n=0;do n|=t&1,t>>>=1,n<<=1;while(--e>0);return n>>>1},S2=t=>{t.bi_valid===16?(_o(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
vendor: 44,645 bytes, line 3
3=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},N2=(t,e)=>{const n=e.dyn_tree,i=e.max_code,r=e.stat_desc.static_tree,a=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,f=e.stat_desc.max_length;let u,p,m,y,g,P,C=0;for(y=0;y<=Hr;y++)t.bl_count[y]=0;for(n[t.heap[t.heap_max]*2+1]=0,u=t.heap_max+1;u<$u;u++)p=t.heap[u],y=n[n[p*2+1]*2+1]+1,y>f&&(y=f,C++),n[p*2+1]=y,!(p>i)&&(t.bl_count[y]++,g=0,p>=s&&(g=h[p-s]),P=n[p*2],t.opt_len+=P*(y+g),a&&(t.static_len+=P*(r[p*2+1]+g)));if(C!==0){do{for(y=f-1;t.bl_count[y]===0;)y--;t.bl_count[y]--,t.bl_count[y+1]+=2,t.bl_count[f]--,C-=2}while(C>0);for(y=f;y!==0;y--)for(p=t.bl_count[y];p!==0;)m=t.heap[--u],!(m>i)&&(n[m*2+1]!==y&&(t.opt_len+=(y-n[m*2+1])*n[m*2],n[m*2+1]=y),p--)}},ac=(t,e,n)=>{const i=new Array(Hr+1);let r=0,a,h;for(a=1;a<=Hr;a++)r=r+n[a-1]<<1,i[a]=r;for(h=0;h<=e;h++){let s=t[h*2+1];s!==0&&(t[h*2]=rc(i[s]++,s))}},L2=()=>{let t,e,n,i,r;const a=new Array(Hr+1);for(n=0,i=0;i<bh-1;i++)for(_h[i]=n,t=0;t<1<<Xl[i];t++)yo[n++]=i;for(yo[n-1]=i,r=0,i=0;i<16;i++)for(Ls[i]=r,t=0;t<1<<xs[i];t++)wo[r++]=i;for(r>>=7;i<_a;i++)for(Ls[i]=r<<7,t=0;t<1<<xs[i]-7;t++)wo[256+r++]=i;for(e=0;e<=Hr;e++)a[e]=0;for(t=0;t<=143;)Zi[t*2+1]=8,t++,a[8]++;for(;t<=255;)Zi[t*2+1]=9,t++,a[9]++;for(;t<=279;)Zi[t*2+1]=7,t++,a[7]++;for(;t<=287;)Zi[t*2+1]=8,t++,a[8]++;for(ac(Zi,bo+1,a),t=0;t<_a;t++)ho[t*2+1]=5,ho[t*2]=rc(t,5);tc=new yl(Zi,Xl,ko+1,bo,Hr),ec=new yl(ho,xs,0,_a,Hr),nc=new yl(new Array(0),x2,0,wh,_2)},oc=t=>{let e;for(e=0;e<bo;e++)t.dyn_ltree[e*2]=0;for(e=0;e<_a;e++)t.dyn_dtree[e*2]=0;for(e=0;e<wh;e++)t.bl_tree[e*2]=0;t.dyn_ltree[yh*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},sc=t=>{t.bi_valid>8?_o(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},_f=(t,e,n,i)=>{const r=e*2,a=n*2;return t[r]<t[a]||t[r]===t[a]&&i[e]<=i[n]},xl=(t,e,n)=>{const i=t.heap[n];let r=n<<1;for(;r<=t.heap_len&&(r<t.heap_len&&_f(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!_f(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i},xf=(t,e,n)=>{let i,r,a=0,h,s;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+a++]&255,i+=(t.pending_buf[t.sym_buf+a++]&255)<<8,r=t.pending_buf[t.sym_buf+a++],i===0?xi(t,r,e):(h=yo[r],xi(t,h+ko+1,e),s=Xl[h],s!==0&&(r-=_h[h],Pn(t,r,s)),i--,h=ic(i),xi(t,h,n),s=xs[h],s!==0&&(i-=Ls[h],Pn(t,i,s)));while(a<t.sym_next);xi(t,yh,e)},Ql=(t,e)=>{const n=e.dyn_tree,i=e.stat_desc.static_tree,r=e.stat_desc.has_stree,a=e.stat_desc.elems;let h,s,f=-1,u;for(t.heap_len=0,t.heap_max=$u,h=0;h<a;h++)n[h*2]!==0?(t.heap[++t.heap_len]=f=h,t.depth[h]=0):n[h*2+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=f<2?++f:0,n[u*2]=1,t.depth[u]=0,t.opt_len--,r&&(t.static_len-=i[u*2+1]);for(e.max_code=f,h=t.heap_len>>1;h>=1;h--)xl(t,n,h);u=a;do h=t.heap[1],t.heap[1]=t.heap[t.heap_len--],xl(t,n,1),s=t.heap[1],t.heap[--t.heap_max]=h,t.heap[--t.heap_max]=s,n[u*2]=n[h*2]+n[s*2],t.depth[u]=(t.depth[h]>=t.depth[s]?t.depth[h]:t.depth[s])+1,n[h*2+1]=n[s*2+1]=u,t.heap[1]=u++,xl(t,n,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],N2(t,e),ac(n,f,t.bl_count)},Af=(t,e,n)=>{let i,r=-1,a,h=e[0*2+1],s=0,f=7,u=4;for(h===0&&(f=138,u=3),e[(n+1)*2+1]=65535,i=0;i<=n;i++)a=h,h=e[(i+1)*2+1],!(++s<f&&a===h)&&(s<u?t.bl_tree[a*2]+=s:a!==0?(a!==r&&t.bl_tree[a*2]++,t.bl_tree[Ku*2]++):s<=10?t.bl_tree[Ju*2]++:t.bl_tree[Xu*2]++,s=0,r=a,h===0?(f=138,u=3):a===h?(f=6,u=3):(f=7,u=4))},Sf=(t,e,n)=>{let i,r=-1,a,h=e[0*2+1],s=0,f=7,u=4;for(h===0&&(f=138,u=3),i=0;i<=n;i++)if(a=h,h=e[(i+1)*2+1],!(++s<f&&a===h)){if(s<u)do xi(t,a,t.bl_tree);while(--s!==0);else a!==0?(a!==r&&(xi(t,a,t.bl_tree),s--),xi(t,Ku,t.bl_tree),Pn(t,s-3,2)):s<=10?(xi(t,Ju,t.bl_tree),Pn(t,s-3,3)):(xi(t,Xu,t.bl_tree),Pn(t,s-11,7));s=0,r=a,h===0?(f=138,u=3):a===h?(f=6,u=3):(f=7,u=4)}},k2=t=>{let e;for(Af(t,t.dyn_ltree,t.l_desc.max_code),Af(t,t.dyn_dtree,t.d_desc.max_code),Ql(t,t.bl_desc),e=wh-1;e>=3&&t.bl_tree[Qu[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},P2=(t,e,n,i)=>{let r;for(Pn(t,e-257,5),Pn(t,n-1,5),Pn(t,i-4,4),r=0;r<i;r++)Pn(t,t.bl_tree[Qu[r]*2+1],3);Sf(t,t.dyn_ltree,e-1),Sf(t,t.dyn_dtree,n-1)},C2=t=>{let e=4093624447,n;for(n=0;n<=31;n++,e>>>=1)if(e&1&&t.dyn_ltree[n*2]!==0)return wf;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return yf;for(n=32;n<ko;n++)if(t.dyn_ltree[n*2]!==0)return yf;return wf};let Nf=!1;const F2=t=>{Nf||(L2(),Nf=!0),t.l_desc=new _l(t.dyn_ltree,tc),t.d_desc=new _l(t.dyn_dtree,ec),t.bl_desc=new _l(t.bl_tree,nc),t.bi_buf=0,t.bi_valid=0,oc(t)},lc=(t,e,n,i)=>{Pn(t,(m2<<1)+(i?1:0),3),sc(t),_o(t,n),_o(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},E2=t=>{Pn(t,Yu<<1,3),xi(t,yh,Zi),S2(t)},I2=(t,e,n,i)=>{let r,a,h=0;t.level>0?(t.strm.data_type===v2&&(t.strm.data_type=C2(t)),Ql(t,t.l_desc),Ql(t,t.d_desc),h=k2(t),r=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=r&&(r=a)):r=a=n+5,n+4<=r&&e!==-1?lc(t,e,n,i):t.strategy===g2||a===r?(Pn(t,(Yu<<1)+(i?1:0),3),xf(t,Zi,ho)):(Pn(t,(b2<<1)+(i?1:0),3),P2(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),xf(t,t.dyn_ltree,t.dyn_dtree)),oc(t),i&&sc(t)},O2=(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,e===0?t.dyn_ltree[n*2]++:(t.matches++,e--,t.dyn_ltree[(yo[n]+ko+1)*2]++,t.dyn_dtree[ic(e)*2]++),t.sym_next===t.sym_end);var T2=F2,R2=lc,D2=I2,j2=O2,B2=E2,M2={_tr_init:T2,_tr_stored_block:R2,_tr_flush_block:D2,_tr_tally:j2,_tr_align:B2};const q2=(t,e,n,i)=>{let r=t&65535|0,a=t>>>16&65535|0,h=0;for(;n!==0;){h=n>2e3?2e3:n,n-=h;do r=r+e[i++]|0,a=a+r|0;while(--h);r%=65521,a%=65521}return r|a<<16|0};var xo=q2;const z2=()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e},U2=new Uint32Array(z2()),H2=(t,e,n,i)=>{const r=U2,a=i+n;t^=-1;for(let h=i;h<a;h++)t=t>>>8^r[(t^e[h])&255];return t^-1};var sn=H2,Aa={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"},Po={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:W2,_tr_stored_block:th,_tr_flush_block:G2,_tr_tally:wr,_tr_align:V2}=M2,{Z_NO_FLUSH:yr,Z_PARTIAL_FLUSH:Z2,Z_FULL_FLUSH:Y2,Z_FINISH:Jn,Z_BLOCK:Lf,Z_OK:pn,Z_STREAM_END:kf,Z_STREAM_ERROR:Si,Z_DATA_ERROR:$2,Z_BUF_ERROR:Al,Z_DEFAULT_COMPRESSION:K2,Z_FILTERED:J2,Z_HUFFMAN_ONLY:ds,Z_RLE:X2,Z_FIXED:Q2,Z_DEFAULT_STRATEGY:t0,Z_UNKNOWN:e0,Z_DEFLATED:Os}=Po,n0=9,i0=15,r0=8,a0=29,o0=256,eh=o0+1+a0,s0=30,l0=19,h0=2*eh+1,f0=15,de=3,mr=258,Ni=mr+de+1,u0=32,Sa=42,xh=57,nh=69,ih=73,rh=91,ah=103,Wr=113,oo=666,Nn=1,ka=2,Xr=3,Pa=4,c0=3,Gr=(t,e)=>(t.msg=Aa[e],e),Pf=t=>t*2-(t>4?9:0),gr=t=>{let e=t.length;for(;--e>=0;)t[e]=0},d0=t=>{let e,n,i,r=t.w_size;e=t.hash_size,i=e;do n=t.head[--i],t.head[i]=n>=r?n-r:0;while(--e);e=r,i=e;do n=t.prev[--i],t.prev[i]=n>=r?n-r:0;while(--e)};let p0=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask,_r=p0;const Mn=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),n!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,e.pending===0&&(e.pending_out=0))},zn=(t,e)=>{G2(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Mn(t.strm)},be=(t,e)=>{t.pending_buf[t.pending++]=e},ao=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},oh=(t,e,n,i)=>{let r=t.avail_in;return r>i&&(r=i),r===0?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),n),t.state.wrap===1?t.adler=xo(t.adler,e,r,n):t.state.wrap===2&&(t.adler=sn(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)},hc=(t,e)=>{let n=t.max_chain_length,i=t.strstart,r,a,h=t.prev_length,s=t.nice_match;const f=t.strstart>t.w_size-Ni?t.strstart-(t.w_size-Ni):0,u=t.window,p=t.w_mask,m=t.prev,y=t.strstart+mr;let g=u[i+h-1],P=u[i+h];t.prev_length>=t.good_match&&(n>>=2),s>t.lookahead&&(s=t.lookahead);do if(r=e,!(u[r+h]!==P||u[r+h-1]!==g||u[r]!==u[i]||u[++r]!==u[i+1])){i+=2,r++;do;while(u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&i<y);if(a=mr-(y-i),i=y-mr,a>h){if(t.match_start=e,h=a,a>=s)break;g=u[i+h-1],P=u[i+h]}}while((e=m[e&p])>f&&--n!==0);return h<=t.lookahead?h:t.lookahead},Na=t=>{const e=t.w_size;let n,i,r;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-Ni)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),d0(t),i+=e),t.strm.avail_in===0)break;if(n=oh(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=de)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=_r(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=_r(t,t.ins_h,t.window[r+de-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<de)););}while(t.lookahead<Ni&&t.strm.avail_in!==0)},fc=(t,e)=>{let n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,r,a,h=0,s=t.strm.avail_in;do{if(i=65535,a=t.bi_valid+42>>3,t.strm.avail_out<a||(a=t.strm.avail_out-a,r=t.strstart-t.block_start,i>r+t.strm.avail_in&&(i=r+t.strm.avail_in),i>a&&(i=a),i<n&&(i===0&&e!==Jn||e===yr||i!==r+t.strm.avail_in)))break;h=e===Jn&&i===r+t.strm.avail_in?1:0,th(t,0,0,h),t.pending_buf[t.pending-4]=i,t.pending_buf[t.pending-3]=i>>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,Mn(t.strm),r&&(r>i&&(r=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+r),t.strm.next_out),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r,t.block_start+=r,i-=r),i&&(oh(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(h===0);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),h?Pa:e!==yr&&e!==Jn&&t.strm.avail_in===0&&t.strstart===t.block_start?ka:(a=t.window_size-t.strstart,t.strm.avail_in>a&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,a+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),a>t.strm.avail_in&&(a=t.strm.avail_in),a&&(oh(t.strm,t.window,t.strstart,a),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.high_water<t.strstart&&(t.high_water=t.strstart),a=t.bi_valid+42>>3,a=t.pending_buf_size-a>65535?65535:t.pending_buf_size-a,n=a>t.w_size?t.w_size:a,r=t.strstart-t.block_start,(r>=n||(r||e===Jn)&&e!==yr&&t.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,h=e===Jn&&t.strm.avail_in===0&&i===r?1:0,th(t,t.block_start,i,h),t.block_start+=i,Mn(t.strm)),h?Xr:Nn)},Sl=(t,e)=>{let n,i;for(;;){if(t.lookahead<Ni){if(Na(t),t.lookahead<Ni&&e===yr)return Nn;if(t.lookahead===0)break}if(n=0,t.lookahead>=de&&(t.ins_h=_r(t,t.ins_h,t.window[t.strstart+de-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),n!==0&&t.strstart-n<=t.w_size-Ni&&(t.match_length=hc(t,n)),t.match_length>=de)if(i=wr(t,t.strstart-t.match_start,t.match_length-de),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=de){t.match_length--;do t.strstart++,t.ins_h=_r(t,t.ins_h,t.window[t.strstart+de-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=_r(t,t.ins_h,t.window[t.strstart+1]);else i=wr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(zn(t,!1),t.strm.avail_out===0))return Nn}return t.insert=t.strstart<de-1?t.strstart:de-1,e===Jn?(zn(t,!0),t.strm.avail_out===0?Xr:Pa):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Nn:ka},ga=(t,e)=>{let n,i,r;for(;;){if(t.lookahead<Ni){if(Na(t),t.lookahead<Ni&&e===yr)return Nn;if(t.lookahead===0)break}if(n=0,t.lookahead>=de&&(t.ins_h=_r(t,t.ins_h,t.window[t.strstart+de-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=de-1,n!==0&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-Ni&&(t.match_length=hc(t,n),t.match_length<=5&&(t.strategy===J2||t.match_length===de&&t.strstart-t.match_start>4096)&&(t.match_length=de-1)),t.prev_length>=de&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-de,i=wr(t,t.strstart-1-t.prev_match,t.prev_length-de),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=r&&(t.ins_h=_r(t,t.ins_h,t.window[t.strstart+de-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=de-1,t.strstart++,i&&(zn(t,!1),t.strm.avail_out===0))return Nn}else if(t.match_available){if(i=wr(t,0,t.window[t.strstart-1]),i&&zn(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Nn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=wr(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<de-1?t.strstart:de-1,e===Jn?(zn(t,!0),t.strm.avail_out===0?Xr:Pa):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Nn:ka},g0=(t,e)=>{let n,i,r,a;const h=t.window;for(;;){if(t.lookahead<=mr){if(Na(t),t.lookahead<=mr&&e===yr)return Nn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=de&&t.strstart>0&&(r=t.strstart-1,i=h[r],i===h[++r]&&i===h[++r]&&i===h[++r])){a=t.strstart+mr;do;while(i===h[++r]&&i===h[++r]&&i===h[++r]&&i===h[++r]&&i===h[++r]&&i===h[++r]&&i===h[++r]&&i===h[++r]&&r<a);t.match_length=mr-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=de?(n=wr(t,1,t.match_length-de),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=wr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(zn(t,!1),t.strm.avail_out===0))return Nn}return t.insert=0,e===Jn?(zn(t,!0),t.strm.avail_out===0?Xr:Pa):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Nn:ka},v0=(t,e)=>{let n;for(;;){if(t.lookahead===0&&(Na(t),t.lookahead===0)){if(e===yr)return Nn;break}if(t.match_length=0,n=wr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(zn(t,!1),t.strm.avail_out===0))return Nn}return t.insert=0,e===Jn?(zn(t,!0),t.strm.avail_out===0?Xr:Pa):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Nn:ka};function yi(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}const so=[new yi(0,0,0,0,fc),new yi(4,4,8,4,Sl),new yi(4,5,16,8,Sl),new yi(4,6,32,32,Sl),new yi(4,4,16,16,ga),new yi(8,16,32,32,ga),new yi(8,16,128,128,ga),new yi(8,32,128,256,ga),new yi(32,128,258,1024,ga),new yi(32,258,258,4096,ga)],m0=t=>{t.window_size=2*t.w_size,gr(t.head),t.max_lazy_match=so[t.level].max_lazy,t.good_match=so[t.level].good_length,t.nice_match=so[t.level].nice_length,t.max_chain_length=so[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=de-1,t.match_available=0,t.ins_h=0};function b0(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Os,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(h0*2),this.dyn_dtree=new Uint16Array((2*s0+1)*2),this.bl_tree=new Uint16Array((2*l0+1)*2),gr(this.dyn_ltree),gr(this.dyn_dtree),gr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(f0+1),this.heap=new Uint16Array(2*eh+1),gr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*eh+1),gr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Co=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==Sa&&e.status!==xh&&e.status!==nh&&e.status!==ih&&e.status!==rh&&e.status!==ah&&e.status!==Wr&&e.status!==oo?1:0},uc=t=>{if(Co(t))return Gr(t,Si);t.total_in=t.total_out=0,t.data_type=e0;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?xh:e.wrap?Sa:Wr,t.adler=e.wrap===2?0:1,e.last_flush=-2,W2(e),pn},cc=t=>{const e=uc(t);return e===pn&&m0(t.state),e},w0=(t,e)=>Co(t)||t.state.wrap!==2?Si:(t.state.gzhead=e,pn),dc=(t,e,n,i,r,a)=>{if(!t)return Si;let h=1;if(e===K2&&(e=6),i<0?(h=0,i=-i):i>15&&(h=2,i-=16),r<1||r>n0||n!==Os||i<8||i>15||e<0||e>9||a<0||a>Q2||i===8&&h!==1)return Gr(t,Si);i===8&&(i=9);const s=new b0;return t.state=s,s.strm=t,s.status=Sa,s.wrap=h,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+de-1)/de),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=e,s.strategy=a,s.method=n,cc(t)},y0=(t,e)=>dc(t,e,Os,i0,r0,t0),_0=(t,e)=>{if(Co(t)||e>Lf||e<0)return t?Gr(t,Si):Si;const n=t.state;if(!t.output||t.avail_in!==0&&!t.input||n.status===oo&&e!==Jn)return Gr(t,t.avail_out===0?Al:Si);const i=n.last_flush;if(n.last_flush=e,n.pending!==0){if(Mn(t),t.avail_out===0)return n.last_flush=-1,pn}else if(t.avail_in===0&&Pf(e)<=Pf(i)&&e!==Jn)return Gr(t,Al);if(n.status===oo&&t.avail_in!==0)return Gr(t,Al);if(n.status===Sa&&n.wrap===0&&(n.status=Wr),n.status===Sa){let r=Os+(n.w_bits-8<<4)<<8,a=-1;if(n.strategy>=ds||n.level<2?a=0:n.level<6?a=1:n.level===6?a=2:a=3,r|=a<<6,n.strstart!==0&&(r|=u0),r+=31-r%31,ao(n,r),n.strstart!==0&&(ao(n,t.adler>>>16),ao(n,t.adler&65535)),t.adler=1,n.status=Wr,Mn(t),n.pending!==0)return n.last_flush=-1,pn}if(n.status===xh){if(t.adler=0,be(n,31),be(n,139),be(n,8),n.gzhead)be(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),be(n,n.gzhead.time&255),be(n,n.gzhead.time>>8&255),be(n,n.gzhead.time>>16&255),be(n,n.gzhead.time>>24&255),be(n,n.level===9?2:n.strategy>=ds||n.level<2?4:0),be(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(be(n,n.gzhead.extra.length&255),be(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=sn(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=nh;else if(be(n,0),be(n,0),be(n,0),be(n,0),be(n,0),be(n,n.level===9?2:n.strategy>=ds||n.level<2?4:0),be(n,c0),n.status=Wr,Mn(t),n.pending!==0)return n.last_flush=-1,pn}if(n.status===nh){if(n.gzhead.extra){let r=n.pending,a=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+a>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>r&&(t.adler=sn(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex+=s,Mn(t),n.pending!==0)return n.last_flush=-1,pn;r=0,a-=s}let h=new Uint8Array(n.gzhead.extra);n.pending_buf.set(h.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending+=a,n.gzhead.hcrc&&n.pending>r&&(t.adler=sn(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=ih}if(n.status===ih){if(n.gzhead.name){let r=n.pending,a;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=sn(t.adler,n.pending_buf,n.pending-r,r)),Mn(t),n.pending!==0)return n.last_flush=-1,pn;r=0}n.gzindex<n.gzhead.name.length?a=n.gzhead.name.charCodeAt(n.gzindex++)&255:a=0,be(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=sn(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=rh}if(n.status===rh){if(n.gzhead.comment){let r=n.pending,a;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(t.adler=sn(t.adler,n.pending_buf,n.pending-r,r)),Mn(t),n.pending!==0)return n.last_flush=-1,pn;r=0}n.gzindex<n.gzhead.comment.length?a=n.gzhead.comment.charCodeAt(n.gzindex++)&255:a=0,be(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>r&&(t.adler=sn(t.adler,n.pending_buf,n.pending-r,r))}n.status=ah}if(n.status===ah){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Mn(t),n.pending!==0))return n.last_flush=-1,pn;be(n,t.adler&255),be(n,t.adler>>8&255),t.adler=0}if(n.status=Wr,Mn(t),n.pending!==0)return n.last_flush=-1,pn}if(t.avail_in!==0||n.lookahead!==0||e!==yr&&n.status!==oo){let r=n.level===0?fc(n,e):n.strategy===ds?v0(n,e):n.strategy===X2?g0(n,e):so[n.level].func(n,e);if((r===Xr||r===Pa)&&(n.status=oo),r===Nn||r===Xr)return t.avail_out===0&&(n.last_flush=-1),pn;if(r===ka&&(e===Z2?V2(n):e!==Lf&&(th(n,0,0,!1),e===Y2&&(gr(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Mn(t),t.avail_out===0))return n.last_flush=-1,pn}return e!==Jn?pn:n.wrap<=0?kf:(n.wrap===2?(be(n,t.adler&255),be(n,t.adler>>8&255),be(n,t.adler>>16&255),be(n,t.adler>>24&255),be(n,t.total_in&255),be(n,t.total_in>>8&255),be(n,t.total_in>>16&255),be(n,t.total_in>>24&255)):(ao(n,t.adler>>>16),ao(n,t.adler&65535)),Mn(t),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?pn:kf)},x0=t=>{if(Co(t))return Si;const e=t.state.status;return t.state=null,e===Wr?Gr(t,$2):pn},A0=(t,e)=>{let n=e.length;if(Co(t))return Si;const i=t.state,r=i.wrap;if(r===2||r===1&&i.status!==Sa||i.lookahead)return Si;if(r===1&&(t.adler=xo(t.adler,e,n,0)),i.wrap=0,n>=i.w_size){r===0&&(gr(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(e.subarray(n-i.w_size,n),0),e=f,n=i.w_size}const a=t.avail_in,h=t.next_in,s=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Na(i);i.lookahead>=de;){let f=i.strstart,u=i.lookahead-(de-1);do i.ins_h=_r(i,i.ins_h,i.window[f+de-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--u);i.strstart=f,i.lookahead=de-1,Na(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=de-1,i.match_available=0,t.next_in=h,t.input=s,t.avail_in=a,i.wrap=r,pn};var S0=y0,N0=dc,L0=cc,k0=uc,P0=w0,C0=_0,F0=x0,E0=A0,I0="pako deflate (from Nodeca project)",fo={deflateInit:S0,deflateInit2:N0,deflateReset:L0,deflateResetKeep:k0,deflateSetHeader:P0,deflate:C0,deflateEnd:F0,deflateSetDictionary:E0,deflateInfo:I0};const O0=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var T0=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const i in n)O0(n,i)&&(t[i]=n[i])}}return t},R0=t=>{let e=0;for(let i=0,r=t.length;i<r;i++)e+=t[i].length;const n=new Uint8Array(e);for(let i=0,r=0,a=t.length;i<a;i++){let h=t[i];n.set(h,r),r+=h.length}return n},Ts={assign:T0,flattenChunks:R0};let pc=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{pc=!1}const Ao=new Uint8Array(256);for(let t=0;t<256;t++)Ao[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ao[254]=Ao[254]=1;var D0=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,n,i,r,a,h=t.length,s=0;for(r=0;r<h;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<h&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),a=0,r=0;a<s;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<h&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|n&63):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|n&63):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|n&63);return e};const j0=(t,e)=>{if(e<65534&&t.subarray&&pc)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let i=0;i<e;i++)n+=String.fromCharCode(t[i]);return n};var B0=(t,e)=>{const n=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let i,r;const a=new Array(n*2);for(r=0,i=0;i<n;){let h=t[i++];if(h<128){a[r++]=h;continue}let s=Ao[h];if(s>4){a[r++]=65533,i+=s-1;continue}for(h&=s===2?31:s===3?15:7;s>1&&i<n;)h=h<<6|t[i++]&63,s--;if(s>1){a[r++]=65533;continue}h<65536?a[r++]=h:(h-=65536,a[r++]=55296|h>>10&1023,a[r++]=56320|h&1023)}return j0(a,r)},M0=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let n=e-1;for(;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+Ao[t[n]]>e?n:e},So={string2buf:D0,buf2string:B0,utf8border:M0};function q0(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var gc=q0;const vc=Object.prototype.toString,{Z_NO_FLUSH:z0,Z_SYNC_FLUSH:U0,Z_FULL_FLUSH:H0,Z_FINISH:W0,Z_OK:ks,Z_STREAM_END:G0,Z_DEFAULT_COMPRESSION:V0,Z_DEFAULT_STRATEGY:Z0,Z_DEFLATED:Y0}=Po;function Ah(t){this.options=Ts.assign({level:V0,method:Y0,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z0},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new gc,this.strm.avail_out=0;let n=fo.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==ks)throw new Error(Aa[n]);if(e.header&&fo.deflateSetHeader(this.strm,e.header),e.dictionary){let i;if(typeof e.dictionary=="string"?i=So.string2buf(e.dictionary):vc.call(e.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(e.dictionary):i=e.dictionary,n=fo.deflateSetDictionary(this.strm,i),n!==ks)throw new Error(Aa[n]);this._dict_set=!0}}Ah.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?W0:z0,typeof t=="string"?n.input=So.string2buf(t):vc.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(a===U0||a===H0)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(r=fo.deflate(n,a),r===G0)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=fo.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===ks;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Ah.prototype.onData=function(t){this.chunks.push(t)};Ah.prototype.onEnd=function(t){t===ks&&(this.result=Ts.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const ps=16209,$0=16191;var K0=function(e,n){let i,r,a,h,s,f,u,p,m,y,g,P,C,R,L,G,V,M,rt,vt,ct,$,j,tt;const N=e.state;i=e.next_in,j=e.input,r=i+(e.avail_in-5),a=e.next_out,tt=e.output,h=a-(n-e.avail_out),s=a+(e.avail_out-257),f=N.dmax,u=N.wsize,p=N.whave,m=N.wnext,y=N.window,g=N.hold,P=N.bits,C=N.lencode,R=N.distcode,L=(1<<N.lenbits)-1,G=(1<<N.distbits)-1;t:do{P<15&&(g+=j[i++]<<P,P+=8,g+=j[i++]<<P,P+=8),V=C[g&L];e:for(;;){if(M=V>>>24,g>>>=M,P-=M,M=V>>>16&255,M===0)tt[a++]=V&65535;else if(M&16){rt=V&65535,M&=15,M&&(P<M&&(g+=j[i++]<<P,P+=8),rt+=g&(1<<M)-1,g>>>=M,P-=M),P<15&&(g+=j[i++]<<P,P+=8,g+=j[i++]<<P,P+=8),V=R[g&G];n:for(;;){if(M=V>>>24,g>>>=M,P-=M,M=V>>>16&255,M&16){if(vt=V&65535,M&=15,P<M&&(g+=j[i++]<<P,P+=8,P<M&&(g+=j[i++]<<P,P+=8)),vt+=g&(1<<M)-1,vt>f){e.msg="invalid distance too far back",N.mode=ps;break t}if(g>>>=M,P-=M,M=a-h,vt>M){if(M=vt-M,M>p&&N.sane){e.msg="invalid distance too far back",N.mode=ps;break t}if(ct=0,$=y,m===0){if(ct+=u-M,M<rt){rt-=M;do tt[a++]=y[ct++];while(--M);ct=a-vt,$=tt}}else if(m<M){if(ct+=u+m-M,M-=m,M<rt){rt-=M;do tt[a++]=y[ct++];while(--M);if(ct=0,m<rt){M=m,rt-=M;do tt[a++]=y[ct++];while(--M);ct=a-vt,$=tt}}}else if(ct+=m-M,M<rt){rt-=M;do tt[a++]=y[ct++];while(--M);ct=a-vt,$=tt}for(;rt>2;)tt[a++]=$[ct++],tt[a++]=$[ct++],tt[a++]=$[ct++],rt-=3;rt&&(tt[a++]=$[ct++],rt>1&&(tt[a++]=$[ct++]))}else{ct=a-vt;do tt[a++]=tt[ct++],tt[a++]=tt[ct++],tt[a++]=tt[ct++],rt-=3;while(rt>2);rt&&(tt[a++]=tt[ct++],rt>1&&(tt[a++]=tt[ct++]))}}else if(M&64){e.msg="invalid distance code",N.mode=ps;break t}else{V=R[(V&65535)+(g&(1<<M)-1)];continue n}break}}else if(M&64)if(M&32){N.mode=$0;break t}else{e.msg="invalid literal/length code",N.mode=ps;break t}else{V=C[(V&65535)+(g&(1<<M)-1)];continue e}break}}while(i<r&&a<s);rt=P>>3,i-=rt,P-=rt<<3,g&=(1<<P)-1,e.next_in=i,e.next_out=a,e.avail_in=i<r?5+(r-i):5-(i-r),e.avail_out=a<s?257+(s-a):257-(a-s),N.hold=g,N.bits=P};const va=15,Cf=852,Ff=592,Ef=0,Nl=1,If=2,J0=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]),X0=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]),Q0=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]),td=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]),ed=(t,e,n,i,r,a,h,s)=>{const f=s.bits;let u=0,p=0,m=0,y=0,g=0,P=0,C=0,R=0,L=0,G=0,V,M,rt,vt,ct,$=null,j;const tt=new Uint16Array(va+1),N=new Uint16Array(va+1);let O=null,U,z,it;for(u=0;u<=va;u++)tt[u]=0;for(p=0;p<i;p++)tt[e[n+p]]++;for(g=f,y=va;y>=1&&tt[y]===0;y--);if(g>y&&(g=y),y===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(m=1;m<y&&tt[m]===0;m++);for(g<m&&(g=m),R=1,u=1;u<=va;u++)if(R<<=1,R-=tt[u],R<0)return-1;if(R>0&&(t===Ef||y!==1))return-1;for(N[1]=0,u=1;u<va;u++)N[u+1]=N[u]+tt[u];for(p=0;p<i;p++)e[n+p]!==0&&(h[N[e[n+p]]++]=p);if(t===Ef?($=O=h,j=20):t===Nl?($=J0,O=X0,j=257):($=Q0,O=td,j=0),G=0,p=0,u=m,ct=a,P=g,C=0,rt=-1,L=1<<g,vt=L-1,t===Nl&&L>Cf||t===If&&L>Ff)return 1;for(;;){U=u-C,h[p]+1<j?(z=0,it=h[p]):h[p]>=j?(z=O[h[p]-j],it=$[h[p]-j]):(z=96,it=0),V=1<<u-C,M=1<<P,m=M;do M-=V,r[ct+(G>>C)+M]=U<<24|z<<16|it|0;while(M!==0);for(V=1<<u-1;G&V;)V>>=1;if(V!==0?(G&=V-1,G+=V):G=0,p++,--tt[u]===0){if(u===y)break;u=e[n+h[p]]}if(u>g&&(G&vt)!==rt){for(C===0&&(C=g),ct+=m,P=u-C,R=1<<P;P+C<y&&(R-=tt[P+C],!(R<=0));)P++,R<<=1;if(L+=1<<P,t===Nl&&L>Cf||t===If&&L>Ff)return 1;rt=G&vt,r[rt]=g<<24|P<<16|ct-a|0}}return G!==0&&(r[ct+G]=u-C<<24|64<<16|0),s.bits=g,0};var uo=ed;const nd=0,mc=1,bc=2,{Z_FINISH:Of,Z_BLOCK:id,Z_TREES:gs,Z_OK:Qr,Z_STREAM_END:rd,Z_NEED_DICT:ad,Z_STREAM_ERROR:Xn,Z_DATA_ERROR:wc,Z_MEM_ERROR:yc,Z_BUF_ERROR:od,Z_DEFLATED:Tf}=Po,Rs=16180,Rf=16181,Df=16182,jf=16183,Bf=16184,Mf=16185,qf=16186,zf=16187,Uf=16188,Hf=16189,Ps=16190,Vi=16191,Ll=16192,Wf=16193,kl=16194,Gf=16195,Vf=16196,Zf=16197,Yf=16198,vs=16199,ms=16200,$f=16201,Kf=16202,Jf=16203,Xf=16204,Qf=16205,Pl=16206,tu=16207,eu=16208,Re=16209,_c=16210,xc=16211,sd=852,ld=592,hd=15,fd=hd,nu=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function ud(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ta=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Rs||e.mode>xc?1:0},Ac=t=>{if(ta(t))return Xn;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=Rs,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(sd),e.distcode=e.distdyn=new Int32Array(ld),e.sane=1,e.back=-1,Qr},Sc=t=>{if(ta(t))return Xn;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Ac(t)},Nc=(t,e)=>{let n;if(ta(t))return Xn;const i=t.state;return e<0?(n=0,e=-e):(n=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Xn:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,Sc(t))},Lc=(t,e)=>{if(!t)return Xn;const n=new ud;t.state=n,n.strm=t,n.window=null,n.mode=Rs;const i=Nc(t,e);return i!==Qr&&(t.state=null),i},cd=t=>Lc(t,fd);let iu=!0,Cl,Fl;const dd=t=>{if(iu){Cl=new Int32Array(512),Fl=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(uo(mc,t.lens,0,288,Cl,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;uo(bc,t.lens,0,32,Fl,0,t.work,{bits:5}),iu=!1}t.lencode=Cl,t.lenbits=9,t.distcode=Fl,t.distbits=5},kc=(t,e,n,i)=>{let r;const a=t.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(e.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(e.subarray(n-i,n-i+r),a.wnext),i-=r,i?(a.window.set(e.subarray(n-i,n),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},pd=(t,e)=>{let n,i,r,a,h,s,f,u,p,m,y,g,P,C,R=0,L,G,V,M,rt,vt,ct,$;const j=new Uint8Array(4);let tt,N;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ta(t)||!t.output||!t.input&&t.avail_in!==0)return Xn;n=t.state,n.mode===Vi&&(n.mode=Ll),h=t.next_out,r=t.output,f=t.avail_out,a=t.next_in,i=t.input,s=t.avail_in,u=n.hold,p=n.bits,m=s,y=f,$=Qr;t:for(;;)switch(n.mode){case Rs:if(n.wrap===0){n.mode=Ll;break}for(;p<16;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(n.wrap&2&&u===35615){n.wbits===0&&(n.wbits=15),n.check=0,j[0]=u&255,j[1]=u>>>8&255,n.check=sn(n.check,j,2,0),u=0,p=0,n.mode=Rf;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){t.msg="incorrect header check",n.mode=Re;break}if((u&15)!==Tf){t.msg="unknown compression method",n.mode=Re;break}if(u>>>=4,p-=4,ct=(u&15)+8,n.wbits===0&&(n.wbits=ct),ct>15||ct>n.wbits){t.msg="invalid window size",n.mode=Re;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=u&512?Hf:Vi,u=0,p=0;break;case Rf:for(;p<16;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(n.flags=u,(n.flags&255)!==Tf){t.msg="unknown compression method",n.mode=Re;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=Re;break}n.head&&(n.head.text=u>>8&1),n.flags&512&&n.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,n.check=sn(n.check,j,2,0)),u=0,p=0,n.mode=Df;case Df:for(;p<32;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}n.head&&(n.head.time=u),n.flags&512&&n.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,j[2]=u>>>16&255,j[3]=u>>>24&255,n.check=sn(n.check,j,4,0)),u=0,p=0,n.mode=jf;case jf:for(;p<16;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}n.head&&(n.head.xflags=u&255,n.head.os=u>>8),n.flags&512&&n.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,n.check=sn(n.check,j,2,0)),u=0,p=0,n.mode=Bf;case Bf:if(n.flags&1024){for(;p<16;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}n.length=u,n.head&&(n.head.extra_len=u),n.flags&512&&n.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,n.check=sn(n.check,j,2,0)),u=0,p=0}else n.head&&(n.head.extra=null);n.mode=Mf;case Mf:if(n.flags&1024&&(g=n.length,g>s&&(g=s),g&&(n.head&&(ct=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(a,a+g),ct)),n.flags&512&&n.wrap&4&&(n.check=sn(n.check,i,g,a)),s-=g,a+=g,n.length-=g),n.length))break t;n.length=0,n.mode=qf;case qf:if(n.flags&2048){if(s===0)break t;g=0;do ct=i[a+g++],n.head&&ct&&n.length<65536&&(n.head.name+=String.fromCharCode(ct));while(ct&&g<s);if(n.flags&512&&n.wrap&4&&(n.check=sn(n.check,i,g,a)),s-=g,a+=g,ct)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=zf;case zf:if(n.flags&4096){if(s===0)break t;g=0;do ct=i[a+g++],n.head&&ct&&n.length<65536&&(n.head.comment+=String.fromCharCode(ct));while(ct&&g<s);if(n.flags&512&&n.wrap&4&&(n.check=sn(n.check,i,g,a)),s-=g,a+=g,ct)break t}else n.head&&(n.head.comment=null);n.mode=Uf;case Uf:if(n.flags&512){for(;p<16;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(n.wrap&4&&u!==(n.check&65535)){t.msg="header crc mismatch",n.mode=Re;break}u=0,p=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=Vi;break;case Hf:for(;p<32;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}t.adler=n.check=nu(u),u=0,p=0,n.mode=Ps;case Ps:if(n.havedict===0)return t.next_out=h,t.avail_out=f,t.next_in=a,t.avail_in=s,n.hold=u,n.bits=p,ad;t.adler=n.check=1,n.mode=Vi;case Vi:if(e===id||e===gs)break t;case Ll:if(n.last){u>>>=p&7,p-=p&7,n.mode=Pl;break}for(;p<3;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}switch(n.last=u&1,u>>>=1,p-=1,u&3){case 0:n.mode=Wf;break;case 1:if(dd(n),n.mode=vs,e===gs){u>>>=2,p-=2;break t}break;case 2:n.mode=Vf;break;case 3:t.msg="invalid block type",n.mode=Re}u>>>=2,p-=2;break;case Wf:for(u>>>=p&7,p-=p&7;p<32;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if((u&65535)!==(u>>>16^65535)){t.msg="invalid stored block lengths",n.mode=Re;break}if(n.length=u&65535,u=0,p=0,n.mode=kl,e===gs)break t;case kl:n.mode=Gf;case Gf:if(g=n.length,g){if(g>s&&(g=s),g>f&&(g=f),g===0)break t;r.set(i.subarray(a,a+g),h),s-=g,a+=g,f-=g,h+=g,n.length-=g;break}n.mode=Vi;break;case Vf:for(;p<14;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(n.nlen=(u&31)+257,u>>>=5,p-=5,n.ndist=(u&31)+1,u>>>=5,p-=5,n.ncode=(u&15)+4,u>>>=4,p-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Re;break}n.have=0,n.mode=Zf;case Zf:for(;n.have<n.ncode;){for(;p<3;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}n.lens[O[n.have++]]=u&7,u>>>=3,p-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,tt={bits:n.lenbits},$=uo(nd,n.lens,0,19,n.lencode,0,n.work,tt),n.lenbits=tt.bits,$){t.msg="invalid code lengths set",n.mode=Re;break}n.have=0,n.mode=Yf;case Yf:for(;n.have<n.nlen+n.ndist;){for(;R=n.lencode[u&(1<<n.lenbits)-1],L=R>>>24,G=R>>>16&255,V=R&65535,!(L<=p);){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(V<16)u>>>=L,p-=L,n.lens[n.have++]=V;else{if(V===16){for(N=L+2;p<N;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(u>>>=L,p-=L,n.have===0){t.msg="invalid bit length repeat",n.mode=Re;break}ct=n.lens[n.have-1],g=3+(u&3),u>>>=2,p-=2}else if(V===17){for(N=L+3;p<N;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}u>>>=L,p-=L,ct=0,g=3+(u&7),u>>>=3,p-=3}else{for(N=L+7;p<N;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}u>>>=L,p-=L,ct=0,g=11+(u&127),u>>>=7,p-=7}if(n.have+g>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Re;break}for(;g--;)n.lens[n.have++]=ct}}if(n.mode===Re)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=Re;break}if(n.lenbits=9,tt={bits:n.lenbits},$=uo(mc,n.lens,0,n.nlen,n.lencode,0,n.work,tt),n.lenbits=tt.bits,$){t.msg="invalid literal/lengths set",n.mode=Re;break}if(n.distbits=6,n.distcode=n.distdyn,tt={bits:n.distbits},$=uo(bc,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,tt),n.distbits=tt.bits,$){t.msg="invalid distances set",n.mode=Re;break}if(n.mode=vs,e===gs)break t;case vs:n.mode=ms;case ms:if(s>=6&&f>=258){t.next_out=h,t.avail_out=f,t.next_in=a,t.avail_in=s,n.hold=u,n.bits=p,K0(t,y),h=t.next_out,r=t.output,f=t.avail_out,a=t.next_in,i=t.input,s=t.avail_in,u=n.hold,p=n.bits,n.mode===Vi&&(n.back=-1);break}for(n.back=0;R=n.lencode[u&(1<<n.lenbits)-1],L=R>>>24,G=R>>>16&255,V=R&65535,!(L<=p);){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(G&&!(G&240)){for(M=L,rt=G,vt=V;R=n.lencode[vt+((u&(1<<M+rt)-1)>>M)],L=R>>>24,G=R>>>16&255,V=R&65535,!(M+L<=p);){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}u>>>=M,p-=M,n.back+=M}if(u>>>=L,p-=L,n.back+=L,n.length=V,G===0){n.mode=Qf;break}if(G&32){n.back=-1,n.mode=Vi;break}if(G&64){t.msg="invalid literal/length code",n.mode=Re;break}n.extra=G&15,n.mode=$f;case $f:if(n.extra){for(N=n.extra;p<N;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,p-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Kf;case Kf:for(;R=n.distcode[u&(1<<n.distbits)-1],L=R>>>24,G=R>>>16&255,V=R&65535,!(L<=p);){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(!(G&240)){for(M=L,rt=G,vt=V;R=n.distcode[vt+((u&(1<<M+rt)-1)>>M)],L=R>>>24,G=R>>>16&255,V=R&65535,!(M+L<=p);){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}u>>>=M,p-=M,n.back+=M}if(u>>>=L,p-=L,n.back+=L,G&64){t.msg="invalid distance code",n.mode=Re;break}n.offset=V,n.extra=G&15,n.mode=Jf;case Jf:if(n.extra){for(N=n.extra;p<N;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,p-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Re;break}n.mode=Xf;case Xf:if(f===0)break t;if(g=y-f,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Re;break}g>n.wnext?(g-=n.wnext,P=n.wsize-g):P=n.wnext-g,g>n.length&&(g=n.length),C=n.window}else C=r,P=h-n.offset,g=n.length;g>f&&(g=f),f-=g,n.length-=g;do r[h++]=C[P++];while(--g);n.length===0&&(n.mode=ms);break;case Qf:if(f===0)break t;r[h++]=n.length,f--,n.mode=ms;break;case Pl:if(n.wrap){for(;p<32;){if(s===0)break t;s--,u|=i[a++]<<p,p+=8}if(y-=f,t.total_out+=y,n.total+=y,n.wrap&4&&y&&(t.adler=n.check=n.flags?sn(n.check,r,y,h-y):xo(n.check,r,y,h-y)),y=f,n.wrap&4&&(n.flags?u:nu(u))!==n.check){t.msg="incorrect data check",n.mode=Re;break}u=0,p=0}n.mode=tu;case tu:if(n.wrap&&n.flags){for(;p<32;){if(s===0)break t;s--,u+=i[a++]<<p,p+=8}if(n.wrap&4&&u!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=Re;break}u=0,p=0}n.mode=eu;case eu:$=rd;break t;case Re:$=wc;break t;case _c:return yc;case xc:default:return Xn}return t.next_out=h,t.avail_out=f,t.next_in=a,t.avail_in=s,n.hold=u,n.bits=p,(n.wsize||y!==t.avail_out&&n.mode<Re&&(n.mode<Pl||e!==Of))&&kc(t,t.output,t.next_out,y-t.avail_out),m-=t.avail_in,y-=t.avail_out,t.total_in+=m,t.total_out+=y,n.total+=y,n.wrap&4&&y&&(t.adler=n.check=n.flags?sn(n.check,r,y,t.next_out-y):xo(n.check,r,y,t.next_out-y)),t.data_type=n.bits+(n.last?64:0)+(n.mode===Vi?128:0)+(n.mode===vs||n.mode===kl?256:0),(m===0&&y===0||e===Of)&&$===Qr&&($=od),$},gd=t=>{if(ta(t))return Xn;let e=t.state;return e.window&&(e.window=null),t.state=null,Qr},vd=(t,e)=>{if(ta(t))return Xn;const n=t.state;return n.wrap&2?(n.head=e,e.done=!1,Qr):Xn},md=(t,e)=>{const n=e.length;let i,r,a;return ta(t)||(i=t.state,i.wrap!==0&&i.mode!==Ps)?Xn:i.mode===Ps&&(r=1,r=xo(r,e,n,0),r!==i.check)?wc:(a=kc(t,e,n,n),a?(i.mode=_c,yc):(i.havedict=1,Qr))};var bd=Sc,wd=Nc,yd=Ac,_d=cd,xd=Lc,Ad=pd,Sd=gd,Nd=vd,Ld=md,kd="pako inflate (from Nodeca project)",Yi={inflateReset:bd,inflateReset2:wd,inflateResetKeep:yd,inflateInit:_d,inflateInit2:xd,inflate:Ad,inflateEnd:Sd,inflateGetHeader:Nd,inflateSetDictionary:Ld,inflateInfo:kd};function Pd(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Cd=Pd;const Pc=Object.prototype.toString,{Z_NO_FLUSH:Fd,Z_FINISH:Ed,Z_OK:No,Z_STREAM_END:El,Z_NEED_DICT:Il,Z_STREAM_ERROR:Id,Z_DATA_ERROR:ru,Z_MEM_ERROR:Od}=Po;function Fo(t){this.options=Ts.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new gc,this.strm.avail_out=0;let n=Yi.inflateInit2(this.strm,e.windowBits);if(n!==No)throw new Error(Aa[n]);if(this.header=new Cd,Yi.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=So.string2buf(e.dictionary):Pc.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Yi.inflateSetDictionary(this.strm,e.dictionary),n!==No)))throw new Error(Aa[n])}Fo.prototype.push=function(t,e){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,h,s;if(this.ended)return!1;
vendor: 9,967 bytes, line 3
3for(e===~~e?h=e:h=e===!0?Ed:Fd,Pc.call(t)==="[object ArrayBuffer]"?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),a=Yi.inflate(n,h),a===Il&&r&&(a=Yi.inflateSetDictionary(n,r),a===No?a=Yi.inflate(n,h):a===ru&&(a=Il));n.avail_in>0&&a===El&&n.state.wrap>0&&t[n.next_in]!==0;)Yi.inflateReset(n),a=Yi.inflate(n,h);switch(a){case Id:case ru:case Il:case Od:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===El))if(this.options.to==="string"){let f=So.utf8border(n.output,n.next_out),u=n.next_out-f,p=So.buf2string(n.output,f);n.next_out=u,n.avail_out=i-u,u&&n.output.set(n.output.subarray(f,f+u),0),this.onData(p)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===No&&s===0)){if(a===El)return a=Yi.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Fo.prototype.onData=function(t){this.chunks.push(t)};Fo.prototype.onEnd=function(t){t===No&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ts.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Sh(t,e){const n=new Fo(e);if(n.push(t),n.err)throw n.msg||Aa[n.err];return n.result}function Td(t,e){return e=e||{},e.raw=!0,Sh(t,e)}var Rd=Fo,Dd=Sh,jd=Td,Bd=Sh,Md=Po,qd={Inflate:Rd,inflate:Dd,inflateRaw:jd,ungzip:Bd,constants:Md};const{Inflate:zd,inflate:Ud,inflateRaw:Dp,ungzip:jp}=qd;var au=zd,Hd=Ud;const Cc=[];for(let t=0;t<256;t++){let e=t;for(let n=0;n<8;n++)e&1?e=3988292384^e>>>1:e=e>>>1;Cc[t]=e}const ou=4294967295;function Wd(t,e,n){let i=t;for(let r=0;r<n;r++)i=Cc[(i^e[r])&255]^i>>>8;return i}function Gd(t,e){return(Wd(ou,t,e)^ou)>>>0}function su(t,e,n){const i=t.readUint32(),r=Gd(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(r!==i)throw new Error(`CRC mismatch for chunk ${n}. Expected ${i}, found ${r}`)}function Fc(t,e,n){for(let i=0;i<n;i++)e[i]=t[i]}function Ec(t,e,n,i){let r=0;for(;r<i;r++)e[r]=t[r];for(;r<n;r++)e[r]=t[r]+e[r-i]&255}function Ic(t,e,n,i){let r=0;if(n.length===0)for(;r<i;r++)e[r]=t[r];else for(;r<i;r++)e[r]=t[r]+n[r]&255}function Oc(t,e,n,i,r){let a=0;if(n.length===0){for(;a<r;a++)e[a]=t[a];for(;a<i;a++)e[a]=t[a]+(e[a-r]>>1)&255}else{for(;a<r;a++)e[a]=t[a]+(n[a]>>1)&255;for(;a<i;a++)e[a]=t[a]+(e[a-r]+n[a]>>1)&255}}function Tc(t,e,n,i,r){let a=0;if(n.length===0){for(;a<r;a++)e[a]=t[a];for(;a<i;a++)e[a]=t[a]+e[a-r]&255}else{for(;a<r;a++)e[a]=t[a]+n[a]&255;for(;a<i;a++)e[a]=t[a]+Vd(e[a-r],n[a],n[a-r])&255}}function Vd(t,e,n){const i=t+e-n,r=Math.abs(i-t),a=Math.abs(i-e),h=Math.abs(i-n);return r<=a&&r<=h?t:a<=h?e:n}function Zd(t,e,n,i,r,a){switch(t){case 0:Fc(e,n,r);break;case 1:Ec(e,n,r,a);break;case 2:Ic(e,n,i,r);break;case 3:Oc(e,n,i,r,a);break;case 4:Tc(e,n,i,r,a);break;default:throw new Error(`Unsupported filter: ${t}`)}}const Yd=new Uint16Array([255]),$d=new Uint8Array(Yd.buffer),Kd=$d[0]===255;function Jd(t){const{data:e,width:n,height:i,channels:r,depth:a}=t,h=[{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}],s=Math.ceil(a/8)*r,f=new Uint8Array(i*n*s);let u=0;for(let p=0;p<7;p++){const m=h[p],y=Math.ceil((n-m.x)/m.xStep),g=Math.ceil((i-m.y)/m.yStep);if(y<=0||g<=0)continue;const P=y*s,C=new Uint8Array(P);for(let R=0;R<g;R++){const L=e[u++],G=e.subarray(u,u+P);u+=P;const V=new Uint8Array(P);Zd(L,G,V,C,P,s),C.set(V);for(let M=0;M<y;M++){const rt=m.x+M*m.xStep,vt=m.y+R*m.yStep;if(!(rt>=n||vt>=i))for(let ct=0;ct<s;ct++)f[(vt*n+rt)*s+ct]=V[M*s+ct]}}}if(a===16){const p=new Uint16Array(f.buffer);if(Kd)for(let m=0;m<p.length;m++)p[m]=Xd(p[m]);return p}else return f}function Xd(t){return(t&255)<<8|t>>8&255}const Qd=new Uint16Array([255]),t5=new Uint8Array(Qd.buffer),e5=t5[0]===255,n5=new Uint8Array(0);function lu(t){const{data:e,width:n,height:i,channels:r,depth:a}=t,h=Math.ceil(a/8)*r,s=Math.ceil(a/8*r*n),f=new Uint8Array(i*s);let u=n5,p=0,m,y;for(let g=0;g<i;g++){switch(m=e.subarray(p+1,p+1+s),y=f.subarray(g*s,(g+1)*s),e[p]){case 0:Fc(m,y,s);break;case 1:Ec(m,y,s,h);break;case 2:Ic(m,y,u,s);break;case 3:Oc(m,y,u,s,h);break;case 4:Tc(m,y,u,s,h);break;default:throw new Error(`Unsupported filter: ${e[p]}`)}u=y,p+=s+1}if(a===16){const g=new Uint16Array(f.buffer);if(e5)for(let P=0;P<g.length;P++)g[P]=i5(g[P]);return g}else return f}function i5(t){return(t&255)<<8|t>>8&255}const As=Uint8Array.of(137,80,78,71,13,10,26,10);function hu(t){if(!r5(t.readBytes(As.length)))throw new Error("wrong PNG signature")}function r5(t){if(t.length<As.length)return!1;for(let e=0;e<As.length;e++)if(t[e]!==As[e])return!1;return!0}const a5="tEXt",o5=0,Rc=new TextDecoder("latin1");function s5(t){if(h5(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const l5=/^[\u0000-\u00FF]*$/;function h5(t){if(!l5.test(t))throw new Error("invalid latin1 text")}function f5(t,e,n){const i=Dc(e);t[i]=u5(e,n-i.length-1)}function Dc(t){for(t.mark();t.readByte()!==o5;);const e=t.offset;t.reset();const n=Rc.decode(t.readBytes(e-t.offset-1));return t.skip(1),s5(n),n}function u5(t,e){return Rc.decode(t.readBytes(e))}const Bn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Ol={UNKNOWN:-1,DEFLATE:0},fu={UNKNOWN:-1,ADAPTIVE:0},Tl={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},bs={NONE:0,BACKGROUND:1,PREVIOUS:2},Rl={SOURCE:0,OVER:1};class c5 extends mh{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,n={}){super(e);const{checkCrc:i=!1}=n;this._checkCrc=i,this._inflator=new au,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Ol.UNKNOWN,this._filterMethod=fu.UNKNOWN,this._interlaceMethod=Tl.UNKNOWN,this._colorType=Bn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(hu(this);!this._end;){const e=this.readUint32(),n=this.readChars(4);this.decodeChunk(e,n)}return this.decodeImage(),this._png}decodeApng(){for(hu(this);!this._end;){const e=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(e,n)}return this.decodeApngImage(),this._apng}decodeChunk(e,n){const i=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case a5:f5(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-i!==e)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?su(this,e+4,n):this.skip(4)}decodeApngChunk(e,n){const i=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,n),this.offset=i+e;break}if(this.offset-i!==e)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?su(this,e+4,n):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=d5(this.readUint8());const n=this.readUint8();this._colorType=n;let i;switch(n){case Bn.GREYSCALE:i=1;break;case Bn.TRUECOLOUR:i=3;break;case Bn.INDEXED_COLOUR:i=1;break;case Bn.GREYSCALE_ALPHA:i=2;break;case Bn.TRUECOLOUR_ALPHA:i=4;break;case Bn.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==Ol.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={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(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const n=e/3;this._hasPalette=!0;const i=[];this._palette=i;for(let r=0;r<n;r++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const n=e,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let n=e,i=this.offset+this.byteOffset;if(i+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Bn.GREYSCALE:case Bn.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let n=0;n<e/2;n++)this._transparency[n]=this.readUint16();break}case Bn.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alph
3a values than there are palette colors (${e} vs ${this._palette.length})`);let n=0;for(;n<e;n++){const i=this.readByte();this._palette[n].push(i)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case Bn.UNKNOWN:case Bn.GREYSCALE_ALPHA:case Bn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const n=Dc(this),i=this.readUint8();if(i!==Ol.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const r=this.readBytes(e-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:Hd(r)}}decodepHYs(){const e=this.readUint32(),n=this.readUint32(),i=this.readByte();this._png.resolution={x:e,y:n,unit:i}}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 e=0;e<this._numberOfFrames;e++){const n={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].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)},i=this._frames.at(e);if(i){if(i.data=lu({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)n.data=i.data;else{const r=this._apng.frames.at(e-1);this.disposeFrame(i,r,n),this.addFrameDataToCanvas(n,i)}this._apng.frames.push(n)}}return this._apng}disposeFrame(e,n,i){switch(e.disposeOp){case bs.NONE:break;case bs.BACKGROUND:for(let r=0;r<this._png.height;r++)for(let a=0;a<this._png.width;a++){const h=(r*e.width+a)*this._png.channels;for(let s=0;s<this._png.channels;s++)i.data[h+s]=0}break;case bs.PREVIOUS:i.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,n){const i=1<<this._png.depth,r=(a,h)=>{const s=((a+n.yOffset)*this._png.width+n.xOffset+h)*this._png.channels,f=(a*n.width+h)*this._png.channels;return{index:s,frameIndex:f}};switch(n.blendOp){case Rl.SOURCE:for(let a=0;a<n.height;a++)for(let h=0;h<n.width;h++){const{index:s,frameIndex:f}=r(a,h);for(let u=0;u<this._png.channels;u++)e.data[s+u]=n.data[f+u]}break;case Rl.OVER:for(let a=0;a<n.height;a++)for(let h=0;h<n.width;h++){const{index:s,frameIndex:f}=r(a,h);for(let u=0;u<this._png.channels;u++){const p=n.data[f+this._png.channels-1]/i,m=u%(this._png.channels-1)===0?1:n.data[f+u],y=Math.floor(p*m+(1-p)*e.data[s+u]);e.data[s+u]+=y}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==fu.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Tl.NO_INTERLACE)this._png.data=lu({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Tl.ADAM7)this._png.data=Jd({data:e,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(){const e=this._inflator.result,n=this._frames.at(-1);n?n.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:bs.NONE,blendOp:Rl.SOURCE,data:e}),this._inflator=new au,this._writingDataChunks=!1}}function d5(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var uu;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(uu||(uu={}));function p5(t,e){return new c5(t,e).decode()}var Yt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Dl(){Yt.console&&typeof Yt.console.log=="function"&&Yt.console.log.apply(Yt.console,arguments)}var ke={log:Dl,warn:function(t){Yt.console&&(typeof Yt.console.warn=="function"?Yt.console.warn.apply(Yt.console,arguments):Dl.call(null,arguments))},error:function(t){Yt.console&&(typeof Yt.console.error=="function"?Yt.console.error.apply(Yt.console,arguments):Dl(t))}};function jl(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){Ur(i.response,e,n)},i.onerror=function(){ke.error("could not download file")},i.send()}function cu(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function ws(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");
vendor: 3,407 bytes, lines 3-8
3e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Ur=Yt.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==Yt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var i=Yt.URL||Yt.webkitURL,r=document.createElement("a");e=e||t.name||"download",r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?cu(r.href)?jl(t,e,n):ws(r,r.target="_blank"):ws(r)):(r.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(r.href)},4e4),setTimeout(function(){ws(r)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download",typeof t=="string")if(cu(t))jl(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){ws(i)})}else navigator.msSaveOrOpenBlob(function(r,a){return a===void 0?a={autoBom:!1}:Se(a)!=="object"&&(ke.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}(t,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return jl(t,e,n);var r=t.type==="application/octet-stream",a=/constructor/i.test(Yt.HTMLElement)||Yt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||r&&a)&&(typeof FileReader>"u"?"undefined":Se(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var p=s.result;p=h?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=p:location=p,i=null},s.readAsDataURL(t)}else{var f=Yt.URL||Yt.webkitURL,u=f.createObjectURL(t);i?i.location=u:location.href=u,i=null,setTimeout(function(){f.revokeObjectURL(u)},4e4)}});/**
4 * A class to parse color values
5 * @author Stoyan Stefanov <[email protected]>
6 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
7 * @license Use it if you like it
8 */function jc(t){var e;t=t||"",this.ok=!1,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:"90ee9
80",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 n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],i=0;i<n.length;i++){var r=n[i].re,a=n[i].process,h=r.exec(t);h&&(e=a(h),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}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 s=this.r.toString(16),f=this.g.toString(16),u=this.b.toString(16);return s.length==1&&(s="0"+s),f.length==1&&(f="0"+f),u.length==1&&(u="0"+u),"#"+s+f+u}}var Ss=Yt.atob.bind(Yt),du=Yt.btoa.bind(Yt);/**
9 * @license
10 * Joseph Myers does not specify a particular license for his work.
11 *
12 * Author: Joseph Myers
13 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
14 *
15 * Modified by: Owen Leong
16 */function Bl(t,e){var n=t[0],i=t[1],r=t[2],a=t[3];n=mn(n,i,r,a,e[0],7,-680876936),a=mn(a,n,i,r,e[1],12,-389564586),r=mn(r,a,n,i,e[2],17,606105819),i=mn(i,r,a,n,e[3],22,-1044525330),n=mn(n,i,r,a,e[4],7,-176418897),a=mn(a,n,i,r,e[5],12,1200080426),r=mn(r,a,n,i,e[6],17,-1473231341),i=mn(i,r,a,n,e[7],22,-45705983),n=mn(n,i,r,a,e[8],7,1770035416),a=mn(a,n,i,r,e[9],12,-1958414417),r=mn(r,a,n,i,e[10],17,-42063),i=mn(i,r,a,n,e[11],22,-1990404162),n=mn(n,i,r,a,e[12],7,1804603682),a=mn(a,n,i,r,e[13],12,-40341101),r=mn(r,a,n,i,e[14],17,-1502002290),n=bn(n,i=mn(i,r,a,n,e[15],22,1236535329),r,a,e[1],5,-165796510),a=bn(a,n,i,r,e[6],9,-1069501632),r=bn(r,a,n,i,e[11],14,643717713),i=bn(i,r,a,n,e[0],20,-373897302),n=bn(n,i,r,a,e[5],5,-701558691),a=bn(a,n,i,r,e[10],9,38016083),r=bn(r,a,n,i,e[15],14,-660478335),i=bn(i,r,a,n,e[4],20,-405537848),n=bn(n,i,r,a,e[9],5,568446438),a=bn(a,n,i,r,e[14],9,-1019803690),r=bn(r,a,n,i,e[3],14,-187363961),i=bn(i,r,a,n,e[8],20,1163531501),n=bn(n,i,r,a,e[13],5,-1444681467),a=bn(a,n,i,r,e[2],9,-51403784),r=bn(r,a,n,i,e[7],14,1735328473),n=wn(n,i=bn(i,r,a,n,e[12],20,-1926607734),r,a,e[5],4,-378558),a=wn(a,n,i,r,e[8],11,-2022574463),r=wn(r,a,n,i,e[11],16,1839030562),i=wn(i,r,a,n,e[14],23,-35309556),n=wn(n,i,r,a,e[1],4,-1530992060),a=wn(a,n,i,r,e[4],11,1272893353),r=wn(r,a,n,i,e[7],16,-155497632),i=wn(i,r,a,n,e[10],23,-1094730640),n=wn(n,i,r,a,e[13],4,681279174),a=wn(a,n,i,r,e[0],11,-358537222),r=wn(r,a,n,i,e[3],16,-722521979),i=wn(i,r,a,n,e[6],23,76029189),n=wn(n,i,r,a,e[9],4,
vendor: 8,577 bytes, lines 16-33
16-640364487),a=wn(a,n,i,r,e[12],11,-421815835),r=wn(r,a,n,i,e[15],16,530742520),n=yn(n,i=wn(i,r,a,n,e[2],23,-995338651),r,a,e[0],6,-198630844),a=yn(a,n,i,r,e[7],10,1126891415),r=yn(r,a,n,i,e[14],15,-1416354905),i=yn(i,r,a,n,e[5],21,-57434055),n=yn(n,i,r,a,e[12],6,1700485571),a=yn(a,n,i,r,e[3],10,-1894986606),r=yn(r,a,n,i,e[10],15,-1051523),i=yn(i,r,a,n,e[1],21,-2054922799),n=yn(n,i,r,a,e[8],6,1873313359),a=yn(a,n,i,r,e[15],10,-30611744),r=yn(r,a,n,i,e[6],15,-1560198380),i=yn(i,r,a,n,e[13],21,1309151649),n=yn(n,i,r,a,e[4],6,-145523070),a=yn(a,n,i,r,e[11],10,-1120210379),r=yn(r,a,n,i,e[2],15,718787259),i=yn(i,r,a,n,e[9],21,-343485551),t[0]=br(n,t[0]),t[1]=br(i,t[1]),t[2]=br(r,t[2]),t[3]=br(a,t[3])}function Ds(t,e,n,i,r,a){return e=br(br(e,t),br(i,a)),br(e<<r|e>>>32-r,n)}function mn(t,e,n,i,r,a,h){return Ds(e&n|~e&i,t,e,r,a,h)}function bn(t,e,n,i,r,a,h){return Ds(e&i|n&~i,t,e,r,a,h)}function wn(t,e,n,i,r,a,h){return Ds(e^n^i,t,e,r,a,h)}function yn(t,e,n,i,r,a,h){return Ds(n^(e|~i),t,e,r,a,h)}function Bc(t){var e,n=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)Bl(i,g5(t.substring(e-64,e)));t=t.substring(e-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)r[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(Bl(i,r),e=0;e<16;e++)r[e]=0;return r[14]=8*n,Bl(i,r),i}function g5(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}var pu="0123456789abcdef".split("");function v5(t){for(var e="",n=0;n<4;n++)e+=pu[t>>8*n+4&15]+pu[t>>8*n&15];return e}function m5(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function sh(t){return Bc(t).map(m5).join("")}var b5=function(t){for(var e=0;e<t.length;e++)t[e]=v5(t[e]);return t.join("")}(Bc("hello"))!="5d41402abc4b2a76b9719d911017c592";function br(t,e){if(b5){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}/**
17 * @license
18 * FPDF is released under a permissive license: there is no usage restriction.
19 * You may embed it freely in your application (commercial or not), with or
20 * without modifications.
21 *
22 * Reference: http://www.fpdf.org/en/script/script37.php
23 */function lh(t,e){var n,i,r,a;if(t!==n){for(var h=(r=t,a=1+(256/t.length|0),new Array(a+1).join(r)),s=[],f=0;f<256;f++)s[f]=f;var u=0;for(f=0;f<256;f++){var p=s[f];u=(u+p+h.charCodeAt(f))%256,s[f]=s[u],s[u]=p}n=t,i=s}else s=i;var m=e.length,y=0,g=0,P="";for(f=0;f<m;f++)g=(g+(p=s[y=(y+1)%256]))%256,s[y]=s[g],s[g]=p,h=s[(s[y]+s[g])%256],P+=String.fromCharCode(e.charCodeAt(f)^h);return P}/**
24 * @license
25 * Licensed under the MIT License.
26 * http://opensource.org/licenses/mit-license
27 * Author: Owen Leong (@owenl131)
28 * Date: 15 Oct 2020
29 * References:
30 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
31 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
32 * http://www.fpdf.org/en/script/script37.php
33 */var gu={print:4,modify:8,copy:16,"annot-forms":32};function wa(t,e,n,i){this.v=1,this.r=2;var r=192;t.forEach(function(s){if(gu.perm!==void 0)throw new Error("Invalid permission: "+s);r+=gu[s]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),h=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,h),this.P=-(1+(255^r)),this.encryptionKey=sh(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=lh(this.encryptionKey,this.padding)}function ya(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);e+=r<33||r===35||r===37||r===40||r===41||r===47||r===60||r===62||r===91||r===93||r===123||r===125||r>126?"#"+("0"+r.toString(16)).slice(-2):t[i]}return e}function vu(t){if(Se(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,i,r){if(r=r||!1,typeof n!="string"||typeof i!="function"||typeof r!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var a=Math.random().toString(35);return e[n][a]=[i,!!r],a},this.unsubscribe=function(n){for(var i in e)if(e[i][n])return delete e[i][n],Object.keys(e[i]).length===0&&delete e[i],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),r=[];for(var a in e[n]){var h=e[n][a];try{h[0].apply(t,i)}catch(s){Yt.console&&ke.error("jsPDF PubSub Error",s.message,s)}h[1]&&r.push(a)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Lo(t){if(!(this instanceof Lo))return new Lo(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Mc(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function vr(t,e,n,i,r){if(!(this instanceof vr))return new vr(t,e,n,i,r);this.type=t==="axial"?2:3,this.coords=e,this.colors=n,Mc.call(this,i,r)}function Vr(t,e,n,i,r){if(!(this instanceof Vr))return new Vr(t,e,n,i,r);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Mc.call(this,i,r)}function Dt(t){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],r=arguments[2],a=arguments[3],h=[],s=1,f=16,u="S",p=null;Se(t=t||{})==="object"&&(n=t.orientation,i=t.unit||i,r=t.format||r,a=t.compress||t.compressPdf||a,(p=t.encryption||null)!==null&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),s=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(f=t.floatPrecision),u=t.defaultPathOperation||"S"),h=t.filters||(a===!0?["FlateEncode"]:h),i=i||"mm",n=(""+(n||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,y={},g={internal:{},__private__:{}};g.__private__.PubSub=vu;var P="1.3",C=g.__private__.getPdfVersion=function(){return P};g.__private__.setPdfVersion=function(c){P=c};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]};g.__private__.getPageFormats=function(){return R};var L=g.__private__.getPageFormat=function(c){return R[c]};r=r||"a4";var G="compat",V="advanced",M=G;function rt(){this.saveGraphicsState(),F(new Vt(ee,0,0,-ee,0,Ir()*ee).toString()+" cm"),this.setFontSize(this.getFontSize()/ee),u="n",M=V}function vt(){this.restoreGraphicsState(),u="S",M=G}var ct=g.__private__.combineFontStyleAndFontWeight=function(c,b){if(c=="bold"&&b=="normal"||c=="bold"&&b==400||c=="normal"&&b=="italic"||c=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(c=b==400||b==="normal"?c==="italic"?"italic":"normal":b!=700&&b!=="bold"||c!=="normal"?(b==700?"bold":b)+""+c:"bold"),c};g.advancedAPI=function(c){var b=M===G;return b&&rt.call(this),typeof c!="function"||(c(this),b&&vt.call(this)),this},g.compatAPI=function(c){var b=M===V;return b&&vt.call(this),typeof c!="function"||(c(this),b&&rt.call(this)),this},g.isAdvancedAPI=function(){return M===V};var $,j=function(c){if(M!==V)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},tt=g.roundToPrecision=g.__private__.roundToPrecision=function(c,b){var T=e||b;if(isNaN(c)||isNaN(T))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(T).replace(/0+$/,"")};$=g.hpf=g.__private__.hpf=typeof f=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(c,f)}:f==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to 
33jsPDF.hpf");return tt(c,16)};var N=g.f2=g.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return tt(c,2)},O=g.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return tt(c,3)},U=g.scale=g.__private__.scale=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.scale");return M===G?c*ee:M===V?c:void 0},z=function(c){return U(function(b){return M===G?Ir()-b:M===V?b:void 0}(c))};g.__private__.setPrecision=g.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(e=parseInt(c,10))};var it,st="00000000000000000000000000000000",ht=g.__private__.getFileId=function(){return st},nt=g.__private__.setFileId=function(c){return st=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():st.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),p!==null&&(Xe=new wa(p.userPermissions,p.userPassword,p.ownerPassword,st)),st};g.setFileId=function(c){return nt(c),this},g.getFileId=function(){return ht()};var ut=g.__private__.convertDateToPDFDate=function(c){var b=c.getTimezoneOffset(),T=b<0?"+":"-",q=Math.floor(Math.abs(b/60)),K=Math.abs(b%60),dt=[T,B(q),"'",B(K),"'"].join("");return["D:",c.getFullYear(),B(c.getMonth()+1),B(c.getDate()),B(c.getHours()),B(c.getMinutes()),B(c.getSeconds()),dt].join("")},At=g.__private__.convertPDFDateToDate=function(c){var b=parseInt(c.substr(2,4),10),T=parseInt(c.substr(6,2),10)-1,q=parseInt(c.substr(8,2),10),K=parseInt(c.substr(10,2),10),dt=parseInt(c.substr(12,2),10),mt=parseInt(c.substr(14,2),10);return new Date(b,T,q,K,dt,mt,0)},wt=g.__private__.setCreationDate=function(c){var b;if(c===void 0&&(c=new Date),c instanceof Date)b=ut(c);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(c))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=c}return it=b},A=g.__private__.getCreationDate=function(c){var b=it;return c==="jsDate"&&(b=At(it)),b};g.setCreationDate=function(c){return wt(c),this},g.getCreationDate=function(c){return A(c)};var D,B=g.__private__.padd2=function(c){return("0"+parseInt(c)).slice(-2)},H=g.__private__.padd2Hex=function(c){return("00"+(c=c.toString())).substr(c.length)},Y=0,X=[],at=[],ot=0,gt=[],xt=[],kt=!1,Lt=at;g.__private__.setCustomOutputDestination=function(c){kt=!0,Lt=c};var Mt=function(c){kt||(Lt=c)};g.__private__.resetCustomOutputDestination=function(){kt=!1,Lt=at};var F=g.__private__.out=function(c){return c=c.toString(),ot+=c.length+1,Lt.push(c),Lt},Nt=g.__private__.write=function(c){return F(arguments.length===1?c.toString():Array.prototype.join.call(arguments," "))},ae=g.__private__.getArrayBuffer=function(c){for(var b=c.length,T=new ArrayBuffer(b),q=new Uint8Array(T);b--;)q[b]=c.charCodeAt(b);return T},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]];g.__private__.getStandardFonts=function(){return Ht};var yt=t.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(c){return yt=M===V?c/ee:c,this};var Wt,Ft=g.__private__.getFontSize=g.getFontSize=function(){return M===G?yt:yt*ee},Ut=t.R2L||!1;g.__private__.setR2L=g.setR2L=function(c){return Ut=c,this},g.__private__.getR2L=g.getR2L=function(){return Ut};var qt,we=g.__private__.setZoomMode=function(c){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(c))Wt=c;
vendor: 17,466 bytes, lines 33-37
33else if(isNaN(c)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(c)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+c+'" is not recognized.');Wt=c}else Wt=parseInt(c,10)};g.__private__.getZoomMode=function(){return Wt};var he,Xt=g.__private__.setPageMode=function(c){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(c)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+c+'" is not recognized.');qt=c};g.__private__.getPageMode=function(){return qt};var ue=g.__private__.setLayoutMode=function(c){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(c)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+c+'" is not recognized.');he=c};g.__private__.getLayoutMode=function(){return he},g.__private__.setDisplayMode=g.setDisplayMode=function(c,b,T){return we(c),ue(b),Xt(T),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(c){if(Object.keys(fe).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[c]},g.__private__.getDocumentProperties=function(){return fe},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(c){for(var b in fe)fe.hasOwnProperty(b)&&c[b]&&(fe[b]=c[b]);return this},g.__private__.setDocumentProperty=function(c,b){if(Object.keys(fe).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[c]=b};var Tt,ee,Bt,ze,ge,oe={},se={},Oe=[],zt={},Pe={},Zt={},Qt={},Te=null,le=0,Gt=[],ye=new vu(g),Sr=t.hotfixes||[],gn={},ki={},ui=[],Vt=function c(b,T,q,K,dt,mt){if(!(this instanceof c))return new c(b,T,q,K,dt,mt);isNaN(b)&&(b=1),isNaN(T)&&(T=0),isNaN(q)&&(q=0),isNaN(K)&&(K=1),isNaN(dt)&&(dt=0),isNaN(mt)&&(mt=0),this._matrix=[b,T,q,K,dt,mt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),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(c){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map($).join(c)},Vt.prototype.multiply=function(c){var b=c.sx*this.sx+c.shy*this.shx,T=c.sx*this.shy+c.shy*this.sy,q=c.shx*this.sx+c.sy*this.shx,K=c.shx*this.shy+c.sy*this.sy,dt=c.tx*this.sx+c.ty*this.shx+this.tx,mt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Vt(b,T,q,K,dt,mt)},Vt.prototype.decompose=function(){var c=this.sx,b=this.shy,T=this.shx,q=this.sy,K=this.tx,dt=this.ty,mt=Math.sqrt(c*c+b*b),Et=(c/=mt)*T+(b/=mt)*q;T-=c*Et,q-=b*Et;var Rt=Math.sqrt(T*T+q*q);return Et/=Rt,c*(q/=Rt)<b*(T/=Rt)&&(c=-c,b=-b,Et=-Et,mt=-mt),{scale:new Vt(mt,0,0,Rt,0,0),translate:new Vt(1,0,0,1,K,dt),rotate:new Vt(c,b,-b,c,0,0),skew:new Vt(1,0,Et,1,0,0)}},Vt.prototype.toString=function(c){return this.join(" ")},Vt.prototype.inversed=function(){var c=this.sx,b=this.shy,T=this.shx,q=this.sy,K=this.tx,dt=this.ty,mt=1/(c*q-b*T),Et=q*mt,Rt=-b*mt,$t=-T*mt,ne=c*mt;return new Vt(Et,Rt,$t,ne,-Et*K-$t*dt,-Rt*K-ne*dt)},Vt.prototype.applyToPoint=function(c){var b=c.x*this.sx+c.y*this.shx+this.tx,T=c.x*this.shy+c.y*this.sy+this.ty;return new Ti(b,T)},Vt.prototype.applyToRectangle=function(c){var b=this.applyToPoint(c),T=this.applyToPoint(new Ti(c.x+c.w,c.y+c.h));return new ja(b.x,b.y,T.x-b.x,T.y-b.y)},Vt.prototype.clone=function(){var c=this.sx,b=this.shy,T=this.shx,q=this.sy,K=this.tx,dt=this.ty;return new Vt(c,b,T,q,K,dt)},g.Matrix=Vt;var Pi=g.matrixMult=function(c,b){return b.multiply(c)},Ci=new Vt(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=Ci;var Un=function(c,b){if(!Pe[c]){var T=(b instanceof vr?"Sh":"P")+(Object.keys(zt).length+1).toString(10);b.id=T,Pe[c]=T,zt[T]=b,ye.publish("addPattern",b)}};g.ShadingPattern=vr,g.TilingPattern=Vr,g.addShadingPattern=function(c,b){return j("addShadingPattern()"),Un(c,b),this},g.beginTilingPattern=function(c){j("beginTilingPattern()"),Ba(c.boundingBox[0],c.boundingBox[1],c.boundingBox[2]-c.boundingBox[0],c.boundingBox[3]-c.boundingBox[1],c.matrix)},g.endTilingPattern=function(c,b){j("endTilingPattern()"),b.stream=xt[D].join(`
34`),Un(c,b),ye.publish("endTilingPattern",b),ui.pop().restore()};var Hn,je=g.__private__.newObject=function(){var c=on();return ln(c,!0),c},on=g.__private__.newObjectDeferred=function(){return Y++,X[Y]=function(){return ot},Y},ln=function(c,b){return b=typeof b=="boolean"&&b,X[c]=ot,b&&F(c+" 0 obj"),c},Nr=g.__private__.newAdditionalObject=function(){var c={objId:on(),content:""};return gt.push(c),c},Ji=on(),Qn=on(),ci=g.__private__.decodeColorString=function(c){var b=c.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length!==5||b[4]!=="k"&&b[4]!=="K"||(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var T=parseFloat(b[0]);b=[T,T,T,"r"]}for(var q="#",K=0;K<3;K++)q+=("0"+Math.floor(255*parseFloat(b[K])).toString(16)).slice(-2);return q},ti=g.__private__.encodeColorString=function(c){var b;typeof c=="string"&&(c={ch1:c});var T=c.ch1,q=c.ch2,K=c.ch3,dt=c.ch4,mt=c.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof T=="string"&&T.charAt(0)!=="#"){var Et=new jc(T);if(Et.ok)T=Et.toHex();else if(!/^\d*\.?\d*$/.test(T))throw new Error('Invalid color "'+T+'" passed to jsPDF.encodeColorString.')}if(typeof T=="string"&&/^#[0-9A-Fa-f]{3}$/.test(T)&&(T="#"+T[1]+T[1]+T[2]+T[2]+T[3]+T[3]),typeof T=="string"&&/^#[0-9A-Fa-f]{6}$/.test(T)){var Rt=parseInt(T.substr(1),16);T=Rt>>16&255,q=Rt>>8&255,K=255&Rt}if(q===void 0||dt===void 0&&T===q&&q===K)b=typeof T=="string"?T+" "+mt[0]:c.precision===2?N(T/255)+" "+mt[0]:O(T/255)+" "+mt[0];else if(dt===void 0||Se(dt)==="object"){if(dt&&!isNaN(dt.a)&&dt.a===0)return["1.","1.","1.",mt[1]].join(" ");b=typeof T=="string"?[T,q,K,mt[1]].join(" "):c.precision===2?[N(T/255),N(q/255),N(K/255),mt[1]].join(" "):[O(T/255),O(q/255),O(K/255),mt[1]].join(" ")}else b=typeof T=="string"?[T,q,K,dt,mt[2]].join(" "):c.precision===2?[N(T),N(q),N(K),N(dt),mt[2]].join(" "):[O(T),O(q),O(K),O(dt),mt[2]].join(" ");return b},ei=g.__private__.getFilters=function(){return h},Wn=g.__private__.putStream=function(c){var b=(c=c||{}).data||"",T=c.filters||ei(),q=c.alreadyAppliedFilters||[],K=c.addLength1||!1,dt=b.length,mt=c.objectId,Et=function(Qe){return Qe};if(p!==null&&mt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");p!==null&&(Et=Xe.encryptor(mt,0));var Rt={};T===!0&&(T=["FlateEncode"]);var $t=c.additionalKeyValues||[],ne=(Rt=Dt.API.processDataByFilters!==void 0?Dt.API.processDataByFilters(b,T):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(Rt.data.length!==0&&($t.push({key:"Length",value:Rt.data.length}),K===!0&&$t.push({key:"Length1",value:dt})),ne.length!=0)if(ne.split("/").length-1==1)$t.push({key:"Filter",value:ne});else{$t.push({key:"Filter",value:"["+ne+"]"});for(var ve=0;ve<$t.length;ve+=1)if($t[ve].key==="DecodeParms"){for(var De=[],Ke=0;Ke<Rt.reverseChain.split("/").length-1;Ke+=1)De.push("null");De.push($t[ve].value),$t[ve].value="["+De.join(" ")+"]"}}F("<<");for(var Ce=0;Ce<$t.length;Ce++)F("/"+$t[Ce].key+" "+$t[Ce].value);F(">>"),Rt.data.length!==0&&(F("stream"),F(Et(Rt.data)),F("endstream"))},Lr=g.__private__.putPage=function(c){var b=c.number,T=c.data,q=c.objId,K=c.contentsObjId;ln(q,!0),F("<</Type /Page"),F("/Parent "+c.rootDictionaryObjId+" 0 R"),F("/Resources "+c.resourceDictionaryObjId+" 0 R"),F("/MediaBox ["+parseFloat($(c.mediaBox.bottomLeftX))+" "+parseFloat($(c.mediaBox.bottomLeftY))+" "+$(c.mediaBox.topRightX)+" "+$(c.mediaBox.topRightY)+"]"),c.cropBox!==null&&F("/CropBox ["+$(c.cropBox.bottomLeftX)+" "+$(c.cropBox.bottomLeftY)+" "+$(c.cropBox.topRightX)+" "+$(c.cropBox.topRightY)+"]"),c.bleedBox!==null&&F("/BleedBox ["+$(c.bleedBox.bottomLeftX)+" "+$(c.bleedBox.bottomLeftY)+" "+$(c.bleedBox.topRightX)+" "+$(c.bleedBox.topRightY)+"]"),c.trimBox!==null&&F("/TrimBox ["+$(c.trimBox.bottomLeftX)+" "+$(c.trimBox.bottomLeftY)+" "+$(c.trimBox.topRightX)+" "+$(c.trimBox.topRightY)+"]"),c.artBox!==null&&F("/ArtBox ["+$(c.artBox.bottomLeftX)+" "+$(c.artBox.bottomLeftY)+" "+$(c.artBox.topRightX)+" "+$(c.artBox.topRightY)+"]"),typeof c.userUnit=="number"&&c.userUnit!==1&&F("/UserUnit "+c.userUnit),ye.publish("putPage",{objId:q,pageContext:Gt[b],pageNumber:b,page:T}),F("/Contents "+K+" 0 R"),F(">>"),F("endobj");var dt=T.join(`
35`);return M===V&&(dt+=`
36Q`),ln(K,!0),Wn({data:dt,filters:ei(),objectId:K}),F("endobj"),q},di=g.__private__.putPages=function(){var c,b,T=[];for(c=1;c<=le;c++)Gt[c].objId=on(),Gt[c].contentsObjId=on();for(c=1;c<=le;c++)T.push(Lr({number:c,data:xt[c],objId:Gt[c].objId,contentsObjId:Gt[c].contentsObjId,mediaBox:Gt[c].mediaBox,cropBox:Gt[c].cropBox,bleedBox:Gt[c].bleedBox,trimBox:Gt[c].trimBox,artBox:Gt[c].artBox,userUnit:Gt[c].userUnit,rootDictionaryObjId:Ji,resourceDictionaryObjId:Qn}));ln(Ji,!0),F("<</Type /Pages");var q="/Kids [";for(b=0;b<le;b++)q+=T[b]+" 0 R ";F(q+"]"),F("/Count "+le),F(">>"),F("endobj"),ye.publish("postPutPages")},kr=function(c){ye.publish("putFont",{font:c,out:F,newObject:je,putStream:Wn}),c.isAlreadyPutted!==!0&&(c.objectNumber=je(),F("<<"),F("/Type /Font"),F("/BaseFont /"+ya(c.postScriptName)),F("/Subtype /Type1"),typeof c.encoding=="string"&&F("/Encoding /"+c.encoding),F("/FirstChar 32"),F("/LastChar 255"),F(">>"),F("endobj"))},na=function(c){c.objectNumber=je();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[$(c.x),$(c.y),$(c.x+c.width),$(c.y+c.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+c.matrix.toString()+"]"});var T=c.pages[1].join(`
37`);Wn({data:T,additionalKeyValues:b,objectId:c.objectNumber}),F("endobj")},ia=function(c,b){b||(b=21);var T=je(),q=function(mt,Et){var Rt,$t=[],ne=1/(Et-1);for(Rt=0;Rt<1;Rt+=ne)$t.push(Rt);if($t.push(1),mt[0].offset!=0){var ve={offset:0,color:mt[0].color};mt.unshift(ve)}if(mt[mt.length-1].offset!=1){var De={offset:1,color:mt[mt.length-1].color};mt.push(De)}for(var Ke="",Ce=0,Qe=0;Qe<$t.length;Qe++){for(Rt=$t[Qe];Rt>mt[Ce+1].offset;)Ce++;var Je=mt[Ce].offset,hn=(Rt-Je)/(mt[Ce+1].offset-Je),ji=mt[Ce].color,ii=mt[Ce+1].color;Ke+=H(Math.round((1-hn)*ji[0]+hn*ii[0]).toString(16))+H(Math.round((1-hn)*ji[1]+hn*ii[1]).toString(16))+H(Math.round((1-hn)*ji[2]+hn*ii[2]).toString(16))}return Ke.trim()}(c.colors,b),K=[];K.push({key:"FunctionType",value:"0"}),K.push({key:"Domain",value:"[0.0 1.0]"}),K.push({key:"Size",value:"["+b+"]"}),K.push({key:"BitsPerSample",value:"8"}),K.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),K.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Wn({data:q,additionalKeyValues:K,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:T}),F("endobj"),c.objectNumber=je(),F("<< /ShadingType "+c.type),F("/ColorSpace /DeviceRGB");var dt="/Coords ["+$(parseFloat(c.coords[0]))+" "+$(parseFloat(c.coords[1]))+" ";c.type===2?dt+=$(parseFloat(c.coords[2]))+" "+$(parseFloat(c.coords[3])):dt+=$(parseFloat(c.coords[2]))+" "+$(parseFloat(c.coords[3]))+" "+$(parseFloat(c.coords[4]))+" "+$(parseFloat(c.coords[5])),F(dt+="]"),c.matrix&&F("/Matrix ["+c.matrix.toString()+"]"),F("/Function "+T+" 0 R"),F("/Extend [true true]"),F(">>"),F("endobj")},ra=function(c,b){var T=on(),q=je();b.push({resourcesOid:T,objectOid:q}),c.objectNumber=q;var K=[];K.push({key:"Type",value:"/Pattern"}),K.push({key:"PatternType",value:"1"}),K.push({key:"PaintType",value:"1"}),K.push({key:"TilingType",value:"1"}),K.push({key:"BBox",value:"["+c.boundingBox.map($).join(" ")+"]"}),K.push({key:"XStep",value:$(c.xStep)}),K.push({key:"YStep",value:$(c.yStep)}),K.push({key:"Resources",value:T+" 0 R"}),c.matrix&&K.push({key:"Matrix",value:"["+c.matrix.toString()+"]"}),Wn({data:c.stream,additionalKeyValues:K,objectId:c.objectNumber}),F("endobj")},Bs=function(c){for(var b in c.objectNumber=je(),F("<<"),c)switch(b){case"opacity":F("/ca "+N(c[b]));break;case"stroke-opacity":F("/CA "+N(c[b]))}F(">>"),F("endobj")},Ca=function(c){ln(c.resourcesOid,!0),F("<<"),F("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var b in F("/Font <<"),oe)oe.hasOwnProperty(b)&&(m===!1||m===!0&&y.hasOwnProperty(b))&&F("/"+b+" "+oe[b].objectNumber+" 0 R");F(">>")}(),function(){if(Object.keys(zt).length>0){for(var b in F("/Shading <<"),zt)zt.hasOwnProperty(b)&&zt[b]instanceof vr&&zt[b].objectNumber>=0&&F("/"+b+" "+zt[b].objectNumber+" 0 R");ye.publish("putShadingPatternDict"),F(">>")}}(),function(b){if(Object.keys(zt).length>0){for(var T in F("/Pattern <<"),zt)zt.hasOwnProperty(T)&&zt[T]instanceof g.TilingPattern&&zt[T].objectNumber>=0&&zt[T].objectNumber<b&&F("/"+T+" "+zt[T].objectNumber+" 0 R");ye.publish("putTilingPatternDict"),F(">>")}}(c.objectOid),function(){if(Object.keys(Zt).length>0){var b;for(b in F("/ExtGState <<"),Zt)Zt.hasOwnProperty(b)&&Zt[b].objectNumber>=0&&F("/"+b+" "+Zt[b].objectNumber+" 0 R");ye.publish("putGStateDict"),F(">>")}}(),function(){for(var b in F("/XObject <<"),gn)gn.hasOwnProperty(b)&&gn[b].objectNumber>=0&&F("/"+b+" "+gn[b].objectNumber+" 0 R");ye.publish("putXobjectDict"),F(">>")}(),F(">>"),F("endobj")},Eo=function(c){se[c.fontName]=se[c.fontName]||{},se[c.fontName][c.fontStyle]=c.id},Io=function(c,b,T,q,K){var dt={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:c,fontName:b,fontStyle:T,encoding:q,isStandardFont:K||!1,metadata:{}};return ye.publish("addFont",{font:dt,instance:this}),oe[dt.id]=dt,Eo(dt),dt.id},Gn=g.__private__.pdfEscape=g.pdfEscape=function(c,b){return function(T,q){var K,dt,mt,Et,Rt,$t,ne,ve,De;if(mt=(q=q||{}).sourceEncoding||"Unicode",Rt=q.outputEncoding,(q.autoencode||Rt)&&oe[Tt].metadata&&oe[Tt].metadata[mt]&&oe[Tt].metadata[mt].encoding&&(Et=oe[Tt].metadata[mt].encoding,!Rt&&oe[Tt].encoding&&(Rt=oe[Tt].encoding),!Rt&&Et.codePages&&(Rt=Et.codePages[0]),typeof Rt=="string"&&(Rt=Et[Rt]),Rt)){for(ne=!1,$t=[],K=0,dt=T.length;K<dt;K++)(ve=Rt[T.charCodeAt(K)])?$t.push(String.fromCharCode(ve)):$t.push(T[K]),$t[K].charCodeAt(0)>>8&&(ne=!0);T=$t.join("")}for(K=T.length;ne===void 0&&K!==0;)T.charCodeAt(K-1)>>8&&(ne=!0),K--;if(!ne)return T;for($t=q.noBOM?[]:[254,255],K=0,dt=T.length;K<dt;K++){if((De=(ve=T.charCodeAt(K))>>8)>>8)throw new Error("Character at position "+K+" of string '"+T+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");$t.push(De),$t.push(ve-(De<<8))}return String.fromCharCode.apply(void 0,$t)}(c,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Fa=g.__private__.beginPage=function(c){xt[++le]=[],Gt[le]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(c[0]),topRightY:Number(c[1])}},To(le),Mt(xt[D])},Oo=function(c,b){var T,q,K;switch(n=b||n,typeof c=="string"&&(T=L(c.toLowerCase()),Array.isArray(T)&&(q=T[0],K=T[1])),Array.isArray(c)&&(q=c[0]*ee,K=c[1]*ee),isNaN(q)&&(q=r[0],K=r[1]),(q>14400||K>14400)&&(ke.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),q=Math.min(14400,q),K=Math.min(14400,K)),r=[q,K],n.substr(0,1)){case"l":K>q&&(r=[K,q]);break;case"p":q>K&&(r=[K,q])}Fa(r),Kt(Oa),F(la),Ra!==0&&F(Ra+" J"),Da!==0&&F(Da+" j"),ye.publish("addPage",{pageNumber:le})},Ea=function(c){c>0&&c<=le&&(xt.splice(c,1),Gt.splice(c,1),le--,D>le&&(D=le),this.setPage(D))},To=function(c){c>0&&c<=le&&(D=c)},Ro=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return xt.length-1},Do=function(c,b,T){var q,K=void 0;return T=T||{},c=c!==void 0?c:oe[Tt].fontName,b=b!==void 0?b:oe[Tt].fontStyle,q=c.toLowerCase(),se[q]!==void 0&&se[q][b]!==void 0?K=se[q][b]:se[c]!==void 0&&se[c][b]!==void 0?K=se[c][b]:T.disableWarning===!1&&ke.warn("Unable to look up font label for font '"+c+"', '"+b+"'. Refer to getFontList(
37) for available fonts."),K||T.noFallback||(K=se.times[b])==null&&(K=se.times.normal),K},pi=g.__private__.putInfo=function(){var c=je(),b=function(q){return q};for(var T in p!==null&&(b=Xe.encryptor(c,0)),F("<<"),F("/Producer ("+Gn(b("jsPDF "+Dt.version))+")"),fe)fe.hasOwnProperty(T)&&fe[T]&&F("/"+T.substr(0,1).toUpperCase()+T.substr(1)+" ("+Gn(b(fe[T]))+")");F("/CreationDate ("+Gn(b(it))+")"),F(">>"),F("endobj")},aa=g.__private__.putCatalog=function(c){var b=(c=c||{}).rootDictionaryObjId||Ji;switch(je(),F("<<"),F("/Type /Catalog"),F("/Pages "+b+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":F("/OpenAction [3 0 R /FitH null]");break;case"fullheight":F("/OpenAction [3 0 R /FitV null]");break;case"fullpage":F("/OpenAction [3 0 R /Fit]");break;case"original":F("/OpenAction [3 0 R /XYZ null null 1]");break;default:var T=""+Wt;T.substr(T.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&F("/OpenAction [3 0 R /XYZ null null "+N(Wt)+"]")}switch(he||(he="continuous"),he){case"continuous":F("/PageLayout /OneColumn");break;case"single":F("/PageLayout /SinglePage");break;case"two":case"twoleft":F("/PageLayout /TwoColumnLeft");break;case"tworight":F("/PageLayout /TwoColumnRight")}qt&&F("/PageMode /"+qt),ye.publish("putCatalog"),F(">>"),F("endobj")},Ms=g.__private__.putTrailer=function(){F("trailer"),F("<<"),F("/Size "+(Y+1)),F("/Root "+Y+" 0 R"),F("/Info "+(Y-1)+" 0 R"),p!==null&&F("/Encrypt "+Xe.oid+" 0 R"),F("/ID [ <"+st+"> <"+st+"> ]"),F(">>")},$e=g.__private__.putHeader=function(){F("%PDF-"+P),F("%ºß¬à")},jo=g.__private__.putXRef=function(){var c="0000000000";F("xref"),F("0 "+(Y+1)),F("0000000000 65535 f ");for(var b=1;b<=Y;b++)typeof X[b]=="function"?F((c+X[b]()).slice(-10)+" 00000 n "):X[b]!==void 0?F((c+X[b]).slice(-10)+" 00000 n "):F("0000000000 00000 n ")},gi=g.__private__.buildDocument=function(){var c;Y=0,ot=0,at=[],X=[],gt=[],Ji=on(),Qn=on(),Mt(at),ye.publish("buildDocument"),$e(),di(),function(){ye.publish("putAdditionalObjects");for(var T=0;T<gt.length;T++){var q=gt[T];ln(q.objId,!0),F(q.content),F("endobj")}ye.publish("postPutAdditionalObjects")}(),c=[],function(){for(var T in oe)oe.hasOwnProperty(T)&&(m===!1||m===!0&&y.hasOwnProperty(T))&&kr(oe[T])}(),function(){var T;for(T in Zt)Zt.hasOwnProperty(T)&&Bs(Zt[T])}(),function(){for(var T in gn)gn.hasOwnProperty(T)&&na(gn[T])}(),function(T){var q;for(q in zt)zt.hasOwnProperty(q)&&(zt[q]instanceof vr?ia(zt[q]):zt[q]instanceof Vr&&ra(zt[q],T))}(c),ye.publish("putResources"),c.forEach(Ca),Ca({resourcesOid:Qn,objectOid:Number.MAX_SAFE_INTEGER}),ye.publish("postPutResources"),p!==null&&(Xe.oid=je(),F("<<"),F("/Filter /Standard"),F("/V "+Xe.v),F("/R "+Xe.r),F("/U <"+Xe.toHexString(Xe.U)+">"),F("/O <"+Xe.toHexString(Xe.O)+">"),F("/P "+Xe.P),F(">>"),F("endobj")),pi(),aa();var b=ot;return jo(),Ms(),F("startxref"),F(""+b),F("%%EOF"),Mt(xt[D]),at.join(`
38`)},oa=g.__private__.getBlob=function(c){return new Blob([ae(c)],{type:"application/pdf"})},Bo=g.output=g.__private__.output=(Hn=function(c,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",c){case void 0:return gi();case"save":g.save(b.filename);break;case"arraybuffer":return ae(gi());case"blob":return oa(gi());case"bloburi":case"bloburl":if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL=="function")return Yt.URL&&Yt.URL.createObjectURL(oa(gi()))||void 0;ke.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var T="",q=gi();try{T=du(q)}catch{T=du(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+b.filename+";base64,"+T;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var K="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",dt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(K=b.pdfObjectUrl,dt="");var mt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+K+'"'+dt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(b)+");<\/script></body></html>",Et=Yt.open();return Et!==null&&Et.document.write(mt),Et}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var Rt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(b.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+b.filename+'" width="500px" height="400px" /></body></html>',$t=Yt.open();if($t!==null){$t.document.write(Rt);var ne=this;$t.document.documentElement.querySelector("#pdfViewer").onload=function(){$t.document.title=b.filename,$t.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ne.output("bloburl"))}}return $t}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 ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",b)+'"></iframe></body></html>',De=Yt.open();if(De!==null&&(De.document.write(ve),De.document.title=b.filename),De||typeof safari>"u")return De;break;case"datauri":case"dataurl":return Yt.document.location.href=this.output("datauristring",b);default:return null}},Hn.foo=function(){try{return Hn.apply(this,arguments)}catch(T){var c=T.stack||"";~c.indexOf(" at ")&&(c=c.split(" at ")[1]);var b="Error in function "+c.split(`
39`)[0].split("<")[0]+": "+T.message;if(!Yt.console)throw new Error(b);Yt.console.error(b,T),Yt.alert&&alert(b)}},Hn.foo.bar=Hn,Hn.foo),Vn=function(c){return Array.isArray(Sr)===!0&&Sr.indexOf(c)>-1};switch(i){case"pt":ee=1;break;case"mm":ee=72/25.4;break;case"cm":ee=72/2.54;break;case"in":ee=72;break;case"px":ee=Vn("px_scaling")==1?.75:96/72;break;case"pc":case"em":ee=12;break;case"ex":ee=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);ee=i}var Xe=null;wt(),nt();var Fi=g.__private__.getPageInfo=g.getPageInfo=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to 
39jsPDF.getPageInfo");return{objId:Gt[c].objId,pageNumber:c,pageContext:Gt[c]}},Mo=g.__private__.getPageInfoByObjId=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in Gt)if(Gt[b].objId===c)break;return Fi(b)},qs=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Gt[D].objId,pageNumber:D,pageContext:Gt[D]}};g.addPage=function(){return Oo.apply(this,arguments),this},g.setPage=function(){return To.apply(this,arguments),Mt.call(this,xt[D]),this},g.insertPage=function(c){return this.addPage(),this.movePage(D,c),this},g.movePage=function(c,b){var T,q;if(c>b){T=xt[c],q=Gt[c];for(var K=c;K>b;K--)xt[K]=xt[K-1],Gt[K]=Gt[K-1];xt[b]=T,Gt[b]=q,this.setPage(b)}else if(c<b){T=xt[c],q=Gt[c];for(var dt=c;dt<b;dt++)xt[dt]=xt[dt+1],Gt[dt]=Gt[dt+1];xt[b]=T,Gt[b]=q,this.setPage(b)}return this},g.deletePage=function(){return Ea.apply(this,arguments),this},g.__private__.text=g.text=function(c,b,T,q,K){var dt,mt,Et,Rt,$t,ne,ve,De,Ke,Ce=(q=q||{}).scope||this;if(typeof c=="number"&&typeof b=="number"&&(typeof T=="string"||Array.isArray(T))){var Qe=T;T=b,b=c,c=Qe}if(arguments[3]instanceof Vt==0?(Et=arguments[4],Rt=arguments[5],Se(ve=arguments[3])==="object"&&ve!==null||(typeof Et=="string"&&(Rt=Et,Et=null),typeof ve=="string"&&(Rt=ve,ve=null),typeof ve=="number"&&(Et=ve,ve=null),q={flags:ve,angle:Et,align:Rt})):(j("The transform parameter of text() with a Matrix value"),Ke=K),isNaN(b)||isNaN(T)||c==null)throw new Error("Invalid arguments passed to jsPDF.text");if(c.length===0)return Ce;var Je,hn="",ji=typeof q.lineHeightFactor=="number"?q.lineHeightFactor:Cr,ii=Ce.internal.scaleFactor;function Bi(_e){return _e=_e.split("	").join(Array(q.TabLen||9).join(" ")),Gn(_e,ve)}function qa(_e){for(var Ne,He=_e.concat(),tn=[],zi=He.length;zi--;)typeof(Ne=He.shift())=="string"?tn.push(Ne):Array.isArray(_e)&&(Ne.length===1||Ne[1]===void 0&&Ne[2]===void 0)?tn.push(Ne[0]):tn.push([Ne[0],Ne[1],Ne[2]]);return tn}function fa(_e,Ne){var He;if(typeof _e=="string")He=Ne(_e)[0];else if(Array.isArray(_e)){for(var tn,zi,Ka=_e.concat(),da=[],Ko=Ka.length;Ko--;)typeof(tn=Ka.shift())=="string"?da.push(Ne(tn)[0]):Array.isArray(tn)&&typeof tn[0]=="string"&&(zi=Ne(tn[0],tn[1],tn[2]),da.push([zi[0],zi[1],zi[2]]));He=da}return He}var Xi=!1,Or=!0;if(typeof c=="string")Xi=!0;else if(Array.isArray(c)){var Tr=c.concat();mt=[];for(var Qi,fn=Tr.length;fn--;)(typeof(Qi=Tr.shift())!="string"||Array.isArray(Qi)&&typeof Qi[0]!="string")&&(Or=!1);Xi=Or}if(Xi===!1)throw new Error('Type of text must be string or Array. "'+c+'" is not recognized.');typeof c=="string"&&(c=c.match(/[\r?\n]/)?c.split(/\r\n|\r|\n/g):[c]);var Rr=yt/Ce.internal.scaleFactor,Dr=Rr*(ji-1);switch(q.baseline){case"bottom":T-=Dr;break;case"top":T+=Rr-Dr;break;case"hanging":T+=Rr-2*Dr;break;case"middle":T+=Rr/2-Dr}if((ne=q.maxWidth||0)>0&&(typeof c=="string"?c=Ce.splitTextToSize(c,ne):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(_e,Ne){return _e.concat(Ce.splitTextToSize(Ne,ne))},[]))),dt={text:c,x:b,y:T,options:q,mutex:{pdfEscape:Gn,activeFontKey:Tt,fonts:oe,activeFontSize:yt}},ye.publish("preProcessText",dt),c=dt.text,Et=(q=dt.options).angle,Ke instanceof Vt==0&&Et&&typeof Et=="number"){Et*=Math.PI/180,q.rotationDirection===0&&(Et=-Et),M===V&&(Et=-Et);var za=Math.cos(Et),Ua=Math.sin(Et);Ke=new Vt(za,Ua,-Ua,za,0,0)}else Et&&Et instanceof Vt&&(Ke=Et);M!==V||Ke||(Ke=Ci),($t=q.charSpace||Oi)!==void 0&&(hn+=$(U($t))+` Tc
40`,this.setCharSpace(this.getCharSpace()||0)),(De=q.horizontalScale)!==void 0&&(hn+=$(100*De)+` Tz
41`),q.lang;var _n=-1,Mi=q.renderingMode!==void 0?q.renderingMode:q.stroke,ua=Ce.internal.getCurrentPageInfo().pageContext;switch(Mi){case 0:case!1:case"fill":_n=0;break;case 1:case!0:case"stroke":_n=1;break;case 2:case"fillThenStroke":_n=2;break;case 3:case"invisible":_n=3;break;case 4:case"fillAndAddForClipping":_n=4;break;case 5:case"strokeAndAddPathForClipping":_n=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":_n=6;break;case 7:case"addToPathForClipping":_n=7}var Yo=ua.usedRenderingMode!==void 0?ua.usedRenderingMode:-1;_n!==-1?hn+=_n+` Tr
42`:Yo!==-1&&(hn+=`0 Tr
43`),_n!==-1&&(ua.usedRenderingMode=_n),Rt=q.align||"left";var Zn,jr=yt*ji,Ha=Ce.internal.pageSize.getWidth(),Wa=oe[Tt];$t=q.charSpace||Oi,ne=q.maxWidth||0,ve=Object.assign({autoencode:!0,noBOM:!0},q.flags);var tr=[],Br=function(_e){return Ce.getStringUnitWidth(_e,{font:Wa,charSpace:$t,fontSize:yt,doKerning:!1})*yt/ii};if(Object.prototype.toString.call(c)==="[object Array]"){var Fn;mt=qa(c),Rt!=="left"&&(Zn=mt.map(Br));var En,er=0;if(Rt==="right"){b-=Zn[0],c=[],fn=mt.length;for(var qi=0;qi<fn;qi++)qi===0?(En=Ei(b),Fn=Ii(T)):(En=U(er-Zn[qi]),Fn=-jr),c.push([mt[qi],En,Fn]),er=Zn[qi]}else if(Rt==="center"){b-=Zn[0]/2,c=[],fn=mt.length;for(var nr=0;nr<fn;nr++)nr===0?(En=Ei(b),Fn=Ii(T)):(En=U((er-Zn[nr])/2),Fn=-jr),c.push([mt[nr],En,Fn]),er=Zn[nr]}else if(Rt==="left"){c=[],fn=mt.length;for(var Ga=0;Ga<fn;Ga++)c.push(mt[Ga])}else if(Rt==="justify"&&Wa.encoding==="Identity-H"){c=[],fn=mt.length,ne=ne!==0?ne:Ha;for(var ca=0,Ue=0;Ue<fn;Ue++)if(Fn=Ue===0?Ii(T):-jr,En=Ue===0?Ei(b):ca,Ue<fn-1){var $o=U((ne-Zn[Ue])/(mt[Ue].split(" ").length-1)),mi=mt[Ue].split(" ");c.push([mi[0]+" ",En,Fn]),ca=0;for(var bi=1;bi<mi.length;bi++){var Va=(Br(mi[bi-1]+" "+mi[bi])-Br(mi[bi]))*ii+$o;bi==mi.length-1?c.push([mi[bi],Va,0]):c.push([mi[bi]+" ",Va,0]),ca-=Va}}else c.push([mt[Ue],En,Fn]);c.push(["",ca,0])}else{if(Rt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(c=[],fn=mt.length,ne=ne!==0?ne:Ha,Ue=0;Ue<fn;Ue++){Fn=Ue===0?Ii(T):-jr,En=Ue===0?Ei(b):0;var Za=mt[Ue].split(" ").length-1,Ya=Za>0?(ne-Zn[Ue])/Za:0;Ue<fn-1?tr.push($(U(Ya))):tr.push(0),c.push([mt[Ue],En,Fn])}}}(typeof q.R2L=="boolean"?q.R2L:Ut)===!0&&(c=fa(c,function(_e,Ne,He){return[_e.split("").reverse().join(""),Ne,He]})),dt={text:c,x:b,y:T,options:q,mutex:{pdfEscape:Gn,activeFontKey:Tt,fonts:oe,activeFontSize:yt}},ye.publish("postProcessText",dt),c=dt.text,Je=dt.mutex.isHex||!1;var $a=oe[Tt].encoding;$a!=="WinAnsiEncoding"&&$a!=="StandardEncoding"||(c=fa(c,function(_e,Ne,He){return[Bi(_e),Ne,He]})),mt=qa(c),c=[];for(var ir,rr,ar,Mr=Array.isArray(mt[0])?1:0,or="",qr=function(_e,Ne,He){var tn="";return He instanceof Vt?(He=typeof q.angle=="number"?Pi(He,new Vt(1,0,0,1,_e,Ne)):Pi(new Vt(1,0,0,1,_e,Ne),He),M===V&&(He=Pi(new Vt(1,0,0,-1,0,0),He)),tn=He.join(" ")+` Tm
44`):tn=$(_e)+" "+$(Ne)+` Td
45`,tn},Yn=0;Yn<mt.length;Yn++){switch(or="",Mr){case 1:ar=(Je?"<":"(")+mt[Yn][0]+(Je?">":")"),ir=parseFloat(mt[Yn][1]),rr=parseFloat(mt[Yn][2]);break;case 0:ar=(Je?"<":"(")+mt[Yn]+(Je?">":")"),ir=Ei(b),rr=Ii(T)}tr!==void 0&&tr[Yn]!==void 0&&(or=tr[Yn]+` Tw
46`),Yn===0?c.push(or+qr(ir,rr,Ke)+ar):Mr===0?c.push(or+ar):Mr===1&&c.push(or+qr(ir,rr,Ke)+ar)}c=Mr===0?c.join(` Tj
47T* `):c.join(` Tj
48`),c+=` Tj
49`;var wi=`BT
50/`;return wi+=Tt+" "+yt+` Tf
51`,wi+=$(yt*ji)+` TL
52`,wi+=Fr+`
53`,wi+=hn,wi+=c,F(wi+="ET"),y[Tt]=!0,Ce};var zs=g.__private__.clip=g.clip=function(c){return F(c==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return zs("evenodd")},g.__private__.discardPath=g.discardPath=function(){return F("n"),this};var vi=g.__private__.isValidStyle=function(c){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(c)!==-1&&(b=!0),b};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(c){return vi(c)&&(u=c),this};var qo=g.__private__.getStyle=g.getStyle=function(c){var b=u;switch(c){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=c}return b},zo=g.close=function(){return F("h"),this};g.stroke=function(){return F("S"),this},g.fill=function(c){return sa("f",c),this},g.fillEvenOdd=function(c){return sa("f*",c),this},g.fillStroke=function(c){return sa("B",c),this},g.fillStrokeEvenOdd=function(c){return sa("B*",c),this};var sa=function(c,b){Se(b)==="object"?Hs(b,c):F(c)},Pr=function(c){c===null||M===V&&c===void 0||(c=qo(c),F(c))};function Us(c,b,T,q,K){var dt=new Vr(b||this.boundingBox,T||this.xStep,q||this.yStep,this.gState,K||this.matrix
vendor: 4,357 bytes, line 53
53);dt.stream=this.stream;var mt=c+"$$"+this.cloneIndex+++"$$";return Un(mt,dt),dt}var Hs=function(c,b){var T=Pe[c.key],q=zt[T];if(q instanceof vr)F("q"),F(Ws(b)),q.gState&&g.setGState(q.gState),F(c.matrix.toString()+" cm"),F("/"+T+" sh"),F("Q");else if(q instanceof Vr){var K=new Vt(1,0,0,-1,0,Ir());c.matrix&&(K=K.multiply(c.matrix||Ci),T=Us.call(q,c.key,c.boundingBox,c.xStep,c.yStep,K).id),F("q"),F("/Pattern cs"),F("/"+T+" scn"),q.gState&&g.setGState(q.gState),F(b),F("Q")}},Ws=function(c){switch(c){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"}},Ia=g.moveTo=function(c,b){return F($(U(c))+" "+$(z(b))+" m"),this},Uo=g.lineTo=function(c,b){return F($(U(c))+" "+$(z(b))+" l"),this},ni=g.curveTo=function(c,b,T,q,K,dt){return F([$(U(c)),$(z(b)),$(U(T)),$(z(q)),$(U(K)),$(z(dt)),"c"].join(" ")),this};g.__private__.line=g.line=function(c,b,T,q,K){if(isNaN(c)||isNaN(b)||isNaN(T)||isNaN(q)||!vi(K))throw new Error("Invalid arguments passed to jsPDF.line");return M===G?this.lines([[T-c,q-b]],c,b,[1,1],K||"S"):this.lines([[T-c,q-b]],c,b,[1,1]).stroke()},g.__private__.lines=g.lines=function(c,b,T,q,K,dt){var mt,Et,Rt,$t,ne,ve,De,Ke,Ce,Qe,Je,hn;if(typeof c=="number"&&(hn=T,T=b,b=c,c=hn),q=q||[1,1],dt=dt||!1,isNaN(b)||isNaN(T)||!Array.isArray(c)||!Array.isArray(q)||!vi(K)||typeof dt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ia(b,T),mt=q[0],Et=q[1],$t=c.length,Qe=b,Je=T,Rt=0;Rt<$t;Rt++)(ne=c[Rt]).length===2?(Qe=ne[0]*mt+Qe,Je=ne[1]*Et+Je,Uo(Qe,Je)):(ve=ne[0]*mt+Qe,De=ne[1]*Et+Je,Ke=ne[2]*mt+Qe,Ce=ne[3]*Et+Je,Qe=ne[4]*mt+Qe,Je=ne[5]*Et+Je,ni(ve,De,Ke,Ce,Qe,Je));return dt&&zo(),Pr(K),this},g.path=function(c){for(var b=0;b<c.length;b++){var T=c[b],q=T.c;switch(T.op){case"m":Ia(q[0],q[1]);break;case"l":Uo(q[0],q[1]);break;case"c":ni.apply(this,q);break;case"h":zo()}}return this},g.__private__.rect=g.rect=function(c,b,T,q,K){if(isNaN(c)||isNaN(b)||isNaN(T)||isNaN(q)||!vi(K))throw new Error("Invalid arguments passed to jsPDF.rect");return M===G&&(q=-q),F([$(U(c)),$(z(b)),$(U(T)),$(U(q)),"re"].join(" ")),Pr(K),this},g.__private__.triangle=g.triangle=function(c,b,T,q,K,dt,mt){if(isNaN(c)||isNaN(b)||isNaN(T)||isNaN(q)||isNaN(K)||isNaN(dt)||!vi(mt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[T-c,q-b],[K-T,dt-q],[c-K,b-dt]],c,b,[1,1],mt,!0),this},g.__private__.roundedRect=g.roundedRect=function(c,b,T,q,K,dt,mt){if(isNaN(c)||isNaN(b)||isNaN(T)||isNaN(q)||isNaN(K)||isNaN(dt)||!vi(mt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Et=4/3*(Math.SQRT2-1);return K=Math.min(K,.5*T),dt=Math.min(dt,.5*q),this.lines([[T-2*K,0],[K*Et,0,K,dt-dt*Et,K,dt],[0,q-2*dt],[0,dt*Et,-K*Et,dt,-K,dt],[2*K-T,0],[-K*Et,0,-K,-dt*Et,-K,-dt],[0,2*dt-q],[0,-dt*Et,K*Et,-dt,K,-dt]],c+K,b,[1,1],mt,!0),this},g.__private__.ellipse=g.ellipse=function(c,b,T,q,K){if(isNaN(c)||isNaN(b)||isNaN(T)||isNaN(q)||!vi(K))throw new Error("Invalid arguments passed to jsPDF.ellipse");var dt=4/3*(Math.SQRT2-1)*T,mt=4/3*(Math.SQRT2-1)*q;return Ia(c+T,b),ni(c+T,b-mt,c+dt,b-q,c,b-q),ni(c-dt,b-q,c-T,b-mt,c-T,b),ni(c-T,b+mt,c-dt,b+q,c,b+q),ni(c+dt,b+q,c+T,b+mt,c+T,b),Pr(K),this},g.__private__.circle=g.circle=function(c,b,T,q){if(isNaN(c)||isNaN(b)||isNaN(T)||!vi(q))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(c,b,T,T,q)},g.setFont=function(c,b,T){return T&&(b=ct(b,T)),Tt=Do(c,b,{disableWarning:!1}),this};var Gs=g.__private__.getFont=g.getFont=function(){return oe[Do.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var c,b,T={};for(c in se)if(se.hasOwnProperty(c))for(b in T[c]=[],se[c])se[c].hasOwnProperty(b)&&T[c].push(b);return T},g.addFont=function(c,b,T,q,K){var dt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&dt.indexOf(arguments[3])!==-1?K=arguments[3]:arguments[3]&&dt.indexOf(arguments[3])==-1&&(T=ct(T,q)),Io.call(this,c,b,T,K=K||"Identity-H")};var Cr,Oa=t.lineWidth||.200025,Vs=g.__private__.getLineWidth=g.getLineWidth=function(){return Oa},Kt=g.__private__.setLineWidth=g.setLineWidth=function(c){return Oa=c,F($(U(c))+" w"),this};g.__private__.setLineDash=Dt.API.setLineDash=Dt.API.setLineDashPattern=function(c,b){if(c=c||[],b=b||0,isNaN(b)||!Array.isArray(c))throw new Error("Invalid arguments passed to 
53jsPDF.setLineDash");return c=c.map(function(T){return $(U(T))}).join(" "),b=$(U(b)),F("["+c+"] "+b+" d"),this};var Zs=g.__private__.getLineHeight=g.getLineHeight=function(){return yt*Cr};g.__private__.getLineHeight=g.getLineHeight=function(){return yt*Cr};var Ys=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(c){return typeof(c=c||1.15)=="number"&&(Cr=c),this},$s=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return Cr};Ys(t.lineHeight);var Ei=g.__private__.getHorizontalCoordinate=function(c){return U(c)},Ii=g.__private__.getVerticalCoordinate=function(c){return M===V?c:Gt[D].mediaBox.topRightY-Gt[D].mediaBox.bottomLeftY-U(c)},Ks=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(c){return $(Ei(c))},Js=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(c){return $(Ii(c))},la=t.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return ci(la)},g.__private__.setStrokeColor=g.setDrawColor=function(c,b,T,q){return la=ti({ch1:c,ch2:b,ch3:T,ch4:q,pdfColorType:"draw",precision:2}),F(la),this};var Ta=t.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return ci(Ta)},g.__private__.setFillColor=g.setFillColor=function(c,b,T,q){return Ta=ti({ch1:c,ch2:b,ch3:T,ch4:q,pdfColorType:"fill",precision:2}),F(Ta),this};var Fr=t.textColor||"0 g",Xs=g.__private__.getTextColor=g.getTextColor=function(){return ci(Fr)};g.__private__.setTextColor=g.setTextColor=function(c,b,T,q){return Fr=ti({ch1:c,ch2:b,ch3:T,ch4:q,pdfColorType:"text",precision:3}),this};var Oi=t.charSpace,Qs=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Oi||0)};g.__private__.setCharSpace=g.setCharSpace=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Oi=c,this};var Ra=0;g.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},g.__private__.setLineCap=g.setLineCap=function(c){var b=g.CapJoinStyles[c];if(b===void 0)throw new Error("Line cap style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ra=b,F(b+" J"),this};var Da=0;g.__private__.setLineJoin=g.setLineJoin=function(c){var b=g.CapJoinStyles[c];if(b===void 0)throw new Error("Line join style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Da=b,F(b+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(c){if(c=c||0,isNaN(c))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return F($(U(c))+" M"),this},g.GState=Lo,g.setGState=function(c){(c=typeof c=="string"?Zt[Qt[c]]:Ho(null,c)).equals(Te)||(F("/"+c.id+" gs"),Te=c)};var Ho=function(c,b){if(!c||!Qt[c]){var T=!1;for(var q in Zt)if(Zt.hasOwnProperty(q)&&Zt[q].equals(b)){T=!0;break}if(T)b=Zt[q];else{var K="GS"+(Object.keys(Zt).length+1).toString(10);Zt[K]=b,b.id=K}return c&&(Qt[c]=b.id),ye.publish("addGState",b),b}};g.addGState=function(c,b){return Ho(c,b),this},g.saveGraphicsState=function(){return F("q"),Oe.push({key:Tt,size:yt,color:Fr}),this},g.restoreGraphicsState=function(){F("Q");var c=Oe.pop();return Tt=c.key,yt=c.size,Fr=c.color,Te=null,this},g.setCurrentTransformationMatrix=function(c){return F(c.toString()+" cm"),this},g.comment=function(c){return F("#"+c),this};var Ti=function(c,b){var T=c||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return T},set:function(dt){isNaN(dt)||(T=parseFloat(dt))}});var q=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return q},set:function(dt){isNaN(dt)||(q=parseFloat(dt))}});var K="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return K},set:function(dt){K=dt.toString()}}),this},ja=function(c,b,T,q){Ti.call(this,c,b),this.type="rect";var K=T||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return K},set:function(mt){isNaN(mt)||(K=parseFloat(mt))}});var dt=q||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return dt},set:function(mt){isNaN(mt)||(dt=parseFloat(mt))}}),this},ha=function(){this.page=le,this.currentPage=D,this.pages=xt.slice(0),this.pagesContext=Gt.slice(0),this.x=Bt,this.y=ze,this.matrix=ge,this.width=Ma(D),this.height=Go(D),this.outputDestination=Lt,this.id="",this.objectNumber=-1};ha.prototype.restore=function(){le=this.page,D=this.currentPage,Gt=this.pagesContext,xt=this.pages,Bt=this.x,ze=this.y,ge=this.matrix,Wo(D,this.width),Ri(D,this.height),Lt=this.outputDestination};var Ba=function(c,b,T,q,K){ui.push(new ha),le=D=0,xt=[],Bt=c,ze=b,ge=K,Fa([T,q])};for(var Er in g.beginFormObject=function(c,b,T,q,K){return Ba(c,b,T,q,K),this},g.endFormObject=function(c){return function(b){if(ki[b])ui.pop().restore(
vendor: 4,713 bytes, line 53
53);else{var T=new ha,q="Xo"+(Object.keys(gn).length+1).toString(10);T.id=q,ki[b]=q,gn[q]=T,ye.publish("addFormObject",T),ui.pop().restore()}}(c),this},g.doFormObject=function(c,b){var T=gn[ki[c]];return F("q"),F(b.toString()+" cm"),F("/"+T.id+" Do"),F("Q"),this},g.getFormObject=function(c){var b=gn[ki[c]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},g.save=function(c,b){return c=c||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(Ur(oa(gi()),c),typeof Ur.unload=="function"&&Yt.setTimeout&&setTimeout(Ur.unload,911),this):new Promise(function(T,q){try{var K=Ur(oa(gi()),c);typeof Ur.unload=="function"&&Yt.setTimeout&&setTimeout(Ur.unload,911),T(K)}catch(dt){q(dt.message)}})},Dt.API)Dt.API.hasOwnProperty(Er)&&(Er==="events"&&Dt.API.events.length?function(c,b){var T,q,K;for(K=b.length-1;K!==-1;K--)T=b[K][0],q=b[K][1],c.subscribe.apply(c,[T].concat(typeof q=="function"?[q]:q))}(ye,Dt.API.events):g[Er]=Dt.API[Er]);function Ma(c){return Gt[c].mediaBox.topRightX-Gt[c].mediaBox.bottomLeftX}function Wo(c,b){Gt[c].mediaBox.topRightX=b+Gt[c].mediaBox.bottomLeftX}function Go(c){return Gt[c].mediaBox.topRightY-Gt[c].mediaBox.bottomLeftY}function Ri(c,b){Gt[c].mediaBox.topRightY=b+Gt[c].mediaBox.bottomLeftY}var Di=g.getPageWidth=function(c){return Ma(c=c||D)/ee},Vo=g.setPageWidth=function(c,b){Wo(c,b*ee)},Ir=g.getPageHeight=function(c){return Go(c=c||D)/ee},Zo=g.setPageHeight=function(c,b){Ri(c,b*ee)};return g.internal={pdfEscape:Gn,getStyle:qo,getFont:Gs,getFontSize:Ft,getCharSpace:Qs,getTextColor:Xs,getLineHeight:Zs,getLineHeightFactor:$s,getLineWidth:Vs,write:Nt,getHorizontalCoordinate:Ei,getVerticalCoordinate:Ii,getCoordinateString:Ks,getVerticalCoordinateString:Js,collections:{},newObject:je,newAdditionalObject:Nr,newObjectDeferred:on,newObjectDeferredBegin:ln,getFilters:ei,putStream:Wn,events:ye,scaleFactor:ee,pageSize:{getWidth:function(){return Di(D)},setWidth:function(c){Vo(D,c)},getHeight:function(){return Ir(D)},setHeight:function(c){Zo(D,c)}},encryptionOptions:p,encryption:Xe,getEncryptor:function(c){return p!==null?Xe.encryptor(c,0):function(b){return b}},output:Bo,getNumberOfPages:Ro,get pages(){return xt},out:F,f2:N,f3:O,getPageInfo:Fi,getPageInfoByObjId:Mo,getCurrentPageInfo:qs,getPDFVersion:C,Point:Ti,Rectangle:ja,Matrix:Vt,hasHotfix:Vn},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return Di(D)},set:function(c){Vo(D,c)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return Ir(D)},set:function(c){Zo(D,c)},enumerable:!0,configurable:!0}),function(c){for(var b=0,T=Ht.length;b<T;b++){var q=Io.call(this,c[b][0],c[b][1],c[b][2],Ht[b][3],!0);m===!1&&(y[q]=!0);var K=c[b][0].split("-");Eo({id:q,fontName:K[0],fontStyle:K[1]||""})}ye.publish("addFonts",{fonts:oe,dictionary:se})}.call(g,Ht),Tt="F1",Oo(r,n),ye.publish("initialized"),g}wa.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},wa.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},wa.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},wa.prototype.processOwnerPassword=function(t,e){return lh(sh(e).substr(0,5),t)},wa.prototype.encryptor=function(t,e){var n=sh(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(i){return lh(n,i)}},Lo.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||Se(t)!==Se(this))return!1;var i=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;i++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&i--;return i===0},Dt.API={events:[]},Dt.version="4.1.0";var qe=Dt.API,Nh=1,ea=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ma=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Cs=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var n=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},Jt=function(t){return t.toFixed(2)},pr=function(t){return t.toFixed(5)};qe.__acroform__={};var Cn=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},mu=function(t){return t*Nh},_i=function(t){var e=new zc,n=Ct.internal.getHeight(t)||0,i=Ct.internal.getWidth(t)||0;return e.BBox=[0,0,Number(Jt(i)),Number(Jt(n))],e},w5=qe.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to 
53jsPDF.API.__acroform__.setBit");return t|1<<e},y5=qe.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},_5=qe.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},Ve=qe.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return _5(t,e-1)},Ze=qe.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return w5(t,e-1)},Ye=qe.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return y5(t,e-1)},x5=qe.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,i=e.internal.getVerticalCoordinate,r=t[0],a=t[1],h=t[2],s=t[3],f={};return f.lowerLeft_X=n(r)||0,f.lowerLeft_Y=i(a+s)||0,f.upperRight_X=n(r+h)||0,f.upperRight_Y=i(a)||0,[Number(Jt(f.lowerLeft_X)),Number(Jt(f.lowerLeft_Y)),Number(Jt(f.upperRight_X)),Number(Jt(f.upperRight_Y))]},A5=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,i=hh(t,n),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+r+" "+Jt(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=_i(t);return a.scope=t.scope,a.stream=e.join(`
54`),a}},hh=function(t,e){var n=t.fontSize===0?t.maxFontSize:t.fontSize,i={text:"",fontSize:""},r=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");r=t.multiline?r.map(function(N){return N.split(`
55`)}):r.map(function(N){return[N]});var a=n,h=Ct.internal.getHeight(t)||0;h=h<0?-h:h;var s=Ct.internal.getWidth(t)||0;s=s<0?-s:s;var f=function(N,O,U){if(N+1<r.length){var z=O+" "+r[N+1][0];return ys(z,t,U).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var u,p,m=ys("3",t,a).height,y=t.multiline?h-a:(h-m)/2,g=y+=2,P=0,C=0,R=0;if(a<=0){e=`(...) Tj
56`,e+="% Width of Text: "+ys(e,t,a=12).width+", FieldWidth:"+s+`
57`;break}for(var L="",G=0,V=0;V<r.length;V++)if(r.hasOwnProperty(V)){var M=!1;if(r[V].length!==1&&R!==r[V].length-1){if((m+2)*(G+2)+2>h)continue t;L+=r[V][R],M=!0,C=V,V--}else{L=(L+=r[V][R]+" ").substr(L.length-1)==" "?L.substr(0,L.length-1):L;var rt=parseInt(V),vt=f(rt,L,a),ct=V>=r.length-1;if(vt&&!ct){L+=" ",R=0;continue}if(vt||ct){if(ct)C=rt;else if(t.multiline&&(m+2)*(G+2)+2>h)continue t}else{if(!t.multiline||(m+2)*(G+2)+2>h)continue t;C=rt}}for(var $="",j=P;j<=C;j++){var tt=r[j];if(t.multiline){if(j===C){$+=tt[R]+" ",R=(R+1)%tt.length;continue}if(j===P){$+=tt[tt.length-1]+" ";continue}}$+=tt[0]+" "}switch($=$.substr($.length-1)==" "?$.substr(0,$.length-1):$,p=ys($,t,a).width,t.textAlign){case"right":u=s-p-2;break;case"center":u=(s-p)/2;break;default:u=2}e+=Jt(u)+" "+Jt(g)+` Td
58`,e+="("+ea($)+`) Tj
59`,e+=-Jt(u)+` 0 Td
60`,g=-(a+2),p=0,P=M?C:C+1,G++,L=""}break}return i.text=e,i.fontSize=a,i},ys=function(t,e,n){var i=e.scope.internal.getFont(e.fontName,e.fontStyle),r=e.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:r}},S5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},N5=function(t,e){var n={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(i){return i.type===n.type&&i.object===n.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},L5=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(hi.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(S5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Nh=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Uc,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var i=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in i)if(i.hasOwnProperty(r)){var a=i[r];a.objId=void 0,a.hasAnnotation&&N5(a,n)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(n){(function(i,r){var a=!i;for(var h in i||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),i=i||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(i.hasOwnProperty(h)){var s=i[h],f=[],u=s.Rect;if(s.Rect&&(s.Rect=x5(s.Rect,r)),r.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Ct.createDefaultAppearanceStream(s),Se(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(f=s.getKeyValueListForStream()),s.Rect=u,s.hasAppearanceStream&&!s.appearanceStreamContent){var p=A5(s);f.push({key:"AP",value:"<</N "+p+">>"}),r.internal.acroformPlugin.xForms.push(p)}if(s.appearanceStreamContent){var m="";for(var y in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(y)){var g=s.appearanceStreamContent[y];if(m+="/"+y+" ",m+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var h in g)if(g.hasOwnProperty(h)){var P=g[h];typeof P=="function"&&(P=P.call(r,s)),m+="/"+h+" "+P+" ",r.internal.acroformPlugin.xForms.indexOf(P)>=0||r.internal.acroformPlugin.xForms.push(P)}}else typeof(P=g)=="function"&&(P=P.call(r,s)),m+="/"+h+" "+P,r.internal.acroformPlugin.xForms.indexOf(P)>=0||r.internal.acroformPlugin.xForms.push(P);m+=">>"}f.push({key:"AP",value:`<<
61`+m+">>"})}r.internal.putStream({additionalKeyValues:f,objectId:s.objId}),r.internal.out("endobj")}a&&function(C,R){for(var L in C)if(C.hasOwnProperty(L)){var G=L,V=C[L];R.internal.newObjectDeferredBegin(V.objId,!0),Se(V)==="object"&&typeof V.putStream=="function"&&V.putStream(),delete C[G]}}(r.internal.acroformPlugin.xForms,r)})(n,t)}),t.internal.acroformPlugin.isInitialized=!0}},qc=qe.__acroform__.arrayToPdfArray=function(t,e,n){var i=function(h){return h};if(Array.isArray(t)){for(var r="[",a=0;a<t.length;a++)switch(a!==0&&(r+=" "),Se(t[a])){case"boolean":case"number":case"object":r+=t[a].toString();break;case"string":t[a].substr(0,1)==="/"?r+="/"+Cs(t[a].substr(1)):(e!==void 0&&n&&(i=n.internal.getEncryptor(e)),r+="("+ea(i(t[a].toString()))+")")}return r+"]"}
vendor: 21,647 bytes, lines 61-72
61throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ml=function(t,e,n){var i=function(r){return r};return e!==void 0&&n&&(i=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+ea(i(t))+")"},Ai=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:!0})};Ai.prototype.toString=function(){return this.objId+" 0 R"},Ai.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Ai.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var n in e)if(Object.getOwnPropertyDescriptor(this,e[n]).configurable===!1){var i=e[n],r=this[i];r&&(Array.isArray(r)?t.push({key:i,value:qc(r,this.objId,this.scope)}):r instanceof Ai?(r.scope=this.scope,t.push({key:i,value:r.objId+" 0 R"})):typeof r!="function"&&t.push({key:i,value:r}))}return t};var zc=function(){Ai.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){t=n.trim()},get:function(){return t||null}})};Cn(zc,Ai);var Uc=function(){Ai.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var n=function(i){return i};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+ea(n(t))+")"}},set:function(n){t=n}})};Cn(Uc,Ai);var hi=function t(){Ai.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute F supplied.');e=L}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ve(e,3)},set:function(L){L?this.F=Ze(e,3):this.F=Ye(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute Ff supplied.');n=L}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(L){i=L!==void 0?L:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(L){i[0]=L}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(L){i[1]=L}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(L){i[2]=L}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(L){i[3]=L}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(L){switch(L){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=L;break;default:throw new Error('Invalid value "'+L+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Fs)return;a="FieldObject"+t.FieldNum++}var L=function(G){return G};return this.scope&&(L=this.scope.internal.getEncryptor(this.objId)),"("+ea(L(a))+")"},set:function(L){a=L.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(L){a=L}});var h="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return h},set:function(L){h=L}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(L){s=L}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(L){f=L}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/Nh:u},set:function(L){u=L}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(L){p=L}});var m="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!m||this instanceof Fs||this instanceof xr))return Ml(m,this.objId,this.scope)},set:function(L){L=L.toString(),m=L}});var y=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(y)return this instanceof an==0?Ml(y,this.objId,this.scope):y},set:function(L){L=L.toString(),y=this instanceof an==0?L.substr(0,1)==="("?ma(L.substr(1,L.length-2)):ma(L):L}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?ma(y.substr(1,y.length-1)):y},set:function(L){L=L.toString(),y=this instanceof an==1?"/"+Cs(L):L}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(L){this.V=L}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof an==0?Ml(g,this.objId,this.scope):g},set:function(L){L=L.toString(),g=this instanceof an==0?L.substr(0,1)==="("?ma(L.substr(1,L.length-2)):ma(L):L}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?ma(g.substr(1,g.length-1)):g},set:function(L){L=L.toString(),g=this instanceof an==1?"/"+Cs(L):L}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var P,C=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return C},set:function(L){L=!!L,C=L}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(P)return P},set:function(L){P=L}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,1)},set:function(L){L?this.Ff=Ze(this.Ff,1):this.Ff=Ye(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,2)},set:function(L){L?this.Ff=Ze(this.Ff,2):this.Ff=Ye(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,3)},set:function(L){L?this.Ff=Ze(this.Ff,3):this.Ff=Ye(this.Ff,3)}});var R=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(R!==null)return R},set:function(L){if([0,1,2].indexOf(L)===-1)throw new Error('Invalid value "'+L+'" for attribute Q supplied.');R=L}}),Object.defineProperty(this,"textAlign",{get:function(){var L;switch(R){case 0:default:L="left";break;case 1:L="center";break;case 2:L="right"}return L},configurable:!0,enumerable:!0,set:function(L){switch(L){case"right":case 2:R=2;break;case"center":case 1:R=1;break;default:R=0}}})};Cn(hi,Ai);var Zr=function(){hi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){t=n}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return qc(e,this.objId,this.scope)},set:function(n){var i,r;r=[],typeof(i=n)=="string"&&(r=function(a,h,s){s||(s=1);for(var f,u=[];f=h.exec(a);)u.push(f[s]);return u}(i,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(n){e=n,this.sort&&e.sort()},this.addOption=function(n){n=(n=n||"").toString(),e.push(n),this.sort&&e.sort()},this.removeOption=function(n,i){for(i=i||!1,n=(n=n||"").toString();e.indexOf(n)!==-1&&(e.splice(e.indexOf(n),1),i!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,18)},set:function(n){n?this.Ff=Ze(this.Ff,18):this.Ff=Ye(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Ze(this.Ff,19):this.Ff=Ye(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,20)},set:function(n){n?(this.Ff=Ze(this.Ff,20),e.sort()):this.Ff=Ye(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,22)},set:function(n){n?this.Ff=Ze(this.Ff,22):this.Ff=Ye(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,23)},set:function(n){n?this.Ff=Ze(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,27)},set:function(n){n?this.Ff=Ze(this.Ff,27):this.Ff=Ye(this.Ff,27)}}),this.hasAppearanceStream=!1};Cn(Zr,hi);var Yr=function(){Zr.call(this),this.fontName="helvetica",this.combo=!1};Cn(Yr,Zr);var $r=function(){Yr.call(this),this.combo=!0};Cn($r,Yr);var co=function(){$r.call(this),this.edit=!0};Cn(co,$r);var an=function(){hi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,15)},set:function(n){n?this.Ff=Ze(this.Ff,15):this.Ff=Ye(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,16)},set:function(n){n?this.Ff=Ze(this.Ff,16):this.Ff=Ye(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,17)},set:function(n){n?this.Ff=Ze(this.Ff,17):this.Ff=Ye(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,26)},set:function(n){n?this.Ff=Ze(this.Ff,26):this.Ff=Ye(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(a){return a};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var i,r=[];for(i in r.push("<<"),e)r.push("/"+i+" ("+ea(n(e[i]))+")");return r.push(">>"),r.join(`
62`)}},set:function(n){Se(n)==="object"&&(e=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(n){typeof n=="string"&&(e.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+Cs(n)}})};Cn(an,hi);var po=function(){an.call(this),this.pushButton=!0};Cn(po,an);var Kr=function(){an.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e!==void 0?e:[]}})};Cn(Kr,an);var Fs=function(){var t,e;hi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(r){e=r}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(s){return s};this.scope&&(r=this.scope.internal.getEncryptor(this.objId));var a,h=[];for(a in h.push("<<"),i)h.push("/"+a+" ("+ea(r(i[a]))+")");return h.push(">>"),h.join(`
63`)},set:function(r){Se(r)==="object"&&(i=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(r){typeof r=="string"&&(i.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(r){n=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(r){n="/"+r}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ct.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Cn(Fs,hi),Kr.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 e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},Kr.prototype.createOption=function(t){var e=new Fs;return e.Parent=this,e.optionName=t,this.Kids.push(e),k5.call(this.scope,e),e};var go=function(){an.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ct.CheckBox.createAppearanceStream()};Cn(go,an);var xr=function(){hi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,13)},set:function(e){e?this.Ff=Ze(this.Ff,13):this.Ff=Ye(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,21)},set:function(e){e?this.Ff=Ze(this.Ff,21):this.Ff=Ye(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,23)},set:function(e){e?this.Ff=Ze(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,24)},set:function(e){e?this.Ff=Ze(this.Ff,24):this.Ff=Ye(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,25)},set:function(e){e?this.Ff=Ze(this.Ff,25):this.Ff=Ye(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,26)},set:function(e){e?this.Ff=Ze(this.Ff,26):this.Ff=Ye(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Cn(xr,hi);var vo=function(){xr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,14)},set:function(t){t?this.Ff=Ze(this.Ff,14):this.Ff=Ye(this.Ff,14)}}),this.password=!0};Cn(vo,xr);var Ct={CheckBox:{createAppearanceStream:function(){return{N:{On:Ct.CheckBox.YesNormal},D:{On:Ct.CheckBox.YesPushDown,Off:Ct.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=_i(t);e.scope=t.scope;var n=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),a=hh(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+Jt(Ct.internal.getWidth(t))+" "+Jt(Ct.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+Jt(a.fontSize)+" Tf "+r),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join(`
64`),e},YesNormal:function(t){var e=_i(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),r=[],a=Ct.internal.getHeight(t),h=Ct.internal.getWidth(t),s=hh(t,t.caption);return r.push("1 g"),r.push("0 0 "+Jt(h)+" "+Jt(a)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+Jt(h-1)+" "+Jt(a-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+n+" "+Jt(s.fontSize)+" Tf "+i),r.push(s.text),r.push("ET"),r.push("Q"),e.stream=r.join(`
65`),e},OffPushDown:function(t){var e=_i(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Jt(Ct.internal.getWidth(t))+" "+Jt(Ct.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join(`
66`),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Ct.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Ct.RadioButton.Circle.YesNormal,e.D[t]=Ct.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=_i(t);e.scope=t.scope;var n=[],i=Ct.internal.getWidth(t)<=Ct.internal.getHeight(t)?Ct.internal.getWidth(t)/4:Ct.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=Ct.internal.Bezier_C,a=Number((i*r).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+pr(Ct.internal.getWidth(t)/2)+" "+pr(Ct.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
67`),e},YesPushDown:function(t){var e=_i(t);e.scope=t.scope;var n=[],i=Ct.internal.getWidth(t)<=Ct.internal.getHeight(t)?Ct.internal.getWidth(t)/4:Ct.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=Number((2*i).toFixed(5)),a=Number((r*Ct.internal.Bezier_C).toFixed(5)),h=Number((i*Ct.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+pr(Ct.internal.getWidth(t)/2)+" "+pr(Ct.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+pr(Ct.internal.getWidth(t)/2)+" "+pr(Ct.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+h+" "+h+" "+i+" 0 "+i+" c"),n.push("-"+h+" "+i+" -"+i+" "+h+" -"+i+" 0 c"),n.push("-"+i+" -"+h+" -"+h+" -"+i+" 0 -"+i+" c"),n.push(h+" -"+i+" "+i+" -"+h+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
68`),e},OffPushDown:function(t){var e=_i(t);e.scope=t.scope;var n=[],i=Ct.internal.getWidth(t)<=Ct.internal.getHeight(t)?Ct.internal.getWidth(t)/4:Ct.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=Number((2*i).toFixed(5)),a=Number((r*Ct.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+pr(Ct.internal.getWidth(t)/2)+" "+pr(Ct.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
69`),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Ct.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Ct.RadioButton.Cross.YesNormal,e.D[t]=Ct.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=_i(t);e.scope=t.scope;var n=[],i=Ct.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+Jt(Ct.internal.getWidth(t)-2)+" "+Jt(Ct.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(Jt(i.x1.x)+" "+Jt(i.x1.y)+" m"),n.push(Jt(i.x2.x)+" "+Jt(i.x2.y)+" l"),n.push(Jt(i.x4.x)+" "+Jt(i.x4.y)+" m"),n.push(Jt(i.x3.x)+" "+Jt(i.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
70`),e},YesPushDown:function(t){var e=_i(t);e.scope=t.scope;var n=Ct.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+Jt(Ct.internal.getWidth(t))+" "+Jt(Ct.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+Jt(Ct.internal.getWidth(t)-2)+" "+Jt(Ct.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(Jt(n.x1.x)+" "+Jt(n.x1.y)+" m"),i.push(Jt(n.x2.x)+" "+Jt(n.x2.y)+" l"),i.push(Jt(n.x4.x)+" "+Jt(n.x4.y)+" m"),i.push(Jt(n.x3.x)+" "+Jt(n.x3.y)+" l"),i.push("s"),i.push("Q"),e.stream=i.join(`
71`),e},OffPushDown:function(t){var e=_i(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Jt(Ct.internal.getWidth(t))+" "+Jt(Ct.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join(`
72`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Ct.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Ct.internal.getWidth(t),n=Ct.internal.getHeight(t),i=Math.min(e,n);return{x1:{x:(e-i)/2,y:(n-i)/2+i},x2:{x:(e-i)/2+i,y:(n-i)/2},x3:{x:(e-i)/2,y:(n-i)/2},x4:{x:(e-i)/2+i,y:(n-i)/2+i}}}},Ct.internal.getWidth=function(t){var e=0;return Se(t)==="object"&&(e=mu(t.Rect[2])),e},Ct.internal.getHeight=function(t){var e=0;return Se(t)==="object"&&(e=mu(t.Rect[3])),e};var k5=qe.addField=function(t){if(L5(this,t),!(t instanceof hi))throw new Error("Invalid argument passed to 
72jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};qe.AcroFormChoiceField=Zr,qe.AcroFormListBox=Yr,qe.AcroFormComboBox=$r,qe.AcroFormEditBox=co,qe.AcroFormButton=an,qe.AcroFormPushButton=po,qe.AcroFormRadioButton=Kr,qe.AcroFormCheckBox=go,qe.AcroFormTextField=xr,qe.AcroFormPasswordField=vo,qe.AcroFormAppearance=Ct,qe.AcroForm={ChoiceField:Zr,ListBox:Yr,ComboBox:$r,EditBox:co,Button:an,PushButton:po,RadioButton:Kr,CheckBox:go,TextField:xr,PasswordField:vo,Appearance:Ct},Dt.AcroForm={ChoiceField:Zr,ListBox:Yr,ComboBox:$r,EditBox:co,Button:an,PushButton:po,RadioButton:Kr,CheckBox:go,TextField:xr,PasswordField:vo,Appearance:Ct};Dt.AcroForm;function Hc(t){return t.reduce(function(e,n,i){return e[n]=i,e},{})}(function(t){var e="addImage_";t.__addimage__={};var n="UNKNOWN",i={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]]},r=t.__addimage__.getImageFileTypeByImageData=function(N,O){var U,z,it,st,ht,nt=n;if((O=O||n)==="RGBA"||N.data!==void 0&&N.data instanceof Uint8ClampedArray&&"height"in N&&"width"in N)return"RGBA";if(vt(N))for(ht in i)for(it=i[ht],U=0;U<it.length;U+=1){for(st=!0,z=0;z<it[U].length;z+=1)if(it[U][z]!==void 0&&it[U][z]!==N[z]){st=!1;break}if(st===!0){nt=ht;break}}else for(ht in i)for(it=i[ht],U=0;U<it.length;U+=1){for(st=!0,z=0;z<it[U].length;z+=1)if(it[U][z]!==void 0&&it[U][z]!==N.charCodeAt(z)){st=!1;break}if(st===!0){nt=ht;break}}return nt===n&&O!==n&&(nt=O),nt},a=function N(O){for(var U=this.internal.write,z=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.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===L.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===L.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 ht="",nt=0,ut=O.transparency.length;nt<ut;nt++)ht+=O.transparency[nt]+" "+O.transparency[nt]+" ";st.push({key:"Mask",value:"["+ht+"]"})}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(z({data:O.data,additionalKeyValues:st,alreadyAppliedFilters:At,objectId:O.objectId}),U("endobj"),"sMask"in O&&O.sMask!==void 0){var wt,A=(wt=O.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:O.bitsPerComponent,D={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:A,data:O.sMask};"filter"in O&&(D.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(A," /Columns ").concat(O.width),D.filter=O.filter),N.call(this,D)}if(O.colorSpace===L.INDEXED){var B=this.internal.newObject();z({data:$(new Uint8Array(O.palette)),objectId:B}),U("endobj")}},h=function(){var N=this.internal.collections[e+"images"];for(var O in N)a.call(this,N[O])},s=function(){var N,O=this.internal.collections[e+"images"],U=this.internal.write;for(var z in O)U("/I"+(N=O[z]).index,N.objectId,"0","R")},f=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var N=this.internal.collections[e+"images"];return f.call(this),N},p=function(){return Object.keys(this.internal.collections[e+"images"]).length},m=function(N){return typeof t["process"+N.toUpperCase()]=="function"},y=function(N){return Se(N)==="object"&&N.nodeType===1},g=function(N,O){if(N.nodeName==="IMG"&&N.hasAttribute("src")){var U=""+N.getAttribute("src");if(U.indexOf("data:image/")===0)return Ss(unescape(U).split("base64,").pop());var z=t.loadFile(U,!0);if(z!==void 0)return z}if(N.nodeName==="CANVAS"){if(N.width===0||N.height===0)throw new Error("Given canvas must have data. Canvas width: "+N.width+", height: "+N.height);var it;switch(O){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return Ss(N.toDataURL(it,1).split("base64,").pop())}},P=function(N){var O=this.internal.collections[e+"images"];if(O){for(var U in O)if(N===O[U].alias)return O[U]}},C=function(N,O,U){return N||O||(N=-96,O=-96),N<0&&(N=-1*U.width*72/N/this.internal.scaleFactor),O<0&&(O=-1*U.height*72/O/this.internal.scaleFactor),N===0&&(N=O*U.width/U.height),O===0&&(O=N*U.height/U.width),[N,O]},R=function(N,O,U,z,it,st){var ht=C.call(this,U,z,it),nt=this.internal.getCoordinateString,ut=this.internal.getVerticalCoordinateString,At=u.call(this);if(U=ht[0],z=ht[1],At[it.index]=it,st){st*=Math.PI/180;var wt=Math.cos(st),A=Math.sin(st),D=function(H){return H.toFixed(4)},B=[D(wt),D(A),D(-1*A),D(wt),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,nt(N),ut(O+z),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([nt(U),"0","0",nt(z),"0","0","cm"].join(" "))):this.internal.write([nt(U),"0","0",nt(z),nt(N),ut(O+z),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+it.index+" Do"),this.internal.write("Q")},L=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(N){var O,U,z=0;if(typeof N=="string")for(U=N.length,O=0;O<U;O++)z=(z<<5)-z+N.charCodeAt(O),z|=0;else if(vt(N))for(U=N.byteLength/2,O=0;O<U;O++)z=(z<<5)-z+N[O],z|=0;return z}
vendor: 28,892 bytes, lines 72-96
72,M=t.__addimage__.validateStringAsBase64=function(N){(N=N||"").toString().trim();var O=!0;return N.length===0&&(O=!1),N.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(N.substr(0,N.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(N.substr(-2))===!1&&(O=!1),O},rt=t.__addimage__.extractImageFromDataUrl=function(N){if(N==null||!(N=N.trim()).startsWith("data:"))return null;var O=N.indexOf(",");return O<0?null:N.substring(0,O).trim().endsWith("base64")?N.substring(O+1):null};t.__addimage__.isArrayBuffer=function(N){return N instanceof ArrayBuffer};var vt=t.__addimage__.isArrayBufferView=function(N){return N instanceof Int8Array||N instanceof Uint8Array||N instanceof Uint8ClampedArray||N instanceof Int16Array||N instanceof Uint16Array||N instanceof Int32Array||N instanceof Uint32Array||N instanceof Float32Array||N instanceof Float64Array},ct=t.__addimage__.binaryStringToUint8Array=function(N){for(var O=N.length,U=new Uint8Array(O),z=0;z<O;z++)U[z]=N.charCodeAt(z);return U},$=t.__addimage__.arrayBufferToBinaryString=function(N){for(var O="",U=vt(N)?N:new Uint8Array(N),z=0;z<U.length;z+=8192)O+=String.fromCharCode.apply(null,U.subarray(z,z+8192));return O};t.addImage=function(){var N,O,U,z,it,st,ht,nt,ut;if(typeof arguments[1]=="number"?(O=n,U=arguments[1],z=arguments[2],it=arguments[3],st=arguments[4],ht=arguments[5],nt=arguments[6],ut=arguments[7]):(O=arguments[1],U=arguments[2],z=arguments[3],it=arguments[4],st=arguments[5],ht=arguments[6],nt=arguments[7],ut=arguments[8]),Se(N=arguments[0])==="object"&&!y(N)&&"imageData"in N){var At=N;N=At.imageData,O=At.format||O||n,U=At.x||U||0,z=At.y||z||0,it=At.w||At.width||it,st=At.h||At.height||st,ht=At.alias||ht,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(U)||isNaN(z))throw new Error("Invalid coordinates passed to jsPDF.addImage");f.call(this);var A=j.call(this,N,O,ht,nt);return R.call(this,U,z,it,st,A,ut),this};var j=function(N,O,U,z){var it,st,ht;if(typeof N=="string"&&r(N)===n){N=unescape(N);var nt=tt(N,!1);(nt!==""||(nt=t.loadFile(N,!0))!==void 0)&&(N=nt)}if(y(N)&&(N=g(N,O)),O=r(N,O),!m(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((ht=U)==null||ht.length===0)&&(U=function(ut){return typeof ut=="string"||vt(ut)?V(ut):vt(ut.data)?V(ut.data):null}(N)),(it=P.call(this,U))||(N instanceof Uint8Array||O==="RGBA"||(st=N,N=ct(N)),it=this["process"+O.toUpperCase()](N,p.call(this),U,function(ut){return ut&&typeof ut=="string"&&(ut=ut.toUpperCase()),ut in t.image_compression?ut:G.NONE}(z),st)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},tt=t.__addimage__.convertBase64ToBinaryString=function(N,O){O=typeof O!="boolean"||O;var U,z="";if(typeof N=="string"){var it;U=(it=rt(N))!==null&&it!==void 0?it:N;try{z=Ss(U)}catch(st){if(O)throw M(U)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return z};t.getImageProperties=function(N){var O,U,z="";if(y(N)&&(N=g(N)),typeof N=="string"&&r(N)===n&&((z=tt(N,!1))===""&&(z=t.loadFile(N)||""),N=z),U=r(N),!m(U))throw new Error("addImage does not support files of type '"+U+"', please ensure that a plugin for '"+U+"' support is added.");if(N instanceof Uint8Array||(N=ct(N)),!(O=this["process"+U.toUpperCase()](N)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=U,O}})(Dt.API),function(t){var e=function(n){if(n!==void 0&&n!="")return!0};Dt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(n){for(var i,r,a,h=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(n.objId),u=n.pageContext.annotations,p=!1,m=0;m<u.length&&!p;m++)switch((i=u[m]).type){case"link":(e(i.options.url)||e(i.options.pageNumber))&&(p=!0);break;case"reference":case"text":case"freetext":p=!0}if(p!=0){this.internal.write("/Annots [");for(var y=0;y<u.length;y++){i=u[y];var g=this.internal.pdfEscape,P=this.internal.getEncryptor(n.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var C=this.internal.newAdditionalObject(),R=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(C.objId),G=i.title||"Note";a="<</Type /Annot /Subtype /Text "+(r="/Rect ["+h(i.bounds.x)+" "+s(i.bounds.y+i.bounds.h)+" "+h(i.bounds.x+i.bounds.w)+" "+s(i.bounds.y)+"] ")+"/Contents ("+g(L(i.contents))+")",a+=" /Popup "+R.objId+" 0 R",a+=" /P "+f.objId+" 0 R",a+=" /T ("+g(L(G))+") >>",C.content=a;var V=C.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+h(i.bounds.x+30)+" "+s(i.bounds.y+i.bounds.h)+" "+h(i.bounds.x+i.bounds.w+30)+" "+s(i.bounds.y)+"] ")+" /Parent "+V,i.open&&(a+=" /Open true"),a+=" >>",R.content=a,this.internal.write(C.objId,"0 R",R.objId,"0 R");break;case"freetext":r="/Rect ["+h(i.bounds.x)+" "+s(i.bounds.y)+" "+h(i.bounds.x+i.bounds.w)+" "+s(i.bounds.y+i.bounds.h)+"] ";var M=i.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+g(P(i.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+M+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(i.options.name){var rt=this.annotations._nameMap[i.options.name];i.options.pageNumber=rt.page,i.options.top=rt.y}else i.options.top||(i.options.top=0);if(r="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",a="",i.options.url)a="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+g(P(i.options.url))+") >>";else if(i.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,a+=" /FitV "+i.options.left+"]";break;default:var vt=s(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),a+=" /XYZ "+i.options.left+" "+vt+" "+i.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),t.createAnnotation=function(n){var i=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":i.pageContext.annotations.push(n)}},t.link=function(n,i,r,a,h){var s=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:f(n),y:u(i),w:f(n+r),h:u(i+a)},options:h,type:"link"})},t.textWithLink=function(n,i,r,a){var h,s,f=this.getTextWidth(n),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var p=this.splitTextToSize(n,s).length;h=Math.ceil(u*p)}else s=f,h=u;return this.text(n,i,r,a),r+=.2*u,a.align==="center"&&(i-=f/2),a.align==="right"&&(i-=f),this.link(i,r-u,s,h,a),f},t.getTextWidth=function(n){var i=this.internal.getFontSize();return this.getStringUnitWidth(n)*i/this.internal.scaleFactor}}(Dt.API),function(t){var e={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]},n={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}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(C){return e[C.charCodeAt(0)]!==void 0},h=t.__arabicParser__.isArabicLetter=function(C){return typeof C=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(C)},s=t.__arabicParser__.isArabicEndLetter=function(C){return h(C)&&a(C)&&e[C.charCodeAt(0)].length<=2},f=t.__arabicParser__.isArabicAlfLetter=function(C){return h(C)&&r.indexOf(C.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(C){return h(C)&&a(C)&&e[C.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(C){return h(C)&&a(C)&&e[C.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(C){return h(C)&&a(C)&&e[C.charCodeAt(0)].length>=3};var p=t.__arabicParser__.arabicLetterHasMedialForm=function(C){return h(C)&&a(C)&&e[C.charCodeAt(0)].length==4},m=t.__arabicParser__.resolveLigatures=function(C){var R=0,L=n,G="",V=0;for(R=0;R<C.length;R+=1)L[C.charCodeAt(R)]!==void 0?(V++,typeof(L=L[C.charCodeAt(R)])=="number"&&(G+=String.fromCharCode(L),L=n,V=0),R===C.length-1&&(L=n,G+=C.charAt(R-(V-1)),R-=V-1,V=0)):(L=n,G+=C.charAt(R-V),R-=V,V=0);return G};t.__arabicParser__.isArabicDiacritic=function(C){return C!==void 0&&i[C.charCodeAt(0)]!==void 0};var y=t.__arabicParser__.getCorrectForm=function(C,R,L){return h(C)?a(C)===!1?-1:!u(C)||!h(R)&&!h(L)||!h(L)&&s(R)||s(C)&&!h(R)||s(C)&&f(R)||s(C)&&s(R)?0:p(C)&&h(R)&&!s(R)&&h(L)&&u(L)?3:s(C)||!h(L)?1:2:-1},g=function(C){var R=0,L=0,G=0,V="",M="",rt="",vt=(C=C||"").split("\\s+"),ct=[];for(R=0;R<vt.length;R+=1){for(ct.push(""),L=0;L<vt[R].length;L+=1)V=vt[R][L],M=vt[R][L-1],rt=vt[R][L+1],h(V)?(G=y(V,M,rt),ct[R]+=G!==-1?String.fromCharCode(e[V.charCodeAt(0)][G]):V):ct[R]+=V;ct[R]=m(ct[R])}return ct.join(" ")},P=t.__arabicParser__.processArabic=t.processArabic=function(){var C,R=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,L=[];if(Array.isArray(R)){var G=0;for(L=[],G=0;G<R.length;G+=1)Array.isArray(R[G])?L.push([g(R[G][0]),R[G][1],R[G][2]]):L.push([g(R[G])]);C=L}else C=g(R);return typeof arguments[0]=="string"?C:(arguments[0].text=C,arguments[0])};t.events.push(["preProcessText",P])}(Dt.API),Dt.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})),this},function(t){var e=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(s){n=s}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(s){h=s}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(n,i){var r;if((n=n||"2d")!=="2d")return null;for(r in i)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=i[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Dt.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,i=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({},e),this.internal.__cell__.margins.width=this.getPageWidth(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(C){f=C}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(C){u=C}});var p=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return p},set:function(C){p=C}});var m=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return m},set:function(C){m=C}});var y=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return y},set:function(C){y=C}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(C){g=C}});var P=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return P},set:function(C){P=C}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(f){return i.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},t.getTextDimensions=function(f,u){i.call(this);var p=(u=u||{}).fontSize||this.getFontSize(),m=u.font||this.getFont(),y=u.scaleFactor||this.internal.scaleFactor,g=0,P=0,C=0,R=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var L=u.maxWidth;L>0?typeof f=="string"?f=this.splitTextToSize(f,L):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(V,M){return V.concat(R.splitTextToSize(M,L))},[])):f=Array.isArray(f)?f:[f];for(var G=0;G<f.length;G++)g<(C=this.getStringUnitWidth(f[G],{font:m})*p)&&(g=C);return g!==0&&(P=f.length),{w:g/=y,h:Math.max((P*p*this.getLineHeightFactor()-p*(this.getLineHeightFactor()-1))/y,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var f=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new a(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=t.cell=function(){var f;f=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var u=this.internal.__cell__.lastCell,p=this.internal.__cell__.padding,m=this.internal.__cell__.margins||e,y=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===f.lineNumber?(f.x=(u.x||0)+(u.width||0),f.y=u.y||0):u.y+u.height+f.height+m.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=m.top,g&&y&&(this.printHeaderRow(f.lineNumber,!0),f.y+=y[0].height)):f.y=u.y+u.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,n===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-p,f.y+p,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+p,{align:"center",baseline:"top",maxWidth:f.width-p-p}):this.text(f.text,f.x+p,f.y+p,{align:"left",baseline:"top",maxWidth:f.width-p-p})),this.internal.__cell__.lastCell=f,this};t.table=function(f,u,p,m,y){if(i.call(this),!p)throw new Error("No data for PDF table.");var g,P,C,R,L=[],G=[],V=[],M={},rt={},vt=[],ct=[],$=(y=y||{}).autoSize||!1,j=y.printHeaders!==!1,tt=y.css&&y.css["font-size"]!==void 0?16*y.css["font-size"]:y.fontSize||12,N=y.margins||Object.assign({width:this.getPageWidth()},e),O=typeof y.padding=="number"?y.padding:3,U=y.headerBackgroundColor||"#c8c8c8",z=y.headerTextColor||"#000";if(r.call(this),this.internal.__cell__.printHeaders=j,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=tt,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=U,this.internal.__cell__.headerTextColor=z,this.setFontSize(tt),m==null)G=L=Object.keys(p[0]),V=L.map(function(){return"left"});else if(Array.isArray(m)&&Se(m[0])==="object")for(L=m.map(function(At){return At.name}),G=m.map(function(At){return At.prompt||At.name||""}),V=m.map(function(At){return At.align||"left"}),g=0;g<m.length;g+=1)rt[m[g].name]=.7499990551181103*m[g].width;else Array.isArray(m)&&typeof m[0]=="string"&&(G=L=m,V=L.map(function(){return"left"}));if($||Array.isArray(m)&&typeof m[0]=="string")for(g=0;g<L.length;g+=1){for(M[R=L[g]]=p.map(function(At){return At[R]}),this.setFont(void 0,"bold"),vt.push(this.getTextDimensions(G[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),P=M[R],this.setFont(void 0,"normal"),C=0;C<P.length;C+=1)vt.push(this.getTextDimensions(P[C],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);rt[R]=Math.max.apply(null,vt)+O+O,vt=[]}if(j){var it={};for(g=0;g<L.length;g+=1)it[L[g]]={},it[L[g]].text=G[g],it[L[g]].align=V[g];var st=s.call(this,it,rt);ct=L.map(function(At){return new a(f,u,rt[At],st,it[At].text,void 0,it[At].align)}),this.setTableHeaderRow(ct),this.printHeaderRow(1,!1)}var ht=m.reduce(function(At,wt){return At[wt.name]=wt.align,At},{});for(g=0;g<p.length;g+=1){"rowStart"in y&&y.rowStart instanceof Function&&y.rowStart({row:g,data:p[g]},this);var nt=s.call(this,p[g],rt);for(C=0;C<L.length;C+=1){var ut=p[g][L[C]];"cellStart"in y&&y.cellStart instanceof Function&&y.cellStart({row:g,col:C,data:ut},this),h.call(this,new a(f,u,rt[L[C]],nt,ut,g+2,ht[L[C]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=u,this};var s=function(f,u){var p=this.internal.__cell__.padding,m=this.internal.__cell__.table_font_size,y=this.internal.scaleFactor;return Object.keys(f).map(function(g){var P=f[g];return this.splitTextToSize(P.hasOwnProperty("text")?P.text:P,u[g]-p-p)},this).map(function(g){return this.getLineHeightFactor()*g.length*m/y+p+p},this).reduce(function(g,P){return Math.max(g,P)},0)};t.setTableHeaderRow=function(f){i.call(this),this.internal.__cell__.tableHeaderRow=f},t.printHeaderRow=function(f,u){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var p;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var m=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(m[0],m[1],m[2],m[3],void 0,-1)}this.setFont(void 0,"bold");for(var y=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){p=this.internal.__cell__.tableHeaderRow[g].clone(),u&&(p.y=this.internal.__cell__.margins.top||0,y.push(p)),p.lineNumber=f;var P=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,p),this.setTextColor(P)}y.length>0&&this.setTableHeaderRow(y),this.setFont(void 0,"normal"),n=!1}}(Dt.API);var Wc={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Gc=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],fh=Hc(Gc),Vc=[100,200,300,400,500,600,700,800,900],P5=Hc(Vc);function ql(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(a){return Wc[a=a||"normal"]?a:"normal"}(t.style),i=function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400}(t.weight),r=function(a){return typeof fh[a=a||"normal"]=="number"?a:"normal"}(t.stretch);return{family:e,style:n,weight:i,stretch:r,src:t.src||[],ref:t.ref||{name:e,style:[r,n,i].join(" ")}}}function bu(t,e,n,i){var r;for(r=n;r>=0&&r<e.length;r+=i)if(t[e[r]])return t[e[r]];for(r=n;r>=0&&r<e.length;r-=i)if(t[e[r]])return t[e[r]]}var C5={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},wu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function yu(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function _u(t){return t.trimLeft()}function F5(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function E5(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var ba,_s,xu,Au,Su,zl=["times"];function Nu(t,e,n,i,r){var a=4,h=ku;switch(r){case Dt.API.image_compression.FAST:a=1,h=Lu;break;case Dt.API.image_compression.MEDIUM:a=6,h=Pu;break;case Dt.API.image_compression.SLOW:a=9,h=Cu}t=function(f,u,p,m){for(var y,g=f.length/u,P=new Uint8Array(f.length+g),C=[I5,Lu,ku,Pu,Cu],R=0;R<g;R+=1){var L=R*u,G=f.subarray(L,L+u);if(m)P.set(m(G,p,y),L+R);else{for(var V=C.length,M=[],rt=0;rt<V;rt+=1)M[rt]=C[rt](G,p,y);var vt=T5(M.concat());P.set(M[vt],L+R)}y=G}return P}(t,e,Math.ceil(n*i/8),h);var s=Jl(t,{level:a});return Dt.API.__addimage__.arrayBufferToBinaryString(s)}function I5(t){var e=Array.apply([],t);return e.unshift(0),e}function Lu(t,e){var n=t.length,i=[];i[0]=1;for(var r=0;r<n;r+=1){var a=t[r-e]||0;i[r+1]=t[r]-a+256&255}return i}function ku(t,e,n){var i=t.length,r=[];r[0]=2;for(var a=0;a<i;a+=1){var h=n&&n[a]||0;r[a+1]=t[a]-h+256&255}return r}function Pu(t,e,n){var i=t.length,r=[];r[0]=3;for(var a=0;a<i;a+=1){var h=t[a-e]||0,s=n&&n[a]||0;r[a+1]=t[a]+256-(h+s>>>1)&255}return r}function Cu(t,e,n){var i=t.length,r=[];r[0]=4;for(var a=0;a<i;a+=1){var h=O5(t[a-e]||0,n&&n[a]||0,n&&n[a-e]||0);r[a+1]=t[a]-h+256&255}return r}function O5(t,e,n){if(t===e&&e===n)return t;var i=Math.abs(e-n),r=Math.abs(t-n),a=Math.abs(t+e-n-n);return i<=r&&i<=a?t:r<=a?e:n}function T5(t){var e=t.map(function(n){return n.reduce(function(i,r){return i+Math.abs(r)},0)});return e.indexOf(Math.min.apply(null,e))}function Ul(t,e,n){var i=e*n,r=Math.floor(i/8),a=16-(i-8*r+n),h=(1<<n)-1;return Zc(t,r)>>a&h}function Fu(t,e,n,i){var r=n*i,a=Math.floor(r/8),h=16-(r-8*a+i),s=(1<<i)-1,f=(e&s)<<h;(function(u,p,m){if(p+1<u.byteLength)u.setUint16(p,m,!1);else{var y=m>>8&255;u.setUint8(p,y)}})(t,a,Zc(t,a)&~(s<<h)&65535|f)}function Zc(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function R5(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,r=t[e++],a=r>>7,h=1<<1+(7&r);t[e++],t[e++];var s=null,f=null;a&&(s=e,f=h,e+=3*h);var u=!0,p=[],m=0,y=null,g=0,P=null;for(this.width=n,this.height=i;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,P=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((N=t[e++])>=0))throw Error("Invalid block size");if(N===0)break;e+=N}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var C=t[e++];m=t[e++]|t[e++]<<8,y=t[e++],1&C||(y=null),g=C>>2&7,e++;break;case 254:for(;;){if(!((N=t[e++])>=0))throw Error("Invalid block size");if(N===0)break;e+=N}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var R=t[e++]|t[e++]<<8,L=t[e++]|t[e++]<<8,G=t[e++]|t[e++]<<8,V=t[e++]|t[e++]<<8,M=t[e++],rt=M>>6&1,vt=1<<1+(7&M),ct=s,$=f,j=!1;M>>7&&(j=!0,ct=e,$=vt,e+=3*vt);var tt=e;for(e++;;){var N;if(!((N=t[e++])>=0))throw Error("Invalid block size");if(N===0)break;e+=N}p.push({x:R,y:L,width:G,height:V,has_local_palette:j,palette_offset:ct,palette_size:$,data_offset:tt,data_length:e-tt,transparent_index:y,interlaced:!!rt,delay:m,disposal:g});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return P},this.frameInfo=function(O){if(O<0||O>=p.length)throw new Error("Frame index out of range.");return p[O]},this.decodeAndBlitFrameBGRA=function(O,U){var z=this.frameInfo(O),it=z.width*z.height,st=new Uint8Array(it);Eu(t,z.data_offset,st,it);var ht=z.palette_offset,nt=z.transparent_index;nt===null&&(nt=256);var ut=z.width,At=n-ut,wt=ut,A=4*(z.y*n+z.x),D=4*((z.y+z.height)*n+z.x),B=A,H=4*At;z.interlaced===!0&&(H+=4*n*7);for(var Y=8,X=0,at=st.length;X<at;++X){var ot=st[X];if(wt===0&&(wt=ut,(B+=H)>=D&&(H=4*At+4*n*(Y-1),B=A+(ut+At)*(Y<<1),Y>>=1)),ot===nt)B+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];U[B++]=kt,U[B++]=xt,U[B++]=gt,U[B++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(O,U){var z=this.frameInfo(O),it=z.width*z.height,st=new Uint8Array(it);Eu(t,z.data_offset,st,it);var ht=z.palette_offset,nt=z.transparent_index;nt===null&&(nt=256);var ut=z.width,At=n-ut,wt=ut,A=4*(z.y*n+z.x),D=4*((z.y+z.height)*n+z.x),B=A,H=4*At;z.interlaced===!0&&(H+=4*n*7);for(var Y=8,X=0,at=st.length;X<at;++X){var ot=st[X];if(wt===0&&(wt=ut,(B+=H)>=D&&(H=4*At+4*n*(Y-1),B=A+(ut+At)*(Y<<1),Y>>=1)),ot===nt)B+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];U[B++]=gt,U[B++]=xt,U[B++]=kt,U[B++]=255}--wt}}}function Eu(t,e,n,i){for(var r=t[e++],a=1<<r,h=a+1,s=h+1,f=r+1,u=(1<<f)-1,p=0,m=0,y=0,g=t[e++],P=new Int32Array(4096),C=null;;){for(;p<16&&g!==0;)m|=t[e++]<<p,p+=8,g===1?g=t[e++]:--g;if(p<f)break;var R=m&u;if(m>>=f,p-=f,R!==a){if(R===h)break;for(var L=R<s?R:C,G=0,V=L;V>a;)V=P[V]>>8,++G;var M=V;if(y+G+(L!==R?1:0)>i)return void ke.log("Warning, gif stream longer than expected.");n[y++]=M;var rt=y+=G;for(L!==R&&(n[y++]=M),V=L;G--;)V=P[V],n[--rt]=255&V,V>>=8;C!==null&&s<4096&&(P[s++]=C<<8|M,s>=u+1&&f<12&&(++f,u=u<<1|1)),C=R}else s=h+1,u=(1<<(f=r+1))-1,C=null}return y!==i&&ke.log("Warning, gif stream shorter than expected."),n}/**
73 * @license
74  Copyright (c) 2008, Adobe Systems Incorporated
75  All rights reserved.
76
77  Redistribution and use in source and binary forms, with or without 
78  modification, are permitted provided that the following conditions are
79  met:
80
81  * Redistributions of source code must retain the above copyright notice, 
82    this list of conditions and the following disclaimer.
83  
84  * Redistributions in binary form must reproduce the above copyright
85    notice, this list of conditions and the following disclaimer in the 
86    documentation and/or other materials provided with the distribution.
87  
88  * Neither the name of Adobe Systems Incorporated nor the names of its 
89    contributors may be used to endorse or promote products derived from 
90    this software without specific prior written permission.
91
92  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
93  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
94  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
96  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
97  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
98  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
99  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
100  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
101  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
102  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103*/function Hl(t){var e,n,i,r,a,h=Math.floor,s=new Array(64),f=new Array(64),u=new Array(64),p=new Array(64),m=new Array(65535),y=new Array(65535),g=new Array(64),P=new Array(64),C=[],R=0,L=7,G=new Array(64),V=new Array(64),M=new Array(64),rt=new Array(256),vt=new Array(2048),ct=[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],$=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],j=[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],N=[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],U=[0,1,2,3,4,5,6,7,8,9,10,11],z=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[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(A,D){for(var B=0,H=0,Y=new Array,X=1;X<=16;X++){for(var at=1;at<=A[X];at++)Y[D[H]]=[],Y[D[H]][0]=B,Y[D[H]][1]=X,H++,B++;B*=2}return Y}function ht(A){for(var D=A[0],B=A[1]-1;B>=0;)D&1<<B&&(R|=1<<L),B--,--L<0&&(R==255?(nt(255),nt(0)):nt(R),L=7,R=0)}function nt(A){C.push(A)}function ut(A){nt(A>>8&255),nt(255&A)}function At(A,D,B,H,Y){for(var X,at=Y[0],ot=Y[240],gt=function(yt,Wt){var Ft,Ut,qt,we,he,Xt,ue,fe,Tt,ee,Bt=0;for(Tt=0;Tt<8;++Tt){Ft=yt[Bt],Ut=yt[Bt+1],qt=yt[Bt+2],we=yt[Bt+3],he=yt[Bt+4],Xt=yt[Bt+5],ue=yt[Bt+6];var ze=Ft+(fe=yt[Bt+7]),ge=Ft-fe,oe=Ut+ue,se=Ut-ue,Oe=qt+Xt,zt=qt-Xt,Pe=we+he,Zt=we-he,Qt=ze+Pe,Te=ze-Pe,le=oe+Oe,Gt=oe-Oe;yt[Bt]=Qt+le,yt[Bt+4]=Qt-le;var ye=.707106781*(Gt+Te);yt[Bt+2]=Te+ye,yt[Bt+6]=Te-ye;var Sr=.382683433*((Qt=Zt+zt)-(Gt=se+ge)),gn=.5411961*Qt+Sr,ki=1.306562965*Gt+Sr,ui=.707106781*(le=zt+se),Vt=ge+ui,Pi=ge-ui;yt[Bt+5]=Pi+gn,yt[Bt+3]=Pi-gn,yt[Bt+1]=Vt+ki,yt[Bt+7]=Vt-ki,Bt+=8}for(Bt=0,Tt=0;Tt<8;++Tt){Ft=yt[Bt],Ut=yt[Bt+8],qt=yt[Bt+16],we=yt[Bt+24],he=yt[Bt+32],Xt=yt[Bt+40],ue=yt[Bt+48];var Ci=Ft+(fe=yt[Bt+56]),Un=Ft-fe,Hn=Ut+ue,je=Ut-ue,on=qt+Xt,ln=qt-Xt,Nr=we+he,Ji=we-he,Qn=Ci+Nr,ci=Ci-Nr,ti=Hn+on,ei=Hn-on;yt[Bt]=Qn+ti,yt[Bt+32]=Qn-ti;var Wn=.707106781*(ei+ci);yt[Bt+16]=ci+Wn,yt[Bt+48]=ci-Wn;var Lr=.382683433*((Qn=Ji+ln)-(ei=je+Un)),di=.5411961*Qn+Lr,kr=1.306562965*ei+Lr,na=.707106781*(ti=ln+je),ia=Un+na,ra=Un-na;yt[Bt+40]=ra+di,yt[Bt+24]=ra-di,yt[Bt+8]=ia+kr,yt[Bt+56]=ia-kr,Bt++}for(Tt=0;Tt<64;++Tt)ee=yt[Tt]*Wt[Tt],g[Tt]=ee>0?ee+.5|0:ee-.5|0;return g}(A,D),xt=0;xt<64;++xt)P[ct[xt]]=gt[xt];var kt=P[0]-B;B=P[0],kt==0?ht(H[0]):(ht(H[y[X=32767+kt]]),ht(m[X]));for(var Lt=63;Lt>0&&P[Lt]==0;)Lt--;if(Lt==0)return ht(at),B;for(var Mt,F=1;F<=Lt;){for(var Nt=F;P[F]==0&&F<=Lt;)++F;var ae=F-Nt;if(ae>=16){Mt=ae>>4;for(var Ht=1;Ht<=Mt;++Ht)ht(ot);ae&=15}X=32767+P[F],ht(Y[(ae<<4)+y[X]]),ht(m[X]),F++}return Lt!=63&&ht(at),B}function wt(A){A=Math.min(Math.max(A,1),100),a!=A&&(function(D){for(var B=[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 Y=h((B[H]*D+50)/100);Y=Math.min(Math.max(Y,1),255),s[ct[H]]=Y}for(var X=[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=h((X[at]*D+50)/100);ot=Math.min(Math.max(ot,1),255),f[ct[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 Lt=0;Lt<8;Lt++)u[xt]=1/(s[ct[xt]]*gt[kt]*gt[Lt]*8),p[xt]=1/(f[ct[xt]]*gt[kt]*gt[Lt]*8),xt++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),a=A)}this.encode=function(A,D){D&&wt(D),C=new Array,R=0,L=7,ut(65496),ut(65504),ut(16),nt(74),nt(70),nt
vendor: 46,062 bytes, lines 103-109
103(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 Ut=0;Ut<64;Ut++)nt(s[Ut]);nt(1);for(var qt=0;qt<64;qt++)nt(f[qt])}(),function(Ut,qt){ut(65472),ut(17),nt(8),ut(qt),ut(Ut),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)}(A.width,A.height),function(){ut(65476),ut(418),nt(0);for(var Ut=0;Ut<16;Ut++)nt($[Ut+1]);for(var qt=0;qt<=11;qt++)nt(j[qt]);nt(16);for(var we=0;we<16;we++)nt(tt[we+1]);for(var he=0;he<=161;he++)nt(N[he]);nt(1);for(var Xt=0;Xt<16;Xt++)nt(O[Xt+1]);for(var ue=0;ue<=11;ue++)nt(U[ue]);nt(17);for(var fe=0;fe<16;fe++)nt(z[fe+1]);for(var Tt=0;Tt<=161;Tt++)nt(it[Tt])}(),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 B=0,H=0,Y=0;R=0,L=7,this.encode.displayName="_encode_";for(var X,at,ot,gt,xt,kt,Lt,Mt,F,Nt=A.data,ae=A.width,Ht=A.height,yt=4*ae,Wt=0;Wt<Ht;){for(X=0;X<yt;){for(xt=yt*Wt+X,Lt=-1,Mt=0,F=0;F<64;F++)kt=xt+(Mt=F>>3)*yt+(Lt=4*(7&F)),Wt+Mt>=Ht&&(kt-=yt*(Wt+1+Mt-Ht)),X+Lt>=yt&&(kt-=X+Lt-yt+4),at=Nt[kt++],ot=Nt[kt++],gt=Nt[kt++],G[F]=(vt[at]+vt[ot+256|0]+vt[gt+512|0]>>16)-128,V[F]=(vt[at+768|0]+vt[ot+1024|0]+vt[gt+1280|0]>>16)-128,M[F]=(vt[at+1280|0]+vt[ot+1536|0]+vt[gt+1792|0]>>16)-128;B=At(G,u,B,e,i),H=At(V,p,H,n,r),Y=At(M,p,Y,n,r),X+=32}Wt+=8}if(L>=0){var Ft=[];Ft[1]=L+1,Ft[0]=(1<<L+1)-1,ht(Ft)}return ut(65497),new Uint8Array(C)},t=t||50,function(){for(var A=String.fromCharCode,D=0;D<256;D++)rt[D]=A(D)}(),e=st($,j),n=st(O,U),i=st(tt,N),r=st(z,it),function(){for(var A=1,D=2,B=1;B<=15;B++){for(var H=A;H<D;H++)y[32767+H]=B,m[32767+H]=[],m[32767+H][1]=B,m[32767+H][0]=H;for(var Y=-(D-1);Y<=-A;Y++)y[32767+Y]=B,m[32767+Y]=[],m[32767+Y][1]=B,m[32767+Y][0]=D-1+Y;A<<=1,D<<=1}}(),function(){for(var A=0;A<256;A++)vt[A]=19595*A,vt[A+256|0]=38470*A,vt[A+512|0]=7471*A+32768,vt[A+768|0]=-11059*A,vt[A+1024|0]=-21709*A,vt[A+1280|0]=32768*A+8421375,vt[A+1536|0]=-27439*A,vt[A+1792|0]=-5329*A}(),wt(t)}/**
104 * @license
105 * Copyright (c) 2017 Aras Abbasi
106 *
107 * Licensed under the MIT License.
108 * http://opensource.org/licenses/mit-license
109 */function si(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,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 Iu(t){function e(j){if(!j)throw Error("assert :P")}function n(j,tt,N){for(var O=0;4>O;O++)if(j[tt+O]!=N.charCodeAt(O))return!0;return!1}function i(j,tt,N,O,U){for(var z=0;z<U;z++)j[tt+z]=N[O+z]}function r(j,tt,N,O){for(var U=0;U<O;U++)j[tt+U]=N}function a(j){return new Int32Array(j)}function h(j,tt){for(var N=[],O=0;O<j;O++)N.push(new tt);return N}function s(j,tt){var N=[];return function O(U,z,it){for(var st=it[z],ht=0;ht<st&&(U.push(it.length>z+1?[]:new tt),!(it.length<z+1));ht++)O(U[ht],z+1,it)}(N,0,j),N}var f=function(){var j=this;function tt(o,l){for(var d=1<<l-1>>>0;o&d;)d>>>=1;return d?(o&d-1)+d:o}function N(o,l,d,v,w){e(!(v%d));do o[l+(v-=d)]=w;while(0<v)}function O(o,l,d,v,w){if(e(2328>=w),512>=w)var _=a(512);else if((_=a(w))==null)return 0;return function(x,S,k,E,W,et){var I,Z,J=S,lt=1<<k,Q=a(16),ft=a(16);for(e(W!=0),e(E!=null),e(x!=null),e(0<k),Z=0;Z<W;++Z){if(15<E[Z])return 0;++Q[E[Z]]}if(Q[0]==W)return 0;for(ft[1]=0,I=1;15>I;++I){if(Q[I]>1<<I)return 0;ft[I+1]=ft[I]+Q[I]}for(Z=0;Z<W;++Z)I=E[Z],0<E[Z]&&(et[ft[I]++]=Z);if(ft[15]==1)return(E=new U).g=0,E.value=et[0],N(x,J,1,lt,E),lt;var pt,_t=-1,bt=lt-1,jt=0,Pt=1,ie=1,It=1<<k;for(Z=0,I=1,W=2;I<=k;++I,W<<=1){if(Pt+=ie<<=1,0>(ie-=Q[I]))return 0;for(;0<Q[I];--Q[I])(E=new U).g=I,E.value=et[Z++],N(x,J+jt,W,It,E),jt=tt(jt,I)}for(I=k+1,W=2;15>=I;++I,W<<=1){if(Pt+=ie<<=1,0>(ie-=Q[I]))return 0;for(;0<Q[I];--Q[I]){if(E=new U,(jt&bt)!=_t){for(J+=It,pt=1<<(_t=I)-k;15>_t&&!(0>=(pt-=Q[_t]));)++_t,pt<<=1;lt+=It=1<<(pt=_t-k),x[S+(_t=jt&bt)].g=pt+k,x[S+_t].value=J-S-_t}E.g=I-k,E.value=et[Z++],N(x,J+(jt>>k),W,It,E),jt=tt(jt,I)}}return Pt!=2*ft[15]-1?0:lt}(o,l,d,v,w,_)}function U(){this.value=this.g=0}function z(){this.value=this.g=0}function it(){this.G=h(5,U),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Br,z)}function st(o,l,d,v){e(o!=null),e(l!=null),e(2147483648>v),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=l,o.pa=d,o.Jd=l,o.Yc=d+v,o.Zc=4<=v?d+v-4+1:d,at(o)}function ht(o,l){for(var d=0;0<l--;)d|=gt(o,128)<<l;return d}function nt(o,l){var d=ht(o,l);return ot(o)?-d:d}function ut(o,l,d,v){var w,_=0;for(e(o!=null),e(l!=null),e(4294967288>v),o.Sb=v,o.Ra=0,o.u=0,o.h=0,4<v&&(v=4),w=0;w<v;++w)_+=l[d+w]<<8*w;o.Ra=_,o.bb=v,o.oa=l,o.pa=d}function At(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<er-8>>>0,++o.bb,o.u-=8;H(o)&&(o.h=1,o.u=0)}function wt(o,l){if(e(0<=l),!o.h&&l<=En){var d=B(o)&Fn[l];return o.u+=l,At(o),d}return o.h=1,o.u=0}function A(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function D(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(o){return o.Ra>>>(o.u&er-1)>>>0}function H(o){return e(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>er}function Y(o,l){o.u=l,o.h=H(o)}function X(o){o.u>=qi&&(e(o.u>=qi),At(o))}function at(o){e(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(e(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function ot(o){return ht(o,1)}function gt(o,l){var d=o.Ca;0>o.b&&at(o);var v=o.b,w=d*l>>>8,_=(o.I>>>v>w)+0;for(_?(d-=w,o.I-=w+1<<v>>>0):d=w+1,v=d,w=0;256<=v;)w+=8,v>>=8;return v=7^w+nr[v],o.b-=v,o.Ca=(d<<v)-1,_}function xt(o,l,d){o[l+0]=d>>24&255,o[l+1]=d>>16&255,o[l+2]=d>>8&255,o[l+3]=255&d}function kt(o,l){return o[l+0]|o[l+1]<<8}function Lt(o,l){return kt(o,l)|o[l+2]<<16}function Mt(o,l){return kt(o,l)|kt(o,l+2)<<16}function F(o,l){var d=1<<l;return e(o!=null),e(0<l),o.X=a(d),o.X==null?0:(o.Mb=32-l,o.Xa=l,1)}function Nt(o,l){e(o!=null),e(l!=null),e(o.Xa==l.Xa),i(l.X,0,o.X,0,1<<l.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(o,l,d,v){e(d!=null),e(v!=null);var w=d[0],_=v[0];return w==0&&(w=(o*_+l/2)/l),_==0&&(_=(l*w+o/2)/o),0>=w||0>=_?0:(d[0]=w,v[0]=_,1)}function yt(o,l){return o+(1<<l)-1>>>l}function Wt(o,l){return((4278255360&o)+(4278255360&l)>>>0&4278255360)+((16711935&o)+(16711935&l)>>>0&16711935)>>>0}function Ft(o,l){j[l]=function(d,v,w,_,x,S,k){var E;for(E=0;E<x;++E){var W=j[o](S[k+E-1],w,_+E);S[k+E]=Wt(d[v+E],W)}}}function Ut(){this.ud=this.hd=this.jd=0}function qt(o,l){return((4278124286&(o^l))>>>1)+(o&l)>>>0}function we(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function he(o,l){return we(o+(o-l+.5>>1))}function Xt(o,l,d){return Math.abs(l-d)-Math.abs(o-d)}function ue(o,l,d,v,w,_,x){for(v=_[x-1],d=0;d<w;++d)_[x+d]=v=Wt(o[l+d],v)}function fe(o,l,d,v,w){var _;for(_=0;_<d;++_){var x=o[l+_],S=x>>8&255,k=16711935&(k=(k=16711935&x)+((S<<16)+S));v[w+_]=(4278255360&x)+k>>>0}}function Tt(o,l){l.jd=255&o,l.hd=o>>8&255,l.ud=o>>16&255}function ee(o,l,d,v,w,_){var x;for(x=0;x<v;++x){var S=l[d+x],k=S>>>8,E=S,W=255&(W=(W=S>>>16)+((o.jd<<24>>24)*(k<<24>>24)>>>5));E=255&(E=(E+=(o.hd<<24>>24)*(k<<24>>24)>>>5)+((o.ud<<24>>24)*(W<<24>>24)>>>5)),w[_+x]=(4278255360&S)+(W<<16)+E}}function Bt(o,l,d,v,w){j[l]=function(_,x,S,k,E,W,et,I,Z){for(k=et;k<I;++k)for(et=0;et<Z;++et)E[W++]=w(S[v(_[x++])])},j[o]=function(_,x,S,k,E,W,et){var I=8>>_.b,Z=_.Ea,J=_.K[0],lt=_.w;if(8>I)for(_=(1<<_.b)-1,lt=(1<<I)-1;x<S;++x){var Q,ft=0;for(Q=0;Q<Z;++Q)Q&_||(ft=v(k[E++])),W[et++]=w(J[ft&lt]),ft>>=I}else j["VP8LMapColor"+d](k,E,J,lt,W,et,x,S,Z)}}function ze(o,l,d,v,w){for(d=l+d;l<d;){var _=o[l++];v[w++]=_>>16&255,v[w++]=_>>8&255,v[w++]=255&_}}function ge(o,l,d,v,w){for(d=l+d;l<d;){var _=o[l++];v[w++]=_>>16&255,v[w++]=_>>8&255,v[w++]=255&_,v[w++]=_>>24&255}}function oe(o,l,d,v,w){for(d=l+d;l<d;){var _=(x=o[l++])>>16&240|x>>12&15,x=240&x|x>>28&15;v[w++]=_,v[w++]=x}}function se(o,l,d,v,w){for(d=l+d;l<d;){var _=(x=o[l++])>>16&248|x>>13&7,x=x>>5&224|x>>3&31;v[w++]=_,v[w++]=x}}function Oe(o,l,d,v,w){for(d=l+d;l<d;){var _=o[l++];v[w++]=255&_,v[w++]=_>>8&255,v[w++]=_>>16&255}}function zt(o,l,d,v,w,_){if(_==0)for(d=l+d;l<d;)xt(v,((_=o[l++])[0]>>24|_[1]>>8&65280|_[2]<<8&16711680|_[3]<<24)>>>0),w+=32;else i(v,w,o,l,d)}function Pe(o,l){j[l][0]=j[o+"0"],j[l][1]=j[o+"1"],j[l][2]=j[o+"2"],j[l][3]=j[o+"3"],j[l][4]=j[o+"4"],j[l][5]=j[o+"5"],j[l][6]=j[o+"6"],j[l][7]=j[o+"7"],j[l][8]=j[o+"8"],j[l][9]=j[o+"9"],j[l][10]=j[o+"10"],j[l][11]=j[o+"11"],j[l][12]=j[o+"12"],j[l][13]=j[o+"13"],j[l][14]=j[o+"0"],j[l][15]=j[o+"0"]}function Zt(o){return o==nl||o==il||o==ns||o==rl}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Te(){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 Te,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ye(){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 Sr(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function gn(o,l){var d=o.T,v=l.ba.f.RGBA,w=v.eb,_=v.fb+o.ka*v.A,x=Kn[l.ba.S],S=o.y,k=o.O,E=o.f,W=o.N,et=o.ea,I=o.W,Z=l.cc,J=l.dc,lt=l.Mc,Q=l.Nc,ft=o.ka,pt=o.ka+o.T,_t=o.U,bt=_t+1>>1;for(ft==0?x(S,k,null,null,E,W,et,I,E,W,et,I,w,_,null,null,_t):(x(l.ec,l.fc,S,k,Z,J,lt,Q,E,W,et,I,w,_-v.A,w,_,_t),++d);ft+2<pt;ft+=2)Z=E,J=W,lt=et,Q=I,W+=o.Rc,I+=o.Rc,_+=2*v.A,x(S,(k+=2*o.fa)-o.fa,S,k,Z,J,lt,Q,E,W,et,I,w,_-v.A,w,_,_t);return k+=o.fa,o.j+pt<o.o?(i(l.ec,l.fc,S,k,_t),i(l.cc,l.dc,E,W,bt),i(l.Mc,l.Nc,et,I,bt),d--):1&pt||x(S,k,null,null,E,W,et,I,E,W,et,I,w,_+v.A,null,null,_t),d}function ki(o,l,d){var v=o.F,w=[o.J];if(v!=null){var _=o.U,x=l.ba.S,S=x==es||x==ns;l=l.ba.f.RGBA;var k=[0],E=o.ka;k[0]=o.T,o.Kb&&(E==0?--k[0]:(--E,w[0]-=o.width),o.j+o.ka+o.T==o.o&&(k[0]=o.o-o.j-E));var W=l.eb;E=l.fb+E*l.A,o=Oh(v,w[0],o.width,_,k,W,E+(S?0:3),l.A),e(d==k),o&&Zt(x)&&Ja(W,E,S,_,k,l.A)}return 0}function ui(o){var l=o.ma,d=l.ba.S,v=11>d,w=d==Qo||d==ts||d==es||d==el||d==12||Zt(d);if(l.memory=null,l.Ib=null,l.Jb=null,l.Nd=null,!Ha(l.Oa,o,w?11:12))return 0;if(w&&Zt(d)&&qa(),o.da)alert("todo:use_scaling");else{if(v){if(l.Ib=Sr,o.Kb){if(d=o.U+1>>1,l.memory=a(o.U+2*d),l.memory==null)return 0;l.ec=l.memory,l.fc=0,l.cc=l.ec,l.dc=l.fc+o.U,l.Mc=l.cc,l.Nc=l.dc+d,l.Ib=gn,qa()}}else alert("todo:EmitYUV");w&&(l.Jb=ki,v&&ii())}if(v&&!Kh){for(o=0;256>o;++o)C1[o]=89858*(o-128)+rs>>is,I1[o]=-22014*(o-128)+rs,E1[o]=-45773*(o-128),F1[o]=113618*(o-128)+rs>>is;for(o=Qa;o<sl;++o)l=76283*(o-16)+rs>>is,O1[o-Qa]=pi(l,255),T1[o-Qa]=pi(l+8>>4,15);Kh=1}return 1}function Vt(o){var l=o.ma,d=o.U,v=o.T;return e(!(1&o.ka)),0>=d||0>=v?0:(d=l.Ib(o,l),l.Jb!=null&&l.Jb(o,l,d),l.Dc+=d,1)}function Pi(o){o.ma.memory=null}function Ci(o,l,d,v){return wt(o,8)!=47?0:(l[0]=wt(o,14)+1,d[0]=wt(o,14)+1,v[0]=wt(o,1),wt(o,3)!=0?0:!o.h)}function Un(o,l){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(l,d)+1}function Hn(o,l){return 120<l?l-120:1<=(d=((d=g1[l-1])>>4)*o+(8-(15&d)))?d:1;var d}function je(o,l,d){var v=B(d),w=o[l+=255&v].g-8;return 0<w&&(Y(d,d.u+8),v=B(d),l+=o[l].value,l+=v&(1<<w)-1),Y(d,d.u+o[l].g),o[l].value}function on(o,l,d){return d.g+=o.g,d.value+=o.value<<l>>>0,e(8>=d.g),o.g}function ln(o,l,d){var v=o.xc;return e((l=v==0?0:o.vc[o.md*(d>>v)+(l>>v)])<o.Wb),o.Ya[l]}function Nr(o,l,d,v){var w=o.ab,_=o.c*l,x=o.C;l=x+l;var S=d,k=v;for(v=o.Ta,d=o.Ua;0<w--;){var E=o.gc[w],W=x,et=l,I=S,Z=k,J=(k=v,S=d,E.Ea);switch(e(W<et),e(et<=E.nc),E.hc){case 2:Ue(I,Z,(et-W)*J,k,S);break;case 0:var lt=W,Q=et,ft=k,pt=S,_t=(It=E).Ea;lt==0&&(Ga(I,Z,null,null,1,ft,pt),ue(I,Z+1,0,0,_t-1,ft,pt+1),Z+=_t,pt+=_t,++lt);for(var bt=1<<It.b,jt=bt-1,Pt=yt(_t,It.b),ie=It.K,It=It.w+(lt>>It.b)*Pt;lt<Q;){var ce=ie,en=It,re=1;for(ca(I,Z,ft,pt-_t,1,ft,pt);re<_t;){var Ot=(re&~jt)+bt;Ot>_t&&(Ot=_t),(0,Za[ce[en++]>>8&15])(I,Z+ +re,ft,pt+re-_t,Ot-re,ft,pt+re),re=Ot}Z+=_t,pt+=_t,++lt&jt||(It+=Pt)}et!=E.nc&&i(k,S-J,k,S+(et-W-1)*J,J);break;case 1:for(J=I,Q=Z,_t=(I=E.Ea)-(pt=I&~(ft=(Z=1<<E.b)-1)),lt=yt(I,E.b),bt=E.K,E=E.w+(W>>E.b)*lt;W<et;){for(jt=bt,Pt=E,ie=new Ut,It=Q+pt,ce=Q+I;Q<It;)Tt(jt[Pt++],ie),Ya(ie,J,Q,Z,k,S),Q+=Z,S+=Z;Q<ce&&(Tt(jt[Pt++],ie),Ya(ie,J,Q,_t,k,S),Q+=_t,S+=_t),++W&ft||(E+=lt)}break;case 3:if(I==k&&Z==S&&0<E.b){for(Q=k,I=J=S+(et-W)*J-(pt=(et-W)*yt(E.Ea,E.b)),Z=k,ft=S,lt=[],pt=(_t=pt)-1;0<=pt;--pt)lt[pt]=Z[ft+pt];for(pt=_t-1;0<=pt;--pt)Q[I+pt]=lt[pt];$o(E,W,et,k,J,k,S)}else $o(E,W,et,I,Z,k,S)}S=v,k=d}k!=d&&i(v,d,S,k,_)}function Ji(o,l){var d=o.V,v=o.Ba+o.c*o.C,w=l-o.C;if(e(l<=o.l.o),e(16>=w),0<w){var _=o.l,x=o.Ta,S=o.Ua,k=_.width;if(Nr(o,w,d,v),w=S=[S],e((d=o.C)<(v=l)),e(_.v<_.va),v>_.o&&(v=_.o),d<_.j){var E=_.j-d;d=_.j,w[0]+=E*k}if(d>=v?d=0:(w[0]+=4*_.v,_.ka=d-_.j,_.U=_.va-_.v,_.T=v-d,d=1),d){if(S=S[0],11>(d=o.ca).S){var W=d.f.RGBA,et=(v=d.S,w=_.U,_=_.T,E=W.eb,W.A),I=_;for(W=W.fb+o.Ma*W.A;0<I--;){var Z=x,J=S,lt=w,Q=E,ft=W;switch(v){case Xo:$a(Z,J,lt,Q,ft);break;case Qo:ir(Z,J,lt,Q,ft);break;case nl:ir(Z,J,lt,Q,ft),Ja(Q,ft,0,lt,1,0);break;case qh:Mr(Z,J,lt,Q,ft);break;case ts:zt(Z,J,lt,Q,ft,1);break;case il:zt(Z,J,lt,Q,ft,1),Ja(Q,ft,0,lt,1,0);break;case es:zt(Z,J,lt,Q,ft,0);break;case ns:zt(Z,J,lt,Q,ft,0),Ja(Q,ft,1,lt,1,0);break;case el:rr(Z,J,lt,Q,ft);break;case rl:rr(Z,J,lt,Q,ft),Ih(Q,ft,lt,1,0);break;case zh:ar(Z,J,lt,Q,ft);break;default:e(0)}S+=k,W+=et}o.Ma+=_}else alert("todo:EmitRescaledRowsYUVA");e(o.Ma<=d.height)}}o.C=l,e(o.C<=o.i)}function Qn(o){var l;if(0<o.ua)return 0;for(l=0;l<o.Wb;++l){var d=o.Ya[l].G,v=o.Ya[l].H;if(0<d[1][v[1]+0].g||0<d[2][v[2]+0].g||0<d[3][v[3]+0].g)return 0}return 1}function ci(o,l,d,v,w,_){if(o.Z!=0){var x=o.qd,S=o.rd;for(e(lr[o.Z]!=null);l<d;++l)lr[o.Z](x,S,v,w,v,w,_),x=v,S=w,w+=_;o.qd=x,o.rd=S}}function ti(o,l){var d=o.l.ma,v=d.Z==0||d.Z==1?o.l.j:o.C;if(v=o.C<v?v:o.C,e(l<=o.l.o),l>v){var w=o.l.width,_=d.ca,x=d.tb+w*v,S=o.V,k=o.Ba+o.c*v,E=o.gc;e(o.ab==1),e(E[0].hc==3),bi(E[0],v,l,S,k,_,x),ci(d,v,l,_,x,w)}o.C=o.Ma=l}function ei(o,l,d,v,w,_,x){var S=o.$/v,k=o.$%v,E=o.m,W=o.s,et=d+o.$,I=et;w=d+v*w;var Z=d+v*_,J=280+W.ua,lt=o.Pb?S:16777216,Q=0<W.ua?W.Wa:null,ft=W.wc,pt=et<Z?ln(W,k,S):null;e(o.C<_),e(Z<=w);var _t=!1;t:for(;;){for(;_t||et<Z;){var bt=0;if(S>=lt){var jt=et-d;e((lt=o).Pb),lt.wd=lt.m,lt.xd=jt,0<lt.s.ua&&Nt(lt.s.Wa,lt.s.vb),lt=S+m1}if(k&ft||(pt=ln(W,k,S)),e(pt!=null),pt.Qb&&(l[et]=pt.qb,_t=!0),!_t)if(X(E),pt.jc){bt=E,jt=l;var Pt=et,ie=pt.pd[B(bt)&Br-1];e(pt.jc),256>ie.g?(Y(bt,bt.u+ie.g),jt[Pt]=ie.value,bt=0):(Y(bt,bt.u+ie.g-256),e(256<=ie.value),bt=ie.value),bt==0&&(_t=!0)}else bt=je(pt.G[0],pt.H[0],E);if(E.h)break;if(_t||256>bt){if(!_t)if(pt.nd)l[et]=(pt.qb|bt<<8)>>>0;else{if(X(E),_t=je(pt.G[1],pt.H[1],E),X(E),jt=je(pt.G[2],pt.H[2],E),Pt=je(pt.G[3],pt.H[3],E),E.h)break;l[et]=(Pt<<24|_t<<16|bt<<8|jt)>>>0}if(_t=!1,++et,++k>=v&&(k=0,++S,x!=null&&S<=_&&!(S%16)&&x(o,S),Q!=null))for(;I<et;)bt=l[I++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else if(280>bt){if(bt=Un(bt-256,E),jt=je(pt.G[4],pt.H[4],E),X(E),jt=Hn(v,jt=Un(jt,E)),E.h)break;if(et-d<jt||w-et<bt)break t;for(Pt=0;Pt<bt;++Pt)l[et+Pt]=l[et+Pt-jt];for(et+=bt,k+=bt;k>=v;)k-=v,++S,x!=null&&S<=_&&!(S%16)&&x(o,S);if(e(et<=w),k&ft&&(pt=ln(W,k,S)),Q!=null)for(;I<et;)bt=l[I++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else{if(!(bt<J))break t;for(_t=bt-280,e(Q!=null);I<et;)bt=l[I++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=et,e(!(_t>>>(jt=Q).Xa)),l[bt]=jt.X[_t],_t=!0}_t||e(E.h==H(E))}if(o.Pb&&E.h&&et<w)e(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&Nt(o.s.vb,o.s.Wa);else{if(E.h)break t;x?.(o,S>_?_:S),o.a=0,o.$=et-d}return 1}return o.a=3,0}function Wn(o){e(o!=null),o.vc=null,o.yc=null,o.Ya=null;var l=o.Wa;l!=null&&(l.X=null),o.vb=null,e(o!=null)}function Lr(){var o=new $t;return o==null?null:(o.a=0,o.xb=Wh,Pe("Predictor","VP8LPredictors"),Pe("Predictor","VP8LPredictors_C"),Pe("PredictorAdd","VP8LPredictorsAdd"),Pe("PredictorAdd","VP8LPredictorsAdd_C"),Ue=fe,Ya=ee,$a=ze,ir=ge,rr=oe,ar=se,Mr=Oe,j.VP8LMapColor32b=mi,j.VP8LMapColor8b=Va,o)}function di(o,l,d,v,w){var _=1,x=[o],S=[l],k=v.m,E=v.s,W=null,et=0;t:for(;;){if(d)for(;_&&wt(k,1);){var I=x,Z=S,J=v,lt=1,Q=J.m,ft=J.gc[J.ab],pt=wt(Q,2);if(J.Oc&1<<pt)_=0;else{switch(J.Oc|=1<<pt,ft.hc=pt,ft.Ea=I[0],ft.nc=Z[0],ft.K=[null],++J.ab,e(4>=J.ab),pt){case 0:case 1:ft.b=wt(Q,3)+2,lt=di(yt(ft.Ea,ft.b),yt(ft.nc,ft.b),0,J,ft.K),ft.K=ft.K[0];break;case 3:var _t,bt=wt(Q,8)+1,jt=16<bt?0:4<bt?1:2<bt?2:3;if(I[0]=yt(ft.Ea,jt),ft.b=jt,_t=lt=di(bt,1,0,J,ft.K)){var Pt,ie=bt,It=ft,ce=1<<(8>>It.b),en=a(ce);if(en==null)_t=0;else{var re=It.K[0],Ot=It.w;for(en[0]=It.K[0][0],Pt=1;Pt<1*ie;++Pt)en[Pt]=Wt(re[Ot+Pt],en[Pt-1]);for(;Pt<4*ce;++Pt)en[Pt]=0;It.K[0]=null,It.K[0]=en,_t=1}}lt=_t;break;case 2:break;default:e(0)}_=lt}}if(x=x[0],S=S[0],_&&wt(k,1)&&!(_=1<=(et=wt(k,4))&&11>=et)){v.a=3;break t}var St;if(St=_)e:{var We,te,pe,Ee=v,un=x,xn=S,Be=et,vn=d,An=Ee.m,nn=Ee.s,me=[null],xe=1,Me=0,Ae=v1[Be];n:for(;;){if(vn&&wt(An,1)){var cn=wt(An,3)+2,ai=yt(un,cn),Ge=yt(xn,cn),Ln=ai*Ge;if(!di(ai,Ge,0,Ee,me))break n;for(me=me[0],nn.xc=cn,We=0;We<Ln;++We){var Le=me[We]>>8&65535;me[We]=Le,Le>=xe&&(xe=Le+1)}}if(An.h)break n;for(te=0;5>te;++te){var rn=Uh[te];!te&&0<Be&&(rn+=1<<Be),Me<rn&&(Me=rn)}var On=h(xe*Ae,U),Sn=xe,Tn=h(Sn,it);if(Tn==null)var Rn=null;else e(65536>=Sn),Rn=Tn;var kn=a(Me);if(Rn==null||kn==null||On==null){Ee.a=1;break n}var Dn=On;for(We=pe=0;We<xe;++We){var Fe=Rn[We],jn=Fe.G,oi=Fe.H,zr=0,Hi=1,dn=0;for(te=0;5>te;++te){rn=Uh[te],jn[te]=Dn,oi[te]=pe,!te&&0<Be&&(rn+=1<<Be);r:{var os,ll=rn,ss=Ee,to=kn,j1=Dn,B1=pe,hl=0,hr=ss.m,M1=wt(hr,1);if(r(to,0,0,ll),M1){var q1=wt(hr,1)+1,z1=wt(hr,1),Qh=wt(hr,z1==0?1:8);to[Qh]=1,q1==2&&(to[Qh=wt(hr,8)]=1);var ls=1}else{var tf=a(19),ef=wt(hr,4)+4;if(19<ef){ss.a=3;var hs=0;break r}for(os=0;os<ef;++os)tf[p1[os]]=wt(hr,3);var fl=void 0,eo=void 0,nf=ss,U1=tf,fs=ll,rf=to,ul=0,fr=nf.m,af=8,of=h(128,U);i:for(;O(of,0,7,U1,19);){if(wt(fr,1)){var H1=2+2*wt(fr,3);if((fl=2+wt(fr,H1))>fs)break i}else fl=fs;for(eo=0;eo<fs&&fl--;){X(fr);var sf=of[0+(127&B(fr))];Y(fr,fr.u+sf.g);var pa=sf.value;if(16>pa)rf[eo++]=pa,pa!=0&&(af=pa);else{var W1=pa==16,lf=pa-16,G1=c1[lf],hf=wt(fr,u1[lf])+G1;if(eo+hf>fs)break i;for(var V1=W1?af:0;0<hf--;)rf[eo++]=V1}}ul=1;break i}ul||(nf.a=3),ls=ul}(ls=ls&&!hr.h)&&(hl=O(j1,B1,8,to,ll)),ls&&hl!=0?hs=hl:(ss.a=3,hs=0)}if(hs==0)break n;if(Hi&&d1[te]==1&&(Hi=Dn[pe].g==0),zr+=Dn[pe].g,pe+=hs,3>=te){var no,cl=kn[0];for(no=1;no<rn;++no)kn[no]>cl&&(cl=kn[no]);dn+=cl}}if(Fe.nd=Hi,Fe.Qb=0,Hi&&(Fe.qb=(jn[3][oi[3]+0].value<<24|jn[1][oi[1]+0].value<<16|jn[2][oi[2]+0].value)>>>0,zr==0&&256>jn[0][oi[0]+0].value&&(Fe.Qb=1,Fe.qb+=jn[0][oi[0]+0].value<<8)),Fe.jc=!Fe.Qb&&6>dn,Fe.jc){var us,Wi=Fe;for(us=0;us<Br;++us){var ur=us,cr=Wi.pd[ur],cs=Wi.G[0][Wi.H[0]+ur];256<=cs.value?(cr.g=cs.g+256,cr.value=cs.value):(cr.g=0,cr.value=0,ur>>=on(cs,8,cr),ur>>=on(Wi.G[1][Wi.H[1]+ur],16,cr),ur>>=on(Wi.G[2][Wi.H[2]+ur],0,cr),on(Wi.G[3][Wi.H[3]+ur],24,cr))}}}nn.vc=me,nn.Wb=xe,nn.Ya=Rn,nn.yc=On,St=1;break e}St=0}if(!(_=St)){v.a=3;break t}if(0<et){if(E.ua=1<<et,!F(E.Wa,et)){v.a=1,_=0;break t}}else E.ua=0;var dl=v,ff=x,Z1=S,pl=dl.s,gl=pl.xc;if(dl.c=ff,dl.i=Z1,pl.md=yt(ff,gl),pl.wc=gl==0?-1:(1<<gl)-1,d){v.xb=S1;break t}if((W=a(x*S))==null){v.a=1,_=0;break t}_=(_=ei(v,W,0,x,S,S,null))&&!k.h;break t}return _?(w!=null?w[0]=W:(e(W==null),e(d)),v.$=0,d||Wn(E)):Wn(E),_}function kr(o,l){var d=o.c*o.i,v=d+l+16*l;return e(o.c<=l),o.V=a(v),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+d+l,1)}function na(o,l){var d=o.C,v=l-d,w=o.V,_=o.Ba+o.c*d;for(e(l<=o.l.o);0<v;){var x=16<v?16:v,S=o.l.ma,k=o.l.width,E=k*x,W=S.ca,et=S.tb+k*d,I=o.Ta,Z=o.Ua;Nr(o,x,w,_),Th(I,Z,W,et,E),ci(S,d,d+x,W,et,k),v-=x,w+=x*o.c,d+=x}e(d==l),o.C=o.Ma=l}function ia(){this.ub=this.yd=this.td=this.Rb=0}function ra(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Bs(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ca(){this.Yb=function(){var o=[];return function l(d,v,w){for(var _=w[v],x=0;x<_&&(d.push(w.length>v+1?[]:0),!(w.length<v+1));x++)l(d[x],v+1,w)}(o,0,[3,11]),o}()}function Eo(){this.jb=a(3),this.Wc=s([4,8],Ca),this.Xc=s([4,17],Ca)}function Io(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Gn(){this.ld=this.La=this.dd=this.tc=0}function Fa(){this.Na=this.la=0}function Oo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ea(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function To(){this.uc=this.M=this.Nb=0,this.wa=Array(new Gn),this.Y=0,this.ya=Array(new Ea),this.aa=0,this.l=new aa}function Ro(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Do(){this.cb=this.a=0,this.sc="",this.m=new A,this.Od=new ia,this.Kc=new ra,this.ed=new Io,this.Qa=new Bs,this.Ic=this.$c=this.Aa=0,this.D=new To,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,A),this.ia=0,this.pb=h(4,Oo),this.Pa=new Eo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ro),this.Hd=0,this.rb=Array(new Fa),this.sb=0,this.wa=Array(new Gn),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 Ea),this.L=this.aa=0,this.gd=s([4,2],Gn),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 pi(o,l){return 0>o?0:o>l?l:o}function aa(){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 Ms(){var o=new Do;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Xa||(Xa=oa)),o}function $e(o,l,d){return o.a==0&&(o.a=l,o.sc=d,o.cb=0),0}function jo(o,l,d){return 3<=d&&o[l+0]==157&&o[l+1]==1&&o[l+2]==42}function gi(o,l){if(o==null)return 0;if(o.a=0,o.sc="OK",l==null)return $e(o,2,"null VP8Io passed to VP8GetHeaders()");var d=l.data,v=l.w,w=l.ha;if(4>w)return $e(o,7,"Truncated header.");var _=d[v+0]|d[v+1]<<8|d[v+2]<<16,x=o.Od;if(x.Rb=!(1&_),x.td=_>>1&7,x.yd=_>>4&1,x.ub=_>>5,3<x.td)return $e(o,3,"Incorrect keyframe parameters.");if(!x.yd)return $e(o,4,"Frame not displayable.");v+=3,w-=3;var S=o.Kc;if(x.Rb){if(7>w)return $e(o,7,"cannot parse picture header");if(!jo(d,v,w))return $e(o,3,"Bad code word");S.c=16383&(d[v+4]<<8|d[v+3]),S.Td=d[v+4]>>6,S.i=16383&(d[v+6]<<8|d[v+5]),S.Ud=d[v+6]>>6,v+=7,w-=7,o.za=S.c+15>>4,o.Ub=S.i+15>>4,l.width=S.c,l.height=S.i,l.Da=0,l.j=0,l.v=0,l.va=l.width,l.o=l.height,l.da=0,l.ib=l.width,l.hb=l.height,l.U=l.width,l.T=l.height,r((_=o.Pa).jb,0,255,_.jb.length),e((_=o.Qa)!=null),_.Cb=0,_.Bb=0,_.Fb=1,r(_.Zb,0,0,_.Zb.length),r(_.Lb,0,0,_.Lb)}if(x.ub>w)return $e(o,7,"bad partition length");st(_=o.m,d,v,x.ub),v+=x.ub,w-=x.ub,x.Rb&&(S.Ld=ot(_),S.Kd=ot(_)),S=o.Qa;var k,E=o.Pa;if(e(_!=null),e(S!=null),S.Cb=ot(_),S.Cb){if(S.Bb=ot(_),ot(_)){for(S.Fb=ot(_),k=0;4>k;++k)S.Zb[k]=ot(_)?nt(_,7):0;for(k=0;4>k;++k)S.Lb[k]=ot(_)?nt(_,6):0}if(S.Bb)for(k=0;3>k;++k)E.jb[k]=ot(_)?ht(_,8):255}else S.Bb=0;if(_.Ka)return $e(o,3,"cannot parse segment header");if((S=o.ed).zd=ot(_),S.Tb=ht(_,6),S.wb=ht(_,3),S.Pc=ot(_),S.Pc&&ot(_)){for(E=0;4>E;++E)ot(_)&&(S.vd[E]=nt(_,6));for(E=0;4>E;++E)ot(_)&&(S.od[E]=nt(_,6))}if(o.L=S.Tb==0?0:S.zd?1:2,_.Ka)return $e(o,3,"cannot parse filter header");var W=w;if(w=k=v,v=k+W,S=W,o.Xb=(1<<ht(o.m,2))-1,W<3*(E=o.Xb))d=7;else{for(k+=3*E,S-=3*E,W=0;W<E;++W){var et=d[w+0]|d[w+1]<<8|d[w+2]<<16;et>S&&(et=S),st(o.Jc[+W],d,k,et),k+=et,S-=et,w+=3}st(o.Jc[+E],d,k,S),d=k<v?0:5}if(d!=0)return $e(o,d,"cannot parse partitions");for(d=ht(k=o.m,7),w=ot(k)?nt(k,4):0,v=ot(k)?nt(k,4):0,S=ot(k)?nt(k,4):0,E=ot(k)?nt(k,4):0,k=ot(k)?nt(k,4):0,W=o.Qa,et=0;4>et;++et){if(W.Cb){var I=W.Zb[et];W.Fb||(I+=d)}else{if(0<et){o.pb[et]=o.pb[0];continue}I=d}var Z=o.pb[et];Z.Sc[0]=al[pi(I+w,127)],Z.Sc[1]=ol[pi(I+0,127)],Z.Eb[0]=2*al[pi(I+v,127)],Z.Eb[1]=101581*ol[pi(I+S,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=al[pi(I+E,117)],Z.Qc[1]=ol[pi(I+k,127)],Z.lc=I+k}if(!x.Rb)return $e(o,4,"Not a key frame.");for(ot(_),x=o.Pa,d=0;4>d;++d){for(w=0;8>w;++w)for(v=0;3>v;++v)for(S=0;11>S;++S)E=gt(_,x1[d][w][v][S])?ht(_,8):y1[d][w][v][S],x.Wc[d][w].Yb[v][S]=E;for(w=0;17>w;++w)x.Xc[d][w]=x.Wc[d][A1[w]]}return o.kc=ot(_),o.kc&&(o.Bd=ht(_,8)),o.cb=1}function oa(o,l,d,v,w,_,x){var S=l[w].Yb[d];for(d=0;16>w;++w){if(!gt(o,S[d+0]))return w;for(;!gt(o,S[d+1]);)if(S=l[++w].Yb[0],d=0,w==16)return 16;var k=l[w+1].Yb;if(gt(o,S[d+2])){var E=o,W=0;if(gt(E,(I=S)[(et=d)+3]))if(gt(E,I[et+6])){for(S=0,et=2*(W=gt(E,I[et+8]))+(I=gt(E,I[et+9+W])),W=0,I=b1[et];I[S];++S)W+=W+gt(E,I[S]);W+=3+(8<<et)}else gt(E,I[et+7])?(W=7+2*gt(E,165),W+=gt(E,145)):W=5+gt(E,159);else W=gt(E,I[et+4])?3+gt(E,I[et+5]):2;S=k[2]}else W=1,S=k[1];k=x+w1[w],0>(E=o).b&&at(E);var et,I=E.b,Z=(et=E.Ca>>1)-(E.I>>I)>>31;--E.b,E.Ca+=Z,E.Ca|=1,E.I-=(et+1&Z)<<I,_[k]=((W^Z)-Z)*v[(0<w)+0]}return 16}function Bo(o){var l=o.rb[o.sb-1];l.la=0,l.Na=0,r(o.zc,0,0,o.zc.length),o.ja=0}function Vn(o,l,d,v,w){w=o[l+d+32*v]+(w>>3),o[l+d+32*v]=-256&w?0>w?0:255:w}function Xe(o,l,d,v,w,_){Vn(o,l,0,d,v+w),Vn(o,l,1,d,v+_),Vn(o,l,2,d,v-_),Vn(o,l,3,d,v-w)}function Fi(o){return(20091*o>>16)+o}function Mo(o,l,d,v){var w,_=0,x=a(16);for(w=0;4>w;++w){var S=o[l+0]+o[l+8],k=o[l+0]-o[l+8],E=(35468*o[l+4]>>16)-Fi(o[l+12]),W=Fi(o[l+4])+(35468*o[l+12]>>16);x[_+0]=S+W,x[_+1]=k+E,x[_+2]=k-E,x[_+3]=S-W,_+=4,l++}for(w=_=0;4>w;++w)S=(o=x[_+0]+4)+x[_+8],k=o-x[_+8],E=(35468*x[_+4]>>16)-Fi(x[_+12]),Vn(d,v,0,0,S+(W=Fi(x[_+4])+(35468*x[_+12]>>16))),Vn(d,v,1,0,k+E),Vn(d,v,2,0,k-E),Vn(d,v,3,0,S-W),_++,v+=32}function qs(o,l,d,v){var w=o[l+0]+4,_=35468*o[l+4]>>16,x=Fi(o[l+4]),S=35468*o[l+1]>>16;Xe(d,v,0,w+x,o=Fi(o[l+1]),S),Xe(d,v,1,w+_,o,S),Xe(d,v,2,w-_,o,S),Xe(d,v,3,w-x,o,S)}function zs(o,l,d,v,w){Mo(o,l,d,v),w&&Mo(o,l+16,d,v+4)}function vi(o,l,d,v){qr(o,l+0,d,v,1),qr(o,l+32,d,v+128,1)}function qo(o,l,d,v){var w;for(o=o[l+0]+4,w=0;4>w;++w)for(l=0;4>l;++l)Vn(d,v,l,w,o)}function zo(o,l,d,v){o[l+0]&&_e(o,l+0,d,v),o[l+16]&&_e(o,l+16,d,v+4),o[l+32]&&_e(o,l+32,d,v+128),o[l+48]&&_e(o,l+48,d,v+128+4)}function sa(o,l,d,v){var w,_=a(16);for(w=0;4>w;++w){var x=o[l+0+w]+o[l+12+w],S=o[l+4+w]+o[l+8+w],k=o[l+4+w]-o[l+8+w],E=o[l+0+w]-o[l+12+w];_[0+w]=x+S,_[8+w]=x-S,_[4+w]=E+k,_[12+w]=E-k}for(w=0;4>w;++w)x=(o=_[0+4*w]+3)+_[3+4*w],S=_[1+4*w]+_[2+4*w],k=_[1+4*w]-_[2+4*w],E=o-_[3+4*w],d[v+0]=x+S>>3,d[v+16]=E+k>>3,d[v+32]=x-S>>3,d[v+48]=E-k>>3,v+=64}function Pr(o,l,d){var v,w=l-32,_=In,x=255-o[w-1];for(v=0;v<d;++v){var S,k=_,E=x+o[l-1];for(S=0;S<d;++S)o[l+S]=k[E+o[w+S]];l+=32}}function Us(o,l){Pr(o,l,4)}function Hs(o,l){Pr(o,l,8)}function Ws(o,l){Pr(o,l,16)}function Ia(o,l){var d;for(d=0;16>d;++d)i(o,l+32*d,o,l-32,16)}function Uo(o,l){var d;for(d=16;0<d;--d)r(o,l,o[l-1],16),l+=32}function ni(o,l,d){var v;for(v=0;16>v;++v)r(l,d+32*v,o,16)}function Gs(o,l){var d,v=16;for(d=0;16>d;++d)v+=o[l-1+32*d]+o[l+d-32];ni(v>>5,o,l)}function Cr(o,l){var d,v=8;for(d=0;16>d;++d)v+=o[l-1+32*d];ni(v>>4,o,l)}function Oa(o,l){var d,v=8;for(d=0;16>d;++d)v+=o[l+d-32];ni(v>>4,o,l)}function Vs(o,l){ni(128,o,l)}function Kt(o,l,d){return o+2*l+d+2>>2}function Zs(o,l){var d,v=l-32;for(v=new Uint8Array([Kt(o[v-1],o[v+0],o[v+1]),Kt(o[v+0],o[v+1],o[v+2]),Kt(o[v+1],o[v+2],o[v+3]),Kt(o[v+2],o[v+3],o[v+4])]),d=0;4>d;++d)i(o,l+32*d,v,0,v.length)}function Ys(o,l){var d=o[l-1],v=o[l-1+32],w=o[l-1+64],_=o[l-1+96];xt(o,l+0,16843009*Kt(o[l-1-32],d,v)),xt(o,l+32,16843009*Kt(d,v,w)),xt(o,l+64,16843009*Kt(v,w,_)),xt(o,l+96,16843009*Kt(w,_,_))}function $s(o,l){var d,v=4;for(d=0;4>d;++d)v+=o[l+d-32]+o[l-1+32*d];for(v>>=3,d=0;4>d;++d)r(o,l+32*d,v,4)}function Ei(o,l){var d=o[l-1+0],v=o[l-1+32],w=o[l-1+64],_=o[l-1-32],x=o[l+0-32],S=o[l+1-32],k=o[l+2-32],E=o[l+3-32];o[l+0+96]=Kt(v,w,o[l-1+96]),o[l+1+96]=o[l+0+64]=Kt(d,v,w),o[l+2+96]=o[l+1+64]=o[l+0+32]=Kt(_,d,v),o[l+3+96]=o[l+2+64]=o[l+1+32]=o[l+0+0]=Kt(x,_,d),o[l+3+64]=o[l+2+32]=o[l+1+0]=Kt(S,x,_),o[l+3+32]=o[l+2+0]=Kt(k,S,x),o[l+3+0]=Kt(E,k,S)}function Ii(o,l){var d=o[l+1-32],v=o[l+2-32],w=o[l+3-32],_=o[l+4-32],x=o[l+5-32],S=o[l+6-32],k=o[l+7-32];o[l+0+0]=Kt(o[l+0-32],d,v),o[l+1+0]=o[l+0+32]=Kt(d,v,w),o[l+2+0]=o[l+1+32]=o[l+0+64]=Kt(v,w,_),o[l+3+0]=o[l+2+32]=o[l+1+64]=o[l+0+96]=Kt(w,_,x),o[l+3+32]=o[l+2+64]=o[l+1+96]=Kt(_,x,S),o[l+3+64]=o[l+2+96]=Kt(x,S,k),o[l+3+96]=Kt(S,k,k)}function Ks(o,l){var d=o[l-1+0],v=o[l-1+32],w=o[l-1+64],_=o[l-1-32],x=o[l+0-32],S=o[l+1-32],k=o[l+2-32],E=o[l+3-32];o[l+0+0]=o[l+1+64]=_+x+1>>1,o[l+1+0]=o[l+2+64]=x+S+1>>1,o[l+2+0]=o[l+3+64]=S+k+1>>1,o[l+3+0]=k+E+1>>1,o[l+0+96]=Kt(w,v,d),o[l+0+64]=Kt(v,d,_),o[l+0+32]=o[l+1+96]=Kt(d,_,x),o[l+1+32]=o[l+2+96]=Kt(_,x,S),o[l+2+32]=o[l+3+96]=Kt(x,S,k),o[l+3+32]=Kt(S,k,E)}function Js(o,l){var d=o[l+0-32],v=o[l+1-32],w=o[l+2-32],_=o[l+3-32],x=o[l+4-32],S=o[l+5-32],k=o[l+6-32],E=o[l+7-32];o[l+0+0]=d+v+1>>1,o[l+1+0]=o[l+0+64]=v+w+1>>1,o[l+2+0]=o[l+1+64]=w+_+1>>1,o[l+3+0]=o[l+2+64]=_+x+1>>1,o[l+0+32]=Kt(d,v,w),o[l+1+32]=o[l+0+96]=Kt(v,w,_),o[l+2+32]=o[l+1+96]=Kt(w,_,x),o[l+3+32]=o[l+2+96]=Kt(_,x,S),o[l+3+64]=Kt(x,S,k),o[l+3+96]=Kt(S,k,E)}function la(o,l){var d=o[l-1+0],v=o[l-1+32],w=o[l-1+64],_=o[l-1+96];o[l+0+0]=d+v+1>>1,o[l+2+0]=o[l+0+32]=v+w+1>>1,o[l+2+32]=o[l+0+64]=w+_+1>>1,o[l+1+0]=Kt(d,v,w),o[l+3+0]=o[l+1+32]=Kt(v,w,_),o[l+3+32]=o[l+1+64]=Kt(w,_,_),o[l+3+64]=o[l+2+64]=o[l+0+96]=o[l+1+96]=o[l+2+96]=o[l+3+96]=_}function Ta(o,l){var d=o[l-1+0],v=o[l-1+32],w=o[l-1+64],_=o[l-1+96],x=o[l-1-32],S=o[l+0-32],k=o[l+1-32],E=o[l+2-32];o[l+0+0]=o[l+2+32]=d+x+1>>1,o[l+0+32]=o[l+2+64]=v+d+1>>1,o[l+0+64]=o[l+2+96]=w+v+1>>1,o[l+0+96]=_+w+1>>1,o[l+3+0]=Kt(S,k,E),o[l+2+0]=Kt(x,S,k),o[l+1+0]=o[l+3+32]=Kt(d,x,S),o[l+1+32]=o[l+3+64]=Kt(v,d,x),o[l+1+64]=o[l+3+96]=Kt(w,v,d),o[l+1+96]=Kt(_,w,v)}function Fr(o,l){var d;for(d=0;8>d;++d)i(o,l+32*d,o,l-32,8)}function Xs(o,l){var d;for(d=0;8>d;++d)r(o,l,o[l-1],8),l+=32}function Oi(o,l,d){var v;for(v=0;8>v;++v)r(l,d+32*v,o,8)}function Qs(o,l){var d,v=8;for(d=0;8>d;++d)v+=o[l+d-32]+o[l-1+32*d];Oi(v>>4,o,l)}function Ra(o,l){var d,v=4;for(d=0;8>d;++d)v+=o[l+d-32];Oi(v>>3,o,l)}function Da(o,l){var d,v=4;for(d=0;8>d;++d)v+=o[l-1+32*d];Oi(v>>3,o,l)}function Ho(o,l){Oi(128,o,l)}function Ti(o,l,d){var v=o[l-d],w=o[l+0],_=3*(w-v)+tl[1020+o[l-2*d]-o[l+d]],x=Jo[112+(_+4>>3)];o[l-d]=In[255+v+Jo[112+(_+3>>3)]],o[l+0]=In[255+w-x]}function ja(o,l,d,v){var w=o[l+0],_=o[l+d];return $n[255+o[l-2*d]-o[l-d]]>v||$n[255+_-w]>v}function ha(o,l,d,v){return 4*$n[255+o[l-d]-o[l+0]]+$n[255+o[l-2*d]-o[l+d]]<=v}function Ba(o,l,d,v,w){var _=o[l-3*d],x=o[l-2*d],S=o[l-d],k=o[l+0],E=o[l+d],W=o[l+2*d],et=o[l+3*d];return 4*$n[255+S-k]+$n[255+x-E]>v?0:$n[255+o[l-4*d]-_]<=w&&$n[255+_-x]<=w&&$n[255+x-S]<=w&&$n[255+et-W]<=w&&$n[255+W-E]<=w&&$n[255+E-k]<=w}function Er(o,l,d,v){var w=2*v+1;for(v=0;16>v;++v)ha(o,l+v,d,w)&&Ti(o,l+v,d)}function Ma(o,l,d,v){var w=2*v+1;for(v=0;16>v;++v)ha(o,l+v*d,1,w)&&Ti(o,l+v*d,1)}function Wo(o,l,d,v){var w;for(w=3;0<w;--w)Er(o,l+=4*d,d,v)}function Go(o,l,d,v){var w;for(w=3;0<w;--w)Ma(o,l+=4,d,v)}function Ri(o,l,d,v,w,_,x,S){for(_=2*_+1;0<w--;){if(Ba(o,l,d,_,x))if(ja(o,l,d,S))Ti(o,l,d);else{var k=o,E=l,W=d,et=k[E-2*W],I=k[E-W],Z=k[E+0],J=k[E+W],lt=k[E+2*W],Q=27*(pt=tl[1020+3*(Z-I)+tl[1020+et-J]])+63>>7,ft=18*pt+63>>7,pt=9*pt+63>>7;k[E-3*W]=In[255+k[E-3*W]+pt],k[E-2*W]=In[255+et+ft],k[E-W]=In[255+I+Q],k[E+0]=In[255+Z-Q],k[E+W]=In[255+J-ft],k[E+2*W]=In[255+lt-pt]}l+=v}}function Di(o,l,d,v,w,_,x,S){for(_=2*_+1;0<w--;){if(Ba(o,l,d,_,x))if(ja(o,l,d,S))Ti(o,l,d);else{var k=o,E=l,W=d,et=k[E-W],I=k[E+0],Z=k[E+W],J=Jo[112+(4+(lt=3*(I-et))>>3)],lt=Jo[112+(lt+3>>3)],Q=J+1>>1;k[E-2*W]=In[255+k[E-2*W]+Q],k[E-W]=In[255+et+lt],k[E+0]=In[255+I-J],k[E+W]=In[255+Z-Q]}l+=v}}function Vo(o,l,d,v,w,_){Ri(o,l,d,1,16,v,w,_)}function Ir(o,l,d,v,w,_){Ri(o,l,1,d,16,v,w,_)}function Zo(o,l,d,v,w,_){var x;for(x=3;0<x;--x)Di(o,l+=4*d,d,1,16,v,w,_)}function c(o,l,d,v,w,_){var x;for(x=3;0<x;--x)Di(o,l+=4,1,d,16,v,w,_)}function b(o,l,d,v,w,_,x,S){Ri(o,l,w,1,8,_,x,S),Ri(d,v,w,1,8,_,x,S)}function T(o,l,d,v,w,_,x,S){Ri(o,l,1,w,8,_,x,S),Ri(d,v,1,w,8,_,x,S)}function q(o,l,d,v,w,_,x,S){Di(o,l+4*w,w,1,8,_,x,S),Di(d,v+4*w,w,1,8,_,x,S)}function K(o,l,d,v,w,_,x,S){Di(o,l+4,1,w,8,_,x,S),Di(d,v+4,1,w,8,_,x,S)}function dt(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ye,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function mt(){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 Et(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Rt(){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 it,this.yc=new U}function $t(){this.xb=this.a=0,this.l=new aa,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new D,this.Pb=0,this.wd=new D,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Rt,this.ab=0,this.gc=h(4,Et),this.Oc=0}function ne(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new aa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ve(o,l,d,v,w,_,x){for(o=o==null?0:o[l+0],l=0;l<x;++l)w[_+l]=o+d[v+l]&255,o=w[_+l]}function De(o,l,d,v,w,_,x){var S;if(o==null)ve(null,null,d,v,w,_,x);else for(S=0;S<x;++S)w[_+S]=o[l+S]+d[v+S]&255}function Ke(o,l,d,v,w,_,x){if(o==null)ve(null,null,d,v,w,_,x);else{var S,k=o[l+0],E=k,W=k;for(S=0;S<x;++S)E=W+(k=o[l+S])-E,W=d[v+S]+(-256&E?0>E?0:255:E)&255,E=k,w[_+S]=W}}function Ce(o,l,d,v){var w=l.width,_=l.o;if(e(o!=null&&l!=null),0>d||0>=v||d+v>_)return null;if(!o.Cc){if(o.ga==null){var x;if(o.ga=new ne,(x=o.ga==null)||(x=l.width*l.o,e(o.Gb.length==0),o.Gb=a(x),o.Uc=0,o.Gb==null?x=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,x=1),x=!x),!x){x=o.ga;var S=o.Fa,k=o.P,E=o.qc,W=o.mb,et=o.nb,I=k+1,Z=E-1,J=x.l;if(e(S!=null&&W!=null&&l!=null),lr[0]=null,lr[1]=ve,lr[2]=De,lr[3]=Ke,x.ca=W,x.tb=et,x.c=l.width,x.i=l.height,e(0<x.c&&0<x.i),1>=E)l=0;else if(x.$a=3&S[k+0],x.Z=S[k+0]>>2&3,x.Lc=S[k+0]>>4&3,k=S[k+0]>>6&3,0>x.$a||1<x.$a||4<=x.Z||1<x.Lc||k)l=0;else if(J.put=Vt,J.ac=ui,J.bc=Pi,J.ma=x,J.width=l.width,J.height=l.height,J.Da=l.Da,J.v=l.v,J.va=l.va,J.j=l.j,J.o=l.o,x.$a)t:{e(x.$a==1),l=Lr();e:for(;;){if(l==null){l=0;break t}if(e(x!=null),x.mc=l,l.c=x.c,l.i=x.i,l.l=x.l,l.l.ma=x,l.l.width=x.c,l.l.height=x.i,l.a=0,ut(l.m,S,I,Z),!di(x.c,x.i,1,l,null)||(l.ab==1&&l.gc[0].hc==3&&Qn(l.s)?(x.ic=1,S=l.c*l.i,l.Ta=null,l.Ua=0,l.V=a(S),l.Ba=0,l.V==null?(l.a=1,l=0):l=1):(x.ic=0,l=kr(l,x.c)),!l))break e;l=1;break t}x.mc=null,l=0}else l=Z>=x.c*x.i;x=!l}if(x)return null;o.ga.Lc!=1?o.Ga=0:v=_-d}e(o.ga!=null),e(d+v<=_);t:{if(l=(S=o.ga).c,_=S.l.o,S.$a==0){if(I=o.rc,Z=o.Vc,J=o.Fa,k=o.P+1+d*l,E=o.mb,W=o.nb+d*l,e(k<=o.P+o.qc),S.Z!=0)for(e(lr[S.Z]!=null),x=0;x<v;++x)lr[S.Z](I,Z,J,k,E,W,l),I=E,Z=W,W+=l,k+=l;else for(x=0;x<v;++x)i(E,W,J,k,l),I=E,Z=W,W+=l,k+=l;o.rc=I,o.Vc=Z}else{if(e(S.mc!=null),l=d+v,e((x=S.mc)!=null),e(l<=x.i),x.C>=l)l=1;else if(S.ic||ii(),S.ic){S=x.V,I=x.Ba,Z=x.c;var lt=x.i,Q=(J=1,k=x.$/Z,E=x.$%Z,W=x.m,et=x.s,x.$),ft=Z*lt,pt=Z*l,_t=et.wc,bt=Q<pt?ln(et,E,k):null;e(Q<=ft),e(l<=lt),e(Qn(et));e:for(;;){for(;!W.h&&Q<pt;){if(E&_t||(bt=ln(et,E,k)),e(bt!=null),X(W),256>(lt=je(bt.G[0],bt.H[0],W)))S[I+Q]=lt,++Q,++E>=Z&&(E=0,++k<=l&&!(k%16)&&ti(x,k));else{if(!(280>lt)){J=0;break e}lt=Un(lt-256,W);var jt,Pt=je(bt.G[4],bt.H[4],W);if(X(W),!(Q>=(Pt=Hn(Z,Pt=Un(Pt,W)))&&ft-Q>=lt)){J=0;break e}for(jt=0;jt<lt;++jt)S[I+Q+jt]=S[I+Q+jt-Pt];for(Q+=lt,E+=lt;E>=Z;)E-=Z,++k<=l&&!(k%16)&&ti(x,k);Q<pt&&E&_t&&(bt=ln(et,E,k))}e(W.h==H(W))}ti(x,k>l?l:k);break e}!J||W.h&&Q<ft?(J=0,x.a=W.h?5:3):x.$=Q,l=J}else l=ei(x,x.V,x.Ba,x.c,x.i,l,na);if(!l){v=0;break t}}d+v>=_&&(o.Cc=1),v=1}if(!v)return null;if(o.Cc&&((v=o.ga)!=null&&(v.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+d*w}function Qe(o,l,d,v,w,_){for(;0<w--;){var x,S=o,k=l+(d?1:0),E=o,W=l+(d?0:3);for(x=0;x<v;++x){var et=E[W+4*x];et!=255&&(et*=32897,S[k+4*x+0]=S[k+4*x+0]*et>>23,S[k+4*x+1]=S[k+4*x+1]*et>>23,S[k+4*x+2]=S[k+4*x+2]*et>>23)}l+=_}}function Je(o,l,d,v,w){for(;0<v--;){var _;for(_=0;_<d;++_){var x=o[l+2*_+0],S=15&(E=o[l+2*_+1]),k=4369*S,E=(240&E|E>>4)*k>>16;o[l+2*_+0]=(240&x|x>>4)*k>>16&240|(15&x|x<<4)*k>>16>>4&15,o[l+2*_+1]=240&E|S}l+=w}}function hn(o,l,d,v,w,_,x,S){var k,E,W=255;for(E=0;E<w;++E){for(k=0;k<v;++k){var et=o[l+k];_[x+4*k]=et,W&=et}l+=d,x+=S}return W!=255}function ji(o,l,d,v,w){var _;for(_=0;_<w;++_)d[v+_]=o[l+_]>>8}function ii(){Ja=Qe,Ih=Je,Oh=hn,Th=ji}function Bi(o,l,d){j[o]=function(v,w,_,x,S,k,E,W,et,I,Z,J,lt,Q,ft,pt,_t){var bt,jt=_t-1>>1,Pt=S[k+0]|E[W+0]<<16,ie=et[I+0]|Z[J+0]<<16;e(v!=null);var It=3*Pt+ie+131074>>2;for(l(v[w+0],255&It,It>>16,lt,Q),_!=null&&(It=3*ie+Pt+131074>>2,l(_[x+0],255&It,It>>16,ft,pt)),bt=1;bt<=jt;++bt){var ce=S[k+bt]|E[W+bt]<<16,en=et[I+bt]|Z[J+bt]<<16,re=Pt+ce+ie+en+524296,Ot=re+2*(ce+ie)>>3;It=Ot+Pt>>1,Pt=(re=re+2*(Pt+en)>>3)+ce>>1,l(v[w+2*bt-1],255&It,It>>16,lt,Q+(2*bt-1)*d),l(v[w+2*bt-0],255&Pt,Pt>>16,lt,Q+(2*bt-0)*d),_!=null&&(It=re+ie>>1,Pt=Ot+en>>1,l(_[x+2*bt-1],255&It,It>>16,ft,pt+(2*bt-1)*d),l(_[x+2*bt+0],255&Pt,Pt>>16,ft,pt+(2*bt+0)*d)),Pt=ce,ie=en}1&_t||(It=3*Pt+ie+131074>>2,l(v[w+_t-1],255&It,It>>16,lt,Q+(_t-1)*d),_!=null&&(It=3*ie+Pt+131074>>2,l(_[x+_t-1],255&It,It>>16,ft,pt+(_t-1)*d)))}}function qa(){Kn[Xo]=N1,Kn[Qo]=Gh,Kn[qh]=L1,Kn[ts]=Vh,Kn[es]=Zh,Kn[el]=Yh,Kn[zh]=k1,Kn[nl]=Gh,Kn[il]=Vh,Kn[ns]=Zh,Kn[rl]=Yh}function fa(o){return o&~P1?0>o?0:255:o>>$h}function Xi(o,l){return fa((19077*o>>8)+(26149*l>>8)-14234)}function Or(o,l,d){return fa((19077*o>>8)-(6419*l>>8)-(13320*d>>8)+8708)}function Tr(o,l){return fa((19077*o>>8)+(33050*l>>8)-17685)}function Qi(o,l,d,v,w){v[w+0]=Xi(o,d),v[w+1]=Or(o,l,d),v[w+2]=Tr(o,l)}function fn(o,l,d,v,w){v[w+0]=Tr(o,l),v[w+1]=Or(o,l,d),v[w+2]=Xi(o,d)}function Rr(o,l,d,v,w){var _=Or(o,l,d);l=_<<3&224|Tr(o,l)>>3,v[w+0]=248&Xi(o,d)|_>>5,v[w+1]=l}function Dr(o,l,d,v,w){var _=240&Tr(o,l)|15;v[w+0]=240&Xi(o,d)|Or(o,l,d)>>4,v[w+1]=_}function za(o,l,d,v,w){v[w+0]=255,Qi(o,l,d,v,w+1)}function Ua(o,l,d,v,w){fn(o,l,d,v,w),v[w+3]=255}function _n(o,l,d,v,w){Qi(o,l,d,v,w),v[w+3]=255}function Mi(o,l,d){j[o]=function(v,w,_,x,S,k,E,W,et){for(var I=W+(-2&et)*d;W!=I;)l(v[w+0],_[x+0],S[k+0],E,W),l(v[w+1],_[x+0],S[k+0],E,W+d),w+=2,++x,++k,W+=2*d;1&et&&l(v[w+0],_[x+0],S[k+0],E,W)}}function ua(o,l,d){return d==0?o==0?l==0?6:5:l==0?4:0:d}function Yo(o,l,d,v,w){switch(o>>>30){case 3:qr(l,d,v,w,0);break;case 2:Yn(l,d,v,w);break;case 1:_e(l,d,v,w)}}function Zn(o,l){var d,v,w=l.M,_=l.Nb,x=o.oc,S=o.pc+40,k=o.oc,E=o.pc+584,W=o.oc,et=o.pc+600;for(d=0;16>d;++d)x[S+32*d-1]=129;for(d=0;8>d;++d)k[E+32*d-1]=129,W[et+32*d-1]=129;for(0<w?x[S-1-32]=k[E-1-32]=W[et-1-32]=129:(r(x,S-32-1,127,21),r(k,E-32-1,127,9),r(W,et-32-1,127,9)),v=0;v<o.za;++v){var I=l.ya[l.aa+v];if(0<v){for(d=-1;16>d;++d)i(x,S+32*d-4,x,S+32*d+12,4);for(d=-1;8>d;++d)i(k,E+32*d-4,k,E+32*d+4,4),i(W,et+32*d-4,W,et+32*d+4,4)}var Z=o.Gd,J=o.Hd+v,lt=I.ad,Q=I.Hc;if(0<w&&(i(x,S-32,Z[J].y,0,16),i(k,E-32,Z[J].f,0,8),i(W,et-32,Z[J].ea,0,8)),I.Za){var ft=x,pt=S-32+16;for(0<w&&(v>=o.za-1?r(ft,pt,Z[J].y[15],4):i(ft,pt,Z[J+1].y,0,4)),d=0;4>d;d++)ft[pt+128+d]=ft[pt+256+d]=ft[pt+384+d]=ft[pt+0+d];for(d=0;16>d;++d,Q<<=2)ft=x,pt=S+Jh[d],ri[I.Ob[d]](ft,pt),Yo(Q,lt,16*+d,ft,pt)}else if(ft=ua(v,w,I.Ob[0]),sr[ft](x,S),Q!=0)for(d=0;16>d;++d,Q<<=2)Yo(Q,lt,16*+d,x,S+Jh[d]);for(d=I.Gc,ft=ua(v,w,I.Dd),Ui[ft](k,E),Ui[ft](W,et),Q=lt,ft=k,pt=E,255&(I=0|d)&&(170&I?wi(Q,256,ft,pt):Ne(Q,256,ft,pt)),I=W,Q=et,255&(d>>=8)&&(170&d?wi(lt,320,I,Q):Ne(lt,320,I,Q)),w<o.Ub-1&&(i(Z[J].y,0,x,S+480,16),i(Z[J].f,0,k,E+224,8),i(Z[J].ea,0,W,et+224,8)),d=8*_*o.B,Z=o.sa,J=o.ta+16*v+16*_*o.R,lt=o.qa,I=o.ra+8*v+d,Q=o.Ha,ft=o.Ia+8*v+d,d=0;16>d;++d)i(Z,J+d*o.R,x,S+32*d,16);for(d=0;8>d;++d)i(lt,I+d*o.B,k,E+32*d,8),i(Q,ft+d*o.B,W,et+32*d,8)}}function jr(o,l,d,v,w,_,x,S,k){var E=[0],W=[0],et=0,I=k!=null?k.kd:0,Z=k??new mt;if(o==null||12>d)return 7;Z.data=o,Z.w=l,Z.ha=d,l=[l],d=[d],Z.gb=[Z.gb];t:{var J=l,lt=d,Q=Z.gb;if(e(o!=null),e(lt!=null),e(Q!=null),Q[0]=0,12<=lt[0]&&!n(o,J[0],"RIFF")){if(n(o,J[0]+8,"WEBP")){Q=3;break t}var ft=Mt(o,J[0]+4);if(12>ft||4294967286<ft){Q=3;break t}if(I&&ft>lt[0]-8){Q=7;break t}Q[0]=ft,J[0]+=12,lt[0]-=12}Q=0}if(Q!=0)return Q;for(ft=0<Z.gb[0],d=d[0];;){t:{var pt=o;lt=l,Q=d;var _t=E,bt=W,jt=J=[0];if((It=et=[et])[0]=0,8>Q[0])Q=7;else{if(!n(pt,lt[0],"VP8X")){if(Mt(pt,lt[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Pt=Mt(pt,lt[0]+8),ie=1+Lt(pt,lt[0]+12);if(2147483648<=ie*(pt=1+Lt(pt,lt[0]+15))){Q=3;break t}jt!=null&&(jt[0]=Pt),_t!=null&&(_t[0]=ie),bt!=null&&(bt[0]=pt),lt[0]+=18,Q[0]-=18,It[0]=1}Q=0}}if(et=et[0],J=J[0],Q!=0)return Q;if(lt=!!(2&J),!ft&&et)return 3;if(_!=null&&(_[0]=!!(16&J)),x!=null&&(x[0]=lt),S!=null&&(S[0]=0),x=E[0],J=W[0],et&&lt&&k==null){Q=0;break}if(4>d){Q=7;break}if(ft&&et||!ft&&!et&&!n(o,l[0],"ALPH")){d=[d],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{Pt=o,Q=l,ft=d;var It=Z.gb;_t=Z.na,bt=Z.P,jt=Z.Sa,ie=22,e(Pt!=null),e(ft!=null),pt=Q[0];var ce=ft[0];for(e(_t!=null),e(jt!=null),_t[0]=null,bt[0]=null,jt[0]=0;;){if(Q[0]=pt,ft[0]=ce,8>ce){Q=7;break t}var en=Mt(Pt,pt+4);if(4294967286<en){Q=3;break t}var re=8+en+1&-2;if(ie+=re,0<It&&ie>It){Q=3;break t}if(!n(Pt,pt,"VP8 ")||!n(Pt,pt,"VP8L")){Q=0;break t}if(ce[0]<re){Q=7;break t}n(Pt,pt,"ALPH")||(_t[0]=Pt,bt[0]=pt+8,jt[0]=en),pt+=re,ce-=re}}if(d=d[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],Q!=0)break}d=[d],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(It=o,Q=l,ft=d,_t=Z.gb[0],bt=Z.Ja,jt=Z.xa,Pt=Q[0],pt=!n(It,Pt,"VP8 "),ie=!n(It,Pt,"VP8L"),e(It!=null),e(ft!=null),e(bt!=null),e(jt!=null),8>ft[0])Q=7;else{if(pt||ie){if(It=Mt(It,Pt+4),12<=_t&&It>_t-12){Q=3;break t}if(I&&It>ft[0]-8){Q=7;break t}bt[0]=It,Q[0]+=8,ft[0]-=8,jt[0]=ie}else jt[0]=5<=ft[0]&&It[Pt+0]==47&&!(It[Pt+4]>>5),bt[0]=ft[0];Q=0}if(d=d[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],l=l[0],Q!=0)break;if(4294967286<Z.Ja)return 3;if(S==null||lt||(S[0]=Z.xa?2:1),x=[x],J=[J],Z.xa){if(5>d){Q=7;break}S=x,I=J,lt=_,o==null||5>d?o=0:5<=d&&o[l+0]==47&&!(o[l+4]>>5)?(ft=[0],It=[0],_t=[0],ut(bt=new D,o,l,d),Ci(bt,ft,It,_t)?(S!=null&&(S[0]=ft[0]),I!=null&&(I[0]=It[0]),lt!=null&&(lt[0]=_t[0]),o=1):o=0):o=0}else{if(10>d){Q=7;break}S=J,o==null||10>d||!jo(o,l+3,d-3)?o=0:(I=o[l+0]|o[l+1]<<8|o[l+2]<<16,lt=16383&(o[l+7]<<8|o[l+6]),o=16383&(o[l+9]<<8|o[l+8]),1&I||3<(I>>1&7)||!(I>>4&1)||I>>5>=Z.Ja||!lt||!o?o=0:(x&&(x[0]=lt),S&&(S[0]=o),o=1))}if(!o||(x=x[0],J=J[0],et&&(E[0]!=x||W[0]!=J)))return 3;k!=null&&(k[0]=Z,k.offset=l-k.w,e(4294967286>l-k.w),e(k.offset==k.ha-d));break}return Q==0||Q==7&&et&&k==null?(_!=null&&(_[0]|=Z.na!=null&&0<Z.na.length),v!=null&&(v[0]=x),w!=null&&(w[0]=J),0):Q}function Ha(o,l,d){var v=l.width,w=l.height,_=0,x=0,S=v,k=w;if(l.Da=o!=null&&0<o.Da,l.Da&&(S=o.cd,k=o.bd,_=o.v,x=o.j,11>d||(_&=-2,x&=-2),0>_||0>x||0>=S||0>=k||_+S>v||x+k>w))return 0;if(l.v=_,l.j=x,l.va=_+S,l.o=x+k,l.U=S,l.T=k,l.da=o!=null&&0<o.da,l.da){if(!Ht(S,k,d=[o.ib],_=[o.hb]))return 0;l.ib=d[0],l.hb=_[0]}return l.ob=o!=null&&o.ob,l.Kb=o==null||!o.Sd,l.da&&(l.ob=l.ib<3*v/4&&l.hb<3*w/4,l.Kb=0),1}function Wa(o){if(o==null)return 2;if(11>o.S){var l=o.f.RGBA;l.fb+=(o.height-1)*l.A,l.A=-l.A}else l=o.f.kb,o=o.height,l.O+=(o-1)*l.fa,l.fa=-l.fa,l.N+=(o-1>>1)*l.Ab,l.Ab=-l.Ab,l.W+=(o-1>>1)*l.Db,l.Db=-l.Db,l.F!=null&&(l.J+=(o-1)*l.lb,l.lb=-l.lb);return 0}function tr(o,l,d,v){if(v==null||0>=o||0>=l)return 2;if(d!=null){if(d.Da){var w=d.cd,_=d.bd,x=-2&d.v,S=-2&d.j;if(0>x||0>S||0>=w||0>=_||x+w>o||S+_>l)return 2;o=w,l=_}if(d.da){if(!Ht(o,l,w=[d.ib],_=[d.hb]))return 2;o=w[0],l=_[0]}}v.width=o,v.height=l;t:{var k=v.width,E=v.height;if(o=v.S,0>=k||0>=E||!(o>=Xo&&13>o))o=2;else{if(0>=v.Rd&&v.sd==null){x=_=w=l=0;var W=(S=k*Xh[o])*E;if(11>o||(_=(E+1)/2*(l=(k+1)/2),o==12&&(x=(w=k)*E)),(E=a(W+2*_+x))==null){o=1;break t}v.sd=E,11>o?((k=v.f.RGBA).eb=E,k.fb=0,k.A=S,k.size=W):((k=v.f.kb).y=E,k.O=0,k.fa=S,k.Fd=W,k.f=E,k.N=0+W,k.Ab=l,k.Cd=_,k.ea=E,k.W=0+W+_,k.Db=l,k.Ed=_,o==12&&(k.F=E,k.J=0+W+2*_),k.Tc=x,k.lb=w)}if(l=1,w=v.S,_=v.width,x=v.height,w>=Xo&&13>w)if(11>w)o=v.f.RGBA,l&=(S=Math.abs(o.A))*(x-1)+_<=o.size,l&=S>=_*Xh[w],l&=o.eb!=null;else{o=v.f.kb,S=(_+1)/2,W=(x+1)/2,k=Math.abs(o.fa),E=Math.abs(o.Ab);var et=Math.abs(o.Db),I=Math.abs(o.lb),Z=I*(x-1)+_;l&=k*(x-1)+_<=o.Fd,l&=E*(W-1)+S<=o.Cd,l=(l&=et*(W-1)+S<=o.Ed)&k>=_&E>=S&et>=S,l&=o.y!=null,l&=o.f!=null,l&=o.ea!=null,w==12&&(l&=I>=_,l&=Z<=o.Tc,l&=o.F!=null)}else l=0;o=l?0:2}}return o!=0||d!=null&&d.fd&&(o=Wa(v)),o}var Br=64,Fn=[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],En=24,er=32,qi=8,nr=[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];Ft("Predictor0","PredictorAdd0"),j.Predictor0=function(){return 4278190080},j.Predictor1=function(o){return o},j.Predictor2=function(o,l,d){return l[d+0]},j.Predictor3=function(o,l,d){return l[d+1]},j.Predictor4=function(o,l,d){return l[d-1]},j.Predictor5=function(o,l,d){return qt(qt(o,l[d+1]),l[d+0])},j.Predictor6=function(o,l,d){return qt(o,l[d-1])},j.Predictor7=function(o,l,d){return qt(o,l[d+0])},j.Predictor8=function(o,l,d){return qt(l[d-1],l[d+0])},j.Predictor9=function(o,l,d){return qt(l[d+0],l[d+1])},j.Predictor10=function(o,l,d){return qt(qt(o,l[d-1]),qt(l[d+0],l[d+1]))},j.Predictor11=function(o,l,d){var v=l[d+0];return 0>=Xt(v>>24&255,o>>24&255,(l=l[d-1])>>24&255)+Xt(v>>16&255,o>>16&255,l>>16&255)+Xt(v>>8&255,o>>8&255,l>>8&255)+Xt(255&v,255&o,255&l)?v:o},j.Predictor12=function(o,l,d){var v=l[d+0];return(we((o>>24&255)+(v>>24&255)-((l=l[d-1])>>24&255))<<24|we((o>>16&255)+(v>>16&255)-(l>>16&255))<<16|we((o>>8&255)+(v>>8&255)-(l>>8&255))<<8|we((255&o)+(255&v)-(255&l)))>>>0},j.Predictor13=function(o,l,d){var v=l[d-1];
vendor: 5,863 bytes, line 109
109return(he((o=qt(o,l[d+0]))>>24&255,v>>24&255)<<24|he(o>>16&255,v>>16&255)<<16|he(o>>8&255,v>>8&255)<<8|he(255&o,255&v))>>>0};var Ga=j.PredictorAdd0;j.PredictorAdd1=ue,Ft("Predictor2","PredictorAdd2"),Ft("Predictor3","PredictorAdd3"),Ft("Predictor4","PredictorAdd4"),Ft("Predictor5","PredictorAdd5"),Ft("Predictor6","PredictorAdd6"),Ft("Predictor7","PredictorAdd7"),Ft("Predictor8","PredictorAdd8"),Ft("Predictor9","PredictorAdd9"),Ft("Predictor10","PredictorAdd10"),Ft("Predictor11","PredictorAdd11"),Ft("Predictor12","PredictorAdd12"),Ft("Predictor13","PredictorAdd13");var ca=j.PredictorAdd2;Bt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),Bt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var Ue,$o=j.ColorIndexInverseTransform,mi=j.MapARGB,bi=j.VP8LColorIndexInverseTransformAlpha,Va=j.MapAlpha,Za=j.VP8LPredictorsAdd=[];Za.length=16,(j.VP8LPredictors=[]).length=16,(j.VP8LPredictorsAdd_C=[]).length=16,(j.VP8LPredictors_C=[]).length=16;var Ya,$a,ir,rr,ar,Mr,or,qr,Yn,wi,_e,Ne,He,tn,zi,Ka,da,Ko,Lh,kh,Ph,Ch,Fh,Eh,Ja,Ih,Oh,Th,Rh=a(511),Dh=a(2041),jh=a(225),Bh=a(767),Mh=0,tl=Dh,Jo=jh,In=Bh,$n=Rh,Xo=0,Qo=1,qh=2,ts=3,es=4,el=5,zh=6,nl=7,il=8,ns=9,rl=10,u1=[2,3,7],c1=[3,3,11],Uh=[280,256,256,256,40],d1=[0,1,1,1,0],p1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],g1=[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],v1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],m1=8,al=[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],ol=[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],Xa=null,b1=[[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]],w1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Hh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],y1=[[[[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,25
1095,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]]]],_1=[[[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,
1091,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]]],x1=[[[[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,25
vendor: 11,194 bytes, line 109
1095,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]]]],A1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],sr=[],ri=[],Ui=[],S1=1,Wh=2,lr=[],Kn=[];Bi("UpsampleRgbLinePair",Qi,3),Bi("UpsampleBgrLinePair",fn,3),Bi("UpsampleRgbaLinePair",_n,4),Bi("UpsampleBgraLinePair",Ua,4),Bi("UpsampleArgbLinePair",za,4),Bi("UpsampleRgba4444LinePair",Dr,2),Bi("UpsampleRgb565LinePair",Rr,2);var N1=j.UpsampleRgbLinePair,L1=j.UpsampleBgrLinePair,Gh=j.UpsampleRgbaLinePair,Vh=j.UpsampleBgraLinePair,Zh=j.UpsampleArgbLinePair,Yh=j.UpsampleRgba4444LinePair,k1=j.UpsampleRgb565LinePair,is=16,rs=1<<is-1,Qa=-227,sl=482,$h=6,P1=(256<<$h)-1,Kh=0,C1=a(256),F1=a(256),E1=a(256),I1=a(256),O1=a(sl-Qa),T1=a(sl-Qa);Mi("YuvToRgbRow",Qi,3),Mi("YuvToBgrRow",fn,3),Mi("YuvToRgbaRow",_n,4),Mi("YuvToBgraRow",Ua,4),Mi("YuvToArgbRow",za,4),Mi("YuvToRgba4444Row",Dr,2),Mi("YuvToRgb565Row",Rr,2);var Jh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],as=[0,2,8],R1=[8,7,6,4,4,2,2,2,1,1,1,1],D1=1;this.WebPDecodeRGBA=function(o,l,d,v,w){var _=Qo,x=new dt,S=new le;x.ba=S,S.S=_,S.width=[S.width],S.height=[S.height];var k=S.width,E=S.height,W=new Gt;if(W==null||o==null)var et=2;else e(W!=null),et=jr(o,l,d,W.width,W.height,W.Pd,W.Qd,W.format,null);if(et!=0?k=0:(k!=null&&(k[0]=W.width[0]),E!=null&&(E[0]=W.height[0]),k=1),k){S.width=S.width[0],S.height=S.height[0],v!=null&&(v[0]=S.width),w!=null&&(w[0]=S.height);t:{if(v=new aa,(w=new mt).data=o,w.w=l,w.ha=d,w.kd=1,l=[0],e(w!=null),((o=jr(w.data,w.w,w.ha,null,null,null,l,null,w))==0||o==7)&&l[0]&&(o=4),(l=o)==0){if(e(x!=null),v.data=w.data,v.w=w.w+w.offset,v.ha=w.ha-w.offset,v.put=Vt,v.ac=ui,v.bc=Pi,v.ma=x,w.xa){if((o=Lr())==null){x=1;break t}if(function(I,Z){var J=[0],lt=[0],Q=[0];e:for(;;){if(I==null)return 0;if(Z==null)return I.a=2,0;if(I.l=Z,I.a=0,ut(I.m,Z.data,Z.w,Z.ha),!Ci(I.m,J,lt,Q)){I.a=3;break e}if(I.xb=Wh,Z.width=J[0],Z.height=lt[0],!di(J[0],lt[0],1,I,null))break e;return 1}return e(I.a!=0),0}(o,v)){if(v=(l=tr(v.width,v.height,x.Oa,x.ba))==0){e:{v=o;n:for(;;){if(v==null){v=0;break e}if(e(v.s.yc!=null),e(v.s.Ya!=null),e(0<v.s.Wb),e((d=v.l)!=null),e((w=d.ma)!=null),v.xb!=0){if(v.ca=w.ba,v.tb=w.tb,e(v.ca!=null),!Ha(w.Oa,d,ts)){v.a=2;break n}if(!kr(v,d.width)||d.da)break n;if((d.da||Zt(v.ca.S))&&ii(),11>v.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),v.ca.f.kb.F!=null&&ii()),v.Pb&&0<v.s.ua&&v.s.vb.X==null&&!F(v.s.vb,v.s.Wa.Xa)){v.a=1;break n}v.xb=0}if(!ei(v,v.V,v.Ba,v.c,v.i,d.o,Ji))break n;w.Dc=v.Ma,v=1;break e}e(v.a!=0),v=0}v=!v}v&&(l=o.a)}else l=o.a}else{if((o=new Ms)==null){x=1;break t}if(o.Fa=w.na,o.P=w.P,o.qc=w.Sa,gi(o,v)){if((l=tr(v.width,v.height,x.Oa,x.ba))==0){if(o.Aa=0,d=x.Oa,e((w=o)!=null),d!=null){if(0<(k=0>(k=d.Md)?0:100<k?255:255*k/100)){for(E=W=0;4>E;++E)12>(et=w.pb[E]).lc&&(et.ia=k*R1[0>et.lc?0:et.lc]>>3),W|=et.ia;W&&(alert("todo:VP8InitRandom"),w.ia=1)}w.Ga=d.Id,100<w.Ga?w.Ga=100:0>w.Ga&&(w.Ga=0)}(function(I,Z){if(I==null)return 0;if(Z==null)return $e(I,2,"NULL VP8Io parameter in VP8Decode().");if(!I.cb&&!gi(I,Z))return 0;if(e(I.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(I.L=0);var J=as[I.L];if(I.L==2?(I.yb=0,I.zb=0):(I.yb=Z.v-J>>4,I.zb=Z.j-J>>4,0>I.yb&&(I.yb=0),0>I.zb&&(I.zb=0)),I.Va=Z.o+15+J>>4,I.Hb=Z.va+15+J>>4,I.Hb>I.za&&(I.Hb=I.za),I.Va>I.Ub&&(I.Va=I.Ub),0<I.L){var lt=I.ed;for(J=0;4>J;++J){var Q;if(I.Qa.Cb){var ft=I.Qa.Lb[J];I.Qa.Fb||(ft+=lt.Tb)}else ft=lt.Tb;for(Q=0;1>=Q;++Q){var pt=I.gd[J][Q],_t=ft;if(lt.Pc&&(_t+=lt.vd[0],Q&&(_t+=lt.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var bt=_t;0<lt.wb&&(bt=4<lt.wb?bt>>2:bt>>1)>9-lt.wb&&(bt=9-lt.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}}}J=0}else $e(I,6,"Frame setup failed"),J=I.a;if(J=J==0){if(J){I.$c=0,0<I.Aa||(I.Ic=D1);e:{J=I.Ic,lt=4*(bt=I.za);var jt=32*bt,Pt=bt+1,ie=0<I.L?bt*(0<I.Aa?2:1):0,It=(I.Aa==2?2:1)*bt;if((pt=lt+832+(Q=3*(16*J+as[I.L])/2*jt)+(ft=I.Fa!=null&&0<I.Fa.length?I.Kc.c*I.Kc.i:0))!=pt)J=0;else{if(pt>I.Vb){if(I.Vb=0,I.Ec=a(pt),I.Fc=0,I.Ec==null){J=$e(I,1,"no memory during frame initialization.");break e}I.Vb=pt}pt=I.Ec,_t=I.Fc,I.Ac=pt,I.Bc=_t,_t+=lt,I.Gd=h(jt,Ro),I.Hd=0,I.rb=h(Pt+1,Fa),I.sb=1,I.wa=ie?h(ie,Gn):null,I.Y=0,I.D.Nb=0,I.D.wa=I.wa,I.D.Y=I.Y,0<I.Aa&&(I.D.Y+=bt),e(!0),I.oc=pt,I.pc=_t,_t+=832,I.ya=h(It,Ea),I.aa=0,I.D.ya=I.ya,I.D.aa=I.aa,I.Aa==2&&(I.D.aa+=bt),I.R=16*bt,I.B=8*bt,bt=(jt=as[I.L])*I.R,jt=jt/2*I.B,I.sa=pt,I.ta=_t+bt,I.qa=I.sa,I.ra=I.ta+16*J*I.R+jt,I.Ha=I.qa,I.Ia=I.ra+8*J*I.B+jt,I.$c=0,_t+=Q,I.mb=ft?pt:null,I.nb=ft?_t:null,e(_t+ft<=I.Fc+I.Vb),Bo(I),r(I.Ac,I.Bc,0,lt),J=1}}if(J){if(Z.ka=0,Z.y=I.sa,Z.O=I.ta,Z.f=I.qa,Z.N=I.ra,Z.ea=I.Ha,Z.Vd=I.Ia,Z.fa=I.R,Z.Rc=I.B,Z.F=null,Z.J=0,!Mh){for(J=-255;255>=J;++J)Rh[255+J]=0>J?-J:J;for(J=-1020;1020>=J;++J)Dh[1020+J]=-128>J?-128:127<J?127:J;for(J=-112;112>=J;++J)jh[112+J]=-16>J?-16:15<J?15:J;for(J=-255;510>=J;++J)Bh[255+J]=0>J?0:255<J?255:J;Mh=1}or=sa,qr=zs,wi=vi,_e=qo,Ne=zo,Yn=qs,He=Vo,tn=Ir,zi=b,Ka=T,da=Zo,Ko=c,Lh=q,kh=K,Ph=Er,Ch=Ma,Fh=Wo,Eh=Go,ri[0]=$s,ri[1]=Us,ri[2]=Zs,ri[3]=Ys,ri[4]=Ei,ri[5]=Ks,ri[6]=Ii,ri[7]=Js,ri[8]=Ta,ri[9]=la,sr[0]=Gs,sr[1]=Ws,sr[2]=Ia,sr[3]=Uo,sr[4]=Cr,sr[5]=Oa,sr[6]=Vs,Ui[0]=Qs,Ui[1]=Hs,Ui[2]=Fr,Ui[3]=Xs,Ui[4]=Da,Ui[5]=Ra,Ui[6]=Ho,J=1}else J=0}J&&(J=function(ce,en){for(ce.M=0;ce.M<ce.Va;++ce.M){var re,Ot=ce.Jc[ce.M&ce.Xb],St=ce.m,We=ce;for(re=0;re<We.za;++re){var te=St,pe=We,Ee=pe.Ac,un=pe.Bc+4*re,xn=pe.zc,Be=pe.ya[pe.aa+re];if(pe.Qa.Bb?Be.$b=gt(te,pe.Pa.jb[0])?2+gt(te,pe.Pa.jb[2]):gt(te,pe.Pa.jb[1]):Be.$b=0,pe.kc&&(Be.Ad=gt(te,pe.Bd)),Be.Za=!gt(te,145)+0,Be.Za){var vn=Be.Ob,An=0;for(pe=0;4>pe;++pe){var nn,me=xn[0+pe];for(nn=0;4>nn;++nn){me=_1[Ee[un+nn]][me];for(var xe=Hh[gt(te,me[0])];0<xe;)xe=Hh[2*xe+gt(te,me[xe])];me=-xe,Ee[un+nn]=me}i(vn,An,Ee,un,4),An+=4,xn[0+pe]=me}}else me=gt(te,156)?gt(te,128)?1:3:gt(te,163)?2:0,Be.Ob[0]=me,r(Ee,un,me,4),r(xn,0,me,4);Be.Dd=gt(te,142)?gt(te,114)?gt(te,183)?1:3:2:0}if(We.m.Ka)return $e(ce,7,"Premature end-of-partition0 encountered.");for(;ce.ja<ce.za;++ce.ja){if(We=Ot,te=(St=ce).rb[St.sb-1],Ee=St.rb[St.sb+St.ja],re=St.ya[St.aa+St.ja],un=St.kc?re.Ad:0)te.la=Ee.la=0,re.Za||(te.Na=Ee.Na=0),re.Hc=0,re.Gc=0,re.ia=0;else{var Me,Ae;if(te=Ee,Ee=We,un=St.Pa.Xc,xn=St.ya[St.aa+St.ja],Be=St.pb[xn.$b],pe=xn.ad,vn=0,An=St.rb[St.sb-1],me=nn=0,r(pe,vn,0,384),xn.Za)var cn=0,ai=un[3];else{xe=a(16);var Ge=te.Na+An.Na;if(Ge=Xa(Ee,un[1],Ge,Be.Eb,0,xe,0),te.Na=An.Na=(0<Ge)+0,1<Ge)or(xe,0,pe,vn);else{var Ln=xe[0]+3>>3;for(xe=0;256>xe;xe+=16)pe[vn+xe]=Ln}cn=1,ai=un[0]}var Le=15&te.la,rn=15&An.la;for(xe=0;4>xe;++xe){var On=1&rn;for(Ln=Ae=0;4>Ln;++Ln)Le=Le>>1|(On=(Ge=Xa(Ee,ai,Ge=On+(1&Le),Be.Sc,cn,pe,vn))>cn)<<7,Ae=Ae<<2|(3<Ge?3:1<Ge?2:pe[vn+0]!=0),vn+=16;Le>>=4,rn=rn>>1|On<<7,nn=(nn<<8|Ae)>>>0}for(ai=Le,cn=rn>>4,Me=0;4>Me;Me+=2){for(Ae=0,Le=te.la>>4+Me,rn=An.la>>4+Me,xe=0;2>xe;++xe){for(On=1&rn,Ln=0;2>Ln;++Ln)Ge=On+(1&Le),Le=Le>>1|(On=0<(Ge=Xa(Ee,un[2],Ge,Be.Qc,0,pe,vn)))<<3,Ae=Ae<<2|(3<Ge?3:1<Ge?2:pe[vn+0]!=0),vn+=16;Le>>=2,rn=rn>>1|On<<5}me|=Ae<<4*Me,ai|=Le<<4<<Me,cn|=(240&rn)<<Me}te.la=ai,An.la=cn,xn.Hc=nn,xn.Gc=me,xn.ia=43690&me?0:Be.ia,un=!(nn|me)}if(0<St.L&&(St.wa[St.Y+St.ja]=St.gd[re.$b][re.Za],St.wa[St.Y+St.ja].La|=!un),We.Ka)return $e(ce,7,"Premature end-of-file encountered.")}if(Bo(ce),St=en,We=1,re=(Ot=ce).D,te=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(re.M=Ot.M,re.uc=te,Zn(Ot,re),We=1,re=(Ae=Ot.D).Nb,te=(me=as[Ot.L])*Ot.R,Ee=me/2*Ot.B,xe=16*re*Ot.R,Ln=8*re*Ot.B,un=Ot.sa,xn=Ot.ta-te+xe,Be=Ot.qa,pe=Ot.ra-Ee+Ln,vn=Ot.Ha,An=Ot.Ia-Ee+Ln,rn=(Le=Ae.M)==0,nn=Le>=Ot.Va-1,Ot.Aa==2&&Zn(Ot,Ae),Ae.uc)for(On=(Ge=Ot).D.M,e(Ge.D.uc),Ae=Ge.yb;Ae<Ge.Hb;++Ae){cn=Ae,ai=On;var Sn=(Tn=(dn=Ge).D).Nb;Me=dn.R;var Tn=Tn.wa[Tn.Y+cn],Rn=dn.sa,kn=dn.ta+16*Sn*Me+16*cn,Dn=Tn.dd,Fe=Tn.tc;if(Fe!=0)if(e(3<=Fe),dn.L==1)0<cn&&Ch(Rn,kn,Me,Fe+4),Tn.La&&Eh(Rn,kn,Me,Fe),0<ai&&Ph(Rn,kn,Me,Fe+4),Tn.La&&Fh(Rn,kn,Me,Fe);else{var jn=dn.B,oi=dn.qa,zr=dn.ra+8*Sn*jn+8*cn,Hi=dn.Ha,dn=dn.Ia+8*Sn*jn+8*cn;Sn=Tn.ld,0<cn&&(tn(Rn,kn,Me,Fe+4,Dn,Sn),Ka(oi,zr,Hi,dn,jn,Fe+4,Dn,Sn)),Tn.La&&(Ko(Rn,kn,Me,Fe,Dn,Sn),kh(oi,zr,Hi,dn,jn,Fe,Dn,Sn)),0<ai&&(He(Rn,kn,Me,Fe+4,Dn,Sn),zi(oi,zr,Hi,dn,jn,Fe+4,Dn,Sn)),Tn.La&&(da(Rn,kn,Me,Fe,Dn,Sn),Lh(oi,zr,Hi,dn,jn,Fe,Dn,Sn))}}if(Ot.ia&&alert("todo:DitherRow"),St.put!=null){if(Ae=16*Le,Le=16*(Le+1),rn?(St.y=Ot.sa,St.O=Ot.ta+xe,St.f=Ot.qa,St.N=Ot.ra+Ln,St.ea=Ot.Ha,St.W=Ot.Ia+Ln):(Ae-=me,St.y=un,St.O=xn,St.f=Be,St.N=pe,St.ea=vn,St.W=An),nn||(Le-=me),Le>St.o&&(Le=St.o),St.F=null,St.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&Ae<Le&&(St.J=Ce(Ot,St,Ae,Le-Ae),St.F=Ot.mb,St.F==null&&St.F.length==0)){We=$e(Ot,3,"Could not decode alpha data.");break e}Ae<St.j&&(me=St.j-Ae,Ae=St.j,e(!(1&me)),St.O+=Ot.R*me,St.N+=Ot.B*(me>>1),St.W+=Ot.B*(me>>1),St.F!=null&&(St.J+=St.width*me)),Ae<Le&&(St.O+=St.v,St.N+=St.v>>1,St.W+=St.v>>1,St.F!=null&&(St.J+=St.v),St.ka=Ae-St.j,St.U=St.va-St.v,St.T=Le-Ae,We=St.put(St))}re+1!=Ot.Ic||nn||(i(Ot.sa,Ot.ta-te,un,xn+16*Ot.R,te),i(Ot.qa,Ot.ra-Ee,Be,pe+8*Ot.B,Ee),i(Ot.Ha,Ot.Ia-Ee,vn,An+8*Ot.B,Ee))}if(!We)return $e(ce,6,"Output aborted.")}return 1}(I,Z)),Z.bc!=null&&Z.bc(Z),J&=1}return J?(I.cb=0,J):0})(o,v)||(l=o.a)}}else l=o.a}l==0&&x.Oa!=null&&x.Oa.fd&&(l=Wa(x.ba))}x=l}_=x!=0?null:11>_?S.f.RGBA.eb:S.f.kb.y}else _=null;return _};var Xh=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(j,tt){for(var N="",O=0;O<4;O++)N+=String.fromCharCode(j[tt++]);return N}function p(j,tt){return j[tt+0]|j[tt+1]<<8}function m(j,tt){return(j[tt+0]|j[tt+1]<<8|j[tt+2]<<16)>>>0}function y(j,tt){return(j[tt+0]|j[tt+1]<<8|j[tt+2]<<16|j[tt+3]<<24)>>>0}new f;var g=[0],P=[0],C=[],R=new f,L=t,G=function(j,tt){var N={},O=0,U=!1,z=0,it=0;if(N.frames=[],!function(A,D){for(var B=0;B<4;B++)if(A[D+B]!="RIFF".charCodeAt(B))return!0;return!1}(j,tt)){for(y(j,tt+=4),tt+=8;tt<j.length;){var st=u(j,tt),ht=y(j,tt+=4);tt+=4;var nt=ht+(1&ht);switch(st){case"VP8 ":case"VP8L":N.frames[O]===void 0&&(N.frames[O]={}),(wt=N.frames[O]).src_off=U?it:tt-8,wt.src_size=z+ht+8,O++,U&&(U=!1,z=0,it=0);break;case"VP8X":(wt=N.header={}).feature_flags=j[tt];var ut=tt+4;wt.canvas_width=1+m(j,ut),ut+=3,wt.canvas_height=1+m(j,ut),ut+=3;break;case"ALPH":U=!0,z=nt+8,it=tt-8;break;case"ANIM":(wt=N.header).bgcolor=y(j,tt),ut=tt+4,wt.loop_count=p(j,ut),ut+=2;break;case"ANMF":var At,wt;(wt=N.frames[O]={}).offset_x=2*m(j,tt),tt+=3,wt.offset_y=2*m(j,tt),tt+=3,wt.width=1+m(j,tt),tt+=3,wt.height=1+m(j,tt),tt+=3,wt.duration=m(j,tt),tt+=3,At=j[tt++],wt.dispose=1&At,wt.blend=At>>1&1}st!="ANMF"&&(tt+=nt)}return N}}(L,0);G.response=L,G.rgbaoutput=!0,G.dataurl=!1;var V=G.header?G.header:null,M=G.frames?G.frames:null;
109if(V){V.loop_counter=V.loop_count,g=[V.canvas_height],P=[V.canvas_width];for(var rt=0;rt<M.length&&M[rt].blend!=0;rt++);}var vt=M[0],ct=R.WebPDecodeRGBA(L,vt.src_off,vt.src_size,P,g);vt.rgba=ct,vt.imgwidth=P[0],vt.imgheight=g[0];for(var $=0;$<P[0]*g[0]*4;$++)C[$]=ct[$];return this.width=P,this.height=g,this.data=C,this}/** ====================================================================
110 * @license
111 * jsPDF XMP metadata plugin
112 * Copyright (c) 2016 Jussi Utunen, [email protected]
113 *
114 * Permission is hereby granted, free of charge, to any person obtaining
115 * a copy of this software and associated documentation files (the
116 * "Software"), to deal in the Software without restriction, including
117 * without limitation the rights to use, copy, modify, merge, publish,
118 * distribute, sublicense, and/or sell copies of the Software, and to
119 * permit persons to whom the Software is furnished to do so, subject to
120 * the following conditions:
121 *
122 * The above copyright notice and this permission notice shall be
123 * included in all copies or substantial portions of the Software.
124 *
125 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
126 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
127 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
128 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
129 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
130 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
131 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
132 * ====================================================================
133 */function D5(){var t,e=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?n:'<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>'+n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</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 j5(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var e,n,i,r,a,h,s,f,u,p=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=A.transform!==void 0?A.transform.clone():new f,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new h,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new h,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect=typeof A.ignoreClearRect!="boolean"||A.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new m(this),e=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,h=this.internal.Point,s=this.internal.Rectangle,f=this.internal.Matrix,u=new p}]);var m=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var D=A;Object.defineProperty(this,"pdf",{get:function(){return D}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(F){B=!!F}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(F){H=!!F}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(F){isNaN(F)||(Y=F)}});var X=0;Object.defineProperty(this,"posY",{get:function(){return X},set:function(F){isNaN(F)||(X=F)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(F){var Nt;
vendor: 9,821 bytes, line 133
133typeof F=="number"?Nt=[F,F,F,F]:((Nt=new Array(4))[0]=F[0],Nt[1]=F.length>=2?F[1]:Nt[0],Nt[2]=F.length>=3?F[2]:Nt[0],Nt[3]=F.length>=4?F[3]:Nt[1]),u.margin=Nt}});var at=!1;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(F){at=F}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(F){ot=F}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(F){gt=F}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(F){F instanceof p&&(u=F)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(F){u.path=F}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(F){xt=F}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(F){var Nt;Nt=y(F),this.ctx.fillStyle=Nt.style,this.ctx.isFillTransparent=Nt.a===0,this.ctx.fillOpacity=Nt.a,this.pdf.setFillColor(Nt.r,Nt.g,Nt.b,{a:Nt.a}),this.pdf.setTextColor(Nt.r,Nt.g,Nt.b,{a:Nt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(F){var Nt=y(F);this.ctx.strokeStyle=Nt.style,this.ctx.isStrokeTransparent=Nt.a===0,this.ctx.strokeOpacity=Nt.a,Nt.a===0?this.pdf.setDrawColor(255,255,255):(Nt.a,this.pdf.setDrawColor(Nt.r,Nt.g,Nt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(F){["butt","round","square"].indexOf(F)!==-1&&(this.ctx.lineCap=F,this.pdf.setLineCap(F))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(F){isNaN(F)||(this.ctx.lineWidth=F,this.pdf.setLineWidth(F))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(F){["bevel","round","miter"].indexOf(F)!==-1&&(this.ctx.lineJoin=F,this.pdf.setLineJoin(F))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(F){isNaN(F)||(this.ctx.miterLimit=F,this.pdf.setMiterLimit(F))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(F){this.ctx.textBaseline=F}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(F){["right","end","center","left","start"].indexOf(F)!==-1&&(this.ctx.textAlign=F)}});var kt=null,Lt=null,Mt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Mt},set:function(F){kt=null,Lt=null,Mt=F}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(F){var Nt;if(this.ctx.font=F,(Nt=/^\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(F))!==null){var ae=Nt[1];Nt[2];var Ht=Nt[3],yt=Nt[4];Nt[5];var Wt=Nt[6],Ft=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(Ft==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:Ft==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var Ut=function(Bt){var ze,ge,oe=[],se=Bt.trim();if(se==="")return zl;if(se in wu)return[wu[se]];for(;se!=="";){switch(ge=null,ze=(se=_u(se)).charAt(0)){case'"':case"'":ge=F5(se.substring(1),ze);break;default:ge=E5(se)}if(ge===null||(oe.push(ge[0]),(se=_u(ge[1]))!==""&&se.charAt(0)!==","))return zl;se=se.replace(/^,/,"")}return oe}(Wt);if(this.fontFaces){var qt=function(Bt,ze){var ge=Bt.getFontList(),oe=JSON.stringify(ge);if(kt===null||Lt!==oe){var se=function(Oe){var zt=[];return Object.keys(Oe).forEach(function(Pe){Oe[Pe].forEach(function(Zt){var Qt=null;switch(Zt){case"bold":Qt={family:Pe,weight:"bold"};break;case"italic":Qt={family:Pe,style:"italic"};break;case"bolditalic":Qt={family:Pe,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Pe}}Qt!==null&&(Qt.ref={name:Pe,style:Zt},zt.push(Qt))})}),zt}(ge);kt=function(Oe){for(var zt={},Pe=0;Pe<Oe.length;++Pe){var Zt=ql(Oe[Pe]),Qt=Zt.family,Te=Zt.stretch,le=Zt.style,Gt=Zt.weight;zt[Qt]=zt[Qt]||{},zt[Qt][Te]=zt[Qt][Te]||{},zt[Qt][Te][le]=zt[Qt][Te][le]||{},zt[Qt][Te][le][Gt]=Zt}return zt}(se.concat(ze)),Lt=oe}return kt}(this.pdf,this.fontFaces),we=Ut.map(function(Bt){return{family:Bt,stretch:"normal",weight:Ht,style:ae}}),he=function(Bt,ze,ge){for(var oe=(ge=ge||{}).defaultFontFamily||"times",se=Object.assign({},C5,ge.genericFontFamilies||{}),Oe=null,zt=null,Pe=0;Pe<ze.length;++Pe)if(se[(Oe=ql(ze[Pe])).family]&&(Oe.family=se[Oe.family]),Bt.hasOwnProperty(Oe.family)){zt=Bt[Oe.family];break}if(!(zt=zt||Bt[oe]))throw new Error("Could not find a font-family for the rule '"+yu(Oe)+"' and default family '"+oe+"'.");if(zt=function(Zt,Qt){if(Qt[Zt])return Qt[Zt];var Te=fh[Zt],le=Te<=fh.normal?-1:1,Gt=bu(Qt,Gc,Te,le);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Zt);return Gt}(Oe.stretch,zt),zt=function(Zt,Qt){if(Qt[Zt])return Qt[Zt];for(var Te=Wc[Zt],le=0;le<Te.length;++le)if(Qt[Te[le]])return Qt[Te[le]];throw new Error("Could not find a matching font-style for "+Zt)}(Oe.style,zt),!(zt=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 Te=P5[Zt],le=bu(Qt,Vc,Te,Zt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Zt);return le}(Oe.weight,zt)))throw new Error("Failed to resolve a font for the rule '"+yu(Oe)+"'.");return zt}(qt,we);this.pdf.setFont(he.ref.name,he.ref.style)}else{var Xt="";(Ht==="bold"||parseInt(Ht,10)>=700||ae==="bold")&&(Xt="bold"),ae==="italic"&&(Xt+="italic"),Xt.length===0&&(Xt="normal");for(var ue="",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"},Tt=0;Tt<Ut.length;Tt++){if(this.pdf.internal.getFont(Ut[Tt],Xt,{noFallback:!0,disableWarning:!0})!==void 0){ue=Ut[Tt];break}if(Xt==="bolditalic"&&this.pdf.internal.getFont(Ut[Tt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ue=Ut[Tt],Xt="bold";else if(this.pdf.internal.getFont(Ut[Tt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ue=Ut[Tt],Xt="normal";break}}if(ue===""){for(var ee=0;ee<Ut.length;ee++)if(fe[Ut[ee]]){ue=fe[Ut[ee]];break}}ue=ue===""?"Times":ue,this.pdf.setFont(ue,Xt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(F){this.ctx.globalCompositeOperation=F}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(F){this.ctx.globalAlpha=F}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(F){this.ctx.lineDashOffset=F,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(F){this.ctx.lineDash=F,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(F){this.ctx.ignoreClearRect=!!F}})};m.prototype.setLineDash=function(A){this.lineDash=A},m.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},m.prototype.fill=function(){M.call(this,"fill",!1)},m.prototype.stroke=function(){M.call(this,"stroke",!1)},m.prototype.beginPath=function(){this.path=[{type:"begin"}]},m.prototype.moveTo=function(A,D){if(isNaN(A)||isNaN(D))throw ke.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new h(A,D));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new h(A,D)},m.prototype.closePath=function(){var A=new h(0,0),D=0;for(D=this.path.length-1;D!==-1;D--)if(this.path[D].type==="begin"&&Se(this.path[D+1])==="object"&&typeof this.path[D+1].x=="number"){A=new h(this.path[D+1].x,this.path[D+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(A.x,A.y)},m.prototype.lineTo=function(A,D){if(isNaN(A)||isNaN(D))throw ke.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new h(A,D));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new h(B.x,B.y)},m.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),M.call(this,null,!0)},m.prototype.quadraticCurveTo=function(A,D,B,H){if(isNaN(B)||isNaN(H)||isNaN(A)||isNaN(D))throw ke.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Y=this.ctx.transform.applyToPoint(new h(B,H)),X=this.ctx.transform.applyToPoint(new h(A,D));this.path.push({type:"qct",x1:X.x,y1:X.y,x:Y.x,y:Y.y}),this.ctx.lastPoint=new h(Y.x,Y.y)},m.prototype.bezierCurveTo=function(A,D,B,H,Y,X){if(isNaN(Y)||isNaN(X)||isNaN(A)||isNaN(D)||isNaN(B)||isNaN(H))throw ke.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var at=this.ctx.transform.applyToPoint(new h(Y,X)),ot=this.ctx.transform.applyToPoint(new h(A,D)),gt=this.ctx.transform.applyToPoint(new h(B,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 h(at.x,at.y)},m.prototype.arc=function(A,D,B,H,Y,X){if(isNaN(A)||isNaN(D)||isNaN(B)||isNaN(H)||isNaN(Y))throw ke.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to 
133jsPDF.context2d.arc");if(X=!!X,!this.ctx.transform.isIdentity){var at=this.ctx.transform.applyToPoint(new h(A,D));A=at.x,D=at.y;var ot=this.ctx.transform.applyToPoint(new h(0,B)),gt=this.ctx.transform.applyToPoint(new h(0,0));B=Math.sqrt(Math.pow(ot.x-gt.x,2)+Math.pow(ot.y-gt.y,2))}Math.abs(Y-H)>=2*Math.PI&&(H=0,Y=2*Math.PI),this.path.push({type:"arc",x:A,y:D,radius:B,startAngle:H,endAngle:Y,counterclockwise:X})},m.prototype.arcTo=function(A,D,B,H,Y){throw new Error("arcTo not implemented.")},m.prototype.rect=function(A,D,B,H){if(isNaN(A)||isNaN(D)||isNaN(B)||isNaN(H))throw ke.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,D),this.lineTo(A+B,D),this.lineTo(A+B,D+H),this.lineTo(A,D+H),this.lineTo(A,D),this.lineTo(A+B,D),this.lineTo(A,D)},m.prototype.fillRect=function(A,D,B,H){if(isNaN(A)||isNaN(D)||isNaN(B)||isNaN(H))throw ke.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var Y={};this.lineCap!=="butt"&&(Y.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Y.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,D,B,H),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},m.prototype.strokeRect=function(A,D,B,H){if(isNaN(A)||isNaN(D)||isNaN(B)||isNaN(H))throw ke.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");P.call(this)||(this.beginPath(),this.rect(A,D,B,H),this.stroke())},m.prototype.clearRect=function(A,D,B,H){if(isNaN(A)||isNaN(D)||isNaN(B)||isNaN(H))throw ke.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,D,B,H))},m.prototype.save=function(A){A=typeof A!="boolean"||A;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(D),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new p(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},m.prototype.restore=function(A){A=typeof A!="boolean"||A;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(D),A&&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)},m.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var y=function(A){var D,B,H,Y;if(A.isCanvasGradient===!0&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))D=0,B=0,H=0,Y=0;else{var X=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(X!==null)D=parseInt(X[1]),B=parseInt(X[2]),H=parseInt(X[3]),Y=1;else if((X=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A))!==null)D=parseInt(X[1]),B=parseInt(X[2]),H=parseInt(X[3]),Y=parseFloat(X[4]);else{if(Y=1,typeof A=="string"&&A.charAt(0)!=="#"){var at=new jc(A);A=at.ok?at.toHex():"#000000"}A.length===4?(D=A.substring(1,2),D+=D,B=A.substring(2,3),B+=B,H=A.substring(3,4),H+=H):(D=A.substring(1,3),B=A.substring(3,5),H=A.substring(5,7)),D=parseInt(D,16),B=parseInt(B,16),H=parseInt(H,16)}}return{r:D,g:B,b:H,a:Y,style:A}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},P=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};m.prototype.fillText=function(A,D,B,H){if(isNaN(D)||isNaN(B)||typeof A!="string")throw ke.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
133jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!g.call(this)){var Y=nt(this.ctx.transform.rotation),X=this.ctx.transform.scaleX;O.call(this,{text:A,x:D,y:B,scale:X,angle:Y,align:this.textAlign,maxWidth:H})}},m.prototype.strokeText=function(A,D,B,H){if(isNaN(D)||isNaN(B)||typeof A!="string")throw ke.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!P.call(this)){H=isNaN(H)?void 0:H;var Y=nt(this.ctx.transform.rotation),X=this.ctx.transform.scaleX;O.call(this,{text:A,x:D,y:B,scale:X,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:H})}},m.prototype.measureText=function(A){if(typeof A!="string")throw ke.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var D=this.pdf,B=this.pdf.internal.scaleFactor,H=D.internal.getFontSize(),Y=D.getStringUnitWidth(A)*H/D.internal.scaleFactor;return new function(X){var at=(X=X||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:Y*=Math.round(96*B/72*1e4)/1e4})},m.prototype.scale=function(A,D){if(isNaN(A)||isNaN(D))throw ke.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new f(A,0,0,D,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},m.prototype.rotate=function(A){if(isNaN(A))throw ke.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var D=new f(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(D)},m.prototype.translate=function(A,D){if(isNaN(A)||isNaN(D))throw ke.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new f(1,0,0,1,A,D);this.ctx.transform=this.ctx.transform.multiply(B)},m.prototype.transform=function(A,D,B,H,Y,X){if(isNaN(A)||isNaN(D)||isNaN(B)||isNaN(H)||isNaN(Y)||isNaN(X))throw ke.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var at=new f(A,D,B,H,Y,X);this.ctx.transform=this.ctx.transform.multiply(at)},m.prototype.setTransform=function(A,D,B,H,Y,X){A=isNaN(A)?1:A,D=isNaN(D)?0:D,B=isNaN(B)?0:B,H=isNaN(H)?1:H,Y=isNaN(Y)?0:Y,X=isNaN(X)?0:X,this.ctx.transform=new f(A,D,B,H,Y,X)};var C=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};m.prototype.drawImage=function(A,D,B,H,Y,X,at,ot,gt){var xt=this.pdf.getImageProperties(A),kt=1,Lt=1,Mt=1,F=1;H!==void 0&&ot!==void 0&&(Mt=ot/H,F=gt/Y,kt=xt.width/H*ot/H,Lt=xt.height/Y*gt/Y),X===void 0&&(X=D,at=B,D=0,B=0),H!==void 0&&ot===void 0&&(ot=H,gt=Y),H===void 0&&ot===void 0&&(ot=xt.width,gt=xt.height);var Nt=this.ctx.transform.decompose(),ae=nt(Nt.rotate.shx),Ht=new f,yt=(Ht=(Ht=(Ht=Ht.multiply(Nt.translate)).multiply(Nt.skew)).multiply(Nt.scale)).applyToRectangle(new s(X-D*Mt,at-B*F,H*kt,Y*Lt));if(this.autoPaging){for(var Wt,Ft=R.call(this,yt),Ut=[],qt=0;qt<Ft.length;qt+=1)Ut.indexOf(Ft[qt])===-1&&Ut.push(Ft[qt]);V(Ut);for(var we=Ut[0],he=Ut[Ut.length-1],Xt=we;Xt<he+1;Xt++){this.pdf.setPage(Xt);var ue=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Xt===1?this.posY+this.margin[0]:this.margin[0],Tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Bt=Xt===1?0:Tt+(Xt-2)*ee;if(this.ctx.clip_path.length!==0){var ze=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(Wt,this.posX+this.margin[3],-Bt+fe+this.ctx.prevPageLastElemOffset),rt.call(this,"fill",!0),this.path=ze}var ge=JSON.parse(JSON.stringify(yt));ge=G([ge],this.posX+this.margin[3],-Bt+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Xt>we||Xt<he)&&C.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ue,ee,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",ge.x,ge.y,ge.w,ge.h,null,
vendor: 39,820 bytes, lines 133-139
133null,ae),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(A,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,ae)};var R=function(A,D,B){var H=[];D=D||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Y=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":H.push(Math.floor((A.y+Y)/B)+1);break;case"arc":H.push(Math.floor((A.y+Y-A.radius)/B)+1),H.push(Math.floor((A.y+Y+A.radius)/B)+1);break;case"qct":var X=ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);H.push(Math.floor((X.y+Y)/B)+1),H.push(Math.floor((X.y+X.h+Y)/B)+1);break;case"bct":var at=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);H.push(Math.floor((at.y+Y)/B)+1),H.push(Math.floor((at.y+at.h+Y)/B)+1);break;case"rect":H.push(Math.floor((A.y+Y)/B)+1),H.push(Math.floor((A.y+A.h+Y)/B)+1)}for(var ot=0;ot<H.length;ot+=1)for(;this.pdf.internal.getNumberOfPages()<H[ot];)L.call(this);return H},L=function(){var A=this.fillStyle,D=this.strokeStyle,B=this.font,H=this.lineCap,Y=this.lineWidth,X=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=D,this.font=B,this.lineCap=H,this.lineWidth=Y,this.lineJoin=X},G=function(A,D,B){for(var H=0;H<A.length;H++)switch(A[H].type){case"bct":A[H].x2+=D,A[H].y2+=B;case"qct":A[H].x1+=D,A[H].y1+=B;default:A[H].x+=D,A[H].y+=B}return A},V=function(A){return A.sort(function(D,B){return D-B})},M=function(A,D){var B=this.fillStyle,H=this.strokeStyle,Y=this.lineCap,X=this.lineWidth,at=Math.abs(X*this.ctx.transform.scaleX),ot=this.lineJoin;if(this.autoPaging){for(var gt,xt,kt=JSON.parse(JSON.stringify(this.path)),Lt=JSON.parse(JSON.stringify(this.path)),Mt=[],F=0;F<Lt.length;F++)if(Lt[F].x!==void 0)for(var Nt=R.call(this,Lt[F]),ae=0;ae<Nt.length;ae+=1)Mt.indexOf(Nt[ae])===-1&&Mt.push(Nt[ae]);for(var Ht=0;Ht<Mt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<Mt[Ht];)L.call(this);V(Mt);for(var yt=Mt[0],Wt=Mt[Mt.length-1],Ft=yt;Ft<Wt+1;Ft++){this.pdf.setPage(Ft),this.fillStyle=B,this.strokeStyle=H,this.lineCap=Y,this.lineWidth=at,this.lineJoin=ot;var Ut=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=Ft===1?this.posY+this.margin[0]:this.margin[0],we=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],Xt=Ft===1?0:we+(Ft-2)*he;if(this.ctx.clip_path.length!==0){var ue=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(gt,this.posX+this.margin[3],-Xt+qt+this.ctx.prevPageLastElemOffset),rt.call(this,A,!0),this.path=ue}if(xt=JSON.parse(JSON.stringify(kt)),this.path=G(xt,this.posX+this.margin[3],-Xt+qt+this.ctx.prevPageLastElemOffset),D===!1||Ft===0){var fe=(Ft>yt||Ft<Wt)&&C.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ut,he,null).clip().discardPath()),rt.call(this,A,D),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=X}this.path=kt}else this.lineWidth=at,rt.call(this,A,D),this.lineWidth=X},rt=function(A,D){if((A!=="stroke"||D||!P.call(this))&&(A==="stroke"||D||!g.call(this))){for(var B,H,Y=[],X=this.path,at=0;at<X.length;at++){var ot=X[at];switch(ot.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:ot,deltas:[],abs:[]});break;case"lt":var gt=Y.length;if(X[at-1]&&!isNaN(X[at-1].x)&&(B=[ot.x-X[at-1].x,ot.y-X[at-1].y],gt>0)){for(;gt>=0;gt--)if(Y[gt-1].close!==!0&&Y[gt-1].begin!==!0){Y[gt-1].deltas.push(B),Y[gt-1].abs.push(ot);break}}break;case"bct":B=[ot.x1-X[at-1].x,ot.y1-X[at-1].y,ot.x2-X[at-1].x,ot.y2-X[at-1].y,ot.x-X[at-1].x,ot.y-X[at-1].y],Y[Y.length-1].deltas.push(B);break;case"qct":var xt=X[at-1].x+2/3*(ot.x1-X[at-1].x),kt=X[at-1].y+2/3*(ot.y1-X[at-1].y),Lt=ot.x+2/3*(ot.x1-ot.x),Mt=ot.y+2/3*(ot.y1-ot.y),F=ot.x,Nt=ot.y;B=[xt-X[at-1].x,kt-X[at-1].y,Lt-X[at-1].x,Mt-X[at-1].y,F-X[at-1].x,Nt-X[at-1].y],Y[Y.length-1].deltas.push(B);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(ot)}}H=D?null:A==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<Y.length;Ht++)if(Y[Ht].arc)for(var yt=Y[Ht].abs,Wt=0;Wt<yt.length;Wt++){var Ft=yt[Wt];Ft.type==="arc"?$.call(this,Ft.x,Ft.y,Ft.radius,Ft.startAngle,Ft.endAngle,Ft.counterclockwise,void 0,D,!ae):U.call(this,Ft.x,Ft.y),ae=!0}else if(Y[Ht].close===!0)this.pdf.internal.out("h"),ae=!1;else if(Y[Ht].begin!==!0){var Ut=Y[Ht].start.x,qt=Y[Ht].start.y;z.call(this,Y[Ht].deltas,Ut,qt),ae=!0}H&&j.call(this,H),D&&tt.call(this)}},vt=function(A){var D=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=D*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-B;case"top":return A+D-B;case"hanging":return A+D-2*B;case"middle":return A+D/2-B;default:return A}},ct=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};m.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(D,B){this.colorStops.push([D,B])},A.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},m.prototype.createPattern=function(){return this.createLinearGradient()},m.prototype.createRadialGradient=function(){return this.createLinearGradient()};var $=function(A,D,B,H,Y,X,at,ot,gt){for(var xt=st.call(this,B,H,Y,X),kt=0;kt<xt.length;kt++){var Lt=xt[kt];kt===0&&(gt?N.call(this,Lt.x1+A,Lt.y1+D):U.call(this,Lt.x1+A,Lt.y1+D)),it.call(this,A,D,Lt.x2,Lt.y2,Lt.x3,Lt.y3,Lt.x4,Lt.y4)}ot?tt.call(this):j.call(this,at)},j=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},tt=function(){this.pdf.clip(),this.pdf.discardPath()},N=function(A,D){this.pdf.internal.out(n(A)+" "+i(D)+" m")},O=function(A){var D;switch(A.align){case"right":case"end":D="right";break;case"center":D="center";break;default:D="left"}var B,H,Y,X=this.pdf.getTextDimensions(A.text),at=vt.call(this,A.y),ot=ct.call(this,at)-X.h,gt=this.ctx.transform.applyToPoint(new h(A.x,at));if(this.autoPaging){var xt=this.ctx.transform.decompose(),kt=new f;kt=(kt=(kt=kt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale);for(var Lt=this.ctx.transform.applyToRectangle(new s(A.x,at,X.w,X.h)),Mt=kt.applyToRectangle(new s(A.x,ot,X.w,X.h)),F=R.call(this,Mt),Nt=[],ae=0;ae<F.length;ae+=1)Nt.indexOf(F[ae])===-1&&Nt.push(F[ae]);V(Nt);for(var Ht=Nt[0],yt=Nt[Nt.length-1],Wt=Ht;Wt<yt+1;Wt++){this.pdf.setPage(Wt);var Ft=Wt===1?this.posY+this.margin[0]:this.margin[0],Ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qt=this.pdf.internal.pageSize.height-this.margin[2],we=qt-this.margin[0],he=this.pdf.internal.pageSize.width-this.margin[1],Xt=he-this.margin[3],ue=Wt===1?0:Ut+(Wt-2)*we;if(this.ctx.clip_path.length!==0){var fe=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(B,this.posX+this.margin[3],-1*ue+Ft),rt.call(this,"fill",!0),this.path=fe}var Tt=G([JSON.parse(JSON.stringify(Mt))],this.posX+this.margin[3],-ue+Ft+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*A.scale),Y=this.lineWidth,this.lineWidth=Y*A.scale);var ee=this.autoPaging!=="text";if(ee||Tt.y+Tt.h<=qt){if(ee||Tt.y>=Ft&&Tt.x<=he){var Bt=ee?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||he-Tt.x)[0],ze=G([JSON.parse(JSON.stringify(Lt))],this.posX+this.margin[3],-ue+Ft+this.ctx.prevPageLastElemOffset)[0],ge=ee&&(Wt>Ht||Wt<yt)&&C.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xt,we,null).clip().discardPath()),this.pdf.text(Bt,ze.x,ze.y,{angle:A.angle,align:D,renderingMode:A.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else Tt.y<qt&&(this.ctx.prevPageLastElemOffset+=qt-Tt.y);A.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=Y)}}else A.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*A.scale),Y=this.lineWidth,this.lineWidth=Y*A.scale),this.pdf.text(A.text,gt.x+this.posX,gt.y+this.posY,{angle:A.angle,align:D,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=Y)},U=function(A,D,B,H){B=B||0,H=H||0,this.pdf.internal.out(n(A+B)+" "+i(D+H)+" l")},z=function(A,D,B){return this.pdf.lines(A,D,B,null,null)},it=function(A,D,B,H,Y,X,at,ot){this.pdf.internal.out([e(r(B+A)),e(a(H+D)),e(r(Y+A)),e(a(X+D)),e(r(at+A)),e(a(ot+D)),"c"].join(" "))},st=function(A,D,B,H){for(var Y=2*Math.PI,X=Math.PI/2;D>B;)D-=Y;var at=Math.abs(B-D);at<Y&&H&&(at=Y-at);for(var ot=[],gt=H?-1:1,xt=D;at>1e-5;){var kt=xt+gt*Math.min(at,X);ot.push(ht.call(this,A,xt,kt)),at-=Math.abs(kt-xt),xt=kt}return ot},ht=function(A,D,B){var H=(B-D)/2,Y=A*Math.cos(H),X=A*Math.sin(H),at=Y,ot=-X,gt=at*at+ot*ot,xt=gt+at*Y+ot*X,kt=4/3*(Math.sqrt(2*gt*xt)-xt)/(at*X-ot*Y),Lt=at-kt*ot,Mt=ot+kt*at,F=Lt,Nt=-Mt,ae=H+D,Ht=Math.cos(ae),yt=Math.sin(ae);return{x1:A*Math.cos(D),y1:A*Math.sin(D),x2:Lt*Ht-Mt*yt,y2:Lt*yt+Mt*Ht,x3:F*Ht-Nt*yt,y3:F*yt+Nt*Ht,x4:A*Math.cos(B),y4:A*Math.sin(B)}},nt=function(A){return 180*A/Math.PI},ut=function(A,D,B,H,Y,X){var at=A+.5*(B-A),ot=D+.5*(H-D),gt=Y+.5*(B-Y),xt=X+.5*(H-X),kt=Math.min(A,Y,at,gt),Lt=Math.max(A,Y,at,gt),Mt=Math.min(D,X,ot,xt),F=Math.max(D,X,ot,xt);return new s(kt,Mt,Lt-kt,F-Mt)},At=function(A,D,B,H,Y,X,at,ot){var gt,xt,kt,Lt,Mt,F,Nt,ae,Ht,yt,Wt,Ft,Ut,qt,we=B-A,he=H-D,Xt=Y-B,ue=X-H,fe=at-Y,Tt=ot-X;for(xt=0;xt<41;xt++)Ht=(Nt=(kt=A+(gt=xt/40)*we)+gt*((Mt=B+gt*Xt)-kt))+gt*(Mt+gt*(Y+gt*fe-Mt)-Nt),yt=(ae=(Lt=D+gt*he)+gt*((F=H+gt*ue)-Lt))+gt*(F+gt*(X+gt*Tt-F)-ae),xt==0?(Wt=Ht,Ft=yt,Ut=Ht,qt=yt):(Wt=Math.min(Wt,Ht),Ft=Math.min(Ft,yt),Ut=Math.max(Ut,Ht),qt=Math.max(qt,yt));return new s(Math.round(Wt),Math.round(Ft),Math.round(Ut-Wt),Math.round(qt-Ft))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,D,B=(A=this.ctx.lineDash,D=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:D}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Dt.API),function(t){var e=function(h){var s,f,u,p,m,y,g,P,C,R;for(f=[],u=0,p=(h+=s="\0\0\0\0".slice(h.length%4||4)).length;p>u;u+=4)(m=(h.charCodeAt(u)<<24)+(h.charCodeAt(u+1)<<16)+(h.charCodeAt(u+2)<<8)+h.charCodeAt(u+3))!==0?(y=(m=((m=((m=((m=(m-(R=m%85))/85)-(C=m%85))/85)-(P=m%85))/85)-(g=m%85))/85)%85,f.push(y+33,g+33,P+33,C+33,R+33)):f.push(122);return function(L,G){for(var V=G;V>0;V--)L.pop()}(f,s.length),String.fromCharCode.apply(String,f)+"~>"},n=function(h){var s,f,u,p,m,y=String,g="length",P=255,C="charCodeAt",R="slice",L="replace";for(h[R](-2),h=h[R](0,-2)[L](/\s/g,"")[L]("z","!!!!!"),u=[],p=0,m=(h+=s="uuuuu"[R](h[g]%5||5))[g];m>p;p+=5)f=52200625*(h[C](p)-33)+614125*(h[C](p+1)-33)+7225*(h[C](p+2)-33)+85*(h[C](p+3)-33)+(h[C](p+4)-33),u.push(P&f>>24,P&f>>16,P&f>>8,P&f);return function(G,V){for(var M=V;M>0;M--)G.pop()}(u,s[g]),y.fromCharCode.apply(y,u)},i=function(h){return h.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},r=function(h){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),s.test(h)===!1)return"";for(var f="",u=0;u<h.length;u+=2)f+=String.fromCharCode("0x"+(h[u]+h[u+1]));return f},a=function(h){for(var s=new Uint8Array(h.length),f=h.length;f--;)s[f]=h.charCodeAt(f);return(s=Jl(s)).reduce(function(u,p){return u+String.fromCharCode(p)},"")};t.processDataByFilters=function(h,s){var f=0,u=h||"",p=[];for(typeof(s=s||[])=="string"&&(s=[s]),f=0;f<s.length;f+=1)switch(s[f]){case"ASCII85Decode":case"/ASCII85Decode":u=n(u),p.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=e(u),p.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=r(u),p.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=i(u),p.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=a(u),p.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[f]+'" is not implemented')}return{data:u,reverseChain:p.reverse().join(" ")}}}(Dt.API),function(t){t.loadFile=function(e,n,i){return function(r,a,h){a=a!==!1,h=typeof h=="function"?h:function(){};var s=void 0;try{s=function(f,u,p){var m=new XMLHttpRequest,y=0,g=function(P){var C=P.length,R=[],L=String.fromCharCode;for(y=0;y<C;y+=1)R.push(L(255&P.charCodeAt(y)));return R.join("")};if(m.open("GET",f,!u),m.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(m.onload=function(){m.status===200?p(g(this.responseText)):p(void 0)}),m.send(null),u&&m.status===200)return g(m.responseText)}(r,a,h)}catch{}return s}(e,n,i)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(Dt.API),function(t){function e(){return(Yt.html2canvas?Promise.resolve(Yt.html2canvas):vl(()=>import("./html2canvas.esm-BfxBtG_O.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(Yt.DOMPurify?Promise.resolve(Yt.DOMPurify):vl(()=>import("./purify.es-C5KSVp3G.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var i=function(s){var f=Se(s);return f==="undefined"?"undefined":f==="string"||s instanceof String?"string":f==="number"||s instanceof Number?"number":f==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":f==="object"?"object":"unknown"},r=function(s,f){var u=document.createElement(s);for(var p in f.className&&(u.className=f.className),f.innerHTML&&f.dompurify&&(u.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)u.style[p]=f.style[p];return u},a=function s(f,u){for(var p=f.nodeType===3?document.createTextNode(f.nodeValue):f.cloneNode(!1),m=f.firstChild;m;m=m.nextSibling)u!==!0&&m.nodeType===1&&m.nodeName==="SCRIPT"||p.appendChild(s(m,u));return f.nodeType===1&&(f.nodeName==="CANVAS"?(p.width=f.width,p.height=f.height,p.getContext("2d").drawImage(f,0,0)):f.nodeName!=="TEXTAREA"&&f.nodeName!=="SELECT"||(p.value=f.value),p.addEventListener("load",function(){p.scrollTop=f.scrollTop,p.scrollLeft=f.scrollLeft},!0)),p},h=function s(f){var u=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),p=s.convert(Promise.resolve(),u);return(p=p.setProgress(1,s,1,[s])).set(f)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(s,f){return s.__proto__=f||h.prototype,s},h.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:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},h.prototype.from=function(s,f){return this.then(function(){switch(f=f||function(u){switch(i(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),f){case"string":return this.then(n).then(function(u){return this.set({src:r("div",{innerHTML:s,dompurify:u})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},h.prototype.to=function(s){switch(s){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.")}},h.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 s={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},f=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(r("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"})},h.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(f){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,f(this.prop.container,u)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(f){var u=this.opt.jsPDF,p=this.opt.fontFaces,m=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,y=Object.assign({async:!0,allowTaint:!0,scale:m,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete y.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=p,p)for(var g=0;g<p.length;++g){var P=p[g],C=P.src.find(function(R){return R.format==="truetype"});C&&u.addFont(C.url,P.ref.name,P.ref.style)}return y.windowHeight=y.windowHeight||0,y.windowHeight=y.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):y.windowHeight,u.context2d.save(!0),f(this.prop.container,y)}).then(function(f){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(s,f,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(s,f):this.outputPdf(s,f)},h.prototype.outputPdf=function(s,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,f)})},h.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){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 "'+s+'" is not supported.'}})},h.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(s){if(i(s)!=="object")return this;var f=Object.keys(s||{}).map(function(u){if(u in h.template.prop)return function(){this.prop[u]=s[u]};switch(u){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[u]=s[u]}}},this);return this.then(function(){return this.thenList(f)})},h.prototype.get=function(s,f){return this.then(function(){var u=s in h.template.prop?this.prop[s]:this.opt[s];return f?f(u):u})},h.prototype.setMargin=function(s){return this.then(function(){switch(i(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},h.prototype.setPageSize=function(s){function f(u,p){return Math.floor(u*p/72*96)}return this.then(function(){(s=s||Dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:f(s.inner.width,s.k),height:f(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},h.prototype.setProgress=function(s,f,u,p){return s!=null&&(this.progress.val=s),f!=null&&(this.progress.state=f),u!=null&&(this.progress.n=u),p!=null&&(this.progress.stack=p),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(s,f,u,p){return this.setProgress(s?this.progress.val+s:null,f||null,u?this.progress.n+u:null,p?this.progress.stack.concat(p):null)},h.prototype.then=function(s,f){var u=this;return this.thenCore(s,f,function(p,m){return u.updateProgress(null,null,1,[p]),Promise.prototype.then.call(this,function(y){return u.updateProgress(null,p),y}).then(p,m).then(function(y){return u.updateProgress(1),y})})},h.prototype.thenCore=function(s,f,u){u=u||Promise.prototype.then;var p=this;s&&(s=s.bind(p)),f&&(f=f.bind(p));var m=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?p:h.convert(Object.assign({},p),Promise.prototype),y=u.call(m,s,f);return h.convert(y,p.__proto__)},h.prototype.thenExternal=function(s,f){return Promise.prototype.then.call(this,s,f)},h.prototype.thenList=function(s){var f=this;return s.forEach(function(u){f=f.thenCore(u)}),f},h.prototype.catch=function(s){s&&(s=s.bind(this));var f=Promise.prototype.catch.call(this,s);return h.convert(f,this)},h.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},h.prototype.error=function(s){return this.then(function(){throw new Error(s)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,Dt.getPageSize=function(s,f,u){if(Se(s)==="object"){var p=s;s=p.orientation,f=p.unit||f,u=p.format||u}f=f||"mm",u=u||"a4",s=(""+(s||"P")).toLowerCase();var m,y=(""+u).toLowerCase(),g={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(f){case"pt":m=1;break;case"mm":m=72/25.4;break;case"cm":m=72/2.54;break;case"in":m=72;break;case"px":m=.75;break;case"pc":case"em":m=12;break;case"ex":m=6;break;default:throw"Invalid unit: "+f}var P,C=0,R=0;if(g.hasOwnProperty(y))C=g[y][1]/m,R=g[y][0]/m;else try{C=u[1],R=u[0]}catch{throw new Error("Invalid format: "+u)}if(s==="p"||s==="portrait")s="p",R>C&&(P=R,R=C,C=P);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",C>R&&(P=R,R=C,C=P)}return{width:R,height:C,unit:f,k:m,orientation:s}},t.html=function(s,f){(f=f||{}).callback=f.callback||function(){},f.html2canvas=f.html2canvas||{},f.html2canvas.canvas=f.html2canvas.canvas||this.canvas,f.jsPDF=f.jsPDF||this,f.fontFaces=f.fontFaces?f.fontFaces.map(ql):null;var u=new h(f);return f.worker?u:u.from(s).doCallback()}}(Dt.API),Dt.API.addJS=function(t){var e,n,i=t;return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var n=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=n.outline.render().split(/\r\n/),a=0;a<r.length;a++){var h=r[a],s=i.exec(h);if(s!=null){var f=s[1];n.internal.newObjectDeferredBegin(f,!1)}n.internal.write(h)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,p=[];for(a=0;a<u;a++){var m=n.internal.newObject();p.push(m);var y=n.internal.getPageInfo(a+1);n.internal.write("<< /D["+y.objId+" 0 R /XYZ null null null]>> endobj")}var g=n.internal.newObject();for(n.internal.write("<< /Names [ "),a=0;a<p.length;a++)n.internal.write("(page_"+(a+1)+")"+p[a]+" 0 R");n.internal.write(" ] >>","endobj"),e=n.internal.newObject(),n.internal.write("<< /Dests "+g+" 0 R"),n.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(i,r,a){var h={title:r,options:a,children:[]};return i==null&&(i=this.root),i.children.push(h),h},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(i){i.id=n.internal.newObjectDeferred();for(var r=0;r<i.children.length;r++)this.genIds_r(i.children[r])},n.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},n.outline.renderItems=function(i){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<i.children.length;a++){var h=i.children[a];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(i)),a>0&&this.line("/Prev "+this.makeRef(i.children[a-1])),a<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[a+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var s=this.count=this.count_r({count:0},h);if(s>0&&this.line("/Count "+s),h.options&&h.options.pageNumber){var f=n.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var u=0;u<i.children.length;u++)this.renderItems(i.children[u])},n.outline.line=function(i){this.ctx.val+=i+`\r
134`},n.outline.makeRef=function(i){return i.id+" 0 R"},n.outline.makeString=function(i){return"("+n.internal.pdfEscape(i)+")"},n.outline.objStart=function(i){this.ctx.val+=`\r
135`+i.id+` 0 obj\r
136<<\r
137`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
138endobj\r
139`},n.outline.count_r=function(i,r){for(var a=0;a<r.children.length;a++)i.count++,this.count_r(i,r.children[a]);return i.count}}])}(Dt.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(n,i,r,a,h,s){var f,u=this.decode.DCT_DECODE,p=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=h||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,f=function(m){for(var y,g=256*m.charCodeAt(4)+m.charCodeAt(5),P=m.length,C={width:0,height:0,numcomponents:1},R=4;R<P;R+=2){if(R+=g,e.indexOf(m.charCodeAt(R+1))!==-1){y=256*m.charCodeAt(R+5)+m.charCodeAt(R+6),C={width:256*m.charCodeAt(R+7)+m.charCodeAt(R+8),height:y,numcomponents:m.charCodeAt(R+9)};break}g=256*m.charCodeAt(R+2)+m.charCodeAt(R+3)}return C}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),f.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}p={data:n,width:f.width,height:f.height,colorSpace:s,bitsPerComponent:8,filter:u,index:i,alias:r}}return p}}(Dt.API),Dt.API.processPNG=function(t,e,n,i){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var r,a=p5(t,{checkCrc:!0}),h=a.width,s=a.height,f=a.channels,u=a.palette,p=a.depth;r=u&&f===1?function($){for(var j=$.width,tt=$.height,N=$.data,O=$.palette,U=$.depth,z=!1,it=[],st=[],ht=void 0,nt=!1,ut=0,At=0;At<O.length;At++){var wt=mf(O[At],4),A=wt[0],D=wt[1],B=wt[2],H=wt[3];it.push(A,D,B),H!=null&&(H===0?(ut++,st.length<1&&st.push(At)):H<255&&(nt=!0))}if(nt||ut>1){z=!0,st=void 0;var Y=j*tt;ht=new Uint8Array(Y);for(var X=new DataView(N.buffer),at=0;at<Y;at++){var ot=Ul(X,at,U),gt=mf(O[ot],4)[3];ht[at]=gt}}else ut===0&&(st=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:z?8:void 0,colorBytes:N,alphaBytes:ht,needSMask:z,palette:it,mask:st}}(a):f===2||f===4?function($){for(var j=$.data,tt=$.width,N=$.height,O=$.channels,U=$.depth,z=O===2?"DeviceGray":"DeviceRGB",it=O-1,st=tt*N,ht=it,nt=st*ht,ut=1*st,At=Math.ceil(nt*U/8),wt=Math.ceil(ut*U/8),A=new Uint8Array(At),D=new Uint8Array(wt),B=new DataView(j.buffer),H=new DataView(A.buffer),Y=new DataView(D.buffer),X=!1,at=0;at<st;at++){for(var ot=at*O,gt=0;gt<ht;gt++)Fu(H,Ul(B,ot+gt,U),at*ht+gt,U);var xt=Ul(B,ot+ht,U);xt<(1<<U)-1&&(X=!0),Fu(Y,xt,1*at,U)}return{colorSpace:z,colorsPerPixel:it,sMaskBitsPerComponent:X?U:void 0,colorBytes:A,alphaBytes:D,needSMask:X}}(a):function($){var j=$.data,tt=$.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:tt,colorsPerPixel:tt==="DeviceGray"?1:3,colorBytes:j instanceof Uint16Array?function(N){for(var O=N.length,U=new Uint8Array(2*O),z=new DataView(U.buffer,U.byteOffset,U.byteLength),it=0;it<O;it++)z.setUint16(2*it,N[it],!1);return U}(j):j,needSMask:!1}}(a);var m,y,g,P=r,C=P.colorSpace,R=P.colorsPerPixel,L=P.sMaskBitsPerComponent,G=P.colorBytes,V=P.alphaBytes,M=P.needSMask,rt=P.palette,vt=P.mask,ct=null;return i!==Dt.API.image_compression.NONE&&typeof Jl=="function"?(ct=function($){var j;switch($){case Dt.API.image_compression.FAST:j=11;break;case Dt.API.image_compression.MEDIUM:j=13;break;case Dt.API.image_compression.SLOW:j=14;break;default:j=12}return j}(i),m=this.decode.FLATE_DECODE,y="/Predictor ".concat(ct," /Colors ").concat(R," /BitsPerComponent ").concat(p," /Columns ").concat(h),t=Nu(G,Math.ceil(h*R*p/8),R,p,i),M&&(g=Nu(V,Math.ceil(h*L/8),1,L,i))):(m=void 0,y=void 0,t=G,M&&(g=V)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:n,data:t,index:e,filter:m,decodeParameters:y,transparency:vt,palette:rt,sMask:g,predictor:ct,width:h,height:s,bitsPerComponent:p,sMaskBitsPerComponent:L,colorSpace:C}}},function(t){t.processGIF89A=function(e,n,i,r){var a=new R5(e),h=a.width,s=a.height,f=[];a.decodeAndBlitFrameRGBA(0,f);var u={data:f,width:h,height:s},p=new Hl(100).encode(u,100);return t.processJPEG.call(this,p,n,i,r)},t.processGIF87A=t.processGIF89A}(Dt.API),si.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),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 e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:r,green:i,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},si.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,e=this.width*this.height*4;if(e>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[t]()}catch(n){ke.log("bit decode error:"+n)}},si.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,r=0;r<e;r++)for(var a=this.datav.getUint8(this.pos++,!0),h=i*this.width*4+8*r*4,s=0;s<8&&8*r+s<this.width;s++){var f=this.palette[a>>7-s&1];this.data[h+4*s]=f.blue,this.data[h+4*s+1]=f.green,this.data[h+4*s+2]=f.red,this.data[h+4*s+3]=255}n!==0&&(this.pos+=4-n)}},si.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<t;r++){var a=this.datav.getUint8(this.pos++,!0),h=i*this.width*4+2*r*4,s=a>>4,f=15&a,u=this.palette[s];if(this.data[h]=u.blue,this.data[h+1]=u.green,this.data[h+2]=u.red,this.data[h+3]=255,2*r+1>=this.width)break;u=this.palette[f],this.data[h+4]=u.blue,this.data[h+4+1]=u.green,this.data[h+4+2]=u.red,this.data[h+4+3]=255}e!==0&&(this.pos+=4-e)}},si.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var r=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*i;if(r<this.palette.length){var h=this.palette[r];this.data[a]=h.red,this.data[a+1]=h.green,this.data[a+2]=h.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}t!==0&&(this.pos+=4-t)}},si.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,f=(a>>10&e)/e*255|0,u=a>>15?255:0,p=i*this.width*4+4*r;this.data[p]=f,this.data[p+1]=s,this.data[p+2]=h,this.data[p+3]=u}this.pos+=t}},si.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var r=this.bottom_up?i:this.height-1-i,a=0;a<this.width;a++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(h&e)/e*255|0,f=(h>>5&n)/n*255|0,u=(h>>11)/e*255|0,p=r*this.width*4+4*a;this.data[p]=u,this.data[p+1]=f,this.data[p+2]=s,this.data[p+3]=255}this.pos+=t}},si.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=e*this.width*4+4*n;this.data[h]=a,this.data[h+1]=r,this.data[h+2]=i,this.data[h+3]=255}this.pos+=this.width%4}},si.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=a,this.data[s+1]=r,this.data[s+2]=i,this.data[s+3]=h}},si.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,i,r){var a=new si(e,!1),h=a.width,s=a.height,f={data:a.getData(),width:h,height:s},u=new Hl(100).encode(f,100);return t.processJPEG.call(this,u,n,i,r)}}(Dt.API),Iu.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,i,r){var a=new Iu(e),h=a.width,s=a.height,f={data:a.getData(),width:h,height:s},u=new Hl(100).encode(f,100);return t.processJPEG.call(this,u,n,i,r)}}(Dt.API),Dt.API.processRGBA=function(t,e,n){for(var i=t.data,r=i.length,a=new Uint8Array(r/4*3),h=new Uint8Array(r/4),s=0,f=0,u=0;u<r;u+=4){var p=i[u],m=i[u+1],y=i[u+2],g=i[u+3];a[s++]=p,a[s++]=m,a[s++]=y,h[f++]=g}var P=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(h),data:P,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Dt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{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 (Canad
139a)","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===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ba=Dt.API,_s=ba.getCharWidthsArray=function(t,e){var n,i,r=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),h=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:r.metadata.Unicode.widths,f=s.fof?s.fof:1,u=e.kerning?e.kerning:r.metadata.Unicode.kerning,p=u.fof?u.fof:1,m=e.doKerning!==!1,y=0,g=t.length,P=0,C=s[0]||f,R=[];for(n=0;n<g;n++)i=t.charCodeAt(n),typeof r.metadata.widthOfString=="function"?R.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(i))+h*(1e3/a)||0)/1e3):(y=m&&Se(u[i])==="object"&&!isNaN(parseInt(u[i][P],10))?u[i][P]/p:0,R.push((s[i]||C)/f+y)),P=i;return R},xu=ba.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),i=e.font||this.internal.getFont(),r=e.charSpace||this.internal.getCharSpace();return ba.processArabic&&(t=ba.processArabic(t)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(t,n,r)/n:_s.apply(this,arguments).reduce(function(a,h){return a+h},0)},Au=function(t,e,n,i){for(var r=[],a=0,h=t.length,s=0;a!==h&&s+e[a]<n;)s+=e[a],a++;r.push(t.slice(0,a));var f=a;for(s=0;a!==h;)s+e[a]>i&&(r.push(t.slice(f,a)),s=0,f=a),s+=e[a],a++;return f!==a&&r.push(t.slice(f,a)),r},Su=function(t,e,n){n||(n={});var i,r,a,h,s,f,u,p=[],m=[p],y=n.textIndent||0,g=0,P=0,C=t.split(" "),R=_s.apply(this,[" ",n])[0];if(f=n.lineIndent===-1?C[0].length+2:n.lineIndent||0){var L=Array(f).join(" "),G=[];C.map(function(M){(M=M.split(/\s*\n/)).length>1?G=G.concat(M.map(function(rt,vt){return(vt&&rt.length?`
140`:"")+rt})):G.push(M[0])}
vendor: 4,219 bytes, lines 140-141
140),C=G,f=xu.apply(this,[L,n])}for(a=0,h=C.length;a<h;a++){var V=0;if(i=C[a],f&&i[0]==`
141`&&(i=i.substr(1),V=1),y+g+(P=(r=_s.apply(this,[i,n])).reduce(function(M,rt){return M+rt},0))>e||V){if(P>e){for(s=Au.apply(this,[i,r,e-(y+g),e]),p.push(s.shift()),p=[s.pop()];s.length;)m.push([s.shift()]);P=r.slice(i.length-(p[0]?p[0].length:0)).reduce(function(M,rt){return M+rt},0)}else p=[i];m.push(p),y=P+f,g=R}else p.push(i),y+=g+P,g=R}return u=f?function(M,rt){return(rt?L:"")+M.join(" ")}:function(M){return M.join(" ")},m.map(u)},ba.splitTextToSize=function(t,e,n){var i,r=(n=n||{}).fontSize||this.internal.getFontSize(),a=function(p){if(p.widths&&p.kerning)return{widths:p.widths,kerning:p.kerning};var m=this.internal.getFont(p.fontName,p.fontStyle),y="Unicode";return m.metadata[y]?{widths:m.metadata[y].widths||{0:1},kerning:m.metadata[y].kerning||{}}:{font:m.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var h=1*this.internal.scaleFactor*e/r;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/r:0,a.lineIndent=n.lineIndent;var s,f,u=[];for(s=0,f=i.length;s<f;s++)u=u.concat(Su.apply(this,[i[s],h,a]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",n="klmnopqrstuvwxyz",i={},r={},a=0;a<16;a++)i[n[a]]=e[a],r[e[a]]=n[a];var h=function(y){return"0x"+parseInt(y,10).toString(16)},s=t.__fontmetrics__.compress=function(y){var g,P,C,R,L=["{"];for(var G in y){if(g=y[G],isNaN(parseInt(G,10))?P="'"+G+"'":(G=parseInt(G,10),P=(P=h(G).slice(2)).slice(0,-1)+r[P.slice(-1)]),typeof g=="number")g<0?(C=h(g).slice(3),R="-"):(C=h(g).slice(2),R=""),C=R+C.slice(0,-1)+r[C.slice(-1)];else{if(Se(g)!=="object")throw new Error("Don't know what to do with value type "+Se(g)+".");C=s(g)}L.push(P+C)}return L.push("}"),L.join("")},f=t.__fontmetrics__.uncompress=function(y){if(typeof y!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,P,C,R,L={},G=1,V=L,M=[],rt="",vt="",ct=y.length-1,$=1;$<ct;$+=1)(R=y[$])=="'"?g?(C=g.join(""),g=void 0):g=[]:g?g.push(R):R=="{"?(M.push([V,C]),V={},C=void 0):R=="}"?((P=M.pop())[0][P[1]]=V,C=void 0,V=P[0]):R=="-"?G=-1:C===void 0?i.hasOwnProperty(R)?(rt+=i[R],C=parseInt(rt,16)*G,G=1,rt=""):rt+=R:i.hasOwnProperty(R)?(vt+=i[R],V[C]=parseInt(vt,16)*G,G=1,C=void 0,vt=""):vt+=R;return L},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},p={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},m={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'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}
1415r{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":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
141dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'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:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
141dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
141dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'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}
141fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":f("{'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":f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
141dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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(y){var g=y.font,P=m.Unicode[g.postScriptName];P&&(g.metadata.Unicode={},g.metadata.Unicode.widths=P.widths,g.metadata.Unicode.kerning=P.kerning);var C=p.Unicode[g.postScriptName];C&&(g.metadata.Unicode.encoding=C,g.encoding=C.codePages[0])}])}(Dt.API),function(t){var e=function(n){for(var i=n.length,r=new Uint8Array(i),a=0;a<i;a++)r[a]=n.charCodeAt(a);return r};t.API.events.push(["addFont",function(n){var i=void 0,r=n.font,a=n.instance;if(!r.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(i=a.existsFileInVFS(r.postScriptName)===!1?a.loadFile(r.postScriptName):a.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(h,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(Ss(s)),h.metadata=t.API.TTFFont.open(s),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(r,i)}}])}(Dt),Dt.API.addSvgAsImage=function(t,e,n,i,r,a,h,s){if(isNaN(e)||isNaN(n))throw ke.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(r))throw ke.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=i,f.height=r;var u=f.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,f.width,f.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},m=this;return(Yt.canvg?Promise.resolve(Yt.canvg):vl(()=>import("./index.es-DY-cJQTg.js"),__vite__mapDeps([0,1]))).catch(function(y){return Promise.reject(new Error("Could not load canvg: "+y))}).then(function(y){return y.default?y.default:y}).then(function(y){return y.fromString(u,t,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(y){return y.render(p)}).then(function(){m.addImage(f.toDataURL("image/jpeg",1),e,n,i,r,h,s)})},Dt.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var r=0;r<this.internal.pages[i].length;r++)this.internal.pages[i][r]=this.internal.pages[i][r].replace(e,n);return this},Dt.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var i,r,a,h={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(h),f=[],u=0,p=0,m=0;function y(P,C){var R,L=!1;for(R=0;R<P.length;R+=1)P[R]===C&&(L=!0);return L}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var g=s.length;for(m=0;m<g;m+=1)n[s[m]].value=n[s[m]].defaultValue,n[s[m]].explicitSet=!1}if(Se(t)==="object"){for(r in t)if(a=t[r],y(s,r)&&a!==void 0){if(n[r].type==="boolean"&&typeof a=="boolean")n[r].value=a;else if(n[r].type==="name"&&y(n[r].valueSet,a))n[r].value=a;else if(n[r].type==="integer"&&Number.isInteger(a))n[r].value=a;else if(n[r].type==="array"){for(u=0;
vendor: 4,389 bytes, lines 141-169
141u<a.length;u+=1)if(i=!0,a[u].length===1&&typeof a[u][0]=="number")f.push(String(a[u]-1));else if(a[u].length>1){for(p=0;p<a[u].length;p+=1)typeof a[u][p]!="number"&&(i=!1);i===!0&&f.push([a[u][0]-1,a[u][1]-1].join(" "))}n[r].value="["+f.join(" ")+"]"}else n[r].value=n[r].defaultValue;n[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var P,C=[];for(P in n)n[P].explicitSet===!0&&(n[P].type==="name"?C.push("/"+P+" /"+n[P].value):C.push("/"+P+" "+n[P].value));C.length!==0&&this.internal.write(`/ViewerPreferences
142<<
143`+C.join(`
144`)+`
145>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Dt.API.addMetadata=function(t,e){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceUri:e??"http://jspdf.default.namespaceuri/",rawXml:typeof e=="boolean"&&e},this.internal.events.subscribe("putCatalog",j5),this.internal.events.subscribe("postPutResources",D5)),this},function(t){var e=t.API,n=e.pdfEscape16=function(a,h){for(var s,f=h.metadata.Unicode.widths,u=["","0","00","000","0000"],p=[""],m=0,y=a.length;m<y;++m){if(s=h.metadata.characterToGlyph(a.charCodeAt(m)),h.metadata.glyIdsUsed.push(s),h.metadata.toUnicode[s]=a.charCodeAt(m),f.indexOf(s)==-1&&(f.push(s),f.push([parseInt(h.metadata.widthOfGlyph(s),10)])),s=="0")return p.join("");s=s.toString(16),p.push(u[4-s.length],s)}return p.join("")},i=function(a){var h,s,f,u,p,m,y;for(p=`/CIDInit /ProcSet findresource begin
14612 dict begin
147begincmap
148/CIDSystemInfo <<
149  /Registry (Adobe)
150  /Ordering (UCS)
151  /Supplement 0
152>> def
153/CMapName /Adobe-Identity-UCS def
154/CMapType 2 def
1551 begincodespacerange
156<0000><ffff>
157endcodespacerange`,f=[],m=0,y=(s=Object.keys(a).sort(function(g,P){return g-P})).length;m<y;m++)h=s[m],f.length>=100&&(p+=`
158`+f.length+` beginbfchar
159`+f.join(`
160`)+`
161endbfchar`,f=[]),a[h]!==void 0&&a[h]!==null&&typeof a[h].toString=="function"&&(u=("0000"+a[h].toString(16)).slice(-4),h=("0000"+(+h).toString(16)).slice(-4),f.push("<"+h+"><"+u+">"));return f.length&&(p+=`
162`+f.length+` beginbfchar
163`+f.join(`
164`)+`
165endbfchar
166`),p+`endcmap
167CMapName currentdict /CMap defineresource pop
168end
169end`};e.events.push(["putFont",function(a){(function(h){var s=h.font,f=h.out,u=h.newObject,p=h.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="Identity-H"){for(var m=s.metadata.Unicode.widths,y=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),g="",P=0;P<y.length;P++)g+=String.fromCharCode(y[P]);var C=u();p({data:g,addLength1:!0,objectId:C}),f("endobj");var R=u();p({data:i(s.metadata.toUnicode),addLength1:!0,objectId:R}),f("endobj");var L=u();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+ya(s.fontName)),f("/FontFile2 "+C+" 0 R"),f("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),f("/Flags "+s.metadata.flags),f("/StemV "+s.metadata.stemV),f("/ItalicAngle "+s.metadata.italicAngle),f("/Ascent "+s.metadata.ascender),f("/Descent "+s.metadata.decender),f("/CapHeight "+s.metadata.capHeight),f(">>"),f("endobj");var G=u();f("<<"),f("/Type /Font"),f("/BaseFont /"+ya(s.fontName)),f("/FontDescriptor "+L+" 0 R"),f("/W "+t.API.PDFObject.convert(m)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+s.encoding+")"),f(">>"),f(">>"),f("endobj"),s.objectNumber=u(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+R+" 0 R"),f("/BaseFont /"+ya(s.fontName)),f("/Encoding /"+s.encoding),f("/DescendantFonts ["+G+" 0 R]"),f(">>"),f("endobj"),s.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(h){var s=h.font,f=h.out,u=h.newObject,p=h.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var m=s.metadata.rawData,y="",g=0;g<m.length;g++)y+=String.fromCharCode(m[g]);var P=u();p({data:y,addLength1:!0,objectId:P}),f("endobj");var C=u();p({data:i(s.metadata.toUnicode),addLength1:!0,objectId:C}),f("endobj");var R=u();f("<<"),f("/Descent "+s.metadata.decender),f("/CapHeight "+s.metadata.capHeight),f("/StemV "+s.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+P+" 0 R"),f("/Flags 96"),f("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),f("/FontName /"+ya(s.fontName)),f("/ItalicAngle "+s.metadata.italicAngle),f("/Ascent "+s.metadata.ascender),f(">>
169"),f("endobj"),s.objectNumber=u();for(var L=0;L<s.metadata.hmtx.widths.length;L++)s.metadata.hmtx.widths[L]=parseInt(s.metadata.hmtx.widths[L]*(1e3/s.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+C+" 0 R/BaseFont/"+ya(s.fontName)+"/FontDescriptor "+R+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),f("endobj"),s.isAlreadyPutted=!0}})(a)}]);var r=function(a){var h,s=a.text||"",f=a.x,u=a.y,p=a.options||{},m=a.mutex||{},y=m.pdfEscape,g=m.activeFontKey,P=m.fonts,C=g,R="",L=0,G="",V=P[C].encoding;if(P[C].encoding!=="Identity-H")return{text:s,x:f,y:u,options:p,mutex:m};for(G=s,C=g,Array.isArray(s)&&(G=s[0]),L=0;L<G.length;L+=1)P[C].metadata.hasOwnProperty("cmap")&&(h=P[C].metadata.cmap.unicode.codeMap[G[L].charCodeAt(0)]),h||G[L].charCodeAt(0)<256&&P[C].metadata.hasOwnProperty("Unicode")?R+=G[L]:R+="";var M="";return parseInt(C.slice(1))<14||V==="WinAnsiEncoding"?M=y(R,C).split("").map(function(rt){return rt.charCodeAt(0).toString(16)}).join(""):V==="Identity-H"&&(M=n(R,P[C])),m.isHex=!0,{text:M,x:f,y:u,options:p,mutex:m}};e.events.push(["postProcessText",function(a){var h=a.text||"",s=[],f={text:h,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(h)){var u=0;for(u=0;u<h.length;u+=1)Array.isArray(h[u])&&h[u].length===3?s.push([r(Object.assign({},f,{text:h[u][0]})).text,h[u][1],h[u][2]]):s.push(r(Object.assign({},f,{text:h[u]})).text);a.text=s}else a.text=r(Object.assign({},f,{text:h})).text}])}(Dt),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0},t.addFileToVFS=function(n,i){return e.call(this),this.internal.vFS[n]=i,this},t.getFileFromVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Dt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(i){var r,a,h,s,f,u,p,m=e,y=[[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]],g=[[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]],P={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},C={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},R=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],L=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=!1,V=0;this.__bidiEngine__={};var M=function(N){var O=N.charCodeAt(),U=O>>8,z=C[U];return z!==void 0?m[256*z+(255&O)]:U===252||U===253?"AL":L.test(U)?"L":U===8?"R":"N"},rt=function(N){for(var O,U=0;U<N.length;U++){if((O=M(N.charAt(U)))==="L")return!1;if(O==="R")return!0}return!1},vt=function(N,O,U,z){var it,st,ht,nt,ut=O[z];switch(ut){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":G=!1;break;case"N":case"AN":break;case"EN":G&&(ut="AN");break;case"AL":G=!0,ut="R";break;case"WS":case"BN":ut="N";break;case"CS":z<1||z+1>=O.length||(it=U[z-1])!=="EN"&&it!=="AN"||(st=O[z+1])!=="EN"&&st!=="AN"?ut="N":G&&(st="AN"),ut=st===it?st:"N";break;case"ES":ut=(it=z>0?U[z-1]:"B")==="EN"&&z+1<O.length&&O[z+1]==="EN"?"EN":"N";break;case"ET":if(z>0&&U[z-1]==="EN"){ut="EN";break}if(G){ut="N";break}for(ht=z+1,nt=O.length;ht<nt&&O[ht]==="ET";)ht++;ut=ht<nt&&O[ht]==="EN"?"EN":"N";break;case"NSM":if(h&&!s){for(nt=O.length,ht=z+1;ht<nt&&O[ht]==="NSM";)ht++;
vendor: 34,535 bytes, lines 169-170
169if(ht<nt){var At=N[z],wt=At>=1425&&At<=2303||At===64286;if(it=O[ht],wt&&(it==="R"||it==="AL")){ut="R";break}}}ut=z<1||(it=O[z-1])==="B"?"N":U[z-1];break;case"B":G=!1,r=!0,ut=V;break;case"S":a=!0,ut="N"}return ut},ct=function(N,O,U){var z=N.split("");return U&&$(z,U,{hiLevel:V}),z.reverse(),O&&O.reverse(),z.join("")},$=function(N,O,U){var z,it,st,ht,nt,ut=-1,At=N.length,wt=0,A=[],D=V?g:y,B=[];for(G=!1,r=!1,a=!1,it=0;it<At;it++)B[it]=M(N[it]);for(st=0;st<At;st++){if(nt=wt,A[st]=vt(N,B,A,st),z=240&(wt=D[nt][P[A[st]]]),wt&=15,O[st]=ht=D[wt][5],z>0)if(z===16){for(it=ut;it<st;it++)O[it]=1;ut=-1}else ut=-1;if(D[wt][6])ut===-1&&(ut=st);else if(ut>-1){for(it=ut;it<st;it++)O[it]=ht;ut=-1}B[st]==="B"&&(O[st]=0),U.hiLevel|=ht}a&&function(H,Y,X){for(var at=0;at<X;at++)if(H[at]==="S"){Y[at]=V;for(var ot=at-1;ot>=0&&H[ot]==="WS";ot--)Y[ot]=V}}(B,O,At)},j=function(N,O,U,z,it){if(!(it.hiLevel<N)){if(N===1&&V===1&&!r)return O.reverse(),void(U&&U.reverse());for(var st,ht,nt,ut,At=O.length,wt=0;wt<At;){if(z[wt]>=N){for(nt=wt+1;nt<At&&z[nt]>=N;)nt++;for(ut=wt,ht=nt-1;ut<ht;ut++,ht--)st=O[ut],O[ut]=O[ht],O[ht]=st,U&&(st=U[ut],U[ut]=U[ht],U[ht]=st);wt=nt}wt++}}},tt=function(N,O,U){var z=N.split(""),it={hiLevel:V};return U||(U=[]),$(z,U,it),function(st,ht,nt){if(nt.hiLevel!==0&&p)for(var ut,At=0;At<st.length;At++)ht[At]===1&&(ut=R.indexOf(st[At]))>=0&&(st[At]=R[ut+1])}(z,U,it),j(2,z,O,U,it),j(1,z,O,U,it),z.join("")};return this.__bidiEngine__.doBidiReorder=function(N,O,U){if(function(it,st){if(st)for(var ht=0;ht<it.length;ht++)st[ht]=ht;s===void 0&&(s=rt(it)),u===void 0&&(u=rt(it))}(N,O),h||!f||u)if(h&&f&&s^u)V=s?1:0,N=ct(N,O,U);else if(!h&&f&&u)V=s?1:0,N=tt(N,O,U),N=ct(N,O);else if(!h||s||f||u){if(h&&!f&&s^u)N=ct(N,O),s?(V=0,N=tt(N,O,U)):(V=1,N=tt(N,O,U),N=ct(N,O));else if(h&&s&&!f&&u)V=1,N=tt(N,O,U),N=ct(N,O);else if(!h&&!f&&s^u){var z=p;s?(V=1,N=tt(N,O,U),V=0,p=!1,N=tt(N,O,U),p=z):(V=0,N=tt(N,O,U),N=ct(N,O),V=1,p=!1,N=tt(N,O,U),p=z,N=ct(N,O))}}else V=0,N=tt(N,O,U);else V=s?1:0,N=tt(N,O,U);return N},this.__bidiEngine__.setOptions=function(N){N&&(h=N.isInputVisual,f=N.isOutputVisual,s=N.isInputRtl,u=N.isOutputRtl,p=N.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var e=["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"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(i){var r=i.text;i.x,i.y;var a=i.options||{};i.mutex,a.lang;var h=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,n.setOptions(a),Object.prototype.toString.call(r)==="[object Array]"){var s=0;for(h=[],s=0;s<r.length;s+=1)Object.prototype.toString.call(r[s])==="[object Array]"?h.push([n.doBidiReorder(r[s][0]),r[s][1],r[s][2]]):h.push([n.doBidiReorder(r[s])]);i.text=h}else i.text=n.doBidiReorder(r);n.setOptions({isInputVisual:!0})}])}(Dt),Dt.API.TTFFont=function(){function t(e){var n;if(this.rawData=e,n=this.contents=new Ar(e),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new X5(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new B5(this.contents),this.head=new q5(this),this.name=new G5(this),this.cmap=new Yc(this),this.toUnicode={},this.hhea=new z5(this),this.maxp=new V5(this),this.hmtx=new Z5(this),this.post=new H5(this),this.os2=new U5(this),this.loca=new J5(this),this.glyf=new Y5(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 e,n,i,r,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var h,s,f,u;for(u=[],h=0,s=(f=this.bbox).length;h<s;h++)e=f[h],u.push(Math.round(e*this.scaleFactor));return u}.call(this),this.stemV=0,this.post.exists?(i=255&(r=this.post.italic_angle),32768&(n=r>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+i)):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=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===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(e){var n;return((n=this.cmap.unicode)!=null?n.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*n},t.prototype.widthOfString=function(e,n,i){var r,a,h,s;for(h=0,a=0,s=(e=""+e).length;0<=s?a<s:a>s;a=0<=s?++a:--a)r=e.charCodeAt(a),h+=this.widthOfGlyph(this.characterToGlyph(r))+i*(1e3/n)||0;return h*(n/1e3)},t.prototype.lineHeight=function(e,n){var i;return n==null&&(n=!1),i=n?this.lineGap:0,(this.ascender+i-this.decender)/1e3*e},t}();var fi,Ar=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var n,i;for(i=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)i[n]=String.fromCharCode(this.readByte());return i.join("")},t.prototype.writeString=function(e){var n,i,r;for(r=[],n=0,i=e.length;0<=i?n<i:n>i;n=0<=i?++n:--n)r.push(this.writeByte(e.charCodeAt(n)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,n,i,r,a,h,s,f;return e=this.readByte(),n=this.readByte(),i=this.readByte(),r=this.readByte(),a=this.readByte(),h=this.readByte(),s=this.readByte(),f=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^n)+1099511627776*(255^i)+4294967296*(255^r)+16777216*(255^a)+65536*(255^h)+256*(255^s)+(255^f)+1):72057594037927940*e+281474976710656*n+1099511627776*i+4294967296*r+16777216*a+65536*h+256*s+f},t.prototype.writeLongLong=function(e){var n,i;return n=Math.floor(e/4294967296),i=4294967295&e,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var n,i;for(n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push(this.readByte());return n},t.prototype.write=function(e){var n,i,r,a;for(a=[],i=0,r=e.length;i<r;i++)n=e[i],a.push(this.writeByte(n));return a},t}(),B5=function(){var t;function e(n){var i,r,a;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},r=0,a=this.tableCount;0<=a?r<a:r>a;r=0<=a?++r:--r)i={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[i.tag]=i}return e.prototype.encode=function(n){var i,r,a,h,s,f,u,p,m,y,g,P,C;for(C in g=Object.keys(n).length,f=Math.log(2),m=16*Math.floor(Math.log(g)/f),h=Math.floor(m/f),p=16*g-m,(r=new Ar).writeInt(this.scalarType),r.writeShort(g),r.writeShort(m),r.writeShort(h),r.writeShort(p),a=16*g,u=r.pos+a,s=null,P=[],n)for(y=n[C],r.writeString(C),r.writeInt(t(y)),r.writeInt(u),r.writeInt(y.length),P=P.concat(y),C==="head"&&(s=u),u+=y.length;u%4;)P.push(0),u++;return r.write(P),i=2981146554-t(r.data),r.pos=s+8,r.writeUInt32(i),r.data},t=function(n){var i,r,a,h;for(n=$c.call(n);n.length%4;)n.push(0);for(a=new Ar(n),r=0,i=0,h=n.length;i<h;i=i+=4)r+=a.readUInt32();return 4294967295&r},e}(),M5={}.hasOwnProperty,Li=function(t,e){for(var n in e)M5.call(e,n)&&(t[n]=e[n]);function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};fi=function(){function t(e){var n;this.file=e,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.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 q5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var n;return(n=new Ar).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(e),n.writeShort(this.glyphDataFormat),n.data},t}(),Ou=function(){function t(e,n){var i,r,a,h,s,f,u,p,m,y,g,P,C,R,L,G,V;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=n+e.readInt(),m=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.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(f=0;f<256;++f)this.codeMap[f]=e.readByte();break;case 4:for(g=e.readUInt16(),y=g/2,e.pos+=6,a=function(){var M,rt;for(rt=[],f=M=0;0<=y?M<y:M>y;f=0<=y?++M:--M)rt.push(e.readUInt16());return rt}(),e.pos+=2,C=function(){var M,rt;for(rt=[],f=M=0;0<=y?M<y:M>y;f=0<=y?++M:--M)rt.push(e.readUInt16());return rt}(),u=function(){var M,rt;for(rt=[],f=M=0;0<=y?M<y:M>y;f=0<=y?++M:--M)rt.push(e.readUInt16());return rt}(),p=function(){var M,rt;for(rt=[],f=M=0;0<=y?M<y:M>y;f=0<=y?++M:--M)rt.push(e.readUInt16());return rt}(),r=(this.length-e.pos+this.offset)/2,s=function(){var M,rt;for(rt=[],f=M=0;0<=r?M<r:M>r;f=0<=r?++M:--M)rt.push(e.readUInt16());return rt}(),f=L=0,V=a.length;L<V;f=++L)for(R=a[f],i=G=P=C[f];P<=R?G<=R:G>=R;i=P<=R?++G:--G)p[f]===0?h=i+u[f]:(h=s[p[f]/2+(i-P)-(y-f)]||0)!==0&&(h+=u[f]),this.codeMap[i]=65535&h}e.pos=m}return t.encode=function(e,n){var i,r,a,h,s,f,u,p,m,y,g,P,C,R,L,G,V,M,rt,vt,ct,$,j,tt,N,O,U,z,it,st,ht,nt,ut,At,wt,A,D,B,H,Y,X,at,ot,gt,xt,kt;switch(z=new Ar,h=Object.keys(e).sort(function(Lt,Mt){return Lt-Mt}),n){case"macroman":for(C=0,R=function(){var Lt=[];for(P=0;P<256;++P)Lt.push(0);return Lt}(),G={0:0},a={},it=0,ut=h.length;it<ut;it++)G[ot=e[r=h[it]]]==null&&(G[ot]=++C),a[r]={old:e[r],new:G[e[r]]},R[r]=G[e[r]];return z.writeUInt16(1),z.writeUInt16(0),z.writeUInt32(12),z.writeUInt16(0),z.writeUInt16(262),z.writeUInt16(0),z.write(R),{charMap:a,subtable:z.data,maxGlyphID:C+1};case"unicode":for(O=[],m=[],V=0,G={},i={},L=u=null,st=0,At=h.length;st<At;st++)G[rt=e[r=h[st]]]==null&&(G[rt]=++V),i[r]={old:rt,new:G[rt]},s=G[rt]-r,L!=null&&s===u||(L&&m.push(L),O.push(r),u=s),L=r;for(L&&m.push(L),m.push(65535),O.push(65535),tt=2*(j=O.length),$=2*Math.pow(Math.log(j)/Math.LN2,2),y=Math.log($/2)/Math.LN2,ct=2*j-$,f=[],vt=[],g=[],P=ht=0,wt=O.length;ht<wt;P=++ht){if(N=O[P],p=m[P],N===65535){f.push(0),vt.push(0);break}if(N-(U=i[N].new)>=32768)for(f.push(0),vt.push(2*(g.length+j-P)),r=nt=N;N<=p?nt<=p:nt>=p;r=N<=p?++nt:--nt)g.push(i[r].new);else f.push(U-N),vt.push(0)}for(z.writeUInt16(3),z.writeUInt16(1),z.writeUInt32(12),z.writeUInt16(4),z.writeUInt16(16+8*j+2*g.length),z.writeUInt16(0),z.writeUInt16(tt),z.writeUInt16($),z.writeUInt16(y),z.writeUInt16(ct),X=0,A=m.length;X<A;X++)r=m[X],z.writeUInt16(r);for(z.writeUInt16(0),at=0,D=O.length;at<D;at++)r=O[at],z.writeUInt16(r);for(gt=0,B=f.length;gt<B;gt++)s=f[gt],z.writeUInt16(s);for(xt=0,H=vt.length;xt<H;xt++)M=vt[xt],z.writeUInt16(M);for(kt=0,Y=g.length;kt<Y;kt++)C=g[kt],z.writeUInt16(C);return{charMap:i,subtable:z.data,maxGlyphID:V+1}}},t}(),Yc=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="cmap",t.prototype.parse=function(e){var n,i,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)n=new Ou(e,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(e,n){var i,r;return n==null&&(n="macroman"),i=Ou.encode(e,n),(r=new Ar).writeUInt16(0),r.writeUInt16(1),i.table=r.data.concat(i.subtable),i},t}(),z5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),U5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var n,i;for(i=[],n=0;n<10;++n)i.push(e.readByte());return i}(),this.charRange=function(){var n,i;for(i=[],n=0;n<4;++n)i.push(e.readInt());return i}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(e.readInt());return i}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),H5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="post",t.prototype.parse=function(e){var n,i,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(i=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=i?a<i:a>i;a=0<=i?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)n=e.readByte(),r.push(this.names.push(e.readString(n)));return r;case 151552:return i=e.readUInt16(),this.offsets=e.read(i);case 262144:return this.map=function(){var h,s,f;for(f=[],a=h=0,s=this.file.maxp.numGlyphs;0<=s?h<s:h>s;a=0<=s?++h:--h)f.push(e.readUInt32());return f}.call(this)}},t}(),W5=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},G5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="name",t.prototype.parse=function(e){var n,i,r,a,h,s,f,u,p,m,y;for(e.pos=this.offset,e.readShort(),n=e.readShort(),s=e.readShort(),i=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)i.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+s+e.readShort()});for(f={},a=p=0,m=i.length;p<m;a=++p)r=i[a],e.pos=r.offset,u=e.readString(r.length),h=new W5(u,r),f[y=r.nameID]==null&&(f[y]=[]),f[r.nameID].push(h);this.strings=f,this.copyright=f[0],this.fontFamily=f[1],this.fontSubfamily=f[2],this.uniqueSubfamily=f[3],this.fontName=f[4],this.version=f[5];try{this.postscriptName=f[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=f[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=f[7],this.manufacturer=f[8],this.designer=f[9],this.description=f[10],this.vendorUrl=f[11],this.designerUrl=f[12],this.license=f[13],this.licenseUrl=f[14],this.preferredFamily=f[15],this.preferredSubfamily=f[17],this.compatibleFull=f[18],this.sampleText=f[19]},t}(),V5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),Z5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="hmtx",t.prototype.parse=function(e){var n,i,r,a,h,s,f;for(e.pos=this.offset,this.metrics=[],n=0,s=this.file.hhea.numberOfMetrics;0<=s?n<s:n>s;n=0<=s?++n:--n)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,p;for(p=[],n=u=0;0<=r?u<r:u>r;n=0<=r?++u:--u)p.push(e.readInt16());return p}(),this.widths=function(){var u,p,m,y;for(y=[],u=0,p=(m=this.metrics).length;u<p;u++)a=m[u],y.push(a.advance);return y}.call(this),i=this.widths[this.widths.length-1],f=[],n=h=0;0<=r?h<r:h>r;n=0<=r?++h:--h)f.push(this.widths.push(i));return f},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),$c=[].slice,Y5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var n,i,r,a,h,s,f,u,p,m;return e in this.cache?this.cache[e]:(a=this.file.loca,n=this.file.contents,i=a.indexOf(e),(r=a.lengthOf(e))===0?this.cache[e]=null:(n.pos=this.offset+i,h=(s=new Ar(n.read(r))).readShort(),u=s.readShort(),m=s.readShort(),f=s.readShort(),p=s.readShort(),this.cache[e]=h===-1?new K5(s,u,m,f,p):new $5(s,h,u,m,f,p),this.cache[e]))},t.prototype.encode=function(e,n,i){var r,a,h,s,f;for(h=[],a=[],s=0,f=n.length;s<f;s++)r=e[n[s]],a.push(h.length),r&&(h=h.concat(r.encode(i)));return a.push(h.length),{table:h,offsets:a}},t}(),$5=function(){function t(e,n,i,r,a,h){this.raw=e,this.numberOfContours=n,this.xMin=i,this.yMin=r,this.xMax=a,this.yMax=h,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),K5=function(){function t(e,n,i,r,a){var h,s;for(this.raw=e,this.xMin=n,this.yMin=i,this.xMax=r,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],h=this.raw;s=h.readShort(),this.glyphOffsets.push(h.pos),this.glyphIDs.push(h.readUInt16()),32&s;)h.pos+=1&s?4:2,128&s?h.pos+=8:64&s?h.pos+=4:8&s&&(h.pos+=2)}return t.prototype.encode=function(){var e,n,i;for(n=new Ar($c.call(this.raw.data)),e=0,i=this.glyphIDs.length;e<i;++e)n.pos=this.glyphOffsets[e];return n.data},t}(),J5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,fi),t.prototype.tag="loca",t.prototype.parse=function(e){var n,i;return e.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?function(){var r,a;for(a=[],i=0,r=this.length;i<r;i+=2)a.push(2*e.readUInt16());return a}.call(this):function(){var r,a;for(a=[],i=0,r=this.length;i<r;i+=4)a.push(e.readUInt32());return a}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,n){for(var i=new Uint32Array(this.offsets.length),r=0,a=0,h=0;h<i.length;++h)if(i[h]=r,a<n.length&&n[a]==h){++a,i[h]=r;var s=this.offsets[h],f=this.offsets[h+1]-s;f>0&&(r+=f)}for(var u=new Array(4*i.length),p=0;p<i.length;++p)u[4*p+3]=255&i[p],u[4*p+2]=(65280&i[p])>>8,u[4*p+1]=(16711680&i[p])>>16,u[4*p]=(4278190080&i[p])>>24;return u},t}(),X5=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,n,i,r,a;for(n in r=this.font.cmap.tables[0].codeMap,e={},a=this.subset)i=a[n],e[n]=r[i];return e},t.prototype.glyphsFor=function(e){var n,i,r,a,h,s,f;for(r={},h=0,s=e.length;h<s;h++)r[a=e[h]]=this.font.glyf.glyphFor(a);for(a in n=[],r)(i=r[a])!=null&&i.compound&&n.push.apply(n,i.glyphIDs);if(n.length>0)for(a in f=this.glyphsFor(n))i=f[a],r[a]=i;return r},t.prototype.encode=function(e,n){var i,r,a,h,s,f,u,p,m,y,g,P,C,R,L;for(r in i=Yc.encode(this.generateCmap(),"unicode"),h=this.glyphsFor(e),g={0:0},L=i.charMap)g[(f=L[r]).old]=f.new;for(P in y=i.maxGlyphID,h)P in g||(g[P]=y++);return p=function(G){var V,M;for(V in M={},G)M[G[V]]=V;return M}(g),m=Object.keys(p).sort(function(G,V){return G-V}),C=function(){var G,V,M;for(M=[],G=0,V=m.length;G<V;G++)s=m[G],M.push(p[s]);return M}(),a=this.font.glyf.encode(h,C,g),u=this.font.loca.encode(a.offsets,C),R={cmap:this.font.cmap.raw(),glyf:a.table,loca:u,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(n)},this.font.os2.exists&&(R["OS/2"]=this.font.os2.raw()),this.font.directory.encode(R)},t}();Dt.API.PDFObject=function(){var t;function e(){}return t=function(n,i){return(Array(i+1).join("0")+n).slice(-i)},e.convert=function(n){var i,r,a,h;if(Array.isArray(n))return"["+function(){var s,f,u;for(u=[],s=0,f=n.length;s<f;s++)i=n[s],u.push(e.convert(i));return u}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n?.isString)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(r in a=["<<"],n)h=n[r],a.push("/"+r+" "+e.convert(h));return a.push(">>"),a.join(`
170`)}return""+n},e}();const Bp=Object.freeze(Object.defineProperty({__proto__:null,AcroFormAppearance:Ct,AcroFormButton:an,AcroFormCheckBox:go,AcroFormChoiceField:Zr,AcroFormComboBox:$r,AcroFormEditBox:co,AcroFormListBox:Yr,AcroFormPasswordField:vo,AcroFormPushButton:po,AcroFormRadioButton:Kr,AcroFormTextField:xr,GState:Lo,ShadingPattern:vr,TilingPattern:Vr,default:Dt,jsPDF:Dt},Symbol.toStringTag,{value:"Module"}));function Kc(t,e,n,i,r){i=i||{};var a=1.15,h=r.internal.scaleFactor,s=r.internal.getFontSize()/h,f=r.getLineHeightFactor?r.getLineHeightFactor():a,u=s*f,p=/\r\n|\r|\n/g,m="",y=1;
170if((i.valign==="middle"||i.valign==="bottom"||i.halign==="center"||i.halign==="right")&&(m=typeof t=="string"?t.split(p):t,y=m.length||1),n+=s*(2-a),i.valign==="middle"?n-=y/2*u:i.valign==="bottom"&&(n-=y*u),i.halign==="center"||i.halign==="right"){var g=s;if(i.halign==="center"&&(g*=.5),m&&y>=1){for(var P=0;P<m.length;P++)r.text(m[P],e-r.getStringUnitWidth(m[P])*g,n),n+=u;return r}e-=r.getStringUnitWidth(t)*g}return i.halign==="justify"?r.text(t,e,n,{maxWidth:i.maxWidth||100,align:"justify"}):r.text(t,e,n),r}var Tu={},xa=function(){function t(e){this.jsPDFDocument=e,this.userStyles={textColor:e.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:e.internal.getFontSize(),fontStyle:e.internal.getFont().fontStyle,font:e.internal.getFont().fontName,lineWidth:e.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:e.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return t.setDefaults=function(e,n){n===void 0&&(n=null),n?n.__autoTableDocumentDefaults=e:Tu=e},t.unifyColor=function(e){return Array.isArray(e)?e:typeof e=="number"?[e,e,e]:typeof e=="string"?[e]:null},t.prototype.applyStyles=function(e,n){var i,r,a;n===void 0&&(n=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var h=this.jsPDFDocument.internal.getFont(),s=h.fontStyle,f=h.fontName;if(e.font&&(f=e.font),e.fontStyle){s=e.fontStyle;var u=this.getFontList()[f];u&&u.indexOf(s)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(u[0]),s=u[0])}if(this.jsPDFDocument.setFont(f,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var p=t.unifyColor(e.fillColor);p&&(i=this.jsPDFDocument).setFillColor.apply(i,p),p=t.unifyColor(e.textColor),p&&(r=this.jsPDFDocument).setTextColor.apply(r,p),p=t.unifyColor(e.lineColor),p&&(a=this.jsPDFDocument).setDrawColor.apply(a,p),typeof e.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(e,n,i){return this.jsPDFDocument.splitTextToSize(e,n,i)},t.prototype.rect=function(e,n,i,r,a){return this.jsPDFDocument.rect(e,n,i,r,a)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(e){return this.jsPDFDocument.getTextWidth(e)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(e){this.jsPDFDocument.setPage(e)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return Tu||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var e=this.jsPDFDocument.internal.pageSize;return e.width==null&&(e={width:e.getWidth(),height:e.getHeight()}),e},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.getLineHeightFactor=function(){var e=this.jsPDFDocument;return e.getLineHeightFactor?e.getLineHeightFactor():1.15},t.prototype.getLineHeight=function(e){return e/this.scaleFactor()*this.getLineHeightFactor()},t.prototype.pageNumber=function(){var e=this.jsPDFDocument.internal.getCurrentPageInfo();return e?e.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t}(),uh=function(t,e){return uh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},uh(t,e)};function Jc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");uh(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Xc=function(t){Jc(e,t);function e(n){var i=t.call(this)||this;return i._element=n,i}return e}(Array);function Q5(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function tp(t){var e={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return e[t]}function Es(t,e,n){n.applyStyles(e,!0);var i=Array.isArray(t)?t:[t],r=i.map(function(a){return n.getTextWidth(a)}).reduce(function(a,h){return Math.max(a,h)},0);return r}function Qc(t,e,n,i){var r=e.settings.tableLineWidth,a=e.settings.tableLineColor;t.applyStyles({lineWidth:r,lineColor:a});var h=t1(r,!1);h&&t.rect(n.x,n.y,e.getWidth(t.pageSize().width),i.y-n.y,h)}function t1(t,e){var n=t>0,i=e||e===0;return n&&i?"DF":n?"S":i?"F":null}function js(t,e){var n,i,r,a;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(t.length===3)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(t.length===2)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t.length===1?t=t[0]:t=e}return typeof t=="object"?(typeof t.vertical=="number"&&(t.top=t.vertical,t.bottom=t.vertical),typeof t.horizontal=="number"&&(t.right=t.horizontal,t.left=t.horizontal),{left:(n=t.left)!==null&&n!==void 0?n:e,top:(i=t.top)!==null&&i!==void 0?i:e,right:(r=t.right)!==null&&r!==void 0?r:e,bottom:(a=t.bottom)!==null&&a!==void 0?a:e}):(typeof t!="number"&&(t=e),{top:t,right:t,bottom:t,left:t})}
170function e1(t,e){var n=js(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)}function ep(t,e,n,i,r){var a={},h=1.3333333333333333,s=Wl(e,function(V){return r.getComputedStyle(V).backgroundColor});s!=null&&(a.fillColor=s);var f=Wl(e,function(V){return r.getComputedStyle(V).color});f!=null&&(a.textColor=f);var u=ip(i,n);u&&(a.cellPadding=u);var p="borderTopColor",m=h*n,y=i.borderTopWidth;if(i.borderBottomWidth===y&&i.borderRightWidth===y&&i.borderLeftWidth===y){var g=(parseFloat(y)||0)/m;g&&(a.lineWidth=g)}else a.lineWidth={top:(parseFloat(i.borderTopWidth)||0)/m,right:(parseFloat(i.borderRightWidth)||0)/m,bottom:(parseFloat(i.borderBottomWidth)||0)/m,left:(parseFloat(i.borderLeftWidth)||0)/m},a.lineWidth.top||(a.lineWidth.right?p="borderRightColor":a.lineWidth.bottom?p="borderBottomColor":a.lineWidth.left&&(p="borderLeftColor"));var P=Wl(e,function(V){return r.getComputedStyle(V)[p]});P!=null&&(a.lineColor=P);var C=["left","right","center","justify"];C.indexOf(i.textAlign)!==-1&&(a.halign=i.textAlign),C=["middle","bottom","top"],C.indexOf(i.verticalAlign)!==-1&&(a.valign=i.verticalAlign);var R=parseInt(i.fontSize||"");isNaN(R)||(a.fontSize=R/h);var L=np(i);L&&(a.fontStyle=L);var G=(i.fontFamily||"").toLowerCase();return t.indexOf(G)!==-1&&(a.font=G),a}function np(t){var e="";return(t.fontWeight==="bold"||t.fontWeight==="bolder"||parseInt(t.fontWeight)>=700)&&(e="bold"),(t.fontStyle==="italic"||t.fontStyle==="oblique")&&(e+="italic"),e}function Wl(t,e){var n=n1(t,e);if(!n)return null;var i=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!i||!Array.isArray(i))return null;var r=[parseInt(i[1]),parseInt(i[2]),parseInt(i[3])],a=parseInt(i[4]);return a===0||isNaN(r[0])||isNaN(r[1])||isNaN(r[2])?null:r}function n1(t,e){var n=e(t);return n==="rgba(0, 0, 0, 0)"||n==="transparent"||n==="initial"||n==="inherit"?t.parentElement==null?null:n1(t.parentElement,e):n}function ip(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],i=96/(72/e),r=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,a=n.map(function(s){return parseInt(s||"0")/i}),h=js(a,0);return r>h.top&&(h.top=r),r>h.bottom&&(h.bottom=r),h}function i1(t,e,n,i,r){var a,h;i===void 0&&(i=!1),r===void 0&&(r=!1);var s;typeof e=="string"?s=n.document.querySelector(e):s=e;var f=Object.keys(t.getFontList()),u=t.scaleFactor(),p=[],m=[],y=[];if(!s)return console.error("Html table could not be found with input: ",e),{head:p,body:m,foot:y};for(var g=0;g<s.rows.length;g++){var P=s.rows[g],C=(h=(a=P?.parentElement)===null||a===void 0?void 0:a.tagName)===null||h===void 0?void 0:h.toLowerCase(),R=rp(f,u,n,P,i,r);R&&(C==="thead"?p.push(R):C==="tfoot"?y.push(R):m.push(R))}return{head:p,body:m,foot:y}}function rp(t,e,n,i,r,a){for(var h=new Xc(i),s=0;s<i.cells.length;s++){var f=i.cells[s],u=n.getComputedStyle(f);if(r||u.display!=="none"){var p=void 0;a&&(p=ep(t,f,e,u,n)),h.push({rowSpan:f.rowSpan,colSpan:f.colSpan,styles:p,_element:f,content:ap(f)})}}var m=n.getComputedStyle(i);if(h.length>0&&(r||m.display!=="none"))return h}function ap(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/<br.*?>/).map(function(n){return n.trim()}).join(`
171`),e.innerText||e.textContent||""}function op(t,e,n){for(var i=0,r=[t,e,n];i<r.length;i++){var a=r[i];a&&typeof a!="object"&&console.error("The options parameter should be of type object, is: "+typeof a),a.startY&&typeof a.startY!="number"&&(console.error("Invalid value for startY option",a.startY),delete a.startY)}}function $i(t,e,n,i,r){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(t),h=1;h<arguments.length;h++){var s=arguments[h];if(s!=null)for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(a[f]=s[f])}return a}function r1(t,e){var n=new xa(t),i=n.getDocumentOptions(),r=n.getGlobalOptions();op(r,i,e);var a=$i({},r,i,e),h;typeof window<"u"&&(h=window);var s=sp(r,i,e),f=lp(r,i,e),u=hp(n,a),p=up(n,a,h);return{id:e.tableId,content:p,hooks:f,styles:s,settings:u}}function sp(t,e,n){for(var i={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},r=function(f){if(f==="columnStyles"){var u=t[f],p=e[f],m=n[f];i.columnStyles=$i({},u,p,m)}else{var y=[t,e,n],g=y.map(function(P){return P[f]||{}});i[f]=$i({},g[0],g[1],g[2])}},a=0,h=Object.keys(i);a<h.length;a++){var s=h[a];r(s)}return i}function lp(t,e,n){for(var i=[t,e,n],r={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},a=0,h=i;a<h.length;a++){var s=h[a];s.didParseCell&&r.didParseCell.push(s.didParseCell),s.willDrawCell&&r.willDrawCell.push(s.willDrawCell),s.didDrawCell&&r.didDrawCell.push(s.didDrawCell),s.willDrawPage&&r.willDrawPage.push(s.willDrawPage),s.didDrawPage&&r.didDrawPage.push(s.didDrawPage)}return r}function hp(t,e){var n,i,r,a,h,s,f,u,p,m,y,g,P=js(e.margin,40/t.scaleFactor()),C=(n=fp(t,e.startY))!==null&&n!==void 0?n:P.top,R;
171e.showFoot===!0?R="everyPage":e.showFoot===!1?R="never":R=(i=e.showFoot)!==null&&i!==void 0?i:"everyPage";var L;e.showHead===!0?L="everyPage":e.showHead===!1?L="never":L=(r=e.showHead)!==null&&r!==void 0?r:"everyPage";var G=(a=e.useCss)!==null&&a!==void 0?a:!1,V=e.theme||(G?"plain":"striped"),M=!!e.horizontalPageBreak,rt=(h=e.horizontalPageBreakRepeat)!==null&&h!==void 0?h:null;return{includeHiddenHtml:(s=e.includeHiddenHtml)!==null&&s!==void 0?s:!1,useCss:G,theme:V,startY:C,margin:P,pageBreak:(f=e.pageBreak)!==null&&f!==void 0?f:"auto",rowPageBreak:(u=e.rowPageBreak)!==null&&u!==void 0?u:"auto",tableWidth:(p=e.tableWidth)!==null&&p!==void 0?p:"auto",showHead:L,showFoot:R,tableLineWidth:(m=e.tableLineWidth)!==null&&m!==void 0?m:0,tableLineColor:(y=e.tableLineColor)!==null&&y!==void 0?y:200,horizontalPageBreak:M,horizontalPageBreakRepeat:rt,horizontalPageBreakBehaviour:(g=e.horizontalPageBreakBehaviour)!==null&&g!==void 0?g:"afterAllRows"}}function fp(t,e){var n=t.getLastAutoTable(),i=t.scaleFactor(),r=t.pageNumber(),a=!1;if(n&&n.startPageNumber){var h=n.startPageNumber+n.pageNumber-1;a=h===r}return typeof e=="number"?e:(e==null||e===!1)&&a&&n?.finalY!=null?n.finalY+20/i:null}function up(t,e,n){var i=e.head||[],r=e.body||[],a=e.foot||[];if(e.html){var h=e.includeHiddenHtml;if(n){var s=i1(t,e.html,n,h,e.useCss)||{};i=s.head||i,r=s.body||i,a=s.foot||i}else console.error("Cannot parse html in non browser environment")}var f=e.columns||cp(i,r,a);return{columns:f,head:i,body:r,foot:a}}function cp(t,e,n){var i=t[0]||e[0]||n[0]||[],r=[];return Object.keys(i).filter(function(a){return a!=="_element"}).forEach(function(a){var h=1,s;Array.isArray(i)?s=i[parseInt(a)]:s=i[a],typeof s=="object"&&!Array.isArray(s)&&(h=s?.colSpan||1);for(var f=0;f<h;f++){var u=void 0;Array.isArray(i)?u=r.length:u=a+(f>0?"_".concat(f):"");var p={dataKey:u};r.push(p)}}),r}var ch=function(){function t(e,n,i){this.table=n,this.pageNumber=n.pageNumber,this.settings=n.settings,this.cursor=i,this.doc=e.getDocument()}return t}(),dp=function(t){Jc(e,t);function e(n,i,r,a,h,s){var f=t.call(this,n,i,s)||this;return f.cell=r,f.row=a,f.column=h,f.section=a.section,f}return e}(ch),pp=function(){function t(e,n){this.pageNumber=1,this.id=e.id,this.settings=e.settings,this.styles=e.styles,this.hooks=e.hooks,this.columns=n.columns,this.head=n.head,this.body=n.body,this.foot=n.foot}return t.prototype.getHeadHeight=function(e){return this.head.reduce(function(n,i){return n+i.getMaxCellHeight(e)},0)},t.prototype.getFootHeight=function(e){return this.foot.reduce(function(n,i){return n+i.getMaxCellHeight(e)},0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(e,n,i,r,a,h){for(var s=0,f=n;s<f.length;s++){var u=f[s],p=new dp(e,this,i,r,a,h),m=u(p)===!1;if(i.text=Array.isArray(i.text)?i.text:[i.text],m)return!1}return!0},t.prototype.callEndPageHooks=function(e,n){e.applyStyles(e.userStyles);for(var i=0,r=this.hooks.didDrawPage;i<r.length;i++){var a=r[i];a(new ch(e,this,n))}},t.prototype.callWillDrawPageHooks=function(e,n){for(var i=0,r=this.hooks.willDrawPage;i<r.length;i++){var a=r[i];a(new ch(e,this,n))}},t.prototype.getWidth=function(e){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var n=this.columns.reduce(function(r,a){return r+a.wrappedWidth},0);return n}else{var i=this.settings.margin;return e-i.left-i.right}},t}(),a1=function(){function t(e,n,i,r,a){a===void 0&&(a=!1),this.height=0,this.raw=e,e instanceof Xc&&(this.raw=e._element,this.element=e._element),this.index=n,this.section=i,this.cells=r,this.spansMultiplePages=a}return t.prototype.getMaxCellHeight=function(e){var n=this;return e.reduce(function(i,r){var a;return Math.max(i,((a=n.cells[r.index])===null||a===void 0?void 0:a.height)||0)},0)},t.prototype.hasRowSpan=function(e){var n=this;return e.filter(function(i){var r=n.cells[i.index];return r?r.rowSpan>1:!1}).length>0},t.prototype.canEntireRowFit=function(e,n){return this.getMaxCellHeight(n)<=e},t.prototype.getMinimumRowHeight=function(e,n){var i=this;return e.reduce(function(r,a){var h=i.cells[a.index];if(!h)return 0;var s=n.getLineHeight(h.styles.fontSize),f=h.padding("vertical"),u=f+s;return u>r?u:r},0)},t}(),o1=function(){function t(e,n,i){var r;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=n,this.section=i,this.raw=e;var a=e;e!=null&&typeof e=="object"&&!Array.isArray(e)?(this.rowSpan=e.rowSpan||1,this.colSpan=e.colSpan||1,a=(r=e.content)!==null&&r!==void 0?r:e,e._element&&(this.raw=e._element)):(this.rowSpan=1,this.colSpan=1);var h=a!=null?""+a:"",s=/\r\n|\r|\n/g;this.text=h.split(s)}return t.prototype.getTextPos=function(){var e;if(this.styles.valign==="top")e=this.y+this.padding("top");else if(this.styles.valign==="bottom")e=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");e=this.y+n/2+this.padding("top")}var i;if(this.styles.halign==="right")i=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var r=this.width-this.padding("horizontal");i=this.x+r/2+this.padding("left")}else i=this.x+this.padding("left");return{x:i,y:e}}
171,t.prototype.getContentHeight=function(e,n){n===void 0&&(n=1.15);var i=Array.isArray(this.text)?this.text.length:1,r=this.styles.fontSize/e*n,a=i*r+this.padding("vertical");return Math.max(a,this.styles.minCellHeight)},t.prototype.padding=function(e){var n=js(this.styles.cellPadding,0);return e==="vertical"?n.top+n.bottom:e==="horizontal"?n.left+n.right:n[e]},t}(),gp=function(){function t(e,n,i){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=e,this.raw=n,this.index=i}return t.prototype.getMaxCustomCellWidth=function(e){for(var n=0,i=0,r=e.allRows();i<r.length;i++){var a=r[i],h=a.cells[this.index];h&&typeof h.styles.cellWidth=="number"&&(n=Math.max(n,h.styles.cellWidth))}return n},t}();function vp(t,e){mp(t,e);var n=[],i=0;e.columns.forEach(function(a){var h=a.getMaxCustomCellWidth(e);h?a.width=h:(a.width=a.wrappedWidth,n.push(a)),i+=a.width});var r=e.getWidth(t.pageSize().width)-i;r&&(r=dh(n,r,function(a){return Math.max(a.minReadableWidth,a.minWidth)})),r&&(r=dh(n,r,function(a){return a.minWidth})),r=Math.abs(r),!e.settings.horizontalPageBreak&&r>.1/t.scaleFactor()&&(r=r<1?r:Math.round(r),console.log("Of the table content, ".concat(r," units width could not fit page"))),wp(e),yp(e,t),bp(e)}function mp(t,e){var n=t.scaleFactor(),i=e.settings.horizontalPageBreak,r=e1(t,e);e.allRows().forEach(function(a){for(var h=0,s=e.columns;h<s.length;h++){var f=s[h],u=a.cells[f.index];if(u){var p=e.hooks.didParseCell;e.callCellHooks(t,p,u,a,f,null);var m=u.padding("horizontal");u.contentWidth=Es(u.text,u.styles,t)+m;var y=Es(u.text.join(" ").split(/[^\S\u00A0]+/),u.styles,t);if(u.minReadableWidth=y+u.padding("horizontal"),typeof u.styles.cellWidth=="number")u.minWidth=u.styles.cellWidth,u.wrappedWidth=u.styles.cellWidth;else if(u.styles.cellWidth==="wrap"||i===!0)u.contentWidth>r?(u.minWidth=r,u.wrappedWidth=r):(u.minWidth=u.contentWidth,u.wrappedWidth=u.contentWidth);else{var g=10/n;u.minWidth=u.styles.minCellWidth||g,u.wrappedWidth=u.contentWidth,u.minWidth>u.wrappedWidth&&(u.wrappedWidth=u.minWidth)}}}}),e.allRows().forEach(function(a){for(var h=0,s=e.columns;h<s.length;h++){var f=s[h],u=a.cells[f.index];if(u&&u.colSpan===1)f.wrappedWidth=Math.max(f.wrappedWidth,u.wrappedWidth),f.minWidth=Math.max(f.minWidth,u.minWidth),f.minReadableWidth=Math.max(f.minReadableWidth,u.minReadableWidth);else{var p=e.styles.columnStyles[f.dataKey]||e.styles.columnStyles[f.index]||{},m=p.cellWidth||p.minCellWidth;m&&typeof m=="number"&&(f.minWidth=m,f.wrappedWidth=m)}u&&(u.colSpan>1&&!f.minWidth&&(f.minWidth=u.minWidth),u.colSpan>1&&!f.wrappedWidth&&(f.wrappedWidth=u.minWidth))}})}function dh(t,e,n){for(var i=e,r=t.reduce(function(g,P){return g+P.wrappedWidth},0),a=0;a<t.length;a++){var h=t[a],s=h.wrappedWidth/r,f=i*s,u=h.width+f,p=n(h),m=u<p?p:u;e-=m-h.width,h.width=m}if(e=Math.round(e*1e10)/1e10,e){var y=t.filter(function(g){return e<0?g.width>n(g):!0});y.length&&(e=dh(y,e,n))}return e}function bp(t){for(var e={},n=1,i=t.allRows(),r=0;r<i.length;r++)for(var a=i[r],h=0,s=t.columns;h<s.length;h++){var f=s[h],u=e[f.index];if(n>1)n--,delete a.cells[f.index];else if(u)u.cell.height+=a.height,n=u.cell.colSpan,delete a.cells[f.index],u.left--,u.left<=1&&delete e[f.index];else{var p=a.cells[f.index];if(!p)continue;if(p.height=a.height,p.rowSpan>1){var m=i.length-r,y=p.rowSpan>m?m:p.rowSpan;e[f.index]={cell:p,left:y,row:a}}}}}function wp(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var i=e[n],r=null,a=0,h=0,s=0;s<t.columns.length;s++){var f=t.columns[s];if(h-=1,h>1&&t.columns[s+1])a+=f.width,delete i.cells[f.index];else if(r){var u=r;delete i.cells[f.index],r=null,u.width=f.width+a}else{var u=i.cells[f.index];if(!u)continue;if(h=u.colSpan,a=0,u.colSpan>1){r=u,a+=f.width;continue}u.width=f.width+a}}}function yp(t,e){for(var n={count:0,height:0},i=0,r=t.allRows();i<r.length;i++){for(var a=r[i],h=0,s=t.columns;h<s.length;h++){var f=s[h],u=a.cells[f.index];if(u){e.applyStyles(u.styles,!0);var p=u.width-u.padding("horizontal");if(u.styles.overflow==="linebreak")u.text=e.splitTextToSize(u.text,p+1/e.scaleFactor(),{fontSize:u.styles.fontSize});else if(u.styles.overflow==="ellipsize")u.text=Ru(u.text,p,u.styles,e,"...");else if(u.styles.overflow==="hidden")u.text=Ru(u.text,p,u.styles,e,"");else if(typeof u.styles.overflow=="function"){var m=u.styles.overflow(u.text,p);typeof m=="string"?u.text=[m]:u.text=m}u.contentHeight=u.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var y=u.contentHeight/u.rowSpan;u.rowSpan>1&&n.count*n.height<y*u.rowSpan?n={height:y,count:u.rowSpan}:n&&n.count>0&&n.height>y&&(y=n.height),y>a.height&&(a.height=y)}}n.count--}}function Ru(t,e,n,i,r){return t.map(function(a){return _p(a,e,n,i,r)})}function _p(t,e,n,i,r){var a=1e4*i.scaleFactor();if(e=Math.ceil(e*a)/a,e>=Es(t,n,i))return t;for(;
171e<Es(t+r,n,i)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+r}function s1(t,e){var n=new xa(t),i=xp(e,n.scaleFactor()),r=new pp(e,i);return vp(n,r),n.applyStyles(n.userStyles),r}function xp(t,e){var n=t.content,i=Sp(n.columns);if(n.head.length===0){var r=Du(i,"head");r&&n.head.push(r)}if(n.foot.length===0){var r=Du(i,"foot");r&&n.foot.push(r)}var a=t.settings.theme,h=t.styles;return{columns:i,head:Gl("head",n.head,i,h,a,e),body:Gl("body",n.body,i,h,a,e),foot:Gl("foot",n.foot,i,h,a,e)}}function Gl(t,e,n,i,r,a){var h={},s=e.map(function(f,u){for(var p=0,m={},y=0,g=0,P=0,C=n;P<C.length;P++){var R=C[P];if(h[R.index]==null||h[R.index].left===0)if(g===0){var L=void 0;Array.isArray(f)?L=f[R.index-y-p]:L=f[R.dataKey];var G={};typeof L=="object"&&!Array.isArray(L)&&(G=L?.styles||{});var V=Np(t,R,u,r,i,a,G),M=new o1(L,V,t);m[R.dataKey]=M,m[R.index]=M,g=M.colSpan-1,h[R.index]={left:M.rowSpan-1,times:g}}else g--,y++;else h[R.index].left--,g=h[R.index].times,p++}return new a1(f,u,t,m)});return s}function Du(t,e){var n={};return t.forEach(function(i){if(i.raw!=null){var r=Ap(e,i.raw);r!=null&&(n[i.dataKey]=r)}}),Object.keys(n).length>0?n:null}function Ap(t,e){if(t==="head"){if(typeof e=="object")return e.header||null;if(typeof e=="string"||typeof e=="number")return e}else if(t==="foot"&&typeof e=="object")return e.footer;return null}function Sp(t){return t.map(function(e,n){var i,r;return typeof e=="object"?r=(i=e.dataKey)!==null&&i!==void 0?i:n:r=n,new gp(r,e,n)})}function Np(t,e,n,i,r,a,h){var s=tp(i),f;t==="head"?f=r.headStyles:t==="body"?f=r.bodyStyles:t==="foot"&&(f=r.footStyles);var u=$i({},s.table,s[t],r.styles,f),p=r.columnStyles[e.dataKey]||r.columnStyles[e.index]||{},m=t==="body"?p:{},y=t==="body"&&n%2===0?$i({},s.alternateRow,r.alternateRowStyles):{},g=Q5(a),P=$i({},g,u,y,m);return $i(P,h)}function Lp(t,e,n){var i;n===void 0&&(n={});var r=e1(t,e),a=new Map,h=[],s=[],f=[];Array.isArray(e.settings.horizontalPageBreakRepeat)?f=e.settings.horizontalPageBreakRepeat:(typeof e.settings.horizontalPageBreakRepeat=="string"||typeof e.settings.horizontalPageBreakRepeat=="number")&&(f=[e.settings.horizontalPageBreakRepeat]),f.forEach(function(y){var g=e.columns.find(function(P){return P.dataKey===y||P.index===y});g&&!a.has(g.index)&&(a.set(g.index,!0),h.push(g.index),s.push(e.columns[g.index]),r-=g.wrappedWidth)});for(var u=!0,p=(i=n?.start)!==null&&i!==void 0?i:0;p<e.columns.length;){if(a.has(p)){p++;continue}var m=e.columns[p].wrappedWidth;if(u||r>=m)u=!1,h.push(p),s.push(e.columns[p]),r-=m;else break;p++}return{colIndexes:h,columns:s,lastIndex:p-1}}function kp(t,e){for(var n=[],i=0;i<e.columns.length;i++){var r=Lp(t,e,{start:i});r.columns.length&&(n.push(r),i=r.lastIndex)}return n}function l1(t,e){var n=e.settings,i=n.startY,r=n.margin,a={x:r.left,y:i},h=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),s=i+r.bottom+h;if(n.pageBreak==="avoid"){var f=e.body,u=f.reduce(function(y,g){return y+g.height},0);s+=u}var p=new xa(t);(n.pageBreak==="always"||n.startY!=null&&s>p.pageSize().height)&&(f1(p),a.y=r.top),e.callWillDrawPageHooks(p,a);var m=$i({},a);e.startPageNumber=p.pageNumber(),n.horizontalPageBreak?Pp(p,e,m,a):(p.applyStyles(p.userStyles),(n.showHead==="firstPage"||n.showHead==="everyPage")&&e.head.forEac
171h(function(y){return Ki(p,e,y,a,e.columns)}),p.applyStyles(p.userStyles),e.body.forEach(function(y,g){var P=g===e.body.length-1;Is(p,e,y,P,m,a,e.columns)}),p.applyStyles(p.userStyles),(n.showFoot==="lastPage"||n.showFoot==="everyPage")&&e.foot.forEach(function(y){return Ki(p,e,y,a,e.columns)})),Qc(p,e,m,a),e.callEndPageHooks(p,a),e.finalY=a.y,t.lastAutoTable=e,p.applyStyles(p.userStyles)}function Pp(t,e,n,i){var r=kp(t,e),a=e.settings;if(a.horizontalPageBreakBehaviour==="afterAllRows")r.forEach(function(u,p){t.applyStyles(t.userStyles),p>0?mo(t,e,n,i,u.columns,!0):ju(t,e,i,u.columns),Cp(t,e,n,i,u.columns),Vl(t,e,i,u.columns)});else for(var h=-1,s=r[0],f=function(){var u=h;if(s){t.applyStyles(t.userStyles);var p=s.columns;h>=0?mo(t,e,n,i,p,!0):ju(t,e,i,p),u=Bu(t,e,h+1,i,p),Vl(t,e,i,p)}var m=u-h;r.slice(1).forEach(function(y){t.applyStyles(t.userStyles),mo(t,e,n,i,y.columns,!0),Bu(t,e,h+1,i,y.columns,m),Vl(t,e,i,y.columns)}),h=u};h<e.body.length-1;)f()}function ju(t,e,n,i){var r=e.settings;t.applyStyles(t.userStyles),(r.showHead==="firstPage"||r.showHead==="everyPage")&&e.head.forEac
171h(function(a){return Ki(t,e,a,n,i)})}function Cp(t,e,n,i,r){t.applyStyles(t.userStyles),e.body.forEach(function(a,h){var s=h===e.body.length-1;Is(t,e,a,s,n,i,r)})}function Bu(t,e,n,i,r,a){t.applyStyles(t.userStyles),a=a??e.body.length;var h=Math.min(n+a,e.body.length),s=-1;return e.body.slice(n,h).forEach(function(f,u){var p=n+u===e.body.length-1,m=h1(t,e,p,i);f.canEntireRowFit(m,r)&&(Ki(t,e,f,i,r),s=n+u)}),s}function Vl(t,e,n,i){var r=e.settings;t.applyStyles(t.userStyles),(r.showFoot==="lastPage"||r.showFoot==="everyPage")&&e.foot.forEach(function(a){return Ki(t,e,a,n,i)})}function Fp(t,e,n){var i=n.getLineHeight(t.styles.fontSize),r=t.padding("vertical"),a=Math.floor((e-r)/i);return Math.max(0,a)}function Ep(t,e,n,i){var r={};t.spansMultiplePages=!0,t.height=0;for(var a=0,h=0,s=n.columns;h<s.length;h++){var f=s[h],u=t.cells[f.index];if(u){Array.isArray(u.text)||(u.text=[u.text]);var p=new o1(u.raw,u.styles,u.section);p=$i(p,u),p.text=[];var m=Fp(u,e,i);u.text.length>m&&(p.text=u.text.splice(m,u.text.length));var y=i.scaleFactor(),g=i.getLineHeightFactor();u.contentHeight=u.getContentHeight(y,g),u.contentHeight>=e&&(u.contentHeight=e,p.styles.minCellHeight-=e),u.contentHeight>t.height&&(t.height=u.contentHeight),p.contentHeight=p.getContentHeight(y,g),p.contentHeight>a&&(a=p.contentHeight),r[f.index]=p}}var P=new a1(t.raw,-1,t.section,r,!0);P.height=a;for(var C=0,R=n.columns;C<R.length;C++){var f=R[C],p=P.cells[f.index];p&&(p.height=P.height);var u=t.cells[f.index];u&&(u.height=t.height)}return P}function Ip(t,e,n,i){var r=t.pageSize().height,a=i.settings.margin,h=a.top+a.bottom,s=r-h;e.section==="body"&&(s-=i.getHeadHeight(i.columns)+i.getFootHeight(i.columns));var f=e.getMinimumRowHeight(i.columns,t),u=f<n;if(f>s)return console.log("Will not be able to print row ".concat(e.index," correctly since it's minimum height is larger than page height")),!0;if(!u)return!1;var p=e.hasRowSpan(i.columns),m=e.getMaxCellHeight(i.columns)>s;return m?(p&&console.log("The content of row ".concat(e.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(p||i.settings.rowPageBreak==="avoid")}function Is(t,e,n,i,r,a,h){var s=h1(t,e,i,a);if(n.canEntireRowFit(s,h))Ki(t,e,n,a,h);else if(Ip(t,n,s,e)){var f=Ep(n,s,e,t);Ki(t,e,n,a,h),mo(t,e,r,a,h),Is(t,e,f,i,r,a,h)}else mo(t,e,r,a,h),Is(t,e,n,i,r,a,h)}function Ki(t,e,n,i,r){i.x=e.settings.margin.left;for(var a=0,h=r;a<h.length;a++){var s=h[a],f=n.cells[s.index];if(!f){i.x+=s.width;continue}t.applyStyles(f.styles),f.x=i.x,f.y=i.y;var u=e.callCellHooks(t,e.hooks.willDrawCell,f,n,s,i);if(u===!1){i.x+=s.width;continue}Op(t,f,i);var p=f.getTextPos();Kc(f.text,p.x,p.y,{halign:f.styles.halign,valign:f.styles.valign,maxWidth:Math.ceil(f.width-f.padding("left")-f.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,f,n,s,i),i.x+=s.width}i.y+=n.height}function Op(t,e,n){var i=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),typeof i.lineWidth=="number"){var r=t1(i.lineWidth,i.fillColor);r&&t.rect(e.x,n.y,e.width,e.height,r)}else typeof i.lineWidth=="object"&&(i.fillColor&&t.rect(e.x,n.y,e.width,e.height,"F"),Tp(t,e,n,i.lineWidth))}function Tp(t,e,n,i){var r,a,h,s;i.top&&(r=n.x,a=n.y,h=n.x+e.width,s=n.y,i.right&&(h+=.5*i.right),i.left&&(r-=.5*i.left),f(i.top,r,a,h,s)),i.bottom&&(r=n.x,a=n.y+e.height,h=n.x+e.width,s=n.y+e.height,i.right&&(h+=.5*i.right),i.left&&(r-=.5*i.left),f(i.bottom,r,a,h,s)),i.left&&(r=n.x,a=n.y,h=n.x,s=n.y+e.height,i.top&&(a-=.5*i.top),i.bottom&&(s+=.5*i.bottom),f(i.left,r,a,h,s)),i.right&&(r=n.x+e.width,a=n.y,h=n.x+e.width,s=n.y+e.height,i.top&&(a-=.5*i.top),i.bottom&&(s+=.5*i.bottom),f(i.right,r,a,h,s));function f(u,p,m,y,g){t.getDocument().setLineWidth(u),t.getDocument().line(p,m,y,g,"S")}}function h1(t,e,n,i){var r=e.settings.margin.bottom,a=e.settings.showFoot;return(a==="everyPage"||a==="lastPage"&&n)&&(r+=e.getFootHeight(e.columns)),t.pageSize().height-i.y-r}function mo(t,e,n,i,r,a){r===void 0&&(r=[]),a===void 0&&(a=!1),t.applyStyles(t.userStyles),e.settings.showFoot==="everyPage"&&!a&&e.foot.forEach(function(s){return Ki(t,e,s,i,r)}),e.callEndPageHooks(t,i);var h=e.settings.margin;Qc(t,e,n,i),f1(t),e.pageNumber++,i.x=h.left,i.y=h.top,n.y=h.top,e.callWillDrawPageHooks(t,i),e.settings.showHead==="everyPage"&&(e.head.forEac
171h(function(s){return Ki(t,e,s,i,r)}),t.applyStyles(t.userStyles))}function f1(t){var e=t.pageNumber();t.setPage(e+1);var n=t.pageNumber();return n===e?(t.addPage(),!0):!1}function Rp(t){t.API.autoTable=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],r=r1(this,i),a=s1(this,r);return l1(this,a),this},t.API.lastAutoTable=!1,t.API.autoTableText=function(e,n,i,r){Kc(e,n,i,r,this)},t.API.autoTableSetDefaults=function(e){return xa.setDefaults(e,this),this},t.autoTableSetDefaults=function(e,n){xa.setDefaults(e,n)},t.API.autoTableHtmlToJson=function(e,n){var i;if(n===void 0&&(n=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var r=new xa(this),a=i1(r,e,window,n,!1),h=a.head,s=a.body,f=((i=h[0])===null||i===void 0?void 0:i.map(function(u){return u.content}))||[];return{columns:f,rows:s,data:s}}}var Zl;function Mp(t,e){var n=r1(t,e),i=s1(t,n);l1(t,i)}try{if(typeof window<"u"&&window){var Mu=window,qu=Mu.jsPDF||((Zl=Mu.jspdf)===null||Zl===void 0?void 0:Zl.jsPDF);qu&&Rp(qu)}}catch(t){console.error("Could not apply autoTable plugin",t)}export{Dt as E,vl as _,Mp as a,Se as b,Bp as j};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.