vendor: 14,744 bytes, lines 1-3
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-abK4qA5j.js","assets/vendor-B5DssOfd.js","assets/index-DkvNy9W1.js","assets/i18n-uURfBduE.js","assets/index-DprJ-dQf.css","assets/pako.esm-Cd0tW-8_.js","assets/DashboardLayout-DYuT_LER.js"])))=>i.map(i=>d[i]); 2var Vh=Object.defineProperty;var Gh=(e,t,r)=>t in e?Vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>Gh(e,typeof t!="symbol"?t+"":t,r);import{b as Yh,r as Re,j as E}from"./vendor-B5DssOfd.js";import{_ as fo}from"./index-DkvNy9W1.js";import{I as jl,i as $h}from"./pako.esm-Cd0tW-8_.js";import{D as Jh}from"./DashboardLayout-DYuT_LER.js";function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(e)}var tn=Uint8Array,Dr=Uint16Array,Wo=Int32Array,Ho=new tn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Vo=new tn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Cl=new tn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bu=function(e,t){for(var r=new Dr(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var a=new Wo(r[30]),n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)a[s]=s-r[n]<<5|n;return{b:r,r:a}},yu=bu(Ho,2),Kh=yu.b,Io=yu.r;Kh[28]=258,Io[258]=28;var Xh=bu(Vo,0),Fl=Xh.r,Oo=new Dr(32768);for(var Te=0;Te<32768;++Te){var Jn=(Te&43690)>>1|(Te&21845)<<1;Jn=(Jn&52428)>>2|(Jn&13107)<<2,Jn=(Jn&61680)>>4|(Jn&3855)<<4,Oo[Te]=((Jn&65280)>>8|(Jn&255)<<8)>>1}var Ca=function(e,t,r){for(var n=e.length,a=0,s=new Dr(t);a<n;++a)e[a]&&++s[e[a]-1];var c=new Dr(t);for(a=1;a<t;++a)c[a]=c[a-1]+s[a-1]<<1;var l;if(r){l=new Dr(1<<t);var u=15-t;for(a=0;a<n;++a)if(e[a])for(var d=a<<4|e[a],m=t-e[a],y=c[e[a]-1]++<<m,A=y|(1<<m)-1;y<=A;++y)l[Oo[y]>>u]=d}else for(l=new Dr(n),a=0;a<n;++a)e[a]&&(l[a]=Oo[c[e[a]-1]++]>>15-e[a]);return l},Ai=new tn(288);for(var Te=0;Te<144;++Te)Ai[Te]=8;for(var Te=144;Te<256;++Te)Ai[Te]=9;for(var Te=256;Te<280;++Te)Ai[Te]=7;for(var Te=280;Te<288;++Te)Ai[Te]=8;var As=new tn(32);for(var Te=0;Te<32;++Te)As[Te]=5;var Zh=Ca(Ai,9,0),Qh=Ca(As,5,0),wu=function(e){return(e+7)/8|0},tc=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new tn(e.subarray(t,r))},Fn=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},ka=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},po=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var a=r.length,s=r.slice();if(!a)return{t:Nu,l:0};if(a==1){var c=new tn(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(mt,At){return mt.f-At.f}),r.push({s:-1,f:25001});var l=r[0],u=r[1],d=0,m=1,y=2;for(r[0]={s:-1,f:l.f+u.f,l,r:u};m!=a-1;)l=r[r[d].f<r[y].f?d++:y++],u=r[d!=m&&r[d].f<r[y].f?d++:y++],r[m++]={s:-1,f:l.f+u.f,l,r:u};for(var A=s[0].s,n=1;n<a;++n)s[n].s>A&&(A=s[n].s);var p=new Dr(A+1),T=Eo(r[m-1],p,0);if(T>t){var n=0,I=0,M=T-t,k=1<<M;for(s.sort(function(At,It){return p[It.s]-p[At.s]||At.f-It.f});n<a;++n){var J=s[n].s;if(p[J]>t)I+=k-(1<<T-p[J]),p[J]=t;else break}for(I>>=M;I>0;){var X=s[n].s;p[X]<t?I-=1<<t-p[X]++-1:++n}for(;n>=0&&I;--n){var rt=s[n].s;p[rt]==t&&(--p[rt],++I)}T=t}return{t:new tn(p),l:T}},Eo=function(e,t,r){return e.s==-1?Math.max(Eo(e.l,t,r+1),Eo(e.r,t,r+1)):t[e.s]=r},Il=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Dr(++t),n=0,a=e[0],s=1,c=function(u){r[n++]=u},l=1;l<=t;++l)if(e[l]==a&&l!=t)++s;else{if(!a&&s>2){for(;s>138;s-=138)c(32754);s>2&&(c(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(c(a),--s;s>6;s-=6)c(8304);s>2&&(c(s-3<<5|8208),s=0)}for(;s--;)c(a);s=1,a=e[l]}return{c:r.subarray(0,n),n:t}},ja=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},xu=function(e,t,r){var n=r.length,a=wu(t+2);e[a]=n&255,e[a+1]=n>>8,e[a+2]=e[a]^255,e[a+3]=e[a+1]^255;for(var s=0;s<n;++s)e[a+s+4]=r[s];return(a+4+n)*8},Ol=function(e,t,r,n,a,s,c,l,u,d,m){Fn(t,m++,r),++a[256];for(var y=po(a,15),A=y.t,p=y.l,T=po(s,15),I=T.t,M=T.l,k=Il(A),J=k.c,X=k.n,rt=Il(I),mt=rt.c,At=rt.n,It=new Dr(19),nt=0;nt<J.length;++nt)++It[J[nt]&31];for(var nt=0;nt<mt.length;++nt)++It[mt[nt]&31];for(var W=po(It,7),gt=W.t,L=W.l,O=19;O>4&&!gt[Cl[O-1]];--O);var z=d+5<<3,q=ja(a,Ai)+ja(s,As)+c,it=ja(a,A)+ja(s,I)+c+14+3*O+ja(It,gt)+2*It[16]+3*It[17]+7*It[18];if(u>=0&&z<=q&&z<=it)return xu(t,m,e.subarray(u,u+d));var ot,lt,tt,ct;if(Fn(t,m,1+(it<q)),m+=2,it<q){ot=Ca(A,p,0),lt=A,tt=Ca(I,M,0),ct=I;var St=Ca(gt,L,0);Fn(t,m,X-257),Fn(t,m+5,At-1),Fn(t,m+10,O-4),m+=14;for(var nt=0;nt<O;++nt)Fn(t,m+3*nt,gt[Cl[nt]]);m+=3*O;for(var vt=[J,mt],N=0;N<2;++N)for(var B=vt[N],nt=0;nt<B.length;++nt){var D=B[nt]&31;Fn(t,m,St[D]),m+=gt[D],D>15&&(Fn(t,m,B[nt]>>5&127),m+=B[nt]>>12)}}else ot=Zh,lt=Ai,tt=Qh,ct=As;for(var nt=0;nt<l;++nt){var H=n[nt];if(H>255){var D=H>>18&31;ka(t,m,ot[D+257]),m+=lt[D+257],D>7&&(Fn(t,m,H>>23&31),m+=Ho[D]);var Y=H&31;ka(t,m,tt[Y]),m+=ct[Y],Y>3&&(ka(t,m,H>>5&8191),m+=Vo[Y])}else ka(t,m,ot[H]),m+=lt[H]}return ka(t,m,ot[256]),m+lt[256]},ec=new Wo([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Nu=new tn(0),rc=function(e,t,r,n,a,s){var c=s.z||e.length,l=new tn(n+c+5*(1+Math.ceil(c/7e3))+a),u=l.subarray(n,l.length-a),d=s.l,m=(s.r||0)&7;if(t){m&&(u[0]=s.r>>3);for(var y=ec[t-1],A=y>>13,p=y&8191,T=(1<<r)-1,I=s.p||new Dr(32768),M=s.h||new Dr(T+1),k=Math.ceil(r/3),J=2*k,X=function(Vt){return(e[Vt]^e[Vt+1]<<k^e[Vt+2]<<J)&T},rt=new Wo(25e3),mt=new Dr(288),At=new Dr(32),It=0,nt=0,W=s.i||0,gt=0,L=s.w||0,O=0;W+2<c;++W){var z=X(W),q=W&32767,it=M[z];if(I[q]=it,M[z]=q,L<=W){var ot=c-W;if((It>7e3||gt>24576)&&(ot>423||!d)){m=Ol(e,u,0,rt,mt,At,nt,gt,O,W-O,m),gt=It=nt=0,O=W;for(var lt=0;lt<286;++lt)mt[lt]=0;for(var lt=0;lt<30;++lt)At[lt]=0}var tt=2,ct=0,St=p,vt=q-it&32767;if(ot>2&&z==X(W-vt))for(var N=Math.min(A,ot)-1,B=Math.min(32767,W),D=Math.min(258,ot);vt<=B&&--St&&q!=it;){if(e[W+tt]==e[W+tt-vt]){for(var H=0;H<D&&e[W+H]==e[W+H-vt];++H);if(H>tt){if(tt=H,ct=vt,H>N)break;for(var Y=Math.min(vt,H-2),Z=0,lt=0;lt<Y;++lt){var at=W-vt+lt&32767,st=I[at],pt=at-st&32767;pt>Z&&(Z=pt,it=at)}}}q=it,it=I[q],vt+=q-it&32767}if(ct){rt[gt++]=268435456|Io[tt]<<18|Fl[ct];var Nt=Io[tt]&31,Ot=Fl[ct]&31;nt+=Ho[Nt]+Vo[Ot],++mt[257+Nt],++At[Ot],L=W+tt,++It}else rt[gt++]=e[W],++mt[e[W]]}}for(W=Math.max(W,L);W<c;++W)rt[gt++]=e[W],++mt[e[W]];m=Ol(e,u,d,rt,mt,At,nt,gt,O,W-O,m),d||(s.r=m&7|u[m/8|0]<<3,m-=7,s.h=M,s.p=I,s.i=W,s.w=L)}else{for(var W=s.w||0;W<c+d;W+=65535){var Ft=W+65535;Ft>=c&&(u[m/8|0]=d,Ft=c),m=xu(u,m+1,e.subarray(W,Ft))}s.i=c}return tc(l,0,n+wu(m)+a)},_u=function(){var e=1,t=0;return{p:function(r){for(var n=e,a=t,s=r.length|0,c=0;c!=s;){for(var l=Math.min(c+2655,s);c<l;++c)a+=n+=r[c];n=(n&65535)+15*(n>>16),a=(a&65535)+15*(a>>16)}e=n,t=a},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},nc=function(e,t,r,n,a){if(!a&&(a={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),c=new tn(s.length+e.length);c.set(s),c.set(e,s.length),e=c,a.w=s.length}return rc(e,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,a)},Au=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},ic=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=_u();a.p(t.dictionary),Au(e,2,a.d())}};function Bo(e,t){t||(t={});var r=_u();r.p(e);var n=nc(e,t,t.dictionary?6:2,4);return ic(n,t),Au(n,n.length-4,r.d()),n}var ac=typeof TextDecoder<"u"&&new TextDecoder,sc=0;try{ac.decode(Nu,{stream:!0}),sc=1}catch{}function oc(e){if(Array.isArray(e))return e}function lc(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,s,c,l=[],u=!0,d=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,a=m}finally{try{if(!u&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function El(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function uc(e,t){if(e){if(typeof e=="string")return El(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?El(e,t):void 0}}function hc(){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 Bl(e,t){return oc(e)||lc(e,t)||uc(e,t)||hc()}function Tl(e,t="utf8"){return new TextDecoder(t).decode(e)}const cc=new TextEncoder;function fc(e){return cc.encode(e)}const dc=1024*8,pc=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),go={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 Go{constructor(t=dc,r={}){Ae(this,"buffer");Ae(this,"byteLength");Ae(this,"byteOffset");Ae(this,"length");Ae(this,"offset");Ae(this,"lastWrittenByte");Ae(this,"littleEndian");Ae(this,"_data");Ae(this,"_mark");Ae(this,"_marks");let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const a=r.offset?r.offset>>>0:0,s=t.byteLength-a;let c=a;(ArrayBuffer.isView(t)||t instanceof Go)&&(t.byteLength!==t.buffer.byteLength&&(c=t.byteOffset+a),t=t.buffer),n?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,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 t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,a=new Uint8Array(n);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=n,this.byteLength=n,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(t=1){return this.readArray(t,"uint8")}readArray(t,r){const n=go[r].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,s=this.buffer.slice(a,a+n);if(this.littleEndian===pc&&r!=="uint8"&&r!=="int8"){const l=new Uint8Array(this.buffer.slice(a,a+n));l.reverse();const u=new go[r](l.buffer);return this.offset+=n,u.reverse(),u}const c=new go[r](s);return this.offset+=n,c}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let r="";for(let n=0;n<t;n++)r+=this.readChar();return r}readUtf8(t=1){return Tl(this.readBytes(t))}decodeText(t=1,r="utf8"){return Tl(this.readBytes(t),r)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let r=0;r<t.length;r++)this._data.setUint8(this.offset++,t[r]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let r=0;r<t.length;r++)this.writeUint8(t.charCodeAt(r));return this}writeUtf8(t){return this.writeBytes(fc(t))}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)}}const Su=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;Su[e]=t}const Ml=4294967295;function gc(e,t,r){let n=e;for(let a=0;a<r;a++)n=Su[(n^t[a])&255]^n>>>8;return n}function mc(e,t){return(gc(Ml,e,t)^Ml)>>>0}function Dl(e,t,r){const n=e.readUint32(),a=mc(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(a!==n)throw new Error(`CRC mismatch for chunk ${r}
3. Expected ${n}, found ${a}`)}function Lu(e,t,r){for(let n=0;n<r;n++)t[n]=e[n]}function Pu(e,t,r,n){let a=0;for(;a<n;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-n]&255}function ku(e,t,r,n){let a=0;if(r.length===0)for(;a<n;a++)t[a]=e[a];else for(;a<n;a++)t[a]=e[a]+r[a]&255}function ju(e,t,r,n,a){let s=0;if(r.length===0){for(;s<a;s++)t[s]=e[s];for(;s<n;s++)t[s]=e[s]+(t[s-a]>>1)&255}else{for(;s<a;s++)t[s]=e[s]+(r[s]>>1)&255;for(;s<n;s++)t[s]=e[s]+(t[s-a]+r[s]>>1)&255}}function Cu(e,t,r,n,a){let s=0;if(r.length===0){for(;s<a;s++)t[s]=e[s];for(;s<n;s++)t[s]=e[s]+t[s-a]&255}else{for(;s<a;s++)t[s]=e[s]+r[s]&255;for(;s<n;s++)t[s]=e[s]+vc(t[s-a],r[s],r[s-a])&255}}function vc(e,t,r){const n=e+t-r,a=Math.abs(n-e),s=Math.abs(n-t),c=Math.abs(n-r);return a<=s&&a<=c?e:s<=c?t:r}function bc(e,t,r,n,a,s){switch(e){case 0:Lu(t,r,a);break;case 1:Pu(t,r,a,s);break;case 2:ku(t,r,n,a);break;case 3:ju(t,r,n,a,s);break;case 4:Cu(t,r,n,a,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}const yc=new Uint16Array([255]),wc=new Uint8Array(yc.buffer),xc=wc[0]===255;function Nc(e){const{data:t,width:r,height:n,channels:a,depth:s}=e,c=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(s/8)*a,u=new Uint8Array(n*r*l);let d=0;for(let m=0;m<7;m++){const y=c[m],A=Math.ceil((r-y.x)/y.xStep),p=Math.ceil((n-y.y)/y.yStep);if(A<=0||p<=0)continue;const T=A*l,I=new Uint8Array(T);for(let M=0;M<p;M++){const k=t[d++],J=t.subarray(d,d+T);d+=T;const X=new Uint8Array(T);bc(k,J,X,I,T,l),I.set(X);for(let rt=0;rt<A;rt++){const mt=y.x+rt*y.xStep,At=y.y+M*y.yStep;if(!(mt>=r||At>=n))for(let It=0;It<l;It++)u[(At*r+mt)*l+It]=X[rt*l+It]}}}if(s===16){const m=new Uint16Array(u.buffer);if(xc)for(let y=0;y<m.length;y++)m[y]=_c(m[y]);return m}else return u}function _c(e){return(e&255)<<8|e>>8&255}const Ac=new Uint16Array([255]),Sc=new Uint8Array(Ac.buffer),Lc=Sc[0]===255,Pc=new Uint8Array(0);function Rl(e){const{data:t,width:r,height:n,channels:a,depth:s}=e,c=Math.ceil(s/8)*a,l=Math.ceil(s/8*a*r),u=new Uint8Array(n*l);let d=Pc,m=0,y,A;for(let p=0;p<n;p++){switch(y=t.subarray(m+1,m+1+l),A=u.subarray(p*l,(p+1)*l),t[m]){case 0:Lu(y,A,l);break;case 1:Pu(y,A,l,c);break;case 2:ku(y,A,d,l);break;case 3:ju(y,A,d,l,c);break;case 4:Cu(y,A,d,l,c);break;default:throw new Error(`Unsupported filter: ${t[m]}`)}d=A,m+=l+1}if(s===16){const p=new Uint16Array(u.buffer);if(Lc)for(let T=0;T<p.length;T++)p[T]=kc(p[T]);return p}else return u}function kc(e){return(e&255)<<8|e>>8&255}const bs=Uint8Array.of(137,80,78,71,13,10,26,10);function ql(e){if(!jc(e.readBytes(bs.length)))throw new Error("wrong PNG signature")}function jc(e){if(e.length<bs.length)return!1;for(let t=0;t<bs.length;t++)if(e[t]!==bs[t])return!1;return!0}const Cc="tEXt",Fc=0,Fu=new TextDecoder("latin1");function Ic(e){if(Ec(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const Oc=/^[\u0000-\u00FF]*$/;function Ec(e){if(!Oc.test(e))throw new Error("invalid latin1 text")}function Bc(e,t,r){const n=Iu(t);e[n]=Tc(t,r-n.length-1)}function Iu(e){for(e.mark();e.readByte()!==Fc;);const t=e.offset;e.reset();const r=Fu.decode(e.readBytes(t-e.offset-1));return e.skip(1),Ic(r),r}function Tc(e,t){return Fu.decode(e.readBytes(t))}const Mr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},mo={UNKNOWN:-1,DEFLATE:0},Ul={UNKNOWN:-1,ADAPTIVE:0},vo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},fs={NONE:0,BACKGROUND:1,PREVIOUS:2},bo={SOURCE:0,OVER:1};class Mc extends Go{constructor(r,n={}){super(r);Ae(this,"_checkCrc");Ae(this,"_inflator");Ae(this,"_png");Ae(this,"_apng");Ae(this,"_end");Ae(this,"_hasPalette");Ae(this,"_palette");Ae(this,"_hasTransparency");Ae(this,"_transparency");Ae(this,"_compressionMethod");Ae(this,"_filterMethod");Ae(this,"_interlaceMethod");Ae(this,"_colorType");Ae(this,"_isAnimated");Ae(this,"_numberOfFrames");Ae(this,"_numberOfPlays");Ae(this,"_frames");Ae(this,"_writingDataChunks");const{checkCrc:a=!1}=n;this._checkCrc=a,this._inflator=new jl,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=mo.UNKNOWN,this._filterMethod=Ul.UNKNOWN,this._interlaceMethod=vo.UNKNOWN,this._colorType=Mr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ql(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeChunk(r,n)}return this.decodeImage(),this._png}decodeApng(){for(ql(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(r,n)}return this.decodeApngImage(),this._apng}decodeChunk(r,n){const a=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(r);break;case"IDAT":this.decodeIDAT(r);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(r);break;case"iCCP":this.decodeiCCP(r);break;case Cc:Bc(this._png.text,this,r);break;case"pHYs":this.decodepHYs();break;default:this.skip(r);break}if(this.offset-a!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?Dl(this,r+4,n):this.skip(4)}decodeApngChunk(r,n){const a=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(r);break;default:this.decodeChunk(r,n),this.offset=a+r;break}if(this.offset-a!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?Dl(this,r+4,n):this.skip(4)}decodeIHDR(){const r=this._png;r.width=this.readUint32(),r.height=this.readUint32(),r.depth=Dc(this.readUint8());const n=this.readUint8();this._colorType=n;let a;switch(n){case Mr.GREYSCALE:a=1;break;case Mr.TRUECOLOUR:a=3;break;case Mr.INDEXED_COLOUR:a=1;break;case Mr.GREYSCALE_ALPHA:a=2;break;case Mr.TRUECOLOUR_ALPHA:a=4;break;case Mr.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=a,this._compressionMethod=this.readUint8(),this._compressionMethod!==mo.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 r={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(r)}
vendor: 1,300 bytes, line 3
3decodePLTE(r){if(r%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${r}`);const n=r/3;this._hasPalette=!0;const a=[];this._palette=a;for(let s=0;s<n;s++)a.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(r){this._writingDataChunks=!0;const n=r,a=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,a,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodeFDAT(r){this._writingDataChunks=!0;let n=r,a=this.offset+this.byteOffset;if(a+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,a,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodetRNS(r){switch(this._colorType){case Mr.GREYSCALE:case Mr.TRUECOLOUR:{if(r%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${r}`);if(r/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${r/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(r/2);for(let n=0;n<r/2;n++)this._transparency[n]=this.readUint16();break}case Mr.INDEXED_COLOUR:{if(r>this._palette.length)throw new Error(`tRNS chunk contains more alph
3a values than there are palette colors (${r} vs ${this._palette.length})`);let n=0;for(;n<r;n++){const a=this.readByte();this._palette[n].push(a)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case Mr.UNKNOWN:case Mr.GREYSCALE_ALPHA:case Mr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(r){const n=Iu(this),a=this.readUint8();if(a!==mo.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${a}`);const s=this.readBytes(r-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:$h(s)}}decodepHYs(){const r=this.readUint32(),n=this.readUint32(),a=this.readByte();this._png.resolution={x:r,y:n,unit:a}}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 r=0;r<this._numberOfFrames;r++){const n={sequenceNumber:this._frames[r].sequenceNumber,delayNumber:this._frames[r].delayNumber,delayDenominator:this._frames[r].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)},a=this._frames.at(r);if(a){if(a.data=Rl({data:a.data,width:a.width,height:a.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),r===0||a.xOffset===0&&a.yOffset===0&&a.width===this._png.width&&a.height===this._png.height)n.data=a.data;else{const s=this._apng.frames.at(r-1);this.disposeFrame(a,s,n),this.addFrameDataToCanvas(n,a)}this._apng.frames.push(n)}}return this._apng}disposeFrame(r,n,a){switch(r.disposeOp){case fs.NONE:break;case fs.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let c=0;c<this._png.width;c++){const l=(s*r.width+c)*this._png.channels;for(let u=0;u<this._png.channels;u++)a.data[l+u]=0}break;case fs.PREVIOUS:a.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(r,n){const a=1<<this._png.depth,s=(c,l)=>{const u=((c+n.yOffset)*this._png.width+n.xOffset+l)*this._png.channels,d=(c*n.width+l)*this._png.channels;return{index:u,frameIndex:d}};switch(n.blendOp){case bo.SOURCE:for(let c=0;c<n.height;c++)for(let l=0;l<n.width;l++){const{index:u,frameIndex:d}=s(c,l);for(let m=0;m<this._png.channels;m++)r.data[u+m]=n.data[d+m]}break;case bo.OVER:for(let c=0;c<n.height;c++)for(let l=0;l<n.width;l++){const{index:u,frameIndex:d}=s(c,l);for(let m=0;m<this._png.channels;m++){const y=n.data[d+this._png.channels-1]/a,A=m%(this._png.channels-1)===0?1:n.data[d+m],p=Math.floor(y*A+(1-y)*r.data[u+m]);r.data[u+m]+=p}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var n;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const r=this._isAnimated?((n=this._frames)==null?void 0:n.at(0)).data:this._inflator.result;if(this._filterMethod!==Ul.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===vo.NO_INTERLACE)this._png.data=Rl({data:r,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===vo.ADAM7)this._png.data=Nc({data:r,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 r=this._inflator.result,n=this._frames.at(-1);n?n.data=r:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:fs.NONE,blendOp:bo.SOURCE,data:r}),this._inflator=new jl,this._writingDataChunks=!1}}function Dc(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var zl;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(zl||(zl={}));function Rc(e,t){return new Mc(e,t).decode()}var ne=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function yo(){ne.console&&typeof ne.console.log=="function"&&ne.console.log.apply(ne.console,arguments)}var je={log:yo,warn:function(e){ne.console&&(typeof ne.console.warn=="function"?ne.console.warn.apply(ne.console,arguments):yo.call(null,arguments))},error:function(e){ne.console&&(typeof ne.console.error=="function"?ne.console.error.apply(ne.console,arguments):yo(e))}};function wo(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){xi(n.response,t,r)},n.onerror=function(){je.error("could not download file")},n.send()}function Wl(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ds(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");
vendor: 3,407 bytes, lines 3-8
3t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var xi=ne.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==ne?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=ne.URL||ne.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener",typeof e=="string"?(a.href=e,a.origin!==location.origin?Wl(a.href)?wo(e,t,r):ds(a,a.target="_blank"):ds(a)):(a.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){ds(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(Wl(e))wo(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){ds(n)})}else navigator.msSaveOrOpenBlob(function(a,s){return s===void 0?s={autoBom:!1}:Se(s)!=="object"&&(je.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return wo(e,t,r);var a=e.type==="application/octet-stream",s=/constructor/i.test(ne.HTMLElement)||ne.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&s)&&(typeof FileReader>"u"?"undefined":Se(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=c?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=m:location=m,n=null},l.readAsDataURL(e)}else{var u=ne.URL||ne.webkitURL,d=u.createObjectURL(e);n?n.location=d:location.href=d,n=null,setTimeout(function(){u.revokeObjectURL(d)},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 Ou(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],n=0;n<r.length;n++){var a=r[n].re,s=r[n].process,c=a.exec(e);c&&(t=s(c),this.r=t[0],this.g=t[1],this.b=t[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 l=this.r.toString(16),u=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),d.length==1&&(d="0"+d),"#"+l+u+d}}var ys=ne.atob.bind(ne),Hl=ne.btoa.bind(ne);/** 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 xo(e,t){var r=e[0],n=e[1],a=e[2],s=e[3];r=vr(r,n,a,s,t[0],7,-680876936),s=vr(s,r,n,a,t[1],12,-389564586),a=vr(a,s,r,n,t[2],17,606105819),n=vr(n,a,s,r,t[3],22,-1044525330),r=vr(r,n,a,s,t[4],7,-176418897),s=vr(s,r,n,a,t[5],12,1200080426),a=vr(a,s,r,n,t[6],17,-1473231341),n=vr(n,a,s,r,t[7],22,-45705983),r=vr(r,n,a,s,t[8],7,1770035416),s=vr(s,r,n,a,t[9],12,-1958414417),a=vr(a,s,r,n,t[10],17,-42063),n=vr(n,a,s,r,t[11],22,-1990404162),r=vr(r,n,a,s,t[12],7,1804603682),s=vr(s,r,n,a,t[13],12,-40341101),a=vr(a,s,r,n,t[14],17,-1502002290),r=br(r,n=vr(n,a,s,r,t[15],22,1236535329),a,s,t[1],5,-165796510),s=br(s,r,n,a,t[6],9,-1069501632),a=br(a,s,r,n,t[11],14,643717713),n=br(n,a,s,r,t[0],20,-373897302),r=br(r,n,a,s,t[5],5,-701558691),s=br(s,r,n,a,t[10],9,38016083),a=br(a,s,r,n,t[15],14,-660478335),n=br(n,a,s,r,t[4],20,-405537848),r=br(r,n,a,s,t[9],5,568446438),s=br(s,r,n,a,t[14],9,-1019803690),a=br(a,s,r,n,t[3],14,-187363961),n=br(n,a,s,r,t[8],20,1163531501),r=br(r,n,a,s,t[13],5,-1444681467),s=br(s,r,n,a,t[2],9,-51403784),a=br(a,s,r,n,t[7],14,1735328473),r=yr(r,n=br(n,a,s,r,t[12],20,-1926607734),a,s,t[5],4,-378558),s=yr(s,r,n,a,t[8],11,-2022574463),a=yr(a,s,r,n,t[11],16,1839030562),n=yr(n,a,s,r,t[14],23,-35309556),r=yr(r,n,a,s,t[1],4,-1530992060),s=yr(s,r,n,a,t[4],11,1272893353),a=yr(a,s,r,n,t[7],16,-155497632),n=yr(n,a,s,r,t[10],23,-1094730640),r=yr(r,n,a,s,t[13],4,681279174),s=yr(s,r,n,a,t[0],11,-358537222),a=yr(a,s,r,n,t[3],16,-722521979),n=yr(n,a,s,r,t[6],23,76029189),r=yr(r,n,a,s,t[9],4,-640364487),s=yr(s,r,n,a,t[12],11,-421815835),a=yr(a,s,r,n,t[15],16,530742520),r=wr(r,n=yr(n,a,s,r,t[2],23,-995338651),a,s,t[0],6,-198630844),s=wr(s,r,n,a,t[7],10,1126891415),a=wr(a,s,r,n,t[14],15,-1416354905),n=wr(n,a,s,r,t[5],21,-57434055),r
vendor: 8,343 bytes, lines 16-33
16=wr(r,n,a,s,t[12],6,1700485571),s=wr(s,r,n,a,t[3],10,-1894986606),a=wr(a,s,r,n,t[10],15,-1051523),n=wr(n,a,s,r,t[1],21,-2054922799),r=wr(r,n,a,s,t[8],6,1873313359),s=wr(s,r,n,a,t[15],10,-30611744),a=wr(a,s,r,n,t[6],15,-1560198380),n=wr(n,a,s,r,t[13],21,1309151649),r=wr(r,n,a,s,t[4],6,-145523070),s=wr(s,r,n,a,t[11],10,-1120210379),a=wr(a,s,r,n,t[2],15,718787259),n=wr(n,a,s,r,t[9],21,-343485551),e[0]=Qn(r,e[0]),e[1]=Qn(n,e[1]),e[2]=Qn(a,e[2]),e[3]=Qn(s,e[3])}function js(e,t,r,n,a,s){return t=Qn(Qn(t,e),Qn(n,s)),Qn(t<<a|t>>>32-a,r)}function vr(e,t,r,n,a,s,c){return js(t&r|~t&n,e,t,a,s,c)}function br(e,t,r,n,a,s,c){return js(t&n|r&~n,e,t,a,s,c)}function yr(e,t,r,n,a,s,c){return js(t^r^n,e,t,a,s,c)}function wr(e,t,r,n,a,s,c){return js(r^(t|~n),e,t,a,s,c)}function Eu(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)xo(n,qc(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(xo(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*r,xo(n,a),n}function qc(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var Vl="0123456789abcdef".split("");function Uc(e){for(var t="",r=0;r<4;r++)t+=Vl[e>>8*r+4&15]+Vl[e>>8*r&15];return t}function zc(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function To(e){return Eu(e).map(zc).join("")}var Wc=function(e){for(var t=0;t<e.length;t++)e[t]=Uc(e[t]);return e.join("")}(Eu("hello"))!="5d41402abc4b2a76b9719d911017c592";function Qn(e,t){if(Wc){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&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 Mo(e,t){var r,n,a,s;if(e!==r){for(var c=(a=e,s=1+(256/e.length|0),new Array(s+1).join(a)),l=[],u=0;u<256;u++)l[u]=u;var d=0;for(u=0;u<256;u++){var m=l[u];d=(d+m+c.charCodeAt(u))%256,l[u]=l[d],l[d]=m}r=e,n=l}else l=n;var y=t.length,A=0,p=0,T="";for(u=0;u<y;u++)p=(p+(m=l[A=(A+1)%256]))%256,l[A]=l[p],l[p]=m,c=l[(l[A]+l[p])%256],T+=String.fromCharCode(t.charCodeAt(u)^c);return T}/** 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 Gl={print:4,modify:8,copy:16,"annot-forms":32};function Xi(e,t,r,n){this.v=1,this.r=2;var a=192;e.forEach(function(l){if(Gl.perm!==void 0)throw new Error("Invalid permission: "+l);a+=Gl[l]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var s=(t+this.padding).substr(0,32),c=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,c),this.P=-(1+(255^a)),this.encryptionKey=To(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Mo(this.encryptionKey,this.padding)}function Zi(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var a=e.charCodeAt(n);t+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):e[n]}return t}function Yl(e){if(Se(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,a){if(a=a||!1,typeof r!="string"||typeof n!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var s=Math.random().toString(35);return t[r][s]=[n,!!a],s},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var s in t[r]){var c=t[r][s];try{c[0].apply(e,n)}catch(l){ne.console&&je.error("jsPDF PubSub Error",l.message,l)}c[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Ss(e){if(!(this instanceof Ss))return new Ss(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function Bu(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ni(e,t,r,n,a){if(!(this instanceof Ni))return new Ni(e,t,r,n,a);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,Bu.call(this,n,a)}function Qi(e,t,r,n,a){if(!(this instanceof Qi))return new Qi(e,t,r,n,a);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,Bu.call(this,n,a)}function Ht(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],a=arguments[2],s=arguments[3],c=[],l=1,u=16,d="S",m=null;Se(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,a=e.format||a,s=e.compress||e.compressPdf||s,(m=e.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(u=e.floatPrecision),d=e.defaultPathOperation||"S"),c=e.filters||(s===!0?["FlateEncode"]:c),n=n||"mm",r=(""+(r||"P")).toLowerCase();var y=e.putOnlyUsedFonts||!1,A={},p={internal:{},__private__:{}};p.__private__.PubSub=Yl;var T="1.3",I=p.__private__.getPdfVersion=function(){return T};p.__private__.setPdfVersion=function(h){T=h};var M={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return M};var k=p.__private__.getPageFormat=function(h){return M[h]};a=a||"a4";var J="compat",X="advanced",rt=J;function mt(){this.saveGraphicsState(),P(new te(Zt,0,0,-Zt,0,oi()*Zt).toString()+" cm"),this.setFontSize(this.getFontSize()/Zt),d="n",rt=X}function At(){this.restoreGraphicsState(),d="S",rt=J}var It=p.__private__.combineFontStyleAndFontWeight=function(h,v){if(h=="bold"&&v=="normal"||h=="bold"&&v==400||h=="normal"&&v=="italic"||h=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(h=v==400||v==="normal"?h==="italic"?"italic":"normal":v!=700&&v!=="bold"||h!=="normal"?(v==700?"bold":v)+""+h:"bold"),h};p.advancedAPI=function(h){var v=rt===J;return v&&mt.call(this),typeof h!="function"||(h(this),v&&At.call(this)),this},p.compatAPI=function(h){var v=rt===X;return v&&At.call(this),typeof h!="function"||(h(this),v&&mt.call(this)),this},p.isAdvancedAPI=function(){return rt===X};var nt,W=function(h){if(rt!==X)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},gt=p.roundToPrecision=p.__private__.roundToPrecision=function(h,v){var j=t||v;if(isNaN(h)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(j).replace(/0+$/,"")};nt=p.hpf=p.__private__.hpf=typeof u=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(h,u)}:u==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to
33jsPDF.hpf");return gt(h,16)};var L=p.f2=p.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return gt(h,2)},O=p.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return gt(h,3)},z=p.scale=p.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return rt===J?h*Zt:rt===X?h:void 0},q=function(h){return z(function(v){return rt===J?oi()-v:rt===X?v:void 0}(h))};p.__private__.setPrecision=p.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(t=parseInt(h,10))};var it,ot="00000000000000000000000000000000",lt=p.__private__.getFileId=function(){return ot},tt=p.__private__.setFileId=function(h){return ot=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():ot.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(lr=new Xi(m.userPermissions,m.userPassword,m.ownerPassword,ot)),ot};p.setFileId=function(h){return tt(h),this},p.getFileId=function(){return lt()};var ct=p.__private__.convertDateToPDFDate=function(h){var v=h.getTimezoneOffset(),j=v<0?"+":"-",R=Math.floor(Math.abs(v/60)),$=Math.abs(v%60),ut=[j,D(R),"'",D($),"'"].join("");return["D:",h.getFullYear(),D(h.getMonth()+1),D(h.getDate()),D(h.getHours()),D(h.getMinutes()),D(h.getSeconds()),ut].join("")},St=p.__private__.convertPDFDateToDate=function(h){var v=parseInt(h.substr(2,4),10),j=parseInt(h.substr(6,2),10)-1,R=parseInt(h.substr(8,2),10),$=parseInt(h.substr(10,2),10),ut=parseInt(h.substr(12,2),10),bt=parseInt(h.substr(14,2),10);return new Date(v,j,R,$,ut,bt,0)},vt=p.__private__.setCreationDate=function(h){var v;if(h===void 0&&(h=new Date),h instanceof Date)v=ct(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=h}return it=v},N=p.__private__.getCreationDate=function(h){var v=it;return h==="jsDate"&&(v=St(it)),v};p.setCreationDate=function(h){return vt(h),this},p.getCreationDate=function(h){return N(h)};var B,D=p.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},H=p.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},Y=0,Z=[],at=[],st=0,pt=[],Nt=[],Ot=!1,Ft=at;p.__private__.setCustomOutputDestination=function(h){Ot=!0,Ft=h};var Vt=function(h){Ot||(Ft=h)};p.__private__.resetCustomOutputDestination=function(){Ot=!1,Ft=at};var P=p.__private__.out=function(h){return h=h.toString(),st+=h.length+1,Ft.push(h),Ft},jt=p.__private__.write=function(h){return P(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},se=p.__private__.getArrayBuffer=function(h){for(var v=h.length,j=new ArrayBuffer(v),R=new Uint8Array(j);v--;)R[v]=h.charCodeAt(v);return j},$t=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return $t};var wt=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(h){return wt=rt===X?h/Zt:h,this};var Xt,Et=p.__private__.getFontSize=p.getFontSize=function(){return rt===J?wt:wt*Zt},Jt=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(h){return Jt=h,this},p.__private__.getR2L=p.getR2L=function(){return Jt};var Gt,pe=p.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Xt=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');Xt=h}else Xt=parseInt(h,10)};p.__private__.getZoomMode=function(){return Xt};var U,Lt=p.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');Gt=h};p.__private__.getPageMode=function(){return Gt};var Kt=p.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');U=h};p.__private__.getLayoutMode=function(){return U},p.__private__.setDisplayMode=p.setDisplayMode=function(h,v,j){return pe(h),Kt(v),Lt(j),this};var Tt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(h){if(Object.keys(Tt).indexOf(h)===-1)throw new Error("Invalid argument passed to
33jsPDF.getDocumentProperty");return Tt[h]},p.__private__.getDocumentProperties=function(){return Tt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(h){for(var v in Tt)Tt.hasOwnProperty(v)&&h[v]&&(Tt[v]=h[v]);return this},p.__private__.setDocumentProperty=function(h,v){if(Object.keys(Tt).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Tt[h]=v};var Ct,Zt,Mt,Me,ge,he={},_t={},xe=[],Yt={},Ce={},ee={},oe={},De=null,de=0,Qt=[],we=new Yl(p),ei=e.hotfixes||[],fr={},vn={},nn=[],te=function h(v,j,R,$,ut,bt){if(!(this instanceof h))return new h(v,j,R,$,ut,bt);isNaN(v)&&(v=1),isNaN(j)&&(j=0),isNaN(R)&&(R=0),isNaN($)&&($=1),isNaN(ut)&&(ut=0),isNaN(bt)&&(bt=0),this._matrix=[v,j,R,$,ut,bt]};Object.defineProperty(te.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(te.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(te.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(te.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(te.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(te.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(te.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(te.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(te.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(te.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(te.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(te.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(te.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(te.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(te.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(te.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),te.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(nt).join(h)},te.prototype.multiply=function(h){var v=h.sx*this.sx+h.shy*this.shx,j=h.sx*this.shy+h.shy*this.sy,R=h.shx*this.sx+h.sy*this.shx,$=h.shx*this.shy+h.sy*this.sy,ut=h.tx*this.sx+h.ty*this.shx+this.tx,bt=h.tx*this.shy+h.ty*this.sy+this.ty;return new te(v,j,R,$,ut,bt)},te.prototype.decompose=function(){var h=this.sx,v=this.shy,j=this.shx,R=this.sy,$=this.tx,ut=this.ty,bt=Math.sqrt(h*h+v*v),qt=(h/=bt)*j+(v/=bt)*R;j-=h*qt,R-=v*qt;var Rt=Math.sqrt(j*j+R*R);return qt/=Rt,h*(R/=Rt)<v*(j/=Rt)&&(h=-h,v=-v,qt=-qt,bt=-bt),{scale:new te(bt,0,0,Rt,0,0),translate:new te(1,0,0,1,$,ut),rotate:new te(h,v,-v,h,0,0),skew:new te(1,0,qt,1,0,0)}},te.prototype.toString=function(h){return this.join(" ")},te.prototype.inversed=function(){var h=this.sx,v=this.shy,j=this.shx,R=this.sy,$=this.tx,ut=this.ty,bt=1/(h*R-v*j),qt=R*bt,Rt=-v*bt,ie=-j*bt,le=h*bt;return new te(qt,Rt,ie,le,-qt*$-ie*ut,-Rt*$-le*ut)},te.prototype.applyToPoint=function(h){var v=h.x*this.sx+h.y*this.shx+this.tx,j=h.x*this.shy+h.y*this.sy+this.ty;return new si(v,j)},te.prototype.applyToRectangle=function(h){var v=this.applyToPoint(h),j=this.applyToPoint(new si(h.x+h.w,h.y+h.h));return new da(v.x,v.y,j.x-v.x,j.y-v.y)},te.prototype.clone=function(){var h=this.sx,v=this.shy,j=this.shx,R=this.sy,$=this.tx,ut=this.ty;return new te(h,v,j,R,$,ut)},p.Matrix=te;var bn=p.matrixMult=function(h,v){return v.multiply(h)},yn=new te(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=yn;var Rr=function(h,v){if(!Ce[h]){var j=(v instanceof Ni?"Sh":"P")+(Object.keys(Yt).length+1).toString(10);v.id=j,Ce[h]=j,Yt[j]=v,we.publish("addPattern",v)}};p.ShadingPattern=Ni,p.TilingPattern=Qi,p.addShadingPattern=function(h,v){return W("addShadingPattern()"),Rr(h,v),this},p.beginTilingPattern=function(h){W("beginTilingPattern()"),pa(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix
vendor: 15,356 bytes, lines 33-38
33)},p.endTilingPattern=function(h,v){W("endTilingPattern()"),v.stream=Nt[B].join(` 34`),Rr(h,v),we.publish("endTilingPattern",v),nn.pop().restore()};var qr,ze=p.__private__.newObject=function(){var h=ar();return or(h,!0),h},ar=p.__private__.newObjectDeferred=function(){return Y++,Z[Y]=function(){return st},Y},or=function(h,v){return v=typeof v=="boolean"&&v,Z[h]=st,v&&P(h+" 0 obj"),h},ri=p.__private__.newAdditionalObject=function(){var h={objId:ar(),content:""};return pt.push(h),h},En=ar(),Gr=ar(),an=p.__private__.decodeColorString=function(h){var v=h.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length!==5||v[4]!=="k"&&v[4]!=="K"||(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var j=parseFloat(v[0]);v=[j,j,j,"r"]}for(var R="#",$=0;$<3;$++)R+=("0"+Math.floor(255*parseFloat(v[$])).toString(16)).slice(-2);return R},Yr=p.__private__.encodeColorString=function(h){var v;typeof h=="string"&&(h={ch1:h});var j=h.ch1,R=h.ch2,$=h.ch3,ut=h.ch4,bt=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof j=="string"&&j.charAt(0)!=="#"){var qt=new Ou(j);if(qt.ok)j=qt.toHex();else if(!/^\d*\.?\d*$/.test(j))throw new Error('Invalid color "'+j+'" passed to jsPDF.encodeColorString.')}if(typeof j=="string"&&/^#[0-9A-Fa-f]{3}$/.test(j)&&(j="#"+j[1]+j[1]+j[2]+j[2]+j[3]+j[3]),typeof j=="string"&&/^#[0-9A-Fa-f]{6}$/.test(j)){var Rt=parseInt(j.substr(1),16);j=Rt>>16&255,R=Rt>>8&255,$=255&Rt}if(R===void 0||ut===void 0&&j===R&&R===$)v=typeof j=="string"?j+" "+bt[0]:h.precision===2?L(j/255)+" "+bt[0]:O(j/255)+" "+bt[0];else if(ut===void 0||Se(ut)==="object"){if(ut&&!isNaN(ut.a)&&ut.a===0)return["1.","1.","1.",bt[1]].join(" ");v=typeof j=="string"?[j,R,$,bt[1]].join(" "):h.precision===2?[L(j/255),L(R/255),L($/255),bt[1]].join(" "):[O(j/255),O(R/255),O($/255),bt[1]].join(" ")}else v=typeof j=="string"?[j,R,$,ut,bt[2]].join(" "):h.precision===2?[L(j),L(R),L($),L(ut),bt[2]].join(" "):[O(j),O(R),O($),O(ut),bt[2]].join(" ");return v},$r=p.__private__.getFilters=function(){return c},Ur=p.__private__.putStream=function(h){var v=(h=h||{}).data||"",j=h.filters||$r(),R=h.alreadyAppliedFilters||[],$=h.addLength1||!1,ut=v.length,bt=h.objectId,qt=function(Ee){return Ee};if(m!==null&&bt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(qt=lr.encryptor(bt,0));var Rt={};j===!0&&(j=["FlateEncode"]);var ie=h.additionalKeyValues||[],le=(Rt=Ht.API.processDataByFilters!==void 0?Ht.API.processDataByFilters(v,j):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(R)?R.join(" "):R.toString());if(Rt.data.length!==0&&(ie.push({key:"Length",value:Rt.data.length}),$===!0&&ie.push({key:"Length1",value:ut})),le.length!=0)if(le.split("/").length-1==1)ie.push({key:"Filter",value:le});else{ie.push({key:"Filter",value:"["+le+"]"});for(var ve=0;ve<ie.length;ve+=1)if(ie[ve].key==="DecodeParms"){for(var Qe=[],Pe=0;Pe<Rt.reverseChain.split("/").length-1;Pe+=1)Qe.push("null");Qe.push(ie[ve].value),ie[ve].value="["+Qe.join(" ")+"]"}}P("<<");for(var Le=0;Le<ie.length;Le++)P("/"+ie[Le].key+" "+ie[Le].value);P(">>"),Rt.data.length!==0&&(P("stream"),P(qt(Rt.data)),P("endstream"))},ni=p.__private__.putPage=function(h){var v=h.number,j=h.data,R=h.objId,$=h.contentsObjId;or(R,!0),P("<</Type /Page"),P("/Parent "+h.rootDictionaryObjId+" 0 R"),P("/Resources "+h.resourceDictionaryObjId+" 0 R"),P("/MediaBox ["+parseFloat(nt(h.mediaBox.bottomLeftX))+" "+parseFloat(nt(h.mediaBox.bottomLeftY))+" "+nt(h.mediaBox.topRightX)+" "+nt(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&P("/CropBox ["+nt(h.cropBox.bottomLeftX)+" "+nt(h.cropBox.bottomLeftY)+" "+nt(h.cropBox.topRightX)+" "+nt(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&P("/BleedBox ["+nt(h.bleedBox.bottomLeftX)+" "+nt(h.bleedBox.bottomLeftY)+" "+nt(h.bleedBox.topRightX)+" "+nt(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&P("/TrimBox ["+nt(h.trimBox.bottomLeftX)+" "+nt(h.trimBox.bottomLeftY)+" "+nt(h.trimBox.topRightX)+" "+nt(h.trimBox.topRightY)+"]"),h.artBox!==null&&P("/ArtBox ["+nt(h.artBox.bottomLeftX)+" "+nt(h.artBox.bottomLeftY)+" "+nt(h.artBox.topRightX)+" "+nt(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&P("/UserUnit "+h.userUnit),we.publish("putPage",{objId:R,pageContext:Qt[v],pageNumber:v,page:j}),P("/Contents "+$+" 0 R"),P(">>"),P("endobj");var ut=j.join(` 35`);return rt===X&&(ut+=` 36Q`),or($,!0),Ur({data:ut,filters:$r(),objectId:$}),P("endobj"),R},sn=p.__private__.putPages=function(){var h,v,j=[];for(h=1;h<=de;h++)Qt[h].objId=ar(),Qt[h].contentsObjId=ar();for(h=1;h<=de;h++)j.push(ni({number:h,data:Nt[h],objId:Qt[h].objId,contentsObjId:Qt[h].contentsObjId,mediaBox:Qt[h].mediaBox,cropBox:Qt[h].cropBox,bleedBox:Qt[h].bleedBox,trimBox:Qt[h].trimBox,artBox:Qt[h].artBox,userUnit:Qt[h].userUnit,rootDictionaryObjId:En,resourceDictionaryObjId:Gr}));or(En,!0),P("<</Type /Pages");var R="/Kids [";for(v=0;v<de;v++)R+=j[v]+" 0 R ";P(R+"]"),P("/Count "+de),P(">>"),P("endobj"),we.publish("postPutPages")},ii=function(h){we.publish("putFont",{font:h,out:P,newObject:ze,putStream:Ur}),h.isAlreadyPutted!==!0&&(h.objectNumber=ze(),P("<<"),P("/Type /Font"),P("/BaseFont /"+Zi(h.postScriptName)),P("/Subtype /Type1"),typeof h.encoding=="string"&&P("/Encoding /"+h.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"))},Pi=function(h){h.objectNumber=ze();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[nt(h.x),nt(h.y),nt(h.x+h.width),nt(h.y+h.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var j=h.pages[1].join(` 37`);Ur({data:j,additionalKeyValues:v,objectId:h.objectNumber}),P("endobj")},ki=function(h,v){v||(v=21);var j=ze(),R=function(bt,qt){var Rt,ie=[],le=1/(qt-1);for(Rt=0;Rt<1;Rt+=le)ie.push(Rt);if(ie.push(1),bt[0].offset!=0){var ve={offset:0,color:bt[0].color};bt.unshift(ve)}if(bt[bt.length-1].offset!=1){var Qe={offset:1,color:bt[bt.length-1].color};bt.push(Qe)}for(var Pe="",Le=0,Ee=0;Ee<ie.length;Ee++){for(Rt=ie[Ee];Rt>bt[Le+1].offset;)Le++;var qe=bt[Le].offset,Ue=(Rt-qe)/(bt[Le+1].offset-qe),dr=bt[Le].color,Sn=bt[Le+1].color;Pe+=H(Math.round((1-Ue)*dr[0]+Ue*Sn[0]).toString(16))+H(Math.round((1-Ue)*dr[1]+Ue*Sn[1]).toString(16))+H(Math.round((1-Ue)*dr[2]+Ue*Sn[2]).toString(16))}return Pe.trim()}(h.colors,v),$=[];$.push({key:"FunctionType",value:"0"}),$.push({key:"Domain",value:"[0.0 1.0]"}),$.push({key:"Size",value:"["+v+"]"}),$.push({key:"BitsPerSample",value:"8"}),$.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ur({data:R,additionalKeyValues:$,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:j}),P("endobj"),h.objectNumber=ze(),P("<< /ShadingType "+h.type),P("/ColorSpace /DeviceRGB");var ut="/Coords ["+nt(parseFloat(h.coords[0]))+" "+nt(parseFloat(h.coords[1]))+" ";h.type===2?ut+=nt(parseFloat(h.coords[2]))+" "+nt(parseFloat(h.coords[3])):ut+=nt(parseFloat(h.coords[2]))+" "+nt(parseFloat(h.coords[3]))+" "+nt(parseFloat(h.coords[4]))+" "+nt(parseFloat(h.coords[5])),P(ut+="]"),h.matrix&&P("/Matrix ["+h.matrix.toString()+"]"),P("/Function "+j+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj")},ji=function(h,v){var j=ar(),R=ze();v.push({resourcesOid:j,objectOid:R}),h.objectNumber=R;var $=[];$.push({key:"Type",value:"/Pattern"}),$.push({key:"PatternType",value:"1"}),$.push({key:"PaintType",value:"1"}),$.push({key:"TilingType",value:"1"}),$.push({key:"BBox",value:"["+h.boundingBox.map(nt).join(" ")+"]"}),$.push({key:"XStep",value:nt(h.xStep)}),$.push({key:"YStep",value:nt(h.yStep)}),$.push({key:"Resources",value:j+" 0 R"}),h.matrix&&$.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Ur({data:h.stream,additionalKeyValues:$,objectId:h.objectNumber}),P("endobj")},Fs=function(h){for(var v in h.objectNumber=ze(),P("<<"),h)switch(v){case"opacity":P("/ca "+L(h[v]));break;case"stroke-opacity":P("/CA "+L(h[v]))}P(">>"),P("endobj")},aa=function(h){or(h.resourcesOid,!0),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var v in P("/Font <<"),he)he.hasOwnProperty(v)&&(y===!1||y===!0&&A.hasOwnProperty(v))&&P("/"+v+" "+he[v].objectNumber+" 0 R");P(">>")}(),function(){if(Object.keys(Yt).length>0){for(var v in P("/Shading <<"),Yt)Yt.hasOwnProperty(v)&&Yt[v]instanceof Ni&&Yt[v].objectNumber>=0&&P("/"+v+" "+Yt[v].objectNumber+" 0 R");we.publish("putShadingPatternDict"),P(">>")}}(),function(v){if(Object.keys(Yt).length>0){for(var j in P("/Pattern <<"),Yt)Yt.hasOwnProperty(j)&&Yt[j]instanceof p.TilingPattern&&Yt[j].objectNumber>=0&&Yt[j].objectNumber<v&&P("/"+j+" "+Yt[j].objectNumber+" 0 R");we.publish("putTilingPatternDict"),P(">>")}}(h.objectOid),function(){if(Object.keys(ee).length>0){var v;for(v in P("/ExtGState <<"),ee)ee.hasOwnProperty(v)&&ee[v].objectNumber>=0&&P("/"+v+" "+ee[v].objectNumber+" 0 R");we.publish("putGStateDict"),P(">>")}}(),function(){for(var v in P("/XObject <<"),fr)fr.hasOwnProperty(v)&&fr[v].objectNumber>=0&&P("/"+v+" "+fr[v].objectNumber+" 0 R");we.publish("putXobjectDict"),P(">>")}(),P(">>"),P("endobj")},Ia=function(h){_t[h.fontName]=_t[h.fontName]||{},_t[h.fontName][h.fontStyle]=h.id},Oa=function(h,v,j,R,$){var ut={id:"F"+(Object.keys(he).length+1).toString(10),postScriptName:h,fontName:v,fontStyle:j,encoding:R,isStandardFont:$||!1,metadata:{}};return we.publish("addFont",{font:ut,instance:this}),he[ut.id]=ut,Ia(ut),ut.id},zr=p.__private__.pdfEscape=p.pdfEscape=function(h,v){return function(j,R){var $,ut,bt,qt,Rt,ie,le,ve,Qe;if(bt=(R=R||{}).sourceEncoding||"Unicode",Rt=R.outputEncoding,(R.autoencode||Rt)&&he[Ct].metadata&&he[Ct].metadata[bt]&&he[Ct].metadata[bt].encoding&&(qt=he[Ct].metadata[bt].encoding,!Rt&&he[Ct].encoding&&(Rt=he[Ct].encoding),!Rt&&qt.codePages&&(Rt=qt.codePages[0]),typeof Rt=="string"&&(Rt=qt[Rt]),Rt)){for(le=!1,ie=[],$=0,ut=j.length;$<ut;$++)(ve=Rt[j.charCodeAt($)])?ie.push(String.fromCharCode(ve)):ie.push(j[$]),ie[$].charCodeAt(0)>>8&&(le=!0);j=ie.join("")}for($=j.length;le===void 0&&$!==0;)j.charCodeAt($-1)>>8&&(le=!0),$--;if(!le)return j;for(ie=R.noBOM?[]:[254,255],$=0,ut=j.length;$<ut;$++){if((Qe=(ve=j.charCodeAt($))>>8)>>8)throw new Error("Character at position "+$+" of string '"+j+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ie.push(Qe),ie.push(ve-(Qe<<8))}return String.fromCharCode.apply(void 0,ie)}(h,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},sa=p.__private__.beginPage=function(h){Nt[++de]=[],Qt[de]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Ba(de),Vt(Nt[B])},Ea=function(h,v){var j,R,$;switch(r=v||r,typeof h=="string"&&(j=k(h.toLowerCase()),Array.isArray(j)&&(R=j[0],$=j[1])),Array.isArray(h)&&(R=h[0]*Zt,$=h[1]*Zt),isNaN(R)&&(R=a[0],$=a[1]),(R>14400||$>14400)&&(je.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),R=Math.min(14400,R),$=Math.min(14400,$)),a=[R,$],r.substr(0,1)){case"l":$>R&&(a=[$,R]);break;case"p":R>$&&(a=[$,R])}sa(a),Us(re),P(Bi),ca!==0&&P(ca+" J"),Mn!==0&&P(Mn+" j"),we.publish("addPage",{pageNumber:de})},oa=function(h){h>0&&h<=de&&(Nt.splice(h,1),Qt.splice(h,1),de--,B>de&&(B=de),this.setPage(B))},Ba=function(h){h>0&&h<=de&&(B=h)},Ta=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},Ma=function(h,v,j){var R,$=void 0;return j=j||{},h=h!==void 0?h:he[Ct].fontName,v=v!==void 0?v:he[Ct].fontStyle,R=h.toLowerCase(),_t[R]!==void 0&&_t[R][v]!==void 0?$=_t[R][v]:_t[h]!==void 0&&_t[h][v]!==void 0?$=_t[h][v]:j.disableWarning===!1&&je.warn("Unable to look up font label for font '"+h+"', '"+v+"'. Refer to getFontList() for available fonts."),$||j.noFallback||($=_t.times[v])==null&&($=_t.times.normal),$},on=p.__private__.putInfo=function(){var h=ze(),v=function(R){return R};for(var j in m!==null&&(v=lr.encryptor(h,0)),P("<<"),P("/Producer ("+zr(v("jsPDF "+Ht.version))+")"),Tt)Tt.hasOwnProperty(j)&&Tt[j]&&P("/"+j.substr(0,1).toUpperCase()+j.substr(1)+" ("+zr(v(Tt[j]))+")");P("/CreationDate ("+zr(v(it))+")"),P(">>"),P("endobj")},Ci=p.__private__.putCatalog=function(h){var v=(h=h||{}).rootDictionaryObjId||En;switch(ze(),P("<<"),P("/Type /Catalog"),P("/Pages "+v+" 0 R"),Xt||(Xt="fullwidth"),Xt){case"fullwidth":P("/OpenAction [3 0 R /FitH null]");break;case"fullheight":P("/OpenAction [3 0 R /FitV null]");break;case"fullpage":P("/OpenAction [3 0 R /Fit]");break;case"original":P("/OpenAction [3 0 R /XYZ null null 1]");break;default:var j=""+Xt;j.substr(j.length-1)==="%"&&(Xt=parseInt(Xt)/100),typeof Xt=="number"&&P("/OpenAction [3 0 R /XYZ null null "+L(Xt)+"]")}switch(U||(U="continuous"),U){case"continuous":P("/PageLayout /OneColumn");break;case"single":P("/PageLayout /SinglePage");break;case"two":case"twoleft":P("/PageLayout /TwoColumnLeft");break;case"tworight":P("/PageLayout /TwoColumnRight")}Gt&&P("/PageMode /"+Gt),we.publish("putCatalog"),P(">>"),P("endobj")},Is=p.__private__.putTrailer=function(){P("trailer"),P("<<"),P("/Size "+(Y+1)),P("/Root "+Y+" 0 R"),P("/Info "+(Y-1)+" 0 R"),m!==null&&P("/Encrypt "+lr.oid+" 0 R"),P("/ID [ <"+ot+"> <"+ot+"> ]"),P(">>")},Ze=p.__private__.putHeader=function(){P("%PDF-"+T),P("%ºÃˆ ")},Da=p.__private__.putXRef=function(){var h="0000000000";P("xref"),P("0 "+(Y+1)),P("0000000000 65535 f ");for(var v=1;v<=Y;v++)typeof Z[v]=="function"?P((h+Z[v]()).slice(-10)+" 00000 n "):Z[v]!==void 0?P((h+Z[v]).slice(-10)+" 00000 n "):P("0000000000 00000 n ")},ln=p.__private__.buildDocument=function(){var h;Y=0,st=0,at=[],Z=[],pt=[],En=ar(),Gr=ar(),Vt(at),we.publish("buildDocument"),Ze(),sn(),function(){we.publish("putAdditionalObjects");for(var j=0;j<pt.length;j++){var R=pt[j];or(R.objId,!0),P(R.content),P("endobj")}we.publish("postPutAdditionalObjects")}(),h=[],function(){for(var j in he)he.hasOwnProperty(j)&&(y===!1||y===!0&&A.hasOwnProperty(j))&&ii(he[j])}(),function(){var j;for(j in ee)ee.hasOwnProperty(j)&&Fs(ee[j])}(),function(){for(var j in fr)fr.hasOwnProperty(j)&&Pi(fr[j])}(),function(j){var R;for(R in Yt)Yt.hasOwnProperty(R)&&(Yt[R]instanceof Ni?ki(Yt[R]):Yt[R]instanceof Qi&&ji(Yt[R],j))}(h),we.publish("putResources"),h.forEach(aa),aa({resourcesOid:Gr,objectOid:Number.MAX_SAFE_INTEGER}),we.publish("postPutResources"),m!==null&&(lr.oid=ze(),P("<<"),P("/Filter /Standard"),P("/V "+lr.v),P("/R "+lr.r),P("/U <"+lr.toHexString(lr.U)+">"),P("/O <"+lr.toHexString(lr.O)+">"),P("/P "+lr.P),P(">>"),P("endobj")),on(),Ci();var v=st;return Da(),Is(),P("startxref"),P(""+v),P("%%EOF"),Vt(Nt[B]),at.join(` 38`)},Fi=p.__private__.getBlob=function(h){return new Blob([se(h)],{type:"application/pdf"})},la=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},Cr=function(h){var v,j=h.document,R=j.documentElement,$=j.head,ut=j.body;return $||($=j.createElement("head"),R.appendChild($)),ut||(ut=j.createElement("body"),R.appendChild(ut)),la($),la(ut),(v=j.createElement("style")).appendChild(j.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),$.appendChild(v),{document:j,body:ut}},Ii=p.output=p.__private__.output=(qr=function(h,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",h){case void 0:return ln();case"save":p.save(v.filename);break;case"arraybuffer":return se(ln());case"blob":return Fi(ln());
38case"bloburi":case"bloburl":if(ne.URL!==void 0&&typeof ne.URL.createObjectURL=="function")return ne.URL&&ne.URL.createObjectURL(Fi(ln()))||void 0;je.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var j="",R=ln();try{j=Hl(R)}catch{j=Hl(unescape(encodeURIComponent(R)))}return"data:application/pdf;filename="+encodeURIComponent(v.filename)+";base64,"+j;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ne)==="[object Window]"){var $="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ut=!v.pdfObjectUrl;ut||($=v.pdfObjectUrl);var bt=ne.open();if(bt!==null){var qt=Cr(bt),Rt=qt.document.createElement("script"),ie=this;Rt.src=$,ut&&(Rt.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Rt.crossOrigin="anonymous"),Rt.onload=function(){bt.PDFObject.embed(ie.output("dataurlstring"),v)},qt.body.appendChild(Rt)}return bt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ne)==="[object Window]"){var le=v.pdfJsUrl||"examples/PDF.js/web/viewer.html",ve=ne.open();if(ve!==null){var Qe=Cr(ve),Pe=Qe.document.createElement("iframe"),Le=le.indexOf("?")===-1?"?":"&";ie=this,Pe.id="pdfViewer",Pe.width="500px",Pe.height="400px",Pe.src=le+Le+"file=&downloadName="+encodeURIComponent(v.filename),Pe.onload=function(){ve.document.title=v.filename,Pe.contentWindow.PDFViewerApplication.open(ie.output("bloburl"))},Qe.body.appendChild(Pe)}return ve}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ne)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ee=ne.open();if(Ee!==null){var qe=Cr(Ee),Ue=qe.document.createElement("iframe");Ue.src=this.output("datauristring",v),qe.body.appendChild(Ue),Ee.document.title=v.filename}if(Ee||typeof safari>"u")return Ee;break;case"datauri":case"dataurl":return ne.document.location.href=this.output("datauristring",v);default:return null}},qr.foo=function(){try{return qr.apply(this,arguments)}catch(j){var h=j.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var v="Error in function "+h.split(` 39`)[0].split("<")[0]+": "+j.message;if(!ne.console)throw new Error(v);ne.console.error(v,j),ne.alert&&alert(v)}},qr.foo.bar=qr,qr.foo),wn=function(h){return Array.isArray(ei)===!0&&ei.indexOf(h)>-1};switch(n){case"pt":Zt=1;break;case"mm":Zt=72/25.4;break;case"cm":Zt=72/2.54;break;case"in":Zt=72;break;case"px":Zt=wn("px_scaling")==1?.75:96/72;break;case"pc":case"em":Zt=12;break;case"ex":Zt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);Zt=n}var lr=null;vt(),tt();var Ra=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Qt[h].objId,pageNumber:h,pageContext:Qt[h]}},Os=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Qt)if(Qt[v].objId===h)break;return Ra(v)},Es=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Qt[B].objId,pageNumber:B,pageContext:Qt[B]}};p.addPage=function(){return Ea.apply(this,arguments),this},p.setPage=function(){return Ba.apply(this,arguments),Vt.call(this,Nt[B]),this},p.insertPage=function(h){return this.addPage(),this.movePage(B,h),this},p.movePage=function(h,v){var j,R;if(h>v){j=Nt[h],R=Qt[h];for(var $=h;$>v;$--)Nt[$]=Nt[$-1],Qt[$]=Qt[$-1];Nt[v]=j,Qt[v]=R,this.setPage(v)}else if(h<v){j=Nt[h],R=Qt[h];for(var ut=h;ut<v;ut++)Nt[ut]=Nt[ut+1],Qt[ut]=Qt[ut+1];Nt[v]=j,Qt[v]=R,this.setPage(v)}return this},p.deletePage=function(){return oa.apply(this,arguments),this},p.__private__.text=p.text=function(h,v,j,R,$){var ut,bt,qt,Rt,ie,le,ve,Qe,Pe,Le=(R=R||{}).scope||this;if(typeof h=="number"&&typeof v=="number"&&(typeof j=="string"||Array.isArray(j))){var Ee=j;j=v,v=h,h=Ee}if(arguments[3]instanceof te==0?(qt=arguments[4],Rt=arguments[5],Se(ve=arguments[3])==="object"&&ve!==null||(typeof qt=="string"&&(Rt=qt,qt=null),typeof ve=="string"&&(Rt=ve,ve=null),typeof ve=="number"&&(qt=ve,ve=null),R={flags:ve,angle:qt,align:Rt})):(W("The transform parameter of text() with a Matrix value"),Pe=$),isNaN(v)||isNaN(j)||h==null)throw new Error("Invalid arguments passed to
39jsPDF.text");if(h.length===0)return Le;var qe,Ue="",dr=typeof R.lineHeightFactor=="number"?R.lineHeightFactor:ai,Sn=Le.internal.scaleFactor;function ga(Fe){return Fe=Fe.split(" ").join(Array(R.TabLen||9).join(" ")),zr(Fe,ve)}function li(Fe){for(var Ie,Ge=Fe.concat(),er=[],Pn=Ge.length;Pn--;)typeof(Ie=Ge.shift())=="string"?er.push(Ie):Array.isArray(Fe)&&(Ie.length===1||Ie[1]===void 0&&Ie[2]===void 0)?er.push(Ie[0]):er.push([Ie[0],Ie[1],Ie[2]]);return er}function ui(Fe,Ie){var Ge;if(typeof Fe=="string")Ge=Ie(Fe)[0];else if(Array.isArray(Fe)){for(var er,Pn,xa=Fe.concat(),Yi=[],Ja=xa.length;Ja--;)typeof(er=xa.shift())=="string"?Yi.push(Ie(er)[0]):Array.isArray(er)&&typeof er[0]=="string"&&(Pn=Ie(er[0],er[1],er[2]),Yi.push([Pn[0],Pn[1],Pn[2]]));Ge=Yi}return Ge}var Dn=!1,hi=!0;if(typeof h=="string")Dn=!0;else if(Array.isArray(h)){var Ri=h.concat();bt=[];for(var qi,pr=Ri.length;pr--;)(typeof(qi=Ri.shift())!="string"||Array.isArray(qi)&&typeof qi[0]!="string")&&(hi=!1);Dn=hi}if(Dn===!1)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var ci=wt/Le.internal.scaleFactor,fi=ci*(dr-1);switch(R.baseline){case"bottom":j-=fi;break;case"top":j+=ci-fi;break;case"hanging":j+=ci-2*fi;break;case"middle":j+=ci/2-fi}if((le=R.maxWidth||0)>0&&(typeof h=="string"?h=Le.splitTextToSize(h,le):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Fe,Ie){return Fe.concat(Le.splitTextToSize(Ie,le))},[]))),ut={text:h,x:v,y:j,options:R,mutex:{pdfEscape:zr,activeFontKey:Ct,fonts:he,activeFontSize:wt}},we.publish("preProcessText",ut),h=ut.text,qt=(R=ut.options).angle,Pe instanceof te==0&&qt&&typeof qt=="number"){qt*=Math.PI/180,R.rotationDirection===0&&(qt=-qt),rt===X&&(qt=-qt);var ma=Math.cos(qt),cn=Math.sin(qt);Pe=new te(ma,cn,-cn,ma,0,0)}else qt&&qt instanceof te&&(Pe=qt);rt!==X||Pe||(Pe=yn),(ie=R.charSpace||Ti)!==void 0&&(Ue+=nt(z(ie))+` Tc 40`,this.setCharSpace(this.getCharSpace()||0)),(Qe=R.horizontalScale)!==void 0&&(Ue+=nt(100*Qe)+` Tz 41`),R.lang;var xr=-1,Ya=R.renderingMode!==void 0?R.renderingMode:R.stroke,Ui=Le.internal.getCurrentPageInfo().pageContext;switch(Ya){case 0:case!1:case"fill":xr=0;break;case 1:case!0:case"stroke":xr=1;break;case 2:case"fillThenStroke":xr=2;break;case 3:case"invisible":xr=3;break;case 4:case"fillAndAddForClipping":xr=4;break;case 5:case"strokeAndAddPathForClipping":xr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":xr=6;break;case 7:case"addToPathForClipping":xr=7}var $a=Ui.usedRenderingMode!==void 0?Ui.usedRenderingMode:-1;xr!==-1?Ue+=xr+` Tr 42`:$a!==-1&&(Ue+=`0 Tr 43`),xr!==-1&&(Ui.usedRenderingMode=xr),Rt=R.align||"left";var Wr,di=wt*dr,va=Le.internal.pageSize.getWidth(),zi=he[Ct];ie=R.charSpace||Ti,le=R.maxWidth||0,ve=Object.assign({autoencode:!0,noBOM:!0},R.flags);var pi=[],ba=function(Fe){return Le.getStringUnitWidth(Fe,{font:zi,charSpace:ie,fontSize:wt,doKerning:!1})*wt/Sn};if(Object.prototype.toString.call(h)==="[object Array]"){var Nr;bt=li(h),Rt!=="left"&&(Wr=bt.map(ba));var Lr,Wi=0;if(Rt==="right"){v-=Wr[0],h=[],pr=bt.length;for(var Rn=0;Rn<pr;Rn++)Rn===0?(Lr=xn(v),Nr=Nn(j)):(Lr=z(Wi-Wr[Rn]),Nr=-di),h.push([bt[Rn],Lr,Nr]),Wi=Wr[Rn]}else if(Rt==="center"){v-=Wr[0]/2,h=[],pr=bt.length;for(var qn=0;qn<pr;qn++)qn===0?(Lr=xn(v),Nr=Nn(j)):(Lr=z((Wi-Wr[qn])/2),Nr=-di),h.push([bt[qn],Lr,Nr]),Wi=Wr[qn]}else if(Rt==="left"){h=[],pr=bt.length;for(var Hi=0;Hi<pr;Hi++)h.push(bt[Hi])}else if(Rt==="justify"&&zi.encoding==="Identity-H"){h=[],pr=bt.length,le=le!==0?le:va;for(var gi=0,tr=0;tr<pr;tr++)if(Nr=tr===0?Nn(j):-di,Lr=tr===0?xn(v):gi,tr<pr-1){var Js=z((le-Wr[tr])/(bt[tr].split(" ").length-1)),fn=bt[tr].split(" ");h.push([fn[0]+" ",Lr,Nr]),gi=0;for(var Jr=1;Jr<fn.length;Jr++){var mi=(ba(fn[Jr-1]+" "+fn[Jr])-ba(fn[Jr]))*Sn+Js;Jr==fn.length-1?h.push([fn[Jr],mi,0]):h.push([fn[Jr]+" ",mi,0]),gi-=mi}}else h.push([bt[tr],Lr,Nr]);h.push(["",gi,0])}else{if(Rt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],pr=bt.length,le=le!==0?le:va,tr=0;tr<pr;tr++){Nr=tr===0?Nn(j):-di,Lr=tr===0?xn(v):0;var ya=bt[tr].split(" ").length-1,wa=ya>0?(le-Wr[tr])/ya:0;tr<pr-1?pi.push(nt(z(wa))):pi.push(0),h.push([bt[tr],Lr,Nr])}}}(typeof R.R2L=="boolean"?R.R2L:Jt)===!0&&(h=ui(h,function(Fe,Ie,Ge){return[Fe.split("").reverse().join(""),Ie,Ge]})),ut={text:h,x:v,y:j,options:R,mutex:{pdfEscape:zr,activeFontKey:Ct,fonts:he,activeFontSize:wt}},we.publish("postProcessText",ut),h=ut.text,qe=ut.mutex.isHex||!1;var Vi=he[Ct].encoding;Vi!=="WinAnsiEncoding"&&Vi!=="StandardEncoding"||(h=ui(h,function(Fe,Ie,Ge){return[ga(Fe),Ie,Ge]})),bt=li(h),h=[];for(var vi,bi,Un,Ln=Array.isArray(bt[0])?1:0,zn="",Gi=function(Fe,Ie,Ge){var er="";return Ge instanceof te?(Ge=typeof R.angle=="number"?bn(Ge,new te(1,0,0,1,Fe,Ie)):bn(new te(1,0,0,1,Fe,Ie),Ge),rt===X&&(Ge=bn(new te(1,0,0,-1,0,0),Ge)),er=Ge.join(" ")+` Tm 44`):er=nt(Fe)+" "+nt(Ie)+` Td 45`,er},gr=0;gr<bt.length;gr++){switch(zn="",Ln){case 1:Un=(qe?"<":"(")+bt[gr][0]+(qe?">
45":")"),vi=parseFloat(bt[gr][1]),bi=parseFloat(bt[gr][2]);break;case 0:Un=(qe?"<":"(")+bt[gr]+(qe?">":")"),vi=xn(v),bi=Nn(j)}pi!==void 0&&pi[gr]!==void 0&&(zn=pi[gr]+` Tw 46`),gr===0?h.push(zn+Gi(vi,bi,Pe)+Un):Ln===0?h.push(zn+Un):Ln===1&&h.push(zn+Gi(vi,bi,Pe)+Un)}h=Ln===0?h.join(` Tj 47T* `):h.join(` Tj 48`),h+=` Tj 49`;var dn=`BT 50/`;return dn+=Ct+" "+wt+` Tf 51`,dn+=nt(wt*dr)+` TL 52`,dn+=hn+` 53`,dn+=Ue,dn+=h,P(dn+="ET"),A[Ct]=!0,Le};var Bs=p.__private__.clip=p.clip=function(h){return P(h==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Bs("evenodd")},p.__private__.discardPath=p.discardPath=function(){return P("n"),this};var un=p.__private__.isValidStyle=function(h){var v=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(v=!0),v};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return un(h)&&(d=h),this};var qa=p.__private__.getStyle=p.getStyle=function(h){var v=d;switch(h){case"D":case"S":v="S";break;case"F":v="f";break;case"FD":case"DF":v="B";break;case"f":case"f*":case"B":case"B*":v=h}return v},Oi=p.close=function(){return P("h"),this};p.stroke=function(){return P("S"),this},p.fill=function(h){return Ei("f",h),this},p.fillEvenOdd=function(h){return Ei("f*",h),this},p.fillStroke=function(h){return Ei("B",h),this},p.fillStrokeEvenOdd=function(h){return Ei("B*",h),this};var Ei=function(h,v){Se(v)==="object"?Ms(v,h):P(h)},ua=function(h){h===null||rt===X&&h===void 0||(h=qa(h),P(h))};function Ts(h,v,j,R,$){var ut=new Qi(v||this.boundingBox,j||this.xStep,R||this.yStep,this.gState,$||this.matrix);ut.stream=this.stream;var bt=h+"$$"+this.cloneIndex+++"$$";return Rr(bt,ut),ut}var Ms=function(h,v){var j=Ce[h.key],R=Yt[j];if(R instanceof Ni)P("q"),P(Ds(v)),R.gState&&p.setGState(R.gState),P(h.matrix.toString()+" cm"),P("/"+j+" sh"),P("Q");else if(R instanceof Qi){var $=new te(1,0,0,-1,0,oi());h.matrix&&($=$.multiply(h.matrix||yn),j=Ts.call(R,h.key,h.boundingBox,h.xStep,h.yStep,$).id),P("q"),P("/Pattern cs"),P("/"+j+" scn"),R.gState&&p.setGState(R.gState),P(v),P("Q")}},Ds=function(h){switch(h){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Bn=p.moveTo=function(h,v){return P(nt(z(h))+" "+nt(q(v))+" m"),this},Ua=p.lineTo=function(h,v){return P(nt(z(h))+" "+nt(q(v))+" l"),this},Tn=p.curveTo=function(h,v,j,R,$,ut){return P([nt(z(h)),nt(q(v)),nt(z(j)),nt(q(R)),nt(z($)),nt(q(ut)),"c"].join(" ")),this};p.__private__.line=p.line=function(h,v,j,R,$){if(isNaN(h)||isNaN(v)||isNaN(j)||isNaN(R)||!un($))throw new Error("Invalid arguments passed to jsPDF.line");return rt===J?this.lines([[j-h,R-v]],h,v,[1,1],$||"S"):this.lines([[j-h,R-v]],h,v,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,v,j,R,$,ut){var bt,qt,Rt,ie,le,ve,Qe,Pe,Le,Ee,qe,Ue;if(typeof h=="number"&&(Ue=j,j=v,v=h,h=Ue),R=R||[1,1],ut=ut||!1,isNaN(v)||isNaN(j)||!Array.isArray(h)||!Array.isArray(R)||!un($)||typeof ut!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Bn(v,j),bt=R[0],qt=R[1],ie=h.length,Ee=v,qe=j,Rt=0;Rt<ie;Rt++)(le=h[Rt]).length===2?(Ee=le[0]*bt+Ee,qe=le[1]*qt+qe,Ua(Ee,qe)):(ve=le[0]*bt+Ee,Qe=le[1]*qt+qe,Pe=le[2]*bt+Ee,Le=le[3]*qt+qe,Ee=le[4]*bt+Ee,qe=le[5]*qt+qe,Tn(ve,Qe,Pe,Le,Ee,qe));return ut&&Oi(),ua($),this},p.path=function(h){for(var v=0;v<h.length;v++){var j=h[v],R=j.c;switch(j.op){case"m":Bn(R[0],R[1]);break;case"l":Ua(R[0],R[1]);break;case"c":Tn.apply(this,R);break;case"h":Oi()}}return this},p.__private__.rect=p.rect=function(h,v,j,R,$){if(isNaN(h)||isNaN(v)||isNaN(j)||isNaN(R)||!un($))throw new Error("Invalid arguments passed to jsPDF.rect");return rt===J&&(R=-R),P([nt(z(h)),nt(q(v)),nt(z(j)),nt(z(R)),"re"].join(" ")),ua($),this},p.__private__.triangle=p.triangle=function(h,v,j,R,$,ut,bt){if(isNaN(h)||isNaN(v)||isNaN(j)||isNaN(R)||isNaN($)||isNaN(ut)||!un(bt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[j-h,R-v],[$-j,ut-R],[h-$,v-ut]],h,v,[1,1],bt,!0),this},p.__private__.roundedRect=p.roundedRect=function(h,v,j,R,$,ut,bt){if(isNaN(h)||isNaN(v)||isNaN(j)||isNaN(R)||isNaN($)||isNaN(ut)||!un(bt))throw new Error("Invalid arguments passed to
53jsPDF.roundedRect");var qt=4/3*(Math.SQRT2-1);return $=Math.min($,.5*j),ut=Math.min(ut,.5*R),this.lines([[j-2*$,0],[$*qt,0,$,ut-ut*qt,$,ut],[0,R-2*ut],[0,ut*qt,-$*qt,ut,-$,ut],[2*$-j,0],[-$*qt,0,-$,-ut*qt,-$,-ut],[0,2*ut-R],[0,-ut*qt,$*qt,-ut,$,-ut]],h+$,v,[1,1],bt,!0),this},p.__private__.ellipse=p.ellipse=function(h,v,j,R,$){if(isNaN(h)||isNaN(v)||isNaN(j)||isNaN(R)||!un($))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ut=4/3*(Math.SQRT2-1)*j,bt=4/3*(Math.SQRT2-1)*R;return Bn(h+j,v),Tn(h+j,v-bt,h+ut,v-R,h,v-R),Tn(h-ut,v-R,h-j,v-bt,h-j,v),Tn(h-j,v+bt,h-ut,v+R,h,v+R),Tn(h+ut,v+R,h+j,v+bt,h+j,v),ua($),this},p.__private__.circle=p.circle=function(h,v,j,R){if(isNaN(h)||isNaN(v)||isNaN(j)||!un(R))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,v,j,j,R)},p.setFont=function(h,v,j){return j&&(v=It(v,j)),Ct=Ma(h,v,{disableWarning:!1}),this};var Rs=p.__private__.getFont=p.getFont=function(){return he[Ma.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var h,v,j={};for(h in _t)if(_t.hasOwnProperty(h))for(v in j[h]=[],_t[h])_t[h].hasOwnProperty(v)&&j[h].push(v);return j},p.addFont=function(h,v,j,R,$){var ut=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ut.indexOf(arguments[3])!==-1?$=arguments[3]:arguments[3]&&ut.indexOf(arguments[3])==-1&&(j=It(j,R)),Oa.call(this,h,v,j,$=$||"Identity-H")};var ai,re=e.lineWidth||.200025,qs=p.__private__.getLineWidth=p.getLineWidth=function(){return re},Us=p.__private__.setLineWidth=p.setLineWidth=function(h){return re=h,P(nt(z(h))+" w"),this};p.__private__.setLineDash=Ht.API.setLineDash=Ht.API.setLineDashPattern=function(h,v){if(h=h||[],v=v||0,isNaN(v)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(j){return nt(z(j))}).join(" "),v=nt(z(v)),P("["+h+"] "+v+" d"),this};var zs=p.__private__.getLineHeight=p.getLineHeight=function(){return wt*ai};p.__private__.getLineHeight=p.getLineHeight=function(){return wt*ai};var Ws=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&(ai=h),this},Hs=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return ai};Ws(e.lineHeight);var xn=p.__private__.getHorizontalCoordinate=function(h){return z(h)},Nn=p.__private__.getVerticalCoordinate=function(h){return rt===X?h:Qt[B].mediaBox.topRightY-Qt[B].mediaBox.bottomLeftY-z(h)},Vs=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(h){return nt(xn(h))},Gs=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(h){return nt(Nn(h))},Bi=e.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return an(Bi)},p.__private__.setStrokeColor=p.setDrawColor=function(h,v,j,R){return Bi=Yr({ch1:h,ch2:v,ch3:j,ch4:R,pdfColorType:"draw",precision:2}),P(Bi),this};var ha=e.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return an(ha)},p.__private__.setFillColor=p.setFillColor=function(h,v,j,R){return ha=Yr({ch1:h,ch2:v,ch3:j,ch4:R,pdfColorType:"fill",precision:2}),P(ha),this};var hn=e.textColor||"0 g",Ys=p.__private__.getTextColor=p.getTextColor=function(){return an(hn)};p.__private__.setTextColor=p.setTextColor=function(h,v,j,R){return hn=Yr({ch1:h,ch2:v,ch3:j,ch4:R,pdfColorType:"text",precision:3}),this};var Ti=e.charSpace,$s=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Ti||0)};p.__private__.setCharSpace=p.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ti=h,this};var ca=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(h){var v=p.CapJoinStyles[h];if(v===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ca=v,P(v+" J"),this};var Mn=0;p.__private__.setLineJoin=p.setLineJoin=function(h){var v=p.CapJoinStyles[h];if(v===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Mn=v,P(v+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to
53jsPDF.setLineMiterLimit");return P(nt(z(h))+" M"),this},p.GState=Ss,p.setGState=function(h){(h=typeof h=="string"?ee[oe[h]]:fa(null,h)).equals(De)||(P("/"+h.id+" gs"),De=h)};var fa=function(h,v){if(!h||!oe[h]){var j=!1;for(var R in ee)if(ee.hasOwnProperty(R)&&ee[R].equals(v)){j=!0;break}if(j)v=ee[R];else{var $="GS"+(Object.keys(ee).length+1).toString(10);ee[$]=v,v.id=$}return h&&(oe[h]=v.id),we.publish("addGState",v),v}};p.addGState=function(h,v){return fa(h,v),this},p.saveGraphicsState=function(){return P("q"),xe.push({key:Ct,size:wt,color:hn}),this},p.restoreGraphicsState=function(){P("Q");var h=xe.pop();return Ct=h.key,wt=h.size,hn=h.color,De=null,this},p.setCurrentTransformationMatrix=function(h){return P(h.toString()+" cm"),this},p.comment=function(h){return P("#"+h),this};var si=function(h,v){var j=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return j},set:function(ut){isNaN(ut)||(j=parseFloat(ut))}});var R=v||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return R},set:function(ut){isNaN(ut)||(R=parseFloat(ut))}});var $="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return $},set:function(ut){$=ut.toString()}}),this},da=function(h,v,j,R){si.call(this,h,v),this.type="rect";var $=j||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return $},set:function(bt){isNaN(bt)||($=parseFloat(bt))}});var ut=R||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ut},set:function(bt){isNaN(bt)||(ut=parseFloat(bt))}}),this},Mi=function(){this.page=de,this.currentPage=B,this.pages=Nt.slice(0),this.pagesContext=Qt.slice(0),this.x=Mt,this.y=Me,this.matrix=ge,this.width=za(B),this.height=An(B),this.outputDestination=Ft,this.id="",this.objectNumber=-1};Mi.prototype.restore=function(){de=this.page,B=this.currentPage,Qt=this.pagesContext,Nt=this.pages,Mt=this.x,Me=this.y,ge=this.matrix,_n(B,this.width),Wa(B,this.height),Ft=this.outputDestination};var pa=function(h,v,j,R,$){nn.push(new Mi),de=B=0,Nt=[],Mt=h,Me=v,ge=$,sa([j,R])};for(var Di in p.beginFormObject=function(h,v,j,R,$){return pa(h,v,j,R,$),this},p.endFormObject=function(h){return function(v){if(vn[v])nn.pop().restore();else{var j=new Mi,R="Xo"+(Object.keys(fr).length+1).toString(10);j.id=R,vn[v]=R,fr[R]=j,we.publish("addFormObject",j),nn.pop().restore()}}(h),this},p.doFormObject=function(h,v){var j=fr[vn[h]];return P("q"),P(v.toString()+" cm"),P("/"+j.id+" Do"),P("Q"),this},p.getFormObject=function(h){var v=fr[vn[h]];return{x:v.x,y:v.y,width:v.width,height:v.height,matrix:v.matrix}},p.save=function(h,v){return h=h||"generated.pdf",(v=v||{}).returnPromise=v.returnPromise||!1,v.returnPromise===!1?(xi(Fi(ln()),h),typeof xi.unload=="function"&&ne.setTimeout&&setTimeout(xi.unload,911),this):new Promise(function(j,R){try{var $=xi(Fi(ln()),h);typeof xi.unload=="function"&&ne.setTimeout&&setTimeout(xi.unload,911),j($)}catch(ut){R(ut.message)}})},Ht.API)Ht.API.hasOwnProperty(Di)&&(Di==="events"&&Ht.API.events.length?function(h,v){var j,R,$;for($=v.length-1;$!==-1;$--)j=v[$][0],R=v[$][1],h.subscribe.apply(h,[j].concat(typeof R=="function"?[R]:R))}(we,Ht.API.events):p[Di]=Ht.API[Di]);function za(h){return Qt[h].mediaBox.topRightX-Qt[h].mediaBox.bottomLeftX}function _n(h,v){Qt[h].mediaBox.topRightX=v+Qt[h].mediaBox.bottomLeftX}function An(h){return Qt[h].mediaBox.topRightY-Qt[h].mediaBox.bottomLeftY}function Wa(h,v){Qt[h].mediaBox.topRightY=v+Qt[h].mediaBox.bottomLeftY}var Ha=p.getPageWidth=function(h){return za(h=h||B)/Zt},Va=p.setPageWidth=function(h,v){_n(h,v*Zt)},oi=p.getPageHeight=function(h){return An(h=h||B)/Zt},Ga=p.setPageHeight=function(h,v){Wa(h,v*Zt)};return p.internal={pdfEscape:zr,getStyle:qa,getFont:Rs,getFontSize:Et,getCharSpace:$s,getTextColor:Ys,getLineHeight:zs,getLineHeightFactor:Hs,getLineWidth:qs,write:jt,getHorizontalCoordinate:xn,getVerticalCoordinate:Nn,getCoordinateString:Vs,getVerticalCoordinateString:Gs,collections:{},newObject:ze,newAdditionalObject:ri,newObjectDeferred:ar,newObjectDeferredBegin:or,getFilters:$r,putStream:Ur,events:we,scaleFactor:Zt,pageSize:{getWidth:function(){return Ha(B)},setWidth:function(h){Va(B,h)},getHeight:function(){return oi(B)},setHeight:function(h){Ga(B,h)}},encryptionOptions:m,encryption:lr,getEncryptor:function(h){return m!==null?lr.encryptor(h,0):function(v){return v}},output:Ii,getNumberOfPages:Ta,get pages(){return Nt},out:P,f2:L,f3:O,getPageInfo:Ra,getPageInfoByObjId:Os,getCurrentPageInfo:Es,getPDFVersion:I,Point:si,Rectangle:da,Matrix:te,hasHotfix:wn},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Ha(B)},set:function(h){Va(B,h)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return oi(B)},set:function(h){Ga(B,h)},enumerable:!0,configurable:!0}),(function(h){for(var v=0,j=$t.length;v<j;v++){var R=Oa.call(this,h[v][0],h[v][1],h[v][2],$t[v][3],!0);y===!1&&(A[R]=!0);var $=h[v][0].split("-");Ia({id:R,fontName:$[0],fontStyle:$[1]||""})}we.publish("addFonts",{fonts:he,dictionary:_t})}).call(p,$t),Ct="F1",Ea(a,r),we.publish("initialized"),p}Xi.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Xi.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Xi.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Xi.prototype.processOwnerPassword=function(e,t){return Mo(To(t).substr(0,5),e)},Xi.prototype.encryptor=function(e,t){var r=To(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return Mo(r,n)}},Ss.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||Se(e)!==Se(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>
vendor: 30,282 bytes, lines 53-72
53=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},Ht.API={events:[]},Ht.version="4.2.1";var Ve=Ht.API,Yo=1,Li=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ji=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Si=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var r=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(r.length===1?"0"+r:r)})},ae=function(e){return e.toFixed(2)},Kn=function(e){return e.toFixed(5)};Ve.__acroform__={};var jr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},$l=function(e){return e*Yo},pn=function(e){var t=new Mu,r=Dt.internal.getHeight(e)||0,n=Dt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ae(n)),Number(ae(r))],t},Hc=Ve.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},Vc=Ve.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Gc=Ve.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Je=Ve.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Gc(e,t-1)},Ke=Ve.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hc(e,t-1)},Xe=Ve.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Vc(e,t-1)},Yc=Ve.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,a=e[0],s=e[1],c=e[2],l=e[3],u={};return u.lowerLeft_X=r(a)||0,u.lowerLeft_Y=n(s+l)||0,u.upperRight_X=r(a+c)||0,u.upperRight_Y=n(s)||0,[Number(ae(u.lowerLeft_X)),Number(ae(u.lowerLeft_Y)),Number(ae(u.upperRight_X)),Number(ae(u.upperRight_Y))]},$c=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=Do(e,r),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+ae(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=pn(e);return s.scope=e.scope,s.stream=t.join(` 54`),s}},Do=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map(function(L){return L.split(` 55`)}):a.map(function(L){return[L]});var s=r,c=Dt.internal.getHeight(e)||0;c=c<0?-c:c;var l=Dt.internal.getWidth(e)||0;l=l<0?-l:l;var u=function(L,O,z){if(L+1<a.length){var q=O+" "+a[L+1][0];return ps(q,e,z).width<=l-4}return!1};s++;t:for(;s>0;){t="",s--;var d,m,y=ps("3",e,s).height,A=e.multiline?c-s:(c-y)/2,p=A+=2,T=0,I=0,M=0;if(s<=0){t=`(...) Tj 56`,t+="% Width of Text: "+ps(t,e,s=12).width+", FieldWidth:"+l+` 57`;break}for(var k="",J=0,X=0;X<a.length;X++)if(a.hasOwnProperty(X)){var rt=!1;if(a[X].length!==1&&M!==a[X].length-1){if((y+2)*(J+2)+2>c)continue t;k+=a[X][M],rt=!0,I=X,X--}else{k=(k+=a[X][M]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var mt=parseInt(X),At=u(mt,k,s),It=X>=a.length-1;if(At&&!It){k+=" ",M=0;continue}if(At||It){if(It)I=mt;else if(e.multiline&&(y+2)*(J+2)+2>c)continue t}else{if(!e.multiline||(y+2)*(J+2)+2>c)continue t;I=mt}}for(var nt="",W=T;W<=I;W++){var gt=a[W];if(e.multiline){if(W===I){nt+=gt[M]+" ",M=(M+1)%gt.length;continue}if(W===T){nt+=gt[gt.length-1]+" ";continue}}nt+=gt[0]+" "}switch(nt=nt.substr(nt.length-1)==" "?nt.substr(0,nt.length-1):nt,m=ps(nt,e,s).width,e.textAlign){case"right":d=l-m-2;break;case"center":d=(l-m)/2;break;default:d=2}t+=ae(d)+" "+ae(p)+` Td 58`,t+="("+Li(nt)+`) Tj 59`,t+=-ae(d)+` 0 Td 60`,p=-(s+2),m=0,T=rt?I:I+1,J++,k=""}break}return n.text=t,n.fontSize=s,n},ps=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:a}},Jc={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Kc=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},Xc=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(en.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Jc)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Yo=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Du,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];s.objId=void 0,s.hasAnnotation&&Kc(s,r)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(r){(function(n,a){var s=!n;for(var c in n||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(c)){var l=n[c],u=[],d=l.Rect;if(l.Rect&&(l.Rect=Yc(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Dt.createDefaultAppearanceStream(l),Se(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(u=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var m=$c(l);u.push({key:"AP",value:"<</N "+m+">>"}),a.internal.acroformPlugin.xForms.push(m)}if(l.appearanceStreamContent){var y="";for(var A in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(A)){var p=l.appearanceStreamContent[A];if(y+="/"+A+" ",y+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var T=p[c];typeof T=="function"&&(T=T.call(a,l)),y+="/"+c+" "+T+" ",a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T)}}else typeof(T=p)=="function"&&(T=T.call(a,l)),y+="/"+c+" "+T,a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T);y+=">>"}u.push({key:"AP",value:`<< 61`+y+">>"})}a.internal.putStream({additionalKeyValues:u,objectId:l.objId}),a.internal.out("endobj")}s&&function(I,M){for(var k in I)if(I.hasOwnProperty(k)){var J=k,X=I[k];M.internal.newObjectDeferredBegin(X.objId,!0),Se(X)==="object"&&typeof X.putStream=="function"&&X.putStream(),delete I[J]}}(a.internal.acroformPlugin.xForms,a)})(r,e)}),e.internal.acroformPlugin.isInitialized=!0}},Tu=Ve.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(c){return c};if(Array.isArray(e)){for(var a="[",s=0;s<e.length;s++)switch(s!==0&&(a+=" "),Se(e[s])){case"boolean":case"number":case"object":a+=e[s].toString();break;case"string":e[s].substr(0,1)==="/"?a+="/"+Si(e[s].substr(1)):(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),a+="("+Li(n(e[s].toString()))+")")}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},No=function(e,t,r){var n=function(a){return a};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+Li(n(e))+")"},gn=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(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};gn.prototype.toString=function(){return this.objId+" 0 R"},gn.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},gn.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],a=this[n];a&&(Array.isArray(a)?e.push({key:n,value:Tu(a,this.objId,this.scope)}):a instanceof gn?(a.scope=this.scope,e.push({key:n,value:a.objId+" 0 R"})):typeof a!="function"&&e.push({key:n,value:a}))}return e};var Mu=function(){gn.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 e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};jr(Mu,gn);var Du=function(){gn.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Li(r(e))+")"}},set:function(r){e=r}})};jr(Du,gn);var en=function e(){gn.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute F supplied.');t=k}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Je(t,3)},set:function(k){k?this.F=Ke(t,3):this.F=Xe(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');r=k}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(k){n=k!==void 0?k:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(k){n[0]=k}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(k){n[1]=k}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(k){n[2]=k}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(k){n[3]=k}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(k){switch(k){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=k;break;default:throw new Error('Invalid value "'+k+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof Ls)return;s="FieldObject"+e.FieldNum++}var k=function(J){return J};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+Li(k(s))+")"},set:function(k){s=k.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(k){s=k}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(k){c=k}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(k){l=k}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(k){u=k}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Yo:d},set:function(k){d=k}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(k){m=k}});var y="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!y||this instanceof Ls||this instanceof _i))return No(y,this.objId,this.scope)},set:function(k){k=k.toString(),y=k}});var A=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(A)return this instanceof sr==0?No(A,this.objId,this.scope):A},set:function(k){k=k.toString(),A=this instanceof sr==0?k.substr(0,1)==="("?Ji(k.substr(1,k.length-2)):Ji(k):k}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof sr==1?Ji(A.substr(1,A.length-1)):A},set:function(k){k=k.toString(),A=this instanceof sr==1?"/"+Si(k):k}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(k){this.V=k}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof sr==0?No(p,this.objId,this.scope):p},set:function(k){k=k.toString(),p=this instanceof sr==0?k.substr(0,1)==="("?Ji(k.substr(1,k.length-2)):Ji(k):k}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof sr==1?Ji(p.substr(1,p.length-1)):p},set:function(k){k=k.toString(),p=this instanceof sr==1?"/"+Si(k):k}}),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 T,I=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return I},set:function(k){k=!!k,I=k}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(T)return T},set:function(k){T=k}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,1)},set:function(k){k?this.Ff=Ke(this.Ff,1):this.Ff=Xe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,2)},set:function(k){k?this.Ff=Ke(this.Ff,2):this.Ff=Xe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,3)},set:function(k){k?this.Ff=Ke(this.Ff,3):this.Ff=Xe(this.Ff,3)}});var M=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(M!==null)return M},set:function(k){if([0,1,2].indexOf(k)===-1)throw new Error('Invalid value "'+k+'" for attribute Q supplied.');M=k}}),Object.defineProperty(this,"textAlign",{get:function(){var k;switch(M){case 0:default:k="left";break;case 1:k="center";break;case 2:k="right"}return k},configurable:!0,enumerable:!0,set:function(k){switch(k){case"right":case 2:M=2;break;case"center":case 1:M=1;break;default:M=0}}})};jr(en,gn);var ta=function(){en.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Tu(t,this.objId,this.scope)},set:function(r){var n,a;a=[],typeof(n=r)=="string"&&(a=function(s,c,l){l||(l=1);for(var u,d=[];u=c.exec(s);)d.push(u[l]);return d}(n,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,18)},set:function(r){r?this.Ff=Ke(this.Ff,18):this.Ff=Xe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Ke(this.Ff,19):this.Ff=Xe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,20)},set:function(r){r?(this.Ff=Ke(this.Ff,20),t.sort()):this.Ff=Xe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,22)},set:function(r){r?this.Ff=Ke(this.Ff,22):this.Ff=Xe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,23)},set:function(r){r?this.Ff=Ke(this.Ff,23):this.Ff=Xe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,27)},set:function(r){r?this.Ff=Ke(this.Ff,27):this.Ff=Xe(this.Ff,27)}}),this.hasAppearanceStream=!1};jr(ta,en);var ea=function(){ta.call(this),this.fontName="helvetica",this.combo=!1};jr(ea,ta);var ra=function(){ea.call(this),this.combo=!0};jr(ra,ea);var ws=function(){ra.call(this),this.edit=!0};jr(ws,ra);var sr=function(){en.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,15)},set:function(r){r?this.Ff=Ke(this.Ff,15):this.Ff=Xe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,16)},set:function(r){r?this.Ff=Ke(this.Ff,16):this.Ff=Xe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,17)},set:function(r){r?this.Ff=Ke(this.Ff,17):this.Ff=Xe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,26)},set:function(r){r?this.Ff=Ke(this.Ff,26):this.Ff=Xe(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(s){return s};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,a=[];for(n in a.push("<<"),t)a.push("/"+n+" ("+Li(r(t[n]))+")");return a.push(">>"),a.join(` 62`)}},set:function(r){Se(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){var n=r==null?"":r.toString();n.substr(0,1)==="/"&&(n=n.substr(1)),e="/"+Si(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+Si(r)}})};jr(sr,en);var xs=function(){sr.call(this),this.pushButton=!0};jr(xs,sr);var na=function(){sr.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};jr(na,sr);var Ls=function(){var e,t;en.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){e=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var s,c=[];for(s in c.push("<<"),n)c.push("/"+s+" ("+Li(a(n[s]))+")");return c.push(">>"),c.join(` 63`)},set:function(a){Se(a)==="object"&&(n=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(a){typeof a=="string"&&(n.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(a){var s=a==null?"":a.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),r="/"+Si(s)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(a){var s=a==null?"":a.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),r="/"+Si(s)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Dt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};jr(Ls,en),na.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},na.prototype.createOption=function(e){var t=new Ls;return t.Parent=this,t.optionName=e,this.Kids.push(t),Zc.call(this.scope,t),t};var Ns=function(){sr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Dt.CheckBox.createAppearanceStream()};jr(Ns,sr);var _i=function(){en.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,13)},set:function(t){t?this.Ff=Ke(this.Ff,13):this.Ff=Xe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,21)},set:function(t){t?this.Ff=Ke(this.Ff,21):this.Ff=Xe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,23)},set:function(t){t?this.Ff=Ke(this.Ff,23):this.Ff=Xe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,24)},set:function(t){t?this.Ff=Ke(this.Ff,24):this.Ff=Xe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,25)},set:function(t){t?this.Ff=Ke(this.Ff,25):this.Ff=Xe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,26)},set:function(t){t?this.Ff=Ke(this.Ff,26):this.Ff=Xe(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};jr(_i,en);var _s=function(){_i.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Je(this.Ff,14)},set:function(e){e?this.Ff=Ke(this.Ff,14):this.Ff=Xe(this.Ff,14)}}),this.password=!0};jr(_s,_i);var Dt={CheckBox:{createAppearanceStream:function(){return{N:{On:Dt.CheckBox.YesNormal},D:{On:Dt.CheckBox.YesPushDown,Off:Dt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=pn(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),s=Do(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+ae(Dt.internal.getWidth(e))+" "+ae(Dt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+ae(s.fontSize)+" Tf "+a),r.push("BT"),r.push(s.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(` 64`),t},YesNormal:function(e){var t=pn(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),a=[],s=Dt.internal.getHeight(e),c=Dt.internal.getWidth(e),l=Do(e,e.caption);return a.push("1 g"),a.push("0 0 "+ae(c)+" "+ae(s)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+ae(c-1)+" "+ae(s-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+r+" "+ae(l.fontSize)+" Tf "+n),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join(` 65`),t},OffPushDown:function(e){var t=pn(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+ae(Dt.internal.getWidth(e))+" "+ae(Dt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(` 66`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Dt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Dt.RadioButton.Circle.YesNormal,t.D[e]=Dt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=pn(e);t.scope=e.scope;var r=[],n=Dt.internal.getWidth(e)<=Dt.internal.getHeight(e)?Dt.internal.getWidth(e)/4:Dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Dt.internal.Bezier_C,s=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Kn(Dt.internal.getWidth(e)/2)+" "+Kn(Dt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` 67`),t},YesPushDown:function(e){var t=pn(e);t.scope=e.scope;var r=[],n=Dt.internal.getWidth(e)<=Dt.internal.getHeight(e)?Dt.internal.getWidth(e)/4:Dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),s=Number((a*Dt.internal.Bezier_C).toFixed(5)),c=Number((n*Dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Kn(Dt.internal.getWidth(e)/2)+" "+Kn(Dt.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+s+" "+s+" "+a+" 0 "+a+" c"),r.push("-"+s+" "+a+" -"+a+" "+s+" -"+a+" 0 c"),r.push("-"+a+" -"+s+" -"+s+" -"+a+" 0 -"+a+" c"),r.push(s+" -"+a+" "+a+" -"+s+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Kn(Dt.internal.getWidth(e)/2)+" "+Kn(Dt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+c+" "+c+" "+n+" 0 "+n+" c"),r.push("-"+c+" "+n+" -"+n+" "+c+" -"+n+" 0 c"),r.push("-"+n+" -"+c+" -"+c+" -"+n+" 0 -"+n+" c"),r.push(c+" -"+n+" "+n+" -"+c+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` 68`),t},OffPushDown:function(e){var t=pn(e);t.scope=e.scope;var r=[],n=Dt.internal.getWidth(e)<=Dt.internal.getHeight(e)?Dt.internal.getWidth(e)/4:Dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),s=Number((a*Dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Kn(Dt.internal.getWidth(e)/2)+" "+Kn(Dt.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+s+" "+s+" "+a+" 0 "+a+" c"),r.push("-"+s+" "+a+" -"+a+" "+s+" -"+a+" 0 c"),r.push("-"+a+" -"+s+" -"+s+" -"+a+" 0 -"+a+" c"),r.push(s+" -"+a+" "+a+" -"+s+" "+a+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` 69`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Dt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Dt.RadioButton.Cross.YesNormal,t.D[e]=Dt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=pn(e);t.scope=e.scope;var r=[],n=Dt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+ae(Dt.internal.getWidth(e)-2)+" "+ae(Dt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ae(n.x1.x)+" "+ae(n.x1.y)+" m"),r.push(ae(n.x2.x)+" "+ae(n.x2.y)+" l"),r.push(ae(n.x4.x)+" "+ae(n.x4.y)+" m"),r.push(ae(n.x3.x)+" "+ae(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 70`),t},YesPushDown:function(e){var t=pn(e);t.scope=e.scope;var r=Dt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+ae(Dt.internal.getWidth(e))+" "+ae(Dt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+ae(Dt.internal.getWidth(e)-2)+" "+ae(Dt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ae(r.x1.x)+" "+ae(r.x1.y)+" m"),n.push(ae(r.x2.x)+" "+ae(r.x2.y)+" l"),n.push(ae(r.x4.x)+" "+ae(r.x4.y)+" m"),n.push(ae(r.x3.x)+" "+ae(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 71`),t},OffPushDown:function(e){var t=pn(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+ae(Dt.internal.getWidth(e))+" "+ae(Dt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(` 72`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};Dt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Dt.internal.getWidth(e),r=Dt.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},Dt.internal.getWidth=function(e){var t=0;return Se(e)==="object"&&(t=$l(e.Rect[2])),t},Dt.internal.getHeight=function(e){var t=0;return Se(e)==="object"&&(t=$l(e.Rect[3])),t};var Zc=Ve.addField=function(e){if(Xc(this,e),!(e instanceof en))throw new Error("Invalid argument passed to
72jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Ve.AcroFormChoiceField=ta,Ve.AcroFormListBox=ea,Ve.AcroFormComboBox=ra,Ve.AcroFormEditBox=ws,Ve.AcroFormButton=sr,Ve.AcroFormPushButton=xs,Ve.AcroFormRadioButton=na,Ve.AcroFormCheckBox=Ns,Ve.AcroFormTextField=_i,Ve.AcroFormPasswordField=_s,Ve.AcroFormAppearance=Dt,Ve.AcroForm={ChoiceField:ta,ListBox:ea,ComboBox:ra,EditBox:ws,Button:sr,PushButton:xs,RadioButton:na,CheckBox:Ns,TextField:_i,PasswordField:_s,Appearance:Dt},Ht.AcroForm={ChoiceField:ta,ListBox:ea,ComboBox:ra,EditBox:ws,Button:sr,PushButton:xs,RadioButton:na,CheckBox:Ns,TextField:_i,PasswordField:_s,Appearance:Dt};Ht.AcroForm;function Ru(e){return e.reduce(function(t,r,n){return t[r]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=e.__addimage__.getImageFileTypeByImageData=function(L,O){var z,q,it,ot,lt,tt=r;if((O=O||r)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(At(L))for(lt in n)for(it=n[lt],z=0;z<it.length;z+=1){for(ot=!0,q=0;q<it[z].length;q+=1)if(it[z][q]!==void 0&&it[z][q]!==L[q]){ot=!1;break}if(ot===!0){tt=lt;break}}else for(lt in n)for(it=n[lt],z=0;z<it.length;z+=1){for(ot=!0,q=0;q<it[z].length;q+=1)if(it[z][q]!==void 0&&it[z][q]!==L.charCodeAt(q)){ot=!1;break}if(ot===!0){tt=lt;break}}return tt===r&&O!==r&&(tt=O),tt},s=function L(O){for(var z=this.internal.write,q=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var ot=[];if(ot.push({key:"Type",value:"/XObject"}),ot.push({key:"Subtype",value:"/Image"}),ot.push({key:"Width",value:O.width}),ot.push({key:"Height",value:O.height}),O.colorSpace===k.INDEXED?ot.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]"}):(ot.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===k.DEVICE_CMYK&&ot.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ot.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&ot.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var lt="",tt=0,ct=O.transparency.length;tt<ct;tt++)lt+=O.transparency[tt]+" "+O.transparency[tt]+" ";ot.push({key:"Mask",value:"["+lt+"]"})}O.sMask!==void 0&&ot.push({key:"SMask",value:O.objectId+1+" 0 R"});var St=O.filter!==void 0?["/"+O.filter]:void 0;if(q({data:O.data,additionalKeyValues:ot,alreadyAppliedFilters:St,objectId:O.objectId}),z("endobj"),"sMask"in O&&O.sMask!==void 0){var vt,N=(vt=O.sMaskBitsPerComponent)!==null&&vt!==void 0?vt:O.bitsPerComponent,B={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:N,data:O.sMask};"filter"in O&&(B.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(N," /Columns ").concat(O.width),B.filter=O.filter),L.call(this,B)}if(O.colorSpace===k.INDEXED){var D=this.internal.newObject();q({data:nt(new Uint8Array(O.palette)),objectId:D}),z("endobj")}},c=function(){var L=this.internal.collections[t+"images"];for(var O in L)s.call(this,L[O])},l=function(){var L,O=this.internal.collections[t+"images"],z=this.internal.write;for(var q in O)z("/I"+(L=O[q]).index,L.objectId,"0","R")},u=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",c),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var L=this.internal.collections[t+"images"];return u.call(this),L},m=function(){return Object.keys(this.internal.collections[t+"images"]).length},y=function(L){return typeof e["process"+L.toUpperCase()]=="function"},A=function(L){return Se(L)==="object"&&L.nodeType===1},p=function(L,O){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var z=""+L.getAttribute("src");if(z.indexOf("data:image/")===0)return ys(unescape(z).split("base64,").pop());var q=e.loadFile(z,!0);if(q!==void 0)return q}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var it;switch(O){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return ys(L.toDataURL(it,1).split("base64,").pop())}},T=function(L){var O=this.internal.collections[t+"images"];if(O){for(var z in O)if(L===O[z].alias)return O[z]}},I=function(L,O,z){return L||O||(L=-96,O=-96),L<0&&(L=-1*z.width*72/L/this.internal.scaleFactor),O<0&&(O=-1*z.height*72/O/this.internal.scaleFactor),L===0&&(L=O*z.width/z.height),O===0&&(O=L*z.height/z.width),[L,O]},M=function(L,O,z,q,it,ot){var lt=I.call(this,z,q,it),tt=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,St=d.call(this);if(z=lt[0],q=lt[1],St[it.index]=it,ot){ot*=Math.PI/180;var vt=Math.cos(ot),N=Math.sin(ot),B=function(H){return H.toFixed(4)},D=[B(vt),B(N),B(-1*N),B(vt),0,0,"cm"]}this.internal.write("q"),ot?(this.internal.write([1,"0","0",1,tt(L),ct(O+q),"cm"].join(" ")),this.internal.write(D.join(" ")),this.internal.write([tt(z),"0","0",tt(q),"0","0","cm"].join(" "))):this.internal.write([tt(z),"0","0",tt(q),tt(L),ct(O+q),"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")},k=e.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"};e.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 J=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},X=e.__addimage__.sHashCode=function(L){var O,z,q=0;if(typeof L=="string")for(z=L.length,O=0;O<z;O++)q=(q<<5)-q+L.charCodeAt(O),q|=0;else if(At(L))for(z=L.byteLength/2,O=0;O<z;O++)q=(q<<5)-q+L[O],q|=0;return q}
vendor: 29,113 bytes, lines 72-96
72,rt=e.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var O=!0;return L.length===0&&(O=!1),L.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(O=!1),O},mt=e.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var O=L.indexOf(",");return O<0?null:L.substring(0,O).trim().endsWith("base64")?L.substring(O+1):null};e.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var At=e.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},It=e.__addimage__.binaryStringToUint8Array=function(L){for(var O=L.length,z=new Uint8Array(O),q=0;q<O;q++)z[q]=L.charCodeAt(q);return z},nt=e.__addimage__.arrayBufferToBinaryString=function(L){for(var O="",z=At(L)?L:new Uint8Array(L),q=0;q<z.length;q+=8192)O+=String.fromCharCode.apply(null,z.subarray(q,q+8192));return O};e.addImage=function(){var L,O,z,q,it,ot,lt,tt,ct;if(typeof arguments[1]=="number"?(O=r,z=arguments[1],q=arguments[2],it=arguments[3],ot=arguments[4],lt=arguments[5],tt=arguments[6],ct=arguments[7]):(O=arguments[1],z=arguments[2],q=arguments[3],it=arguments[4],ot=arguments[5],lt=arguments[6],tt=arguments[7],ct=arguments[8]),Se(L=arguments[0])==="object"&&!A(L)&&"imageData"in L){var St=L;L=St.imageData,O=St.format||O||r,z=St.x||z||0,q=St.y||q||0,it=St.w||St.width||it,ot=St.h||St.height||ot,lt=St.alias||lt,tt=St.compression||tt,ct=St.rotation||St.angle||ct}var vt=this.internal.getFilters();if(tt===void 0&&vt.indexOf("FlateEncode")!==-1&&(tt="SLOW"),isNaN(z)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var N=W.call(this,L,O,lt,tt);return M.call(this,z,q,it,ot,N,ct),this};var W=function(L,O,z,q){var it,ot,lt;if(typeof L=="string"&&a(L)===r){L=unescape(L);var tt=gt(L,!1);(tt!==""||(tt=e.loadFile(L,!0))!==void 0)&&(L=tt)}if(A(L)&&(L=p(L,O)),O=a(L,O),!y(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((lt=z)==null||lt.length===0)&&(z=function(ct){return typeof ct=="string"||At(ct)?X(ct):At(ct.data)?X(ct.data):null}(L)),(it=T.call(this,z))||(L instanceof Uint8Array||O==="RGBA"||(ot=L,L=It(L)),it=this["process"+O.toUpperCase()](L,m.call(this),z,function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in e.image_compression?ct:J.NONE}(q),ot)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},gt=e.__addimage__.convertBase64ToBinaryString=function(L,O){O=typeof O!="boolean"||O;var z,q="";if(typeof L=="string"){var it;z=(it=mt(L))!==null&&it!==void 0?it:L;try{q=ys(z)}catch(ot){if(O)throw rt(z)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ot.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return q};e.getImageProperties=function(L){var O,z,q="";if(A(L)&&(L=p(L)),typeof L=="string"&&a(L)===r&&((q=gt(L,!1))===""&&(q=e.loadFile(L)||""),L=q),z=a(L),!y(z))throw new Error("addImage does not support files of type '"+z+"', please ensure that a plugin for '"+z+"' support is added.");if(L instanceof Uint8Array||(L=It(L)),!(O=this["process"+z.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=z,O}})(Ht.API),function(e){var t=function(r){if(r!==void 0&&r!="")return!0};Ht.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,a,s,c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(r.objId),d=r.pageContext.annotations,m=!1,y=0;y<d.length&&!m;y++)switch((n=d[y]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(m=!0);break;case"reference":case"text":case"freetext":m=!0}if(m!=0){this.internal.write("/Annots [");for(var A=0;A<d.length;A++){n=d[A];var p=this.internal.pdfEscape,T=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var I=this.internal.newAdditionalObject(),M=this.internal.newAdditionalObject(),k=this.internal.getEncryptor(I.objId),J=n.title||"Note";s="<</Type /Annot /Subtype /Text "+(a="/Rect ["+c(n.bounds.x)+" "+l(n.bounds.y+n.bounds.h)+" "+c(n.bounds.x+n.bounds.w)+" "+l(n.bounds.y)+"] ")+"/Contents ("+p(k(n.contents))+")",s+=" /Popup "+M.objId+" 0 R",s+=" /P "+u.objId+" 0 R",s+=" /T ("+p(k(J))+") >>",I.content=s;var X=I.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+c(n.bounds.x+30)+" "+l(n.bounds.y+n.bounds.h)+" "+c(n.bounds.x+n.bounds.w+30)+" "+l(n.bounds.y)+"] ")+" /Parent "+X,n.open&&(s+=" /Open true"),s+=" >>",M.content=s,this.internal.write(I.objId,"0 R",M.objId,"0 R");break;case"freetext":a="/Rect ["+c(n.bounds.x)+" "+l(n.bounds.y)+" "+c(n.bounds.x+n.bounds.w)+" "+l(n.bounds.y+n.bounds.h)+"] ";var rt="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(n.color||"#000000");s="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+p(T(n.contents))+")",s+=" /DS("+p(T(rt))+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(n.options.name){var mt=this.annotations._nameMap[n.options.name];n.options.pageNumber=mt.page,n.options.top=mt.y}else n.options.top||(n.options.top=0);if(a="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",s="",n.options.url)s="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+p(T(n.options.url))+") >>";else if(n.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,s+=" /FitV "+n.options.left+"]";break;default:var At=l(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),s+=" /XYZ "+n.options.left+" "+At+" "+n.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,a,s,c){var l=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:u(r),y:d(n),w:u(r+a),h:d(n+s)},options:c,type:"link"})},e.textWithLink=function(r,n,a,s){var c,l,u=this.getTextWidth(r),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){l=s.maxWidth;var m=this.splitTextToSize(r,l).length;c=Math.ceil(d*m)}else l=u,c=d;return this.text(r,n,a,s),a+=.2*d,s.align==="center"&&(n-=u/2),s.align==="right"&&(n-=u),this.link(n,a-d,l,c,s),u},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(Ht.API),function(e){var t={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]},r={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}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(I){return t[I.charCodeAt(0)]!==void 0},c=e.__arabicParser__.isArabicLetter=function(I){return typeof I=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(I)},l=e.__arabicParser__.isArabicEndLetter=function(I){return c(I)&&s(I)&&t[I.charCodeAt(0)].length<=2},u=e.__arabicParser__.isArabicAlfLetter=function(I){return c(I)&&a.indexOf(I.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(I){return c(I)&&s(I)&&t[I.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(I){return c(I)&&s(I)&&t[I.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(I){return c(I)&&s(I)&&t[I.charCodeAt(0)].length>=3};var m=e.__arabicParser__.arabicLetterHasMedialForm=function(I){return c(I)&&s(I)&&t[I.charCodeAt(0)].length==4},y=e.__arabicParser__.resolveLigatures=function(I){var M=0,k=r,J="",X=0;for(M=0;M<I.length;M+=1)k[I.charCodeAt(M)]!==void 0?(X++,typeof(k=k[I.charCodeAt(M)])=="number"&&(J+=String.fromCharCode(k),k=r,X=0),M===I.length-1&&(k=r,J+=I.charAt(M-(X-1)),M-=X-1,X=0)):(k=r,J+=I.charAt(M-X),M-=X,X=0);return J};e.__arabicParser__.isArabicDiacritic=function(I){return I!==void 0&&n[I.charCodeAt(0)]!==void 0};var A=e.__arabicParser__.getCorrectForm=function(I,M,k){return c(I)?s(I)===!1?-1:!d(I)||!c(M)&&!c(k)||!c(k)&&l(M)||l(I)&&!c(M)||l(I)&&u(M)||l(I)&&l(M)?0:m(I)&&c(M)&&!l(M)&&c(k)&&d(k)?3:l(I)||!c(k)?1:2:-1},p=function(I){var M=0,k=0,J=0,X="",rt="",mt="",At=(I=I||"").split("\\s+"),It=[];for(M=0;M<At.length;M+=1){for(It.push(""),k=0;k<At[M].length;k+=1)X=At[M][k],rt=At[M][k-1],mt=At[M][k+1],c(X)?(J=A(X,rt,mt),It[M]+=J!==-1?String.fromCharCode(t[X.charCodeAt(0)][J]):X):It[M]+=X;It[M]=y(It[M])}return It.join(" ")},T=e.__arabicParser__.processArabic=e.processArabic=function(){var I,M=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,k=[];if(Array.isArray(M)){var J=0;for(k=[],J=0;J<M.length;J+=1)Array.isArray(M[J])?k.push([p(M[J][0]),M[J][1],M[J][2]]):k.push([p(M[J])]);I=k}else I=p(M);return typeof arguments[0]=="string"?I:(arguments[0].text=I,arguments[0])};e.events.push(["preProcessText",T])}(Ht.API),Ht.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=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 "+t+" 0 R")})),this},function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(l){r=l}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(l){n=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(l){s=l}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var a;if((r=r||"2d")!=="2d")return null;for(a in n)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=n[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Ht.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=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({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(I){u=I}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(I){d=I}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(I){m=I}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(I){y=I}});var A=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return A},set:function(I){A=I}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(I){p=I}});var T=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return T},set:function(I){T=I}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(u){return n.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},e.getTextDimensions=function(u,d){n.call(this);var m=(d=d||{}).fontSize||this.getFontSize(),y=d.font||this.getFont(),A=d.scaleFactor||this.internal.scaleFactor,p=0,T=0,I=0,M=this;if(!Array.isArray(u)&&typeof u!="string"){if(typeof u!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");u=String(u)}var k=d.maxWidth;k>0?typeof u=="string"?u=this.splitTextToSize(u,k):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(X,rt){return X.concat(M.splitTextToSize(rt,k))},[])):u=Array.isArray(u)?u:[u];for(var J=0;J<u.length;J++)p<(I=this.getStringUnitWidth(u[J],{font:y})*m)&&(p=I);return p!==0&&(T=u.length),{w:p/=A,h:Math.max((T*m*this.getLineHeightFactor()-m*(this.getLineHeightFactor()-1))/A,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var u=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=e.cell=function(){var u;u=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var d=this.internal.__cell__.lastCell,m=this.internal.__cell__.padding,y=this.internal.__cell__.margins||t,A=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===u.lineNumber?(u.x=(d.x||0)+(d.width||0),u.y=d.y||0):d.y+d.height+u.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=y.top,p&&A&&(this.printHeaderRow(u.lineNumber,!0),u.y+=A[0].height)):u.y=d.y+d.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,r===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-m,u.y+m,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+m,{align:"center",baseline:"top",maxWidth:u.width-m-m}):this.text(u.text,u.x+m,u.y+m,{align:"left",baseline:"top",maxWidth:u.width-m-m})),this.internal.__cell__.lastCell=u,this};e.table=function(u,d,m,y,A){if(n.call(this),!m)throw new Error("No data for PDF table.");var p,T,I,M,k=[],J=[],X=[],rt={},mt={},At=[],It=[],nt=(A=A||{}).autoSize||!1,W=A.printHeaders!==!1,gt=A.css&&A.css["font-size"]!==void 0?16*A.css["font-size"]:A.fontSize||12,L=A.margins||Object.assign({width:this.getPageWidth()},t),O=typeof A.padding=="number"?A.padding:3,z=A.headerBackgroundColor||"#c8c8c8",q=A.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=W,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=gt,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=q,this.setFontSize(gt),y==null)J=k=Object.keys(m[0]),X=k.map(function(){return"left"});else if(Array.isArray(y)&&Se(y[0])==="object")for(k=y.map(function(St){return St.name}),J=y.map(function(St){return St.prompt||St.name||""}),X=y.map(function(St){return St.align||"left"}),p=0;p<y.length;p+=1)mt[y[p].name]=.7499990551181103*y[p].width;else Array.isArray(y)&&typeof y[0]=="string"&&(J=k=y,X=k.map(function(){return"left"}));if(nt||Array.isArray(y)&&typeof y[0]=="string")for(p=0;p<k.length;p+=1){for(rt[M=k[p]]=m.map(function(St){return St[M]}),this.setFont(void 0,"bold"),At.push(this.getTextDimensions(J[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),T=rt[M],this.setFont(void 0,"normal"),I=0;I<T.length;I+=1)At.push(this.getTextDimensions(T[I],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);mt[M]=Math.max.apply(null,At)+O+O,At=[]}if(W){var it={};for(p=0;p<k.length;p+=1)it[k[p]]={},it[k[p]].text=J[p],it[k[p]].align=X[p];var ot=l.call(this,it,mt);It=k.map(function(St){return new s(u,d,mt[St],ot,it[St].text,void 0,it[St].align)}),this.setTableHeaderRow(It),this.printHeaderRow(1,!1)}var lt=y.reduce(function(St,vt){return St[vt.name]=vt.align,St},{});for(p=0;p<m.length;p+=1){"rowStart"in A&&A.rowStart instanceof Function&&A.rowStart({row:p,data:m[p]},this);var tt=l.call(this,m[p],mt);for(I=0;I<k.length;I+=1){var ct=m[p][k[I]];"cellStart"in A&&A.cellStart instanceof Function&&A.cellStart({row:p,col:I,data:ct},this),c.call(this,new s(u,d,mt[k[I]],tt,ct,p+2,lt[k[I]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=d,this};var l=function(u,d){var m=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,A=this.internal.scaleFactor;return Object.keys(u).map(function(p){var T=u[p];return this.splitTextToSize(T.hasOwnProperty("text")?T.text:T,d[p]-m-m)},this).map(function(p){return this.getLineHeightFactor()*p.length*y/A+m+m},this).reduce(function(p,T){return Math.max(p,T)},0)};e.setTableHeaderRow=function(u){n.call(this),this.internal.__cell__.tableHeaderRow=u},e.printHeaderRow=function(u,d){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var m;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){m=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(m.y=this.internal.__cell__.margins.top||0,A.push(m)),m.lineNumber=u;var T=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,m),this.setTextColor(T)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),r=!1}}(Ht.API);var qu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Uu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ro=Ru(Uu),zu=[100,200,300,400,500,600,700,800,900],Qc=Ru(zu);function _o(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(s){return qu[s=s||"normal"]?s:"normal"}(e.style),n=function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400}(e.weight),a=function(s){return typeof Ro[s=s||"normal"]=="number"?s:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:a,src:e.src||[],ref:e.ref||{name:t,style:[a,r,n].join(" ")}}}function Jl(e,t,r,n){var a;for(a=r;a>=0&&a<t.length;a+=n)if(e[t[a]])return e[t[a]];for(a=r;a>=0&&a<t.length;a-=n)if(e[t[a]])return e[t[a]]}var tf={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Kl={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Xl(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Zl(e){return e.trimLeft()}function ef(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function rf(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Ki,gs,Ql,tu,eu,Ao=["times"];function ru(e,t,r,n,a){var s=4,c=iu;switch(a){case Ht.API.image_compression.FAST:s=1,c=nu;break;case Ht.API.image_compression.MEDIUM:s=6,c=au;break;case Ht.API.image_compression.SLOW:s=9,c=su}e=function(u,d,m,y){for(var A,p=u.length/d,T=new Uint8Array(u.length+p),I=[nf,nu,iu,au,su],M=0;M<p;M+=1){var k=M*d,J=u.subarray(k,k+d);if(y)T.set(y(J,m,A),k+M);else{for(var X=I.length,rt=[],mt=0;mt<X;mt+=1)rt[mt]=I[mt](J,m,A);var At=sf(rt.concat());T.set(rt[At],k+M)}A=J}return T}(e,t,Math.ceil(r*n/8),c);var l=Bo(e,{level:s});return Ht.API.__addimage__.arrayBufferToBinaryString(l)}function nf(e){var t=Array.apply([],e);return t.unshift(0),t}function nu(e,t){var r=e.length,n=[];n[0]=1;for(var a=0;a<r;a+=1){var s=e[a-t]||0;n[a+1]=e[a]-s+256&255}return n}function iu(e,t,r){var n=e.length,a=[];a[0]=2;for(var s=0;s<n;s+=1){var c=r&&r[s]||0;a[s+1]=e[s]-c+256&255}return a}function au(e,t,r){var n=e.length,a=[];a[0]=3;for(var s=0;s<n;s+=1){var c=e[s-t]||0,l=r&&r[s]||0;a[s+1]=e[s]+256-(c+l>>>1)&255}return a}function su(e,t,r){var n=e.length,a=[];a[0]=4;for(var s=0;s<n;s+=1){var c=af(e[s-t]||0,r&&r[s]||0,r&&r[s-t]||0);a[s+1]=e[s]-c+256&255}return a}function af(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),a=Math.abs(e-r),s=Math.abs(e+t-r-r);return n<=a&&n<=s?e:a<=s?t:r}function sf(e){var t=e.map(function(r){return r.reduce(function(n,a){return n+Math.abs(a)},0)});return t.indexOf(Math.min.apply(null,t))}function So(e,t,r){var n=t*r,a=Math.floor(n/8),s=16-(n-8*a+r),c=(1<<r)-1;return Wu(e,a)>>s&c}function ou(e,t,r,n){var a=r*n,s=Math.floor(a/8),c=16-(a-8*s+n),l=(1<<n)-1,u=(t&l)<<c;(function(d,m,y){if(m+1<d.byteLength)d.setUint16(m,y,!1);else{var A=y>>8&255;d.setUint8(m,A)}})(e,s,Wu(e,s)&~(l<<c)&65535|u)}function Wu(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function of(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,a=e[t++],s=a>>7,c=1<<1+(7&a);e[t++],e[t++];var l=null,u=null;s&&(l=t,u=c,t+=3*c);var d=!0,m=[],y=0,A=null,p=0,T=null;for(this.width=r,this.height=n;d&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,T=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var I=e[t++];y=e[t++]|e[t++]<<8,A=e[t++],1&I||(A=null),p=I>>2&7,t++;break;case 254:for(;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var M=e[t++]|e[t++]<<8,k=e[t++]|e[t++]<<8,J=e[t++]|e[t++]<<8,X=e[t++]|e[t++]<<8,rt=e[t++],mt=rt>>6&1,At=1<<1+(7&rt),It=l,nt=u,W=!1;rt>>7&&(W=!0,It=t,nt=At,t+=3*At);var gt=t;for(t++;;){var L;if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}m.push({x:M,y:k,width:J,height:X,has_local_palette:W,palette_offset:It,palette_size:nt,data_offset:gt,data_length:t-gt,transparent_index:A,interlaced:!!mt,delay:y,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return T},this.frameInfo=function(O){if(O<0||O>=m.length)throw new Error("Frame index out of range.");return m[O]},this.decodeAndBlitFrameBGRA=function(O,z){var q=this.frameInfo(O),it=q.width*q.height;if(it>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ot=new Uint8Array(it);lu(e,q.data_offset,ot,it);var lt=q.palette_offset,tt=q.transparent_index;tt===null&&(tt=256);var ct=q.width,St=r-ct,vt=ct,N=4*(q.y*r+q.x),B=4*((q.y+q.height)*r+q.x),D=N,H=4*St;q.interlaced===!0&&(H+=4*r*7);for(var Y=8,Z=0,at=ot.length;Z<at;++Z){var st=ot[Z];if(vt===0&&(vt=ct,(D+=H)>=B&&(H=4*St+4*r*(Y-1),D=N+(ct+St)*(Y<<1),Y>>=1)),st===tt)D+=4;else{var pt=e[lt+3*st],Nt=e[lt+3*st+1],Ot=e[lt+3*st+2];z[D++]=Ot,z[D++]=Nt,z[D++]=pt,z[D++]=255}--vt}},this.decodeAndBlitFrameRGBA=function(O,z){var q=this.frameInfo(O),it=q.width*q.height;if(it>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ot=new Uint8Array(it);lu(e,q.data_offset,ot,it);var lt=q.palette_offset,tt=q.transparent_index;tt===null&&(tt=256);var ct=q.width,St=r-ct,vt=ct,N=4*(q.y*r+q.x),B=4*((q.y+q.height)*r+q.x),D=N,H=4*St;q.interlaced===!0&&(H+=4*r*7);for(var Y=8,Z=0,at=ot.length;Z<at;++Z){var st=ot[Z];if(vt===0&&(vt=ct,(D+=H)>=B&&(H=4*St+4*r*(Y-1),D=N+(ct+St)*(Y<<1),Y>>=1)),st===tt)D+=4;else{var pt=e[lt+3*st],Nt=e[lt+3*st+1],Ot=e[lt+3*st+2];z[D++]=pt,z[D++]=Nt,z[D++]=Ot,z[D++]=255}--vt}}}function lu(e,t,r,n){for(var a=e[t++],s=1<<a,c=s+1,l=c+1,u=a+1,d=(1<<u)-1,m=0,y=0,A=0,p=e[t++],T=new Int32Array(4096),I=null;;){for(;m<16&&p!==0;)y|=e[t++]<<m,m+=8,p===1?p=e[t++]:--p;if(m<u)break;var M=y&d;if(y>>=u,m-=u,M!==s){if(M===c)break;for(var k=M<l?M:I,J=0,X=k;X>s;)X=T[X]>>8,++J;var rt=X;if(A+J+(k!==M?1:0)>n)return void je.log("Warning, gif stream longer than expected.");r[A++]=rt;var mt=A+=J;for(k!==M&&(r[A++]=rt),X=k;J--;)X=T[X],r[--mt]=255&X,X>>=8;I!==null&&l<4096&&(T[l++]=I<<8|rt,l>=d+1&&u<12&&(++u,d=d<<1|1)),I=M}else l=c+1,d=(1<<(u=a+1))-1,I=null}return A!==n&&je.log("Warning, gif stream shorter than expected."),r}/** 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 Lo(e){var t,r,n,a,s,c=Math.floor,l=new Array(64),u=new Array(64),d=new Array(64),m=new Array(64),y=new Array(65535),A=new Array(65535),p=new Array(64),T=new Array(64),I=[],M=0,k=7,J=new Array(64),X=new Array(64),rt=new Array(64),mt=new Array(256),At=new Array(2048),It=[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],nt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],gt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],q=[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 ot(N,B){for(var D=0,H=0,Y=new Array,Z=1;Z<=16;Z++){for(var at=1;at<=N[Z];at++)Y[B[H]]=[],Y[B[H]][0]=D,Y[B[H]][1]=Z,H++,D++;D*=2}return Y}function lt(N){for(var B=N[0],D=N[1]-1;D>=0;)B&1<<D&&(M|=1<<k),D--,--k<0&&(M==255?(tt(255),tt(0)):tt(M),k=7,M=0)}function tt(N){I.push(N)}function ct(N){tt(N>>8&255),tt(255&N)}function St(N,B,D,H,Y){for(var Z,at=Y[0],st=Y[240],pt=function(wt,Xt){var Et,Jt,Gt,pe,U,Lt,Kt,Tt,Ct,Zt,Mt=0;for(Ct=0;Ct<8;++Ct){Et=wt[Mt],Jt=wt[Mt+1],Gt=wt[Mt+2],pe=wt[Mt+3],U=wt[Mt+4],Lt=wt[Mt+5],Kt=wt[Mt+6];var Me=Et+(Tt=wt[Mt+7]),ge=Et-Tt,he=Jt+Kt,_t=Jt-Kt,xe=Gt+Lt,Yt=Gt-Lt,Ce=pe+U,ee=pe-U,oe=Me+Ce,De=Me-Ce,de=he+xe,Qt=he-xe;wt[Mt]=oe+de,wt[Mt+4]=oe-de;var we=.707106781*(Qt+De);wt[Mt+2]=De+we,wt[Mt+6]=De-we;var ei=.382683433*((oe=ee+Yt)-(Qt=_t+ge)),fr=.5411961*oe+ei,vn=1.306562965*Qt+ei,nn=.707106781*(de=Yt+_t),te=ge+nn,bn=ge-nn;wt[Mt+5]=bn+fr,wt[Mt+3]=bn-fr,wt[Mt+1]=te+vn,wt[Mt+7]=te-vn,Mt+=8}for(Mt=0,Ct=0;Ct<8;++Ct){Et=wt[Mt],Jt=wt[Mt+8],Gt=wt[Mt+16],pe=wt[Mt+24],U=wt[Mt+32],Lt=wt[Mt+40],Kt=wt[Mt+48];var yn=Et+(Tt=wt[Mt+56]),Rr=Et-Tt,qr=Jt+Kt,ze=Jt-Kt,ar=Gt+Lt,or=Gt-Lt,ri=pe+U,En=pe-U,Gr=yn+ri,an=yn-ri,Yr=qr+ar,$r=qr-ar;wt[Mt]=Gr+Yr,wt[Mt+32]=Gr-Yr;var Ur=.707106781*($r+an);wt[Mt+16]=an+Ur,wt[Mt+48]=an-Ur;var ni=.382683433*((Gr=En+or)-($r=ze+Rr)),sn=.5411961*Gr+ni,ii=1.306562965*$r+ni,Pi=.707106781*(Yr=or+ze),ki=Rr+Pi,ji=Rr-Pi;wt[Mt+40]=ji+sn,wt[Mt+24]=ji-sn,wt[Mt+8]=ki+ii,wt[Mt+56]=ki-ii,Mt++}for(Ct=0;Ct<64;++Ct)Zt=wt[Ct]*Xt[Ct],p[Ct]=Zt>0?Zt+.5|0:Zt-.5|0;return p}(N,B),Nt=0;Nt<64;++Nt)T[It[Nt]]=pt[Nt];var Ot=T[0]-D;D=T[0],Ot==0?lt(H[0]):(lt(H[A[Z=32767+Ot]]),lt(y[Z]));for(var Ft=63;Ft>0&&T[Ft]==0;)Ft--;if(Ft==0)return lt(at),D;for(var Vt,P=1;P<=Ft;){for(var jt=P;T[P]==0&&P<=Ft;)++P;var se=P-jt;if(se>=16){Vt=se>>4;for(var $t=1;$t<=Vt;++$t)lt(st);se&=15}Z=32767+T[P],lt(Y[(se<<4)+A[Z]]),lt(y[Z]),P++}return Ft!=63&<(at),D}function vt(N){N=Math.min(Math.max(N,1),100),s!=N&&(function(B){for(var D=[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=c((D[H]*B+50)/100);Y=Math.min(Math.max(Y,1),255),l[It[H]]=Y}for(var Z=[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 st=c((Z[at]*B+50)/100);st=Math.min(Math.max(st,1),255),u[It[at]]=st}for(var pt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Nt=0,Ot=0;Ot<8;Ot++)for(var Ft=0;Ft<8;Ft++)d[Nt]=1/(l[It[Nt]]*pt[Ot]*pt[Ft]*8),m[Nt]=1/(u[It[Nt]]*pt[Ot]*pt[Ft]*8),Nt++}(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),s=N)}this.encode=function(N,B){B&&vt(B),I=new Array,M=0,k=7,ct(65496),ct(65504),ct(16),tt(74),tt(70),tt(73),tt(70),tt(0),tt(1),tt(1),tt(0),ct(1),ct(1),tt(0),tt(0),function(){ct(65499),ct(132),tt(0);for(var Jt=0;Jt<64;Jt++)tt(l[Jt]);tt(1);for(var Gt=0;Gt<64;Gt++)tt(u[Gt])}(),function(Jt,Gt){ct(65472),ct(17),tt(8),ct(Gt),ct(Jt),tt(3),tt(1),tt(17),tt(0),tt(2),tt(17),tt(1),tt(3),tt(17),tt(1)}(N.width,N.height),function(){ct(65476),ct(418),tt(0);for(var Jt=0;Jt<16;Jt++)tt(nt[Jt+1]);for(var Gt=0;Gt<=11;Gt++)tt(W[Gt]);tt(16);for(var pe=0;pe<16;pe++)tt(gt[pe+1]);for(var U=0;U<=161;U++)tt(L[U]);tt(1);for(var Lt=0;Lt<16;Lt++)tt(O[Lt+1]);for(var Kt=0;Kt<=11;Kt++)tt(z[Kt]);tt(17);for(var Tt=0;Tt<16;Tt++)tt(q[Tt+1]);for(var Ct=0;Ct<=161;Ct++)tt(it[Ct])}(),ct(65498),ct(12),tt(3),tt(1),tt(0),tt(2),tt(17),tt(3),tt(17),tt(0),tt(63),tt(0);var D=0,H=0,Y=0;
vendor: 26,907 bytes, lines 103-109
103M=0,k=7,this.encode.displayName="_encode_";for(var Z,at,st,pt,Nt,Ot,Ft,Vt,P,jt=N.data,se=N.width,$t=N.height,wt=4*se,Xt=0;Xt<$t;){for(Z=0;Z<wt;){for(Nt=wt*Xt+Z,Ft=-1,Vt=0,P=0;P<64;P++)Ot=Nt+(Vt=P>>3)*wt+(Ft=4*(7&P)),Xt+Vt>=$t&&(Ot-=wt*(Xt+1+Vt-$t)),Z+Ft>=wt&&(Ot-=Z+Ft-wt+4),at=jt[Ot++],st=jt[Ot++],pt=jt[Ot++],J[P]=(At[at]+At[st+256|0]+At[pt+512|0]>>16)-128,X[P]=(At[at+768|0]+At[st+1024|0]+At[pt+1280|0]>>16)-128,rt[P]=(At[at+1280|0]+At[st+1536|0]+At[pt+1792|0]>>16)-128;D=St(J,d,D,t,n),H=St(X,m,H,r,a),Y=St(rt,m,Y,r,a),Z+=32}Xt+=8}if(k>=0){var Et=[];Et[1]=k+1,Et[0]=(1<<k+1)-1,lt(Et)}return ct(65497),new Uint8Array(I)},e=e||50,function(){for(var N=String.fromCharCode,B=0;B<256;B++)mt[B]=N(B)}(),t=ot(nt,W),r=ot(O,z),n=ot(gt,L),a=ot(q,it),function(){for(var N=1,B=2,D=1;D<=15;D++){for(var H=N;H<B;H++)A[32767+H]=D,y[32767+H]=[],y[32767+H][1]=D,y[32767+H][0]=H;for(var Y=-(B-1);Y<=-N;Y++)A[32767+Y]=D,y[32767+Y]=[],y[32767+Y][1]=D,y[32767+Y][0]=B-1+Y;N<<=1,B<<=1}}(),function(){for(var N=0;N<256;N++)At[N]=19595*N,At[N+256|0]=38470*N,At[N+512|0]=7471*N+32768,At[N+768|0]=-11059*N,At[N+1024|0]=-21709*N,At[N+1280|0]=32768*N+8421375,At[N+1536|0]=-27439*N,At[N+1792|0]=-5329*N}(),vt(e)}/** 104 * @license 105 * Copyright (c) 2017 Aras Abbasi 106 * 107 * Licensed under the MIT License. 108 * http://opensource.org/licenses/mit-license 109 */function Qr(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,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 uu(e){function t(W){if(!W)throw Error("assert :P")}function r(W,gt,L){for(var O=0;4>O;O++)if(W[gt+O]!=L.charCodeAt(O))return!0;return!1}function n(W,gt,L,O,z){for(var q=0;q<z;q++)W[gt+q]=L[O+q]}function a(W,gt,L,O){for(var z=0;z<O;z++)W[gt+z]=L}function s(W){return new Int32Array(W)}function c(W,gt){for(var L=[],O=0;O<W;O++)L.push(new gt);return L}function l(W,gt){var L=[];return function O(z,q,it){for(var ot=it[q],lt=0;lt<ot&&(z.push(it.length>q+1?[]:new gt),!(it.length<q+1));lt++)O(z[lt],q+1,it)}(L,0,W),L}var u=function(){var W=this;function gt(i,o){for(var f=1<<o-1>>>0;i&f;)f>>>=1;return f?(i&f-1)+f:i}function L(i,o,f,g,b){t(!(g%f));do i[o+(g-=f)]=b;while(0<g)}function O(i,o,f,g,b){if(t(2328>=b),512>=b)var w=s(512);else if((w=s(b))==null)return 0;return function(x,_,S,C,V,et){var F,G,K=_,ht=1<<S,Q=s(16),ft=s(16);for(t(V!=0),t(C!=null),t(x!=null),t(0<S),G=0;G<V;++G){if(15<C[G])return 0;++Q[C[G]]}if(Q[0]==V)return 0;for(ft[1]=0,F=1;15>F;++F){if(Q[F]>1<<F)return 0;ft[F+1]=ft[F]+Q[F]}for(G=0;G<V;++G)F=C[G],0<C[G]&&(et[ft[F]++]=G);if(ft[15]==1)return(C=new z).g=0,C.value=et[0],L(x,K,1,ht,C),ht;var dt,xt=-1,yt=ht-1,Wt=0,Bt=1,ce=1,Ut=1<<S;for(G=0,F=1,V=2;F<=S;++F,V<<=1){if(Bt+=ce<<=1,0>(ce-=Q[F]))return 0;for(;0<Q[F];--Q[F])(C=new z).g=F,C.value=et[G++],L(x,K+Wt,V,Ut,C),Wt=gt(Wt,F)}for(F=S+1,V=2;15>=F;++F,V<<=1){if(Bt+=ce<<=1,0>(ce-=Q[F]))return 0;for(;0<Q[F];--Q[F]){if(C=new z,(Wt&yt)!=xt){for(K+=Ut,dt=1<<(xt=F)-S;15>xt&&!(0>=(dt-=Q[xt]));)++xt,dt<<=1;ht+=Ut=1<<(dt=xt-S),x[_+(xt=Wt&yt)].g=dt+S,x[_+xt].value=K-_-xt}C.g=F-S,C.value=et[G++],L(x,K+(Wt>>S),V,Ut,C),Wt=gt(Wt,F)}}return Bt!=2*ft[15]-1?0:ht}(i,o,f,g,b,w)}function z(){this.value=this.g=0}function q(){this.value=this.g=0}function it(){this.G=c(5,z),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(zi,q)}function ot(i,o,f,g){t(i!=null),t(o!=null),t(2147483648>g),i.Ca=254,i.I=0,i.b=-8,i.Ka=0,i.oa=o,i.pa=f,i.Jd=o,i.Yc=f+g,i.Zc=4<=g?f+g-4+1:f,at(i)}function lt(i,o){for(var f=0;0<o--;)f|=pt(i,128)<<o;return f}function tt(i,o){var f=lt(i,o);return st(i)?-f:f}function ct(i,o,f,g){var b,w=0;for(t(i!=null),t(o!=null),t(4294967288>g),i.Sb=g,i.Ra=0,i.u=0,i.h=0,4<g&&(g=4),b=0;b<g;++b)w+=o[f+b]<<8*b;i.Ra=w,i.bb=g,i.oa=o,i.pa=f}function St(i){for(;8<=i.u&&i.bb<i.Sb;)i.Ra>>>=8,i.Ra+=i.oa[i.pa+i.bb]<<Nr-8>>>0,++i.bb,i.u-=8;H(i)&&(i.h=1,i.u=0)}function vt(i,o){if(t(0<=o),!i.h&&o<=ba){var f=D(i)&pi[o];return i.u+=o,St(i),f}return i.h=1,i.u=0}function N(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function D(i){return i.Ra>>>(i.u&Nr-1)>>>0}function H(i){return t(i.bb<=i.Sb),i.h||i.bb==i.Sb&&i.u>Nr}function Y(i,o){i.u=o,i.h=H(i)}function Z(i){i.u>=Lr&&(t(i.u>=Lr),St(i))}function at(i){t(i!=null&&i.oa!=null),i.pa<i.Zc?(i.I=(i.oa[i.pa++]|i.I<<8)>>>0,i.b+=8):(t(i!=null&&i.oa!=null),i.pa<i.Yc?(i.b+=8,i.I=i.oa[i.pa++]|i.I<<8):i.Ka?i.b=0:(i.I<<=8,i.b+=8,i.Ka=1))}function st(i){return lt(i,1)}function pt(i,o){var f=i.Ca;0>i.b&&at(i);var g=i.b,b=f*o>>>8,w=(i.I>>>g>b)+0;for(w?(f-=b,i.I-=b+1<<g>>>0):f=b+1,g=f,b=0;256<=g;)b+=8,g>>=8;return g=7^b+Wi[g],i.b-=g,i.Ca=(f<<g)-1,w}function Nt(i,o,f){i[o+0]=f>>24&255,i[o+1]=f>>16&255,i[o+2]=f>>8&255,i[o+3]=255&f}function Ot(i,o){return i[o+0]|i[o+1]<<8}function Ft(i,o){return Ot(i,o)|i[o+2]<<16}function Vt(i,o){return Ot(i,o)|Ot(i,o+2)<<16}function P(i,o){var f=1<<o;return t(i!=null),t(0<o),i.X=s(f),i.X==null?0:(i.Mb=32-o,i.Xa=o,1)}function jt(i,o){t(i!=null),t(o!=null),t(i.Xa==o.Xa),n(o.X,0,i.X,0,1<<o.Xa)}function se(){this.X=[],this.Xa=this.Mb=0}function $t(i,o,f,g){t(f!=null),t(g!=null);var b=f[0],w=g[0];return b==0&&(b=(i*w+o/2)/o),w==0&&(w=(o*b+i/2)/i),0>=b||0>=w?0:(f[0]=b,g[0]=w,1)}function wt(i,o){return i+(1<<o)-1>>>o}function Xt(i,o){return((4278255360&i)+(4278255360&o)>>>0&4278255360)+((16711935&i)+(16711935&o)>>>0&16711935)>>>0}function Et(i,o){W[o]=function(f,g,b,w,x,_,S){var C;for(C=0;C<x;++C){var V=W[i](_[S+C-1],b,w+C);_[S+C]=Xt(f[g+C],V)}}}function Jt(){this.ud=this.hd=this.jd=0}function Gt(i,o){return((4278124286&(i^o))>>>1)+(i&o)>>>0}function pe(i){return 0<=i&&256>i?i:0>i?0:255<i?255:void 0}function U(i,o){return pe(i+(i-o+.5>>1))}function Lt(i,o,f){return Math.abs(o-f)-Math.abs(i-f)}function Kt(i,o,f,g,b,w,x){for(g=w[x-1],f=0;f<b;++f)w[x+f]=g=Xt(i[o+f],g)}function Tt(i,o,f,g,b){var w;for(w=0;w<f;++w){var x=i[o+w],_=x>>8&255,S=16711935&(S=(S=16711935&x)+((_<<16)+_));g[b+w]=(4278255360&x)+S>>>0}}function Ct(i,o){o.jd=255&i,o.hd=i>>8&255,o.ud=i>>16&255}function Zt(i,o,f,g,b,w){var x;for(x=0;x<g;++x){var _=o[f+x],S=_>>>8,C=_,V=255&(V=(V=_>>>16)+((i.jd<<24>>24)*(S<<24>>24)>>>5));C=255&(C=(C+=(i.hd<<24>>24)*(S<<24>>24)>>>5)+((i.ud<<24>>24)*(V<<24>>24)>>>5)),b[w+x]=(4278255360&_)+(V<<16)+C}}function Mt(i,o,f,g,b){W[o]=function(w,x,_,S,C,V,et,F,G){for(S=et;S<F;++S)for(et=0;et<G;++et)C[V++]=b(_[g(w[x++])])},W[i]=function(w,x,_,S,C,V,et){var F=8>>w.b,G=w.Ea,K=w.K[0],ht=w.w;if(8>F)for(w=(1<<w.b)-1,ht=(1<<F)-1;x<_;++x){var Q,ft=0;for(Q=0;Q<G;++Q)Q&w||(ft=g(S[C++])),V[et++]=b(K[ft&ht]),ft>>=F}else W["VP8LMapColor"+f](S,C,K,ht,V,et,x,_,G)}}function Me(i,o,f,g,b){for(f=o+f;o<f;){var w=i[o++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w}}function ge(i,o,f,g,b){for(f=o+f;o<f;){var w=i[o++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w,g[b++]=w>>24&255}}function he(i,o,f,g,b){for(f=o+f;o<f;){var w=(x=i[o++])>>16&240|x>>12&15,x=240&x|x>>28&15;g[b++]=w,g[b++]=x}}function _t(i,o,f,g,b){for(f=o+f;o<f;){var w=(x=i[o++])>>16&248|x>>13&7,x=x>>5&224|x>>3&31;g[b++]=w,g[b++]=x}}function xe(i,o,f,g,b){for(f=o+f;o<f;){var w=i[o++];g[b++]=255&w,g[b++]=w>>8&255,g[b++]=w>>16&255}}function Yt(i,o,f,g,b,w){if(w==0)for(f=o+f;o<f;)Nt(g,((w=i[o++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),b+=32;else n(g,b,i,o,f)}function Ce(i,o){W[o][0]=W[i+"0"],W[o][1]=W[i+"1"],W[o][2]=W[i+"2"],W[o][3]=W[i+"3"],W[o][4]=W[i+"4"],W[o][5]=W[i+"5"],W[o][6]=W[i+"6"],W[o][7]=W[i+"7"],W[o][8]=W[i+"8"],W[o][9]=W[i+"9"],W[o][10]=W[i+"10"],W[o][11]=W[i+"11"],W[o][12]=W[i+"12"],W[o][13]=W[i+"13"],W[o][14]=W[i+"0"],W[o][15]=W[i+"0"]}function ee(i){return i==Zs||i==Qs||i==es||i==to}function oe(){this.eb=[],this.size=this.A=this.fb=0}function De(){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 de(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new oe,this.f.kb=new De,this.sd=null}function Qt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function we(){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 ei(i){return alert("todo:WebPSamplerProcessPlane"),i.T}function fr(i,o){var f=i.T,g=o.ba.f.RGBA,b=g.eb,w=g.fb+i.ka*g.A,x=Vr[o.ba.S],_=i.y,S=i.O,C=i.f,V=i.N,et=i.ea,F=i.W,G=o.cc,K=o.dc,ht=o.Mc,Q=o.Nc,ft=i.ka,dt=i.ka+i.T,xt=i.U,yt=xt+1>>1;for(ft==0?x(_,S,null,null,C,V,et,F,C,V,et,F,b,w,null,null,xt):(x(o.ec,o.fc,_,S,G,K,ht,Q,C,V,et,F,b,w-g.A,b,w,xt),++f);ft+2<dt;ft+=2)G=C,K=V,ht=et,Q=F,V+=i.Rc,F+=i.Rc,w+=2*g.A,x(_,(S+=2*i.fa)-i.fa,_,S,G,K,ht,Q,C,V,et,F,b,w-g.A,b,w,xt);return S+=i.fa,i.j+dt<i.o?(n(o.ec,o.fc,_,S,xt),n(o.cc,o.dc,C,V,yt),n(o.Mc,o.Nc,et,F,yt),f--):1&dt||x(_,S,null,null,C,V,et,F,C,V,et,F,b,w+g.A,null,null,xt),f}function vn(i,o,f){var g=i.F,b=[i.J];if(g!=null){var w=i.U,x=o.ba.S,_=x==ts||x==es;o=o.ba.f.RGBA;var S=[0],C=i.ka;S[0]=i.T,i.Kb&&(C==0?--S[0]:(--C,b[0]-=i.width),i.j+i.ka+i.T==i.o&&(S[0]=i.o-i.j-C));var V=o.eb;C=o.fb+C*o.A,i=Qo(g,b[0],i.width,w,S,V,C+(_?0:3),o.A),t(f==S),i&&ee(x)&&Na(V,C,_,w,S,o.A)}return 0}function nn(i){var o=i.ma,f=o.ba.S,g=11>f,b=f==Za||f==Qa||f==ts||f==Xs||f==12||ee(f);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!Wr(o.Oa,i,b?11:12))return 0;if(b&&ee(f)&&Sn(),i.da)alert("todo:use_scaling");else{if(g){if(o.Ib=ei,i.Kb){if(f=i.U+1>>1,o.memory=s(i.U+2*f),o.memory==null)return 0;o.ec=o.memory,o.fc=0,o.cc=o.ec,o.dc=o.fc+i.U,o.Mc=o.cc,o.Nc=o.dc+f,o.Ib=fr,Sn()}}else alert("todo:EmitYUV");b&&(o.Jb=vn,g&&Ue())}if(g&&!gl){for(i=0;256>i;++i)Lh[i]=89858*(i-128)+ns>>rs,jh[i]=-22014*(i-128)+ns,kh[i]=-45773*(i-128),Ph[i]=113618*(i-128)+ns>>rs;for(i=Aa;i<no;++i)o=76283*(i-16)+ns>>rs,Ch[i-Aa]=on(o,255),Fh[i-Aa]=on(o+8>>4,15);gl=1}return 1}function te(i){var o=i.ma,f=i.U,g=i.T;return t(!(1&i.ka)),0>=f||0>=g?0:(f=o.Ib(i,o),o.Jb!=null&&o.Jb(i,o,f),o.Dc+=f,1)}function bn(i){i.ma.memory=null}function yn(i,o,f,g){return vt(i,8)!=47?0:(o[0]=vt(i,14)+1,f[0]=vt(i,14)+1,g[0]=vt(i,1),vt(i,3)!=0?0:!i.h)}function Rr(i,o){if(4>i)return i+1;var f=i-2>>1;return(2+(1&i)<<f)+vt(o,f)+1}function qr(i,o){return 120<o?o-120:1<=(f=((f=fh[o-1])>>4)*i+(8-(15&f)))?f:1;var f}function ze(i,o,f){var g=D(f),b=i[o+=255&g].g-8;return 0<b&&(Y(f,f.u+8),g=D(f),o+=i[o].value,o+=g&(1<<b)-1),Y(f,f.u+i[o].g),i[o].value}function ar(i,o,f){return f.g+=i.g,f.value+=i.value<<o>>>0,t(8>=f.g),i.g}function or(i,o,f){var g=i.xc;return t((o=g==0?0:i.vc[i.md*(f>>g)+(o>>g)])<i.Wb),i.Ya[o]}function ri(i,o,f,g){var b=i.ab,w=i.c*o,x=i.C;o=x+o;var _=f,S=g;for(g=i.Ta,f=i.Ua;0<b--;){var C=i.gc[b],V=x,et=o,F=_,G=S,K=(S=g,_=f,C.Ea);switch(t(V<et),t(et<=C.nc),C.hc){case 2:Hi(F,G,(et-V)*K,S,_);break;case 0:var ht=V,Q=et,ft=S,dt=_,xt=(Ut=C).Ea;ht==0&&(Rn(F,G,null,null,1,ft,dt),Kt(F,G+1,0,0,xt-1,ft,dt+1),G+=xt,dt+=xt,++ht);for(var yt=1<<Ut.b,Wt=yt-1,Bt=wt(xt,Ut.b),ce=Ut.K,Ut=Ut.w+(ht>>Ut.b)*Bt;ht<Q;){var me=ce,rr=Ut,fe=1;for(qn(F,G,ft,dt-xt,1,ft,dt);fe<xt;){var zt=(fe&~Wt)+yt;zt>xt&&(zt=xt),(0,Jr[me[rr++]>>8&15])(F,G+ +fe,ft,dt+fe-xt,zt-fe,ft,dt+fe),fe=zt}G+=xt,dt+=xt,++ht&Wt||(Ut+=Bt)}et!=C.nc&&n(S,_-K,S,_+(et-V-1)*K,K);break;case 1:for(K=F,Q=G,xt=(F=C.Ea)-(dt=F&~(ft=(G=1<<C.b)-1)),ht=wt(F,C.b),yt=C.K,C=C.w+(V>>C.b)*ht;V<et;){for(Wt=yt,Bt=C,ce=new Jt,Ut=Q+dt,me=Q+F;Q<Ut;)Ct(Wt[Bt++],ce),mi(ce,K,Q,G,S,_),Q+=G,_+=G;Q<me&&(Ct(Wt[Bt++],ce),mi(ce,K,Q,xt,S,_),Q+=xt,_+=xt),++V&ft||(C+=ht)}break;case 3:if(F==S&&G==_&&0<C.b){for(Q=S,F=K=_+(et-V)*K-(dt=(et-V)*wt(C.Ea,C.b)),G=S,ft=_,ht=[],dt=(xt=dt)-1;0<=dt;--dt)ht[dt]=G[ft+dt];for(dt=xt-1;0<=dt;--dt)Q[F+dt]=ht[dt];gi(C,V,et,S,K,S,_)}else gi(C,V,et,F,G,S,_)}_=g,S=f}S!=f&&n(g,f,_,S,w)}function En(i,o){var f=i.V,g=i.Ba+i.c*i.C,b=o-i.C;if(t(o<=i.l.o),t(16>=b),0<b){var w=i.l,x=i.Ta,_=i.Ua,S=w.width;if(ri(i,b,f,g),b=_=[_],t((f=i.C)<(g=o)),t(w.v<w.va),g>w.o&&(g=w.o),f<w.j){var C=w.j-f;f=w.j,b[0]+=C*S}if(f>=g?f=0:(b[0]+=4*w.v,w.ka=f-w.j,w.U=w.va-w.v,w.T=g-f,f=1),f){if(_=_[0],11>(f=i.ca).S){var V=f.f.RGBA,et=(g=f.S,b=w.U,w=w.T,C=V.eb,V.A),F=w;for(V=V.fb+i.Ma*V.A;0<F--;){var G=x,K=_,ht=b,Q=C,ft=V;switch(g){case Xa:ya(G,K,ht,Q,ft);break;case Za:wa(G,K,ht,Q,ft);break;case Zs:wa(G,K,ht,Q,ft),Na(Q,ft,0,ht,1,0);break;case sl:bi(G,K,ht,Q,ft);break;case Qa:Yt(G,K,ht,Q,ft,1);break;case Qs:Yt(G,K,ht,Q,ft,1),Na(Q,ft,0,ht,1,0);break;case ts:Yt(G,K,ht,Q,ft,0);break;case es:Yt(G,K,ht,Q,ft,0),Na(Q,ft,1,ht,1,0);break;case Xs:Vi(G,K,ht,Q,ft);break;case to:Vi(G,K,ht,Q,ft),Zo(Q,ft,ht,1,0);break;case ol:vi(G,K,ht,Q,ft);break;default:t(0)}_+=S,V+=et}i.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");t(i.Ma<=f.height)}}i.C=o,t(i.C<=i.i)}function Gr(i){var o;if(0<i.ua)return 0;for(o=0;o<i.Wb;++o){var f=i.Ya[o].G,g=i.Ya[o].H;if(0<f[1][g[1]+0].g||0<f[2][g[2]+0].g||0<f[3][g[3]+0].g)return 0}return 1}function an(i,o,f,g,b,w){if(i.Z!=0){var x=i.qd,_=i.rd;for(t(Hn[i.Z]!=null);o<f;++o)Hn[i.Z](x,_,g,b,g,b,w),x=g,_=b,b+=w;i.qd=x,i.rd=_}}function Yr(i,o){var f=i.l.ma,g=f.Z==0||f.Z==1?i.l.j:i.C;if(g=i.C<g?g:i.C,t(o<=i.l.o),o>g){var b=i.l.width,w=f.ca,x=f.tb+b*g,_=i.V,S=i.Ba+i.c*g,C=i.gc;t(i.ab==1),t(C[0].hc==3),Js(C[0],g,o,_,S,w,x),an(f,g,o,w,x,b)}i.C=i.Ma=o}function $r(i,o,f,g,b,w,x){var _=i.$/g,S=i.$%g,C=i.m,V=i.s,et=f+i.$,F=et;b=f+g*b;var G=f+g*w,K=280+V.ua,ht=i.Pb?_:16777216,Q=0<V.ua?V.Wa:null,ft=V.wc,dt=et<G?or(V,S,_):null;t(i.C<w),t(G<=b);var xt=!1;t:for(;;){for(;xt||et<G;){var yt=0;if(_>=ht){var Wt=et-f;t((ht=i).Pb),ht.wd=ht.m,ht.xd=Wt,0<ht.s.ua&&jt(ht.s.Wa,ht.s.vb),ht=_+ph}if(S&ft||(dt=or(V,S,_)),t(dt!=null),dt.Qb&&(o[et]=dt.qb,xt=!0),!xt)if(Z(C),dt.jc){yt=C,Wt=o;var Bt=et,ce=dt.pd[D(yt)&zi-1];t(dt.jc),256>ce.g?(Y(yt,yt.u+ce.g),Wt[Bt]=ce.value,yt=0):(Y(yt,yt.u+ce.g-256),t(256<=ce.value),yt=ce.value),yt==0&&(xt=!0)}else yt=ze(dt.G[0],dt.H[0],C);if(C.h)break;if(xt||256>yt){if(!xt)if(dt.nd)o[et]=(dt.qb|yt<<8)>>>0;else{if(Z(C),xt=ze(dt.G[1],dt.H[1],C),Z(C),Wt=ze(dt.G[2],dt.H[2],C),Bt=ze(dt.G[3],dt.H[3],C),C.h)break;o[et]=(Bt<<24|xt<<16|yt<<8|Wt)>>>0}if(xt=!1,++et,++S>=g&&(S=0,++_,x!=null&&_<=w&&!(_%16)&&x(i,_),Q!=null))for(;F<et;)yt=o[F++],Q.X[(506832829*yt&4294967295)>>>Q.Mb]=yt}else if(280>yt){if(yt=Rr(yt-256,C),Wt=ze(dt.G[4],dt.H[4],C),Z(C),Wt=qr(g,Wt=Rr(Wt,C)),C.h)break;if(et-f<Wt||b-et<yt)break t;for(Bt=0;Bt<yt;++Bt)o[et+Bt]=o[et+Bt-Wt];for(et+=yt,S+=yt;S>=g;)S-=g,++_,x!=null&&_<=w&&!(_%16)&&x(i,_);if(t(et<=b),S&ft&&(dt=or(V,S,_)),Q!=null)for(;F<et;)yt=o[F++],Q.X[(506832829*yt&4294967295)>>>Q.Mb]=yt}else{if(!(yt<K))break t;for(xt=yt-280,t(Q!=null);F<et;)yt=o[F++],Q.X[(506832829*yt&4294967295)>>>Q.Mb]=yt;yt=et,t(!(xt>>>(Wt=Q).Xa)),o[yt]=Wt.X[xt],xt=!0}xt||t(C.h==H(C))}if(i.Pb&&C.h&&et<b)t(i.m.h),i.a=5,i.m=i.wd,i.$=i.xd,0<i.s.ua&&jt(i.s.vb,i.s.Wa);else{if(C.h)break t;x!=null&&x(i,_>w?w:_),i.a=0,i.$=et-f}return 1}return i.a=3,0}function Ur(i){t(i!=null),i.vc=null,i.yc=null,i.Ya=null;var o=i.Wa;o!=null&&(o.X=null),i.vb=null,t(i!=null)}function ni(){var i=new qt;return i==null?null:(i.a=0,i.xb=hl,Ce("Predictor","VP8LPredictors"),Ce("Predictor","VP8LPredictors_C"),Ce("PredictorAdd","VP8LPredictorsAdd"),Ce("PredictorAdd","VP8LPredictorsAdd_C"),Hi=Tt,mi=Zt,ya=Me,wa=ge,Vi=he,vi=_t,bi=xe,W.VP8LMapColor32b=tr,W.VP8LMapColor8b=fn,i)}function sn(i,o,f,g,b){var w=1,x=[i],_=[o],S=g.m,C=g.s,V=null,et=0;t:for(;;){if(f)for(;w&&vt(S,1);){var F=x,G=_,K=g,ht=1,Q=K.m,ft=K.gc[K.ab],dt=vt(Q,2);if(K.Oc&1<<dt)w=0;else{switch(K.Oc|=1<<dt,ft.hc=dt,ft.Ea=F[0],ft.nc=G[0],ft.K=[null],++K.ab,t(4>=K.ab),dt){case 0:case 1:ft.b=vt(Q,3)+2,ht=sn(wt(ft.Ea,ft.b),wt(ft.nc,ft.b),0,K,ft.K),ft.K=ft.K[0];break;case 3:var xt,yt=vt(Q,8)+1,Wt=16<yt?0:4<yt?1:2<yt?2:3;if(F[0]=wt(ft.Ea,Wt),ft.b=Wt,xt=ht=sn(yt,1,0,K,ft.K)){var Bt,ce=yt,Ut=ft,me=1<<(8>>Ut.b),rr=s(me);if(rr==null)xt=0;else{var fe=Ut.K[0],zt=Ut.w;for(rr[0]=Ut.K[0][0],Bt=1;Bt<1*ce;++Bt)rr[Bt]=Xt(fe[zt+Bt],rr[Bt-1]);for(;Bt<4*me;++Bt)rr[Bt]=0;Ut.K[0]=null,Ut.K[0]=rr,xt=1}}ht=xt;break;case 2:break;default:t(0)}w=ht}}if(x=x[0],_=_[0],w&&vt(S,1)&&!(w=1<=(et=vt(S,4))&&11>=et)){g.a=3;break t}var kt;if(kt=w)e:{var Ye,ue,be,Be=g,ur=x,_r=_,We=et,mr=f,Ar=Be.m,nr=Be.s,ye=[null],Ne=1,He=0,_e=dh[We];r:for(;;){if(mr&&vt(Ar,1)){var hr=vt(Ar,3)+2,Xr=wt(ur,hr),$e=wt(_r,hr),Pr=Xr*$e;if(!sn(Xr,$e,0,Be,ye))break r;for(ye=ye[0],nr.xc=hr,Ye=0;Ye<Pr;++Ye){var ke=ye[Ye]>>8&65535;ye[Ye]=ke,ke>=Ne&&(Ne=ke+1)}}if(Ar.h)break r;for(ue=0;5>ue;++ue){var ir=ll[ue];!ue&&0<We&&(ir+=1<<We),He<ir&&(He=ir)}var Ir=c(Ne*_e,z),Sr=Ne,Or=c(Sr,it);if(Or==null)var Er=null;else t(65536>=Sr),Er=Or;var kr=s(He);if(Er==null||kr==null||Ir==null){Be.a=1;break r}var Br=Ir;for(Ye=be=0;Ye<Ne;++Ye){var Oe=Er[Ye],Tr=Oe.G,Zr=Oe.H,yi=0,jn=1,cr=0;for(ue=0;5>ue;++ue){ir=ll[ue],Tr[ue]=Br,Zr[ue]=be,!ue&&0<We&&(ir+=1<<We);i:{var as,io=ir,ss=Be,Sa=kr,Eh=Br,Bh=be,ao=0,Vn=ss.m,Th=vt(Vn,1);if(a(Sa,0,0,io),Th){var Mh=vt(Vn,1)+1,Dh=vt(Vn,1),bl=vt(Vn,Dh==0?1:8);Sa[bl]=1,Mh==2&&(Sa[bl=vt(Vn,8)]=1);var os=1}else{var yl=s(19),wl=vt(Vn,4)+4;if(19<wl){ss.a=3;var ls=0;break i}for(as=0;as<wl;++as)yl[ch[as]]=vt(Vn,3);var so=void 0,La=void 0,xl=ss,Rh=yl,us=io,Nl=Sa,oo=0,Gn=xl.m,_l=8,Al=c(128,z);n:for(;O(Al,0,7,Rh,19);){if(vt(Gn,1)){var qh=2+2*vt(Gn,3);if((so=2+vt(Gn,qh))>us)break n}else so=us;for(La=0;La<us&&so--;){Z(Gn);var Sl=Al[0+(127&D(Gn))];Y(Gn,Gn.u+Sl.g);var $i=Sl.value;if(16>$i)Nl[La++]=$i,$i!=0&&(_l=$i);else{var Uh=$i==16,Ll=$i-16,zh=uh[Ll],Pl=vt(Gn,lh[Ll])+zh;if(La+Pl>us)break n;for(var Wh=Uh?_l:0;0<Pl--;)Nl[La++]=Wh}}oo=1;break n}oo||(xl.a=3),os=oo}(os=os&&!Vn.h)&&(ao=O(Eh,Bh,8,Sa,io)),os&&ao!=0?ls=ao:(ss.a=3,ls=0)}if(ls==0)break r;if(jn&&hh[ue]==1&&(jn=Br[be].g==0),yi+=Br[be].g,be+=ls,3>=ue){var Pa,lo=kr[0];for(Pa=1;Pa<ir;++Pa)kr[Pa]>lo&&(lo=kr[Pa]);cr+=lo}}if(Oe.nd=jn,Oe.Qb=0,jn&&(Oe.qb=(Tr[3][Zr[3]+0].value<<24|Tr[1][Zr[1]+0].value<<16|Tr[2][Zr[2]+0].value)>>>0,yi==0&&256>Tr[0][Zr[0]+0].value&&(Oe.Qb=1,Oe.qb+=Tr[0][Zr[0]+0].value<<8)),Oe.jc=!Oe.Qb&&6>cr,Oe.jc){var hs,Cn=Oe;for(hs=0;hs<zi;++hs){var Yn=hs,$n=Cn.pd[Yn],cs=Cn.G[0][Cn.H[0]+Yn];256<=cs.value?($n.g=cs.g+256,$n.value=cs.value):($n.g=0,$n.value=0,Yn>>=ar(cs,8,$n),Yn>>=ar(Cn.G[1][Cn.H[1]+Yn],16,$n),Yn>>=ar(Cn.G[2][Cn.H[2]+Yn],0,$n),ar(Cn.G[3][Cn.H[3]+Yn],24,$n))}}}nr.vc=ye,nr.Wb=Ne,nr.Ya=Er,nr.yc=Ir,kt=1;break e}kt=0}if(!(w=kt)){g.a=3;break t}if(0<et){if(C.ua=1<<et,!P(C.Wa,et)){g.a=1,w=0;break t}}else C.ua=0;var uo=g,kl=x,Hh=_,ho=uo.s,co=ho.xc;if(uo.c=kl,uo.i=Hh,ho.md=wt(kl,co),ho.wc=co==0?-1:(1<<co)-1,f){g.xb=xh;break t}if((V=s(x*_))==null){g.a=1,w=0;break t}w=(w=$r(g,V,0,x,_,_,null))&&!S.h;break t}return w?(b!=null?b[0]=V:(t(V==null),t(f)),g.$=0,f||Ur(C)):Ur(C),w}function ii(i,o){var f=i.c*i.i,g=f+o+16*o;return t(i.c<=o),i.V=s(g),i.V==null?(i.Ta=null,i.Ua=0,i.a=1,0):(i.Ta=i.V,i.Ua=i.Ba+f+o,1)}function Pi(i,o){var f=i.C,g=o-f,b=i.V,w=i.Ba+i.c*f;for(t(o<=i.l.o);0<g;){var x=16<g?16:g,_=i.l.ma,S=i.l.width,C=S*x,V=_.ca,et=_.tb+S*f,F=i.Ta,G=i.Ua;ri(i,x,b,w),tl(F,G,V,et,C),an(_,f,f+x,V,et,S),g-=x,b+=x*i.c,f+=x}t(f==o),i.C=i.Ma=o}function ki(){this.ub=this.yd=this.td=this.Rb=0}function ji(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Fs(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function aa(){this.Yb=function(){var i=[];return function o(f,g,b){for(var w=b[g],x=0;x<w&&(f.push(b.length>g+1?[]:0),!(b.length<g+1));x++)o(f[x],g+1,b)}(i,0,[3,11]),i}()}function Ia(){this.jb=s(3),this.Wc=l([4,8],aa),this.Xc=l([4,17],aa)}function Oa(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function zr(){this.ld=this.La=this.dd=this.tc=0}function sa(){this.Na=this.la=0}function Ea(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function oa(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ba(){this.uc=this.M=this.Nb=0,this.wa=Array(new zr),this.Y=0,this.ya=Array(new oa),this.aa=0,this.l=new Ci}function Ta(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Ma(){this.cb=this.a=0,this.sc="",this.m=new N,this.Od=new ki,this.Kc=new ji,this.ed=new Oa,this.Qa=new Fs,this.Ic=this.$c=this.Aa=0,this.D=new Ba,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,N),this.ia=0,this.pb=c(4,Ea),this.Pa=new Ia,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ta),this.Hd=0,this.rb=Array(new sa),this.sb=0,this.wa=Array(new zr),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 oa),this.L=this.aa=0,this.gd=l([4,2],zr),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 on(i,o){return 0>i?0:i>o?o:i}function Ci(){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 Is(){var i=new Ma;return i!=null&&(i.a=0,i.sc="OK",i.cb=0,i.Xb=0,_a||(_a=Fi)),i}function Ze(i,o,f){return i.a==0&&(i.a=o,i.sc=f,i.cb=0),0}function Da(i,o,f){return 3<=f&&i[o+0]==157&&i[o+1]==1&&i[o+2]==42}function ln(i,o){if(i==null)return 0;if(i.a=0,i.sc="OK",o==null)return Ze(i,2,"null VP8Io passed to VP8GetHeaders()");var f=o.data,g=o.w,b=o.ha;if(4>b)return Ze(i,7,"Truncated header.");var w=f[g+0]|f[g+1]<<8|f[g+2]<<16,x=i.Od;if(x.Rb=!(1&w),x.td=w>>1&7,x.yd=w>>4&1,x.ub=w>>5,3<x.td)return Ze(i,3,"Incorrect keyframe parameters.");if(!x.yd)return Ze(i,4,"Frame not displayable.");g+=3,b-=3;var _=i.Kc;if(x.Rb){if(7>b)return Ze(i,7,"cannot parse picture header");if(!Da(f,g,b))return Ze(i,3,"Bad code word");_.c=16383&(f[g+4]<<8|f[g+3]),_.Td=f[g+4]>>6,_.i=16383&(f[g+6]<<8|f[g+5]),_.Ud=f[g+6]>>6,g+=7,b-=7,i.za=_.c+15>>4,i.Ub=_.i+15>>4,o.width=_.c,o.height=_.i,o.Da=0,o.j=0,o.v=0,o.va=o.width,o.o=o.height,o.da=0,o.ib=o.width,o.hb=o.height,o.U=o.width,o.T=o.height,a((w=i.Pa).jb,0,255,w.jb.length),t((w=i.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,a(w.Zb,0,0,w.Zb.length),a(w.Lb,0,0,w.Lb)}if(x.ub>b)return Ze(i,7,"bad partition length");ot(w=i.m,f,g,x.ub),g+=x.ub,b-=x.ub,x.Rb&&(_.Ld=st(w),_.Kd=st(w)),_=i.Qa;var S,C=i.Pa;if(t(w!=null),t(_!=null),_.Cb=st(w),_.Cb){if(_.Bb=st(w),st(w)){for(_.Fb=st(w),S=0;4>S;++S)_.Zb[S]=st(w)?tt(w,7):0;for(S=0;4>S;++S)_.Lb[S]=st(w)?tt(w,6):0}if(_.Bb)for(S=0;3>S;++S)C.jb[S]=st(w)?lt(w,8):255}else _.Bb=0;if(w.Ka)return Ze(i,3,"cannot parse segment header");if((_=i.ed).zd=st(w),_.Tb=lt(w,6),_.wb=lt(w,3),_.Pc=st(w),_.Pc&&st(w)){for(C=0;4>C;++C)st(w)&&(_.vd[C]=tt(w,6));for(C=0;4>C;++C)st(w)&&(_.od[C]=tt(w,6))}if(i.L=_.Tb==0?0:_.zd?1:2,w.Ka)return Ze(i,3,"cannot parse filter header");var V=b;if(b=S=g,g=S+V,_=V,i.Xb=(1<<lt(i.m,2))-1,V<3*(C=i.Xb))f=7;else{for(S+=3*C,_-=3*C,V=0;V<C;++V){var et=f[b+0]|f[b+1]<<8|f[b+2]<<16;et>_&&(et=_),ot(i.Jc[+V],f,S,et),S+=et,_-=et,b+=3}ot(i.Jc[+C],f,S,_),f=S<g?0:5}if(f!=0)return Ze(i,f,"cannot parse partitions");for(f=lt(S=i.m,7),b=st(S)?tt(S,4):0,g=st(S)?tt(S,4):0,_=st(S)?tt(S,4):0,C=st(S)?tt(S,4):0,S=st(S)?tt(S,4):0,V=i.Qa,et=0;4>et;++et){if(V.Cb){var F=V.Zb[et];V.Fb||(F+=f)}else{if(0<et){i.pb[et]=i.pb[0];continue}F=f}var G=i.pb[et];G.Sc[0]=eo[on(F+b,127)],G.Sc[1]=ro[on(F+0,127)],G.Eb[0]=2*eo[on(F+g,127)],G.Eb[1]=101581*ro[on(F+_,127)]>>16,8>G.Eb[1]&&(G.Eb[1]=8),G.Qc[0]=eo[on(F+C,117)],G.Qc[1]=ro[on(F+S,127)],G.lc=F+S}if(!x.Rb)return Ze(i,4,"Not a key frame.");for(st(w),x=i.Pa,f=0;4>f;++f){for(b=0;8>b;++b)for(g=0;3>g;++g)for(_=0;11>_;++_)C=pt(w,yh[f][b][g][_])?lt(w,8):vh[f][b][g][_],x.Wc[f][b].Yb[g][_]=C;for(b=0;17>b;++b)x.Xc[f][b]=x.Wc[f][wh[b]]}return i.kc=st(w),i.kc&&(i.Bd=lt(w,8)),i.cb=1}function Fi(i,o,f,g,b,w,x){var _=o[b].Yb[f];for(f=0;16>b;++b){if(!pt(i,_[f+0]))return b;for(;!pt(i,_[f+1]);)if(_=o[++b].Yb[0],f=0,b==16)return 16;var S=o[b+1].Yb;if(pt(i,_[f+2])){var C=i,V=0;if(pt(C,(F=_)[(et=f)+3]))if(pt(C,F[et+6])){for(_=0,et=2*(V=pt(C,F[et+8]))+(F=pt(C,F[et+9+V])),V=0,F=gh[et];F[_];++_)V+=V+pt(C,F[_]);V+=3+(8<<et)}else pt(C,F[et+7])?(V=7+2*pt(C,165),V+=pt(C,145)):V=5+pt(C,159);else V=pt(C,F[et+4])?3+pt(C,F[et+5]):2;_=S[2]}else V=1,_=S[1];S=x+mh[b],0>(C=i).b&&at(C);var et,F=C.b,G=(et=C.Ca>>1)-(C.I>>F)>>31;--C.b,C.Ca+=G,C.Ca|=1,C.I-=(et+1&G)<<F,w[S]=((V^G)-G)*g[(0<b)+0]}return 16}function la(i){var o=i.rb[i.sb-1];o.la=0,o.Na=0,a(i.zc,0,0,i.zc.length),i.ja=0}function Cr(i,o,f,g,b){b=i[o+f+32*g]+(b>>3),i[o+f+32*g]=-256&b?0>b?0:255:b}function Ii(i,o,f,g,b,w){Cr(i,o,0,f,g+b),Cr(i,o,1,f,g+w),Cr(i,o,2,f,g-w),Cr(i,o,3,f,g-b)}function wn(i){return(20091*i>>16)+i}function lr(i,o,f,g){var b,w=0,x=s(16);for(b=0;4>b;++b){var _=i[o+0]+i[o+8],S=i[o+0]-i[o+8],C=(35468*i[o+4]>>16)-wn(i[o+12]),V=wn(i[o+4])+(35468*i[o+12]>>16);x[w+0]=_+V,x[w+1]=S+C,x[w+2]=S-C,x[w+3]=_-V,w+=4,o++}for(b=w=0;4>b;++b)_=(i=x[w+0]+4)+x[w+8],S=i-x[w+8],C=(35468*x[w+4]>>16)-wn(x[w+12]),Cr(f,g,0,0,_+(V=wn(x[w+4])+(35468*x[w+12]>>16))),Cr(f,g,1,0,S+C),Cr(f,g,2,0,S-C),Cr(f,g,3,0,_-V),w++,g+=32}function Ra(i,o,f,g){var b=i[o+0]+4,w=35468*i[o+4]>>16,x=wn(i[o+4]),_=35468*i[o+1]>>16;Ii(f,g,0,b+x,i=wn(i[o+1]),_),Ii(f,g,1,b+w,i,_),Ii(f,g,2,b-w,i,_),Ii(f,g,3,b-x,i,_)}function Os(i,o,f,g,b){lr(i,o,f,g),b&&lr(i,o+16,f,g+4)}function Es(i,o,f,g){Ln(i,o+0,f,g,1),Ln(i,o+32,f,g+128,1)}function Bs(i,o,f,g){var b;for(i=i[o+0]+4,b=0;4>b;++b)for(o=0;4>o;++o)Cr(f,g,o,b,i)}function un(i,o,f,g){i[o+0]&&gr(i,o+0,f,g),i[o+16]&&gr(i,o+16,f,g+4),i[o+32]&&gr(i,o+32,f,g+128),i[o+48]&&gr(i,o+48,f,g+128+4)}function qa(i,o,f,g){var b,w=s(16);for(b=0;4>b;++b){var x=i[o+0+b]+i[o+12+b],_=i[o+4+b]+i[o+8+b],S=i[o+4+b]-i[o+8+b],C=i[o+0+b]-i[o+12+b];w[0+b]=x+_,w[8+b]=x-_,w[4+b]=C+S,w[12+b]=C-S}for(b=0;4>b;++b)x=(i=w[0+4*b]+3)+w[3+4*b],_=w[1+4*b]+w[2+4*b],S=w[1+4*b]-w[2+4*b],C=i-w[3+4*b],f[g+0]=x+_>>3,f[g+16]=C+S>>3,f[g+32]=x-_>>3,f[g+48]=C-S>>3,g+=64}function Oi(i,o,f){var g,b=o-32,w=Fr,x=255-i[b-1];for(g=0;g<f;++g){var _,S=w,C=x+i[o-1];for(_=0;_<f;++_)i[o+_]=S[C+i[b+_]];o+=32}}function Ei(i,o){Oi(i,o,4)}function ua(i,o){Oi(i,o,8)}function Ts(i,o){Oi(i,o,16)}function Ms(i,o){var f;for(f=0;16>f;++f)n(i,o+32*f,i,o-32,16)}function Ds(i,o){var f;for(f=16;0<f;--f)a(i,o,i[o-1],16),o+=32}function Bn(i,o,f){var g;for(g=0;16>g;++g)a(o,f+32*g,i,16)}function Ua(i,o){var f,g=16;for(f=0;16>f;++f)g+=i[o-1+32*f]+i[o+f-32];Bn(g>>5,i,o)}function Tn(i,o){var f,g=8;for(f=0;16>f;++f)g+=i[o-1+32*f];Bn(g>>4,i,o)}function Rs(i,o){var f,g=8;for(f=0;16>f;++f)g+=i[o+f-32];Bn(g>>4,i,o)}function ai(i,o){Bn(128,i,o)}function re(i,o,f){return i+2*o+f+2>>2}function qs(i,o){var f,g=o-32;for(g=new Uint8Array([re(i[g-1],i[g+0],i[g+1]),re(i[g+0],i[g+1],i[g+2]),re(i[g+1],i[g+2],i[g+3]),re(i[g+2],i[g+3],i[g+4])]),f=0;4>f;++f)n(i,o+32*f,g,0,g.length)}function Us(i,o){var f=i[o-1],g=i[o-1+32],b=i[o-1+64],w=i[o-1+96];Nt(i,o+0,16843009*re(i[o-1-32],f,g)),Nt(i,o+32,16843009*re(f,g,b)),Nt(i,o+64,16843009*re(g,b,w)),Nt(i,o+96,16843009*re(b,w,w))}function zs(i,o){var f,g=4;
vendor: 4,394 bytes, line 109
109for(f=0;4>f;++f)g+=i[o+f-32]+i[o-1+32*f];for(g>>=3,f=0;4>f;++f)a(i,o+32*f,g,4)}function Ws(i,o){var f=i[o-1+0],g=i[o-1+32],b=i[o-1+64],w=i[o-1-32],x=i[o+0-32],_=i[o+1-32],S=i[o+2-32],C=i[o+3-32];i[o+0+96]=re(g,b,i[o-1+96]),i[o+1+96]=i[o+0+64]=re(f,g,b),i[o+2+96]=i[o+1+64]=i[o+0+32]=re(w,f,g),i[o+3+96]=i[o+2+64]=i[o+1+32]=i[o+0+0]=re(x,w,f),i[o+3+64]=i[o+2+32]=i[o+1+0]=re(_,x,w),i[o+3+32]=i[o+2+0]=re(S,_,x),i[o+3+0]=re(C,S,_)}function Hs(i,o){var f=i[o+1-32],g=i[o+2-32],b=i[o+3-32],w=i[o+4-32],x=i[o+5-32],_=i[o+6-32],S=i[o+7-32];i[o+0+0]=re(i[o+0-32],f,g),i[o+1+0]=i[o+0+32]=re(f,g,b),i[o+2+0]=i[o+1+32]=i[o+0+64]=re(g,b,w),i[o+3+0]=i[o+2+32]=i[o+1+64]=i[o+0+96]=re(b,w,x),i[o+3+32]=i[o+2+64]=i[o+1+96]=re(w,x,_),i[o+3+64]=i[o+2+96]=re(x,_,S),i[o+3+96]=re(_,S,S)}function xn(i,o){var f=i[o-1+0],g=i[o-1+32],b=i[o-1+64],w=i[o-1-32],x=i[o+0-32],_=i[o+1-32],S=i[o+2-32],C=i[o+3-32];i[o+0+0]=i[o+1+64]=w+x+1>>1,i[o+1+0]=i[o+2+64]=x+_+1>>1,i[o+2+0]=i[o+3+64]=_+S+1>>1,i[o+3+0]=S+C+1>>1,i[o+0+96]=re(b,g,f),i[o+0+64]=re(g,f,w),i[o+0+32]=i[o+1+96]=re(f,w,x),i[o+1+32]=i[o+2+96]=re(w,x,_),i[o+2+32]=i[o+3+96]=re(x,_,S),i[o+3+32]=re(_,S,C)}function Nn(i,o){var f=i[o+0-32],g=i[o+1-32],b=i[o+2-32],w=i[o+3-32],x=i[o+4-32],_=i[o+5-32],S=i[o+6-32],C=i[o+7-32];i[o+0+0]=f+g+1>>1,i[o+1+0]=i[o+0+64]=g+b+1>>1,i[o+2+0]=i[o+1+64]=b+w+1>>1,i[o+3+0]=i[o+2+64]=w+x+1>>1,i[o+0+32]=re(f,g,b),i[o+1+32]=i[o+0+96]=re(g,b,w),i[o+2+32]=i[o+1+96]=re(b,w,x),i[o+3+32]=i[o+2+96]=re(w,x,_),i[o+3+64]=re(x,_,S),i[o+3+96]=re(_,S,C)}function Vs(i,o){var f=i[o-1+0],g=i[o-1+32],b=i[o-1+64],w=i[o-1+96];i[o+0+0]=f+g+1>>1,i[o+2+0]=i[o+0+32]=g+b+1>>1,i[o+2+32]=i[o+0+64]=b+w+1>>1,i[o+1+0]=re(f,g,b),i[o+3+0]=i[o+1+32]=re(g,b,w),i[o+3+32]=i[o+1+64]=re(b,w,w),i[o+3+64]=i[o+2+64]=i[o+0+96]=i[o+1+96]=i[o+2+96]=i[o+3+96]=w}function Gs(i,o){var f=i[o-1+0],g=i[o-1+32],b=i[o-1+64],w=i[o-1+96],x=i[o-1-32],_=i[o+0-32],S=i[o+1-32],C=i[o+2-32];i[o+0+0]=i[o+2+32]=f+x+1>>1,i[o+0+32]=i[o+2+64]=g+f+1>>1,i[o+0+64]=i[o+2+96]=b+g+1>>1,i[o+0+96]=w+b+1>>1,i[o+3+0]=re(_,S,C),i[o+2+0]=re(x,_,S),i[o+1+0]=i[o+3+32]=re(f,x,_),i[o+1+32]=i[o+3+64]=re(g,f,x),i[o+1+64]=i[o+3+96]=re(b,g,f),i[o+1+96]=re(w,b,g)}function Bi(i,o){var f;for(f=0;8>f;++f)n(i,o+32*f,i,o-32,8)}function ha(i,o){var f;for(f=0;8>f;++f)a(i,o,i[o-1],8),o+=32}function hn(i,o,f){var g;for(g=0;8>g;++g)a(o,f+32*g,i,8)}function Ys(i,o){var f,g=8;for(f=0;8>f;++f)g+=i[o+f-32]+i[o-1+32*f];hn(g>>4,i,o)}function Ti(i,o){var f,g=4;for(f=0;8>f;++f)g+=i[o+f-32];hn(g>>3,i,o)}function $s(i,o){var f,g=4;for(f=0;8>f;++f)g+=i[o-1+32*f];hn(g>>3,i,o)}function ca(i,o){hn(128,i,o)}function Mn(i,o,f){var g=i[o-f],b=i[o+0],w=3*(b-g)+Ks[1020+i[o-2*f]-i[o+f]],x=Ka[112+(w+4>>3)];i[o-f]=Fr[255+g+Ka[112+(w+3>>3)]],i[o+0]=Fr[255+b-x]}function fa(i,o,f,g){var b=i[o+0],w=i[o+f];return Hr[255+i[o-2*f]-i[o-f]]>g||Hr[255+w-b]>g}function si(i,o,f,g){return 4*Hr[255+i[o-f]-i[o+0]]+Hr[255+i[o-2*f]-i[o+f]]<=g}function da(i,o,f,g,b){var w=i[o-3*f],x=i[o-2*f],_=i[o-f],S=i[o+0],C=i[o+f],V=i[o+2*f],et=i[o+3*f];return 4*Hr[255+_-S]+Hr[255+x-C]>g?0:Hr[255+i[o-4*f]-w]<=b&&Hr[255+w-x]<=b&&Hr[255+x-_]<=b&&Hr[255+et-V]<=b&&Hr[255+V-C]<=b&&Hr[255+C-S]<=b}function Mi(i,o,f,g){var b=2*g+1;for(g=0;16>g;++g)si(i,o+g,f,b)&&Mn(i,o+g,f)}function pa(i,o,f,g){var b=2*g+1;for(g=0;16>g;++g)si(i,o+g*f,1,b)&&Mn(i,o+g*f,1)}function Di(i,o,f,g){var b;for(b=3;0<b;--b)Mi(i,o+=4*f,f,g)}function za(i,o,f,g){var b;for(b=3;0<b;--b)pa(i,o+=4,f,g)}function _n(i,o,f,g,b,w,x,_){for(w=2*w+1;0<b--;){if(da(i,o,f,w,x))if(fa(i,o,f,_))Mn(i,o,f);else{var S=i,C=o,V=f,et=S[C-2*V],F=S[C-V],G=S[C+0],K=S[C+V],ht=S[C+2*V],Q=27*(dt=Ks[1020+3*(G-F)+Ks[1020+et-K]])+63>>7,ft=18*dt+63>>7,dt=9*dt+63>>7;S[C-3*V]=Fr[255+S[C-3*V]+dt],S[C-2*V]=Fr[255+et+ft],S[C-V]=Fr[255+F+Q],S[C+0]=Fr[255+G-Q],S[C+V]=Fr[255+K-ft],S[C+2*V]=Fr[255+ht-dt]}o+=g}}function An(i,o,f,g,b,w,x,_){for(w=2*w+1;0<b--;){if(da(i,o,f,w,x))if(fa(i,o,f,_))Mn(i,o,f);else{var S=i,C=o,V=f,et=S[C-V],F=S[C+0],G=S[C+V],K=Ka[112+(4+(ht=3*(F-et))>>3)],ht=Ka[112+(ht+3>>3)],Q=K+1>>1;S[C-2*V]=Fr[255+S[C-2*V]+Q],S[C-V]=Fr[255+et+ht],S[C+0]=Fr[255+F-K],S[C+V]=Fr[255+G-Q]}o+=g}}function Wa(i,o,f,g,b,w){_n(i,o,f,1,16,g,b,w)}function Ha(i,o,f,g,b,w){_n(i,o,1,f,16,g,b,w)}function Va(i,o,f,g,b,w){var x;for(x=3;0<x;--x)An(i,o+=4*f,f,1,16,g,b,w)}function oi(i,o,f,g,b,w){var x;for(x=3;0<x;--x)An(i,o+=4,1,f,16,g,b,w)}function Ga(i,o,f,g,b,w,x,_){_n(i,o,b,1,8,w,x,_),_n(f,g,b,1,8,w,x,_)}
vendor: 15,333 bytes, line 109
109function h(i,o,f,g,b,w,x,_){_n(i,o,1,b,8,w,x,_),_n(f,g,1,b,8,w,x,_)}function v(i,o,f,g,b,w,x,_){An(i,o+4*b,b,1,8,w,x,_),An(f,g+4*b,b,1,8,w,x,_)}function j(i,o,f,g,b,w,x,_){An(i,o+4,1,b,8,w,x,_),An(f,g+4,1,b,8,w,x,_)}function R(){this.ba=new de,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new we,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function $(){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 ut(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function bt(){this.ua=0,this.Wa=new se,this.vb=new se,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new z}function qt(){this.xb=this.a=0,this.l=new Ci,this.ca=new de,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new bt,this.ab=0,this.gc=c(4,ut),this.Oc=0}function Rt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ci,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ie(i,o,f,g,b,w,x){for(i=i==null?0:i[o+0],o=0;o<x;++o)b[w+o]=i+f[g+o]&255,i=b[w+o]}function le(i,o,f,g,b,w,x){var _;if(i==null)ie(null,null,f,g,b,w,x);else for(_=0;_<x;++_)b[w+_]=i[o+_]+f[g+_]&255}function ve(i,o,f,g,b,w,x){if(i==null)ie(null,null,f,g,b,w,x);else{var _,S=i[o+0],C=S,V=S;for(_=0;_<x;++_)C=V+(S=i[o+_])-C,V=f[g+_]+(-256&C?0>C?0:255:C)&255,C=S,b[w+_]=V}}function Qe(i,o,f,g){var b=o.width,w=o.o;if(t(i!=null&&o!=null),0>f||0>=g||f+g>w)return null;if(!i.Cc){if(i.ga==null){var x;if(i.ga=new Rt,(x=i.ga==null)||(x=o.width*o.o,t(i.Gb.length==0),i.Gb=s(x),i.Uc=0,i.Gb==null?x=0:(i.mb=i.Gb,i.nb=i.Uc,i.rc=null,x=1),x=!x),!x){x=i.ga;var _=i.Fa,S=i.P,C=i.qc,V=i.mb,et=i.nb,F=S+1,G=C-1,K=x.l;if(t(_!=null&&V!=null&&o!=null),Hn[0]=null,Hn[1]=ie,Hn[2]=le,Hn[3]=ve,x.ca=V,x.tb=et,x.c=o.width,x.i=o.height,t(0<x.c&&0<x.i),1>=C)o=0;else if(x.$a=3&_[S+0],x.Z=_[S+0]>>2&3,x.Lc=_[S+0]>>4&3,S=_[S+0]>>6&3,0>x.$a||1<x.$a||4<=x.Z||1<x.Lc||S)o=0;else if(K.put=te,K.ac=nn,K.bc=bn,K.ma=x,K.width=o.width,K.height=o.height,K.Da=o.Da,K.v=o.v,K.va=o.va,K.j=o.j,K.o=o.o,x.$a)t:{t(x.$a==1),o=ni();e:for(;;){if(o==null){o=0;break t}if(t(x!=null),x.mc=o,o.c=x.c,o.i=x.i,o.l=x.l,o.l.ma=x,o.l.width=x.c,o.l.height=x.i,o.a=0,ct(o.m,_,F,G),!sn(x.c,x.i,1,o,null)||(o.ab==1&&o.gc[0].hc==3&&Gr(o.s)?(x.ic=1,_=o.c*o.i,o.Ta=null,o.Ua=0,o.V=s(_),o.Ba=0,o.V==null?(o.a=1,o=0):o=1):(x.ic=0,o=ii(o,x.c)),!o))break e;o=1;break t}x.mc=null,o=0}else o=G>=x.c*x.i;x=!o}if(x)return null;i.ga.Lc!=1?i.Ga=0:g=w-f}t(i.ga!=null),t(f+g<=w);t:{if(o=(_=i.ga).c,w=_.l.o,_.$a==0){if(F=i.rc,G=i.Vc,K=i.Fa,S=i.P+1+f*o,C=i.mb,V=i.nb+f*o,t(S<=i.P+i.qc),_.Z!=0)for(t(Hn[_.Z]!=null),x=0;x<g;++x)Hn[_.Z](F,G,K,S,C,V,o),F=C,G=V,V+=o,S+=o;else for(x=0;x<g;++x)n(C,V,K,S,o),F=C,G=V,V+=o,S+=o;i.rc=F,i.Vc=G}else{if(t(_.mc!=null),o=f+g,t((x=_.mc)!=null),t(o<=x.i),x.C>=o)o=1;else if(_.ic||Ue(),_.ic){_=x.V,F=x.Ba,G=x.c;var ht=x.i,Q=(K=1,S=x.$/G,C=x.$%G,V=x.m,et=x.s,x.$),ft=G*ht,dt=G*o,xt=et.wc,yt=Q<dt?or(et,C,S):null;t(Q<=ft),t(o<=ht),t(Gr(et));e:for(;;){for(;!V.h&&Q<dt;){if(C&xt||(yt=or(et,C,S)),t(yt!=null),Z(V),256>(ht=ze(yt.G[0],yt.H[0],V)))_[F+Q]=ht,++Q,++C>=G&&(C=0,++S<=o&&!(S%16)&&Yr(x,S));else{if(!(280>ht)){K=0;break e}ht=Rr(ht-256,V);var Wt,Bt=ze(yt.G[4],yt.H[4],V);if(Z(V),!(Q>=(Bt=qr(G,Bt=Rr(Bt,V)))&&ft-Q>=ht)){K=0;break e}for(Wt=0;Wt<ht;++Wt)_[F+Q+Wt]=_[F+Q+Wt-Bt];for(Q+=ht,C+=ht;C>=G;)C-=G,++S<=o&&!(S%16)&&Yr(x,S);Q<dt&&C&xt&&(yt=or(et,C,S))}t(V.h==H(V))}Yr(x,S>o?o:S);break e}!K||V.h&&Q<ft?(K=0,x.a=V.h?5:3):x.$=Q,o=K}else o=$r(x,x.V,x.Ba,x.c,x.i,o,Pi);if(!o){g=0;break t}}f+g>=w&&(i.Cc=1),g=1}if(!g)return null;if(i.Cc&&((g=i.ga)!=null&&(g.mc=null),i.ga=null,0<i.Ga))return alert("todo:WebPDequantizeLevels"),null}return i.nb+f*b}function Pe(i,o,f,g,b,w){for(;0<b--;){var x,_=i,S=o+(f?1:0),C=i,V=o+(f?0:3);for(x=0;x<g;++x){var et=C[V+4*x];et!=255&&(et*=32897,_[S+4*x+0]=_[S+4*x+0]*et>>23,_[S+4*x+1]=_[S+4*x+1]*et>>23,_[S+4*x+2]=_[S+4*x+2]*et>>23)}o+=w}}function Le(i,o,f,g,b){for(;0<g--;){var w;for(w=0;w<f;++w){var x=i[o+2*w+0],_=15&(C=i[o+2*w+1]),S=4369*_,C=(240&C|C>>4)*S>>16;i[o+2*w+0]=(240&x|x>>4)*S>>16&240|(15&x|x<<4)*S>>16>>4&15,i[o+2*w+1]=240&C|_}o+=b}}function Ee(i,o,f,g,b,w,x,_){var S,C,V=255;for(C=0;C<b;++C){for(S=0;S<g;++S){var et=i[o+S];w[x+4*S]=et,V&=et}o+=f,x+=_}return V!=255}function qe(i,o,f,g,b){var w;for(w=0;w<b;++w)f[g+w]=i[o+w]>>8}function Ue(){Na=Pe,Zo=Le,Qo=Ee,tl=qe}function dr(i,o,f){W[i]=function(g,b,w,x,_,S,C,V,et,F,G,K,ht,Q,ft,dt,xt){var yt,Wt=xt-1>>1,Bt=_[S+0]|C[V+0]<<16,ce=et[F+0]|G[K+0]<<16;t(g!=null);var Ut=3*Bt+ce+131074>>2;for(o(g[b+0],255&Ut,Ut>>16,ht,Q),w!=null&&(Ut=3*ce+Bt+131074>>2,o(w[x+0],255&Ut,Ut>>16,ft,dt)),yt=1;yt<=Wt;++yt){var me=_[S+yt]|C[V+yt]<<16,rr=et[F+yt]|G[K+yt]<<16,fe=Bt+me+ce+rr+524296,zt=fe+2*(me+ce)>>3;Ut=zt+Bt>>1,Bt=(fe=fe+2*(Bt+rr)>>3)+me>>1,o(g[b+2*yt-1],255&Ut,Ut>>16,ht,Q+(2*yt-1)*f),o(g[b+2*yt-0],255&Bt,Bt>>16,ht,Q+(2*yt-0)*f),w!=null&&(Ut=fe+ce>>1,Bt=zt+rr>>1,o(w[x+2*yt-1],255&Ut,Ut>>16,ft,dt+(2*yt-1)*f),o(w[x+2*yt+0],255&Bt,Bt>>16,ft,dt+(2*yt+0)*f)),Bt=me,ce=rr}1&xt||(Ut=3*Bt+ce+131074>>2,o(g[b+xt-1],255&Ut,Ut>>16,ht,Q+(xt-1)*f),w!=null&&(Ut=3*ce+Bt+131074>>2,o(w[x+xt-1],255&Ut,Ut>>16,ft,dt+(xt-1)*f)))}}function Sn(){Vr[Xa]=Nh,Vr[Za]=cl,Vr[sl]=_h,Vr[Qa]=fl,Vr[ts]=dl,Vr[Xs]=pl,Vr[ol]=Ah,Vr[Zs]=cl,Vr[Qs]=fl,Vr[es]=dl,Vr[to]=pl}function ga(i){return i&-16384?0>i?0:255:i>>Sh}function li(i,o){return ga((19077*i>>8)+(26149*o>>8)-14234)}function ui(i,o,f){return ga((19077*i>>8)-(6419*o>>8)-(13320*f>>8)+8708)}function Dn(i,o){return ga((19077*i>>8)+(33050*o>>8)-17685)}function hi(i,o,f,g,b){g[b+0]=li(i,f),g[b+1]=ui(i,o,f),g[b+2]=Dn(i,o)}function Ri(i,o,f,g,b){g[b+0]=Dn(i,o),g[b+1]=ui(i,o,f),g[b+2]=li(i,f)}function qi(i,o,f,g,b){var w=ui(i,o,f);o=w<<3&224|Dn(i,o)>>3,g[b+0]=248&li(i,f)|w>>5,g[b+1]=o}function pr(i,o,f,g,b){var w=240&Dn(i,o)|15;g[b+0]=240&li(i,f)|ui(i,o,f)>>4,g[b+1]=w}function ci(i,o,f,g,b){g[b+0]=255,hi(i,o,f,g,b+1)}function fi(i,o,f,g,b){Ri(i,o,f,g,b),g[b+3]=255}function ma(i,o,f,g,b){hi(i,o,f,g,b),g[b+3]=255}function cn(i,o,f){W[i]=function(g,b,w,x,_,S,C,V,et){for(var F=V+(-2&et)*f;V!=F;)o(g[b+0],w[x+0],_[S+0],C,V),o(g[b+1],w[x+0],_[S+0],C,V+f),b+=2,++x,++S,V+=2*f;1&et&&o(g[b+0],w[x+0],_[S+0],C,V)}}function xr(i,o,f){return f==0?i==0?o==0?6:5:o==0?4:0:f}function Ya(i,o,f,g,b){switch(i>>>30){case 3:Ln(o,f,g,b,0);break;case 2:zn(o,f,g,b);break;case 1:gr(o,f,g,b)}}function Ui(i,o){var f,g,b=o.M,w=o.Nb,x=i.oc,_=i.pc+40,S=i.oc,C=i.pc+584,V=i.oc,et=i.pc+600;for(f=0;16>f;++f)x[_+32*f-1]=129;for(f=0;8>f;++f)S[C+32*f-1]=129,V[et+32*f-1]=129;for(0<b?x[_-1-32]=S[C-1-32]=V[et-1-32]=129:(a(x,_-32-1,127,21),a(S,C-32-1,127,9),a(V,et-32-1,127,9)),g=0;g<i.za;++g){var F=o.ya[o.aa+g];if(0<g){for(f=-1;16>f;++f)n(x,_+32*f-4,x,_+32*f+12,4);for(f=-1;8>f;++f)n(S,C+32*f-4,S,C+32*f+4,4),n(V,et+32*f-4,V,et+32*f+4,4)}var G=i.Gd,K=i.Hd+g,ht=F.ad,Q=F.Hc;if(0<b&&(n(x,_-32,G[K].y,0,16),n(S,C-32,G[K].f,0,8),n(V,et-32,G[K].ea,0,8)),F.Za){var ft=x,dt=_-32+16;for(0<b&&(g>=i.za-1?a(ft,dt,G[K].y[15],4):n(ft,dt,G[K+1].y,0,4)),f=0;4>f;f++)ft[dt+128+f]=ft[dt+256+f]=ft[dt+384+f]=ft[dt+0+f];for(f=0;16>f;++f,Q<<=2)ft=x,dt=_+ml[f],Kr[F.Ob[f]](ft,dt),Ya(Q,ht,16*+f,ft,dt)}else if(ft=xr(g,b,F.Ob[0]),Wn[ft](x,_),Q!=0)for(f=0;16>f;++f,Q<<=2)Ya(Q,ht,16*+f,x,_+ml[f]);for(f=F.Gc,ft=xr(g,b,F.Dd),kn[ft](S,C),kn[ft](V,et),Q=ht,ft=S,dt=C,255&(F=0|f)&&(170&F?Gi(Q,256,ft,dt):dn(Q,256,ft,dt)),F=V,Q=et,255&(f>>=8)&&(170&f?Gi(ht,320,F,Q):dn(ht,320,F,Q)),b<i.Ub-1&&(n(G[K].y,0,x,_+480,16),n(G[K].f,0,S,C+224,8),n(G[K].ea,0,V,et+224,8)),f=8*w*i.B,G=i.sa,K=i.ta+16*g+16*w*i.R,ht=i.qa,F=i.ra+8*g+f,Q=i.Ha,ft=i.Ia+8*g+f,f=0;16>f;++f)n(G,K+f*i.R,x,_+32*f,16);for(f=0;8>f;++f)n(ht,F+f*i.B,S,C+32*f,8),n(Q,ft+f*i.B,V,et+32*f,8)}}function $a(i,o,f,g,b,w,x,_,S){var C=[0],V=[0],et=0,F=S!=null?S.kd:0,G=S??new $;if(i==null||12>f)return 7;G.data=i,G.w=o,G.ha=f,o=[o],f=[f],G.gb=[G.gb];t:{var K=o,ht=f,Q=G.gb;if(t(i!=null),t(ht!=null),t(Q!=null),Q[0]=0,12<=ht[0]&&!r(i,K[0],"RIFF")){if(r(i,K[0]+8,"WEBP")){Q=3;break t}var ft=Vt(i,K[0]+4);if(12>ft||4294967286<ft){Q=3;break t}if(F&&ft>ht[0]-8){Q=7;break t}Q[0]=ft,K[0]+=12,ht[0]-=12}Q=0}if(Q!=0)return Q;for(ft=0<G.gb[0],f=f[0];;){t:{var dt=i;ht=o,Q=f;var xt=C,yt=V,Wt=K=[0];if((Ut=et=[et])[0]=0,8>Q[0])Q=7;else{if(!r(dt,ht[0],"VP8X")){if(Vt(dt,ht[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Bt=Vt(dt,ht[0]+8),ce=1+Ft(dt,ht[0]+12);if(2147483648<=ce*(dt=1+Ft(dt,ht[0]+15))){Q=3;break t}Wt!=null&&(Wt[0]=Bt),xt!=null&&(xt[0]=ce),yt!=null&&(yt[0]=dt),ht[0]+=18,Q[0]-=18,Ut[0]=1}Q=0}}if(et=et[0],K=K[0],Q!=0)return Q;if(ht=!!(2&K),!ft&&et)return 3;if(w!=null&&(w[0]=!!(16&K)),x!=null&&(x[0]=ht),_!=null&&(_[0]=0),x=C[0],K=V[0],et&&ht&&S==null){Q=0;break}if(4>f){Q=7;break}if(ft&&et||!ft&&!et&&!r(i,o[0],"ALPH")){f=[f],G.na=[G.na],G.P=[G.P],G.Sa=[G.Sa];t:{Bt=i,Q=o,ft=f;var Ut=G.gb;xt=G.na,yt=G.P,Wt=G.Sa,ce=22,t(Bt!=null),t(ft!=null),dt=Q[0];var me=ft[0];for(t(xt!=null),t(Wt!=null),xt[0]=null,yt[0]=null,Wt[0]=0;;){if(Q[0]=dt,ft[0]=me,8>me){Q=7;break t}var rr=Vt(Bt,dt+4);if(4294967286<rr){Q=3;break t}var fe=8+rr+1&-2;if(ce+=fe,0<Ut&&ce>Ut){Q=3;break t}if(!r(Bt,dt,"VP8 ")||!r(Bt,dt,"VP8L")){Q=0;break t}if(me[0]<fe){Q=7;break t}r(Bt,dt,"ALPH")||(xt[0]=Bt,yt[0]=dt+8,Wt[0]=rr),dt+=fe,me-=fe}}if(f=f[0],G.na=G.na[0],G.P=G.P[0],G.Sa=G.Sa[0],Q!=0)break}f=[f],G.Ja=[G.Ja],G.xa=[G.xa];t:if(Ut=i,Q=o,ft=f,xt=G.gb[0],yt=G.Ja,Wt=G.xa,Bt=Q[0],dt=!r(Ut,Bt,"VP8 "),ce=!r(Ut,Bt,"VP8L"),t(Ut!=null),t(ft!=null),t(yt!=null),t(Wt!=null),8>ft[0])Q=7;else{if(dt||ce){if(Ut=Vt(Ut,Bt+4),12<=xt&&Ut>xt-12){Q=3;break t}if(F&&Ut>ft[0]-8){Q=7;break t}yt[0]=Ut,Q[0]+=8,ft[0]-=8,Wt[0]=ce}else Wt[0]=5<=ft[0]&&Ut[Bt+0]==47&&!(Ut[Bt+4]>>5),yt[0]=ft[0];Q=0}if(f=f[0],G.Ja=G.Ja[0],G.xa=G.xa[0],o=o[0],Q!=0)break;if(4294967286<G.Ja)return 3;if(_==null||ht||(_[0]=G.xa?2:1),x=[x],K=[K],G.xa){if(5>f){Q=7;break}_=x,F=K,ht=w,i==null||5>f?i=0:5<=f&&i[o+0]==47&&!(i[o+4]>>5)?(ft=[0],Ut=[0],xt=[0],ct(yt=new B,i,o,f),yn(yt,ft,Ut,xt)?(_!=null&&(_[0]=ft[0]),F!=null&&(F[0]=Ut[0]),ht!=null&&(ht[0]=xt[0]),i=1):i=0):i=0}else{if(10>f){Q=7;break}_=K,i==null||10>f||!Da(i,o+3,f-3)?i=0:(F=i[o+0]|i[o+1]<<8|i[o+2]<<16,ht=16383&(i[o+7]<<8|i[o+6]),i=16383&(i[o+9]<<8|i[o+8]),1&F||3<(F>>1&7)||!(F>>4&1)||F>>5>=G.Ja||!ht||!i?i=0:(x&&(x[0]=ht),_&&(_[0]=i),i=1))}if(!i||(x=x[0],K=K[0],et&&(C[0]!=x||V[0]!=K)))return 3;S!=null&&(S[0]=G,S.offset=o-S.w,t(4294967286>o-S.w),t(S.offset==S.ha-f));break}return Q==0||Q==7&&et&&S==null?(w!=null&&(w[0]|=G.na!=null&&0<G.na.length),g!=null&&(g[0]=x),b!=null&&(b[0]=K),0):Q}function Wr(i,o,f){var g=o.width,b=o.height,w=0,x=0,_=g,S=b;if(o.Da=i!=null&&0<i.Da,o.Da&&(_=i.cd,S=i.bd,w=i.v,x=i.j,11>f||(w&=-2,x&=-2),0>w||0>x||0>=_||0>=S||w+_>g||x+S>b))return 0;if(o.v=w,o.j=x,o.va=w+_,o.o=x+S,o.U=_,o.T=S,o.da=i!=null&&0<i.da,o.da){if(!$t(_,S,f=[i.ib],w=[i.hb]))return 0;o.ib=f[0],o.hb=w[0]}return o.ob=i!=null&&i.ob,o.Kb=i==null||!i.Sd,o.da&&(o.ob=o.ib<3*g/4&&o.hb<3*b/4,o.Kb=0),1}function di(i){if(i==null)return 2;if(11>i.S){var o=i.f.RGBA;o.fb+=(i.height-1)*o.A,o.A=-o.A}else o=i.f.kb,i=i.height,o.O+=(i-1)*o.fa,o.fa=-o.fa,o.N+=(i-1>>1)*o.Ab,o.Ab=-o.Ab,o.W+=(i-1>>1)*o.Db,o.Db=-o.Db,o.F!=null&&(o.J+=(i-1)*o.lb,o.lb=-o.lb);return 0}function va(i,o,f,g){if(g==null||0>=i||0>=o)return 2;if(f!=null){if(f.Da){var b=f.cd,w=f.bd,x=-2&f.v,_=-2&f.j;if(0>x||0>_||0>=b||0>=w||x+b>i||_+w>o)return 2;i=b,o=w}if(f.da){if(!$t(i,o,b=[f.ib],w=[f.hb]))return 2;i=b[0],o=w[0]}}g.width=i,g.height=o;t:{var S=g.width,C=g.height;if(i=g.S,0>=S||0>=C||!(i>=Xa&&13>i))i=2;else{if(0>=g.Rd&&g.sd==null){x=w=b=o=0;var V=(_=S*vl[i])*C;if(11>i||(w=(C+1)/2*(o=(S+1)/2),i==12&&(x=(b=S)*C)),(C=s(V+2*w+x))==null){i=1;break t}g.sd=C,11>i?((S=g.f.RGBA).eb=C,S.fb=0,S.A=_,S.size=V):((S=g.f.kb).y=C,S.O=0,S.fa=_,S.Fd=V,S.f=C,S.N=0+V,S.Ab=o,S.Cd=w,S.ea=C,S.W=0+V+w,S.Db=o,S.Ed=w,i==12&&(S.F=C,S.J=0+V+2*w),S.Tc=x,S.lb=b)}if(o=1,b=g.S,w=g.width,x=g.height,b>=Xa&&13>b)if(11>b)i=g.f.RGBA,o&=(_=Math.abs(i.A))*(x-1)+w<=i.size,o&=_>=w*vl[b],o&=i.eb!=null;else{i=g.f.kb,_=(w+1)/2,V=(x+1)/2,S=Math.abs(i.fa),C=Math.abs(i.Ab);var et=Math.abs(i.Db),F=Math.abs(i.lb),G=F*(x-1)+w;o&=S*(x-1)+w<=i.Fd,o&=C*(V-1)+_<=i.Cd,o=(o&=et*(V-1)+_<=i.Ed)&S>=w&C>=_&et>=_,o&=i.y!=null,o&=i.f!=null,o&=i.ea!=null,b==12&&(o&=F>=w,o&=G<=i.Tc,o&=i.F!=null)}else o=0;i=o?0:2}}return i!=0||f!=null&&f.fd&&(i=di(g)),i}var zi=64,pi=[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],ba=24,Nr=32,Lr=8,Wi=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Et("Predictor0","PredictorAdd0"),W.Predictor0=function(){return 4278190080},W.Predictor1=function(i){return i},W.Predictor2=function(i,o,f){return o[f+0]},W.Predictor3=function(i,o,f){return o[f+1]},W.Predictor4=function(i,o,f){return o[f-1]},W.Predictor5=function(i,o,f){return Gt(Gt(i,o[f+1]),o[f+0])},W.Predictor6=function(i,o,f){return Gt(i,o[f-1])},W.Predictor7=function(i,o,f){return Gt(i,o[f+0])},W.Predictor8=function(i,o,f){return Gt(o[f-1],o[f+0])},W.Predictor9=function(i,o,f){return Gt(o[f+0],o[f+1])},W.Predictor10=function(i,o,f){return Gt(Gt(i,o[f-1]),Gt(o[f+0],o[f+1]))},W.Predictor11=function(i,o,f){var g=o[f+0];return 0>=Lt(g>>24&255,i>>24&255,(o=o[f-1])>>24&255)+Lt(g>>16&255,i>>16&255,o>>16&255)+Lt(g>>8&255,i>>8&255,o>>8&255)+Lt(255&g,255&i,255&o)?g:i},W.Predictor12=function(i,o,f){var g=o[f+0];return(pe((i>>24&255)+(g>>24&255)-((o=o[f-1])>>24&255))<<24|pe((i>>16&255)+(g>>16&255)-(o>>16&255))<<16|pe((i>>8&255)+(g>>8&255)-(o>>8&255))<<8|pe((255&i)+(255&g)-(255&o)))>>>0},W.Predictor13=function(i,o,f){var g=o[f-1];return(U((i=Gt(i,o[f+0]))>>24&255,g>>24&255)<<24|U(i>>16&255,g>>16&255)<<16|U(i>>8&255,g>>8&255)<<8|U(255&i,255&g))>>>0};var Rn=W.PredictorAdd0;W.PredictorAdd1=Kt,Et("Predictor2","PredictorAdd2"),Et("Predictor3","PredictorAdd3"),Et("Predictor4","PredictorAdd4"),Et("Predictor5","PredictorAdd5"),Et("Predictor6","PredictorAdd6"),Et("Predictor7","PredictorAdd7"),Et("Predictor8","PredictorAdd8"),Et("Predictor9","PredictorAdd9"),Et("Predictor10","PredictorAdd10"),Et("Predictor11","PredictorAdd11"),Et("Predictor12","PredictorAdd12"),Et("Predictor13","PredictorAdd13");var qn=W.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",function(i){return i>>8&255},function(i){return i}),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(i){return i},function(i){return i>>8&255});var Hi,gi=W.ColorIndexInverseTransform,tr=W.MapARGB,Js=W.VP8LColorIndexInverseTransformAlpha,fn=W.MapAlpha,Jr=W.VP8LPredictorsAdd=[];Jr.length=16,(W.VP8LPredictors=[]).length=16,(W.VP8LPredictorsAdd_C=[]).length=16,(W.VP8LPredictors_C=[]).length=16;var mi,ya,wa,Vi,vi,bi,Un,Ln,zn,Gi,gr,dn,Fe,Ie,Ge,er,Pn,xa,Yi,Ja,$o,Jo,Ko,Xo,Na,Zo,Qo,tl,el=s(511),rl=s(2041),nl=s(225),il=s(767),al=0,Ks=rl,Ka=nl,Fr=il,Hr=el,Xa=0,Za=1,sl=2,Qa=3,ts=4,Xs=5,ol=6,Zs=7,Qs=8,es=9,to=10,lh=[2,3,7],uh=[3,3,11],ll=[280,256,256,256,40],h
vendor: 4,549 bytes, line 109
109h=[0,1,1,1,0],ch=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],fh=[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],dh=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ph=8,eo=[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],ro=[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],_a=null,gh=[[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]],mh=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ul=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],vh=[[[[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]]]],bh=[[[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]]],yh=[[[[255,255,255,255,255,255,255,255,255,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,077 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]]]],wh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Wn=[],Kr=[],kn=[],xh=1,hl=2,Hn=[],Vr=[];dr("UpsampleRgbLinePair",hi,3),dr("UpsampleBgrLinePair",Ri,3),dr("UpsampleRgbaLinePair",ma,4),dr("UpsampleBgraLinePair",fi,4),dr("UpsampleArgbLinePair",ci,4),dr("UpsampleRgba4444LinePair",pr,2),dr("UpsampleRgb565LinePair",qi,2);var Nh=W.UpsampleRgbLinePair,_h=W.UpsampleBgrLinePair,cl=W.UpsampleRgbaLinePair,fl=W.UpsampleBgraLinePair,dl=W.UpsampleArgbLinePair,pl=W.UpsampleRgba4444LinePair,Ah=W.UpsampleRgb565LinePair,rs=16,ns=1<<rs-1,Aa=-227,no=482,Sh=6,gl=0,Lh=s(256),Ph=s(256),kh=s(256),jh=s(256),Ch=s(no-Aa),Fh=s(no-Aa);cn("YuvToRgbRow",hi,3),cn("YuvToBgrRow",Ri,3),cn("YuvToRgbaRow",ma,4),cn("YuvToBgraRow",fi,4),cn("YuvToArgbRow",ci,4),cn("YuvToRgba4444Row",pr,2),cn("YuvToRgb565Row",qi,2);var ml=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],is=[0,2,8],Ih=[8,7,6,4,4,2,2,2,1,1,1,1],Oh=1;this.WebPDecodeRGBA=function(i,o,f,g,b){var w=Za,x=new R,_=new de;x.ba=_,_.S=w,_.width=[_.width],_.height=[_.height];var S=_.width,C=_.height,V=new Qt;if(V==null||i==null)var et=2;else t(V!=null),et=$a(i,o,f,V.width,V.height,V.Pd,V.Qd,V.format,null);if(et!=0?S=0:(S!=null&&(S[0]=V.width[0]),C!=null&&(C[0]=V.height[0]),S=1),S){_.width=_.width[0],_.height=_.height[0],g!=null&&(g[0]=_.width),b!=null&&(b[0]=_.height);t:{if(g=new Ci,(b=new $).data=i,b.w=o,b.ha=f,b.kd=1,o=[0],t(b!=null),((i=$a(b.data,b.w,b.ha,null,null,null,o,null,b))==0||i==7)&&o[0]&&(i=4),(o=i)==0){if(t(x!=null),g.data=b.data,g.w=b.w+b.offset,g.ha=b.ha-b.offset,g.put=te,g.ac=nn,g.bc=bn,g.ma=x,b.xa){if((i=ni())==null){x=1;break t}if(function(F,G){var K=[0],ht=[0],Q=[0];e:for(;;){if(F==null)return 0;if(G==null)return F.a=2,0;if(F.l=G,F.a=0,ct(F.m,G.data,G.w,G.ha),!yn(F.m,K,ht,Q)){F.a=3;break e}if(F.xb=hl,G.width=K[0],G.height=ht[0],!sn(K[0],ht[0],1,F,null))break e;return 1}return t(F.a!=0),0}(i,g)){if(g=(o=va(g.width,g.height,x.Oa,x.ba))==0){e:{g=i;r:for(;;){if(g==null){g=0;break e}if(t(g.s.yc!=null),t(g.s.Ya!=null),t(0<g.s.Wb),t((f=g.l)!=null),t((b=f.ma)!=null),g.xb!=0){if(g.ca=b.ba,g.tb=b.tb,t(g.ca!=null),!Wr(b.Oa,f,Qa)){g.a=2;break r}if(!ii(g,f.width)||f.da)break r;if((f.da||ee(g.ca.S))&&Ue(),11>g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&Ue()),g.Pb&&0<g.s.ua&&g.s.vb.X==null&&!P(g.s.vb,g.s.Wa.Xa)){g.a=1;break r}g.xb=0}if(!$r(g,g.V,g.Ba,g.c,g.i,f.o,En))break r;b.Dc=g.Ma,g=1;break e}t(g.a!=0),g=0}g=!g}g&&(o=i.a)}else o=i.a}else{if((i=new Is)==null){x=1;break t}if(i.Fa=b.na,i.P=b.P,i.qc=b.Sa,ln(i,g)){if((o=va(g.width,g.height,x.Oa,x.ba))==0){if(i.Aa=0,f=x.Oa,t((b=i)!=null),f!=null){if(0<(S=0>(S=f.Md)?0:100<S?255:255*S/100)){for(C=V=0;4>C;++C)12>(et=b.pb[C]).lc&&(et.ia=S*Ih[0>et.lc?0:et.lc]>>3),V|=et.ia;V&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=f.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(F,G){if(F==null)return 0;if(G==null)return Ze(F,2,"NULL VP8Io parameter in VP8Decode().");if(!F.cb&&!ln(F,G))return 0;if(t(F.cb),G.ac==null||G.ac(G)){G.ob&&(F.L=0);var K=is[F.L];if(F.L==2?(F.yb=0,F.zb=0):(F.yb=G.v-K>>4,F.zb=G.j-K>>4,0>F.yb&&(F.yb=0),0>F.zb&&(F.zb=0)),F.Va=G.o+15+K>>4,F.Hb=G.va+15+K>>4,F.Hb>F.za&&(F.Hb=F.za),F.Va>F.Ub&&(F.Va=F.Ub),0<F.L){var ht=F.ed;for(K=0;4>K;++K){var Q;if(F.Qa.Cb){var ft=F.Qa.Lb[K];F.Qa.Fb||(ft+=ht.Tb)}else ft=ht.Tb;for(Q=0;1>=Q;++Q){var dt=F.gd[K][Q],xt=ft;if(ht.Pc&&(xt+=ht.vd[0],Q&&(xt+=ht.od[0])),0<(xt=0>xt?0:63<xt?63:xt)){var yt=xt;0<ht.wb&&(yt=4<ht.wb?yt>>2:yt>>1)>9-ht.wb&&(yt=9-ht.wb),1>yt&&(yt=1),dt.dd=yt,dt.tc=2*xt+yt,dt.ld=40<=xt?2:15<=xt?1:0}else dt.tc=0;dt.La=Q}}}K=0}else Ze(F,6,"Frame setup failed"),K=F.a;if(K=K==0){if(K){F.$c=0,0<F.Aa||(F.Ic=Oh);e:{K=F.Ic,ht=4*(yt=F.za);var Wt=32*yt,Bt=yt+1,ce=0<F.L?yt*(0<F.Aa?2:1):0,Ut=(F.Aa==2?2:1)*yt;if((dt=ht+832+(Q=3*(16*K+is[F.L])/2*Wt)+(ft=F.Fa!=null&&0<F.Fa.length?F.Kc.c*F.Kc.i:0))!=dt)K=0;else{if(dt>F.Vb){if(F.Vb=0,F.Ec=s(dt),F.Fc=0,F.Ec==null){K=Ze(F,1,"no memory during frame initialization.");break e}F.Vb=dt}dt=F.Ec,xt=F.Fc,F.Ac=dt,F.Bc=xt,xt+=ht,F.Gd=c(Wt,Ta),F.Hd=0,F.rb=c(Bt+1,sa),F.sb=1,F.wa=ce?c(ce,zr):null,F.Y=0,F.D.Nb=0,F.D.wa=F.wa,F.D.Y=F.Y,0<F.Aa&&(F.D.Y+=yt),t(!0),F.oc=dt,F.pc=xt,xt+=832,F.ya=c(Ut,oa),F.aa=0,F.D.ya=F.ya,F.D.aa=F.aa,F.Aa==2&&(F.D.aa+=yt),F.R=16*yt,F.B=8*yt,yt=(Wt=is[F.L])*F.R,Wt=Wt/2*F.B,F.sa=dt,F.ta=xt+yt,F.qa=F.sa,F.ra=F.ta+16*K*F.R+Wt,F.Ha=F.qa,F.Ia=F.ra+8*K*F.B+Wt,F.$c=0,xt+=Q,F.mb=ft?dt:null,F.nb=ft?xt:null,t(xt+ft<=F.Fc+F.Vb),la(F),a(F.Ac,F.Bc,0,ht),K=1}}if(K){if(G.ka=0,G.y=F.sa,G.O=F.ta,G.f=F.qa,G.N=F.ra,G.ea=F.Ha,G.Vd=F.Ia,G.fa=F.R,G.Rc=F.B,G.F=null,G.J=0,!al){for(K=-255;255>=K;++K)el[255+K]=0>K?-K:K;for(K=-1020;1020>=K;++K)rl[1020+K]=-128>K?-128:127<K?127:K;for(K=-112;112>=K;++K)nl[112+K]=-16>K?-16:15<K?15:K;for(K=-255;510>=K;++K)il[255+K]=0>K?0:255<K?255:K;al=1}Un=qa,Ln=Os,Gi=Es,gr=Bs,dn=un,zn=Ra,Fe=Wa,Ie=Ha,Ge=Ga,er=h,Pn=Va,xa=oi,Yi=v,Ja=j,$o=Mi,Jo=pa,Ko=Di,Xo=za,Kr[0]=zs,Kr[1]=Ei,Kr[2]=qs,Kr[3]=Us,Kr[4]=Ws,Kr[5]=xn,Kr[6]=Hs,Kr[7]=Nn,Kr[8]=Gs,Kr[9]=Vs,Wn[0]=Ua,Wn[1]=Ts,Wn[2]=Ms,Wn[3]=Ds,Wn[4]=Tn,Wn[5]=Rs,Wn[6]=ai,kn[0]=Ys,kn[1]=ua,kn[2]=Bi,kn[3]=ha,kn[4]=$s,kn[5]=Ti,kn[6]=ca,K=1}else K=0}K&&(K=function(me,rr){for(me.M=0;me.M<me.Va;++me.M){var fe,zt=me.Jc[me.M&me.Xb],kt=me.m,Ye=me;for(fe=0;fe<Ye.za;++fe){var ue=kt,be=Ye,Be=be.Ac,ur=be.Bc+4*fe,_r=be.zc,We=be.ya[be.aa+fe];if(be.Qa.Bb?We.$b=pt(ue,be.Pa.jb[0])?2+pt(ue,be.Pa.jb[2]):pt(ue,be.Pa.jb[1]):We.$b=0,be.kc&&(We.Ad=pt(ue,be.Bd)),We.Za=!pt(ue,145)+0,We.Za){var mr=We.Ob,Ar=0;for(be=0;4>be;++be){var nr,ye=_r[0+be];for(nr=0;4>nr;++nr){ye=bh[Be[ur+nr]][ye];for(var Ne=ul[pt(ue,ye[0])];0<Ne;)Ne=ul[2*Ne+pt(ue,ye[Ne])];ye=-Ne,Be[ur+nr]=ye}n(mr,Ar,Be,ur,4),Ar+=4,_r[0+be]=ye}}else ye=pt(ue,156)?pt(ue,128)?1:3:pt(ue,163)?2:0,We.Ob[0]=ye,a(Be,ur,ye,4),a(_r,0,ye,4);We.Dd=pt(ue,142)?pt(ue,114)?pt(ue,183)?1:3:2:0}if(Ye.m.Ka)return Ze(me,7,"Premature end-of-partition0 encountered.");for(;me.ja<me.za;++me.ja){if(Ye=zt,ue=(kt=me).rb[kt.sb-1],Be=kt.rb[kt.sb+kt.ja],fe=kt.ya[kt.aa+kt.ja],ur=kt.kc?fe.Ad:0)ue.la=Be.la=0,fe.Za||(ue.Na=Be.Na=0),fe.Hc=0,fe.Gc=0,fe.ia=0;else{var He,_e;if(ue=Be,Be=Ye,ur=kt.Pa.Xc,_r=kt.ya[kt.aa+kt.ja],We=kt.pb[_r.$b],be=_r.ad,mr=0,Ar=kt.rb[kt.sb-1],ye=nr=0,a(be,mr,0,384),_r.Za)var hr=0,Xr=ur[3];else{Ne=s(16);var $e=ue.Na+Ar.Na;if($e=_a(Be,ur[1],$e,We.Eb,0,Ne,0),ue.Na=Ar.Na=(0<$e)+0,1<$e)Un(Ne,0,be,mr);else{var Pr=Ne[0]+3>>3;for(Ne=0;256>Ne;Ne+=16)be[mr+Ne]=Pr}hr=1,Xr=ur[0]}var ke=15&ue.la,ir=15&Ar.la;for(Ne=0;4>Ne;++Ne){var Ir=1&ir;for(Pr=_e=0;4>Pr;++Pr)ke=ke>>1|(Ir=($e=_a(Be,Xr,$e=Ir+(1&ke),We.Sc,hr,be,mr))>hr)<<7,_e=_e<<2|(3<$e?3:1<$e?2:be[mr+0]!=0),mr+=16;ke>>=4,ir=ir>>1|Ir<<7,nr=(nr<<8|_e)>>>0}for(Xr=ke,hr=ir>>4,He=0;4>He;He+=2){for(_e=0,ke=ue.la>>4+He,ir=Ar.la>>4+He,Ne=0;2>Ne;++Ne){for(Ir=1&ir,Pr=0;2>Pr;++Pr)$e=Ir+(1&ke),ke=ke>>1|(Ir=0<($e=_a(Be,ur[2],$e,We.Qc,0,be,mr)))<<3,_e=_e<<2|(3<$e?3:1<$e?2:be[mr+0]!=0),mr+=16;ke>>=2,ir=ir>>1|Ir<<5}ye|=_e<<4*He,Xr|=ke<<4<<He,hr|=(240&ir)<<He}ue.la=Xr,Ar.la=hr,_r.Hc=nr,_r.Gc=ye,_r.ia=43690&ye?0:We.ia,ur=!(nr|ye)}if(0<kt.L&&(kt.wa[kt.Y+kt.ja]=kt.gd[fe.$b][fe.Za],kt.wa[kt.Y+kt.ja].La|=!ur),Ye.Ka)return Ze(me,7,"Premature end-of-file encountered.")}if(la(me),kt=rr,Ye=1,fe=(zt=me).D,ue=0<zt.L&&zt.M>=zt.zb&&zt.M<=zt.Va,zt.Aa==0)e:{if(fe.M=zt.M,fe.uc=ue,Ui(zt,fe),Ye=1,fe=(_e=zt.D).Nb,ue=(ye=is[zt.L])*zt.R,Be=ye/2*zt.B,Ne=16*fe*zt.R,Pr=8*fe*zt.B,ur=zt.sa,_r=zt.ta-ue+Ne,We=zt.qa,be=zt.ra-Be+Pr,mr=zt.Ha,Ar=zt.Ia-Be+Pr,ir=(ke=_e.M)==0,nr=ke>=zt.Va-1,zt.Aa==2&&Ui(zt,_e),_e.uc)for(Ir=($e=zt).D.M,t($e.D.uc),_e=$e.yb;_e<$e.Hb;++_e){hr=_e,Xr=Ir;var Sr=(Or=(cr=$e).D).Nb;He=cr.R;var Or=Or.wa[Or.Y+hr],Er=cr.sa,kr=cr.ta+16*Sr*He+16*hr,Br=Or.dd,Oe=Or.tc;if(Oe!=0)if(t(3<=Oe),cr.L==1)0<hr&&Jo(Er,kr,He,Oe+4),Or.La&&Xo(Er,kr,He,Oe),0<Xr&&$o(Er,kr,He,Oe+4),Or.La&&Ko(Er,kr,He,Oe);else{var Tr=cr.B,Zr=cr.qa,yi=cr.ra+8*Sr*Tr+8*hr,jn=cr.Ha,cr=cr.Ia+8*Sr*Tr+8*hr;Sr=Or.ld,0<hr&&(Ie(Er,kr,He,Oe+4,Br,Sr),er(Zr,yi,jn,cr,Tr,Oe+4,Br,Sr)),Or.La&&(xa(Er,kr,He,Oe,Br,Sr),Ja(Zr,yi,jn,cr,Tr,Oe,Br,Sr)),0<Xr&&(Fe(Er,kr,He,Oe+4,Br,Sr),Ge(Zr,yi,jn,cr,Tr,Oe+4,Br,Sr)),Or.La&&(Pn(Er,kr,He,Oe,Br,Sr),Yi(Zr,yi,jn,cr,Tr,Oe,Br,Sr))}}if(zt.ia&&alert("todo:DitherRow"),kt.put!=null){if(_e=16*ke,ke=16*(ke+1),ir?(kt.y=zt.sa,kt.O=zt.ta+Ne,kt.f=zt.qa,kt.N=zt.ra+Pr,kt.ea=zt.Ha,kt.W=zt.Ia+Pr):(_e-=ye,kt.y=ur,kt.O=_r,kt.f=We,kt.N=be,kt.ea=mr,kt.W=Ar),nr||(ke-=ye),ke>kt.o&&(ke=kt.o),kt.F=null,kt.J=null,zt.Fa!=null&&0<zt.Fa.length&&_e<ke&&(kt.J=Qe(zt,kt,_e,ke-_e),kt.F=zt.mb,kt.F==null&&kt.F.length==0)){Ye=Ze(zt,3,"Could not decode alpha data.");break e}_e<kt.j&&(ye=kt.j-_e,_e=kt.j,t(!(1&ye)),kt.O+=zt.R*ye,kt.N+=zt.B*(ye>>1),kt.W+=zt.B*(ye>>1),kt.F!=null&&(kt.J+=kt.width*ye)),_e<ke&&(kt.O+=kt.v,kt.N+=kt.v>>1,kt.W+=kt.v>>1,kt.F!=null&&(kt.J+=kt.v),kt.ka=_e-kt.j,kt.U=kt.va-kt.v,kt.T=ke-_e,Ye=kt.put(kt))}fe+1!=zt.Ic||nr||(n(zt.sa,zt.ta-ue,ur,_r+16*zt.R,ue),n(zt.qa,zt.ra-Be,We,be+8*zt.B,Be),n(zt.Ha,zt.Ia-Be,mr,Ar+8*zt.B,Be))}if(!Ye)return Ze(me,6,"Output aborted.")}return 1}(F,G)),G.bc!=null&&G.bc(G),K&=1}return K?(F.cb=0,K):0})(i,g)||(o=i.a)}}else o=i.a}o==0&&x.Oa!=null&&x.Oa.fd&&(o=di(x.ba))}x=o}w=x!=0?null:11>w?_.f.RGBA.eb:_.f.kb.y}else w=null;return w};var vl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(W,gt){for(var L="",O=0;O<4;O++)L+=String.fromCharCode(W[gt++]);return L}function m(W,gt){return W[gt+0]|W[gt+1]<<8}function y(W,gt){return(W[gt+0]|W[gt+1]<<8|W[gt+2]<<16)>>>0}function A(W,gt){return(W[gt+0]|W[gt+1]<<8|W[gt+2]<<16|W[gt+3]<<24)>>>0}new u;var p=[0],T=[0],I=[],M=new u,k=e,J=function(W,gt){var L={},O=0,z=!1,q=0,it=0;if(L.frames=[],!function(N,B){for(var D=0;D<4;D++)if(N[B+D]!="RIFF".charCodeAt(D))return!0;return!1}(W,gt)){for(A(W,gt+=4),gt+=8;gt<W.length;){var ot=d(W,gt),lt=A(W,gt+=4);gt+=4;var tt=lt+(1<);switch(ot){case"VP8 ":case"VP8L":L.frames[O]===void 0&&(L.frames[O]={}),(vt=L.frames[O]).src_off=z?it:gt-8,vt.src_size=q+lt+8,O++,z&&(z=!1,q=0,it=0);break;case"VP8X":(vt=L.header={}).feature_flags=W[gt];var ct=gt+4;vt.canvas_width=1+y(W,ct),ct+=3,vt.canvas_height=1+y(W,ct),ct+=3;break;case"ALPH":z=!0,q=tt+8,it=gt-8;break;case"ANIM":(vt=L.header).bgcolor=A(W,gt),ct=gt+4,vt.loop_count=m(W,ct),ct+=2;break;case"ANMF":var St,vt;(vt=L.frames[O]={}).offset_x=2*y(W,gt),gt+=3,vt.offset_y=2*y(W,gt),gt+=3,vt.width=1+y(W,gt),gt+=3,vt.height=1+y(W,gt),gt+=3,vt.duration=y(W,gt),gt+=3,St=W[gt++],vt.dispose=1&St,vt.blend=St>>1&1}ot!="ANMF"&&(gt+=tt)}return L}}
109(k,0);J.response=k,J.rgbaoutput=!0,J.dataurl=!1;var X=J.header?J.header:null,rt=J.frames?J.frames:null;if(X){X.loop_counter=X.loop_count,p=[X.canvas_height],T=[X.canvas_width];for(var mt=0;mt<rt.length&&rt[mt].blend!=0;mt++);}var At=rt[0],It=M.WebPDecodeRGBA(k,At.src_off,At.src_size,T,p);At.rgba=It,At.imgwidth=T[0],At.imgheight=p[0];for(var nt=0;nt<T[0]*p[0]*4;nt++)I[nt]=It[nt];return this.width=T,this.height=p,this.data=I,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 lf(){var e,t=this.internal.__metadata__.metadata,r=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?r:'<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>'+r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function uf(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,r,n,a,s,c,l,u,d,m=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new u,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new c,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new c,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new y(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,c=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,d=new m}]);var y=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var B=N;Object.defineProperty(this,"pdf",{get:function(){return B}});var D=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return D},set:function(P){D=!!P}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(P){H=!!P}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(P){isNaN(P)||(Y=P)}});var Z=0;Object.defineProperty(this,"posY",{get:function(){return Z},set:function(P){isNaN(P)||(Z=P)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(P){var jt;typeof P=="number"?jt=[P,P,P,P]:((jt=new Array(4))[0]=P[0],jt[1]=P.length>=2?P[1]:jt[0],jt[2]=P.length>=3?P[2]:jt[0],jt[3]=P.length>=4?P[3]:jt[1]),d.margin=jt}});var at=!1;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(P){at=P}});var st=0;Object.defineProperty(this,"lastBreak",{get:function(){return st},set:function(P){st=P}});var pt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return pt},set:function(P){pt=P}}),Object.defineProperty(this,"ctx",{get:function(){return d}
vendor: 9,300 bytes, line 133
133,set:function(P){P instanceof m&&(d=P)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(P){d.path=P}});var Nt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Nt},set:function(P){Nt=P}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var jt;jt=A(P),this.ctx.fillStyle=jt.style,this.ctx.isFillTransparent=jt.a===0,this.ctx.fillOpacity=jt.a,this.pdf.setFillColor(jt.r,jt.g,jt.b,{a:jt.a}),this.pdf.setTextColor(jt.r,jt.g,jt.b,{a:jt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(P){var jt=A(P);this.ctx.strokeStyle=jt.style,this.ctx.isStrokeTransparent=jt.a===0,this.ctx.strokeOpacity=jt.a,jt.a===0?this.pdf.setDrawColor(255,255,255):(jt.a,this.pdf.setDrawColor(jt.r,jt.g,jt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(P){["butt","round","square"].indexOf(P)!==-1&&(this.ctx.lineCap=P,this.pdf.setLineCap(P))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(P){isNaN(P)||(this.ctx.lineWidth=P,this.pdf.setLineWidth(P))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(P){["bevel","round","miter"].indexOf(P)!==-1&&(this.ctx.lineJoin=P,this.pdf.setLineJoin(P))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(P){isNaN(P)||(this.ctx.miterLimit=P,this.pdf.setMiterLimit(P))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(P){this.ctx.textBaseline=P}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(P){["right","end","center","left","start"].indexOf(P)!==-1&&(this.ctx.textAlign=P)}});var Ot=null,Ft=null,Vt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Vt},set:function(P){Ot=null,Ft=null,Vt=P}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(P){var jt;if(this.ctx.font=P,(jt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(P))!==null){var se=jt[1];jt[2];var $t=jt[3],wt=jt[4];jt[5];var Xt=jt[6],Et=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(wt)[2];wt=Math.floor(Et==="px"?parseFloat(wt)*this.pdf.internal.scaleFactor:Et==="em"?parseFloat(wt)*this.pdf.getFontSize():parseFloat(wt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(wt);var Jt=function(Mt){var Me,ge,he=[],_t=Mt.trim();if(_t==="")return Ao;if(_t in Kl)return[Kl[_t]];for(;_t!=="";){switch(ge=null,Me=(_t=Zl(_t)).charAt(0)){case'"':case"'":ge=ef(_t.substring(1),Me);break;default:ge=rf(_t)}if(ge===null||(he.push(ge[0]),(_t=Zl(ge[1]))!==""&&_t.charAt(0)!==","))return Ao;_t=_t.replace(/^,/,"")}return he}(Xt);if(this.fontFaces){var Gt=function(Mt,Me){var ge=Mt.getFontList(),he=JSON.stringify(ge);if(Ot===null||Ft!==he){var _t=function(xe){var Yt=[];return Object.keys(xe).forEach(function(Ce){xe[Ce].forEach(function(ee){var oe=null;switch(ee){case"bold":oe={family:Ce,weight:"bold"};break;case"italic":oe={family:Ce,style:"italic"};break;case"bolditalic":oe={family:Ce,weight:"bold",style:"italic"};break;case"":case"normal":oe={family:Ce}}oe!==null&&(oe.ref={name:Ce,style:ee},Yt.push(oe))})}),Yt}(ge);Ot=function(xe){for(var Yt={},Ce=0;Ce<xe.length;++Ce){var ee=_o(xe[Ce]),oe=ee.family,De=ee.stretch,de=ee.style,Qt=ee.weight;Yt[oe]=Yt[oe]||{},Yt[oe][De]=Yt[oe][De]||{},Yt[oe][De][de]=Yt[oe][De][de]||{},Yt[oe][De][de][Qt]=ee}return Yt}(_t.concat(Me)),Ft=he}return Ot}(this.pdf,this.fontFaces),pe=Jt.map(function(Mt){return{family:Mt,stretch:"normal",weight:$t,style:se}}),U=function(Mt,Me,ge){for(var he=(ge=ge||{}).defaultFontFamily||"times",_t=Object.assign({},tf,ge.genericFontFamilies||{}),xe=null,Yt=null,Ce=0;Ce<Me.length;++Ce)if(_t[(xe=_o(Me[Ce])).family]&&(xe.family=_t[xe.family]),Mt.hasOwnProperty(xe.family)){Yt=Mt[xe.family];break}if(!(Yt=Yt||Mt[he]))throw new Error("Could not find a font-family for the rule '"+Xl(xe)+"' and default family '"+he+"'.");if(Yt=function(ee,oe){if(oe[ee])return oe[ee];var De=Ro[ee],de=De<=Ro.normal?-1:1,Qt=Jl(oe,Uu,De,de);if(!Qt)throw new Error("Could not find a matching font-stretch value for "+ee);return Qt}(xe.stretch,Yt),Yt=function(ee,oe){if(oe[ee])return oe[ee];for(var De=qu[ee],de=0;de<De.length;++de)if(oe[De[de]])return oe[De[de]];throw new Error("Could not find a matching font-style for "+ee)}(xe.style,Yt),!(Yt=function(ee,oe){if(oe[ee])return oe[ee];if(ee===400&&oe[500])return oe[500];if(ee===500&&oe[400])return oe[400];var De=Qc[ee],de=Jl(oe,zu,De,ee<400?-1:1);if(!de)throw new Error("Could not find a matching font-weight for value "+ee);return de}(xe.weight,Yt)))throw new Error("Failed to resolve a font for the rule '"+Xl(xe)+"'.");return Yt}(Gt,pe);this.pdf.setFont(U.ref.name,U.ref.style)}else{var Lt="";($t==="bold"||parseInt($t,10)>=700||se==="bold")&&(Lt="bold"),se==="italic"&&(Lt+="italic"),Lt.length===0&&(Lt="normal");for(var Kt="",Tt={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"},Ct=0;Ct<Jt.length;Ct++){if(this.pdf.internal.getFont(Jt[Ct],Lt,{noFallback:!0,disableWarning:!0})!==void 0){Kt=Jt[Ct];break}if(Lt==="bolditalic"&&this.pdf.internal.getFont(Jt[Ct],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Kt=Jt[Ct],Lt="bold";else if(this.pdf.internal.getFont(Jt[Ct],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Kt=Jt[Ct],Lt="normal";break}}if(Kt===""){for(var Zt=0;Zt<Jt.length;Zt++)if(Tt[Jt[Zt]]){Kt=Tt[Jt[Zt]];break}}Kt=Kt===""?"Times":Kt,this.pdf.setFont(Kt,Lt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(P){this.ctx.globalCompositeOperation=P}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(P){this.ctx.globalAlpha=P}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(P){this.ctx.lineDashOffset=P,vt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(P){this.ctx.lineDash=P,vt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(P){this.ctx.ignoreClearRect=!!P}})};y.prototype.setLineDash=function(N){this.lineDash=N},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){rt.call(this,"fill",!1)},y.prototype.stroke=function(){rt.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(N,B){if(isNaN(N)||isNaN(B))throw je.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var D=this.ctx.transform.applyToPoint(new c(N,B));this.path.push({type:"mt",x:D.x,y:D.y}),this.ctx.lastPoint=new c(N,B)},y.prototype.closePath=function(){var N=new c(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&Se(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){N=new c(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(N.x,N.y)},y.prototype.lineTo=function(N,B){if(isNaN(N)||isNaN(B))throw je.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var D=this.ctx.transform.applyToPoint(new c(N,B));this.path.push({type:"lt",x:D.x,y:D.y}),this.ctx.lastPoint=new c(D.x,D.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),rt.call(this,null,!0)},y.prototype.quadraticCurveTo=function(N,B,D,H){if(isNaN(D)||isNaN(H)||isNaN(N)||isNaN(B))throw je.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Y=this.ctx.transform.applyToPoint(new c(D,H)),Z=this.ctx.transform.applyToPoint(new c(N,B));this.path.push({type:"qct",x1:Z.x,y1:Z.y,x:Y.x,y:Y.y}),this.ctx.lastPoint=new c(Y.x,Y.y)},y.prototype.bezierCurveTo=function(N,B,D,H,Y,Z){if(isNaN(Y)||isNaN(Z)||isNaN(N)||isNaN(B)||isNaN(D)||isNaN(H))throw je.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var at=this.ctx.transform.applyToPoint(new c(Y,Z)),st=this.ctx.transform.applyToPoint(new c(N,B)),pt=this.ctx.transform.applyToPoint(new c(D,H));this.path.push({type:"bct",x1:st.x,y1:st.y,x2:pt.x,y2:pt.y,x:at.x,y:at.y}),this.ctx.lastPoint=new c(at.x,at.y)},y.prototype.arc=function(N,B,D,H,Y,Z){if(isNaN(N)||isNaN(B)||isNaN(D)||isNaN(H)||isNaN(Y))throw je.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to
133jsPDF.context2d.arc");if(Z=!!Z,!this.ctx.transform.isIdentity){var at=this.ctx.transform.applyToPoint(new c(N,B));N=at.x,B=at.y;var st=this.ctx.transform.applyToPoint(new c(0,D)),pt=this.ctx.transform.applyToPoint(new c(0,0));D=Math.sqrt(Math.pow(st.x-pt.x,2)+Math.pow(st.y-pt.y,2))}Math.abs(Y-H)>=2*Math.PI&&(H=0,Y=2*Math.PI),this.path.push({type:"arc",x:N,y:B,radius:D,startAngle:H,endAngle:Y,counterclockwise:Z})},y.prototype.arcTo=function(N,B,D,H,Y){throw new Error("arcTo not implemented.")},y.prototype.rect=function(N,B,D,H){if(isNaN(N)||isNaN(B)||isNaN(D)||isNaN(H))throw je.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,B),this.lineTo(N+D,B),this.lineTo(N+D,B+H),this.lineTo(N,B+H),this.lineTo(N,B),this.lineTo(N+D,B),this.lineTo(N,B)},y.prototype.fillRect=function(N,B,D,H){if(isNaN(N)||isNaN(B)||isNaN(D)||isNaN(H))throw je.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.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(N,B,D,H),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},y.prototype.strokeRect=function(N,B,D,H){if(isNaN(N)||isNaN(B)||isNaN(D)||isNaN(H))throw je.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");T.call(this)||(this.beginPath(),this.rect(N,B,D,H),this.stroke())},y.prototype.clearRect=function(N,B,D,H){if(isNaN(N)||isNaN(B)||isNaN(D)||isNaN(H))throw je.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,B,D,H))},y.prototype.save=function(N){N=typeof N!="boolean"||N;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,D=0;D<this.pdf.internal.getNumberOfPages();D++)this.pdf.setPage(D+1),this.pdf.internal.out("q");if(this.pdf.setPage(B),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new m(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},y.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,D=0;D<this.pdf.internal.getNumberOfPages();D++)this.pdf.setPage(D+1),this.pdf.internal.out("Q");this.pdf.setPage(B),N&&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)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(N){var B,D,H,Y;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))B=0,D=0,H=0,Y=0;else{var Z=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(Z!==null)B=parseInt(Z[1]),D=parseInt(Z[2]),H=parseInt(Z[3]),Y=1;else if((Z=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)B=parseInt(Z[1]),D=parseInt(Z[2]),H=parseInt(Z[3]),Y=parseFloat(Z[4]);else{if(Y=1,typeof N=="string"&&N.charAt(0)!=="#"){var at=new Ou(N);N=at.ok?at.toHex():"#000000"}N.length===4?(B=N.substring(1,2),B+=B,D=N.substring(2,3),D+=D,H=N.substring(3,4),H+=H):(B=N.substring(1,3),D=N.substring(3,5),H=N.substring(5,7)),B=parseInt(B,16),D=parseInt(D,16),H=parseInt(H,16)}}return{r:B,g:D,b:H,a:Y,style:N}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},T=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(N,B,D,H){if(isNaN(B)||isNaN(D)||typeof N!="string")throw je.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to
133jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!p.call(this)){var Y=tt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;O.call(this,{text:N,x:B,y:D,scale:Z,angle:Y,align:this.textAlign,maxWidth:H})}},y.prototype.strokeText=function(N,B,D,H){if(isNaN(B)||isNaN(D)||typeof N!="string")throw je.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!T.call(this)){H=isNaN(H)?void 0:H;var Y=tt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;O.call(this,{text:N,x:B,y:D,scale:Z,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:H})}},y.prototype.measureText=function(N){if(typeof N!="string")throw je.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,D=this.pdf.internal.scaleFactor,H=B.internal.getFontSize(),Y=B.getStringUnitWidth(N)*H/B.internal.scaleFactor;return new function(Z){var at=(Z=Z||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:Y*=Math.round(96*D/72*1e4)/1e4})},y.prototype.scale=function(N,B){if(isNaN(N)||isNaN(B))throw je.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var D=new u(N,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(D)},y.prototype.rotate=function(N){if(isNaN(N))throw je.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new u(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.translate=function(N,B){if(isNaN(N)||isNaN(B))throw je.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var D=new u(1,0,0,1,N,B);this.ctx.transform=this.ctx.transform.multiply(D)},y.prototype.transform=function(N,B,D,H,Y,Z){if(isNaN(N)||isNaN(B)||isNaN(D)||isNaN(H)||isNaN(Y)||isNaN(Z))throw je.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var at=new u(N,B,D,H,Y,Z);this.ctx.transform=this.ctx.transform.multiply(at)},y.prototype.setTransform=function(N,B,D,H,Y,Z){N=isNaN(N)?1:N,B=isNaN(B)?0:B,D=isNaN(D)?0:D,H=isNaN(H)?1:H,Y=isNaN(Y)?0:Y,Z=isNaN(Z)?0:Z,this.ctx.transform=new u(N,B,D,H,Y,Z)};var I=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(N,B,D,H,Y,Z,at,st,pt){var Nt=this.pdf.getImageProperties(N),Ot=1,Ft=1,Vt=1,P=1;H!==void 0&&st!==void 0&&(Vt=st/H,P=pt/Y,Ot=Nt.width/H*st/H,Ft=Nt.height/Y*pt/Y),Z===void 0&&(Z=B,at=D,B=0,D=0),H!==void 0&&st===void 0&&(st=H,pt=Y),H===void 0&&st===void 0&&(st=Nt.width,pt=Nt.height);var jt=this.ctx.transform.decompose(),se=tt(jt.rotate.shx),$t=new u,wt=($t=($t=($t=$t.multiply(jt.translate)).multiply(jt.skew)).multiply(jt.scale)).applyToRectangle(new l(Z-B*Vt,at-D*P,H*Ot,Y*Ft));if(this.autoPaging){for(var Xt,Et=M.call(this,wt),Jt=[],Gt=0;Gt<Et.length;Gt+=1)Jt.indexOf(Et[Gt])===-1&&Jt.push(Et[Gt]);X(Jt);for(var pe=Jt[0],U=Jt[Jt.length-1],Lt=pe;Lt<U+1;Lt++){this.pdf.setPage(Lt);var Kt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Tt=Lt===1?this.posY+this.margin[0]:this.margin[0],Ct=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Mt=Lt===1?0:Ct+(Lt-2)*Zt;if(this.ctx.clip_path.length!==0){var Me=this.path;Xt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=J(Xt,this.posX+this.margin[3],-Mt+Tt+this.ctx.prevPageLastElemOffset),mt.call(this,"fill",!0),this.path=Me}var ge=JSON.parse(JSON.stringify(wt));ge=J([ge],this.posX+this.margin[3],-Mt+Tt+this.ctx.prevPageLastElemOffset)[0];var he=(Lt>pe||Lt<U)&&I.call(this);he&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Kt,Zt,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",ge.x,ge.y,ge.w,ge.h,null,
vendor: 12,512 bytes, line 133
133null,se),he&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(N,"JPEG",wt.x,wt.y,wt.w,wt.h,null,null,se)};var M=function(N,B,D){var H=[];B=B||this.pdf.internal.pageSize.width,D=D||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Y=this.posY+this.ctx.prevPageLastElemOffset;switch(N.type){default:case"mt":case"lt":H.push(Math.floor((N.y+Y)/D)+1);break;case"arc":H.push(Math.floor((N.y+Y-N.radius)/D)+1),H.push(Math.floor((N.y+Y+N.radius)/D)+1);break;case"qct":var Z=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);H.push(Math.floor((Z.y+Y)/D)+1),H.push(Math.floor((Z.y+Z.h+Y)/D)+1);break;case"bct":var at=St(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);H.push(Math.floor((at.y+Y)/D)+1),H.push(Math.floor((at.y+at.h+Y)/D)+1);break;case"rect":H.push(Math.floor((N.y+Y)/D)+1),H.push(Math.floor((N.y+N.h+Y)/D)+1)}for(var st=0;st<H.length;st+=1)for(;this.pdf.internal.getNumberOfPages()<H[st];)k.call(this);return H},k=function(){var N=this.fillStyle,B=this.strokeStyle,D=this.font,H=this.lineCap,Y=this.lineWidth,Z=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=B,this.font=D,this.lineCap=H,this.lineWidth=Y,this.lineJoin=Z},J=function(N,B,D){for(var H=0;H<N.length;H++)switch(N[H].type){case"bct":N[H].x2+=B,N[H].y2+=D;case"qct":N[H].x1+=B,N[H].y1+=D;default:N[H].x+=B,N[H].y+=D}return N},X=function(N){return N.sort(function(B,D){return B-D})},rt=function(N,B){var D=this.fillStyle,H=this.strokeStyle,Y=this.lineCap,Z=this.lineWidth,at=Math.abs(Z*this.ctx.transform.scaleX),st=this.lineJoin;if(this.autoPaging){for(var pt,Nt,Ot=JSON.parse(JSON.stringify(this.path)),Ft=JSON.parse(JSON.stringify(this.path)),Vt=[],P=0;P<Ft.length;P++)if(Ft[P].x!==void 0)for(var jt=M.call(this,Ft[P]),se=0;se<jt.length;se+=1)Vt.indexOf(jt[se])===-1&&Vt.push(jt[se]);for(var $t=0;$t<Vt.length;$t++)for(;this.pdf.internal.getNumberOfPages()<Vt[$t];)k.call(this);X(Vt);for(var wt=Vt[0],Xt=Vt[Vt.length-1],Et=wt;Et<Xt+1;Et++){this.pdf.setPage(Et),this.fillStyle=D,this.strokeStyle=H,this.lineCap=Y,this.lineWidth=at,this.lineJoin=st;var Jt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Gt=Et===1?this.posY+this.margin[0]:this.margin[0],pe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],U=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Lt=Et===1?0:pe+(Et-2)*U;if(this.ctx.clip_path.length!==0){var Kt=this.path;pt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=J(pt,this.posX+this.margin[3],-Lt+Gt+this.ctx.prevPageLastElemOffset),mt.call(this,N,!0),this.path=Kt}if(Nt=JSON.parse(JSON.stringify(Ot)),this.path=J(Nt,this.posX+this.margin[3],-Lt+Gt+this.ctx.prevPageLastElemOffset),B===!1||Et===0){var Tt=(Et>wt||Et<Xt)&&I.call(this);Tt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,U,null).clip().discardPath()),mt.call(this,N,B),Tt&&this.pdf.restoreGraphicsState()}this.lineWidth=Z}this.path=Ot}else this.lineWidth=at,mt.call(this,N,B),this.lineWidth=Z},mt=function(N,B){if((N!=="stroke"||B||!T.call(this))&&(N==="stroke"||B||!p.call(this))){for(var D,H,Y=[],Z=this.path,at=0;at<Z.length;at++){var st=Z[at];switch(st.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:st,deltas:[],abs:[]});break;case"lt":var pt=Y.length;if(Z[at-1]&&!isNaN(Z[at-1].x)&&(D=[st.x-Z[at-1].x,st.y-Z[at-1].y],pt>0)){for(;pt>=0;pt--)if(Y[pt-1].close!==!0&&Y[pt-1].begin!==!0){Y[pt-1].deltas.push(D),Y[pt-1].abs.push(st);break}}break;case"bct":D=[st.x1-Z[at-1].x,st.y1-Z[at-1].y,st.x2-Z[at-1].x,st.y2-Z[at-1].y,st.x-Z[at-1].x,st.y-Z[at-1].y],Y[Y.length-1].deltas.push(D);break;case"qct":var Nt=Z[at-1].x+2/3*(st.x1-Z[at-1].x),Ot=Z[at-1].y+2/3*(st.y1-Z[at-1].y),Ft=st.x+2/3*(st.x1-st.x),Vt=st.y+2/3*(st.y1-st.y),P=st.x,jt=st.y;D=[Nt-Z[at-1].x,Ot-Z[at-1].y,Ft-Z[at-1].x,Vt-Z[at-1].y,P-Z[at-1].x,jt-Z[at-1].y],Y[Y.length-1].deltas.push(D);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(st)}}H=B?null:N==="stroke"?"stroke":"fill";for(var se=!1,$t=0;$t<Y.length;$t++)if(Y[$t].arc)for(var wt=Y[$t].abs,Xt=0;Xt<wt.length;Xt++){var Et=wt[Xt];Et.type==="arc"?nt.call(this,Et.x,Et.y,Et.radius,Et.startAngle,Et.endAngle,Et.counterclockwise,void 0,B,!se):z.call(this,Et.x,Et.y),se=!0}else if(Y[$t].close===!0)this.pdf.internal.out("h"),se=!1;else if(Y[$t].begin!==!0){var Jt=Y[$t].start.x,Gt=Y[$t].start.y;q.call(this,Y[$t].deltas,Jt,Gt),se=!0}H&&W.call(this,H),B&>.call(this)}},At=function(N){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,D=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-D;case"top":return N+B-D;case"hanging":return N+B-2*D;case"middle":return N+B/2-D;default:return N}},It=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(B,D){this.colorStops.push([B,D])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var nt=function(N,B,D,H,Y,Z,at,st,pt){for(var Nt=ot.call(this,D,H,Y,Z),Ot=0;Ot<Nt.length;Ot++){var Ft=Nt[Ot];Ot===0&&(pt?L.call(this,Ft.x1+N,Ft.y1+B):z.call(this,Ft.x1+N,Ft.y1+B)),it.call(this,N,B,Ft.x2,Ft.y2,Ft.x3,Ft.y3,Ft.x4,Ft.y4)}st?gt.call(this):W.call(this,at)},W=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},gt=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(N,B){this.pdf.internal.out(r(N)+" "+n(B)+" m")},O=function(N){var B;switch(N.align){case"right":case"end":B="right";break;case"center":B="center";break;default:B="left"}var D,H,Y,Z=this.pdf.getTextDimensions(N.text),at=At.call(this,N.y),st=It.call(this,at)-Z.h,pt=this.ctx.transform.applyToPoint(new c(N.x,at));if(this.autoPaging){var Nt=this.ctx.transform.decompose(),Ot=new u;Ot=(Ot=(Ot=Ot.multiply(Nt.translate)).multiply(Nt.skew)).multiply(Nt.scale);for(var Ft=this.ctx.transform.applyToRectangle(new l(N.x,at,Z.w,Z.h)),Vt=Ot.applyToRectangle(new l(N.x,st,Z.w,Z.h)),P=M.call(this,Vt),jt=[],se=0;se<P.length;se+=1)jt.indexOf(P[se])===-1&&jt.push(P[se]);X(jt);for(var $t=jt[0],wt=jt[jt.length-1],Xt=$t;Xt<wt+1;Xt++){this.pdf.setPage(Xt);var Et=Xt===1?this.posY+this.margin[0]:this.margin[0],Jt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gt=this.pdf.internal.pageSize.height-this.margin[2],pe=Gt-this.margin[0],U=this.pdf.internal.pageSize.width-this.margin[1],Lt=U-this.margin[3],Kt=Xt===1?0:Jt+(Xt-2)*pe;if(this.ctx.clip_path.length!==0){var Tt=this.path;D=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=J(D,this.posX+this.margin[3],-1*Kt+Et),mt.call(this,"fill",!0),this.path=Tt}var Ct=J([JSON.parse(JSON.stringify(Vt))],this.posX+this.margin[3],-Kt+Et+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*N.scale),Y=this.lineWidth,this.lineWidth=Y*N.scale);var Zt=this.autoPaging!=="text";if(Zt||Ct.y+Ct.h<=Gt){if(Zt||Ct.y>=Et&&Ct.x<=U){var Mt=Zt?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||U-Ct.x)[0],Me=J([JSON.parse(JSON.stringify(Ft))],this.posX+this.margin[3],-Kt+Et+this.ctx.prevPageLastElemOffset)[0],ge=Zt&&(Xt>$t||Xt<wt)&&I.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Lt,pe,null).clip().discardPath()),this.pdf.text(Mt,Me.x,Me.y,{angle:N.angle,align:B,renderingMode:N.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else Ct.y<Gt&&(this.ctx.prevPageLastElemOffset+=Gt-Ct.y);N.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=Y)}}else N.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*N.scale),Y=this.lineWidth,this.lineWidth=Y*N.scale),this.pdf.text(N.text,pt.x+this.posX,pt.y+this.posY,{angle:N.angle,align:B,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=Y)},z=function(N,B,D,H){D=D||0,H=H||0,this.pdf.internal.out(r(N+D)+" "+n(B+H)+" l")},q=function(N,B,D){return this.pdf.lines(N,B,D,null,null)},it=function(N,B,D,H,Y,Z,at,st){this.pdf.internal.out([t(a(D+N)),t(s(H+B)),t(a(Y+N)),t(s(Z+B)),t(a(at+N)),t(s(st+B)),"c"].join(" "))},ot=function(N,B,D,H){for(var Y=2*Math.PI,Z=Math.PI/2;B>D;)B-=Y;var at=Math.abs(D-B);at<Y&&H&&(at=Y-at);for(var st=[],pt=H?-1:1,Nt=B;at>1e-5;){var Ot=Nt+pt*Math.min(at,Z);st.push(lt.call(this,N,Nt,Ot)),at-=Math.abs(Ot-Nt),Nt=Ot}return st},lt=function(N,B,D){var H=(D-B)/2,Y=N*Math.cos(H),Z=N*Math.sin(H),at=Y,st=-Z,pt=at*at+st*st,Nt=pt+at*Y+st*Z,Ot=4/3*(Math.sqrt(2*pt*Nt)-Nt)/(at*Z-st*Y),Ft=at-Ot*st,Vt=st+Ot*at,P=Ft,jt=-Vt,se=H+B,$t=Math.cos(se),wt=Math.sin(se);return{x1:N*Math.cos(B),y1:N*Math.sin(B),x2:Ft*$t-Vt*wt,y2:Ft*wt+Vt*$t,x3:P*$t-jt*wt,y3:P*wt+jt*$t,x4:N*Math.cos(D),y4:N*Math.sin(D)}},tt=function(N){return 180*N/Math.PI},ct=function(N,B,D,H,Y,Z){var at=N+.5*(D-N),st=B+.5*(H-B),pt=Y+.5*(D-Y),Nt=Z+.5*(H-Z),Ot=Math.min(N,Y,at,pt),Ft=Math.max(N,Y,at,pt),Vt=Math.min(B,Z,st,Nt),P=Math.max(B,Z,st,Nt);return new l(Ot,Vt,Ft-Ot,P-Vt)},St=function(N,B,D,H,Y,Z,at,st){var pt,Nt,Ot,Ft,Vt,P,jt,se,$t,wt,Xt,Et,Jt,Gt,pe=D-N,U=H-B,Lt=Y-D,Kt=Z-H,Tt=at-Y,Ct=st-Z;for(Nt=0;Nt<41;Nt++)$t=(jt=(Ot=N+(pt=Nt/40)*pe)+pt*((Vt=D+pt*Lt)-Ot))+pt*(Vt+pt*(Y+pt*Tt-Vt)-jt),wt=(se=(Ft=B+pt*U)+pt*((P=H+pt*Kt)-Ft))+pt*(P+pt*(Z+pt*Ct-P)-se),Nt==0?(Xt=$t,Et=wt,Jt=$t,Gt=wt):(Xt=Math.min(Xt,$t),Et=Math.min(Et,wt),Jt=Math.max(Jt,$t),Gt=Math.max(Gt,wt));return new l(Math.round(Xt),Math.round(Et),Math.round(Jt-Xt),Math.round(Gt-Et))},vt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,B,D=(N=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:B}));this.prevLineDash!==D&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=D)}}})(Ht.API),function(e){var t=function(c){var l,u,d,m,y,A,p,T,I,M;for(u=[],d=0,m=(c+=l="\0\0\0\0".slice(c.length%4||4)).length;m>d;d+=4)(y=(c.charCodeAt(d)<<24)+(c.charCodeAt(d+1)<<16)+(c.charCodeAt(d+2)<<8)+c.charCodeAt(d+3))!==0?(A=(y=((y=((y=((y=(y-(M=y%85))/85)-(I=y%85))/85)-(T=y%85))/85)-(p=y%85))/85)%85,u.push(A+33,p+33,T+33,I+33,M+33)):u.push(122);return function(k,J){for(var X=J;X>0;X--)k.pop()}(u,l.length),String.fromCharCode.apply(String,u)+"~>"},r=function(c){var l,u,d,m,y,A=String,p="length",T=255,I="charCodeAt",M="slice",k="replace";for(c[M](-2),c=c[M](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),d=[],m=0,y=(c+=l="uuuuu"[M](c[p]%5||5))[p];y>m;m+=5)u=52200625*(c[I](m)-33)+614125*(c[I](m+1)-33)+7225*(c[I](m+2)-33)+85*(c[I](m+3)-33)+(c[I](m+4)-33),d.push(T&u>>24,T&u>>16,T&u>>8,T&u);return function(J,X){for(var rt=X;rt>0;rt--)J.pop()}(d,l[p]),A.fromCharCode.apply(A,d)},n=function(c){return c.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(c){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((c=c.replace(/\s/g,"")).indexOf(">")!==-1&&(c=c.substr(0,c.indexOf(">"))),c.length%2&&(c+="0"),l.test(c)===!1)return"";for(var u="",d=0;d<c.length;d+=2)u+=String.fromCharCode("0x"+(c[d]+c[d+1]));return u},s=function(c){for(var l=new Uint8Array(c.length),u=c.length;u--;)l[u]=c.charCodeAt(u);return(l=Bo(l)).reduce(function(d,m){return d+String.fromCharCode(m)},"")};e.processDataByFilters=function(c,l){var u=0,d=c||"",m=[];for(typeof(l=l||[])=="string"&&(l=[l]),u=0;u<l.length;u+=1)switch(l[u]){case"ASCII85Decode":case"/ASCII85Decode":d=r(d),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=t(d),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=a(d),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=n(d),m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=s(d),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[u]+'" is not implemented')}return{data:d,reverseChain:m.reverse().join(" ")}}}(Ht.API),function(e){e.loadFile=function(t,r,n){return function(a,s,c){s=s!==!1,c=typeof c=="function"?c:function(){};var l=void 0;try{l=function(u,d,m){var y=new XMLHttpRequest,A=0,p=function(T){var I=T.length,M=[],k=String.fromCharCode;for(A=0;A<I;A+=1)M.push(k(255&T.charCodeAt(A)));return M.join("")};if(y.open("GET",u,!d),y.overrideMimeType("text/plain;
133 charset=x-user-defined"),d===!1&&(y.onload=function(){y.status===200?m(p(this.responseText)):m(void 0)}),y.send(null),d&&y.status===200)return p(y.responseText)}(a,s,c)}catch{}return l}(t,r,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Ht.API),function(e){function t(){return(ne.html2canvas?Promise.resolve(ne.html2canvas):fo(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function r(){return(ne.DOMPurify?Promise.resolve(ne.DOMPurify):fo(()=>import("./purify.es-Csrj9YNg.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var n=function(l){var u=Se(l);return u==="undefined"?"undefined":u==="string"||l instanceof String?"string":u==="number"||l instanceof Number?"number":u==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":u==="object"?"object":"unknown"},a=function(l,u){var d=document.createElement(l);for(var m in u.className&&(d.className=u.className),u.innerHTML&&u.dompurify&&(d.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)d.style[m]=u.style[m];return d},s=function l(u,d){for(var m=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),y=u.firstChild;y;y=y.nextSibling)d!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||m.appendChild(l(y,d));return u.nodeType===1&&(u.nodeName==="CANVAS"?(m.width=u.width,m.height=u.height,m.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(m.value=u.value),m.addEventListener("load",function(){m.scrollTop=u.scrollTop,m.scrollLeft=u.scrollLeft},!0)),m},c=function l(u){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),m=l.convert(Promise.resolve(),d);return(m=m.setProgress(1,l,1,[l])).set(u)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(l,u){return l.__proto__=u||c.prototype,l},c.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"}},c.prototype.from=function(l,u){return this.then(function(){switch(u=u||function(d){switch(n(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(l),u){case"string":return this.then(r).then(function(d){return this.set({src:a("div",{innerHTML:l,dompurify:d})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},c.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},u=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);u.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(u),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},c.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(u){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,u(this.prop.container,d)}).then(function(u){(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(u){var d=this.opt.jsPDF,m=this.opt.fontFaces,y=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,A=Object.assign({async:!0,allowTaint:!0,scale:y,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 A.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;p<m.length;++p){var T=m[p],I=T.src.find(function(M){return M.format==="truetype"});I&&d.addFont(I.url,T.ref.name,T.ref.style)}
vendor: 23,389 bytes, lines 133-139
133return A.windowHeight=A.windowHeight||0,A.windowHeight=A.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):A.windowHeight,d.context2d.save(!0),u(this.prop.container,A)}).then(function(u){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(l,u,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,u):this.outputPdf(l,u)},c.prototype.outputPdf=function(l,u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,u)})},c.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},c.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(l){if(n(l)!=="object")return this;var u=Object.keys(l||{}).map(function(d){if(d in c.template.prop)return function(){this.prop[d]=l[d]};switch(d){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[d]=l[d]}}},this);return this.then(function(){return this.thenList(u)})},c.prototype.get=function(l,u){return this.then(function(){var d=l in c.template.prop?this.prop[l]:this.opt[l];return u?u(d):d})},c.prototype.setMargin=function(l){return this.then(function(){switch(n(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},c.prototype.setPageSize=function(l){function u(d,m){return Math.floor(d*m/72*96)}return this.then(function(){(l=l||Ht.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:u(l.inner.width,l.k),height:u(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},c.prototype.setProgress=function(l,u,d,m){return l!=null&&(this.progress.val=l),u!=null&&(this.progress.state=u),d!=null&&(this.progress.n=d),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(l,u,d,m){return this.setProgress(l?this.progress.val+l:null,u||null,d?this.progress.n+d:null,m?this.progress.stack.concat(m):null)},c.prototype.then=function(l,u){var d=this;return this.thenCore(l,u,function(m,y){return d.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(A){return d.updateProgress(null,m),A}).then(m,y).then(function(A){return d.updateProgress(1),A})})},c.prototype.thenCore=function(l,u,d){d=d||Promise.prototype.then;var m=this;l&&(l=l.bind(m)),u&&(u=u.bind(m));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?m:c.convert(Object.assign({},m),Promise.prototype),A=d.call(y,l,u);return c.convert(A,m.__proto__)},c.prototype.thenExternal=function(l,u){return Promise.prototype.then.call(this,l,u)},c.prototype.thenList=function(l){var u=this;return l.forEach(function(d){u=u.thenCore(d)}),u},c.prototype.catch=function(l){l&&(l=l.bind(this));var u=Promise.prototype.catch.call(this,l);return c.convert(u,this)},c.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},c.prototype.error=function(l){return this.then(function(){throw new Error(l)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,Ht.getPageSize=function(l,u,d){if(Se(l)==="object"){var m=l;l=m.orientation,u=m.unit||u,d=m.format||d}u=u||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var y,A=(""+d).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(u){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+u}var T,I=0,M=0;if(p.hasOwnProperty(A))I=p[A][1]/y,M=p[A][0]/y;else try{I=d[1],M=d[0]}catch{throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",M>I&&(T=M,M=I,I=T);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",I>M&&(T=M,M=I,I=T)}return{width:M,height:I,unit:u,k:y,orientation:l}},e.html=function(l,u){(u=u||{}).callback=u.callback||function(){},u.html2canvas=u.html2canvas||{},u.html2canvas.canvas=u.html2canvas.canvas||this.canvas,u.jsPDF=u.jsPDF||this,u.fontFaces=u.fontFaces?u.fontFaces.map(_o):null;var d=new c(u);return u.worker?d:d.from(l).doCallback()}}(Ht.API),Ht.API.addJS=function(e){var t,r,n=function(a){for(var s="",c=0;c<a.length;c++){var l=a[c];if(l==="("||l===")"){for(var u=0,d=c-1;d>=0&&a[d]==="\\";d--)u++;s+=u%2==0?"\\"+l:l}else s+=l}return s}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&r!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=r.outline.render().split(/\r\n/),s=0;s<a.length;s++){var c=a[s],l=n.exec(c);if(l!=null){var u=l[1];r.internal.newObjectDeferredBegin(u,!1)}r.internal.write(c)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,m=[];for(s=0;s<d;s++){var y=r.internal.newObject();m.push(y);var A=r.internal.getPageInfo(s+1);r.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var p=r.internal.newObject();for(r.internal.write("<< /Names [ "),s=0;s<m.length;s++)r.internal.write("(page_"+(s+1)+")"+m[s]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+p+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,a,s){var c={title:a,options:s,children:[]};return n==null&&(n=this.root),n.children.push(c),c},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var a=0;a<n.children.length;a++)this.genIds_r(n.children[a])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<n.children.length;s++){var c=n.children[s];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(n)),s>0&&this.line("/Prev "+this.makeRef(n.children[s-1])),s<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[s+1])),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1])));var l=this.count=this.count_r({count:0},c);if(l>0&&this.line("/Count "+l),c.options&&c.options.pageNumber){var u=r.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d<n.children.length;d++)this.renderItems(n.children[d])},r.outline.line=function(n){this.ctx.val+=n+`\r 134`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r 135`+n.id+` 0 obj\r 136<<\r 137`},r.outline.objEnd=function(){this.ctx.val+=`>> \r 138endobj\r 139`},r.outline.count_r=function(n,a){for(var s=0;s<a.children.length;s++)n.count++,this.count_r(n,a.children[s]);return n.count}}])}(Ht.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,a,s,c,l){var u,d=this.decode.DCT_DECODE,m=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=c||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,u=function(y){for(var A,p=256*y.charCodeAt(4)+y.charCodeAt(5),T=y.length,I={width:0,height:0,numcomponents:1},M=4;M<T;M+=2){if(M+=p,t.indexOf(y.charCodeAt(M+1))!==-1){A=256*y.charCodeAt(M+5)+y.charCodeAt(M+6),I={width:256*y.charCodeAt(M+7)+y.charCodeAt(M+8),height:A,numcomponents:y.charCodeAt(M+9)};break}p=256*y.charCodeAt(M+2)+y.charCodeAt(M+3)}return I}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),u.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}m={data:r,width:u.width,height:u.height,colorSpace:l,bitsPerComponent:8,filter:d,index:n,alias:a}}return m}}(Ht.API),Ht.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var a,s=Rc(e,{checkCrc:!0}),c=s.width,l=s.height,u=s.channels,d=s.palette,m=s.depth;a=d&&u===1?function(nt){for(var W=nt.width,gt=nt.height,L=nt.data,O=nt.palette,z=nt.depth,q=!1,it=[],ot=[],lt=void 0,tt=!1,ct=0,St=0;St<O.length;St++){var vt=Bl(O[St],4),N=vt[0],B=vt[1],D=vt[2],H=vt[3];it.push(N,B,D),H!=null&&(H===0?(ct++,ot.length<1&&ot.push(St)):H<255&&(tt=!0))}if(tt||ct>1){q=!0,ot=void 0;var Y=W*gt;lt=new Uint8Array(Y);for(var Z=new DataView(L.buffer),at=0;at<Y;at++){var st=So(Z,at,z),pt=Bl(O[st],4)[3];lt[at]=pt}}else ct===0&&(ot=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:L,alphaBytes:lt,needSMask:q,palette:it,mask:ot}}(s):u===2||u===4?function(nt){for(var W=nt.data,gt=nt.width,L=nt.height,O=nt.channels,z=nt.depth,q=O===2?"DeviceGray":"DeviceRGB",it=O-1,ot=gt*L,lt=it,tt=ot*lt,ct=1*ot,St=Math.ceil(tt*z/8),vt=Math.ceil(ct*z/8),N=new Uint8Array(St),B=new Uint8Array(vt),D=new DataView(W.buffer),H=new DataView(N.buffer),Y=new DataView(B.buffer),Z=!1,at=0;at<ot;at++){for(var st=at*O,pt=0;pt<lt;pt++)ou(H,So(D,st+pt,z),at*lt+pt,z);var Nt=So(D,st+lt,z);Nt<(1<<z)-1&&(Z=!0),ou(Y,Nt,1*at,z)}return{colorSpace:q,colorsPerPixel:it,sMaskBitsPerComponent:Z?z:void 0,colorBytes:N,alphaBytes:B,needSMask:Z}}(s):function(nt){var W=nt.data,gt=nt.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:gt,colorsPerPixel:gt==="DeviceGray"?1:3,colorBytes:W instanceof Uint16Array?function(L){for(var O=L.length,z=new Uint8Array(2*O),q=new DataView(z.buffer,z.byteOffset,z.byteLength),it=0;it<O;it++)q.setUint16(2*it,L[it],!1);return z}(W):W,needSMask:!1}}(s);var y,A,p,T=a,I=T.colorSpace,M=T.colorsPerPixel,k=T.sMaskBitsPerComponent,J=T.colorBytes,X=T.alphaBytes,rt=T.needSMask,mt=T.palette,At=T.mask,It=null;return n!==Ht.API.image_compression.NONE&&typeof Bo=="function"?(It=function(nt){var W;switch(nt){case Ht.API.image_compression.FAST:W=11;break;case Ht.API.image_compression.MEDIUM:W=13;break;case Ht.API.image_compression.SLOW:W=14;break;default:W=12}return W}(n),y=this.decode.FLATE_DECODE,A="/Predictor ".concat(It," /Colors ").concat(M," /BitsPerComponent ").concat(m," /Columns ").concat(c),e=ru(J,Math.ceil(c*M*m/8),M,m,n),rt&&(p=ru(X,Math.ceil(c*k/8),1,k,n))):(y=void 0,A=void 0,e=J,rt&&(p=X)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:r,data:e,index:t,filter:y,decodeParameters:A,transparency:At,palette:mt,sMask:p,predictor:It,width:c,height:l,bitsPerComponent:m,sMaskBitsPerComponent:k,colorSpace:I}}},function(e){e.processGIF89A=function(t,r,n,a){var s=new of(t),c=s.width,l=s.height,u=[];s.decodeAndBlitFrameRGBA(0,u);var d={data:u,width:c,height:l},m=new Lo(100).encode(d,100);return e.processJPEG.call(this,m,r,n,a)},e.processGIF87A=e.processGIF89A}(Ht.API),Qr.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 e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:n,blue:r,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Qr.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(r){je.log("bit decode error:"+r)}},Qr.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var s=this.datav.getUint8(this.pos++,!0),c=n*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var u=this.palette[s>>7-l&1];this.data[c+4*l]=u.blue,this.data[c+4*l+1]=u.green,this.data[c+4*l+2]=u.red,this.data[c+4*l+3]=255}r!==0&&(this.pos+=4-r)}},Qr.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<e;a++){var s=this.datav.getUint8(this.pos++,!0),c=n*this.width*4+2*a*4,l=s>>4,u=15&s,d=this.palette[l];if(this.data[c]=d.blue,this.data[c+1]=d.green,this.data[c+2]=d.red,this.data[c+3]=255,2*a+1>=this.width)break;d=this.palette[u],this.data[c+4]=d.blue,this.data[c+4+1]=d.green,this.data[c+4+2]=d.red,this.data[c+4+3]=255}t!==0&&(this.pos+=4-t)}},Qr.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+4*n;if(a<this.palette.length){var c=this.palette[a];this.data[s]=c.red,this.data[s+1]=c.green,this.data[s+2]=c.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}e!==0&&(this.pos+=4-e)}},Qr.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(s&t)/t*255|0,l=(s>>5&t)/t*255|0,u=(s>>10&t)/t*255|0,d=s>>15?255:0,m=n*this.width*4+4*a;this.data[m]=u,this.data[m+1]=l,this.data[m+2]=c,this.data[m+3]=d}this.pos+=e}},Qr.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(c&t)/t*255|0,u=(c>>5&r)/r*255|0,d=(c>>11)/t*255|0,m=a*this.width*4+4*s;this.data[m]=d,this.data[m+1]=u,this.data[m+2]=l,this.data[m+3]=255}this.pos+=e}},Qr.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),c=t*this.width*4+4*r;this.data[c]=s,this.data[c+1]=a,this.data[c+2]=n,this.data[c+3]=255}this.pos+=this.width%4}},Qr.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*r;this.data[l]=s,this.data[l+1]=a,this.data[l+2]=n,this.data[l+3]=c}},Qr.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,a){var s=new Qr(t,!1),c=s.width,l=s.height,u={data:s.getData(),width:c,height:l},d=new Lo(100).encode(u,100);return e.processJPEG.call(this,d,r,n,a)}}(Ht.API),uu.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,a){var s=new uu(t),c=s.width,l=s.height,u={data:s.getData(),width:c,height:l},d=new Lo(100).encode(u,100);return e.processJPEG.call(this,d,r,n,a)}}(Ht.API),Ht.API.processRGBA=function(e,t,r){for(var n=e.data,a=n.length,s=new Uint8Array(a/4*3),c=new Uint8Array(a/4),l=0,u=0,d=0;d<a;d+=4){var m=n[d],y=n[d+1],A=n[d+2],p=n[d+3];s[l++]=m,s[l++]=y,s[l++]=A,c[u++]=p}var T=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:T,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ht.API.setLanguage=function(e){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 (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Sp
139ain)","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"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,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},Ki=Ht.API,gs=Ki.getCharWidthsArray=function(e,t){var r,n,a=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),c=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,d=t.kerning?t.kerning:a.metadata.Unicode.kerning,m=d.fof?d.fof:1,y=t.doKerning!==!1,A=0,p=e.length,T=0,I=l[0]||u,M=[];for(r=0;r<p;r++)n=e.charCodeAt(r),typeof a.metadata.widthOfString=="function"?M.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(n))+c*(1e3/s)||0)/1e3):(A=y&&Se(d[n])==="object"&&!isNaN(parseInt(d[n][T],10))?d[n][T]/m:0,M.push((l[n]||I)/u+A)),T=n;return M},Ql=Ki.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return Ki.processArabic&&(e=Ki.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,a)/r:gs.apply(this,arguments).reduce(function(s,c){return s+c},0)},tu=function(e,t,r,n){for(var a=[],s=0,c=e.length,l=0;s!==c&&l+t[s]<r;)l+=t[s],s++;a.push(e.slice(0,s));var u=s;for(l=0;s!==c;)l+t[s]>n&&(a.push(e.slice(u,s)),l=0,u=s),l+=t[s],s++;return u!==s&&a.push(e.slice(u,s)),a},eu=function(e,t,r){r||(r={});var n,a,s,c,l,u,d,m=[],y=[m],A=r.textIndent||0,p=0,T=0,I=e.split(" "),M=gs.apply(this,[" ",r])[0];if(u=r.lineIndent===-1?I[0].length+2:r.lineIndent||0){var k=Array(u).join(" "),J=[];I.map(function(rt){(rt=rt.split(/\s*\n/)).length>1?J=J.concat(rt.map(function(mt,At){return(At&&mt.length?` 140`:"")+mt})):J.push(rt[0])}),I=J,u=Ql.apply(this,[k,r])}for(s=0,c=I.length;s<c;s++){var X=0;if(n=I[s],u&&n[0]==` 141`&&(n=n.substr(1),X=1),A+p+(T=(a=gs.apply(this,[n,r])).reduce(function(rt,mt){return rt+mt},0))>t||X){if(T>t){for(l=tu.apply(this,[n,a,t-(A+p),t]),m.push(l.shift()),m=[l.pop()];l.length;)y.push([l.shift()]);T=a.slice(n.length-(m[0]?m[0].length:0)).reduce(function(rt,mt){return rt+mt},0)}else m=[n];y.push(m),A=T+u,p=M}else m.push(n),A+=p+T,p=M}return d=u?function(rt,mt){return(mt?k:"")+rt.join(" ")}:function(rt){return rt.join(" ")},y.map(d)},Ki.splitTextToSize=function(e,t,r){var n,a=(r=r||{}).fontSize||this.internal.getFontSize(),s=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var y=this.internal.getFont(m.fontName,m.fontStyle),A="Unicode";return y.metadata[A]?{widths:y.metadata[A].widths||{0:1},kerning:y.metadata[A].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);
vendor: 1,880 bytes, line 141
141n=Array.isArray(e)?e:String(e).split(/\r?\n/);var c=1*this.internal.scaleFactor*t/a;s.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/a:0,s.lineIndent=r.lineIndent;var l,u,d=[];for(l=0,u=n.length;l<u;l++)d=d.concat(eu.apply(this,[n[l],c,s]));return d},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",n={},a={},s=0;s<16;s++)n[r[s]]=t[s],a[t[s]]=r[s];var c=function(A){return"0x"+parseInt(A,10).toString(16)},l=e.__fontmetrics__.compress=function(A){var p,T,I,M,k=["{"];for(var J in A){if(p=A[J],isNaN(parseInt(J,10))?T="'"+J+"'":(J=parseInt(J,10),T=(T=c(J).slice(2)).slice(0,-1)+a[T.slice(-1)]),typeof p=="number")p<0?(I=c(p).slice(3),M="-"):(I=c(p).slice(2),M=""),I=M+I.slice(0,-1)+a[I.slice(-1)];else{if(Se(p)!=="object")throw new Error("Don't know what to do with value type "+Se(p)+".");I=l(p)}k.push(T+I)}return k.push("}"),k.join("")},u=e.__fontmetrics__.uncompress=function(A){if(typeof A!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,T,I,M,k={},J=1,X=k,rt=[],mt="",At="",It=A.length-1,nt=1;nt<It;nt+=1)(M=A[nt])=="'"?p?(I=p.join(""),p=void 0):p=[]:p?p.push(M):M=="{"?(rt.push([X,I]),X={},I=void 0):M=="}"?((T=rt.pop())[0][T[1]]=X,I=void 0,X=T[0]):M=="-"?J=-1:I===void 0?n.hasOwnProperty(M)?(mt+=n[M],I=parseInt(mt,16)*J,J=1,mt=""):mt+=M:n.hasOwnProperty(M)?(At+=n[M],X[I]=parseInt(At,16)*J,J=1,I=void 0,At=""):At+=M;return k},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},y
vendor: 14,727 bytes, line 141
141={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'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:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'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":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 8,457 bytes, lines 141-169
141A){var p=A.font,T=y.Unicode[p.postScriptName];T&&(p.metadata.Unicode={},p.metadata.Unicode.widths=T.widths,p.metadata.Unicode.kerning=T.kerning);var I=m.Unicode[p.postScriptName];I&&(p.metadata.Unicode.encoding=I,p.encoding=I.codePages[0])}])}(Ht.API),function(e){var t=function(r){for(var n=r.length,a=new Uint8Array(n),s=0;s<n;s++)a[s]=r.charCodeAt(s);return a};e.API.events.push(["addFont",function(r){var n=void 0,a=r.font,s=r.instance;if(!a.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(n=s.existsFileInVFS(a.postScriptName)===!1?s.loadFile(a.postScriptName):s.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(c,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(ys(l)),c.metadata=e.API.TTFFont.open(l),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(a,n)}}])}(Ht),Ht.API.addSvgAsImage=function(e,t,r,n,a,s,c,l){if(isNaN(t)||isNaN(r))throw je.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(a))throw je.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=n,u.height=a;var d=u.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,u.width,u.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return(ne.canvg?Promise.resolve(ne.canvg):fo(()=>import("./index.es-abK4qA5j.js"),__vite__mapDeps([0,1,2,3,4,5,6]))).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A}).then(function(A){return A.fromString(d,e,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(A){return A.render(m)}).then(function(){y.addImage(u.toDataURL("image/jpeg",1),t,r,n,a,c,l)})},Ht.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var a=0;a<this.internal.pages[n].length;a++)this.internal.pages[n][a]=this.internal.pages[n][a].replace(t,r);return this},Ht.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,a,s,c={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}},l=Object.keys(c),u=[],d=0,m=0,y=0;function A(T,I){var M,k=!1;for(M=0;M<T.length;M+=1)T[M]===I&&(k=!0);return k}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var p=l.length;for(y=0;y<p;y+=1)r[l[y]].value=r[l[y]].defaultValue,r[l[y]].explicitSet=!1}if(Se(e)==="object"){for(a in e)if(s=e[a],A(l,a)&&s!==void 0){if(r[a].type==="boolean"&&typeof s=="boolean")r[a].value=s;else if(r[a].type==="name"&&A(r[a].valueSet,s))r[a].value=s;else if(r[a].type==="integer"&&Number.isInteger(s))r[a].value=s;else if(r[a].type==="array"){for(d=0;d<s.length;d+=1)if(n=!0,s[d].length===1&&typeof s[d][0]=="number")u.push(String(s[d]-1));else if(s[d].length>1){for(m=0;m<s[d].length;m+=1)typeof s[d][m]!="number"&&(n=!1);n===!0&&u.push([s[d][0]-1,s[d][1]-1].join(" "))}r[a].value="["+u.join(" ")+"]"}else r[a].value=r[a].defaultValue;r[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var T,I=[];for(T in r)r[T].explicitSet===!0&&(r[T].type==="name"?I.push("/"+T+" /"+r[T].value):I.push("/"+T+" "+r[T].value));I.length!==0&&this.internal.write(`/ViewerPreferences 142<< 143`+I.join(` 144`)+` 145>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},Ht.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",uf),this.internal.events.subscribe("postPutResources",lf)),this},function(e){var t=e.API,r=t.pdfEscape16=function(s,c){for(var l,u=c.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],y=0,A=s.length;y<A;++y){if(l=c.metadata.characterToGlyph(s.charCodeAt(y)),c.metadata.glyIdsUsed.push(l),c.metadata.toUnicode[l]=s.charCodeAt(y),u.indexOf(l)==-1&&(u.push(l),u.push([parseInt(c.metadata.widthOfGlyph(l),10)])),l=="0")return m.join("");l=l.toString(16),m.push(d[4-l.length],l)}return m.join("")},n=function(s){var c,l,u,d,m,y,A;for(m=`/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`,u=[],y=0,A=(l=Object.keys(s).sort(function(p,T){return p-T})).length;y<A;y++)c=l[y],u.length>=100&&(m+=` 158`+u.length+` beginbfchar 159`+u.join(` 160`)+` 161endbfchar`,u=[]),s[c]!==void 0&&s[c]!==null&&typeof s[c].toString=="function"&&(d=("0000"+s[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),u.push("<"+c+"><"+d+">"));return u.length&&(m+=` 162`+u.length+` beginbfchar 163`+u.join(` 164`)+` 165endbfchar 166`),m+`endcmap 167CMapName currentdict /CMap defineresource pop 168end 169end`};t.events.push(["putFont",function(s){(function(c){var l=c.font,u=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="Identity-H"){for(var y=l.metadata.Unicode.widths,A=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",T=0;T<A.length;T++)p+=String.fromCharCode(A[T]);var I=d();m({data:p,addLength1:!0,objectId:I}),u("endobj");var M=d();m({data:n(l.metadata.toUnicode),addLength1:!0,objectId:M}),u("endobj");var k=d();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Zi(l.fontName)),u("/FontFile2 "+I+" 0 R"),u("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),u("/Flags "+l.metadata.flags),u("/StemV "+l.metadata.stemV),u("/ItalicAngle "+l.metadata.italicAngle),u("/Asce
169nt "+l.metadata.ascender),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u(">>"),u("endobj");var J=d();u("<<"),u("/Type /Font"),u("/BaseFont /"+Zi(l.fontName)),u("/FontDescriptor "+k+" 0 R"),u("/W "+e.API.PDFObject.convert(y)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+l.encoding+")"),u(">>"),u(">>"),u("endobj"),l.objectNumber=d(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+M+" 0 R"),u("/BaseFont /"+Zi(l.fontName)),u("/Encoding /"+l.encoding),u("/DescendantFonts ["+J+" 0 R]"),u(">>"),u("endobj"),l.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(c){var l=c.font,u=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var y=l.metadata.rawData,A="",p=0;p<y.length;p++)A+=String.fromCharCode(y[p]);var T=d();m({data:A,addLength1:!0,objectId:T}),u("endobj");var I=d();m({data:n(l.metadata.toUnicode),addLength1:!0,objectId:I}),u("endobj");var M=d();u("<<"),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u("/StemV "+l.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+T+" 0 R"),u("/Flags 96"),u("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),u("/FontName /"+Zi(l.fontName)),u("/ItalicAngle "+l.metadata.italicAngle),u("/Asce
169nt "+l.metadata.ascender),u(">>"),u("endobj"),l.objectNumber=d();for(var k=0;k<l.metadata.hmtx.widths.length;k++)l.metadata.hmtx.widths[k]=parseInt(l.metadata.hmtx.widths[k]*(1e3/l.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+I+" 0 R/BaseFont/"+Zi(l.fontName)+"/FontDescriptor "+M+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),u("endobj"),l.isAlreadyPutted=!0}})(s)}]);var a=function(s){var c,l=s.text||"",u=s.x,d=s.y,m=s.options||{},y=s.mutex||{},A=y.pdfEscape,p=y.activeFontKey,T=y.fonts,I=p,M="",k=0,J="",X=T[I].encoding;if(T[I].encoding!=="Identity-H")return{text:l,x:u,y:d,options:m,mutex:y};for(J=l,I=p,Array.isArray(l)&&(J=l[0]),k=0;k<J.length;k+=1)T[I].metadata.hasOwnProperty("cmap")&&(c=T[I].metadata.cmap.unicode.codeMap[J[k].charCodeAt(0)]),c||J[k].charCodeAt(0)<256&&T[I].metadata.hasOwnProperty("Unicode")?M+=J[k]:M+="";var rt="";return parseInt(I.slice(1))<14||X==="WinAnsiEncoding"?rt=A(M,I).split("").map(function(mt){return mt.charCodeAt(0).toString(16)}).join(""):X==="Identity-H"&&(rt=r(M,T[I])),y.isHex=!0,{text:rt,x:u,y:d,options:m,mutex:y}};t.events.push(["postProcessText",function(s){var c=s.text||"",l=[],u={text:c,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(c)){var d=0;for(d=0;d<c.length;d+=1)Array.isArray(c[d])&&c[d].length===3?l.push([a(Object.assign({},u,{text:c[d][0]})).text,c[d][1],c[d][2]]):l.push(a(Object.assign({},u,{text:c[d]})).text);s.text=l}else s.text=a(Object.assign({},u,{text:c})).text}])}(Ht),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(Ht.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var a,s,c,l,u,d,m,y=t,A=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],T={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},I={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},M=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â
","â","â
","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],k=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),J=!1,X=0;this.__bidiEngine__={};var rt=function(L){var O=L.charCodeAt(),z=O>>8,q=I[z];return q!==void 0?y[256*q+(255&O)]:z===252||z===253?"AL":k.test(z)?"L":z===8?"R":"N"},mt=function(L){for(var O,z=0;z<L.length;z++){if((O=rt(L.charAt(z)))==="L")return!1;if(O==="R")return!0}return!1},At=function(L,O,z,q){var it,ot,lt,tt,ct=O[q];switch(ct){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":J=!1;break;case"N":case"AN":break;case"EN":J&&(ct="AN");break;case"AL":J=!0,ct="R";break;case"WS":case"BN":ct="N";break;case"CS":q<1||q+1>=O.length||(it=z[q-1])!=="EN"&&it!=="AN"||(ot=O[q+1])!=="EN"&&ot!=="AN"?ct="N":J&&(ot="AN"),ct=ot===it?ot:"N";break;case"ES":ct=(it=q>0?z[q-1]:"B")==="EN"&&q+1<O.length&&O[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&z[q-1]==="EN"){ct="EN";break}if(J){ct="N";break}for(lt=q+1,tt=O.length;lt<tt&&O[lt]==="ET";)lt++;ct=lt<tt&&O[lt]==="EN"?"EN":"N";break;case"NSM":if(c&&!l){for(tt=O.length,lt=q+1;lt<tt&&O[lt]==="NSM";)lt++;if(lt<tt){var St=L[q],vt=St>=1425&&St<=2303||St===64286;if(it=O[lt],vt&&(it==="R"||it==="AL")){ct="R";break}}}ct=q<1||(it=O[q-1])==="B"?"N":z[q-1];break;case"B":J=!1,a=!0,ct=X;break;case"S":s=!0,ct="N"}return ct},It=function(L,O,z){var q=L.split("");return z&&nt(q,z,{hiLevel:X}),q.reverse(),O&&O.reverse(),q.join("")},nt=function(L,O,z){var q,it,ot,lt,tt,ct=-1,St=L.length,vt=0,N=[],B=X?p:A,D=[];for(J=!1,a=!1,s=!1,it=0;it<St;it++)D[it]=rt(L[it]);for(ot=0;ot<St;ot++){if(tt=vt,N[ot]=At(L,D,N,ot),q=240&(vt=B[tt][T[N[ot]]]),vt&=15,O[ot]=lt=B[vt][5],q>0)if(q===16){for(it=ct;it<ot;it++)O[it]=1;ct=-1}else ct=-1;if(B[vt][6])ct===-1&&(ct=ot);else if(ct>-1){for(it=ct;it<ot;it++)O[it]=lt;ct=-1}D[ot]==="B"&&(O[ot]=0),z.hiLevel|=lt}s&&function(H,Y,Z){for(var at=0;at<Z;at++)if(H[at]==="S"){Y[at]=X;for(var st=at-1;st>=0&&H[st]==="WS";st--)Y[st]=X}}(D,O,St)}
vendor: 1,164 bytes, line 169
169,W=function(L,O,z,q,it){if(!(it.hiLevel<L)){if(L===1&&X===1&&!a)return O.reverse(),void(z&&z.reverse());for(var ot,lt,tt,ct,St=O.length,vt=0;vt<St;){if(q[vt]>=L){for(tt=vt+1;tt<St&&q[tt]>=L;)tt++;for(ct=vt,lt=tt-1;ct<lt;ct++,lt--)ot=O[ct],O[ct]=O[lt],O[lt]=ot,z&&(ot=z[ct],z[ct]=z[lt],z[lt]=ot);vt=tt}vt++}}},gt=function(L,O,z){var q=L.split(""),it={hiLevel:X};return z||(z=[]),nt(q,z,it),function(ot,lt,tt){if(tt.hiLevel!==0&&m)for(var ct,St=0;St<ot.length;St++)lt[St]===1&&(ct=M.indexOf(ot[St]))>=0&&(ot[St]=M[ct+1])}(q,z,it),W(2,q,O,z,it),W(1,q,O,z,it),q.join("")};return this.__bidiEngine__.doBidiReorder=function(L,O,z){if(function(it,ot){if(ot)for(var lt=0;lt<it.length;lt++)ot[lt]=lt;l===void 0&&(l=mt(it)),d===void 0&&(d=mt(it))}(L,O),c||!u||d)if(c&&u&&l^d)X=l?1:0,L=It(L,O,z);else if(!c&&u&&d)X=l?1:0,L=gt(L,O,z),L=It(L,O);else if(!c||l||u||d){if(c&&!u&&l^d)L=It(L,O),l?(X=0,L=gt(L,O,z)):(X=1,L=gt(L,O,z),L=It(L,O));else if(c&&l&&!u&&d)X=1,L=gt(L,O,z),L=It(L,O);else if(!c&&!u&&l^d){var q=m;l?(X=1,L=gt(L,O,z),X=0,m=!1,L=gt(L,O,z),m=q):(X=0,L=gt(L,O,z),L=It(L,O),X=1,m=!1,L=gt(L,O,z),m=q,L=It(L,O))}}else X=0,L=gt(L,O,z);else X=l?1:0,L=gt(L,O,z);return L}
169,this.__bidiEngine__.setOptions=function(L){L&&(c=L.isInputVisual,u=L.isOutputVisual,l=L.isInputRtl,d=L.isOutputRtl,m=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["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"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var a=n.text;n.x,n.y;var s=n.options||{};
vendor: 18,832 bytes, line 169
169n.mutex,s.lang;var c=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,r.setOptions(s),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(c=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?c.push([r.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):c.push([r.doBidiReorder(a[l])]);n.text=c}else n.text=r.doBidiReorder(a);r.setOptions({isInputVisual:!0})}])}(Ht),Ht.API.TTFFont=function(){function e(t){var r;if(this.rawData=t,r=this.contents=new ti(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new Af(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new hf(this.contents),this.head=new ff(this),this.name=new vf(this),this.cmap=new Hu(this),this.toUnicode={},this.hhea=new df(this),this.maxp=new bf(this),this.hmtx=new yf(this),this.post=new gf(this),this.os2=new pf(this),this.loca=new _f(this),this.glyf=new wf(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]},e.prototype.registerTTF=function(){var t,r,n,a,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var c,l,u,d;for(d=[],c=0,l=(u=this.bbox).length;c<l;c++)t=u[c],d.push(Math.round(t*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),32768&(r=a>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):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=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===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")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var a,s,c,l;for(c=0,s=0,l=(t=""+t).length;0<=l?s<l:s>l;s=0<=l?++s:--s)a=t.charCodeAt(s),c+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/r)||0;return c*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var rn,ti=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,a;for(a=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)a.push(this.writeByte(t.charCodeAt(r)));return a},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,a,s,c,l,u;return t=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),s=this.readByte(),c=this.readByte(),l=this.readByte(),u=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^s)+65536*(255^c)+256*(255^l)+(255^u)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*a+16777216*s+65536*c+256*l+u},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,a,s;for(s=[],n=0,a=t.length;n<a;n++)r=t[n],s.push(this.writeByte(r));return s},e}(),hf=function(){var e;function t(r){var n,a,s;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},a=0,s=this.tableCount;0<=s?a<s:a>s;a=0<=s?++a:--a)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,a,s,c,l,u,d,m,y,A,p,T,I;for(I in p=Object.keys(r).length,u=Math.log(2),y=16*Math.floor(Math.log(p)/u),c=Math.floor(y/u),m=16*p-y,(a=new ti).writeInt(this.scalarType),a.writeShort(p),a.writeShort(y),a.writeShort(c),a.writeShort(m),s=16*p,d=a.pos+s,l=null,T=[],r)for(A=r[I],a.writeString(I),a.writeInt(e(A)),a.writeInt(d),a.writeInt(A.length),T=T.concat(A),I==="head"&&(l=d),d+=A.length;d%4;)T.push(0),d++;return a.write(T),n=2981146554-e(a.data),a.pos=l+8,a.writeUInt32(n),a.data},e=function(r){var n,a,s,c;for(r=Vu.call(r);r.length%4;)r.push(0);for(s=new ti(r),a=0,n=0,c=r.length;n<c;n=n+=4)a+=s.readUInt32();return 4294967295&a},t}(),cf={}.hasOwnProperty,mn=function(e,t){for(var r in t)cf.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};rn=function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var ff=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var r;return(r=new ti).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},e}(),hu=function(){function e(t,r){var n,a,s,c,l,u,d,m,y,A,p,T,I,M,k,J,X;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),y=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.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(u=0;u<256;++u)this.codeMap[u]=t.readByte();break;case 4:for(p=t.readUInt16(),A=p/2,t.pos+=6,s=function(){var rt,mt;for(mt=[],u=rt=0;0<=A?rt<A:rt>A;u=0<=A?++rt:--rt)mt.push(t.readUInt16());return mt}(),t.pos+=2,I=function(){var rt,mt;for(mt=[],u=rt=0;0<=A?rt<A:rt>A;u=0<=A?++rt:--rt)mt.push(t.readUInt16());return mt}(),d=function(){var rt,mt;for(mt=[],u=rt=0;0<=A?rt<A:rt>A;u=0<=A?++rt:--rt)mt.push(t.readUInt16());return mt}(),m=function(){var rt,mt;for(mt=[],u=rt=0;0<=A?rt<A:rt>A;u=0<=A?++rt:--rt)mt.push(t.readUInt16());return mt}(),a=(this.length-t.pos+this.offset)/2,l=function(){var rt,mt;for(mt=[],u=rt=0;0<=a?rt<a:rt>a;u=0<=a?++rt:--rt)mt.push(t.readUInt16());return mt}(),u=k=0,X=s.length;k<X;u=++k)for(M=s[u],n=J=T=I[u];T<=M?J<=M:J>=M;n=T<=M?++J:--J)m[u]===0?c=n+d[u]:(c=l[m[u]/2+(n-T)-(A-u)]||0)!==0&&(c+=d[u]),this.codeMap[n]=65535&c}t.pos=y}return e.encode=function(t,r){var n,a,s,c,l,u,d,m,y,A,p,T,I,M,k,J,X,rt,mt,At,It,nt,W,gt,L,O,z,q,it,ot,lt,tt,ct,St,vt,N,B,D,H,Y,Z,at,st,pt,Nt,Ot;switch(q=new ti,c=Object.keys(t).sort(function(Ft,Vt){return Ft-Vt}),r){case"macroman":for(I=0,M=function(){var Ft=[];for(T=0;T<256;++T)Ft.push(0);return Ft}(),J={0:0},s={},it=0,ct=c.length;it<ct;it++)J[st=t[a=c[it]]]==null&&(J[st]=++I),s[a]={old:t[a],new:J[t[a]]},M[a]=J[t[a]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(M),{charMap:s,subtable:q.data,maxGlyphID:I+1};case"unicode":for(O=[],y=[],X=0,J={},n={},k=d=null,ot=0,St=c.length;ot<St;ot++)J[mt=t[a=c[ot]]]==null&&(J[mt]=++X),n[a]={old:mt,new:J[mt]},l=J[mt]-a,k!=null&&l===d||(k&&y.push(k),O.push(a),d=l),k=a;for(k&&y.push(k),y.push(65535),O.push(65535),gt=2*(W=O.length),nt=2*Math.pow(Math.log(W)/Math.LN2,2),A=Math.log(nt/2)/Math.LN2,It=2*W-nt,u=[],At=[],p=[],T=lt=0,vt=O.length;lt<vt;T=++lt){if(L=O[T],m=y[T],L===65535){u.push(0),At.push(0);break}if(L-(z=n[L].new)>=32768)for(u.push(0),At.push(2*(p.length+W-T)),a=tt=L;L<=m?tt<=m:tt>=m;a=L<=m?++tt:--tt)p.push(n[a].new);else u.push(z-L),At.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*W+2*p.length),q.writeUInt16(0),q.writeUInt16(gt),q.writeUInt16(nt),q.writeUInt16(A),q.writeUInt16(It),Z=0,N=y.length;Z<N;Z++)a=y[Z],q.writeUInt16(a);for(q.writeUInt16(0),at=0,B=O.length;at<B;at++)a=O[at],q.writeUInt16(a);for(pt=0,D=u.length;pt<D;pt++)l=u[pt],q.writeUInt16(l);for(Nt=0,H=At.length;Nt<H;Nt++)rt=At[Nt],q.writeUInt16(rt);for(Ot=0,Y=p.length;Ot<Y;Ot++)I=p[Ot],q.writeUInt16(I);return{charMap:n,subtable:q.data,maxGlyphID:X+1}}},e}(),Hu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="cmap",e.prototype.parse=function(t){var r,n,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)r=new hu(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(t,r){var n,a;return r==null&&(r="macroman"),n=hu.encode(t,r),(a=new ti).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},e}(),df=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),pf=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),gf=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="post",e.prototype.parse=function(t){var r,n,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(n=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)r=t.readByte(),a.push(this.names.push(t.readString(r)));return a;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=(function(){var c,l,u;for(u=[],s=c=0,l=this.file.maxp.numGlyphs;0<=l?c<l:c>l;s=0<=l?++c:--c)u.push(t.readUInt32());return u}).call(this)}},e}(),mf=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},vf=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="name",e.prototype.parse=function(t){var r,n,a,s,c,l,u,d,m,y,A;for(t.pos=this.offset,t.readShort(),r=t.readShort(),l=t.readShort(),n=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(u={},s=m=0,y=n.length;m<y;s=++m)a=n[s],t.pos=a.offset,d=t.readString(a.length),c=new mf(d,a),u[A=a.nameID]==null&&(u[A]=[]),u[a.nameID].push(c);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},e}(),bf=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),yf=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="hmtx",e.prototype.parse=function(t){var r,n,a,s,c,l,u;for(t.pos=this.offset,this.metrics=[],r=0,l=this.file.hhea.numberOfMetrics;0<=l?r<l:r>l;r=0<=l?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var d,m;for(m=[],r=d=0;0<=a?d<a:d>a;r=0<=a?++d:--d)m.push(t.readInt16());return m}(),this.widths=(function(){var d,m,y,A;for(A=[],d=0,m=(y=this.metrics).length;d<m;d++)s=y[d],A.push(s.advance);return A}).call(this),n=this.widths[this.widths.length-1],u=[],r=c=0;0<=a?c<a:c>a;r=0<=a?++c:--c)u.push(this.widths.push(n));return u},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),Vu=[].slice,wf=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var r,n,a,s,c,l,u,d,m,y;return t in this.cache?this.cache[t]:(s=this.file.loca,r=this.file.contents,n=s.indexOf(t),(a=s.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,c=(l=new ti(r.read(a))).readShort(),d=l.readShort(),y=l.readShort(),u=l.readShort(),m=l.readShort(),this.cache[t]=c===-1?new Nf(l,d,y,u,m):new xf(l,c,d,y,u,m),this.cache[t]))},e.prototype.encode=function(t,r,n){var a,s,c,l,u;for(c=[],s=[],l=0,u=r.length;l<u;l++)a=t[r[l]],s.push(c.length),a&&(c=c.concat(a.encode(n)));return s.push(c.length),{table:c,offsets:s}},e}(),xf=function(){function e(t,r,n,a,s,c){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=a,this.xMax=s,this.yMax=c,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Nf=function(){function e(t,r,n,a,s){var c,l;
169for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;l=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&l;)c.pos+=1&l?4:2,128&l?c.pos+=8:64&l?c.pos+=4:8&l&&(c.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new ti(Vu.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e}(),_f=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return mn(e,rn),e.prototype.tag="loca",e.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var a,s;for(s=[],n=0,a=this.length;n<a;n+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var a,s;for(s=[],n=0,a=this.length;n<a;n+=4)s.push(t.readUInt32());return s}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),a=0,s=0,c=0;c<n.length;++c)if(n[c]=a,s<r.length&&r[s]==c){++s,n[c]=a;var l=this.offsets[c],u=this.offsets[c+1]-l;u>0&&(a+=u)}for(var d=new Array(4*n.length),m=0;m<n.length;++m)d[4*m+3]=255&n[m],d[4*m+2]=(65280&n[m])>>8,d[4*m+1]=(16711680&n[m])>>16,d[4*m]=(4278190080&n[m])>>24;return d},e}(),Af=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,a,s;for(r in a=this.font.cmap.tables[0].codeMap,t={},s=this.subset)n=s[r],t[r]=a[n];return t},e.prototype.glyphsFor=function(t){var r,n,a,s,c,l,u;for(a={},c=0,l=t.length;c<l;c++)a[s=t[c]]=this.font.glyf.glyphFor(s);for(s in r=[],a)(n=a[s])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(s in u=this.glyphsFor(r))n=u[s],a[s]=n;return a},e.prototype.encode=function(t,r){var n,a,s,c,l,u,d,m,y,A,p,T,I,M,k;for(a in n=Hu.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(t),p={0:0},k=n.charMap)p[(u=k[a]).old]=u.new;for(T in A=n.maxGlyphID,c)T in p||(p[T]=A++);return m=function(J){var X,rt;for(X in rt={},J)rt[J[X]]=X;return rt}(p),y=Object.keys(m).sort(function(J,X){return J-X}),I=function(){var J,X,rt;for(rt=[],J=0,X=y.length;J<X;J++)l=y[J],rt.push(m[l]);return rt}(),s=this.font.glyf.encode(c,I,p),d=this.font.loca.encode(s.offsets,I),M={cmap:this.font.cmap.raw(),glyf:s.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(M["OS/2"]=this.font.os2.raw()),this.font.directory.encode(M)},e}();Ht.API.PDFObject=function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,a,s,c;if(Array.isArray(r))return"["+function(){var l,u,d;for(d=[],l=0,u=r.length;l<u;l++)n=r[l],d.push(t.convert(n));return d}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(a in s=["<<"],r)c=r[a],s.push("/"+a+" "+t.convert(c));return s.push(">>"),s.join(` 170`)}return""+r},t}();function Gu(e,t,r,n,a){n=n||{};var s=1.15,c=a.internal.scaleFactor,l=a.internal.getFontSize()/c,u=a.getLineHeightFactor?a.getLineHeightFactor():s,d=l*u,m=/\r\n|\r|\n/g,y="",A=1;if((n.valign==="middle"||n.valign==="bottom"||n.halign==="center"||n.halign==="right")&&(y=typeof e=="string"?e.split(m):e,A=y.length||1),r+=l*(2-s),n.valign==="middle"?r-=A/2*d:n.valign==="bottom"&&(r-=A*d),n.halign==="center"||n.halign==="right"){var p=l;if(n.halign==="center"&&(p*=.5),y&&A>=1){for(var T=0;T<y.length;T++)a.text(y[T],t-a.getStringUnitWidth(y[T])*p,r),r+=d;return a}t-=a.getStringUnitWidth(e)*p}return n.halign==="justify"?a.text(e,t,r,{maxWidth:n.maxWidth||100,align:"justify"}):a.text(e,t,r),a}var cu={},ia=function(){function e(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return e.setDefaults=function(t,r){r===void 0&&(r=null),r?r.__autoTableDocumentDefaults=t:cu=t},e.unifyColor=function(t){return Array.isArray(t)?t:typeof t=="number"?[t,t,t]:typeof t=="string"?[t]:null},e.prototype.applyStyles=function(t,r){var n,a,s;r===void 0&&(r=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var c=this.jsPDFDocument.internal.getFont(),l=c.fontStyle,u=c.fontName;if(t.font&&(u=t.font),t.fontStyle){l=t.fontStyle;
170var d=this.getFontList()[u];d&&d.indexOf(l)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(d[0]),l=d[0])}if(this.jsPDFDocument.setFont(u,l),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!r){var m=e.unifyColor(t.fillColor);m&&(n=this.jsPDFDocument).setFillColor.apply(n,m),m=e.unifyColor(t.textColor),m&&(a=this.jsPDFDocument).setTextColor.apply(a,m),m=e.unifyColor(t.lineColor),m&&(s=this.jsPDFDocument).setDrawColor.apply(s,m),typeof t.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},e.prototype.splitTextToSize=function(t,r,n){return this.jsPDFDocument.splitTextToSize(t,r,n)},e.prototype.rect=function(t,r,n,a,s){return this.jsPDFDocument.rect(t,r,n,a,s)},e.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},e.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},e.prototype.getDocument=function(){return this.jsPDFDocument},e.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},e.prototype.addPage=function(){return this.jsPDFDocument.addPage()},e.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},e.prototype.getGlobalOptions=function(){return cu||{}},e.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},e.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return t.width==null&&(t={width:t.getWidth(),height:t.getHeight()}),t},e.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},e.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},e.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},e.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},e}(),qo=function(e,t){return qo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},qo(e,t)};function Yu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qo(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var $u=function(e){Yu(t,e);function t(r){var n=e.call(this)||this;return n._element=r,n}return t}(Array);function Sf(e){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/e,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function Lf(e){var t={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 t[e]}function Ps(e,t,r){r.applyStyles(t,!0);var n=Array.isArray(e)?e:[e],a=n.map(function(s){return r.getTextWidth(s)}).reduce(function(s,c){return Math.max(s,c)},0);return a}function Ju(e,t,r,n){var a=t.settings.tableLineWidth,s=t.settings.tableLineColor;e.applyStyles({lineWidth:a,lineColor:s});var c=Ku(a,!1);c&&e.rect(r.x,r.y,t.getWidth(e.pageSize().width),n.y-r.y,c)}function Ku(e,t){var r=e>0,n=t||t===0;return r&&n?"DF":r?"S":n?"F":null}function Cs(e,t){var r,n,a,s;if(e=e||t,Array.isArray(e)){if(e.length>=4)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(e.length===3)return{top:e[0],right:e[1],bottom:e[2],left:e[1]};if(e.length===2)return{top:e[0],right:e[1],bottom:e[0],left:e[1]};e.length===1?e=e[0]:e=t}return typeof e=="object"?(typeof e.vertical=="number"&&(e.top=e.vertical,e.bottom=e.vertical),typeof e.horizontal=="number"&&(e.right=e.horizontal,e.left=e.horizontal),{left:(r=e.left)!==null&&r!==void 0?r:t,top:(n=e.top)!==null&&n!==void 0?n:t,right:(a=e.right)!==null&&a!==void 0?a:t,bottom:(s=e.bottom)!==null&&s!==void 0?s:t}):(typeof e!="number"&&(e=t),{top:e,right:e,bottom:e,left:e})}
170function Xu(e,t){var r=Cs(t.settings.margin,0);return e.pageSize().width-(r.left+r.right)}function Pf(e,t,r,n,a){var s={},c=1.3333333333333333,l=Po(t,function(X){return a.getComputedStyle(X).backgroundColor});l!=null&&(s.fillColor=l);var u=Po(t,function(X){return a.getComputedStyle(X).color});u!=null&&(s.textColor=u);var d=jf(n,r);d&&(s.cellPadding=d);var m="borderTopColor",y=c*r,A=n.borderTopWidth;if(n.borderBottomWidth===A&&n.borderRightWidth===A&&n.borderLeftWidth===A){var p=(parseFloat(A)||0)/y;p&&(s.lineWidth=p)}else s.lineWidth={top:(parseFloat(n.borderTopWidth)||0)/y,right:(parseFloat(n.borderRightWidth)||0)/y,bottom:(parseFloat(n.borderBottomWidth)||0)/y,left:(parseFloat(n.borderLeftWidth)||0)/y},s.lineWidth.top||(s.lineWidth.right?m="borderRightColor":s.lineWidth.bottom?m="borderBottomColor":s.lineWidth.left&&(m="borderLeftColor"));var T=Po(t,function(X){return a.getComputedStyle(X)[m]});T!=null&&(s.lineColor=T);var I=["left","right","center","justify"];I.indexOf(n.textAlign)!==-1&&(s.halign=n.textAlign),I=["middle","bottom","top"],I.indexOf(n.verticalAlign)!==-1&&(s.valign=n.verticalAlign);var M=parseInt(n.fontSize||"");isNaN(M)||(s.fontSize=M/c);var k=kf(n);k&&(s.fontStyle=k);var J=(n.fontFamily||"").toLowerCase();return e.indexOf(J)!==-1&&(s.font=J),s}function kf(e){var t="";return(e.fontWeight==="bold"||e.fontWeight==="bolder"||parseInt(e.fontWeight)>=700)&&(t="bold"),(e.fontStyle==="italic"||e.fontStyle==="oblique")&&(t+="italic"),t}function Po(e,t){var r=Zu(e,t);if(!r)return null;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!n||!Array.isArray(n))return null;var a=[parseInt(n[1]),parseInt(n[2]),parseInt(n[3])],s=parseInt(n[4]);return s===0||isNaN(a[0])||isNaN(a[1])||isNaN(a[2])?null:a}function Zu(e,t){var r=t(e);return r==="rgba(0, 0, 0, 0)"||r==="transparent"||r==="initial"||r==="inherit"?e.parentElement==null?null:Zu(e.parentElement,t):r}function jf(e,t){var r=[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft],n=96/(72/t),a=(parseInt(e.lineHeight)-parseInt(e.fontSize))/t/2,s=r.map(function(l){return parseInt(l||"0")/n}),c=Cs(s,0);return a>c.top&&(c.top=a),a>c.bottom&&(c.bottom=a),c}function Qu(e,t,r,n,a){var s,c;n===void 0&&(n=!1),a===void 0&&(a=!1);var l;typeof t=="string"?l=r.document.querySelector(t):l=t;var u=Object.keys(e.getFontList()),d=e.scaleFactor(),m=[],y=[],A=[];if(!l)return console.error("Html table could not be found with input: ",t),{head:m,body:y,foot:A};for(var p=0;p<l.rows.length;p++){var T=l.rows[p],I=(c=(s=T==null?void 0:T.parentElement)===null||s===void 0?void 0:s.tagName)===null||c===void 0?void 0:c.toLowerCase(),M=Cf(u,d,r,T,n,a);M&&(I==="thead"?m.push(M):I==="tfoot"?A.push(M):y.push(M))}return{head:m,body:y,foot:A}}function Cf(e,t,r,n,a,s){for(var c=new $u(n),l=0;l<n.cells.length;l++){var u=n.cells[l],d=r.getComputedStyle(u);if(a||d.display!=="none"){var m=void 0;s&&(m=Pf(e,u,t,d,r)),c.push({rowSpan:u.rowSpan,colSpan:u.colSpan,styles:m,_element:u,content:Ff(u)})}}var y=r.getComputedStyle(n);if(c.length>0&&(a||y.display!=="none"))return c}function Ff(e){var t=e.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map(function(r){return r.trim()}).join(` 171`),t.innerText||t.textContent||""}function If(e,t,r){for(var n=0,a=[e,t,r];n<a.length;n++){var s=a[n];s&&typeof s!="object"&&console.error("The options parameter should be of type object, is: "+typeof s),s.startY&&typeof s.startY!="number"&&(console.error("Invalid value for startY option",s.startY),delete s.startY)}}function In(e,t,r,n,a){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(e),c=1;c<arguments.length;c++){var l=arguments[c];if(l!=null)for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s[u]=l[u])}return s}function th(e,t){var r=new ia(e),n=r.getDocumentOptions(),a=r.getGlobalOptions();If(a,n,t);var s=In({},a,n,t),c;typeof window<"u"&&(c=window);var l=Of(a,n,t),u=Ef(a,n,t),d=Bf(r,s),m=Mf(r,s,c);return{id:t.tableId,content:m,hooks:u,styles:l,settings:d}}function Of(e,t,r){for(var n={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(u){if(u==="columnStyles"){var d=e[u],m=t[u],y=r[u];n.columnStyles=In({},d,m,y)}else{var A=[e,t,r],p=A.map(function(T){return T[u]||{}});n[u]=In({},p[0],p[1],p[2])}},s=0,c=Object.keys(n);s<c.length;s++){var l=c[s];a(l)}return n}function Ef(e,t,r){for(var n=[e,t,r],a={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},s=0,c=n;s<c.length;s++){var l=c[s];l.didParseCell&&a.didParseCell.push(l.didParseCell),l.willDrawCell&&a.willDrawCell.push(l.willDrawCell),l.didDrawCell&&a.didDrawCell.push(l.didDrawCell),l.willDrawPage&&a.willDrawPage.push(l.willDrawPage),l.didDrawPage&&a.didDrawPage.push(l.didDrawPage)}return a}function Bf(e,t){var r,n,a,s,c,l,u,d,m,y,A,p,T=Cs(t.margin,40/e.scaleFactor()),I=(r=Tf(e,t.startY))!==null&&r!==void 0?r:T.top,M;
171t.showFoot===!0?M="everyPage":t.showFoot===!1?M="never":M=(n=t.showFoot)!==null&&n!==void 0?n:"everyPage";var k;t.showHead===!0?k="everyPage":t.showHead===!1?k="never":k=(a=t.showHead)!==null&&a!==void 0?a:"everyPage";var J=(s=t.useCss)!==null&&s!==void 0?s:!1,X=t.theme||(J?"plain":"striped"),rt=!!t.horizontalPageBreak,mt=(c=t.horizontalPageBreakRepeat)!==null&&c!==void 0?c:null;return{includeHiddenHtml:(l=t.includeHiddenHtml)!==null&&l!==void 0?l:!1,useCss:J,theme:X,startY:I,margin:T,pageBreak:(u=t.pageBreak)!==null&&u!==void 0?u:"auto",rowPageBreak:(d=t.rowPageBreak)!==null&&d!==void 0?d:"auto",tableWidth:(m=t.tableWidth)!==null&&m!==void 0?m:"auto",showHead:k,showFoot:M,tableLineWidth:(y=t.tableLineWidth)!==null&&y!==void 0?y:0,tableLineColor:(A=t.tableLineColor)!==null&&A!==void 0?A:200,horizontalPageBreak:rt,horizontalPageBreakRepeat:mt,horizontalPageBreakBehaviour:(p=t.horizontalPageBreakBehaviour)!==null&&p!==void 0?p:"afterAllRows"}}function Tf(e,t){var r=e.getLastAutoTable(),n=e.scaleFactor(),a=e.pageNumber(),s=!1;if(r&&r.startPageNumber){var c=r.startPageNumber+r.pageNumber-1;s=c===a}return typeof t=="number"?t:(t==null||t===!1)&&s&&(r==null?void 0:r.finalY)!=null?r.finalY+20/n:null}function Mf(e,t,r){var n=t.head||[],a=t.body||[],s=t.foot||[];if(t.html){var c=t.includeHiddenHtml;if(r){var l=Qu(e,t.html,r,c,t.useCss)||{};n=l.head||n,a=l.body||n,s=l.foot||n}else console.error("Cannot parse html in non browser environment")}var u=t.columns||Df(n,a,s);return{columns:u,head:n,body:a,foot:s}}function Df(e,t,r){var n=e[0]||t[0]||r[0]||[],a=[];return Object.keys(n).filter(function(s){return s!=="_element"}).forEach(function(s){var c=1,l;Array.isArray(n)?l=n[parseInt(s)]:l=n[s],typeof l=="object"&&!Array.isArray(l)&&(c=(l==null?void 0:l.colSpan)||1);for(var u=0;u<c;u++){var d=void 0;Array.isArray(n)?d=a.length:d=s+(u>0?"_".concat(u):"");var m={dataKey:d};a.push(m)}}),a}var Uo=function(){function e(t,r,n){this.table=r,this.pageNumber=r.pageNumber,this.settings=r.settings,this.cursor=n,this.doc=t.getDocument()}return e}(),Rf=function(e){Yu(t,e);function t(r,n,a,s,c,l){var u=e.call(this,r,n,l)||this;return u.cell=a,u.row=s,u.column=c,u.section=s.section,u}return t}(Uo),qf=function(){function e(t,r){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=r.columns,this.head=r.head,this.body=r.body,this.foot=r.foot}return e.prototype.getHeadHeight=function(t){return this.head.reduce(function(r,n){return r+n.getMaxCellHeight(t)},0)},e.prototype.getFootHeight=function(t){return this.foot.reduce(function(r,n){return r+n.getMaxCellHeight(t)},0)},e.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},e.prototype.callCellHooks=function(t,r,n,a,s,c){for(var l=0,u=r;l<u.length;l++){var d=u[l],m=new Rf(t,this,n,a,s,c),y=d(m)===!1;if(n.text=Array.isArray(n.text)?n.text:[n.text],y)return!1}return!0},e.prototype.callEndPageHooks=function(t,r){t.applyStyles(t.userStyles);for(var n=0,a=this.hooks.didDrawPage;n<a.length;n++){var s=a[n];s(new Uo(t,this,r))}},e.prototype.callWillDrawPageHooks=function(t,r){for(var n=0,a=this.hooks.willDrawPage;n<a.length;n++){var s=a[n];s(new Uo(t,this,r))}},e.prototype.getWidth=function(t){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var r=this.columns.reduce(function(a,s){return a+s.wrappedWidth},0);return r}else{var n=this.settings.margin;return t-n.left-n.right}},e}(),eh=function(){function e(t,r,n,a,s){s===void 0&&(s=!1),this.height=0,this.raw=t,t instanceof $u&&(this.raw=t._element,this.element=t._element),this.index=r,this.section=n,this.cells=a,this.spansMultiplePages=s}return e.prototype.getMaxCellHeight=function(t){var r=this;return t.reduce(function(n,a){var s;return Math.max(n,((s=r.cells[a.index])===null||s===void 0?void 0:s.height)||0)},0)},e.prototype.hasRowSpan=function(t){var r=this;return t.filter(function(n){var a=r.cells[n.index];return a?a.rowSpan>1:!1}).length>0},e.prototype.canEntireRowFit=function(t,r){return this.getMaxCellHeight(r)<=t},e.prototype.getMinimumRowHeight=function(t,r){var n=this;return t.reduce(function(a,s){var c=n.cells[s.index];if(!c)return 0;var l=r.getLineHeight(c.styles.fontSize),u=c.padding("vertical"),d=u+l;return d>a?d:a},0)},e}(),rh=function(){function e(t,r,n){var a;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=r,this.section=n,this.raw=t;var s=t;t!=null&&typeof t=="object"&&!Array.isArray(t)?(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,s=(a=t.content)!==null&&a!==void 0?a:t,t._element&&(this.raw=t._element)):(this.rowSpan=1,this.colSpan=1);var c=s!=null?""+s:"",l=/\r\n|\r|\n/g;this.text=c.split(l)}return e.prototype.getTextPos=function(){var t;if(this.styles.valign==="top")t=this.y+this.padding("top");else if(this.styles.valign==="bottom")t=this.y+this.height-this.padding("bottom");else{var r=this.height-this.padding("vertical");t=this.y+r/2+this.padding("top")}var n;if(this.styles.halign==="right")n=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var a=this.width-this.padding("horizontal");n=this.x+a/2+this.padding("left")}else n=this.x+this.padding("left");return{x:n,y:t}},e.prototype.getContentHeight=function(t,r){r===void 0&&(r=1.15);var n=Array.isArray(this.text)?this.text.length:1,a=this.styles.fontSize/t*r,s=n*a+this.padding("vertical");return Math.max(s,this.styles.minCellHeight)},e.prototype.padding=function(t){var r=Cs(this.styles.cellPadding,0);return t==="vertical"?r.top+r.bottom:t==="horizontal"?r.left+r.right:r[t]},e}(),Uf=function(){function e(t,r,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=r,this.index=n}return e.prototype.getMaxCustomCellWidth=function(t){for(var r=0,n=0,a=t.allRows();n<a.length;n++){var s=a[n],c=s.cells[this.index];
171c&&typeof c.styles.cellWidth=="number"&&(r=Math.max(r,c.styles.cellWidth))}return r},e}();function zf(e,t){Wf(e,t);var r=[],n=0;t.columns.forEach(function(s){var c=s.getMaxCustomCellWidth(t);c?s.width=c:(s.width=s.wrappedWidth,r.push(s)),n+=s.width});var a=t.getWidth(e.pageSize().width)-n;a&&(a=zo(r,a,function(s){return Math.max(s.minReadableWidth,s.minWidth)})),a&&(a=zo(r,a,function(s){return s.minWidth})),a=Math.abs(a),!t.settings.horizontalPageBreak&&a>.1/e.scaleFactor()&&(a=a<1?a:Math.round(a),console.log("Of the table content, ".concat(a," units width could not fit page"))),Vf(t),Gf(t,e),Hf(t)}function Wf(e,t){var r=e.scaleFactor(),n=t.settings.horizontalPageBreak,a=Xu(e,t);t.allRows().forEach(function(s){for(var c=0,l=t.columns;c<l.length;c++){var u=l[c],d=s.cells[u.index];if(d){var m=t.hooks.didParseCell;t.callCellHooks(e,m,d,s,u,null);var y=d.padding("horizontal");d.contentWidth=Ps(d.text,d.styles,e)+y;var A=Ps(d.text.join(" ").split(/[^\S\u00A0]+/),d.styles,e);if(d.minReadableWidth=A+d.padding("horizontal"),typeof d.styles.cellWidth=="number")d.minWidth=d.styles.cellWidth,d.wrappedWidth=d.styles.cellWidth;else if(d.styles.cellWidth==="wrap"||n===!0)d.contentWidth>a?(d.minWidth=a,d.wrappedWidth=a):(d.minWidth=d.contentWidth,d.wrappedWidth=d.contentWidth);else{var p=10/r;d.minWidth=d.styles.minCellWidth||p,d.wrappedWidth=d.contentWidth,d.minWidth>d.wrappedWidth&&(d.wrappedWidth=d.minWidth)}}}}),t.allRows().forEach(function(s){for(var c=0,l=t.columns;c<l.length;c++){var u=l[c],d=s.cells[u.index];if(d&&d.colSpan===1)u.wrappedWidth=Math.max(u.wrappedWidth,d.wrappedWidth),u.minWidth=Math.max(u.minWidth,d.minWidth),u.minReadableWidth=Math.max(u.minReadableWidth,d.minReadableWidth);else{var m=t.styles.columnStyles[u.dataKey]||t.styles.columnStyles[u.index]||{},y=m.cellWidth||m.minCellWidth;y&&typeof y=="number"&&(u.minWidth=y,u.wrappedWidth=y)}d&&(d.colSpan>1&&!u.minWidth&&(u.minWidth=d.minWidth),d.colSpan>1&&!u.wrappedWidth&&(u.wrappedWidth=d.minWidth))}})}function zo(e,t,r){for(var n=t,a=e.reduce(function(p,T){return p+T.wrappedWidth},0),s=0;s<e.length;s++){var c=e[s],l=c.wrappedWidth/a,u=n*l,d=c.width+u,m=r(c),y=d<m?m:d;t-=y-c.width,c.width=y}if(t=Math.round(t*1e10)/1e10,t){var A=e.filter(function(p){return t<0?p.width>r(p):!0});A.length&&(t=zo(A,t,r))}return t}function Hf(e){for(var t={},r=1,n=e.allRows(),a=0;a<n.length;a++)for(var s=n[a],c=0,l=e.columns;c<l.length;c++){var u=l[c],d=t[u.index];if(r>1)r--,delete s.cells[u.index];else if(d)d.cell.height+=s.height,r=d.cell.colSpan,delete s.cells[u.index],d.left--,d.left<=1&&delete t[u.index];else{var m=s.cells[u.index];if(!m)continue;if(m.height=s.height,m.rowSpan>1){var y=n.length-a,A=m.rowSpan>y?y:m.rowSpan;t[u.index]={cell:m,left:A,row:s}}}}}function Vf(e){for(var t=e.allRows(),r=0;r<t.length;r++)for(var n=t[r],a=null,s=0,c=0,l=0;l<e.columns.length;l++){var u=e.columns[l];if(c-=1,c>1&&e.columns[l+1])s+=u.width,delete n.cells[u.index];else if(a){var d=a;delete n.cells[u.index],a=null,d.width=u.width+s}else{var d=n.cells[u.index];if(!d)continue;if(c=d.colSpan,s=0,d.colSpan>1){a=d,s+=u.width;continue}d.width=u.width+s}}}function Gf(e,t){for(var r={count:0,height:0},n=0,a=e.allRows();n<a.length;n++){for(var s=a[n],c=0,l=e.columns;c<l.length;c++){var u=l[c],d=s.cells[u.index];if(d){t.applyStyles(d.styles,!0);var m=d.width-d.padding("horizontal");if(d.styles.overflow==="linebreak")d.text=t.splitTextToSize(d.text,m+1/t.scaleFactor(),{fontSize:d.styles.fontSize});else if(d.styles.overflow==="ellipsize")d.text=fu(d.text,m,d.styles,t,"...");else if(d.styles.overflow==="hidden")d.text=fu(d.text,m,d.styles,t,"");else if(typeof d.styles.overflow=="function"){var y=d.styles.overflow(d.text,m);typeof y=="string"?d.text=[y]:d.text=y}d.contentHeight=d.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var A=d.contentHeight/d.rowSpan;d.rowSpan>1&&r.count*r.height<A*d.rowSpan?r={height:A,count:d.rowSpan}:r&&r.count>0&&r.height>A&&(A=r.height),A>s.height&&(s.height=A)}}r.count--}}function fu(e,t,r,n,a){return e.map(function(s){return Yf(s,t,r,n,a)})}function Yf(e,t,r,n,a){var s=1e4*n.scaleFactor();if(t=Math.ceil(t*s)/s,t>=Ps(e,r,n))return e;for(;t<Ps(e+a,r,n)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+a}function nh(e,t){var r=new ia(e),n=$f(t,r.scaleFactor()),a=new qf(t,n);return zf(r,a),r.applyStyles(r.userStyles),a}function $f(e,t){var r=e.content,n=Kf(r.columns);if(r.head.length===0){var a=du(n,"head");a&&r.head.push(a)}if(r.foot.length===0){var a=du(n,"foot");a&&r.foot.push(a)}var s=e.settings.theme,c=e.styles;return{columns:n,head:ko("head",r.head,n,c,s,t),body:ko("body",r.body,n,c,s,t),foot:ko("foot",r.foot,n,c,s,t)}}function ko(e,t,r,n,a,s){var c={},l=t.map(function(u,d){for(var m=0,y={},A=0,p=0,T=0,I=r;T<I.length;T++){var M=I[T];if(c[M.index]==null||c[M.index].left===0)if(p===0){var k=void 0;Array.isArray(u)?k=u[M.index-A-m]:k=u[M.dataKey];var J={};typeof k=="object"&&!Array.isArray(k)&&(J=(k==null?void 0:k.styles)||{});var X=Xf(e,M,d,a,n,s,J),rt=new rh(k,X,e);y[M.dataKey]=rt,y[M.index]=rt,p=rt.colSpan-1,c[M.index]={left:rt.rowSpan-1,times:p}}else p--,A++;else c[M.index].left--,p=c[M.index].times,m++}return new eh(u,d,e,y)});return l}function du(e,t){var r={};return e.forEach(function(n){if(n.raw!=null){var a=Jf(t,n.raw);a!=null&&(r[n.dataKey]=a)}}),Object.keys(r).length>0?r:null}function Jf(e,t){if(e==="head"){if(typeof t=="object")return t.header||null;if(typeof t=="string"||typeof t=="number")return t}else if(e==="foot"&&typeof t=="object")return t.footer;return null}function Kf(e){return e.map(function(t,r){var n,a;return typeof t=="object"?a=(n=t.dataKey)!==null&&n!==void 0?n:r:a=r,new Uf(a,t,r)})}function Xf(e,t,r,n,a,s,c){var l=Lf(n),u;e==="head"?u=a.headStyles:e==="body"?u=a.bodyStyles:e==="foot"&&(u=a.footStyles);var d=In({},l.table,l[e],a.styles,u),m=a.columnStyles[t.dataKey]||a.columnStyles[t.index]||{},y=e==="body"?m:{},A=e==="body"&&r%2===0?In({},l.alternateRow,a.alternateRowStyles):{},p=Sf(s),T=In({},p,d,A,y);return In(T,c)}function Zf(e,t,r){var n;r===void 0&&(r={});var a=Xu(e,t),s=new Map,c=[],l=[],u=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?u=t.settings.horizontalPageBreakRepeat:(typeof t.settings.horizontalPageBreakRepeat=="string"||typeof t.settings.horizontalPageBreakRepeat=="number")&&(u=[t.settings.horizontalPageBreakRepeat]),u.forEach(function(A){var p=t.columns.find(function(T){return T.dataKey===A||T.index===A});p&&!s.has(p.index)&&(s.set(p.index,!0),c.push(p.index),l.push(t.columns[p.index]),a-=p.wrappedWidth)});for(var d=!0,m=(n=r==null?void 0:r.start)!==null&&n!==void 0?n:0;m<t.columns.length;){if(s.has(m)){m++;continue}var y=t.columns[m].wrappedWidth;
171if(d||a>=y)d=!1,c.push(m),l.push(t.columns[m]),a-=y;else break;m++}return{colIndexes:c,columns:l,lastIndex:m-1}}function Qf(e,t){for(var r=[],n=0;n<t.columns.length;n++){var a=Zf(e,t,{start:n});a.columns.length&&(r.push(a),n=a.lastIndex)}return r}function ih(e,t){var r=t.settings,n=r.startY,a=r.margin,s={x:a.left,y:n},c=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),l=n+a.bottom+c;if(r.pageBreak==="avoid"){var u=t.body,d=u.reduce(function(A,p){return A+p.height},0);l+=d}var m=new ia(e);(r.pageBreak==="always"||r.startY!=null&&l>m.pageSize().height)&&(sh(m),s.y=a.top),t.callWillDrawPageHooks(m,s);var y=In({},s);t.startPageNumber=m.pageNumber(),r.horizontalPageBreak?t2(m,t,y,s):(m.applyStyles(m.userStyles),(r.showHead==="firstPage"||r.showHead==="everyPage")&&t.head.forEach(function(A){return On(m,t,A,s,t.columns)}),m.applyStyles(m.userStyles),t.body.forEach(function(A,p){var T=p===t.body.length-1;ks(m,t,A,T,y,s,t.columns)}),m.applyStyles(m.userStyles),(r.showFoot==="lastPage"||r.showFoot==="everyPage")&&t.foot.forEach(function(A){return On(m,t,A,s,t.columns)})),Ju(m,t,y,s),t.callEndPageHooks(m,s),t.finalY=s.y,e.lastAutoTable=t,m.applyStyles(m.userStyles)}function t2(e,t,r,n){var a=Qf(e,t),s=t.settings;if(s.horizontalPageBreakBehaviour==="afterAllRows")a.forEach(function(d,m){e.applyStyles(e.userStyles),m>0?Fa(e,t,r,n,d.columns,!0):pu(e,t,n,d.columns),e2(e,t,r,n,d.columns),jo(e,t,n,d.columns)});else for(var c=-1,l=a[0],u=function(){var d=c;if(l){e.applyStyles(e.userStyles);var m=l.columns;c>=0?Fa(e,t,r,n,m,!0):pu(e,t,n,m),d=gu(e,t,c+1,n,m),jo(e,t,n,m)}var y=d-c;a.slice(1).forEach(function(A){e.applyStyles(e.userStyles),Fa(e,t,r,n,A.columns,!0),gu(e,t,c+1,n,A.columns,y),jo(e,t,n,A.columns)}),c=d};c<t.body.length-1;)u()}function pu(e,t,r,n){var a=t.settings;e.applyStyles(e.userStyles),(a.showHead==="firstPage"||a.showHead==="everyPage")&&t.head.forEac
171h(function(s){return On(e,t,s,r,n)})}function e2(e,t,r,n,a){e.applyStyles(e.userStyles),t.body.forEach(function(s,c){var l=c===t.body.length-1;ks(e,t,s,l,r,n,a)})}function gu(e,t,r,n,a,s){e.applyStyles(e.userStyles),s=s??t.body.length;for(var c=Math.min(r+s,t.body.length),l=-1,u=t.body.slice(r,c),d=0;d<u.length;d++){var m=u[d],y=r+d===t.body.length-1,A=ah(e,t,y,n);if(m.canEntireRowFit(A,a))On(e,t,m,n,a),l=r+d;else break}return l}function jo(e,t,r,n){var a=t.settings;e.applyStyles(e.userStyles),(a.showFoot==="lastPage"||a.showFoot==="everyPage")&&t.foot.forEach(function(s){return On(e,t,s,r,n)})}function r2(e,t,r){var n=r.getLineHeight(e.styles.fontSize),a=e.padding("vertical"),s=Math.floor((t-a)/n);return Math.max(0,s)}function n2(e,t,r,n){var a={};e.spansMultiplePages=!0,e.height=0;for(var s=0,c=0,l=r.columns;c<l.length;c++){var u=l[c],d=e.cells[u.index];if(d){Array.isArray(d.text)||(d.text=[d.text]);var m=new rh(d.raw,d.styles,d.section);m=In(m,d),m.text=[];var y=r2(d,t,n);d.text.length>y&&(m.text=d.text.splice(y,d.text.length));var A=n.scaleFactor(),p=n.getLineHeightFactor();d.contentHeight=d.getContentHeight(A,p),d.contentHeight>=t&&(d.contentHeight=t,m.styles.minCellHeight-=t),d.contentHeight>e.height&&(e.height=d.contentHeight),m.contentHeight=m.getContentHeight(A,p),m.contentHeight>s&&(s=m.contentHeight),a[u.index]=m}}var T=new eh(e.raw,-1,e.section,a,!0);T.height=s;for(var I=0,M=r.columns;I<M.length;I++){var u=M[I],m=T.cells[u.index];m&&(m.height=T.height);var d=e.cells[u.index];d&&(d.height=e.height)}return T}function i2(e,t,r,n){var a=e.pageSize().height,s=n.settings.margin,c=s.top+s.bottom,l=a-c;t.section==="body"&&(l-=n.getHeadHeight(n.columns)+n.getFootHeight(n.columns));var u=t.getMinimumRowHeight(n.columns,e),d=u<r;if(u>l)return console.log("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!d)return!1;var m=t.hasRowSpan(n.columns),y=t.getMaxCellHeight(n.columns)>l;return y?(m&&console.log("The content of row ".concat(t.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):!(m||n.settings.rowPageBreak==="avoid")}function ks(e,t,r,n,a,s,c){var l=ah(e,t,n,s);if(r.canEntireRowFit(l,c))On(e,t,r,s,c);else if(i2(e,r,l,t)){var u=n2(r,l,t,e);On(e,t,r,s,c),Fa(e,t,a,s,c),ks(e,t,u,n,a,s,c)}else Fa(e,t,a,s,c),ks(e,t,r,n,a,s,c)}function On(e,t,r,n,a){n.x=t.settings.margin.left;for(var s=0,c=a;s<c.length;s++){var l=c[s],u=r.cells[l.index];if(!u){n.x+=l.width;continue}e.applyStyles(u.styles),u.x=n.x,u.y=n.y;var d=t.callCellHooks(e,t.hooks.willDrawCell,u,r,l,n);if(d===!1){n.x+=l.width;continue}a2(e,u,n);var m=u.getTextPos();Gu(u.text,m.x,m.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},e.getDocument()),t.callCellHooks(e,t.hooks.didDrawCell,u,r,l,n),n.x+=l.width}n.y+=r.height}function a2(e,t,r){var n=t.styles;if(e.getDocument().setFillColor(e.getDocument().getFillColor()),typeof n.lineWidth=="number"){var a=Ku(n.lineWidth,n.fillColor);a&&e.rect(t.x,r.y,t.width,t.height,a)}else typeof n.lineWidth=="object"&&(n.fillColor&&e.rect(t.x,r.y,t.width,t.height,"F"),s2(e,t,r,n.lineWidth))}function s2(e,t,r,n){var a,s,c,l;n.top&&(a=r.x,s=r.y,c=r.x+t.width,l=r.y,n.right&&(c+=.5*n.right),n.left&&(a-=.5*n.left),u(n.top,a,s,c,l)),n.bottom&&(a=r.x,s=r.y+t.height,c=r.x+t.width,l=r.y+t.height,n.right&&(c+=.5*n.right),n.left&&(a-=.5*n.left),u(n.bottom,a,s,c,l)),n.left&&(a=r.x,s=r.y,c=r.x,l=r.y+t.height,n.top&&(s-=.5*n.top),n.bottom&&(l+=.5*n.bottom),u(n.left,a,s,c,l)),n.right&&(a=r.x+t.width,s=r.y,c=r.x+t.width,l=r.y+t.height,n.top&&(s-=.5*n.top),n.bottom&&(l+=.5*n.bottom),u(n.right,a,s,c,l));function u(d,m,y,A,p){e.getDocument().setLineWidth(d),e.getDocument().line(m,y,A,p,"S")}}function ah(e,t,r,n){var a=t.settings.margin.bottom,s=t.settings.showFoot;return(s==="everyPage"||s==="lastPage"&&r)&&(a+=t.getFootHeight(t.columns)),e.pageSize().height-n.y-a}function Fa(e,t,r,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=!1),e.applyStyles(e.userStyles),t.settings.showFoot==="everyPage"&&!s&&t.foot.forEach(function(l){return On(e,t,l,n,a)}),t.callEndPageHooks(e,n);var c=t.settings.margin;Ju(e,t,r,n),sh(e),t.pageNumber++,n.x=c.left,n.y=c.top,r.y=c.top,t.callWillDrawPageHooks(e,n),t.settings.showHead==="everyPage"&&(t.head.forEac
171h(function(l){return On(e,t,l,n,a)}),e.applyStyles(e.userStyles))}function sh(e){var t=e.pageNumber();e.setPage(t+1);var r=e.pageNumber();return r===t?(e.addPage(),!0):!1}function o2(e){e.API.autoTable=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t[0],a=th(this,n),s=nh(this,a);return ih(this,s),this},e.API.lastAutoTable=!1,e.API.autoTableText=function(t,r,n,a){Gu(t,r,n,a,this)},e.API.autoTableSetDefaults=function(t){return ia.setDefaults(t,this),this},e.autoTableSetDefaults=function(t,r){ia.setDefaults(t,r)},e.API.autoTableHtmlToJson=function(t,r){var n;if(r===void 0&&(r=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=new ia(this),s=Qu(a,t,window,r,!1),c=s.head,l=s.body,u=((n=c[0])===null||n===void 0?void 0:n.map(function(d){return d.content}))||[];return{columns:u,rows:l,data:l}}}var Co;function l2(e,t){var r=th(e,t),n=nh(e,r);ih(e,n)}try{if(typeof window<"u"&&window){var mu=window,vu=mu.jsPDF||((Co=mu.jspdf)===null||Co===void 0?void 0:Co.jsPDF);vu&&o2(vu)}}catch(e){console.error("Could not apply autoTable plugin",e)}const Xn="https://api.rstcc.net";function Zn(){const e=localStorage.getItem("token")??sessionStorage.getItem("token")??"";return e?{Authorization:`Token ${e}`}:{}}function Pt(e){return`â¬${parseFloat(String(e)).toFixed(2)}`}function ms(e){return new Date(e).toLocaleDateString("nl-NL",{day:"numeric",month:"short",year:"numeric"})}const u2=["RSTCC","TMS","WI","UNIT10","UNITY9"],oh="pnl_sub_filter_v1";function h2(){try{const e=localStorage.getItem(oh);if(e)return JSON.parse(e)}catch{}return{types:[],sections:[]}}function vs(e){localStorage.setItem(oh,JSON.stringify(e))}const Fo={week:"Week",month:"Maand",quarter:"Kwartaal",year:"Jaar"};function c2(){const e=Yh(),[t,r]=Re.useState("month"),[n,a]=Re.useState(null),[s,c]=Re.useState(!1),[l,u]=Re.useState(null),[d,m]=Re.useState([]),[y,A]=Re.useState(null),[p,T]=Re.useState(()=>({onlyIncluded:!1,...h2()})),[I,M]=Re.useState(!1),[k,J]=Re.useState(""),[X,rt]=Re.useState(""),[mt,At]=Re.useState("21"),[It,nt]=Re.useState("month"),[W,gt]=Re.useState(""),[L,O]=Re.useState(!1),[z,q]=Re.useState(null),[it,ot]=Re.useState(""),[lt,tt]=Re.useState(""),[ct,St]=Re.useState("21"),[vt,N]=Re.useState("month"),[B,D]=Re.useState("WI"),[H,Y]=Re.useState(!1),[Z,at]=Re.useState(null),st=Re.useCallback(async()=>{c(!0),u(null);try{const[U,Lt]=await Promise.all([fetch(`${Xn}/api/admin/winst-verlies/?period=${t}`,{headers:Zn()}),fetch(`${Xn}/api/admin/pnl-subscriptions/`,{headers:Zn()})]);if(!U.ok)throw new Error(`HTTP ${U.status}`);const[Kt,Tt]=await Promise.all([U.json(),Lt.json()]);a(Kt),Array.isArray(Tt)&&m(Tt)}catch(U){u(U instanceof Error?U.message:"Onbekende fout")}finally{c(!1)}},[t]);Re.useEffect(()=>{st()},[st]);async function pt(U,Lt){A(U);try{await fetch(`${Xn}/api/admin/pnl-subscriptions/?id=${U}`,{method:"PATCH",headers:{...Zn(),"Content-Type":"application/json"},body:JSON.stringify({include_in_pnl:Lt})}),m(Tt=>Tt.map(Ct=>Ct.id===U?{...Ct,include_in_pnl:Lt}:Ct));const Kt=await fetch(`${Xn}/api/admin/winst-verlies/?period=${t}`,{headers:Zn()});Kt.ok&&a(await Kt.json())}finally{A(null)}}function Nt(U){T(Lt=>{const Kt=Lt.types.includes(U)?Lt.types.filter(Ct=>Ct!==U):[...Lt.types,U],Tt={...Lt,types:Kt};return vs(Tt),Tt})}function Ot(U){T(Lt=>{const Kt=Lt.sections.includes(U)?Lt.sections.filter(Ct=>Ct!==U):[...Lt.sections,U],Tt={...Lt,sections:Kt};return vs(Tt),Tt})}function Ft(){T(U=>{const Lt={...U,onlyIncluded:!U.onlyIncluded};return vs(Lt),Lt})}function Vt(){const U={types:[],sections:[],onlyIncluded:!1};T(U),vs(U)}const P=[...new Set(d.map(U=>U.category).filter(Boolean))].sort(),jt=d.filter(U=>{const Lt=p.types.length===0||p.types.includes(U.category),Kt=p.sections.length===0||p.sections.some(Ct=>(U.sections||[]).includes(Ct)),Tt=!p.onlyIncluded||U.include_in_pnl;return Lt&&Kt&&Tt}),se=p.types.length>0||p.sections.length>0||p.onlyIncluded,$t=p.types.length+p.sections.length+(p.onlyIncluded?1:0);async function wt(){if(!k.trim()||!X){q("Beschrijving en bedrag zijn verplicht.");return}O(!0),q(null);try{const U=await fetch(`${Xn}/api/admin/operational-costs/`,{method:"POST",headers:{...Zn(),"Content-Type":"application/json"},body:JSON.stringify({description:k,amount_excl_btw:parseFloat(X),btw_pct:parseFloat(mt)||21,period:It,category:W})});if(!U.ok){const Lt=await U.json();throw new Error(Lt.error||`HTTP ${U.status}`)}J(""),rt(""),At("21"),nt("month"),gt(""),st()}catch(U){q(U instanceof Error?U.message:"Fout bij aanmaken")}finally{O(!1)}}async function Xt(U){if(confirm("Verwijder deze kostenpost?"))try{const Lt=await fetch(`${Xn}/api/admin/operational-costs/?id=${U}`,{method:"DELETE",headers:Zn()});if(!Lt.ok)throw new Error(`HTTP ${Lt.status}`);st()}catch{alert("Verwijderen mislukt.")}}async function Et(){if(!it.trim()||!lt){at("Beschrijving en bedrag zijn verplicht.");return}Y(!0),at(null);try{const U=await fetch(`${Xn}/api/admin/income-entries/`,{method:"POST",headers:{...Zn(),"Content-Type":"application/json"},body:JSON.stringify({description:it,amount_excl_btw:parseFloat(lt),btw_pct:parseFloat(ct)||21,period:vt,category:B})});if(!U.ok){const Lt=await U.json();throw new Error(Lt.error||`HTTP ${U.status}`)}ot(""),tt(""),St("21"),N("month"),D("WI"),st()}catch(U){at(U instanceof Error?U.message:"Fout bij aanmaken")}finally{Y(!1)}}async function Jt(U){if(confirm("Verwijder deze inkomstenpost?"))try{const Lt=await fetch(`${Xn}/api/admin/income-entries/?id=${U}`,{method:"DELETE",headers:Zn()});if(!Lt.ok)throw new Error(`HTTP ${Lt.status}`);st()}catch{alert("Verwijderen mislukt.")}}function Gt(){if(!n)return;const U=new Ht({orientation:"portrait",unit:"mm",format:"a4"}),Lt=`${ms(n.from_date)} â ${ms(n.to_date)}`,Kt=Fo[n.period]??n.period;let Tt=54;const Ct=(_t,xe=40)=>
171{Tt+xe>275&&(U.addPage(),Tt=16),U.setFontSize(11),U.setTextColor(80,80,80),U.text(_t,14,Tt),Tt+=4},Zt=_t=>{l2(U,{..._t,margin:{left:14,right:14}}),Tt=U.lastAutoTable.finalY+8};U.setFillColor(30,30,30),U.rect(0,0,210,36,"F"),U.setFontSize(20),U.setTextColor(255,255,255),U.text("Winst & Verlies",14,16),U.setFontSize(9),U.setTextColor(180,180,180),U.text(`${Kt} · ${Lt} · ${n.period_days} dagen`,14,24);const Mt=n.summary.winst>=0;U.setFontSize(9),U.setTextColor(160,160,160),U.text("OMZET EXCL. BTW",14,34),U.text("TOTALE KOSTEN",80,34),U.text(Mt?"WINST":"VERLIES",152,34),U.setFontSize(14),U.setTextColor(255,255,255),U.text(Pt(n.revenue.excl_btw),14,42),U.setTextColor(240,100,80),U.text(Pt(n.summary.total_costs),80,42),U.setTextColor(Mt?80:220,Mt?200:80,Mt?120:80),U.text(`${Pt(n.summary.winst)} (${n.summary.marge_pct}%)`,152,42),Tt=54,U.setTextColor(40,40,40),Ct("Omzet â totaaloverzicht"),Zt({startY:Tt,head:[["Bron","Excl. BTW","BTW","Incl. BTW"]],body:[["Topups (betalingen)",Pt(n.revenue.topups_excl??n.revenue.excl_btw),Pt(n.revenue.btw),Pt(n.revenue.topups_incl??n.revenue.incl_btw)],...n.subscription_revenue.total_excl>0?[[`Abonnementen (${n.subscription_revenue.rows.length} actief)`,Pt(n.subscription_revenue.total_excl),Pt(n.subscription_revenue.total_btw),Pt(n.subscription_revenue.total_incl)]]:[],...n.income_entries.total_excl>0?[[`Overige inkomsten (${n.income_entries.rows.length} posten)`,Pt(n.income_entries.total_excl),Pt(n.income_entries.total_btw),Pt(n.income_entries.total_incl)]]:[]],foot:[["Totaal omzet",Pt(n.revenue.excl_btw),Pt(n.revenue.btw),Pt(n.revenue.incl_btw)]],theme:"striped",headStyles:{fillColor:[249,115,22]},footStyles:{fillColor:[253,237,220],textColor:[140,60,10],fontStyle:"bold"}});const Me=n.subscription_revenue.rows;Me.length>0&&(Ct("Abonnementen â meegenomen in berekening",30),Zt({startY:Tt,head:[["Abonnement","Periode","Prijs","Deelnemers","Prorata excl.","BTW","Totaal excl."]],body:Me.map(_t=>[_t.titel,_t.periode,Pt(_t.price_item),_t.subscriber_count,Pt(_t.prorated_excl),Pt(_t.btw),Pt(_t.total_excl)]),foot:[["Totaal","","","","",Pt(n.subscription_revenue.total_btw),Pt(n.subscription_revenue.total_excl)]],theme:"striped",headStyles:{fillColor:[16,185,129]},footStyles:{fillColor:[209,250,229],textColor:[6,95,70],fontStyle:"bold"},columnStyles:{3:{halign:"right"},4:{halign:"right"},5:{halign:"right"},6:{halign:"right"}}})),n.income_entries.rows.length>0&&(Ct("Overige inkomsten",30),Zt({startY:Tt,head:[["Omschrijving","Categorie","Eigen periode","Bedrag excl.","Prorata excl.","BTW"]],body:n.income_entries.rows.map(_t=>[_t.description,_t.category||"â",_t.own_period,Pt(_t.amount_excl_btw),Pt(_t.prorated_excl),Pt(_t.btw)]),foot:[["Totaal","","","",Pt(n.income_entries.total_excl),Pt(n.income_entries.total_btw)]],theme:"striped",headStyles:{fillColor:[34,197,94]},footStyles:{fillColor:[220,252,231],textColor:[20,120,40],fontStyle:"bold"}})),Ct("Inkoop AI kosten",30),Zt({startY:Tt,head:[["Provider","Kosten","Calls"]],body:n.ai_costs.by_client.length>0?n.ai_costs.by_client.map(_t=>[_t.client||"onbekend",Pt(_t.cost),_t.calls.toLocaleString("nl-NL")]):[["Geen AI gebruik in deze periode","",""]],foot:n.ai_costs.by_client.length>0?[["Totaal",Pt(n.ai_costs.total),""]]:void 0,theme:"striped",headStyles:{fillColor:[239,68,68]},footStyles:{fillColor:[254,226,226],textColor:[153,27,27],fontStyle:"bold"}}),Ct("Operationele kosten",30),Zt({startY:Tt,head:[["Omschrijving","Categorie","Eigen periode","Bedrag excl.","Prorata excl.","BTW"]],body:n.operational_costs.rows.length>0?n.operational_costs.rows.map(_t=>[_t.description,_t.category||"â",_t.own_period,Pt(_t.amount_excl_btw),Pt(_t.prorated_excl),Pt(_t.btw)]):[["Geen operationele kosten","","","","",""]],foot:n.operational_costs.rows.length>0?[["Totaal","","","",Pt(n.operational_costs.total_excl),Pt(n.operational_costs.total_btw)]]:void 0,theme:"striped",headStyles:{fillColor:[100,116,139]},footStyles:{fillColor:[241,245,249],textColor:[51,65,85],fontStyle:"bold"}}),Ct("Kosten â samenvatting",30),Zt({startY:Tt,head:[["Post","Bedrag excl. BTW"]],body:[["AI kosten",Pt(n.ai_costs.total)],["Operationele kosten",Pt(n.operational_costs.total_excl)],["Totale kosten",Pt(n.summary.total_costs)],["Omzet excl. BTW",Pt(n.revenue.excl_btw)],[Mt?"Winst":"Verlies",Pt(n.summary.winst)],["Marge",`${n.summary.marge_pct}%`]],theme:"plain",bodyStyles:{textColor:[40,40,40]},didParseCell:_t=>{_t.row.index===4&&(_t.cell.styles.textColor=Mt?[20,120,60]:[180,30,30],_t.cell.styles.fontStyle="bold"),_t.row.index>=3&&(_t.cell.styles.fontStyle="bold")}}),Ct("BTW uitsplitsing",30),Zt({startY:Tt,head:[["Post","Bedrag"]],body:[["BTW ontvangen van klanten",Pt(n.btw_summary.ontvangen)],["BTW op operationele kosten (aftrekbaar)",`- ${Pt(n.btw_summary.op_operationeel)}`],[n.btw_summary.te_betalen>=0?"Te betalen aan Belastingdienst":"Te ontvangen van Belastingdienst",Pt(n.btw_summary.te_betalen)]],theme:"striped",headStyles:{fillColor:[59,130,246]}}),n.per_site.length>0&&(Ct("Per team / site profiel",30),Zt({startY:Tt,head:[["Team","Users","Omzet incl.","BTW","Omzet excl.","AI kosten","Marge â¬"]],body:n.per_site.map(_t=>[_t.sp_name,_t.user_count,Pt(_t.revenue_incl),Pt(_t.btw),Pt(_t.revenue_excl),Pt(_t.ai_cost),Pt(_t.margin_eur)]),theme:"striped",headStyles:{fillColor:[107,114,128]},didParseCell:_t=>{var xe;if(_t.column.index===6&&_t.section==="body"){const Yt=parseFloat(String(((xe=n.per_site[_t.row.index])==null?void 0:xe.margin_eur)??0));_t.cell.styles.textColor=Yt>=0?[20,120,60]:[180,30,30],_t.cell.styles.fontStyle="bold"}}}));const ge=U.getNumberOfPages();for(let _t=1;_t<=ge;_t++)U.setPage(_t),U.setFontSize(8),U.setTextColor(160,160,160),U.text(`Winst & Verlies · ${Kt} · ${Lt} · pagina ${_t} / ${ge}`,14,290);const he=`winst-verlies-${n.period}-${n.from_date}.pdf`;U.save(he)}const pe=((n==null?void 0:n.summary.winst)??0)>=0;return E.jsx(Jh,{children:E.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8 space-y-8",children:[E.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",children:[E.jsxs("div",{children:[E.jsxs("button",{onClick:()=>e("/admin/dashboard?tab=tools"),className:"flex items-center gap-1 text-sm text-neutral-400 hover:text-white mb-3 transition-colors",children:[E.jsx("span",{className:"material-icons text-base",children:"arrow_back"}),"Dashboard"]}),E.jsx("h1",{className:"text-2xl font-bold text-white",children:"Winst & Verlies"}),n&&E.jsxs("p",{className:"text-sm text-neutral-400 mt-1",children:[ms(n.from_date)," â ",ms(n.to_date)," · ",n.period_days," dagen"]})]}),E.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-3",children:[n&&E.jsxs("button",{onClick:Gt,className:"flex items-center gap-2 px-4 py-2 bg-neutral-700 hover:bg-neutral-600 text-white rounded-lg text-sm font-medium transition-colors",children:[E.jsx("span",{className:"material-icons text-base",children:"picture_as_pdf"}),"PDF exporteren"]}),E.jsx("div",{className:"flex rounded-lg overflow-hidden border border-neutral-700",children:Object.keys(Fo).map(U=>E.jsx("button",{onClick:()=>r(U),className:`px-4 py-2 text-sm font-medium transition-colors ${t===U?"bg-orange-500 text-white":"bg-neutral-800 text-neutral-400 hover:bg-neutral-700 hover:text-white"}`,children:Fo[U]},U))})]})]}),l&&E.jsx("div",{className:"bg-red-900/40 border border-red-700 text-red-300 rounded-lg px-4 py-3 text-sm",children:l}),s&&!n&&E.jsx("div",{className:"text-neutral-400 text-sm",children:"Ladenâ¦"}),n&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[E.jsxs("div",{className:"bg-neutral-800 rounded-xl p-5",children:[E.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider mb-1",children:"Omzet excl. BTW"}),E.jsx("p",{className:"text-3xl font-bold text-white",children:Pt(n.revenue.excl_btw)}),E.jsxs("p",{className:"text-xs text-neutral-500 mt-1",children:["incl. BTW ",Pt(n.revenue.incl_btw)]})]}),E.jsxs("div",{className:"bg-neutral-800 rounded-xl p-5",children:[E.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider mb-1",children:"Totale kosten"}),E.jsx("p",{className:"text-3xl font-bold text-white",children:Pt(n.summary.total_costs)}),E.jsxs("p",{className:"text-xs text-neutral-500 mt-1",children:["AI ",Pt(n.ai_costs.total)," + Operationeel ",Pt(n.operational_costs.total_excl)]})]}),E.jsxs("div",{className:`rounded-xl p-5 ${pe?"bg-green-900/40 border border-green-700":"bg-red-900/40 border border-red-700"}`,children:[E.jsx("p",{className:`text-xs uppercase tracking-wider mb-1 ${pe?"text-green-400":"text-red-400"}`,children:pe?"Winst":"Verlies"}),E.jsx("p",{className:`text-3xl font-bold ${pe?"text-green-300":"text-red-300"}`,children:Pt(n.summary.winst)}),E.jsxs("p",{className:`text-xs mt-1 ${pe?"text-green-500":"text-red-500"}`,children:["Marge ",n.summary.marge_pct,"%"]})]})]}),E.jsxs(wi,{title:"Abonnementen",icon:"card_membership",children:[E.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[E.jsx("p",{className:"text-xs text-neutral-400 flex-1",children:"Zet de schakelaar aan om een abonnement mee te nemen in de W&L berekening. Bedrag = actieve deelnemer
171s à prijs (prorata)."}),E.jsxs("div",{className:"relative",children:[E.jsxs("button",{onClick:()=>M(U=>!U),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors border ${se?"bg-orange-500/20 border-orange-500 text-orange-300":"bg-neutral-700 border-neutral-600 text-neutral-300 hover:bg-neutral-600"}`,children:[E.jsx("span",{className:"material-icons text-base",children:"filter_list"}),"Filter",$t>0&&E.jsx("span",{className:"bg-orange-500 text-white text-xs rounded-full px-1.5 py-0.5 leading-none",children:$t})]}),I&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>M(!1)}),E.jsxs("div",{className:"absolute right-0 top-10 z-20 w-80 bg-neutral-900 border border-neutral-700 rounded-xl shadow-2xl p-4 space-y-4",children:[E.jsxs("div",{className:"flex items-center justify-between",children:[E.jsx("span",{className:"text-sm font-semibold text-white",children:"Filter abonnementen"}),se&&E.jsx("button",{onClick:Vt,className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"Wis alles"})]}),E.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-neutral-800",children:[E.jsxs("div",{children:[E.jsx("p",{className:"text-sm text-white",children:"Alleen meegenomen"}),E.jsx("p",{className:"text-xs text-neutral-500",children:"Toon alleen aan-gezette abonnementen"})]}),E.jsx("button",{onClick:Ft,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${p.onlyIncluded?"bg-green-500":"bg-neutral-600"}`,children:E.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform ${p.onlyIncluded?"translate-x-6":"translate-x-1"}`})})]}),E.jsxs("div",{children:[E.jsx("p",{className:"text-xs text-neutral-500 uppercase tracking-wide mb-2",children:"Type"}),E.jsx("div",{className:"flex flex-wrap gap-1.5",children:P.map(U=>E.jsx("button",{onClick:()=>Nt(U),className:`px-2.5 py-1 rounded-full text-xs font-medium transition-colors ${p.types.includes(U)?"bg-orange-500 text-white":"bg-neutral-700 text-neutral-300 hover:bg-neutral-600"}`,children:U},U))})]}),E.jsxs("div",{children:[E.jsx("p",{className:"text-xs text-neutral-500 uppercase tracking-wide mb-2",children:"Sectie"}),E.jsx("div",{className:"flex flex-wrap gap-1.5",children:u2.map(U=>E.jsx("button",{onClick:()=>Ot(U),className:`px-2.5 py-1 rounded-full text-xs font-medium transition-colors ${p.sections.includes(U)?"bg-blue-500 text-white":"bg-neutral-700 text-neutral-300 hover:bg-neutral-600"}`,children:U},U))})]}),E.jsxs("p",{className:"text-xs text-neutral-500 pt-1 border-t border-neutral-800",children:[jt.length," van ",d.length," abonnementen zichtbaar"]})]})]})]})]}),E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"text-neutral-400 text-left border-b border-neutral-700",children:[E.jsx("th",{className:"pb-2 font-medium",children:"Abonnement"}),E.jsx("th",{className:"pb-2 font-medium",children:"Categorie"}),E.jsx("th",{className:"pb-2 font-medium",children:"Sectie"}),E.jsx("th",{className:"pb-2 font-medium",children:"Periode"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Prijs"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Deelnemers"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Omzet excl."}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"BTW"}),E.jsx("th",{className:"pb-2 font-medium text-center",children:"Meenemen"})]})}),E.jsxs("tbody",{className:"text-neutral-200",children:[jt.length===0&&E.jsx("tr",{children:E.jsx("td",{colSpan:9,className:"py-4 text-neutral-500 text-center",children:d.length===0?"Geen actieve abonnementen":"Geen resultaten voor dit filter"})}),jt.map(U=>{const Lt=n==null?void 0:n.subscription_revenue.rows.find(Kt=>Kt.id===U.id);return E.jsxs("tr",{className:`border-b border-neutral-800 ${U.include_in_pnl?"":"opacity-50"}`,children:[E.jsxs("td",{className:"py-2",children:[E.jsx("div",{className:"font-medium",children:U.titel}),E.jsx("div",{className:"text-xs text-neutral-500",children:U.subscriptions_number})]}),E.jsx("td",{className:"py-2 text-neutral-400 text-xs",children:U.category}),E.jsx("td",{className:"py-2",children:E.jsx("div",{className:"flex flex-wrap gap-1",children:(U.sections||[]).map(Kt=>E.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-neutral-700 text-neutral-300",children:Kt},Kt))})}),E.jsx("td",{className:"py-2 text-neutral-400 capitalize text-xs",children:U.periode}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.price_item)}),E.jsx("td",{className:"py-2 text-right",children:E.jsx("span",{className:`font-semibold ${U.subscriber_count>0?"text-blue-400":"text-neutral-500"}`,children:U.subscriber_count})}),E.jsx("td",{className:"py-2 text-right",children:U.include_in_pnl&&Lt?E.jsx("span",{className:"text-green-400",children:Pt(Lt.total_excl)}):E.jsx("span",{className:"text-neutral-600",children:"â"})}),E.jsx("td",{className:"py-2 text-right",children:U.include_in_pnl&&Lt?E.jsx("span",{className:"text-neutral-400",children:Pt(Lt.btw)}):E.jsx("span",{className:"text-neutral-600",children:"â"})}),E.jsx("td",{className:"py-2 text-center",children:E.jsx("button",{onClick:()=>pt(U.id,!U.include_in_pnl),disabled:y===U.id,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none disabled:opacity-50 ${U.include_in_pnl?"bg-green-500":"bg-neutral-600"}`,"aria-label":U.include_in_pnl?"Uitzetten":"Aanzetten",children:E.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform ${U.include_in_pnl?"translate-x-6":"translate-x-1"}`})})})]},U.id)}),n&&n.subscription_revenue.rows.length>0&&E.jsxs("tr",{className:"font-semibold",children:[E.jsx("td",{className:"py-2",colSpan:6,children:"Totaal abonnementen"}),E.jsx("td",{className:"py-2 text-right text-green-400",children:Pt(n.subscription_revenue.total_excl)}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:Pt(n.subscription_revenue.total_btw)}),E.jsx("td",{})]})]})]})]}),E.jsxs(wi,{title:"Inkomsten (abonnementen)",icon:"trending_up",children:[E.jsxs("table",{className:"w-full text-sm mb-6",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"text-neutral-400 text-left border-b border-neutral-700",children:[E.jsx("th",{className:"pb-2 font-medium",children:"Omschrijving"}),E.jsx("th",{className:"pb-2 font-medium",children:"Categorie"}),E.jsx("th",{className:"pb-2 font-medium",children:"Eigen periode"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Bedrag excl."}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Prorata excl."}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"BTW"}),E.jsx("th",{className:"pb-2"})]})}),E.jsxs("tbody",{className:"text-neutral-200",children:[n.income_entries.rows.length===0&&E.jsx("tr",{children:E.jsx("td",{colSpan:7,className:"py-4 text-neutral-500 text-center",children:"Nog geen inkomstenposten toegevoegd"})}),n.income_entries.rows.map(U=>E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2",children:U.description}),E.jsx("td",{className:"py-2 text-neutral-400",children:U.category||"â"}),E.jsx("td",{className:"py-2 text-neutral-400 capitalize",children:U.own_period}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.amount_excl_btw)}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.prorated_excl)}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:Pt(U.btw)}),E.jsx("td",{className:"py-2 text-right",children:E.jsx("button",{onClick:()=>Jt(U.id),className:"text-red-500 hover:text-red-400 text-xs",children:"Verwijder"})})]},U.id)),n.income_entries.rows.length>0&&E.jsxs("tr",{className:"font-semibold",children:[E.jsx("td",{className:"py-2",colSpan:4,children:"Totaal"}),E.jsx("td",{className:"py-2 text-right text-green-400",children:Pt(n.income_entries.total_excl)}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:Pt(n.income_entries.total_btw)}),E.jsx("td",{})]})]})]}),E.jsxs("div",{className:"bg-neutral-900 rounded-lg p-4 border border-neutral-700",children:[E.jsx("p",{className:"text-sm font-medium text-neutral-300 mb-3",children:"Inkomstenpost toevoegen"}),Z&&E.jsx("p",{className:"text-red-400 text-xs mb-2",children:Z}),E.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[E.jsx("input",{className:"col-span-2 sm:col-span-1 bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-green-500",placeholder:"Omschrijving *",value:it,onChange:U=>ot(U.target.value)}),E.jsx("input",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-green-500",placeholder:"Bedrag excl. BTW *",type:"number",step:"0.01",value:lt,onChange:U=>tt(U.target.value)}),E.jsx("input",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-green-500",placeholder:"BTW % (bijv. 21)",type:"number",value:ct,onChange:U=>St(U.target.value)}),E.jsxs("select",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-green-500",value:vt,onChange:U=>N(U.target.value),children:[E.jsx("option",{value:"week",children:"Per week"}),E.jsx("option",{value:"month",children:"Per maand"}),E.jsx("option",{value:"year",children:"Per jaar"})]}),E.jsx("input",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-green-500",placeholder:"Categorie (bijv. WI)",value:
171B,onChange:U=>D(U.target.value)}),E.jsx("button",{onClick:Et,disabled:H,className:"bg-green-600 hover:bg-green-700 disabled:opacity-50 text-white rounded px-4 py-2 text-sm font-medium transition-colors",children:H?"Toevoegenâ¦":"Toevoegen"})]})]})]}),E.jsx(wi,{title:"Omzet (topups)",icon:"payments",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"text-neutral-400 text-left border-b border-neutral-700",children:[E.jsx("th",{className:"pb-2 font-medium",children:"Post"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Bedrag"})]})}),E.jsxs("tbody",{className:"text-neutral-200",children:[E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2",children:"Omzet incl. BTW"}),E.jsx("td",{className:"py-2 text-right",children:Pt(n.revenue.topups_incl??n.revenue.incl_btw)})]}),E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2 text-neutral-400",children:"Af: BTW ontvangen"}),E.jsxs("td",{className:"py-2 text-right text-neutral-400",children:["- ",Pt(n.revenue.btw)]})]}),E.jsxs("tr",{className:"font-semibold",children:[E.jsx("td",{className:"py-2",children:"Omzet excl. BTW"}),E.jsx("td",{className:"py-2 text-right text-orange-400",children:Pt(n.revenue.topups_excl??n.revenue.excl_btw)})]})]})]})}),E.jsx(wi,{title:"Inkoop AI kosten",icon:"smart_toy",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"text-neutral-400 text-left border-b border-neutral-700",children:[E.jsx("th",{className:"pb-2 font-medium",children:"Provider"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Kosten"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Calls"})]})}),E.jsxs("tbody",{className:"text-neutral-200",children:[n.ai_costs.by_client.length===0&&E.jsx("tr",{children:E.jsx("td",{colSpan:3,className:"py-4 text-neutral-500 text-center",children:"Geen AI gebruik in deze periode"})}),n.ai_costs.by_client.map(U=>E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2 capitalize",children:U.client||"onbekend"}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.cost)}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:U.calls.toLocaleString("nl-NL")})]},U.client)),E.jsxs("tr",{className:"font-semibold",children:[E.jsx("td",{className:"py-2",children:"Totaal"}),E.jsx("td",{className:"py-2 text-right text-red-400",children:Pt(n.ai_costs.total)}),E.jsx("td",{})]})]})]})}),E.jsxs(wi,{title:"Operationele kosten",icon:"receipt_long",children:[E.jsxs("table",{className:"w-full text-sm mb-6",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"text-neutral-400 text-left border-b border-neutral-700",children:[E.jsx("th",{className:"pb-2 font-medium",children:"Omschrijving"}),E.jsx("th",{className:"pb-2 font-medium",children:"Categorie"}),E.jsx("th",{className:"pb-2 font-medium",children:"Eigen periode"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Bedrag excl."}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Prorata excl."}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"BTW"}),E.jsx("th",{className:"pb-2"})]})}),E.jsxs("tbody",{className:"text-neutral-200",children:[n.operational_costs.rows.length===0&&E.jsx("tr",{children:E.jsx("td",{colSpan:7,className:"py-4 text-neutral-500 text-center",children:"Nog geen operationele kosten toegevoegd"})}),n.operational_costs.rows.map(U=>E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2",children:U.description}),E.jsx("td",{className:"py-2 text-neutral-400",children:U.category||"â"}),E.jsx("td",{className:"py-2 text-neutral-400 capitalize",children:U.own_period}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.amount_excl_btw)}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.prorated_excl)}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:Pt(U.btw)}),E.jsx("td",{className:"py-2 text-right",children:E.jsx("button",{onClick:()=>Xt(U.id),className:"text-red-500 hover:text-red-400 text-xs",children:"Verwijder"})})]},U.id)),n.operational_costs.rows.length>0&&E.jsxs("tr",{className:"font-semibold",children:[E.jsx("td",{className:"py-2",colSpan:4,children:"Totaal"}),E.jsx("td",{className:"py-2 text-right text-red-400",children:Pt(n.operational_costs.total_excl)}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:Pt(n.operational_costs.total_btw)}),E.jsx("td",{})]})]})]}),E.jsxs("div",{className:"bg-neutral-900 rounded-lg p-4 border border-neutral-700",children:[E.jsx("p",{className:"text-sm font-medium text-neutral-300 mb-3",children:"Kostenpost toevoegen"}),z&&E.jsx("p",{className:"text-red-400 text-xs mb-2",children:z}),E.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[E.jsx("input",{className:"col-span-2 sm:col-span-1 bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-orange-500",placeholder:"Omschrijving *",value:k,onChange:U=>J(U.target.value)}),E.jsx("input",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-orange-500",placeholder:"Bedrag excl. BTW *",type:"number",step:"0.01",value:X,onChange:U=>rt(U.target.value)}),E.jsx("input",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-orange-500",placeholder:"BTW % (bijv. 21)",type:"number",value:mt,onChange:U=>At(U.target.value)}),E.jsxs("select",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-orange-500",value:It,onChange:U=>nt(U.target.value),children:[E.jsx("option",{value:"week",children:"Per week"}),E.jsx("option",{value:"month",children:"Per maand"}),E.jsx("option",{value:"year",children:"Per jaar"})]}),E.jsx("input",{className:"bg-neutral-800 border border-neutral-700 rounded px-3 py-2 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-orange-500",placeholder:"Categorie (optioneel)",value:W,onChange:U=>gt(U.target.value)}),E.jsx("button",{onClick:wt,disabled:L,className:"bg-orange-500 hover:bg-orange-600 disabled:opacity-50 text-white rounded px-4 py-2 text-sm font-medium transition-colors",children:L?"Toevoegenâ¦":"Toevoegen"})]})]})]}),E.jsx(wi,{title:"BTW uitsplitsing",icon:"account_balance",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"text-neutral-400 text-left border-b border-neutral-700",children:[E.jsx("th",{className:"pb-2 font-medium",children:"Post"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Bedrag"})]})}),E.jsxs("tbody",{className:"text-neutral-200",children:[E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2",children:"BTW ontvangen van klanten"}),E.jsx("td",{className:"py-2 text-right text-green-400",children:Pt(n.btw_summary.ontvangen)})]}),E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2",children:"BTW op operationele kosten (aftrekbaar)"}),E.jsxs("td",{className:"py-2 text-right text-red-400",children:["- ",Pt(n.btw_summary.op_operationeel)]})]}),E.jsxs("tr",{className:"font-semibold",children:[E.jsx("td",{className:"py-2",children:"Te betalen / te ontvangen BTW"}),E.jsx("td",{className:`py-2 text-right ${n.btw_summary.te_betalen>=0?"text-orange-400":"text-green-400"}`,children:Pt(n.btw_summary.te_betalen)})]})]})]})}),E.jsx(wi,{title:"Per team / site profiel",icon:"groups",children:E.jsx("div",{className:"overflow-x-auto",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"text-neutral-400 text-left border-b border-neutral-700",children:[E.jsx("th",{className:"pb-2 font-medium",children:"Team"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Users"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Omzet incl."}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"BTW"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Omzet excl."}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"AI kosten"}),E.jsx("th",{className:"pb-2 font-medium text-right",children:"Marge â¬"})]})}),E.jsxs("tbody",{className:"text-neutral-200",children:[n.per_site.length===0&&E.jsx("tr",{children:E.jsx("td",{colSpan:7,className:"py-4 text-neutral-500 text-center",children:"Geen data"})}),n.per_site.map((U,Lt)=>E.jsxs("tr",{className:"border-b border-neutral-800",children:[E.jsx("td",{className:"py-2 font-medium",children:U.sp_name}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:U.user_count}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.revenue_incl)}),E.jsx("td",{className:"py-2 text-right text-neutral-400",children:Pt(U.btw)}),E.jsx("td",{className:"py-2 text-right",children:Pt(U.revenue_excl)}),E.jsx("td",{className:"py-2 text-right text-red-400",children:Pt(U.ai_cost)}),E.jsx("td",{className:`py-2 text-right font-semibold ${U.margin_eur>=0?"text-green-400":"text-red-400"}`,children:Pt(U.margin_eur)})]},U.sp_id??`none-${Lt}`))]})]})})})]})]})})}function wi({title:e,icon:t,children:r}){return E.jsxs("div",{className:"bg-neutral-800 rounded-xl p-6",children:[E.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[E.jsx("span",{className:"material-icons text-orange-400 text-xl",children:t}),E.jsx("h2",{className:"text-base font-semibold text-white",children:e})]}),r]})}const v2=Object.freeze(Object.defineProperty({__proto__:null,default:c2},Symbol.toStringTag,{value:"Module"}));
171export{v2 as W,Se as _};
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.