@geops/rvf-mobility-web-component 0.1.125 → 0.1.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/ExportMenu-HGGM7Z53.js +229 -0
- package/dist/chunk-5TBO732O.js +1 -0
- package/dist/chunk-7SZT7G2L.js +3 -0
- package/dist/chunk-AOWOBR67.js +37 -0
- package/dist/chunk-CZ6RUAVW.js +3 -0
- package/dist/chunk-FK6H3RFT.js +1 -0
- package/dist/chunk-L5TSFF6Q.js +6 -0
- package/dist/chunk-W5KNTEOZ.js +1 -0
- package/dist/deflate-7Y7TJOU7.js +1 -0
- package/dist/html2canvas-HSPYX66M.js +28 -0
- package/dist/index.es-LIBYYWEU.js +23 -0
- package/dist/index.js +3563 -0
- package/dist/indexDoc.js +1 -0
- package/dist/jpeg-IRWWL5ZF.js +1 -0
- package/dist/lerc-NVL4MKRG.js +6 -0
- package/dist/lzw-EHQHNZB6.js +1 -0
- package/dist/packbits-PQSBS4GQ.js +1 -0
- package/dist/purify.es-4R37HRTQ.js +7 -0
- package/dist/raw-OK63VTT6.js +1 -0
- package/dist/webimage-DLGKDXZD.js +1 -0
- package/dist/zstd-JFJYRN7P.js +1 -0
- package/doc/public/ExportMenu-HGGM7Z53.js +229 -0
- package/doc/public/chunk-5TBO732O.js +1 -0
- package/doc/public/chunk-7SZT7G2L.js +3 -0
- package/doc/public/chunk-AOWOBR67.js +37 -0
- package/doc/public/chunk-CZ6RUAVW.js +3 -0
- package/doc/public/chunk-FK6H3RFT.js +1 -0
- package/doc/public/chunk-L5TSFF6Q.js +6 -0
- package/doc/public/chunk-W5KNTEOZ.js +1 -0
- package/doc/public/deflate-7Y7TJOU7.js +1 -0
- package/doc/public/html2canvas-HSPYX66M.js +28 -0
- package/doc/public/index.es-LIBYYWEU.js +23 -0
- package/doc/public/jpeg-IRWWL5ZF.js +1 -0
- package/doc/public/lerc-NVL4MKRG.js +6 -0
- package/doc/public/lzw-EHQHNZB6.js +1 -0
- package/doc/public/packbits-PQSBS4GQ.js +1 -0
- package/doc/public/purify.es-4R37HRTQ.js +7 -0
- package/doc/public/raw-OK63VTT6.js +1 -0
- package/doc/public/webimage-DLGKDXZD.js +1 -0
- package/doc/public/zstd-JFJYRN7P.js +1 -0
- package/index.js +536 -65
- package/package.json +1 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import{a as Le}from"./chunk-FK6H3RFT.js";import{Hb as Oh,Ib as Bh,Kb as Mh,Mb as Dh,Nb as nn,Oa as Fh,Qb as qh,Ra as Eh,Rb as Uh,Sb as zh,h as ya,p as ps,q as kh}from"./chunk-7SZT7G2L.js";import{Sa as Rh,t as Ch,wa as Th,xa as wa,y as Ih}from"./chunk-CZ6RUAVW.js";import{a as ds,b as jh}from"./chunk-L5TSFF6Q.js";import"./chunk-5TBO732O.js";function Tu({children:e,className:t,onChange:n}){return nn("div",{className:"text-grey relative flex items-center",children:[nn("select",{className:`h-[32px] cursor-pointer appearance-none rounded-[12px] border border-current bg-white px-[13px] text-[16px] leading-[22px] disabled:cursor-default @sm/main:h-[36px] @md/main:h-[40px] ${t}`,onChange:n,children:e}),nn(Uh,{className:"pointer-events-none absolute right-[8px]"})]})}var lo=Tu;var $n=Uint8Array,Mn=Uint16Array,ys=Int32Array,ws=new $n([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]),xs=new $n([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]),Hh=new $n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Yh=function(e,t){for(var n=new Mn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new ys(n[30]),i=1;i<30;++i)for(var s=n[i];s<n[i+1];++s)o[s]=s-n[i]<<5|i;return{b:n,r:o}},Jh=Yh(ws,2),Ru=Jh.b,ms=Jh.r;Ru[28]=258,ms[258]=28;var Xh=Yh(xs,0),wf=Xh.b,Wh=Xh.r,vs=new Mn(32768);for(ve=0;ve<32768;++ve)kr=(ve&43690)>>1|(ve&21845)<<1,kr=(kr&52428)>>2|(kr&13107)<<2,kr=(kr&61680)>>4|(kr&3855)<<4,vs[ve]=((kr&65280)>>8|(kr&255)<<8)>>1;var kr,ve,La=(function(e,t,n){for(var i=e.length,o=0,s=new Mn(t);o<i;++o)e[o]&&++s[e[o]-1];var f=new Mn(t);for(o=1;o<t;++o)f[o]=f[o-1]+s[o-1]<<1;var l;if(n){l=new Mn(1<<t);var u=15-t;for(o=0;o<i;++o)if(e[o])for(var g=o<<4|e[o],b=t-e[o],L=f[e[o]-1]++<<b,F=L|(1<<b)-1;L<=F;++L)l[vs[L]>>u]=g}else for(l=new Mn(i),o=0;o<i;++o)e[o]&&(l[o]=vs[f[e[o]-1]++]>>15-e[o]);return l}),pi=new $n(288);for(ve=0;ve<144;++ve)pi[ve]=8;var ve;for(ve=144;ve<256;++ve)pi[ve]=9;var ve;for(ve=256;ve<280;++ve)pi[ve]=7;var ve;for(ve=280;ve<288;++ve)pi[ve]=8;var ve,uo=new $n(32);for(ve=0;ve<32;++ve)uo[ve]=5;var ve,Du=La(pi,9,0);var qu=La(uo,5,0);var Kh=function(e){return(e+7)/8|0},Uu=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new $n(e.subarray(t,n))};var Cr=function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},xa=function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},gs=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var o=n.length,s=n.slice();if(!o)return{t:Zh,l:0};if(o==1){var f=new $n(n[0].s+1);return f[n[0].s]=1,{t:f,l:1}}n.sort(function(dt,xt){return dt.f-xt.f}),n.push({s:-1,f:25001});var l=n[0],u=n[1],g=0,b=1,L=2;for(n[0]={s:-1,f:l.f+u.f,l,r:u};b!=o-1;)l=n[n[g].f<n[L].f?g++:L++],u=n[g!=b&&n[g].f<n[L].f?g++:L++],n[b++]={s:-1,f:l.f+u.f,l,r:u};for(var F=s[0].s,i=1;i<o;++i)s[i].s>F&&(F=s[i].s);var d=new Mn(F+1),M=bs(n[b-1],d,0);if(M>t){var i=0,O=0,R=M-t,k=1<<R;for(s.sort(function(xt,Pt){return d[Pt.s]-d[xt.s]||xt.f-Pt.f});i<o;++i){var Y=s[i].s;if(d[Y]>t)O+=k-(1<<M-d[Y]),d[Y]=t;else break}for(O>>=R;O>0;){var X=s[i].s;d[X]<t?O-=1<<t-d[X]++-1:++i}for(;i>=0&&O;--i){var et=s[i].s;d[et]==t&&(--d[et],++O)}M=t}return{t:new $n(d),l:M}},bs=function(e,t,n){return e.s==-1?Math.max(bs(e.l,t,n+1),bs(e.r,t,n+1)):t[e.s]=n},Vh=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Mn(++t),i=0,o=e[0],s=1,f=function(u){n[i++]=u},l=1;l<=t;++l)if(e[l]==o&&l!=t)++s;else{if(!o&&s>2){for(;s>138;s-=138)f(32754);s>2&&(f(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(f(o),--s;s>6;s-=6)f(8304);s>2&&(f(s-3<<5|8208),s=0)}for(;s--;)f(o);s=1,o=e[l]}return{c:n.subarray(0,i),n:t}},Aa=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},$h=function(e,t,n){var i=n.length,o=Kh(t+2);e[o]=i&255,e[o+1]=i>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var s=0;s<i;++s)e[o+s+4]=n[s];return(o+4+i)*8},Gh=function(e,t,n,i,o,s,f,l,u,g,b){Cr(t,b++,n),++o[256];for(var L=gs(o,15),F=L.t,d=L.l,M=gs(s,15),O=M.t,R=M.l,k=Vh(F),Y=k.c,X=k.n,et=Vh(O),dt=et.c,xt=et.n,Pt=new Mn(19),tt=0;tt<Y.length;++tt)++Pt[Y[tt]&31];for(var tt=0;tt<dt.length;++tt)++Pt[dt[tt]&31];for(var U=gs(Pt,7),pt=U.t,S=U.l,E=19;E>4&&!pt[Hh[E-1]];--E);var q=g+5<<3,D=Aa(o,pi)+Aa(s,uo)+f,nt=Aa(o,F)+Aa(s,O)+f+14+3*E+Aa(Pt,pt)+2*Pt[16]+3*Pt[17]+7*Pt[18];if(u>=0&&q<=D&&q<=nt)return $h(t,b,e.subarray(u,u+g));var at,ht,Q,ut;if(Cr(t,b,1+(nt<D)),b+=2,nt<D){at=La(F,d,0),ht=F,Q=La(O,R,0),ut=O;var At=La(pt,S,0);Cr(t,b,X-257),Cr(t,b+5,xt-1),Cr(t,b+10,E-4),b+=14;for(var tt=0;tt<E;++tt)Cr(t,b+3*tt,pt[Hh[tt]]);b+=3*E;for(var vt=[Y,dt],x=0;x<2;++x)for(var B=vt[x],tt=0;tt<B.length;++tt){var j=B[tt]&31;Cr(t,b,At[j]),b+=pt[j],j>15&&(Cr(t,b,B[tt]>>5&127),b+=B[tt]>>12)}}else at=Du,ht=pi,Q=qu,ut=uo;for(var tt=0;tt<l;++tt){var z=i[tt];if(z>255){var j=z>>18&31;xa(t,b,at[j+257]),b+=ht[j+257],j>7&&(Cr(t,b,z>>23&31),b+=ws[j]);var V=z&31;xa(t,b,Q[V]),b+=ut[V],V>3&&(xa(t,b,z>>5&8191),b+=xs[V])}else xa(t,b,at[z]),b+=ht[z]}return xa(t,b,at[256]),b+ht[256]},zu=new ys([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Zh=new $n(0),Hu=function(e,t,n,i,o,s){var f=s.z||e.length,l=new $n(i+f+5*(1+Math.ceil(f/7e3))+o),u=l.subarray(i,l.length-o),g=s.l,b=(s.r||0)&7;if(t){b&&(u[0]=s.r>>3);for(var L=zu[t-1],F=L>>13,d=L&8191,M=(1<<n)-1,O=s.p||new Mn(32768),R=s.h||new Mn(M+1),k=Math.ceil(n/3),Y=2*k,X=function(Dt){return(e[Dt]^e[Dt+1]<<k^e[Dt+2]<<Y)&M},et=new ys(25e3),dt=new Mn(288),xt=new Mn(32),Pt=0,tt=0,U=s.i||0,pt=0,S=s.w||0,E=0;U+2<f;++U){var q=X(U),D=U&32767,nt=R[q];if(O[D]=nt,R[q]=D,S<=U){var at=f-U;if((Pt>7e3||pt>24576)&&(at>423||!g)){b=Gh(e,u,0,et,dt,xt,tt,pt,E,U-E,b),pt=Pt=tt=0,E=U;for(var ht=0;ht<286;++ht)dt[ht]=0;for(var ht=0;ht<30;++ht)xt[ht]=0}var Q=2,ut=0,At=d,vt=D-nt&32767;if(at>2&&q==X(U-vt))for(var x=Math.min(F,at)-1,B=Math.min(32767,U),j=Math.min(258,at);vt<=B&&--At&&D!=nt;){if(e[U+Q]==e[U+Q-vt]){for(var z=0;z<j&&e[U+z]==e[U+z-vt];++z);if(z>Q){if(Q=z,ut=vt,z>x)break;for(var V=Math.min(vt,z-2),K=0,ht=0;ht<V;++ht){var rt=U-vt+ht&32767,it=O[rt],ft=rt-it&32767;ft>K&&(K=ft,nt=rt)}}}D=nt,nt=O[D],vt+=D-nt&32767}if(ut){et[pt++]=268435456|ms[Q]<<18|Wh[ut];var wt=ms[Q]&31,_t=Wh[ut]&31;tt+=ws[wt]+xs[_t],++dt[257+wt],++xt[_t],S=U+Q,++Pt}else et[pt++]=e[U],++dt[e[U]]}}for(U=Math.max(U,S);U<f;++U)et[pt++]=e[U],++dt[e[U]];b=Gh(e,u,g,et,dt,xt,tt,pt,E,U-E,b),g||(s.r=b&7|u[b/8|0]<<3,b-=7,s.h=R,s.p=O,s.i=U,s.w=S)}else{for(var U=s.w||0;U<f+g;U+=65535){var St=U+65535;St>=f&&(u[b/8|0]=g,St=f),b=$h(u,b+1,e.subarray(U,St))}s.i=f}return Uu(l,0,i+Kh(b)+o)};var Qh=function(){var e=1,t=0;return{p:function(n){for(var i=e,o=t,s=n.length|0,f=0;f!=s;){for(var l=Math.min(f+2655,s);f<l;++f)o+=i+=n[f];i=(i&65535)+15*(i>>16),o=(o&65535)+15*(o>>16)}e=i,t=o},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Wu=function(e,t,n,i,o){if(!o&&(o={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),f=new $n(s.length+e.length);f.set(s),f.set(e,s.length),e=f,o.w=s.length}return Hu(e,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,i,o)};var tl=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};var Vu=function(e,t){var n=t.level,i=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=i<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var o=Qh();o.p(t.dictionary),tl(e,2,o.d())}};function co(e,t){t||(t={});var n=Qh();n.p(e);var i=Wu(e,t,t.dictionary?6:2,4);return Vu(i,t),tl(i,i.length-4,n.d()),i}var Gu=typeof TextDecoder<"u"&&new TextDecoder,Yu=0;try{Gu.decode(Zh,{stream:!0}),Yu=1}catch{}function el(e){if(Array.isArray(e))return e}function nl(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,s,f,l=[],u=!0,g=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=s.call(n)).done)&&(l.push(i.value),l.length!==t);u=!0);}catch(b){g=!0,o=b}finally{try{if(!u&&n.return!=null&&(f=n.return(),Object(f)!==f))return}finally{if(g)throw o}}return l}}function As(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function rl(e,t){if(e){if(typeof e=="string")return As(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?As(e,t):void 0}}function il(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ls(e,t){return el(e)||nl(e,t)||rl(e,t)||il()}function Ns(e,t="utf8"){return new TextDecoder(t).decode(e)}var Ju=new TextEncoder;function al(e){return Ju.encode(e)}var Xu=1024*8,Ku=(()=>{let e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Ss={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},Na=class e{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=Xu,n={}){let i=!1;typeof t=="number"?t=new ArrayBuffer(t):(i=!0,this.lastWrittenByte=t.byteLength);let o=n.offset?n.offset>>>0:0,s=t.byteLength-o,f=o;(ArrayBuffer.isView(t)||t instanceof e)&&(t.byteLength!==t.buffer.byteLength&&(f=t.byteOffset+o),t=t.buffer),i?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,s),this._mark=0,this._marks=[]}available(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(){let 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)){let i=(this.offset+t)*2,o=new Uint8Array(i);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){let i=Ss[n].BYTES_PER_ELEMENT*t,o=this.byteOffset+this.offset,s=this.buffer.slice(o,o+i);if(this.littleEndian===Ku&&n!=="uint8"&&n!=="int8"){let l=new Uint8Array(this.buffer.slice(o,o+i));l.reverse();let u=new Ss[n](l.buffer);return this.offset+=i,u.reverse(),u}let f=new Ss[n](s);return this.offset+=i,f}readInt16(){let t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){let t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){let t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){let t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){let t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){let t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){let t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){let t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let i=0;i<t;i++)n+=this.readChar();return n}readUtf8(t=1){return Ns(this.readBytes(t))}decodeText(t=1,n="utf8"){return Ns(this.readBytes(t),n)}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 n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);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 n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(al(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)}};var sl=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;sl[e]=t}var ol=4294967295;function $u(e,t,n){let i=e;for(let o=0;o<n;o++)i=sl[(i^t[o])&255]^i>>>8;return i}function Zu(e,t){return($u(ol,e,t)^ol)>>>0}function _s(e,t,n){let i=e.readUint32(),o=Zu(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(o!==i)throw new Error(`CRC mismatch for chunk ${n}. Expected ${i}, found ${o}`)}function fo(e,t,n){for(let i=0;i<n;i++)t[i]=e[i]}function po(e,t,n,i){let o=0;for(;o<i;o++)t[o]=e[o];for(;o<n;o++)t[o]=e[o]+t[o-i]&255}function go(e,t,n,i){let o=0;if(n.length===0)for(;o<i;o++)t[o]=e[o];else for(;o<i;o++)t[o]=e[o]+n[o]&255}function mo(e,t,n,i,o){let s=0;if(n.length===0){for(;s<o;s++)t[s]=e[s];for(;s<i;s++)t[s]=e[s]+(t[s-o]>>1)&255}else{for(;s<o;s++)t[s]=e[s]+(n[s]>>1)&255;for(;s<i;s++)t[s]=e[s]+(t[s-o]+n[s]>>1)&255}}function vo(e,t,n,i,o){let s=0;if(n.length===0){for(;s<o;s++)t[s]=e[s];for(;s<i;s++)t[s]=e[s]+t[s-o]&255}else{for(;s<o;s++)t[s]=e[s]+n[s]&255;for(;s<i;s++)t[s]=e[s]+Qu(t[s-o],n[s],n[s-o])&255}}function Qu(e,t,n){let i=e+t-n,o=Math.abs(i-e),s=Math.abs(i-t),f=Math.abs(i-n);return o<=s&&o<=f?e:s<=f?t:n}function hl(e,t,n,i,o,s){switch(e){case 0:fo(t,n,o);break;case 1:po(t,n,o,s);break;case 2:go(t,n,i,o);break;case 3:mo(t,n,i,o,s);break;case 4:vo(t,n,i,o,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}var tc=new Uint16Array([255]),ec=new Uint8Array(tc.buffer),nc=ec[0]===255;function ll(e){let{data:t,width:n,height:i,channels:o,depth:s}=e,f=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(s/8)*o,u=new Uint8Array(i*n*l),g=0;for(let b=0;b<7;b++){let L=f[b],F=Math.ceil((n-L.x)/L.xStep),d=Math.ceil((i-L.y)/L.yStep);if(F<=0||d<=0)continue;let M=F*l,O=new Uint8Array(M);for(let R=0;R<d;R++){let k=t[g++],Y=t.subarray(g,g+M);g+=M;let X=new Uint8Array(M);hl(k,Y,X,O,M,l),O.set(X);for(let et=0;et<F;et++){let dt=L.x+et*L.xStep,xt=L.y+R*L.yStep;if(!(dt>=n||xt>=i))for(let Pt=0;Pt<l;Pt++)u[(xt*n+dt)*l+Pt]=X[et*l+Pt]}}}if(s===16){let b=new Uint16Array(u.buffer);if(nc)for(let L=0;L<b.length;L++)b[L]=rc(b[L]);return b}else return u}function rc(e){return(e&255)<<8|e>>8&255}var ic=new Uint16Array([255]),ac=new Uint8Array(ic.buffer),oc=ac[0]===255,sc=new Uint8Array(0);function Ps(e){let{data:t,width:n,height:i,channels:o,depth:s}=e,f=Math.ceil(s/8)*o,l=Math.ceil(s/8*o*n),u=new Uint8Array(i*l),g=sc,b=0,L,F;for(let d=0;d<i;d++){switch(L=t.subarray(b+1,b+1+l),F=u.subarray(d*l,(d+1)*l),t[b]){case 0:fo(L,F,l);break;case 1:po(L,F,l,f);break;case 2:go(L,F,g,l);break;case 3:mo(L,F,g,l,f);break;case 4:vo(L,F,g,l,f);break;default:throw new Error(`Unsupported filter: ${t[b]}`)}g=F,b+=l+1}if(s===16){let d=new Uint16Array(u.buffer);if(oc)for(let M=0;M<d.length;M++)d[M]=hc(d[M]);return d}else return u}function hc(e){return(e&255)<<8|e>>8&255}var bo=Uint8Array.of(137,80,78,71,13,10,26,10);function ks(e){if(!ul(e.readBytes(bo.length)))throw new Error("wrong PNG signature")}function ul(e){if(e.length<bo.length)return!1;for(let t=0;t<bo.length;t++)if(e[t]!==bo[t])return!1;return!0}var cl="tEXt",uc=0,fl=new TextDecoder("latin1");function cc(e){if(pc(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}var fc=/^[\u0000-\u00FF]*$/;function pc(e){if(!fc.test(e))throw new Error("invalid latin1 text")}function pl(e,t,n){let i=Cs(t);e[i]=dc(t,n-i.length-1)}function Cs(e){for(e.mark();e.readByte()!==uc;);let t=e.offset;e.reset();let n=fl.decode(e.readBytes(t-e.offset-1));return e.skip(1),cc(n),n}function dc(e,t){return fl.decode(e.readBytes(t))}var Nn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Sa={UNKNOWN:-1,DEFLATE:0},yo={UNKNOWN:-1,ADAPTIVE:0},_a={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Pa={NONE:0,BACKGROUND:1,PREVIOUS:2},wo={SOURCE:0,OVER:1};var ka=class extends Na{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,n={}){super(t);let{checkCrc:i=!1}=n;this._checkCrc=i,this._inflator=new ds,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=Sa.UNKNOWN,this._filterMethod=yo.UNKNOWN,this._interlaceMethod=_a.UNKNOWN,this._colorType=Nn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ks(this);!this._end;){let t=this.readUint32(),n=this.readChars(4);this.decodeChunk(t,n)}return this.decodeImage(),this._png}decodeApng(){for(ks(this);!this._end;){let t=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(t,n)}return this.decodeApngImage(),this._apng}decodeChunk(t,n){let i=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case cl:pl(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?_s(this,t+4,n):this.skip(4)}decodeApngChunk(t,n){let i=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,n),this.offset=i+t;break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?_s(this,t+4,n):this.skip(4)}decodeIHDR(){let t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=gc(this.readUint8());let n=this.readUint8();this._colorType=n;let i;switch(n){case Nn.GREYSCALE:i=1;break;case Nn.TRUECOLOUR:i=3;break;case Nn.INDEXED_COLOUR:i=1;break;case Nn.GREYSCALE_ALPHA:i=2;break;case Nn.TRUECOLOUR_ALPHA:i=4;break;case Nn.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==Sa.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(){let t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);let n=t/3;this._hasPalette=!0;let i=[];this._palette=i;for(let o=0;o<n;o++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;let n=t,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let n=t,i=this.offset+this.byteOffset;if(i+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case Nn.GREYSCALE:case Nn.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let n=0;n<t/2;n++)this._transparency[n]=this.readUint16();break}case Nn.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let n=0;for(;n<t;n++){let i=this.readByte();this._palette[n].push(i)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case Nn.UNKNOWN:case Nn.GREYSCALE_ALPHA:case Nn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){let n=Cs(this),i=this.readUint8();if(i!==Sa.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);let o=this.readBytes(t-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:jh(o)}}decodepHYs(){let t=this.readUint32(),n=this.readUint32(),i=this.readByte();this._png.resolution={x:t,y:n,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){let n={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(t);if(i){if(i.data=Ps({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)n.data=i.data;else{let o=this._apng.frames.at(t-1);this.disposeFrame(i,o,n),this.addFrameDataToCanvas(n,i)}this._apng.frames.push(n)}}return this._apng}disposeFrame(t,n,i){switch(t.disposeOp){case Pa.NONE:break;case Pa.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let s=0;s<this._png.width;s++){let f=(o*t.width+s)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[f+l]=0}break;case Pa.PREVIOUS:i.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,n){let i=1<<this._png.depth,o=(s,f)=>{let l=((s+n.yOffset)*this._png.width+n.xOffset+f)*this._png.channels,u=(s*n.width+f)*this._png.channels;return{index:l,frameIndex:u}};switch(n.blendOp){case wo.SOURCE:for(let s=0;s<n.height;s++)for(let f=0;f<n.width;f++){let{index:l,frameIndex:u}=o(s,f);for(let g=0;g<this._png.channels;g++)t.data[l+g]=n.data[u+g]}break;case wo.OVER:for(let s=0;s<n.height;s++)for(let f=0;f<n.width;f++){let{index:l,frameIndex:u}=o(s,f);for(let g=0;g<this._png.channels;g++){let b=n.data[u+this._png.channels-1]/i,L=g%(this._png.channels-1)===0?1:n.data[u+g],F=Math.floor(b*L+(1-b)*t.data[l+g]);t.data[l+g]+=F}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==yo.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===_a.NO_INTERLACE)this._png.data=Ps({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===_a.ADAM7)this._png.data=ll({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let t=this._inflator.result,n=this._frames.at(-1);n?n.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Pa.NONE,blendOp:wo.SOURCE,data:t}),this._inflator=new ds,this._writingDataChunks=!1}};function gc(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var dl;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(dl||(dl={}));function gl(e,t){return new ka(e,t).decode()}var Xt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Is(){Xt.console&&typeof Xt.console.log=="function"&&Xt.console.log.apply(Xt.console,arguments)}var _e={log:Is,warn:function(e){Xt.console&&(typeof Xt.console.warn=="function"?Xt.console.warn.apply(Xt.console,arguments):Is.call(null,arguments))},error:function(e){Xt.console&&(typeof Xt.console.error=="function"?Xt.console.error.apply(Xt.console,arguments):Is(e))}};function Fs(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){di(i.response,t,n)},i.onerror=function(){_e.error("could not download file")},i.send()}function ml(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function xo(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var di=Xt.saveAs||((typeof window>"u"?"undefined":Le(window))!=="object"||window!==Xt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=Xt.URL||Xt.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?ml(o.href)?Fs(e,t,n):xo(o,o.target="_blank"):xo(o)):(o.href=i.createObjectURL(e),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){xo(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(ml(e))Fs(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){xo(i)})}else navigator.msSaveOrOpenBlob((function(o,s){return s===void 0?s={autoBom:!1}:Le(s)!=="object"&&(_e.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o})(e,n),t)}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof e=="string")return Fs(e,t,n);var o=e.type==="application/octet-stream",s=/constructor/i.test(Xt.HTMLElement)||Xt.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||o&&s)&&(typeof FileReader>"u"?"undefined":Le(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var b=l.result;b=f?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=b:location=b,i=null},l.readAsDataURL(e)}else{var u=Xt.URL||Xt.webkitURL,g=u.createObjectURL(e);i?i.location=g:location.href=g,i=null,setTimeout(function(){u.revokeObjectURL(g)},4e4)}});function Rl(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:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],i=0;i<n.length;i++){var o=n[i].re,s=n[i].process,f=o.exec(e);f&&(t=s(f),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),g=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),g.length==1&&(g="0"+g),"#"+l+u+g}}var No=Xt.atob.bind(Xt),vl=Xt.btoa.bind(Xt);function Es(e,t){var n=e[0],i=e[1],o=e[2],s=e[3];n=gn(n,i,o,s,t[0],7,-680876936),s=gn(s,n,i,o,t[1],12,-389564586),o=gn(o,s,n,i,t[2],17,606105819),i=gn(i,o,s,n,t[3],22,-1044525330),n=gn(n,i,o,s,t[4],7,-176418897),s=gn(s,n,i,o,t[5],12,1200080426),o=gn(o,s,n,i,t[6],17,-1473231341),i=gn(i,o,s,n,t[7],22,-45705983),n=gn(n,i,o,s,t[8],7,1770035416),s=gn(s,n,i,o,t[9],12,-1958414417),o=gn(o,s,n,i,t[10],17,-42063),i=gn(i,o,s,n,t[11],22,-1990404162),n=gn(n,i,o,s,t[12],7,1804603682),s=gn(s,n,i,o,t[13],12,-40341101),o=gn(o,s,n,i,t[14],17,-1502002290),n=mn(n,i=gn(i,o,s,n,t[15],22,1236535329),o,s,t[1],5,-165796510),s=mn(s,n,i,o,t[6],9,-1069501632),o=mn(o,s,n,i,t[11],14,643717713),i=mn(i,o,s,n,t[0],20,-373897302),n=mn(n,i,o,s,t[5],5,-701558691),s=mn(s,n,i,o,t[10],9,38016083),o=mn(o,s,n,i,t[15],14,-660478335),i=mn(i,o,s,n,t[4],20,-405537848),n=mn(n,i,o,s,t[9],5,568446438),s=mn(s,n,i,o,t[14],9,-1019803690),o=mn(o,s,n,i,t[3],14,-187363961),i=mn(i,o,s,n,t[8],20,1163531501),n=mn(n,i,o,s,t[13],5,-1444681467),s=mn(s,n,i,o,t[2],9,-51403784),o=mn(o,s,n,i,t[7],14,1735328473),n=vn(n,i=mn(i,o,s,n,t[12],20,-1926607734),o,s,t[5],4,-378558),s=vn(s,n,i,o,t[8],11,-2022574463),o=vn(o,s,n,i,t[11],16,1839030562),i=vn(i,o,s,n,t[14],23,-35309556),n=vn(n,i,o,s,t[1],4,-1530992060),s=vn(s,n,i,o,t[4],11,1272893353),o=vn(o,s,n,i,t[7],16,-155497632),i=vn(i,o,s,n,t[10],23,-1094730640),n=vn(n,i,o,s,t[13],4,681279174),s=vn(s,n,i,o,t[0],11,-358537222),o=vn(o,s,n,i,t[3],16,-722521979),i=vn(i,o,s,n,t[6],23,76029189),n=vn(n,i,o,s,t[9],4,-640364487),s=vn(s,n,i,o,t[12],11,-421815835),o=vn(o,s,n,i,t[15],16,530742520),n=bn(n,i=vn(i,o,s,n,t[2],23,-995338651),o,s,t[0],6,-198630844),s=bn(s,n,i,o,t[7],10,1126891415),o=bn(o,s,n,i,t[14],15,-1416354905),i=bn(i,o,s,n,t[5],21,-57434055),n=bn(n,i,o,s,t[12],6,1700485571),s=bn(s,n,i,o,t[3],10,-1894986606),o=bn(o,s,n,i,t[10],15,-1051523),i=bn(i,o,s,n,t[1],21,-2054922799),n=bn(n,i,o,s,t[8],6,1873313359),s=bn(s,n,i,o,t[15],10,-30611744),o=bn(o,s,n,i,t[6],15,-1560198380),i=bn(i,o,s,n,t[13],21,1309151649),n=bn(n,i,o,s,t[4],6,-145523070),s=bn(s,n,i,o,t[11],10,-1120210379),o=bn(o,s,n,i,t[2],15,718787259),i=bn(i,o,s,n,t[9],21,-343485551),e[0]=Gr(n,e[0]),e[1]=Gr(i,e[1]),e[2]=Gr(o,e[2]),e[3]=Gr(s,e[3])}function Fo(e,t,n,i,o,s){return t=Gr(Gr(t,e),Gr(i,s)),Gr(t<<o|t>>>32-o,n)}function gn(e,t,n,i,o,s,f){return Fo(t&n|~t&i,e,t,o,s,f)}function mn(e,t,n,i,o,s,f){return Fo(t&i|n&~i,e,t,o,s,f)}function vn(e,t,n,i,o,s,f){return Fo(t^n^i,e,t,o,s,f)}function bn(e,t,n,i,o,s,f){return Fo(n^(t|~i),e,t,o,s,f)}function Dl(e){var t,n=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Es(i,mc(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(Es(i,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,Es(i,o),i}function mc(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var bl="0123456789abcdef".split("");function vc(e){for(var t="",n=0;n<4;n++)t+=bl[e>>8*n+4&15]+bl[e>>8*n&15];return t}function bc(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Rs(e){return Dl(e).map(bc).join("")}var yc=(function(e){for(var t=0;t<e.length;t++)e[t]=vc(e[t]);return e.join("")})(Dl("hello"))!="5d41402abc4b2a76b9719d911017c592";function Gr(e,t){if(yc){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function Ds(e,t){var n,i,o,s;if(e!==n){for(var f=(o=e,s=1+(256/e.length|0),new Array(s+1).join(o)),l=[],u=0;u<256;u++)l[u]=u;var g=0;for(u=0;u<256;u++){var b=l[u];g=(g+b+f.charCodeAt(u))%256,l[u]=l[g],l[g]=b}n=e,i=l}else l=i;var L=t.length,F=0,d=0,M="";for(u=0;u<L;u++)d=(d+(b=l[F=(F+1)%256]))%256,l[F]=l[d],l[d]=b,f=l[(l[F]+l[d])%256],M+=String.fromCharCode(t.charCodeAt(u)^f);return M}var yl={print:4,modify:8,copy:16,"annot-forms":32};function Hi(e,t,n,i){this.v=1,this.r=2;var o=192;e.forEach(function(l){if(yl.perm!==void 0)throw new Error("Invalid permission: "+l);o+=yl[l]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var s=(t+this.padding).substr(0,32),f=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,f),this.P=-(1+(255^o)),this.encryptionKey=Rs(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Ds(this.encryptionKey,this.padding)}function Wi(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,i=0;i<n;i++){var o=e.charCodeAt(i);t+=o<33||o===35||o===37||o===40||o===41||o===47||o===60||o===62||o===91||o===93||o===123||o===125||o>126?"#"+("0"+o.toString(16)).slice(-2):e[i]}return t}function wl(e){if(Le(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,i,o){if(o=o||!1,typeof n!="string"||typeof i!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var s=Math.random().toString(35);return t[n][s]=[i,!!o],s},this.unsubscribe=function(n){for(var i in t)if(t[i][n])return delete t[i][n],Object.keys(t[i]).length===0&&delete t[i],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var s in t[n]){var f=t[n][s];try{f[0].apply(e,i)}catch(l){Xt.console&&_e.error("jsPDF PubSub Error",l.message,l)}f[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Co(e){if(!(this instanceof Co))return new Co(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function ql(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function gi(e,t,n,i,o){if(!(this instanceof gi))return new gi(e,t,n,i,o);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,ql.call(this,i,o)}function Vi(e,t,n,i,o){if(!(this instanceof Vi))return new Vi(e,t,n,i,o);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,ql.call(this,i,o)}function Mt(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],o=arguments[2],s=arguments[3],f=[],l=1,u=16,g="S",b=null;Le(e=e||{})==="object"&&(n=e.orientation,i=e.unit||i,o=e.format||o,s=e.compress||e.compressPdf||s,(b=e.encryption||null)!==null&&(b.userPassword=b.userPassword||"",b.ownerPassword=b.ownerPassword||"",b.userPermissions=b.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),g=e.defaultPathOperation||"S"),f=e.filters||(s===!0?["FlateEncode"]:f),i=i||"mm",n=(""+(n||"P")).toLowerCase();var L=e.putOnlyUsedFonts||!1,F={},d={internal:{},__private__:{}};d.__private__.PubSub=wl;var M="1.3",O=d.__private__.getPdfVersion=function(){return M};d.__private__.setPdfVersion=function(h){M=h};var R={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return R};var k=d.__private__.getPageFormat=function(h){return R[h]};o=o||"a4";var Y="compat",X="advanced",et=Y;function dt(){this.saveGraphicsState(),_(new Gt(ne,0,0,-ne,0,ti()*ne).toString()+" cm"),this.setFontSize(this.getFontSize()/ne),g="n",et=X}function xt(){this.restoreGraphicsState(),g="S",et=Y}var Pt=d.__private__.combineFontStyleAndFontWeight=function(h,m){if(h=="bold"&&m=="normal"||h=="bold"&&m==400||h=="normal"&&m=="italic"||h=="bold"&&m=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return m&&(h=m==400||m==="normal"?h==="italic"?"italic":"normal":m!=700&&m!=="bold"||h!=="normal"?(m==700?"bold":m)+""+h:"bold"),h};d.advancedAPI=function(h){var m=et===Y;return m&&dt.call(this),typeof h!="function"||(h(this),m&&xt.call(this)),this},d.compatAPI=function(h){var m=et===X;return m&&xt.call(this),typeof h!="function"||(h(this),m&&dt.call(this)),this},d.isAdvancedAPI=function(){return et===X};var tt,U=function(h){if(et!==X)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},pt=d.roundToPrecision=d.__private__.roundToPrecision=function(h,m){var P=t||m;if(isNaN(h)||isNaN(P))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(P).replace(/0+$/,"")};tt=d.hpf=d.__private__.hpf=typeof u=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return pt(h,u)}:u==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return pt(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return pt(h,16)};var S=d.f2=d.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return pt(h,2)},E=d.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return pt(h,3)},q=d.scale=d.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return et===Y?h*ne:et===X?h:void 0},D=function(h){return q((function(m){return et===Y?ti()-m:et===X?m:void 0})(h))};d.__private__.setPrecision=d.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(t=parseInt(h,10))};var nt,at="00000000000000000000000000000000",ht=d.__private__.getFileId=function(){return at},Q=d.__private__.setFileId=function(h){return at=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():at.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),b!==null&&(on=new Hi(b.userPermissions,b.userPassword,b.ownerPassword,at)),at};d.setFileId=function(h){return Q(h),this},d.getFileId=function(){return ht()};var ut=d.__private__.convertDateToPDFDate=function(h){var m=h.getTimezoneOffset(),P=m<0?"+":"-",T=Math.floor(Math.abs(m/60)),G=Math.abs(m%60),ot=[P,j(T),"'",j(G),"'"].join("");return["D:",h.getFullYear(),j(h.getMonth()+1),j(h.getDate()),j(h.getHours()),j(h.getMinutes()),j(h.getSeconds()),ot].join("")},At=d.__private__.convertPDFDateToDate=function(h){var m=parseInt(h.substr(2,4),10),P=parseInt(h.substr(6,2),10)-1,T=parseInt(h.substr(8,2),10),G=parseInt(h.substr(10,2),10),ot=parseInt(h.substr(12,2),10),gt=parseInt(h.substr(14,2),10);return new Date(m,P,T,G,ot,gt,0)},vt=d.__private__.setCreationDate=function(h){var m;if(h===void 0&&(h=new Date),h instanceof Date)m=ut(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");m=h}return nt=m},x=d.__private__.getCreationDate=function(h){var m=nt;return h==="jsDate"&&(m=At(nt)),m};d.setCreationDate=function(h){return vt(h),this},d.getCreationDate=function(h){return x(h)};var B,j=d.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},z=d.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},V=0,K=[],rt=[],it=0,ft=[],wt=[],_t=!1,St=rt;d.__private__.setCustomOutputDestination=function(h){_t=!0,St=h};var Dt=function(h){_t||(St=h)};d.__private__.resetCustomOutputDestination=function(){_t=!1,St=rt};var _=d.__private__.out=function(h){return h=h.toString(),it+=h.length+1,St.push(h),St},Nt=d.__private__.write=function(h){return _(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},ae=d.__private__.getArrayBuffer=function(h){for(var m=h.length,P=new ArrayBuffer(m),T=new Uint8Array(P);m--;)T[m]=h.charCodeAt(m);return P},Ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return Ht};var bt=e.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(h){return bt=et===X?h/ne:h,this};var Wt,Ct=d.__private__.getFontSize=d.getFontSize=function(){return et===Y?bt:bt*ne},zt=e.R2L||!1;d.__private__.setR2L=d.setR2L=function(h){return zt=h,this},d.__private__.getR2L=d.getR2L=function(){return zt};var qt,be=d.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Wt=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');Wt=h}else Wt=parseInt(h,10)};d.__private__.getZoomMode=function(){return Wt};var le,Zt=d.__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.');qt=h};d.__private__.getPageMode=function(){return qt};var ce=d.__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.');le=h};d.__private__.getLayoutMode=function(){return le},d.__private__.setDisplayMode=d.setDisplayMode=function(h,m,P){return be(h),ce(m),Zt(P),this};var ue={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(h){if(Object.keys(ue).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ue[h]},d.__private__.getDocumentProperties=function(){return ue},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(h){for(var m in ue)ue.hasOwnProperty(m)&&h[m]&&(ue[m]=h[m]);return this},d.__private__.setDocumentProperty=function(h,m){if(Object.keys(ue).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ue[h]=m};var jt,ne,Rt,Ue,ge,oe={},se={},Oe=[],Ut={},Pe={},Yt={},Qt={},Be=null,he=0,Vt=[],ye=new wl(d),Jr=e.hotfixes||[],un={},dr={},er=[],Gt=function h(m,P,T,G,ot,gt){if(!(this instanceof h))return new h(m,P,T,G,ot,gt);isNaN(m)&&(m=1),isNaN(P)&&(P=0),isNaN(T)&&(T=0),isNaN(G)&&(G=1),isNaN(ot)&&(ot=0),isNaN(gt)&&(gt=0),this._matrix=[m,P,T,G,ot,gt]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Gt.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(h)},Gt.prototype.multiply=function(h){var m=h.sx*this.sx+h.shy*this.shx,P=h.sx*this.shy+h.shy*this.sy,T=h.shx*this.sx+h.sy*this.shx,G=h.shx*this.shy+h.sy*this.sy,ot=h.tx*this.sx+h.ty*this.shx+this.tx,gt=h.tx*this.shy+h.ty*this.sy+this.ty;return new Gt(m,P,T,G,ot,gt)},Gt.prototype.decompose=function(){var h=this.sx,m=this.shy,P=this.shx,T=this.sy,G=this.tx,ot=this.ty,gt=Math.sqrt(h*h+m*m),Et=(h/=gt)*P+(m/=gt)*T;P-=h*Et,T-=m*Et;var Ft=Math.sqrt(P*P+T*T);return Et/=Ft,h*(T/=Ft)<m*(P/=Ft)&&(h=-h,m=-m,Et=-Et,gt=-gt),{scale:new Gt(gt,0,0,Ft,0,0),translate:new Gt(1,0,0,1,G,ot),rotate:new Gt(h,m,-m,h,0,0),skew:new Gt(1,0,Et,1,0,0)}},Gt.prototype.toString=function(h){return this.join(" ")},Gt.prototype.inversed=function(){var h=this.sx,m=this.shy,P=this.shx,T=this.sy,G=this.tx,ot=this.ty,gt=1/(h*T-m*P),Et=T*gt,Ft=-m*gt,Kt=-P*gt,te=h*gt;return new Gt(Et,Ft,Kt,te,-Et*G-Kt*ot,-Ft*G-te*ot)},Gt.prototype.applyToPoint=function(h){var m=h.x*this.sx+h.y*this.shx+this.tx,P=h.x*this.shy+h.y*this.sy+this.ty;return new Qr(m,P)},Gt.prototype.applyToRectangle=function(h){var m=this.applyToPoint(h),P=this.applyToPoint(new Qr(h.x+h.w,h.y+h.h));return new ia(m.x,m.y,P.x-m.x,P.y-m.y)},Gt.prototype.clone=function(){var h=this.sx,m=this.shy,P=this.shx,T=this.sy,G=this.tx,ot=this.ty;return new Gt(h,m,P,T,G,ot)},d.Matrix=Gt;var gr=d.matrixMult=function(h,m){return m.multiply(h)},mr=new Gt(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=mr;var Tn=function(h,m){if(!Pe[h]){var P=(m instanceof gi?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);m.id=P,Pe[h]=P,Ut[P]=m,ye.publish("addPattern",m)}};d.ShadingPattern=gi,d.TilingPattern=Vi,d.addShadingPattern=function(h,m){return U("addShadingPattern()"),Tn(h,m),this},d.beginTilingPattern=function(h){U("beginTilingPattern()"),aa(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},d.endTilingPattern=function(h,m){U("endTilingPattern()"),m.stream=wt[B].join(`
|
|
3
|
+
`),Tn(h,m),ye.publish("endTilingPattern",m),er.pop().restore()};var Rn,Te=d.__private__.newObject=function(){var h=en();return an(h,!0),h},en=d.__private__.newObjectDeferred=function(){return V++,K[V]=function(){return it},V},an=function(h,m){return m=typeof m=="boolean"&&m,K[h]=it,m&&_(h+" 0 obj"),h},Xr=d.__private__.newAdditionalObject=function(){var h={objId:en(),content:""};return ft.push(h),h},Ir=en(),Wn=en(),nr=d.__private__.decodeColorString=function(h){var m=h.split(" ");if(m.length!==2||m[1]!=="g"&&m[1]!=="G")m.length!==5||m[4]!=="k"&&m[4]!=="K"||(m=[(1-m[0])*(1-m[3]),(1-m[1])*(1-m[3]),(1-m[2])*(1-m[3]),"r"]);else{var P=parseFloat(m[0]);m=[P,P,P,"r"]}for(var T="#",G=0;G<3;G++)T+=("0"+Math.floor(255*parseFloat(m[G])).toString(16)).slice(-2);return T},Vn=d.__private__.encodeColorString=function(h){var m;typeof h=="string"&&(h={ch1:h});var P=h.ch1,T=h.ch2,G=h.ch3,ot=h.ch4,gt=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof P=="string"&&P.charAt(0)!=="#"){var Et=new Rl(P);if(Et.ok)P=Et.toHex();else if(!/^\d*\.?\d*$/.test(P))throw new Error('Invalid color "'+P+'" passed to jsPDF.encodeColorString.')}if(typeof P=="string"&&/^#[0-9A-Fa-f]{3}$/.test(P)&&(P="#"+P[1]+P[1]+P[2]+P[2]+P[3]+P[3]),typeof P=="string"&&/^#[0-9A-Fa-f]{6}$/.test(P)){var Ft=parseInt(P.substr(1),16);P=Ft>>16&255,T=Ft>>8&255,G=255&Ft}if(T===void 0||ot===void 0&&P===T&&T===G)m=typeof P=="string"?P+" "+gt[0]:h.precision===2?S(P/255)+" "+gt[0]:E(P/255)+" "+gt[0];else if(ot===void 0||Le(ot)==="object"){if(ot&&!isNaN(ot.a)&&ot.a===0)return["1.","1.","1.",gt[1]].join(" ");m=typeof P=="string"?[P,T,G,gt[1]].join(" "):h.precision===2?[S(P/255),S(T/255),S(G/255),gt[1]].join(" "):[E(P/255),E(T/255),E(G/255),gt[1]].join(" ")}else m=typeof P=="string"?[P,T,G,ot,gt[2]].join(" "):h.precision===2?[S(P),S(T),S(G),S(ot),gt[2]].join(" "):[E(P),E(T),E(G),E(ot),gt[2]].join(" ");return m},Gn=d.__private__.getFilters=function(){return f},Dn=d.__private__.putStream=function(h){var m=(h=h||{}).data||"",P=h.filters||Gn(),T=h.alreadyAppliedFilters||[],G=h.addLength1||!1,ot=m.length,gt=h.objectId,Et=function(Fe){return Fe};if(b!==null&>===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");b!==null&&(Et=on.encryptor(gt,0));var Ft={};P===!0&&(P=["FlateEncode"]);var Kt=h.additionalKeyValues||[],te=(Ft=Mt.API.processDataByFilters!==void 0?Mt.API.processDataByFilters(m,P):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(Ft.data.length!==0&&(Kt.push({key:"Length",value:Ft.data.length}),G===!0&&Kt.push({key:"Length1",value:ot})),te.length!=0)if(te.split("/").length-1==1)Kt.push({key:"Filter",value:te});else{Kt.push({key:"Filter",value:"["+te+"]"});for(var pe=0;pe<Kt.length;pe+=1)if(Kt[pe].key==="DecodeParms"){for(var Xe=[],Ne=0;Ne<Ft.reverseChain.split("/").length-1;Ne+=1)Xe.push("null");Xe.push(Kt[pe].value),Kt[pe].value="["+Xe.join(" ")+"]"}}_("<<");for(var Ae=0;Ae<Kt.length;Ae++)_("/"+Kt[Ae].key+" "+Kt[Ae].value);_(">>"),Ft.data.length!==0&&(_("stream"),_(Et(Ft.data)),_("endstream"))},Kr=d.__private__.putPage=function(h){var m=h.number,P=h.data,T=h.objId,G=h.contentsObjId;an(T,!0),_("<</Type /Page"),_("/Parent "+h.rootDictionaryObjId+" 0 R"),_("/Resources "+h.resourceDictionaryObjId+" 0 R"),_("/MediaBox ["+parseFloat(tt(h.mediaBox.bottomLeftX))+" "+parseFloat(tt(h.mediaBox.bottomLeftY))+" "+tt(h.mediaBox.topRightX)+" "+tt(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&_("/CropBox ["+tt(h.cropBox.bottomLeftX)+" "+tt(h.cropBox.bottomLeftY)+" "+tt(h.cropBox.topRightX)+" "+tt(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&_("/BleedBox ["+tt(h.bleedBox.bottomLeftX)+" "+tt(h.bleedBox.bottomLeftY)+" "+tt(h.bleedBox.topRightX)+" "+tt(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&_("/TrimBox ["+tt(h.trimBox.bottomLeftX)+" "+tt(h.trimBox.bottomLeftY)+" "+tt(h.trimBox.topRightX)+" "+tt(h.trimBox.topRightY)+"]"),h.artBox!==null&&_("/ArtBox ["+tt(h.artBox.bottomLeftX)+" "+tt(h.artBox.bottomLeftY)+" "+tt(h.artBox.topRightX)+" "+tt(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&_("/UserUnit "+h.userUnit),ye.publish("putPage",{objId:T,pageContext:Vt[m],pageNumber:m,page:P}),_("/Contents "+G+" 0 R"),_(">>"),_("endobj");var ot=P.join(`
|
|
4
|
+
`);return et===X&&(ot+=`
|
|
5
|
+
Q`),an(G,!0),Dn({data:ot,filters:Gn(),objectId:G}),_("endobj"),T},rr=d.__private__.putPages=function(){var h,m,P=[];for(h=1;h<=he;h++)Vt[h].objId=en(),Vt[h].contentsObjId=en();for(h=1;h<=he;h++)P.push(Kr({number:h,data:wt[h],objId:Vt[h].objId,contentsObjId:Vt[h].contentsObjId,mediaBox:Vt[h].mediaBox,cropBox:Vt[h].cropBox,bleedBox:Vt[h].bleedBox,trimBox:Vt[h].trimBox,artBox:Vt[h].artBox,userUnit:Vt[h].userUnit,rootDictionaryObjId:Ir,resourceDictionaryObjId:Wn}));an(Ir,!0),_("<</Type /Pages");var T="/Kids [";for(m=0;m<he;m++)T+=P[m]+" 0 R ";_(T+"]"),_("/Count "+he),_(">>"),_("endobj"),ye.publish("postPutPages")},$r=function(h){ye.publish("putFont",{font:h,out:_,newObject:Te,putStream:Dn}),h.isAlreadyPutted!==!0&&(h.objectNumber=Te(),_("<<"),_("/Type /Font"),_("/BaseFont /"+Wi(h.postScriptName)),_("/Subtype /Type1"),typeof h.encoding=="string"&&_("/Encoding /"+h.encoding),_("/FirstChar 32"),_("/LastChar 255"),_(">>"),_("endobj"))},yi=function(h){h.objectNumber=Te();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[tt(h.x),tt(h.y),tt(h.x+h.width),tt(h.y+h.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var P=h.pages[1].join(`
|
|
6
|
+
`);Dn({data:P,additionalKeyValues:m,objectId:h.objectNumber}),_("endobj")},wi=function(h,m){m||(m=21);var P=Te(),T=(function(gt,Et){var Ft,Kt=[],te=1/(Et-1);for(Ft=0;Ft<1;Ft+=te)Kt.push(Ft);if(Kt.push(1),gt[0].offset!=0){var pe={offset:0,color:gt[0].color};gt.unshift(pe)}if(gt[gt.length-1].offset!=1){var Xe={offset:1,color:gt[gt.length-1].color};gt.push(Xe)}for(var Ne="",Ae=0,Fe=0;Fe<Kt.length;Fe++){for(Ft=Kt[Fe];Ft>gt[Ae+1].offset;)Ae++;var je=gt[Ae].offset,Me=(Ft-je)/(gt[Ae+1].offset-je),cn=gt[Ae].color,Ar=gt[Ae+1].color;Ne+=z(Math.round((1-Me)*cn[0]+Me*Ar[0]).toString(16))+z(Math.round((1-Me)*cn[1]+Me*Ar[1]).toString(16))+z(Math.round((1-Me)*cn[2]+Me*Ar[2]).toString(16))}return Ne.trim()})(h.colors,m),G=[];G.push({key:"FunctionType",value:"0"}),G.push({key:"Domain",value:"[0.0 1.0]"}),G.push({key:"Size",value:"["+m+"]"}),G.push({key:"BitsPerSample",value:"8"}),G.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),G.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Dn({data:T,additionalKeyValues:G,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:P}),_("endobj"),h.objectNumber=Te(),_("<< /ShadingType "+h.type),_("/ColorSpace /DeviceRGB");var ot="/Coords ["+tt(parseFloat(h.coords[0]))+" "+tt(parseFloat(h.coords[1]))+" ";h.type===2?ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3])):ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3]))+" "+tt(parseFloat(h.coords[4]))+" "+tt(parseFloat(h.coords[5])),_(ot+="]"),h.matrix&&_("/Matrix ["+h.matrix.toString()+"]"),_("/Function "+P+" 0 R"),_("/Extend [true true]"),_(">>"),_("endobj")},xi=function(h,m){var P=en(),T=Te();m.push({resourcesOid:P,objectOid:T}),h.objectNumber=T;var G=[];G.push({key:"Type",value:"/Pattern"}),G.push({key:"PatternType",value:"1"}),G.push({key:"PaintType",value:"1"}),G.push({key:"TilingType",value:"1"}),G.push({key:"BBox",value:"["+h.boundingBox.map(tt).join(" ")+"]"}),G.push({key:"XStep",value:tt(h.xStep)}),G.push({key:"YStep",value:tt(h.yStep)}),G.push({key:"Resources",value:P+" 0 R"}),h.matrix&&G.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Dn({data:h.stream,additionalKeyValues:G,objectId:h.objectNumber}),_("endobj")},Eo=function(h){for(var m in h.objectNumber=Te(),_("<<"),h)switch(m){case"opacity":_("/ca "+S(h[m]));break;case"stroke-opacity":_("/CA "+S(h[m]))}_(">>"),_("endobj")},Ki=function(h){an(h.resourcesOid,!0),_("<<"),_("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var m in _("/Font <<"),oe)oe.hasOwnProperty(m)&&(L===!1||L===!0&&F.hasOwnProperty(m))&&_("/"+m+" "+oe[m].objectNumber+" 0 R");_(">>")})(),(function(){if(Object.keys(Ut).length>0){for(var m in _("/Shading <<"),Ut)Ut.hasOwnProperty(m)&&Ut[m]instanceof gi&&Ut[m].objectNumber>=0&&_("/"+m+" "+Ut[m].objectNumber+" 0 R");ye.publish("putShadingPatternDict"),_(">>")}})(),(function(m){if(Object.keys(Ut).length>0){for(var P in _("/Pattern <<"),Ut)Ut.hasOwnProperty(P)&&Ut[P]instanceof d.TilingPattern&&Ut[P].objectNumber>=0&&Ut[P].objectNumber<m&&_("/"+P+" "+Ut[P].objectNumber+" 0 R");ye.publish("putTilingPatternDict"),_(">>")}})(h.objectOid),(function(){if(Object.keys(Yt).length>0){var m;for(m in _("/ExtGState <<"),Yt)Yt.hasOwnProperty(m)&&Yt[m].objectNumber>=0&&_("/"+m+" "+Yt[m].objectNumber+" 0 R");ye.publish("putGStateDict"),_(">>")}})(),(function(){for(var m in _("/XObject <<"),un)un.hasOwnProperty(m)&&un[m].objectNumber>=0&&_("/"+m+" "+un[m].objectNumber+" 0 R");ye.publish("putXobjectDict"),_(">>")})(),_(">>"),_("endobj")},Ca=function(h){se[h.fontName]=se[h.fontName]||{},se[h.fontName][h.fontStyle]=h.id},Ia=function(h,m,P,T,G){var ot={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:m,fontStyle:P,encoding:T,isStandardFont:G||!1,metadata:{}};return ye.publish("addFont",{font:ot,instance:this}),oe[ot.id]=ot,Ca(ot),ot.id},qn=d.__private__.pdfEscape=d.pdfEscape=function(h,m){return(function(P,T){var G,ot,gt,Et,Ft,Kt,te,pe,Xe;if(gt=(T=T||{}).sourceEncoding||"Unicode",Ft=T.outputEncoding,(T.autoencode||Ft)&&oe[jt].metadata&&oe[jt].metadata[gt]&&oe[jt].metadata[gt].encoding&&(Et=oe[jt].metadata[gt].encoding,!Ft&&oe[jt].encoding&&(Ft=oe[jt].encoding),!Ft&&Et.codePages&&(Ft=Et.codePages[0]),typeof Ft=="string"&&(Ft=Et[Ft]),Ft)){for(te=!1,Kt=[],G=0,ot=P.length;G<ot;G++)(pe=Ft[P.charCodeAt(G)])?Kt.push(String.fromCharCode(pe)):Kt.push(P[G]),Kt[G].charCodeAt(0)>>8&&(te=!0);P=Kt.join("")}for(G=P.length;te===void 0&&G!==0;)P.charCodeAt(G-1)>>8&&(te=!0),G--;if(!te)return P;for(Kt=T.noBOM?[]:[254,255],G=0,ot=P.length;G<ot;G++){if((Xe=(pe=P.charCodeAt(G))>>8)>>8)throw new Error("Character at position "+G+" of string '"+P+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Kt.push(Xe),Kt.push(pe-(Xe<<8))}return String.fromCharCode.apply(void 0,Kt)})(h,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$i=d.__private__.beginPage=function(h){wt[++he]=[],Vt[he]={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])}},Ea(he),Dt(wt[B])},Fa=function(h,m){var P,T,G;switch(n=m||n,typeof h=="string"&&(P=k(h.toLowerCase()),Array.isArray(P)&&(T=P[0],G=P[1])),Array.isArray(h)&&(T=h[0]*ne,G=h[1]*ne),isNaN(T)&&(T=o[0],G=o[1]),(T>14400||G>14400)&&(_e.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),T=Math.min(14400,T),G=Math.min(14400,G)),o=[T,G],n.substr(0,1)){case"l":G>T&&(o=[G,T]);break;case"p":T>G&&(o=[G,T])}$i(o),zo(Jt),_(Pi),na!==0&&_(na+" J"),Or!==0&&_(Or+" j"),ye.publish("addPage",{pageNumber:he})},Zi=function(h){h>0&&h<=he&&(wt.splice(h,1),Vt.splice(h,1),he--,B>he&&(B=he),this.setPage(B))},Ea=function(h){h>0&&h<=he&&(B=h)},Oa=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return wt.length-1},Ba=function(h,m,P){var T,G=void 0;return P=P||{},h=h!==void 0?h:oe[jt].fontName,m=m!==void 0?m:oe[jt].fontStyle,T=h.toLowerCase(),se[T]!==void 0&&se[T][m]!==void 0?G=se[T][m]:se[h]!==void 0&&se[h][m]!==void 0?G=se[h][m]:P.disableWarning===!1&&_e.warn("Unable to look up font label for font '"+h+"', '"+m+"'. Refer to getFontList() for available fonts."),G||P.noFallback||(G=se.times[m])==null&&(G=se.times.normal),G},ir=d.__private__.putInfo=function(){var h=Te(),m=function(T){return T};for(var P in b!==null&&(m=on.encryptor(h,0)),_("<<"),_("/Producer ("+qn(m("jsPDF "+Mt.version))+")"),ue)ue.hasOwnProperty(P)&&ue[P]&&_("/"+P.substr(0,1).toUpperCase()+P.substr(1)+" ("+qn(m(ue[P]))+")");_("/CreationDate ("+qn(m(nt))+")"),_(">>"),_("endobj")},Ai=d.__private__.putCatalog=function(h){var m=(h=h||{}).rootDictionaryObjId||Ir;switch(Te(),_("<<"),_("/Type /Catalog"),_("/Pages "+m+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":_("/OpenAction [3 0 R /FitH null]");break;case"fullheight":_("/OpenAction [3 0 R /FitV null]");break;case"fullpage":_("/OpenAction [3 0 R /Fit]");break;case"original":_("/OpenAction [3 0 R /XYZ null null 1]");break;default:var P=""+Wt;P.substr(P.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&_("/OpenAction [3 0 R /XYZ null null "+S(Wt)+"]")}switch(le||(le="continuous"),le){case"continuous":_("/PageLayout /OneColumn");break;case"single":_("/PageLayout /SinglePage");break;case"two":case"twoleft":_("/PageLayout /TwoColumnLeft");break;case"tworight":_("/PageLayout /TwoColumnRight")}qt&&_("/PageMode /"+qt),ye.publish("putCatalog"),_(">>"),_("endobj")},Oo=d.__private__.putTrailer=function(){_("trailer"),_("<<"),_("/Size "+(V+1)),_("/Root "+V+" 0 R"),_("/Info "+(V-1)+" 0 R"),b!==null&&_("/Encrypt "+on.oid+" 0 R"),_("/ID [ <"+at+"> <"+at+"> ]"),_(">>")},Je=d.__private__.putHeader=function(){_("%PDF-"+M),_("%\xBA\xDF\xAC\xE0")},ja=d.__private__.putXRef=function(){var h="0000000000";_("xref"),_("0 "+(V+1)),_("0000000000 65535 f ");for(var m=1;m<=V;m++)typeof K[m]=="function"?_((h+K[m]()).slice(-10)+" 00000 n "):K[m]!==void 0?_((h+K[m]).slice(-10)+" 00000 n "):_("0000000000 00000 n ")},ar=d.__private__.buildDocument=function(){var h;V=0,it=0,rt=[],K=[],ft=[],Ir=en(),Wn=en(),Dt(rt),ye.publish("buildDocument"),Je(),rr(),(function(){ye.publish("putAdditionalObjects");for(var P=0;P<ft.length;P++){var T=ft[P];an(T.objId,!0),_(T.content),_("endobj")}ye.publish("postPutAdditionalObjects")})(),h=[],(function(){for(var P in oe)oe.hasOwnProperty(P)&&(L===!1||L===!0&&F.hasOwnProperty(P))&&$r(oe[P])})(),(function(){var P;for(P in Yt)Yt.hasOwnProperty(P)&&Eo(Yt[P])})(),(function(){for(var P in un)un.hasOwnProperty(P)&&yi(un[P])})(),(function(P){var T;for(T in Ut)Ut.hasOwnProperty(T)&&(Ut[T]instanceof gi?wi(Ut[T]):Ut[T]instanceof Vi&&xi(Ut[T],P))})(h),ye.publish("putResources"),h.forEach(Ki),Ki({resourcesOid:Wn,objectOid:Number.MAX_SAFE_INTEGER}),ye.publish("postPutResources"),b!==null&&(on.oid=Te(),_("<<"),_("/Filter /Standard"),_("/V "+on.v),_("/R "+on.r),_("/U <"+on.toHexString(on.U)+">"),_("/O <"+on.toHexString(on.O)+">"),_("/P "+on.P),_(">>"),_("endobj")),ir(),Ai();var m=it;return ja(),Oo(),_("startxref"),_(""+m),_("%%EOF"),Dt(wt[B]),rt.join(`
|
|
7
|
+
`)},Li=d.__private__.getBlob=function(h){return new Blob([ae(h)],{type:"application/pdf"})},Qi=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},Cn=function(h){var m,P=h.document,T=P.documentElement,G=P.head,ot=P.body;return G||(G=P.createElement("head"),T.appendChild(G)),ot||(ot=P.createElement("body"),T.appendChild(ot)),Qi(G),Qi(ot),(m=P.createElement("style")).appendChild(P.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),G.appendChild(m),{document:P,body:ot}},Ni=d.output=d.__private__.output=(Rn=function(h,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",h){case void 0:return ar();case"save":d.save(m.filename);break;case"arraybuffer":return ae(ar());case"blob":return Li(ar());case"bloburi":case"bloburl":if(Xt.URL!==void 0&&typeof Xt.URL.createObjectURL=="function")return Xt.URL&&Xt.URL.createObjectURL(Li(ar()))||void 0;_e.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var P="",T=ar();try{P=vl(T)}catch{P=vl(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+encodeURIComponent(m.filename)+";base64,"+P;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Xt)==="[object Window]"){var G="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ot=!m.pdfObjectUrl;ot||(G=m.pdfObjectUrl);var gt=Xt.open();if(gt!==null){var Et=Cn(gt),Ft=Et.document.createElement("script"),Kt=this;Ft.src=G,ot&&(Ft.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ft.crossOrigin="anonymous"),Ft.onload=function(){gt.PDFObject.embed(Kt.output("dataurlstring"),m)},Et.body.appendChild(Ft)}return gt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Xt)==="[object Window]"){var te=m.pdfJsUrl||"examples/PDF.js/web/viewer.html",pe=Xt.open();if(pe!==null){var Xe=Cn(pe),Ne=Xe.document.createElement("iframe"),Ae=te.indexOf("?")===-1?"?":"&";Kt=this,Ne.id="pdfViewer",Ne.width="500px",Ne.height="400px",Ne.src=te+Ae+"file=&downloadName="+encodeURIComponent(m.filename),Ne.onload=function(){pe.document.title=m.filename,Ne.contentWindow.PDFViewerApplication.open(Kt.output("bloburl"))},Xe.body.appendChild(Ne)}return pe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Xt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Fe=Xt.open();if(Fe!==null){var je=Cn(Fe),Me=je.document.createElement("iframe");Me.src=this.output("datauristring",m),je.body.appendChild(Me),Fe.document.title=m.filename}if(Fe||typeof safari>"u")return Fe;break;case"datauri":case"dataurl":return Xt.document.location.href=this.output("datauristring",m);default:return null}},Rn.foo=function(){try{return Rn.apply(this,arguments)}catch(P){var h=P.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var m="Error in function "+h.split(`
|
|
8
|
+
`)[0].split("<")[0]+": "+P.message;if(!Xt.console)throw new Error(m);Xt.console.error(m,P),Xt.alert&&alert(m)}},Rn.foo.bar=Rn,Rn.foo),vr=function(h){return Array.isArray(Jr)===!0&&Jr.indexOf(h)>-1};switch(i){case"pt":ne=1;break;case"mm":ne=72/25.4;break;case"cm":ne=72/2.54;break;case"in":ne=72;break;case"px":ne=vr("px_scaling")==1?.75:96/72;break;case"pc":case"em":ne=12;break;case"ex":ne=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);ne=i}var on=null;vt(),Q();var Ma=d.__private__.getPageInfo=d.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Vt[h].objId,pageNumber:h,pageContext:Vt[h]}},Bo=d.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in Vt)if(Vt[m].objId===h)break;return Ma(m)},jo=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Vt[B].objId,pageNumber:B,pageContext:Vt[B]}};d.addPage=function(){return Fa.apply(this,arguments),this},d.setPage=function(){return Ea.apply(this,arguments),Dt.call(this,wt[B]),this},d.insertPage=function(h){return this.addPage(),this.movePage(B,h),this},d.movePage=function(h,m){var P,T;if(h>m){P=wt[h],T=Vt[h];for(var G=h;G>m;G--)wt[G]=wt[G-1],Vt[G]=Vt[G-1];wt[m]=P,Vt[m]=T,this.setPage(m)}else if(h<m){P=wt[h],T=Vt[h];for(var ot=h;ot<m;ot++)wt[ot]=wt[ot+1],Vt[ot]=Vt[ot+1];wt[m]=P,Vt[m]=T,this.setPage(m)}return this},d.deletePage=function(){return Zi.apply(this,arguments),this},d.__private__.text=d.text=function(h,m,P,T,G){var ot,gt,Et,Ft,Kt,te,pe,Xe,Ne,Ae=(T=T||{}).scope||this;if(typeof h=="number"&&typeof m=="number"&&(typeof P=="string"||Array.isArray(P))){var Fe=P;P=m,m=h,h=Fe}if(arguments[3]instanceof Gt==0?(Et=arguments[4],Ft=arguments[5],Le(pe=arguments[3])==="object"&&pe!==null||(typeof Et=="string"&&(Ft=Et,Et=null),typeof pe=="string"&&(Ft=pe,pe=null),typeof pe=="number"&&(Et=pe,pe=null),T={flags:pe,angle:Et,align:Ft})):(U("The transform parameter of text() with a Matrix value"),Ne=G),isNaN(m)||isNaN(P)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return Ae;var je,Me="",cn=typeof T.lineHeightFactor=="number"?T.lineHeightFactor:Zr,Ar=Ae.internal.scaleFactor;function oa(ke){return ke=ke.split(" ").join(Array(T.TabLen||9).join(" ")),qn(ke,pe)}function ei(ke){for(var Ce,ze=ke.concat(),$e=[],Nr=ze.length;Nr--;)typeof(Ce=ze.shift())=="string"?$e.push(Ce):Array.isArray(ke)&&(Ce.length===1||Ce[1]===void 0&&Ce[2]===void 0)?$e.push(Ce[0]):$e.push([Ce[0],Ce[1],Ce[2]]);return $e}function ni(ke,Ce){var ze;if(typeof ke=="string")ze=Ce(ke)[0];else if(Array.isArray(ke)){for(var $e,Nr,fa=ke.concat(),Di=[],Ga=fa.length;Ga--;)typeof($e=fa.shift())=="string"?Di.push(Ce($e)[0]):Array.isArray($e)&&typeof $e[0]=="string"&&(Nr=Ce($e[0],$e[1],$e[2]),Di.push([Nr[0],Nr[1],Nr[2]]));ze=Di}return ze}var Br=!1,ri=!0;if(typeof h=="string")Br=!0;else if(Array.isArray(h)){var Fi=h.concat();gt=[];for(var Ei,fn=Fi.length;fn--;)(typeof(Ei=Fi.shift())!="string"||Array.isArray(Ei)&&typeof Ei[0]!="string")&&(ri=!1);Br=ri}if(Br===!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 ii=bt/Ae.internal.scaleFactor,ai=ii*(cn-1);switch(T.baseline){case"bottom":P-=ai;break;case"top":P+=ii-ai;break;case"hanging":P+=ii-2*ai;break;case"middle":P+=ii/2-ai}if((te=T.maxWidth||0)>0&&(typeof h=="string"?h=Ae.splitTextToSize(h,te):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(ke,Ce){return ke.concat(Ae.splitTextToSize(Ce,te))},[]))),ot={text:h,x:m,y:P,options:T,mutex:{pdfEscape:qn,activeFontKey:jt,fonts:oe,activeFontSize:bt}},ye.publish("preProcessText",ot),h=ot.text,Et=(T=ot.options).angle,Ne instanceof Gt==0&&Et&&typeof Et=="number"){Et*=Math.PI/180,T.rotationDirection===0&&(Et=-Et),et===X&&(Et=-Et);var sa=Math.cos(Et),hr=Math.sin(Et);Ne=new Gt(sa,hr,-hr,sa,0,0)}else Et&&Et instanceof Gt&&(Ne=Et);et!==X||Ne||(Ne=mr),(Kt=T.charSpace||ki)!==void 0&&(Me+=tt(q(Kt))+` Tc
|
|
9
|
+
`,this.setCharSpace(this.getCharSpace()||0)),(Xe=T.horizontalScale)!==void 0&&(Me+=tt(100*Xe)+` Tz
|
|
10
|
+
`),T.lang;var yn=-1,Wa=T.renderingMode!==void 0?T.renderingMode:T.stroke,Oi=Ae.internal.getCurrentPageInfo().pageContext;switch(Wa){case 0:case!1:case"fill":yn=0;break;case 1:case!0:case"stroke":yn=1;break;case 2:case"fillThenStroke":yn=2;break;case 3:case"invisible":yn=3;break;case 4:case"fillAndAddForClipping":yn=4;break;case 5:case"strokeAndAddPathForClipping":yn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":yn=6;break;case 7:case"addToPathForClipping":yn=7}var Va=Oi.usedRenderingMode!==void 0?Oi.usedRenderingMode:-1;yn!==-1?Me+=yn+` Tr
|
|
11
|
+
`:Va!==-1&&(Me+=`0 Tr
|
|
12
|
+
`),yn!==-1&&(Oi.usedRenderingMode=yn),Ft=T.align||"left";var Un,oi=bt*cn,ha=Ae.internal.pageSize.getWidth(),Bi=oe[jt];Kt=T.charSpace||ki,te=T.maxWidth||0,pe=Object.assign({autoencode:!0,noBOM:!0},T.flags);var si=[],la=function(ke){return Ae.getStringUnitWidth(ke,{font:Bi,charSpace:Kt,fontSize:bt,doKerning:!1})*bt/Ar};if(Object.prototype.toString.call(h)==="[object Array]"){var wn;gt=ei(h),Ft!=="left"&&(Un=gt.map(la));var Sn,ji=0;if(Ft==="right"){m-=Un[0],h=[],fn=gt.length;for(var jr=0;jr<fn;jr++)jr===0?(Sn=br(m),wn=yr(P)):(Sn=q(ji-Un[jr]),wn=-oi),h.push([gt[jr],Sn,wn]),ji=Un[jr]}else if(Ft==="center"){m-=Un[0]/2,h=[],fn=gt.length;for(var Mr=0;Mr<fn;Mr++)Mr===0?(Sn=br(m),wn=yr(P)):(Sn=q((ji-Un[Mr])/2),wn=-oi),h.push([gt[Mr],Sn,wn]),ji=Un[Mr]}else if(Ft==="left"){h=[],fn=gt.length;for(var Mi=0;Mi<fn;Mi++)h.push(gt[Mi])}else if(Ft==="justify"&&Bi.encoding==="Identity-H"){h=[],fn=gt.length,te=te!==0?te:ha;for(var hi=0,Ke=0;Ke<fn;Ke++)if(wn=Ke===0?yr(P):-oi,Sn=Ke===0?br(m):hi,Ke<fn-1){var Ko=q((te-Un[Ke])/(gt[Ke].split(" ").length-1)),lr=gt[Ke].split(" ");h.push([lr[0]+" ",Sn,wn]),hi=0;for(var Yn=1;Yn<lr.length;Yn++){var li=(la(lr[Yn-1]+" "+lr[Yn])-la(lr[Yn]))*Ar+Ko;Yn==lr.length-1?h.push([lr[Yn],li,0]):h.push([lr[Yn]+" ",li,0]),hi-=li}}else h.push([gt[Ke],Sn,wn]);h.push(["",hi,0])}else{if(Ft!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],fn=gt.length,te=te!==0?te:ha,Ke=0;Ke<fn;Ke++){wn=Ke===0?yr(P):-oi,Sn=Ke===0?br(m):0;var ua=gt[Ke].split(" ").length-1,ca=ua>0?(te-Un[Ke])/ua:0;Ke<fn-1?si.push(tt(q(ca))):si.push(0),h.push([gt[Ke],Sn,wn])}}}(typeof T.R2L=="boolean"?T.R2L:zt)===!0&&(h=ni(h,function(ke,Ce,ze){return[ke.split("").reverse().join(""),Ce,ze]})),ot={text:h,x:m,y:P,options:T,mutex:{pdfEscape:qn,activeFontKey:jt,fonts:oe,activeFontSize:bt}},ye.publish("postProcessText",ot),h=ot.text,je=ot.mutex.isHex||!1;var Ti=oe[jt].encoding;Ti!=="WinAnsiEncoding"&&Ti!=="StandardEncoding"||(h=ni(h,function(ke,Ce,ze){return[oa(ke),Ce,ze]})),gt=ei(h),h=[];for(var ui,ci,Tr,Lr=Array.isArray(gt[0])?1:0,Rr="",Ri=function(ke,Ce,ze){var $e="";return ze instanceof Gt?(ze=typeof T.angle=="number"?gr(ze,new Gt(1,0,0,1,ke,Ce)):gr(new Gt(1,0,0,1,ke,Ce),ze),et===X&&(ze=gr(new Gt(1,0,0,-1,0,0),ze)),$e=ze.join(" ")+` Tm
|
|
13
|
+
`):$e=tt(ke)+" "+tt(Ce)+` Td
|
|
14
|
+
`,$e},pn=0;pn<gt.length;pn++){switch(Rr="",Lr){case 1:Tr=(je?"<":"(")+gt[pn][0]+(je?">":")"),ui=parseFloat(gt[pn][1]),ci=parseFloat(gt[pn][2]);break;case 0:Tr=(je?"<":"(")+gt[pn]+(je?">":")"),ui=br(m),ci=yr(P)}si!==void 0&&si[pn]!==void 0&&(Rr=si[pn]+` Tw
|
|
15
|
+
`),pn===0?h.push(Rr+Ri(ui,ci,Ne)+Tr):Lr===0?h.push(Rr+Tr):Lr===1&&h.push(Rr+Ri(ui,ci,Ne)+Tr)}h=Lr===0?h.join(` Tj
|
|
16
|
+
T* `):h.join(` Tj
|
|
17
|
+
`),h+=` Tj
|
|
18
|
+
`;var ur=`BT
|
|
19
|
+
/`;return ur+=jt+" "+bt+` Tf
|
|
20
|
+
`,ur+=tt(bt*cn)+` TL
|
|
21
|
+
`,ur+=sr+`
|
|
22
|
+
`,ur+=Me,ur+=h,_(ur+="ET"),F[jt]=!0,Ae};var Mo=d.__private__.clip=d.clip=function(h){return _(h==="evenodd"?"W*":"W"),this};d.clipEvenOdd=function(){return Mo("evenodd")},d.__private__.discardPath=d.discardPath=function(){return _("n"),this};var or=d.__private__.isValidStyle=function(h){var m=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(m=!0),m};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(h){return or(h)&&(g=h),this};var Ta=d.__private__.getStyle=d.getStyle=function(h){var m=g;switch(h){case"D":case"S":m="S";break;case"F":m="f";break;case"FD":case"DF":m="B";break;case"f":case"f*":case"B":case"B*":m=h}return m},Si=d.close=function(){return _("h"),this};d.stroke=function(){return _("S"),this},d.fill=function(h){return _i("f",h),this},d.fillEvenOdd=function(h){return _i("f*",h),this},d.fillStroke=function(h){return _i("B",h),this},d.fillStrokeEvenOdd=function(h){return _i("B*",h),this};var _i=function(h,m){Le(m)==="object"?Ro(m,h):_(h)},ta=function(h){h===null||et===X&&h===void 0||(h=Ta(h),_(h))};function To(h,m,P,T,G){var ot=new Vi(m||this.boundingBox,P||this.xStep,T||this.yStep,this.gState,G||this.matrix);ot.stream=this.stream;var gt=h+"$$"+this.cloneIndex+++"$$";return Tn(gt,ot),ot}var Ro=function(h,m){var P=Pe[h.key],T=Ut[P];if(T instanceof gi)_("q"),_(Do(m)),T.gState&&d.setGState(T.gState),_(h.matrix.toString()+" cm"),_("/"+P+" sh"),_("Q");else if(T instanceof Vi){var G=new Gt(1,0,0,-1,0,ti());h.matrix&&(G=G.multiply(h.matrix||mr),P=To.call(T,h.key,h.boundingBox,h.xStep,h.yStep,G).id),_("q"),_("/Pattern cs"),_("/"+P+" scn"),T.gState&&d.setGState(T.gState),_(m),_("Q")}},Do=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"}},Fr=d.moveTo=function(h,m){return _(tt(q(h))+" "+tt(D(m))+" m"),this},Ra=d.lineTo=function(h,m){return _(tt(q(h))+" "+tt(D(m))+" l"),this},Er=d.curveTo=function(h,m,P,T,G,ot){return _([tt(q(h)),tt(D(m)),tt(q(P)),tt(D(T)),tt(q(G)),tt(D(ot)),"c"].join(" ")),this};d.__private__.line=d.line=function(h,m,P,T,G){if(isNaN(h)||isNaN(m)||isNaN(P)||isNaN(T)||!or(G))throw new Error("Invalid arguments passed to jsPDF.line");return et===Y?this.lines([[P-h,T-m]],h,m,[1,1],G||"S"):this.lines([[P-h,T-m]],h,m,[1,1]).stroke()},d.__private__.lines=d.lines=function(h,m,P,T,G,ot){var gt,Et,Ft,Kt,te,pe,Xe,Ne,Ae,Fe,je,Me;if(typeof h=="number"&&(Me=P,P=m,m=h,h=Me),T=T||[1,1],ot=ot||!1,isNaN(m)||isNaN(P)||!Array.isArray(h)||!Array.isArray(T)||!or(G)||typeof ot!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Fr(m,P),gt=T[0],Et=T[1],Kt=h.length,Fe=m,je=P,Ft=0;Ft<Kt;Ft++)(te=h[Ft]).length===2?(Fe=te[0]*gt+Fe,je=te[1]*Et+je,Ra(Fe,je)):(pe=te[0]*gt+Fe,Xe=te[1]*Et+je,Ne=te[2]*gt+Fe,Ae=te[3]*Et+je,Fe=te[4]*gt+Fe,je=te[5]*Et+je,Er(pe,Xe,Ne,Ae,Fe,je));return ot&&Si(),ta(G),this},d.path=function(h){for(var m=0;m<h.length;m++){var P=h[m],T=P.c;switch(P.op){case"m":Fr(T[0],T[1]);break;case"l":Ra(T[0],T[1]);break;case"c":Er.apply(this,T);break;case"h":Si()}}return this},d.__private__.rect=d.rect=function(h,m,P,T,G){if(isNaN(h)||isNaN(m)||isNaN(P)||isNaN(T)||!or(G))throw new Error("Invalid arguments passed to jsPDF.rect");return et===Y&&(T=-T),_([tt(q(h)),tt(D(m)),tt(q(P)),tt(q(T)),"re"].join(" ")),ta(G),this},d.__private__.triangle=d.triangle=function(h,m,P,T,G,ot,gt){if(isNaN(h)||isNaN(m)||isNaN(P)||isNaN(T)||isNaN(G)||isNaN(ot)||!or(gt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[P-h,T-m],[G-P,ot-T],[h-G,m-ot]],h,m,[1,1],gt,!0),this},d.__private__.roundedRect=d.roundedRect=function(h,m,P,T,G,ot,gt){if(isNaN(h)||isNaN(m)||isNaN(P)||isNaN(T)||isNaN(G)||isNaN(ot)||!or(gt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Et=4/3*(Math.SQRT2-1);return G=Math.min(G,.5*P),ot=Math.min(ot,.5*T),this.lines([[P-2*G,0],[G*Et,0,G,ot-ot*Et,G,ot],[0,T-2*ot],[0,ot*Et,-G*Et,ot,-G,ot],[2*G-P,0],[-G*Et,0,-G,-ot*Et,-G,-ot],[0,2*ot-T],[0,-ot*Et,G*Et,-ot,G,-ot]],h+G,m,[1,1],gt,!0),this},d.__private__.ellipse=d.ellipse=function(h,m,P,T,G){if(isNaN(h)||isNaN(m)||isNaN(P)||isNaN(T)||!or(G))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ot=4/3*(Math.SQRT2-1)*P,gt=4/3*(Math.SQRT2-1)*T;return Fr(h+P,m),Er(h+P,m-gt,h+ot,m-T,h,m-T),Er(h-ot,m-T,h-P,m-gt,h-P,m),Er(h-P,m+gt,h-ot,m+T,h,m+T),Er(h+ot,m+T,h+P,m+gt,h+P,m),ta(G),this},d.__private__.circle=d.circle=function(h,m,P,T){if(isNaN(h)||isNaN(m)||isNaN(P)||!or(T))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,m,P,P,T)},d.setFont=function(h,m,P){return P&&(m=Pt(m,P)),jt=Ba(h,m,{disableWarning:!1}),this};var qo=d.__private__.getFont=d.getFont=function(){return oe[Ba.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var h,m,P={};for(h in se)if(se.hasOwnProperty(h))for(m in P[h]=[],se[h])se[h].hasOwnProperty(m)&&P[h].push(m);return P},d.addFont=function(h,m,P,T,G){var ot=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ot.indexOf(arguments[3])!==-1?G=arguments[3]:arguments[3]&&ot.indexOf(arguments[3])==-1&&(P=Pt(P,T)),Ia.call(this,h,m,P,G=G||"Identity-H")};var Zr,Jt=e.lineWidth||.200025,Uo=d.__private__.getLineWidth=d.getLineWidth=function(){return Jt},zo=d.__private__.setLineWidth=d.setLineWidth=function(h){return Jt=h,_(tt(q(h))+" w"),this};d.__private__.setLineDash=Mt.API.setLineDash=Mt.API.setLineDashPattern=function(h,m){if(h=h||[],m=m||0,isNaN(m)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(P){return tt(q(P))}).join(" "),m=tt(q(m)),_("["+h+"] "+m+" d"),this};var Ho=d.__private__.getLineHeight=d.getLineHeight=function(){return bt*Zr};d.__private__.getLineHeight=d.getLineHeight=function(){return bt*Zr};var Wo=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&(Zr=h),this},Vo=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Zr};Wo(e.lineHeight);var br=d.__private__.getHorizontalCoordinate=function(h){return q(h)},yr=d.__private__.getVerticalCoordinate=function(h){return et===X?h:Vt[B].mediaBox.topRightY-Vt[B].mediaBox.bottomLeftY-q(h)},Go=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(h){return tt(br(h))},Yo=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(h){return tt(yr(h))},Pi=e.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return nr(Pi)},d.__private__.setStrokeColor=d.setDrawColor=function(h,m,P,T){return Pi=Vn({ch1:h,ch2:m,ch3:P,ch4:T,pdfColorType:"draw",precision:2}),_(Pi),this};var ea=e.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return nr(ea)},d.__private__.setFillColor=d.setFillColor=function(h,m,P,T){return ea=Vn({ch1:h,ch2:m,ch3:P,ch4:T,pdfColorType:"fill",precision:2}),_(ea),this};var sr=e.textColor||"0 g",Jo=d.__private__.getTextColor=d.getTextColor=function(){return nr(sr)};d.__private__.setTextColor=d.setTextColor=function(h,m,P,T){return sr=Vn({ch1:h,ch2:m,ch3:P,ch4:T,pdfColorType:"text",precision:3}),this};var ki=e.charSpace,Xo=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(ki||0)};d.__private__.setCharSpace=d.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ki=h,this};var na=0;d.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},d.__private__.setLineCap=d.setLineCap=function(h){var m=d.CapJoinStyles[h];if(m===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return na=m,_(m+" J"),this};var Or=0;d.__private__.setLineJoin=d.setLineJoin=function(h){var m=d.CapJoinStyles[h];if(m===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Or=m,_(m+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return _(tt(q(h))+" M"),this},d.GState=Co,d.setGState=function(h){(h=typeof h=="string"?Yt[Qt[h]]:ra(null,h)).equals(Be)||(_("/"+h.id+" gs"),Be=h)};var ra=function(h,m){if(!h||!Qt[h]){var P=!1;for(var T in Yt)if(Yt.hasOwnProperty(T)&&Yt[T].equals(m)){P=!0;break}if(P)m=Yt[T];else{var G="GS"+(Object.keys(Yt).length+1).toString(10);Yt[G]=m,m.id=G}return h&&(Qt[h]=m.id),ye.publish("addGState",m),m}};d.addGState=function(h,m){return ra(h,m),this},d.saveGraphicsState=function(){return _("q"),Oe.push({key:jt,size:bt,color:sr}),this},d.restoreGraphicsState=function(){_("Q");var h=Oe.pop();return jt=h.key,bt=h.size,sr=h.color,Be=null,this},d.setCurrentTransformationMatrix=function(h){return _(h.toString()+" cm"),this},d.comment=function(h){return _("#"+h),this};var Qr=function(h,m){var P=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return P},set:function(ot){isNaN(ot)||(P=parseFloat(ot))}});var T=m||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return T},set:function(ot){isNaN(ot)||(T=parseFloat(ot))}});var G="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return G},set:function(ot){G=ot.toString()}}),this},ia=function(h,m,P,T){Qr.call(this,h,m),this.type="rect";var G=P||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return G},set:function(gt){isNaN(gt)||(G=parseFloat(gt))}});var ot=T||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ot},set:function(gt){isNaN(gt)||(ot=parseFloat(gt))}}),this},Ci=function(){this.page=he,this.currentPage=B,this.pages=wt.slice(0),this.pagesContext=Vt.slice(0),this.x=Rt,this.y=Ue,this.matrix=ge,this.width=Da(B),this.height=xr(B),this.outputDestination=St,this.id="",this.objectNumber=-1};Ci.prototype.restore=function(){he=this.page,B=this.currentPage,Vt=this.pagesContext,wt=this.pages,Rt=this.x,Ue=this.y,ge=this.matrix,wr(B,this.width),qa(B,this.height),St=this.outputDestination};var aa=function(h,m,P,T,G){er.push(new Ci),he=B=0,wt=[],Rt=h,Ue=m,ge=G,$i([P,T])};for(var Ii in d.beginFormObject=function(h,m,P,T,G){return aa(h,m,P,T,G),this},d.endFormObject=function(h){return(function(m){if(dr[m])er.pop().restore();else{var P=new Ci,T="Xo"+(Object.keys(un).length+1).toString(10);P.id=T,dr[m]=T,un[T]=P,ye.publish("addFormObject",P),er.pop().restore()}})(h),this},d.doFormObject=function(h,m){var P=un[dr[h]];return _("q"),_(m.toString()+" cm"),_("/"+P.id+" Do"),_("Q"),this},d.getFormObject=function(h){var m=un[dr[h]];return{x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},d.save=function(h,m){return h=h||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||!1,m.returnPromise===!1?(di(Li(ar()),h),typeof di.unload=="function"&&Xt.setTimeout&&setTimeout(di.unload,911),this):new Promise(function(P,T){try{var G=di(Li(ar()),h);typeof di.unload=="function"&&Xt.setTimeout&&setTimeout(di.unload,911),P(G)}catch(ot){T(ot.message)}})},Mt.API)Mt.API.hasOwnProperty(Ii)&&(Ii==="events"&&Mt.API.events.length?(function(h,m){var P,T,G;for(G=m.length-1;G!==-1;G--)P=m[G][0],T=m[G][1],h.subscribe.apply(h,[P].concat(typeof T=="function"?[T]:T))})(ye,Mt.API.events):d[Ii]=Mt.API[Ii]);function Da(h){return Vt[h].mediaBox.topRightX-Vt[h].mediaBox.bottomLeftX}function wr(h,m){Vt[h].mediaBox.topRightX=m+Vt[h].mediaBox.bottomLeftX}function xr(h){return Vt[h].mediaBox.topRightY-Vt[h].mediaBox.bottomLeftY}function qa(h,m){Vt[h].mediaBox.topRightY=m+Vt[h].mediaBox.bottomLeftY}var Ua=d.getPageWidth=function(h){return Da(h=h||B)/ne},za=d.setPageWidth=function(h,m){wr(h,m*ne)},ti=d.getPageHeight=function(h){return xr(h=h||B)/ne},Ha=d.setPageHeight=function(h,m){qa(h,m*ne)};return d.internal={pdfEscape:qn,getStyle:Ta,getFont:qo,getFontSize:Ct,getCharSpace:Xo,getTextColor:Jo,getLineHeight:Ho,getLineHeightFactor:Vo,getLineWidth:Uo,write:Nt,getHorizontalCoordinate:br,getVerticalCoordinate:yr,getCoordinateString:Go,getVerticalCoordinateString:Yo,collections:{},newObject:Te,newAdditionalObject:Xr,newObjectDeferred:en,newObjectDeferredBegin:an,getFilters:Gn,putStream:Dn,events:ye,scaleFactor:ne,pageSize:{getWidth:function(){return Ua(B)},setWidth:function(h){za(B,h)},getHeight:function(){return ti(B)},setHeight:function(h){Ha(B,h)}},encryptionOptions:b,encryption:on,getEncryptor:function(h){return b!==null?on.encryptor(h,0):function(m){return m}},output:Ni,getNumberOfPages:Oa,get pages(){return wt},out:_,f2:S,f3:E,getPageInfo:Ma,getPageInfoByObjId:Bo,getCurrentPageInfo:jo,getPDFVersion:O,Point:Qr,Rectangle:ia,Matrix:Gt,hasHotfix:vr},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return Ua(B)},set:function(h){za(B,h)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return ti(B)},set:function(h){Ha(B,h)},enumerable:!0,configurable:!0}),function(h){for(var m=0,P=Ht.length;m<P;m++){var T=Ia.call(this,h[m][0],h[m][1],h[m][2],Ht[m][3],!0);L===!1&&(F[T]=!0);var G=h[m][0].split("-");Ca({id:T,fontName:G[0],fontStyle:G[1]||""})}ye.publish("addFonts",{fonts:oe,dictionary:se})}.call(d,Ht),jt="F1",Fa(o,n),ye.publish("initialized"),d}Hi.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Hi.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Hi.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Hi.prototype.processOwnerPassword=function(e,t){return Ds(Rs(t).substr(0,5),e)},Hi.prototype.encryptor=function(e,t){var n=Rs(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(i){return Ds(n,i)}},Co.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||Le(e)!==Le(this))return!1;var i=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&i--;return i===0},Mt.API={events:[]},Mt.version="4.2.1";var qe=Mt.API,zs=1,bi=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ui=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},vi=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},$t=function(e){return e.toFixed(2)},Vr=function(e){return e.toFixed(5)};qe.__acroform__={};var kn=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},xl=function(e){return e*zs},cr=function(e){var t=new zl,n=It.internal.getHeight(e)||0,i=It.internal.getWidth(e)||0;return t.BBox=[0,0,Number($t(i)),Number($t(n))],t},wc=qe.__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},xc=qe.__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)},Ac=qe.__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},Ve=qe.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ac(e,t-1)},Ge=qe.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return wc(e,t-1)},Ye=qe.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return xc(e,t-1)},Lc=qe.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,i=t.internal.getVerticalCoordinate,o=e[0],s=e[1],f=e[2],l=e[3],u={};return u.lowerLeft_X=n(o)||0,u.lowerLeft_Y=i(s+l)||0,u.upperRight_X=n(o+f)||0,u.upperRight_Y=i(s)||0,[Number($t(u.lowerLeft_X)),Number($t(u.lowerLeft_Y)),Number($t(u.upperRight_X)),Number($t(u.upperRight_Y))]},Nc=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,i=qs(e,n),o=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("/"+o+" "+$t(i.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=cr(e);return s.scope=e.scope,s.stream=t.join(`
|
|
23
|
+
`),s}},qs=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,i={text:"",fontSize:""},o=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");o=e.multiline?o.map(function(S){return S.split(`
|
|
24
|
+
`)}):o.map(function(S){return[S]});var s=n,f=It.internal.getHeight(e)||0;f=f<0?-f:f;var l=It.internal.getWidth(e)||0;l=l<0?-l:l;var u=function(S,E,q){if(S+1<o.length){var D=E+" "+o[S+1][0];return Ao(D,e,q).width<=l-4}return!1};s++;t:for(;s>0;){t="",s--;var g,b,L=Ao("3",e,s).height,F=e.multiline?f-s:(f-L)/2,d=F+=2,M=0,O=0,R=0;if(s<=0){t=`(...) Tj
|
|
25
|
+
`,t+="% Width of Text: "+Ao(t,e,s=12).width+", FieldWidth:"+l+`
|
|
26
|
+
`;break}for(var k="",Y=0,X=0;X<o.length;X++)if(o.hasOwnProperty(X)){var et=!1;if(o[X].length!==1&&R!==o[X].length-1){if((L+2)*(Y+2)+2>f)continue t;k+=o[X][R],et=!0,O=X,X--}else{k=(k+=o[X][R]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var dt=parseInt(X),xt=u(dt,k,s),Pt=X>=o.length-1;if(xt&&!Pt){k+=" ",R=0;continue}if(xt||Pt){if(Pt)O=dt;else if(e.multiline&&(L+2)*(Y+2)+2>f)continue t}else{if(!e.multiline||(L+2)*(Y+2)+2>f)continue t;O=dt}}for(var tt="",U=M;U<=O;U++){var pt=o[U];if(e.multiline){if(U===O){tt+=pt[R]+" ",R=(R+1)%pt.length;continue}if(U===M){tt+=pt[pt.length-1]+" ";continue}}tt+=pt[0]+" "}switch(tt=tt.substr(tt.length-1)==" "?tt.substr(0,tt.length-1):tt,b=Ao(tt,e,s).width,e.textAlign){case"right":g=l-b-2;break;case"center":g=(l-b)/2;break;default:g=2}t+=$t(g)+" "+$t(d)+` Td
|
|
27
|
+
`,t+="("+bi(tt)+`) Tj
|
|
28
|
+
`,t+=-$t(g)+` 0 Td
|
|
29
|
+
`,d=-(s+2),b=0,M=et?O:O+1,Y++,k=""}break}return i.text=t,i.fontSize=s,i},Ao=function(e,t,n){var i=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},Sc={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},_c=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(i){return i.type===n.type&&i.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},Pc=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Qn.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Sc)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");zs=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Hl,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var i=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];s.objId=void 0,s.hasAnnotation&&_c(s,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(i,o){var s=!i;for(var f in i||(o.internal.newObjectDeferredBegin(o.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),o.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),i=i||o.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(i.hasOwnProperty(f)){var l=i[f],u=[],g=l.Rect;if(l.Rect&&(l.Rect=Lc(l.Rect,o)),o.internal.newObjectDeferredBegin(l.objId,!0),l.DA=It.createDefaultAppearanceStream(l),Le(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(u=l.getKeyValueListForStream()),l.Rect=g,l.hasAppearanceStream&&!l.appearanceStreamContent){var b=Nc(l);u.push({key:"AP",value:"<</N "+b+">>"}),o.internal.acroformPlugin.xForms.push(b)}if(l.appearanceStreamContent){var L="";for(var F in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(F)){var d=l.appearanceStreamContent[F];if(L+="/"+F+" ",L+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var f in d)if(d.hasOwnProperty(f)){var M=d[f];typeof M=="function"&&(M=M.call(o,l)),L+="/"+f+" "+M+" ",o.internal.acroformPlugin.xForms.indexOf(M)>=0||o.internal.acroformPlugin.xForms.push(M)}}else typeof(M=d)=="function"&&(M=M.call(o,l)),L+="/"+f+" "+M,o.internal.acroformPlugin.xForms.indexOf(M)>=0||o.internal.acroformPlugin.xForms.push(M);L+=">>"}u.push({key:"AP",value:`<<
|
|
30
|
+
`+L+">>"})}o.internal.putStream({additionalKeyValues:u,objectId:l.objId}),o.internal.out("endobj")}s&&(function(O,R){for(var k in O)if(O.hasOwnProperty(k)){var Y=k,X=O[k];R.internal.newObjectDeferredBegin(X.objId,!0),Le(X)==="object"&&typeof X.putStream=="function"&&X.putStream(),delete O[Y]}})(o.internal.acroformPlugin.xForms,o)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},Ul=qe.__acroform__.arrayToPdfArray=function(e,t,n){var i=function(f){return f};if(Array.isArray(e)){for(var o="[",s=0;s<e.length;s++)switch(s!==0&&(o+=" "),Le(e[s])){case"boolean":case"number":case"object":o+=e[s].toString();break;case"string":e[s].substr(0,1)==="/"?o+="/"+vi(e[s].substr(1)):(t!==void 0&&n&&(i=n.internal.getEncryptor(t)),o+="("+bi(i(e[s].toString()))+")")}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Os=function(e,t,n){var i=function(o){return o};return t!==void 0&&n&&(i=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+bi(i(e))+")"},fr=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})};fr.prototype.toString=function(){return this.objId+" 0 R"},fr.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},fr.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 n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var i=t[n],o=this[i];o&&(Array.isArray(o)?e.push({key:i,value:Ul(o,this.objId,this.scope)}):o instanceof fr?(o.scope=this.scope,e.push({key:i,value:o.objId+" 0 R"})):typeof o!="function"&&e.push({key:i,value:o}))}return e};var zl=function(){fr.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(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};kn(zl,fr);var Hl=function(){fr.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 n=function(i){return i};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+bi(n(e))+")"}},set:function(n){e=n}})};kn(Hl,fr);var Qn=function e(){fr.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!!Ve(t,3)},set:function(k){k?this.F=Ge(t,3):this.F=Ye(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');n=k}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(k){i=k!==void 0?k:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(k){i[0]=k}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(k){i[1]=k}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(k){i[2]=k}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(k){i[3]=k}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(k){switch(k){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=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 Io)return;s="FieldObject"+e.FieldNum++}var k=function(Y){return Y};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+bi(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 f="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return f},set:function(k){f=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 g=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return g===void 0?50/zs:g},set:function(k){g=k}});var b="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return b},set:function(k){b=k}});var L="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!L||this instanceof Io||this instanceof mi))return Os(L,this.objId,this.scope)},set:function(k){k=k.toString(),L=k}});var F=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(F)return this instanceof rn==0?Os(F,this.objId,this.scope):F},set:function(k){k=k.toString(),F=this instanceof rn==0?k.substr(0,1)==="("?Ui(k.substr(1,k.length-2)):Ui(k):k}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof rn==1?Ui(F.substr(1,F.length-1)):F},set:function(k){k=k.toString(),F=this instanceof rn==1?"/"+vi(k):k}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(k){this.V=k}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof rn==0?Os(d,this.objId,this.scope):d},set:function(k){k=k.toString(),d=this instanceof rn==0?k.substr(0,1)==="("?Ui(k.substr(1,k.length-2)):Ui(k):k}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof rn==1?Ui(d.substr(1,d.length-1)):d},set:function(k){k=k.toString(),d=this instanceof rn==1?"/"+vi(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 M,O=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return O},set:function(k){k=!!k,O=k}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(M)return M},set:function(k){M=k}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,1)},set:function(k){k?this.Ff=Ge(this.Ff,1):this.Ff=Ye(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,2)},set:function(k){k?this.Ff=Ge(this.Ff,2):this.Ff=Ye(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,3)},set:function(k){k?this.Ff=Ge(this.Ff,3):this.Ff=Ye(this.Ff,3)}});var R=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(R!==null)return R},set:function(k){if([0,1,2].indexOf(k)===-1)throw new Error('Invalid value "'+k+'" for attribute Q supplied.');R=k}}),Object.defineProperty(this,"textAlign",{get:function(){var k;switch(R){case 0:default:k="left";break;case 1:k="center";break;case 2:k="right"}return k},configurable:!0,enumerable:!0,set:function(k){switch(k){case"right":case 2:R=2;break;case"center":case 1:R=1;break;default:R=0}}})};kn(Qn,fr);var Gi=function(){Qn.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(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ul(t,this.objId,this.scope)},set:function(n){var i,o;o=[],typeof(i=n)=="string"&&(o=(function(s,f,l){l||(l=1);for(var u,g=[];u=f.exec(s);)g.push(u[l]);return g})(i,/\((.*?)\)/g)),t=o}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,i){for(i=i||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),i!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,18)},set:function(n){n?this.Ff=Ge(this.Ff,18):this.Ff=Ye(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Ge(this.Ff,19):this.Ff=Ye(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,20)},set:function(n){n?(this.Ff=Ge(this.Ff,20),t.sort()):this.Ff=Ye(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,22)},set:function(n){n?this.Ff=Ge(this.Ff,22):this.Ff=Ye(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,23)},set:function(n){n?this.Ff=Ge(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,27)},set:function(n){n?this.Ff=Ge(this.Ff,27):this.Ff=Ye(this.Ff,27)}}),this.hasAppearanceStream=!1};kn(Gi,Qn);var Yi=function(){Gi.call(this),this.fontName="helvetica",this.combo=!1};kn(Yi,Gi);var Ji=function(){Yi.call(this),this.combo=!0};kn(Ji,Yi);var So=function(){Ji.call(this),this.edit=!0};kn(So,Ji);var rn=function(){Qn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,15)},set:function(n){n?this.Ff=Ge(this.Ff,15):this.Ff=Ye(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,16)},set:function(n){n?this.Ff=Ge(this.Ff,16):this.Ff=Ye(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,17)},set:function(n){n?this.Ff=Ge(this.Ff,17):this.Ff=Ye(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,26)},set:function(n){n?this.Ff=Ge(this.Ff,26):this.Ff=Ye(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var i,o=[];for(i in o.push("<<"),t)o.push("/"+i+" ("+bi(n(t[i]))+")");return o.push(">>"),o.join(`
|
|
31
|
+
`)}},set:function(n){Le(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var i=n==null?"":n.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),e="/"+vi(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+vi(n)}})};kn(rn,Qn);var _o=function(){rn.call(this),this.pushButton=!0};kn(_o,rn);var Xi=function(){rn.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:[]}})};kn(Xi,rn);var Io=function(){var e,t;Qn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(o){e=o}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(o){t=o}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var o=function(l){return l};this.scope&&(o=this.scope.internal.getEncryptor(this.objId));var s,f=[];for(s in f.push("<<"),i)f.push("/"+s+" ("+bi(o(i[s]))+")");return f.push(">>"),f.join(`
|
|
32
|
+
`)},set:function(o){Le(o)==="object"&&(i=o)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(o){typeof o=="string"&&(i.CA=o)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(o){var s=o==null?"":o.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+vi(s)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(o){var s=o==null?"":o.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+vi(s)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=It.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};kn(Io,Qn),Xi.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 n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Xi.prototype.createOption=function(e){var t=new Io;return t.Parent=this,t.optionName=e,this.Kids.push(t),kc.call(this.scope,t),t};var Po=function(){rn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=It.CheckBox.createAppearanceStream()};kn(Po,rn);var mi=function(){Qn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,13)},set:function(t){t?this.Ff=Ge(this.Ff,13):this.Ff=Ye(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,21)},set:function(t){t?this.Ff=Ge(this.Ff,21):this.Ff=Ye(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,23)},set:function(t){t?this.Ff=Ge(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,24)},set:function(t){t?this.Ff=Ge(this.Ff,24):this.Ff=Ye(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,25)},set:function(t){t?this.Ff=Ge(this.Ff,25):this.Ff=Ye(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,26)},set:function(t){t?this.Ff=Ge(this.Ff,26):this.Ff=Ye(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}})};kn(mi,Qn);var ko=function(){mi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,14)},set:function(e){e?this.Ff=Ge(this.Ff,14):this.Ff=Ye(this.Ff,14)}}),this.password=!0};kn(ko,mi);var It={CheckBox:{createAppearanceStream:function(){return{N:{On:It.CheckBox.YesNormal},D:{On:It.CheckBox.YesPushDown,Off:It.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=cr(e);t.scope=e.scope;var n=[],i=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),s=qs(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+$t(It.internal.getWidth(e))+" "+$t(It.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+$t(s.fontSize)+" Tf "+o),n.push("BT"),n.push(s.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(`
|
|
33
|
+
`),t},YesNormal:function(e){var t=cr(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=[],s=It.internal.getHeight(e),f=It.internal.getWidth(e),l=qs(e,e.caption);return o.push("1 g"),o.push("0 0 "+$t(f)+" "+$t(s)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+$t(f-1)+" "+$t(s-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+$t(l.fontSize)+" Tf "+i),o.push(l.text),o.push("ET"),o.push("Q"),t.stream=o.join(`
|
|
34
|
+
`),t},OffPushDown:function(e){var t=cr(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+$t(It.internal.getWidth(e))+" "+$t(It.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
|
|
35
|
+
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:It.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=It.RadioButton.Circle.YesNormal,t.D[e]=It.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=cr(e);t.scope=e.scope;var n=[],i=It.internal.getWidth(e)<=It.internal.getHeight(e)?It.internal.getWidth(e)/4:It.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var o=It.internal.Bezier_C,s=Number((i*o).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Vr(It.internal.getWidth(e)/2)+" "+Vr(It.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
|
|
36
|
+
`),t},YesPushDown:function(e){var t=cr(e);t.scope=e.scope;var n=[],i=It.internal.getWidth(e)<=It.internal.getHeight(e)?It.internal.getWidth(e)/4:It.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var o=Number((2*i).toFixed(5)),s=Number((o*It.internal.Bezier_C).toFixed(5)),f=Number((i*It.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Vr(It.internal.getWidth(e)/2)+" "+Vr(It.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+s+" "+s+" "+o+" 0 "+o+" c"),n.push("-"+s+" "+o+" -"+o+" "+s+" -"+o+" 0 c"),n.push("-"+o+" -"+s+" -"+s+" -"+o+" 0 -"+o+" c"),n.push(s+" -"+o+" "+o+" -"+s+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Vr(It.internal.getWidth(e)/2)+" "+Vr(It.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+f+" "+f+" "+i+" 0 "+i+" c"),n.push("-"+f+" "+i+" -"+i+" "+f+" -"+i+" 0 c"),n.push("-"+i+" -"+f+" -"+f+" -"+i+" 0 -"+i+" c"),n.push(f+" -"+i+" "+i+" -"+f+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
|
|
37
|
+
`),t},OffPushDown:function(e){var t=cr(e);t.scope=e.scope;var n=[],i=It.internal.getWidth(e)<=It.internal.getHeight(e)?It.internal.getWidth(e)/4:It.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var o=Number((2*i).toFixed(5)),s=Number((o*It.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Vr(It.internal.getWidth(e)/2)+" "+Vr(It.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+s+" "+s+" "+o+" 0 "+o+" c"),n.push("-"+s+" "+o+" -"+o+" "+s+" -"+o+" 0 c"),n.push("-"+o+" -"+s+" -"+s+" -"+o+" 0 -"+o+" c"),n.push(s+" -"+o+" "+o+" -"+s+" "+o+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
|
|
38
|
+
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:It.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=It.RadioButton.Cross.YesNormal,t.D[e]=It.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=cr(e);t.scope=e.scope;var n=[],i=It.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+$t(It.internal.getWidth(e)-2)+" "+$t(It.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push($t(i.x1.x)+" "+$t(i.x1.y)+" m"),n.push($t(i.x2.x)+" "+$t(i.x2.y)+" l"),n.push($t(i.x4.x)+" "+$t(i.x4.y)+" m"),n.push($t(i.x3.x)+" "+$t(i.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
|
|
39
|
+
`),t},YesPushDown:function(e){var t=cr(e);t.scope=e.scope;var n=It.internal.calculateCross(e),i=[];return i.push("0.749023 g"),i.push("0 0 "+$t(It.internal.getWidth(e))+" "+$t(It.internal.getHeight(e))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+$t(It.internal.getWidth(e)-2)+" "+$t(It.internal.getHeight(e)-2)+" re"),i.push("W"),i.push("n"),i.push($t(n.x1.x)+" "+$t(n.x1.y)+" m"),i.push($t(n.x2.x)+" "+$t(n.x2.y)+" l"),i.push($t(n.x4.x)+" "+$t(n.x4.y)+" m"),i.push($t(n.x3.x)+" "+$t(n.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join(`
|
|
40
|
+
`),t},OffPushDown:function(e){var t=cr(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+$t(It.internal.getWidth(e))+" "+$t(It.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
|
|
41
|
+
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};It.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=It.internal.getWidth(e),n=It.internal.getHeight(e),i=Math.min(t,n);return{x1:{x:(t-i)/2,y:(n-i)/2+i},x2:{x:(t-i)/2+i,y:(n-i)/2},x3:{x:(t-i)/2,y:(n-i)/2},x4:{x:(t-i)/2+i,y:(n-i)/2+i}}}},It.internal.getWidth=function(e){var t=0;return Le(e)==="object"&&(t=xl(e.Rect[2])),t},It.internal.getHeight=function(e){var t=0;return Le(e)==="object"&&(t=xl(e.Rect[3])),t};var kc=qe.addField=function(e){if(Pc(this,e),!(e instanceof Qn))throw new Error("Invalid argument passed to jsPDF.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};qe.AcroFormChoiceField=Gi,qe.AcroFormListBox=Yi,qe.AcroFormComboBox=Ji,qe.AcroFormEditBox=So,qe.AcroFormButton=rn,qe.AcroFormPushButton=_o,qe.AcroFormRadioButton=Xi,qe.AcroFormCheckBox=Po,qe.AcroFormTextField=mi,qe.AcroFormPasswordField=ko,qe.AcroFormAppearance=It,qe.AcroForm={ChoiceField:Gi,ListBox:Yi,ComboBox:Ji,EditBox:So,Button:rn,PushButton:_o,RadioButton:Xi,CheckBox:Po,TextField:mi,PasswordField:ko,Appearance:It},Mt.AcroForm={ChoiceField:Gi,ListBox:Yi,ComboBox:Ji,EditBox:So,Button:rn,PushButton:_o,RadioButton:Xi,CheckBox:Po,TextField:mi,PasswordField:ko,Appearance:It};var P1=Mt.AcroForm;function Wl(e){return e.reduce(function(t,n,i){return t[n]=i,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=e.__addimage__.getImageFileTypeByImageData=function(S,E){var q,D,nt,at,ht,Q=n;if((E=E||n)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(xt(S))for(ht in i)for(nt=i[ht],q=0;q<nt.length;q+=1){for(at=!0,D=0;D<nt[q].length;D+=1)if(nt[q][D]!==void 0&&nt[q][D]!==S[D]){at=!1;break}if(at===!0){Q=ht;break}}else for(ht in i)for(nt=i[ht],q=0;q<nt.length;q+=1){for(at=!0,D=0;D<nt[q].length;D+=1)if(nt[q][D]!==void 0&&nt[q][D]!==S.charCodeAt(D)){at=!1;break}if(at===!0){Q=ht;break}}return Q===n&&E!==n&&(Q=E),Q},s=function S(E){for(var q=this.internal.write,D=this.internal.putStream,nt=(0,this.internal.getFilters)();nt.indexOf("FlateEncode")!==-1;)nt.splice(nt.indexOf("FlateEncode"),1);E.objectId=this.internal.newObject();var at=[];if(at.push({key:"Type",value:"/XObject"}),at.push({key:"Subtype",value:"/Image"}),at.push({key:"Width",value:E.width}),at.push({key:"Height",value:E.height}),E.colorSpace===k.INDEXED?at.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(E.palette.length/3-1)+" "+("sMask"in E&&E.sMask!==void 0?E.objectId+2:E.objectId+1)+" 0 R]"}):(at.push({key:"ColorSpace",value:"/"+E.colorSpace}),E.colorSpace===k.DEVICE_CMYK&&at.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),at.push({key:"BitsPerComponent",value:E.bitsPerComponent}),"decodeParameters"in E&&E.decodeParameters!==void 0&&at.push({key:"DecodeParms",value:"<<"+E.decodeParameters+">>"}),"transparency"in E&&Array.isArray(E.transparency)&&E.transparency.length>0){for(var ht="",Q=0,ut=E.transparency.length;Q<ut;Q++)ht+=E.transparency[Q]+" "+E.transparency[Q]+" ";at.push({key:"Mask",value:"["+ht+"]"})}E.sMask!==void 0&&at.push({key:"SMask",value:E.objectId+1+" 0 R"});var At=E.filter!==void 0?["/"+E.filter]:void 0;if(D({data:E.data,additionalKeyValues:at,alreadyAppliedFilters:At,objectId:E.objectId}),q("endobj"),"sMask"in E&&E.sMask!==void 0){var vt,x=(vt=E.sMaskBitsPerComponent)!==null&&vt!==void 0?vt:E.bitsPerComponent,B={width:E.width,height:E.height,colorSpace:"DeviceGray",bitsPerComponent:x,data:E.sMask};"filter"in E&&(B.decodeParameters="/Predictor ".concat(E.predictor," /Colors 1 /BitsPerComponent ").concat(x," /Columns ").concat(E.width),B.filter=E.filter),S.call(this,B)}if(E.colorSpace===k.INDEXED){var j=this.internal.newObject();D({data:tt(new Uint8Array(E.palette)),objectId:j}),q("endobj")}},f=function(){var S=this.internal.collections[t+"images"];for(var E in S)s.call(this,S[E])},l=function(){var S,E=this.internal.collections[t+"images"],q=this.internal.write;for(var D in E)q("/I"+(S=E[D]).index,S.objectId,"0","R")},u=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",f),this.internal.events.subscribe("putXobjectDict",l))},g=function(){var S=this.internal.collections[t+"images"];return u.call(this),S},b=function(){return Object.keys(this.internal.collections[t+"images"]).length},L=function(S){return typeof e["process"+S.toUpperCase()]=="function"},F=function(S){return Le(S)==="object"&&S.nodeType===1},d=function(S,E){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var q=""+S.getAttribute("src");if(q.indexOf("data:image/")===0)return No(unescape(q).split("base64,").pop());var D=e.loadFile(q,!0);if(D!==void 0)return D}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var nt;switch(E){case"PNG":nt="image/png";break;case"WEBP":nt="image/webp";break;default:nt="image/jpeg"}return No(S.toDataURL(nt,1).split("base64,").pop())}},M=function(S){var E=this.internal.collections[t+"images"];if(E){for(var q in E)if(S===E[q].alias)return E[q]}},O=function(S,E,q){return S||E||(S=-96,E=-96),S<0&&(S=-1*q.width*72/S/this.internal.scaleFactor),E<0&&(E=-1*q.height*72/E/this.internal.scaleFactor),S===0&&(S=E*q.width/q.height),E===0&&(E=S*q.height/q.width),[S,E]},R=function(S,E,q,D,nt,at){var ht=O.call(this,q,D,nt),Q=this.internal.getCoordinateString,ut=this.internal.getVerticalCoordinateString,At=g.call(this);if(q=ht[0],D=ht[1],At[nt.index]=nt,at){at*=Math.PI/180;var vt=Math.cos(at),x=Math.sin(at),B=function(z){return z.toFixed(4)},j=[B(vt),B(x),B(-1*x),B(vt),0,0,"cm"]}this.internal.write("q"),at?(this.internal.write([1,"0","0",1,Q(S),ut(E+D),"cm"].join(" ")),this.internal.write(j.join(" ")),this.internal.write([Q(q),"0","0",Q(D),"0","0","cm"].join(" "))):this.internal.write([Q(q),"0","0",Q(D),Q(S),ut(E+D),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+nt.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 Y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},X=e.__addimage__.sHashCode=function(S){var E,q,D=0;if(typeof S=="string")for(q=S.length,E=0;E<q;E++)D=(D<<5)-D+S.charCodeAt(E),D|=0;else if(xt(S))for(q=S.byteLength/2,E=0;E<q;E++)D=(D<<5)-D+S[E],D|=0;return D},et=e.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var E=!0;return S.length===0&&(E=!1),S.length%4!=0&&(E=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(E=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(E=!1),E},dt=e.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var E=S.indexOf(",");return E<0?null:S.substring(0,E).trim().endsWith("base64")?S.substring(E+1):null};e.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var xt=e.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},Pt=e.__addimage__.binaryStringToUint8Array=function(S){for(var E=S.length,q=new Uint8Array(E),D=0;D<E;D++)q[D]=S.charCodeAt(D);return q},tt=e.__addimage__.arrayBufferToBinaryString=function(S){for(var E="",q=xt(S)?S:new Uint8Array(S),D=0;D<q.length;D+=8192)E+=String.fromCharCode.apply(null,q.subarray(D,D+8192));return E};e.addImage=function(){var S,E,q,D,nt,at,ht,Q,ut;if(typeof arguments[1]=="number"?(E=n,q=arguments[1],D=arguments[2],nt=arguments[3],at=arguments[4],ht=arguments[5],Q=arguments[6],ut=arguments[7]):(E=arguments[1],q=arguments[2],D=arguments[3],nt=arguments[4],at=arguments[5],ht=arguments[6],Q=arguments[7],ut=arguments[8]),Le(S=arguments[0])==="object"&&!F(S)&&"imageData"in S){var At=S;S=At.imageData,E=At.format||E||n,q=At.x||q||0,D=At.y||D||0,nt=At.w||At.width||nt,at=At.h||At.height||at,ht=At.alias||ht,Q=At.compression||Q,ut=At.rotation||At.angle||ut}var vt=this.internal.getFilters();if(Q===void 0&&vt.indexOf("FlateEncode")!==-1&&(Q="SLOW"),isNaN(q)||isNaN(D))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var x=U.call(this,S,E,ht,Q);return R.call(this,q,D,nt,at,x,ut),this};var U=function(S,E,q,D){var nt,at,ht;if(typeof S=="string"&&o(S)===n){S=unescape(S);var Q=pt(S,!1);(Q!==""||(Q=e.loadFile(S,!0))!==void 0)&&(S=Q)}if(F(S)&&(S=d(S,E)),E=o(S,E),!L(E))throw new Error("addImage does not support files of type '"+E+"', please ensure that a plugin for '"+E+"' support is added.");if(((ht=q)==null||ht.length===0)&&(q=(function(ut){return typeof ut=="string"||xt(ut)?X(ut):xt(ut.data)?X(ut.data):null})(S)),(nt=M.call(this,q))||(S instanceof Uint8Array||E==="RGBA"||(at=S,S=Pt(S)),nt=this["process"+E.toUpperCase()](S,b.call(this),q,(function(ut){return ut&&typeof ut=="string"&&(ut=ut.toUpperCase()),ut in e.image_compression?ut:Y.NONE})(D),at)),!nt)throw new Error("An unknown error occurred whilst processing the image.");return nt},pt=e.__addimage__.convertBase64ToBinaryString=function(S,E){E=typeof E!="boolean"||E;var q,D="";if(typeof S=="string"){var nt;q=(nt=dt(S))!==null&&nt!==void 0?nt:S;try{D=No(q)}catch(at){if(E)throw et(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+at.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return D};e.getImageProperties=function(S){var E,q,D="";if(F(S)&&(S=d(S)),typeof S=="string"&&o(S)===n&&((D=pt(S,!1))===""&&(D=e.loadFile(S)||""),S=D),q=o(S),!L(q))throw new Error("addImage does not support files of type '"+q+"', please ensure that a plugin for '"+q+"' support is added.");if(S instanceof Uint8Array||(S=Pt(S)),!(E=this["process"+q.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return E.fileType=q,E}})(Mt.API),(function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Mt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var i,o,s,f=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(n.objId),g=n.pageContext.annotations,b=!1,L=0;L<g.length&&!b;L++)switch((i=g[L]).type){case"link":(t(i.options.url)||t(i.options.pageNumber))&&(b=!0);break;case"reference":case"text":case"freetext":b=!0}if(b!=0){this.internal.write("/Annots [");for(var F=0;F<g.length;F++){i=g[F];var d=this.internal.pdfEscape,M=this.internal.getEncryptor(n.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var O=this.internal.newAdditionalObject(),R=this.internal.newAdditionalObject(),k=this.internal.getEncryptor(O.objId),Y=i.title||"Note";s="<</Type /Annot /Subtype /Text "+(o="/Rect ["+f(i.bounds.x)+" "+l(i.bounds.y+i.bounds.h)+" "+f(i.bounds.x+i.bounds.w)+" "+l(i.bounds.y)+"] ")+"/Contents ("+d(k(i.contents))+")",s+=" /Popup "+R.objId+" 0 R",s+=" /P "+u.objId+" 0 R",s+=" /T ("+d(k(Y))+") >>",O.content=s;var X=O.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(o="/Rect ["+f(i.bounds.x+30)+" "+l(i.bounds.y+i.bounds.h)+" "+f(i.bounds.x+i.bounds.w+30)+" "+l(i.bounds.y)+"] ")+" /Parent "+X,i.open&&(s+=" /Open true"),s+=" >>",R.content=s,this.internal.write(O.objId,"0 R",R.objId,"0 R");break;case"freetext":o="/Rect ["+f(i.bounds.x)+" "+l(i.bounds.y)+" "+f(i.bounds.x+i.bounds.w)+" "+l(i.bounds.y+i.bounds.h)+"] ";var et="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(i.color||"#000000");s="<</Type /Annot /Subtype /FreeText "+o+"/Contents ("+d(M(i.contents))+")",s+=" /DS("+d(M(et))+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(i.options.name){var dt=this.annotations._nameMap[i.options.name];i.options.pageNumber=dt.page,i.options.top=dt.y}else i.options.top||(i.options.top=0);if(o="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",s="",i.options.url)s="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /A <</S /URI /URI ("+d(M(i.options.url))+") >>";else if(i.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,s+=" /FitV "+i.options.left+"]";break;default:var xt=l(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),s+=" /XYZ "+i.options.left+" "+xt+" "+i.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var i=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":i.pageContext.annotations.push(n)}},e.link=function(n,i,o,s,f){var l=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:u(n),y:g(i),w:u(n+o),h:g(i+s)},options:f,type:"link"})},e.textWithLink=function(n,i,o,s){var f,l,u=this.getTextWidth(n),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){l=s.maxWidth;var b=this.splitTextToSize(n,l).length;f=Math.ceil(g*b)}else l=u,f=g;return this.text(n,i,o,s),o+=.2*g,s.align==="center"&&(i-=u/2),s.align==="right"&&(i-=u),this.link(i,o-g,l,f,s),u},e.getTextWidth=function(n){var i=this.internal.getFontSize();return this.getStringUnitWidth(n)*i/this.internal.scaleFactor}})(Mt.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]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(O){return t[O.charCodeAt(0)]!==void 0},f=e.__arabicParser__.isArabicLetter=function(O){return typeof O=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(O)},l=e.__arabicParser__.isArabicEndLetter=function(O){return f(O)&&s(O)&&t[O.charCodeAt(0)].length<=2},u=e.__arabicParser__.isArabicAlfLetter=function(O){return f(O)&&o.indexOf(O.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(O){return f(O)&&s(O)&&t[O.charCodeAt(0)].length>=1};var g=e.__arabicParser__.arabicLetterHasFinalForm=function(O){return f(O)&&s(O)&&t[O.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(O){return f(O)&&s(O)&&t[O.charCodeAt(0)].length>=3};var b=e.__arabicParser__.arabicLetterHasMedialForm=function(O){return f(O)&&s(O)&&t[O.charCodeAt(0)].length==4},L=e.__arabicParser__.resolveLigatures=function(O){var R=0,k=n,Y="",X=0;for(R=0;R<O.length;R+=1)k[O.charCodeAt(R)]!==void 0?(X++,typeof(k=k[O.charCodeAt(R)])=="number"&&(Y+=String.fromCharCode(k),k=n,X=0),R===O.length-1&&(k=n,Y+=O.charAt(R-(X-1)),R-=X-1,X=0)):(k=n,Y+=O.charAt(R-X),R-=X,X=0);return Y};e.__arabicParser__.isArabicDiacritic=function(O){return O!==void 0&&i[O.charCodeAt(0)]!==void 0};var F=e.__arabicParser__.getCorrectForm=function(O,R,k){return f(O)?s(O)===!1?-1:!g(O)||!f(R)&&!f(k)||!f(k)&&l(R)||l(O)&&!f(R)||l(O)&&u(R)||l(O)&&l(R)?0:b(O)&&f(R)&&!l(R)&&f(k)&&g(k)?3:l(O)||!f(k)?1:2:-1},d=function(O){var R=0,k=0,Y=0,X="",et="",dt="",xt=(O=O||"").split("\\s+"),Pt=[];for(R=0;R<xt.length;R+=1){for(Pt.push(""),k=0;k<xt[R].length;k+=1)X=xt[R][k],et=xt[R][k-1],dt=xt[R][k+1],f(X)?(Y=F(X,et,dt),Pt[R]+=Y!==-1?String.fromCharCode(t[X.charCodeAt(0)][Y]):X):Pt[R]+=X;Pt[R]=L(Pt[R])}return Pt.join(" ")},M=e.__arabicParser__.processArabic=e.processArabic=function(){var O,R=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,k=[];if(Array.isArray(R)){var Y=0;for(k=[],Y=0;Y<R.length;Y+=1)Array.isArray(R[Y])?k.push([d(R[Y][0]),R[Y][1],R[Y][2]]):k.push([d(R[Y])]);O=k}else O=d(R);return typeof arguments[0]=="string"?O:(arguments[0].text=O,arguments[0])};e.events.push(["preProcessText",M])})(Mt.API),Mt.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 n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(l){n=l}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var o=300;Object.defineProperty(this,"height",{get:function(){return o},set:function(l){o=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=o+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(l){s=l}});var f={};Object.defineProperty(this,"style",{get:function(){return f},set:function(l){f=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,i){var o;if((n=n||"2d")!=="2d")return null;for(o in i)this.pdf.context2d.hasOwnProperty(o)&&(this.pdf.context2d[o]=i[o]);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}])})(Mt.API),(function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=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(O){u=O}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(O){g=O}});var b=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return b},set:function(O){b=O}});var L=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return L},set:function(O){L=O}});var F=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return F},set:function(O){F=O}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(O){d=O}});var M=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return M},set:function(O){M=O}}),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 i.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},e.getTextDimensions=function(u,g){i.call(this);var b=(g=g||{}).fontSize||this.getFontSize(),L=g.font||this.getFont(),F=g.scaleFactor||this.internal.scaleFactor,d=0,M=0,O=0,R=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=g.maxWidth;k>0?typeof u=="string"?u=this.splitTextToSize(u,k):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(X,et){return X.concat(R.splitTextToSize(et,k))},[])):u=Array.isArray(u)?u:[u];for(var Y=0;Y<u.length;Y++)d<(O=this.getStringUnitWidth(u[Y],{font:L})*b)&&(d=O);return d!==0&&(M=u.length),{w:d/=F,h:Math.max((M*b*this.getLineHeightFactor()-b*(this.getLineHeightFactor()-1))/F,0)}},e.cellAddPage=function(){i.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 f=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]),i.call(this);var g=this.internal.__cell__.lastCell,b=this.internal.__cell__.padding,L=this.internal.__cell__.margins||t,F=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return g.lineNumber!==void 0&&(g.lineNumber===u.lineNumber?(u.x=(g.x||0)+(g.width||0),u.y=g.y||0):g.y+g.height+u.height+L.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=L.top,d&&F&&(this.printHeaderRow(u.lineNumber,!0),u.y+=F[0].height)):u.y=g.y+g.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,n===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-b,u.y+b,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+b,{align:"center",baseline:"top",maxWidth:u.width-b-b}):this.text(u.text,u.x+b,u.y+b,{align:"left",baseline:"top",maxWidth:u.width-b-b})),this.internal.__cell__.lastCell=u,this};e.table=function(u,g,b,L,F){if(i.call(this),!b)throw new Error("No data for PDF table.");var d,M,O,R,k=[],Y=[],X=[],et={},dt={},xt=[],Pt=[],tt=(F=F||{}).autoSize||!1,U=F.printHeaders!==!1,pt=F.css&&F.css["font-size"]!==void 0?16*F.css["font-size"]:F.fontSize||12,S=F.margins||Object.assign({width:this.getPageWidth()},t),E=typeof F.padding=="number"?F.padding:3,q=F.headerBackgroundColor||"#c8c8c8",D=F.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=U,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=pt,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=q,this.internal.__cell__.headerTextColor=D,this.setFontSize(pt),L==null)Y=k=Object.keys(b[0]),X=k.map(function(){return"left"});else if(Array.isArray(L)&&Le(L[0])==="object")for(k=L.map(function(At){return At.name}),Y=L.map(function(At){return At.prompt||At.name||""}),X=L.map(function(At){return At.align||"left"}),d=0;d<L.length;d+=1)dt[L[d].name]=.7499990551181103*L[d].width;else Array.isArray(L)&&typeof L[0]=="string"&&(Y=k=L,X=k.map(function(){return"left"}));if(tt||Array.isArray(L)&&typeof L[0]=="string")for(d=0;d<k.length;d+=1){for(et[R=k[d]]=b.map(function(At){return At[R]}),this.setFont(void 0,"bold"),xt.push(this.getTextDimensions(Y[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),M=et[R],this.setFont(void 0,"normal"),O=0;O<M.length;O+=1)xt.push(this.getTextDimensions(M[O],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);dt[R]=Math.max.apply(null,xt)+E+E,xt=[]}if(U){var nt={};for(d=0;d<k.length;d+=1)nt[k[d]]={},nt[k[d]].text=Y[d],nt[k[d]].align=X[d];var at=l.call(this,nt,dt);Pt=k.map(function(At){return new s(u,g,dt[At],at,nt[At].text,void 0,nt[At].align)}),this.setTableHeaderRow(Pt),this.printHeaderRow(1,!1)}var ht=L.reduce(function(At,vt){return At[vt.name]=vt.align,At},{});for(d=0;d<b.length;d+=1){"rowStart"in F&&F.rowStart instanceof Function&&F.rowStart({row:d,data:b[d]},this);var Q=l.call(this,b[d],dt);for(O=0;O<k.length;O+=1){var ut=b[d][k[O]];"cellStart"in F&&F.cellStart instanceof Function&&F.cellStart({row:d,col:O,data:ut},this),f.call(this,new s(u,g,dt[k[O]],Q,ut,d+2,ht[k[O]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=g,this};var l=function(u,g){var b=this.internal.__cell__.padding,L=this.internal.__cell__.table_font_size,F=this.internal.scaleFactor;return Object.keys(u).map(function(d){var M=u[d];return this.splitTextToSize(M.hasOwnProperty("text")?M.text:M,g[d]-b-b)},this).map(function(d){return this.getLineHeightFactor()*d.length*L/F+b+b},this).reduce(function(d,M){return Math.max(d,M)},0)};e.setTableHeaderRow=function(u){i.call(this),this.internal.__cell__.tableHeaderRow=u},e.printHeaderRow=function(u,g){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var b;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var L=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(L[0],L[1],L[2],L[3],void 0,-1)}this.setFont(void 0,"bold");for(var F=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){b=this.internal.__cell__.tableHeaderRow[d].clone(),g&&(b.y=this.internal.__cell__.margins.top||0,F.push(b)),b.lineNumber=u;var M=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),f.call(this,b),this.setTextColor(M)}F.length>0&&this.setTableHeaderRow(F),this.setFont(void 0,"normal"),n=!1}})(Mt.API);var Vl={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Gl=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Us=Wl(Gl),Yl=[100,200,300,400,500,600,700,800,900],Cc=Wl(Yl);function Bs(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=(function(s){return Vl[s=s||"normal"]?s:"normal"})(e.style),i=(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),o=(function(s){return typeof Us[s=s||"normal"]=="number"?s:"normal"})(e.stretch);return{family:t,style:n,weight:i,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,n,i].join(" ")}}}function Al(e,t,n,i){var o;for(o=n;o>=0&&o<t.length;o+=i)if(e[t[o]])return e[t[o]];for(o=n;o>=0&&o<t.length;o-=i)if(e[t[o]])return e[t[o]]}var Ic={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ll={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Nl(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Sl(e){return e.trimLeft()}function Fc(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Ec(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 zi,Lo,_l,Pl,kl,js=["times"];function Cl(e,t,n,i,o){var s=4,f=Fl;switch(o){case Mt.API.image_compression.FAST:s=1,f=Il;break;case Mt.API.image_compression.MEDIUM:s=6,f=El;break;case Mt.API.image_compression.SLOW:s=9,f=Ol}e=(function(u,g,b,L){for(var F,d=u.length/g,M=new Uint8Array(u.length+d),O=[Oc,Il,Fl,El,Ol],R=0;R<d;R+=1){var k=R*g,Y=u.subarray(k,k+g);if(L)M.set(L(Y,b,F),k+R);else{for(var X=O.length,et=[],dt=0;dt<X;dt+=1)et[dt]=O[dt](Y,b,F);var xt=jc(et.concat());M.set(et[xt],k+R)}F=Y}return M})(e,t,Math.ceil(n*i/8),f);var l=co(e,{level:s});return Mt.API.__addimage__.arrayBufferToBinaryString(l)}function Oc(e){var t=Array.apply([],e);return t.unshift(0),t}function Il(e,t){var n=e.length,i=[];i[0]=1;for(var o=0;o<n;o+=1){var s=e[o-t]||0;i[o+1]=e[o]-s+256&255}return i}function Fl(e,t,n){var i=e.length,o=[];o[0]=2;for(var s=0;s<i;s+=1){var f=n&&n[s]||0;o[s+1]=e[s]-f+256&255}return o}function El(e,t,n){var i=e.length,o=[];o[0]=3;for(var s=0;s<i;s+=1){var f=e[s-t]||0,l=n&&n[s]||0;o[s+1]=e[s]+256-(f+l>>>1)&255}return o}function Ol(e,t,n){var i=e.length,o=[];o[0]=4;for(var s=0;s<i;s+=1){var f=Bc(e[s-t]||0,n&&n[s]||0,n&&n[s-t]||0);o[s+1]=e[s]-f+256&255}return o}function Bc(e,t,n){if(e===t&&t===n)return e;var i=Math.abs(t-n),o=Math.abs(e-n),s=Math.abs(e+t-n-n);return i<=o&&i<=s?e:o<=s?t:n}function jc(e){var t=e.map(function(n){return n.reduce(function(i,o){return i+Math.abs(o)},0)});return t.indexOf(Math.min.apply(null,t))}function Ms(e,t,n){var i=t*n,o=Math.floor(i/8),s=16-(i-8*o+n),f=(1<<n)-1;return Jl(e,o)>>s&f}function Bl(e,t,n,i){var o=n*i,s=Math.floor(o/8),f=16-(o-8*s+i),l=(1<<i)-1,u=(t&l)<<f;(function(g,b,L){if(b+1<g.byteLength)g.setUint16(b,L,!1);else{var F=L>>8&255;g.setUint8(b,F)}})(e,s,Jl(e,s)&~(l<<f)&65535|u)}function Jl(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function Mc(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 n=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,o=e[t++],s=o>>7,f=1<<1+(7&o);e[t++],e[t++];var l=null,u=null;s&&(l=t,u=f,t+=3*f);var g=!0,b=[],L=0,F=null,d=0,M=null;for(this.width=n,this.height=i;g&&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,M=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((S=e[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var O=e[t++];L=e[t++]|e[t++]<<8,F=e[t++],1&O||(F=null),d=O>>2&7,t++;break;case 254:for(;;){if(!((S=e[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var R=e[t++]|e[t++]<<8,k=e[t++]|e[t++]<<8,Y=e[t++]|e[t++]<<8,X=e[t++]|e[t++]<<8,et=e[t++],dt=et>>6&1,xt=1<<1+(7&et),Pt=l,tt=u,U=!1;et>>7&&(U=!0,Pt=t,tt=xt,t+=3*xt);var pt=t;for(t++;;){var S;if(!((S=e[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}b.push({x:R,y:k,width:Y,height:X,has_local_palette:U,palette_offset:Pt,palette_size:tt,data_offset:pt,data_length:t-pt,transparent_index:F,interlaced:!!dt,delay:L,disposal:d});break;case 59:g=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return b.length},this.loopCount=function(){return M},this.frameInfo=function(E){if(E<0||E>=b.length)throw new Error("Frame index out of range.");return b[E]},this.decodeAndBlitFrameBGRA=function(E,q){var D=this.frameInfo(E),nt=D.width*D.height;if(nt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var at=new Uint8Array(nt);jl(e,D.data_offset,at,nt);var ht=D.palette_offset,Q=D.transparent_index;Q===null&&(Q=256);var ut=D.width,At=n-ut,vt=ut,x=4*(D.y*n+D.x),B=4*((D.y+D.height)*n+D.x),j=x,z=4*At;D.interlaced===!0&&(z+=4*n*7);for(var V=8,K=0,rt=at.length;K<rt;++K){var it=at[K];if(vt===0&&(vt=ut,(j+=z)>=B&&(z=4*At+4*n*(V-1),j=x+(ut+At)*(V<<1),V>>=1)),it===Q)j+=4;else{var ft=e[ht+3*it],wt=e[ht+3*it+1],_t=e[ht+3*it+2];q[j++]=_t,q[j++]=wt,q[j++]=ft,q[j++]=255}--vt}},this.decodeAndBlitFrameRGBA=function(E,q){var D=this.frameInfo(E),nt=D.width*D.height;if(nt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var at=new Uint8Array(nt);jl(e,D.data_offset,at,nt);var ht=D.palette_offset,Q=D.transparent_index;Q===null&&(Q=256);var ut=D.width,At=n-ut,vt=ut,x=4*(D.y*n+D.x),B=4*((D.y+D.height)*n+D.x),j=x,z=4*At;D.interlaced===!0&&(z+=4*n*7);for(var V=8,K=0,rt=at.length;K<rt;++K){var it=at[K];if(vt===0&&(vt=ut,(j+=z)>=B&&(z=4*At+4*n*(V-1),j=x+(ut+At)*(V<<1),V>>=1)),it===Q)j+=4;else{var ft=e[ht+3*it],wt=e[ht+3*it+1],_t=e[ht+3*it+2];q[j++]=ft,q[j++]=wt,q[j++]=_t,q[j++]=255}--vt}}}function jl(e,t,n,i){for(var o=e[t++],s=1<<o,f=s+1,l=f+1,u=o+1,g=(1<<u)-1,b=0,L=0,F=0,d=e[t++],M=new Int32Array(4096),O=null;;){for(;b<16&&d!==0;)L|=e[t++]<<b,b+=8,d===1?d=e[t++]:--d;if(b<u)break;var R=L&g;if(L>>=u,b-=u,R!==s){if(R===f)break;for(var k=R<l?R:O,Y=0,X=k;X>s;)X=M[X]>>8,++Y;var et=X;if(F+Y+(k!==R?1:0)>i)return void _e.log("Warning, gif stream longer than expected.");n[F++]=et;var dt=F+=Y;for(k!==R&&(n[F++]=et),X=k;Y--;)X=M[X],n[--dt]=255&X,X>>=8;O!==null&&l<4096&&(M[l++]=O<<8|et,l>=g+1&&u<12&&(++u,g=g<<1|1)),O=R}else l=f+1,g=(1<<(u=o+1))-1,O=null}return F!==i&&_e.log("Warning, gif stream shorter than expected."),n}function Ts(e){var t,n,i,o,s,f=Math.floor,l=new Array(64),u=new Array(64),g=new Array(64),b=new Array(64),L=new Array(65535),F=new Array(65535),d=new Array(64),M=new Array(64),O=[],R=0,k=7,Y=new Array(64),X=new Array(64),et=new Array(64),dt=new Array(256),xt=new Array(2048),Pt=[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],tt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],pt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],nt=[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 at(x,B){for(var j=0,z=0,V=new Array,K=1;K<=16;K++){for(var rt=1;rt<=x[K];rt++)V[B[z]]=[],V[B[z]][0]=j,V[B[z]][1]=K,z++,j++;j*=2}return V}function ht(x){for(var B=x[0],j=x[1]-1;j>=0;)B&1<<j&&(R|=1<<k),j--,--k<0&&(R==255?(Q(255),Q(0)):Q(R),k=7,R=0)}function Q(x){O.push(x)}function ut(x){Q(x>>8&255),Q(255&x)}function At(x,B,j,z,V){for(var K,rt=V[0],it=V[240],ft=(function(bt,Wt){var Ct,zt,qt,be,le,Zt,ce,ue,jt,ne,Rt=0;for(jt=0;jt<8;++jt){Ct=bt[Rt],zt=bt[Rt+1],qt=bt[Rt+2],be=bt[Rt+3],le=bt[Rt+4],Zt=bt[Rt+5],ce=bt[Rt+6];var Ue=Ct+(ue=bt[Rt+7]),ge=Ct-ue,oe=zt+ce,se=zt-ce,Oe=qt+Zt,Ut=qt-Zt,Pe=be+le,Yt=be-le,Qt=Ue+Pe,Be=Ue-Pe,he=oe+Oe,Vt=oe-Oe;bt[Rt]=Qt+he,bt[Rt+4]=Qt-he;var ye=.707106781*(Vt+Be);bt[Rt+2]=Be+ye,bt[Rt+6]=Be-ye;var Jr=.382683433*((Qt=Yt+Ut)-(Vt=se+ge)),un=.5411961*Qt+Jr,dr=1.306562965*Vt+Jr,er=.707106781*(he=Ut+se),Gt=ge+er,gr=ge-er;bt[Rt+5]=gr+un,bt[Rt+3]=gr-un,bt[Rt+1]=Gt+dr,bt[Rt+7]=Gt-dr,Rt+=8}for(Rt=0,jt=0;jt<8;++jt){Ct=bt[Rt],zt=bt[Rt+8],qt=bt[Rt+16],be=bt[Rt+24],le=bt[Rt+32],Zt=bt[Rt+40],ce=bt[Rt+48];var mr=Ct+(ue=bt[Rt+56]),Tn=Ct-ue,Rn=zt+ce,Te=zt-ce,en=qt+Zt,an=qt-Zt,Xr=be+le,Ir=be-le,Wn=mr+Xr,nr=mr-Xr,Vn=Rn+en,Gn=Rn-en;bt[Rt]=Wn+Vn,bt[Rt+32]=Wn-Vn;var Dn=.707106781*(Gn+nr);bt[Rt+16]=nr+Dn,bt[Rt+48]=nr-Dn;var Kr=.382683433*((Wn=Ir+an)-(Gn=Te+Tn)),rr=.5411961*Wn+Kr,$r=1.306562965*Gn+Kr,yi=.707106781*(Vn=an+Te),wi=Tn+yi,xi=Tn-yi;bt[Rt+40]=xi+rr,bt[Rt+24]=xi-rr,bt[Rt+8]=wi+$r,bt[Rt+56]=wi-$r,Rt++}for(jt=0;jt<64;++jt)ne=bt[jt]*Wt[jt],d[jt]=ne>0?ne+.5|0:ne-.5|0;return d})(x,B),wt=0;wt<64;++wt)M[Pt[wt]]=ft[wt];var _t=M[0]-j;j=M[0],_t==0?ht(z[0]):(ht(z[F[K=32767+_t]]),ht(L[K]));for(var St=63;St>0&&M[St]==0;)St--;if(St==0)return ht(rt),j;for(var Dt,_=1;_<=St;){for(var Nt=_;M[_]==0&&_<=St;)++_;var ae=_-Nt;if(ae>=16){Dt=ae>>4;for(var Ht=1;Ht<=Dt;++Ht)ht(it);ae&=15}K=32767+M[_],ht(V[(ae<<4)+F[K]]),ht(L[K]),_++}return St!=63&&ht(rt),j}function vt(x){x=Math.min(Math.max(x,1),100),s!=x&&((function(B){for(var j=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],z=0;z<64;z++){var V=f((j[z]*B+50)/100);V=Math.min(Math.max(V,1),255),l[Pt[z]]=V}for(var K=[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],rt=0;rt<64;rt++){var it=f((K[rt]*B+50)/100);it=Math.min(Math.max(it,1),255),u[Pt[rt]]=it}for(var ft=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],wt=0,_t=0;_t<8;_t++)for(var St=0;St<8;St++)g[wt]=1/(l[Pt[wt]]*ft[_t]*ft[St]*8),b[wt]=1/(u[Pt[wt]]*ft[_t]*ft[St]*8),wt++})(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),s=x)}this.encode=function(x,B){B&&vt(B),O=new Array,R=0,k=7,ut(65496),ut(65504),ut(16),Q(74),Q(70),Q(73),Q(70),Q(0),Q(1),Q(1),Q(0),ut(1),ut(1),Q(0),Q(0),(function(){ut(65499),ut(132),Q(0);for(var zt=0;zt<64;zt++)Q(l[zt]);Q(1);for(var qt=0;qt<64;qt++)Q(u[qt])})(),(function(zt,qt){ut(65472),ut(17),Q(8),ut(qt),ut(zt),Q(3),Q(1),Q(17),Q(0),Q(2),Q(17),Q(1),Q(3),Q(17),Q(1)})(x.width,x.height),(function(){ut(65476),ut(418),Q(0);for(var zt=0;zt<16;zt++)Q(tt[zt+1]);for(var qt=0;qt<=11;qt++)Q(U[qt]);Q(16);for(var be=0;be<16;be++)Q(pt[be+1]);for(var le=0;le<=161;le++)Q(S[le]);Q(1);for(var Zt=0;Zt<16;Zt++)Q(E[Zt+1]);for(var ce=0;ce<=11;ce++)Q(q[ce]);Q(17);for(var ue=0;ue<16;ue++)Q(D[ue+1]);for(var jt=0;jt<=161;jt++)Q(nt[jt])})(),ut(65498),ut(12),Q(3),Q(1),Q(0),Q(2),Q(17),Q(3),Q(17),Q(0),Q(63),Q(0);var j=0,z=0,V=0;R=0,k=7,this.encode.displayName="_encode_";for(var K,rt,it,ft,wt,_t,St,Dt,_,Nt=x.data,ae=x.width,Ht=x.height,bt=4*ae,Wt=0;Wt<Ht;){for(K=0;K<bt;){for(wt=bt*Wt+K,St=-1,Dt=0,_=0;_<64;_++)_t=wt+(Dt=_>>3)*bt+(St=4*(7&_)),Wt+Dt>=Ht&&(_t-=bt*(Wt+1+Dt-Ht)),K+St>=bt&&(_t-=K+St-bt+4),rt=Nt[_t++],it=Nt[_t++],ft=Nt[_t++],Y[_]=(xt[rt]+xt[it+256|0]+xt[ft+512|0]>>16)-128,X[_]=(xt[rt+768|0]+xt[it+1024|0]+xt[ft+1280|0]>>16)-128,et[_]=(xt[rt+1280|0]+xt[it+1536|0]+xt[ft+1792|0]>>16)-128;j=At(Y,g,j,t,i),z=At(X,b,z,n,o),V=At(et,b,V,n,o),K+=32}Wt+=8}if(k>=0){var Ct=[];Ct[1]=k+1,Ct[0]=(1<<k+1)-1,ht(Ct)}return ut(65497),new Uint8Array(O)},e=e||50,(function(){for(var x=String.fromCharCode,B=0;B<256;B++)dt[B]=x(B)})(),t=at(tt,U),n=at(E,q),i=at(pt,S),o=at(D,nt),(function(){for(var x=1,B=2,j=1;j<=15;j++){for(var z=x;z<B;z++)F[32767+z]=j,L[32767+z]=[],L[32767+z][1]=j,L[32767+z][0]=z;for(var V=-(B-1);V<=-x;V++)F[32767+V]=j,L[32767+V]=[],L[32767+V][1]=j,L[32767+V][0]=B-1+V;x<<=1,B<<=1}})(),(function(){for(var x=0;x<256;x++)xt[x]=19595*x,xt[x+256|0]=38470*x,xt[x+512|0]=7471*x+32768,xt[x+768|0]=-11059*x,xt[x+1024|0]=-21709*x,xt[x+1280|0]=32768*x+8421375,xt[x+1536|0]=-27439*x,xt[x+1792|0]=-5329*x})(),vt(e)}function Zn(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 Ml(e){function t(U){if(!U)throw Error("assert :P")}function n(U,pt,S){for(var E=0;4>E;E++)if(U[pt+E]!=S.charCodeAt(E))return!0;return!1}function i(U,pt,S,E,q){for(var D=0;D<q;D++)U[pt+D]=S[E+D]}function o(U,pt,S,E){for(var q=0;q<E;q++)U[pt+q]=S}function s(U){return new Int32Array(U)}function f(U,pt){for(var S=[],E=0;E<U;E++)S.push(new pt);return S}function l(U,pt){var S=[];return(function E(q,D,nt){for(var at=nt[D],ht=0;ht<at&&(q.push(nt.length>D+1?[]:new pt),!(nt.length<D+1));ht++)E(q[ht],D+1,nt)})(S,0,U),S}var u=function(){var U=this;function pt(r,a){for(var c=1<<a-1>>>0;r&c;)c>>>=1;return c?(r&c-1)+c:r}function S(r,a,c,p,v){t(!(p%c));do r[a+(p-=c)]=v;while(0<p)}function E(r,a,c,p,v){if(t(2328>=v),512>=v)var y=s(512);else if((y=s(v))==null)return 0;return(function(w,A,N,C,H,Z){var I,W,J=A,st=1<<N,$=s(16),lt=s(16);for(t(H!=0),t(C!=null),t(w!=null),t(0<N),W=0;W<H;++W){if(15<C[W])return 0;++$[C[W]]}if($[0]==H)return 0;for(lt[1]=0,I=1;15>I;++I){if($[I]>1<<I)return 0;lt[I+1]=lt[I]+$[I]}for(W=0;W<H;++W)I=C[W],0<C[W]&&(Z[lt[I]++]=W);if(lt[15]==1)return(C=new q).g=0,C.value=Z[0],S(w,J,1,st,C),st;var ct,yt=-1,mt=st-1,Tt=0,kt=1,re=1,Ot=1<<N;for(W=0,I=1,H=2;I<=N;++I,H<<=1){if(kt+=re<<=1,0>(re-=$[I]))return 0;for(;0<$[I];--$[I])(C=new q).g=I,C.value=Z[W++],S(w,J+Tt,H,Ot,C),Tt=pt(Tt,I)}for(I=N+1,H=2;15>=I;++I,H<<=1){if(kt+=re<<=1,0>(re-=$[I]))return 0;for(;0<$[I];--$[I]){if(C=new q,(Tt&mt)!=yt){for(J+=Ot,ct=1<<(yt=I)-N;15>yt&&!(0>=(ct-=$[yt]));)++yt,ct<<=1;st+=Ot=1<<(ct=yt-N),w[A+(yt=Tt&mt)].g=ct+N,w[A+yt].value=J-A-yt}C.g=I-N,C.value=Z[W++],S(w,J+(Tt>>N),H,Ot,C),Tt=pt(Tt,I)}}return kt!=2*lt[15]-1?0:st})(r,a,c,p,v,y)}function q(){this.value=this.g=0}function D(){this.value=this.g=0}function nt(){this.G=f(5,q),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=f(Bi,D)}function at(r,a,c,p){t(r!=null),t(a!=null),t(2147483648>p),r.Ca=254,r.I=0,r.b=-8,r.Ka=0,r.oa=a,r.pa=c,r.Jd=a,r.Yc=c+p,r.Zc=4<=p?c+p-4+1:c,rt(r)}function ht(r,a){for(var c=0;0<a--;)c|=ft(r,128)<<a;return c}function Q(r,a){var c=ht(r,a);return it(r)?-c:c}function ut(r,a,c,p){var v,y=0;for(t(r!=null),t(a!=null),t(4294967288>p),r.Sb=p,r.Ra=0,r.u=0,r.h=0,4<p&&(p=4),v=0;v<p;++v)y+=a[c+v]<<8*v;r.Ra=y,r.bb=p,r.oa=a,r.pa=c}function At(r){for(;8<=r.u&&r.bb<r.Sb;)r.Ra>>>=8,r.Ra+=r.oa[r.pa+r.bb]<<wn-8>>>0,++r.bb,r.u-=8;z(r)&&(r.h=1,r.u=0)}function vt(r,a){if(t(0<=a),!r.h&&a<=la){var c=j(r)&si[a];return r.u+=a,At(r),c}return r.h=1,r.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(r){return r.Ra>>>(r.u&wn-1)>>>0}function z(r){return t(r.bb<=r.Sb),r.h||r.bb==r.Sb&&r.u>wn}function V(r,a){r.u=a,r.h=z(r)}function K(r){r.u>=Sn&&(t(r.u>=Sn),At(r))}function rt(r){t(r!=null&&r.oa!=null),r.pa<r.Zc?(r.I=(r.oa[r.pa++]|r.I<<8)>>>0,r.b+=8):(t(r!=null&&r.oa!=null),r.pa<r.Yc?(r.b+=8,r.I=r.oa[r.pa++]|r.I<<8):r.Ka?r.b=0:(r.I<<=8,r.b+=8,r.Ka=1))}function it(r){return ht(r,1)}function ft(r,a){var c=r.Ca;0>r.b&&rt(r);var p=r.b,v=c*a>>>8,y=(r.I>>>p>v)+0;for(y?(c-=v,r.I-=v+1<<p>>>0):c=v+1,p=c,v=0;256<=p;)v+=8,p>>=8;return p=7^v+ji[p],r.b-=p,r.Ca=(c<<p)-1,y}function wt(r,a,c){r[a+0]=c>>24&255,r[a+1]=c>>16&255,r[a+2]=c>>8&255,r[a+3]=255&c}function _t(r,a){return r[a+0]|r[a+1]<<8}function St(r,a){return _t(r,a)|r[a+2]<<16}function Dt(r,a){return _t(r,a)|_t(r,a+2)<<16}function _(r,a){var c=1<<a;return t(r!=null),t(0<a),r.X=s(c),r.X==null?0:(r.Mb=32-a,r.Xa=a,1)}function Nt(r,a){t(r!=null),t(a!=null),t(r.Xa==a.Xa),i(a.X,0,r.X,0,1<<a.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(r,a,c,p){t(c!=null),t(p!=null);var v=c[0],y=p[0];return v==0&&(v=(r*y+a/2)/a),y==0&&(y=(a*v+r/2)/r),0>=v||0>=y?0:(c[0]=v,p[0]=y,1)}function bt(r,a){return r+(1<<a)-1>>>a}function Wt(r,a){return((4278255360&r)+(4278255360&a)>>>0&4278255360)+((16711935&r)+(16711935&a)>>>0&16711935)>>>0}function Ct(r,a){U[a]=function(c,p,v,y,w,A,N){var C;for(C=0;C<w;++C){var H=U[r](A[N+C-1],v,y+C);A[N+C]=Wt(c[p+C],H)}}}function zt(){this.ud=this.hd=this.jd=0}function qt(r,a){return((4278124286&(r^a))>>>1)+(r&a)>>>0}function be(r){return 0<=r&&256>r?r:0>r?0:255<r?255:void 0}function le(r,a){return be(r+(r-a+.5>>1))}function Zt(r,a,c){return Math.abs(a-c)-Math.abs(r-c)}function ce(r,a,c,p,v,y,w){for(p=y[w-1],c=0;c<v;++c)y[w+c]=p=Wt(r[a+c],p)}function ue(r,a,c,p,v){var y;for(y=0;y<c;++y){var w=r[a+y],A=w>>8&255,N=16711935&(N=(N=16711935&w)+((A<<16)+A));p[v+y]=(4278255360&w)+N>>>0}}function jt(r,a){a.jd=255&r,a.hd=r>>8&255,a.ud=r>>16&255}function ne(r,a,c,p,v,y){var w;for(w=0;w<p;++w){var A=a[c+w],N=A>>>8,C=A,H=255&(H=(H=A>>>16)+((r.jd<<24>>24)*(N<<24>>24)>>>5));C=255&(C=(C+=(r.hd<<24>>24)*(N<<24>>24)>>>5)+((r.ud<<24>>24)*(H<<24>>24)>>>5)),v[y+w]=(4278255360&A)+(H<<16)+C}}function Rt(r,a,c,p,v){U[a]=function(y,w,A,N,C,H,Z,I,W){for(N=Z;N<I;++N)for(Z=0;Z<W;++Z)C[H++]=v(A[p(y[w++])])},U[r]=function(y,w,A,N,C,H,Z){var I=8>>y.b,W=y.Ea,J=y.K[0],st=y.w;if(8>I)for(y=(1<<y.b)-1,st=(1<<I)-1;w<A;++w){var $,lt=0;for($=0;$<W;++$)$&y||(lt=p(N[C++])),H[Z++]=v(J[lt&st]),lt>>=I}else U["VP8LMapColor"+c](N,C,J,st,H,Z,w,A,W)}}function Ue(r,a,c,p,v){for(c=a+c;a<c;){var y=r[a++];p[v++]=y>>16&255,p[v++]=y>>8&255,p[v++]=255&y}}function ge(r,a,c,p,v){for(c=a+c;a<c;){var y=r[a++];p[v++]=y>>16&255,p[v++]=y>>8&255,p[v++]=255&y,p[v++]=y>>24&255}}function oe(r,a,c,p,v){for(c=a+c;a<c;){var y=(w=r[a++])>>16&240|w>>12&15,w=240&w|w>>28&15;p[v++]=y,p[v++]=w}}function se(r,a,c,p,v){for(c=a+c;a<c;){var y=(w=r[a++])>>16&248|w>>13&7,w=w>>5&224|w>>3&31;p[v++]=y,p[v++]=w}}function Oe(r,a,c,p,v){for(c=a+c;a<c;){var y=r[a++];p[v++]=255&y,p[v++]=y>>8&255,p[v++]=y>>16&255}}function Ut(r,a,c,p,v,y){if(y==0)for(c=a+c;a<c;)wt(p,((y=r[a++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),v+=32;else i(p,v,r,a,c)}function Pe(r,a){U[a][0]=U[r+"0"],U[a][1]=U[r+"1"],U[a][2]=U[r+"2"],U[a][3]=U[r+"3"],U[a][4]=U[r+"4"],U[a][5]=U[r+"5"],U[a][6]=U[r+"6"],U[a][7]=U[r+"7"],U[a][8]=U[r+"8"],U[a][9]=U[r+"9"],U[a][10]=U[r+"10"],U[a][11]=U[r+"11"],U[a][12]=U[r+"12"],U[a][13]=U[r+"13"],U[a][14]=U[r+"0"],U[a][15]=U[r+"0"]}function Yt(r){return r==Qo||r==ts||r==Za||r==es}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Be(){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 he(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Be,this.sd=null}function Vt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ye(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Jr(r){return alert("todo:WebPSamplerProcessPlane"),r.T}function un(r,a){var c=r.T,p=a.ba.f.RGBA,v=p.eb,y=p.fb+r.ka*p.A,w=Hn[a.ba.S],A=r.y,N=r.O,C=r.f,H=r.N,Z=r.ea,I=r.W,W=a.cc,J=a.dc,st=a.Mc,$=a.Nc,lt=r.ka,ct=r.ka+r.T,yt=r.U,mt=yt+1>>1;for(lt==0?w(A,N,null,null,C,H,Z,I,C,H,Z,I,v,y,null,null,yt):(w(a.ec,a.fc,A,N,W,J,st,$,C,H,Z,I,v,y-p.A,v,y,yt),++c);lt+2<ct;lt+=2)W=C,J=H,st=Z,$=I,H+=r.Rc,I+=r.Rc,y+=2*p.A,w(A,(N+=2*r.fa)-r.fa,A,N,W,J,st,$,C,H,Z,I,v,y-p.A,v,y,yt);return N+=r.fa,r.j+ct<r.o?(i(a.ec,a.fc,A,N,yt),i(a.cc,a.dc,C,H,mt),i(a.Mc,a.Nc,Z,I,mt),c--):1&ct||w(A,N,null,null,C,H,Z,I,C,H,Z,I,v,y+p.A,null,null,yt),c}function dr(r,a,c){var p=r.F,v=[r.J];if(p!=null){var y=r.U,w=a.ba.S,A=w==$a||w==Za;a=a.ba.f.RGBA;var N=[0],C=r.ka;N[0]=r.T,r.Kb&&(C==0?--N[0]:(--C,v[0]-=r.width),r.j+r.ka+r.T==r.o&&(N[0]=r.o-r.j-C));var H=a.eb;C=a.fb+C*a.A,r=$s(p,v[0],r.width,y,N,H,C+(A?0:3),a.A),t(c==N),r&&Yt(w)&&pa(H,C,A,y,N,a.A)}return 0}function er(r){var a=r.ma,c=a.ba.S,p=11>c,v=c==Xa||c==Ka||c==$a||c==Zo||c==12||Yt(c);if(a.memory=null,a.Ib=null,a.Jb=null,a.Nd=null,!Un(a.Oa,r,v?11:12))return 0;if(v&&Yt(c)&&Ar(),r.da)alert("todo:use_scaling");else{if(p){if(a.Ib=Jr,r.Kb){if(c=r.U+1>>1,a.memory=s(r.U+2*c),a.memory==null)return 0;a.ec=a.memory,a.fc=0,a.cc=a.ec,a.dc=a.fc+r.U,a.Mc=a.cc,a.Nc=a.dc+c,a.Ib=un,Ar()}}else alert("todo:EmitYUV");v&&(a.Jb=dr,p&&Me())}if(p&&!dh){for(r=0;256>r;++r)bu[r]=89858*(r-128)+to>>Qa,xu[r]=-22014*(r-128)+to,wu[r]=-45773*(r-128),yu[r]=113618*(r-128)+to>>Qa;for(r=ga;r<is;++r)a=76283*(r-16)+to>>Qa,Au[r-ga]=ir(a,255),Lu[r-ga]=ir(a+8>>4,15);dh=1}return 1}function Gt(r){var a=r.ma,c=r.U,p=r.T;return t(!(1&r.ka)),0>=c||0>=p?0:(c=a.Ib(r,a),a.Jb!=null&&a.Jb(r,a,c),a.Dc+=c,1)}function gr(r){r.ma.memory=null}function mr(r,a,c,p){return vt(r,8)!=47?0:(a[0]=vt(r,14)+1,c[0]=vt(r,14)+1,p[0]=vt(r,1),vt(r,3)!=0?0:!r.h)}function Tn(r,a){if(4>r)return r+1;var c=r-2>>1;return(2+(1&r)<<c)+vt(a,c)+1}function Rn(r,a){return 120<a?a-120:1<=(c=((c=iu[a-1])>>4)*r+(8-(15&c)))?c:1;var c}function Te(r,a,c){var p=j(c),v=r[a+=255&p].g-8;return 0<v&&(V(c,c.u+8),p=j(c),a+=r[a].value,a+=p&(1<<v)-1),V(c,c.u+r[a].g),r[a].value}function en(r,a,c){return c.g+=r.g,c.value+=r.value<<a>>>0,t(8>=c.g),r.g}function an(r,a,c){var p=r.xc;return t((a=p==0?0:r.vc[r.md*(c>>p)+(a>>p)])<r.Wb),r.Ya[a]}function Xr(r,a,c,p){var v=r.ab,y=r.c*a,w=r.C;a=w+a;var A=c,N=p;for(p=r.Ta,c=r.Ua;0<v--;){var C=r.gc[v],H=w,Z=a,I=A,W=N,J=(N=p,A=c,C.Ea);switch(t(H<Z),t(Z<=C.nc),C.hc){case 2:Mi(I,W,(Z-H)*J,N,A);break;case 0:var st=H,$=Z,lt=N,ct=A,yt=(Ot=C).Ea;st==0&&(jr(I,W,null,null,1,lt,ct),ce(I,W+1,0,0,yt-1,lt,ct+1),W+=yt,ct+=yt,++st);for(var mt=1<<Ot.b,Tt=mt-1,kt=bt(yt,Ot.b),re=Ot.K,Ot=Ot.w+(st>>Ot.b)*kt;st<$;){var fe=re,Ze=Ot,ie=1;for(Mr(I,W,lt,ct-yt,1,lt,ct);ie<yt;){var Bt=(ie&~Tt)+mt;Bt>yt&&(Bt=yt),(0,Yn[fe[Ze++]>>8&15])(I,W+ +ie,lt,ct+ie-yt,Bt-ie,lt,ct+ie),ie=Bt}W+=yt,ct+=yt,++st&Tt||(Ot+=kt)}Z!=C.nc&&i(N,A-J,N,A+(Z-H-1)*J,J);break;case 1:for(J=I,$=W,yt=(I=C.Ea)-(ct=I&~(lt=(W=1<<C.b)-1)),st=bt(I,C.b),mt=C.K,C=C.w+(H>>C.b)*st;H<Z;){for(Tt=mt,kt=C,re=new zt,Ot=$+ct,fe=$+I;$<Ot;)jt(Tt[kt++],re),li(re,J,$,W,N,A),$+=W,A+=W;$<fe&&(jt(Tt[kt++],re),li(re,J,$,yt,N,A),$+=yt,A+=yt),++H<||(C+=st)}break;case 3:if(I==N&&W==A&&0<C.b){for($=N,I=J=A+(Z-H)*J-(ct=(Z-H)*bt(C.Ea,C.b)),W=N,lt=A,st=[],ct=(yt=ct)-1;0<=ct;--ct)st[ct]=W[lt+ct];for(ct=yt-1;0<=ct;--ct)$[I+ct]=st[ct];hi(C,H,Z,N,J,N,A)}else hi(C,H,Z,I,W,N,A)}A=p,N=c}N!=c&&i(p,c,A,N,y)}function Ir(r,a){var c=r.V,p=r.Ba+r.c*r.C,v=a-r.C;if(t(a<=r.l.o),t(16>=v),0<v){var y=r.l,w=r.Ta,A=r.Ua,N=y.width;if(Xr(r,v,c,p),v=A=[A],t((c=r.C)<(p=a)),t(y.v<y.va),p>y.o&&(p=y.o),c<y.j){var C=y.j-c;c=y.j,v[0]+=C*N}if(c>=p?c=0:(v[0]+=4*y.v,y.ka=c-y.j,y.U=y.va-y.v,y.T=p-c,c=1),c){if(A=A[0],11>(c=r.ca).S){var H=c.f.RGBA,Z=(p=c.S,v=y.U,y=y.T,C=H.eb,H.A),I=y;for(H=H.fb+r.Ma*H.A;0<I--;){var W=w,J=A,st=v,$=C,lt=H;switch(p){case Ja:ua(W,J,st,$,lt);break;case Xa:ca(W,J,st,$,lt);break;case Qo:ca(W,J,st,$,lt),pa($,lt,0,st,1,0);break;case ih:ci(W,J,st,$,lt);break;case Ka:Ut(W,J,st,$,lt,1);break;case ts:Ut(W,J,st,$,lt,1),pa($,lt,0,st,1,0);break;case $a:Ut(W,J,st,$,lt,0);break;case Za:Ut(W,J,st,$,lt,0),pa($,lt,1,st,1,0);break;case Zo:Ti(W,J,st,$,lt);break;case es:Ti(W,J,st,$,lt),Ks($,lt,st,1,0);break;case ah:ui(W,J,st,$,lt);break;default:t(0)}A+=N,H+=Z}r.Ma+=y}else alert("todo:EmitRescaledRowsYUVA");t(r.Ma<=c.height)}}r.C=a,t(r.C<=r.i)}function Wn(r){var a;if(0<r.ua)return 0;for(a=0;a<r.Wb;++a){var c=r.Ya[a].G,p=r.Ya[a].H;if(0<c[1][p[1]+0].g||0<c[2][p[2]+0].g||0<c[3][p[3]+0].g)return 0}return 1}function nr(r,a,c,p,v,y){if(r.Z!=0){var w=r.qd,A=r.rd;for(t(qr[r.Z]!=null);a<c;++a)qr[r.Z](w,A,p,v,p,v,y),w=p,A=v,v+=y;r.qd=w,r.rd=A}}function Vn(r,a){var c=r.l.ma,p=c.Z==0||c.Z==1?r.l.j:r.C;if(p=r.C<p?p:r.C,t(a<=r.l.o),a>p){var v=r.l.width,y=c.ca,w=c.tb+v*p,A=r.V,N=r.Ba+r.c*p,C=r.gc;t(r.ab==1),t(C[0].hc==3),Ko(C[0],p,a,A,N,y,w),nr(c,p,a,y,w,v)}r.C=r.Ma=a}function Gn(r,a,c,p,v,y,w){var A=r.$/p,N=r.$%p,C=r.m,H=r.s,Z=c+r.$,I=Z;v=c+p*v;var W=c+p*y,J=280+H.ua,st=r.Pb?A:16777216,$=0<H.ua?H.Wa:null,lt=H.wc,ct=Z<W?an(H,N,A):null;t(r.C<y),t(W<=v);var yt=!1;t:for(;;){for(;yt||Z<W;){var mt=0;if(A>=st){var Tt=Z-c;t((st=r).Pb),st.wd=st.m,st.xd=Tt,0<st.s.ua&&Nt(st.s.Wa,st.s.vb),st=A+ou}if(N<||(ct=an(H,N,A)),t(ct!=null),ct.Qb&&(a[Z]=ct.qb,yt=!0),!yt)if(K(C),ct.jc){mt=C,Tt=a;var kt=Z,re=ct.pd[j(mt)&Bi-1];t(ct.jc),256>re.g?(V(mt,mt.u+re.g),Tt[kt]=re.value,mt=0):(V(mt,mt.u+re.g-256),t(256<=re.value),mt=re.value),mt==0&&(yt=!0)}else mt=Te(ct.G[0],ct.H[0],C);if(C.h)break;if(yt||256>mt){if(!yt)if(ct.nd)a[Z]=(ct.qb|mt<<8)>>>0;else{if(K(C),yt=Te(ct.G[1],ct.H[1],C),K(C),Tt=Te(ct.G[2],ct.H[2],C),kt=Te(ct.G[3],ct.H[3],C),C.h)break;a[Z]=(kt<<24|yt<<16|mt<<8|Tt)>>>0}if(yt=!1,++Z,++N>=p&&(N=0,++A,w!=null&&A<=y&&!(A%16)&&w(r,A),$!=null))for(;I<Z;)mt=a[I++],$.X[(506832829*mt&4294967295)>>>$.Mb]=mt}else if(280>mt){if(mt=Tn(mt-256,C),Tt=Te(ct.G[4],ct.H[4],C),K(C),Tt=Rn(p,Tt=Tn(Tt,C)),C.h)break;if(Z-c<Tt||v-Z<mt)break t;for(kt=0;kt<mt;++kt)a[Z+kt]=a[Z+kt-Tt];for(Z+=mt,N+=mt;N>=p;)N-=p,++A,w!=null&&A<=y&&!(A%16)&&w(r,A);if(t(Z<=v),N<&&(ct=an(H,N,A)),$!=null)for(;I<Z;)mt=a[I++],$.X[(506832829*mt&4294967295)>>>$.Mb]=mt}else{if(!(mt<J))break t;for(yt=mt-280,t($!=null);I<Z;)mt=a[I++],$.X[(506832829*mt&4294967295)>>>$.Mb]=mt;mt=Z,t(!(yt>>>(Tt=$).Xa)),a[mt]=Tt.X[yt],yt=!0}yt||t(C.h==z(C))}if(r.Pb&&C.h&&Z<v)t(r.m.h),r.a=5,r.m=r.wd,r.$=r.xd,0<r.s.ua&&Nt(r.s.vb,r.s.Wa);else{if(C.h)break t;w?.(r,A>y?y:A),r.a=0,r.$=Z-c}return 1}return r.a=3,0}function Dn(r){t(r!=null),r.vc=null,r.yc=null,r.Ya=null;var a=r.Wa;a!=null&&(a.X=null),r.vb=null,t(r!=null)}function Kr(){var r=new Et;return r==null?null:(r.a=0,r.xb=hh,Pe("Predictor","VP8LPredictors"),Pe("Predictor","VP8LPredictors_C"),Pe("PredictorAdd","VP8LPredictorsAdd"),Pe("PredictorAdd","VP8LPredictorsAdd_C"),Mi=ue,li=ne,ua=Ue,ca=ge,Ti=oe,ui=se,ci=Oe,U.VP8LMapColor32b=Ke,U.VP8LMapColor8b=lr,r)}function rr(r,a,c,p,v){var y=1,w=[r],A=[a],N=p.m,C=p.s,H=null,Z=0;t:for(;;){if(c)for(;y&&vt(N,1);){var I=w,W=A,J=p,st=1,$=J.m,lt=J.gc[J.ab],ct=vt($,2);if(J.Oc&1<<ct)y=0;else{switch(J.Oc|=1<<ct,lt.hc=ct,lt.Ea=I[0],lt.nc=W[0],lt.K=[null],++J.ab,t(4>=J.ab),ct){case 0:case 1:lt.b=vt($,3)+2,st=rr(bt(lt.Ea,lt.b),bt(lt.nc,lt.b),0,J,lt.K),lt.K=lt.K[0];break;case 3:var yt,mt=vt($,8)+1,Tt=16<mt?0:4<mt?1:2<mt?2:3;if(I[0]=bt(lt.Ea,Tt),lt.b=Tt,yt=st=rr(mt,1,0,J,lt.K)){var kt,re=mt,Ot=lt,fe=1<<(8>>Ot.b),Ze=s(fe);if(Ze==null)yt=0;else{var ie=Ot.K[0],Bt=Ot.w;for(Ze[0]=Ot.K[0][0],kt=1;kt<1*re;++kt)Ze[kt]=Wt(ie[Bt+kt],Ze[kt-1]);for(;kt<4*fe;++kt)Ze[kt]=0;Ot.K[0]=null,Ot.K[0]=Ze,yt=1}}st=yt;break;case 2:break;default:t(0)}y=st}}if(w=w[0],A=A[0],y&&vt(N,1)&&!(y=1<=(Z=vt(N,4))&&11>=Z)){p.a=3;break t}var Lt;if(Lt=y)e:{var He,ee,de,Ee=p,sn=w,xn=A,Re=Z,dn=c,An=Ee.m,Qe=Ee.s,me=[null],we=1,De=0,xe=au[Re];n:for(;;){if(dn&&vt(An,1)){var hn=vt(An,3)+2,Xn=bt(sn,hn),We=bt(xn,hn),_n=Xn*We;if(!rr(Xn,We,0,Ee,me))break n;for(me=me[0],Qe.xc=hn,He=0;He<_n;++He){var Se=me[He]>>8&65535;me[He]=Se,Se>=we&&(we=Se+1)}}if(An.h)break n;for(ee=0;5>ee;++ee){var tn=oh[ee];!ee&&0<Re&&(tn+=1<<Re),De<tn&&(De=tn)}var Fn=f(we*xe,q),Ln=we,En=f(Ln,nt);if(En==null)var On=null;else t(65536>=Ln),On=En;var Pn=s(De);if(On==null||Pn==null||Fn==null){Ee.a=1;break n}var Bn=Fn;for(He=de=0;He<we;++He){var Ie=On[He],jn=Ie.G,Kn=Ie.H,fi=0,_r=1,ln=0;for(ee=0;5>ee;++ee){tn=oh[ee],jn[ee]=Bn,Kn[ee]=de,!ee&&0<Re&&(tn+=1<<Re);i:{var no,as=tn,ro=Ee,ma=Pn,_u=Bn,Pu=de,os=0,Ur=ro.m,ku=vt(Ur,1);if(o(ma,0,0,as),ku){var Cu=vt(Ur,1)+1,Iu=vt(Ur,1),vh=vt(Ur,Iu==0?1:8);ma[vh]=1,Cu==2&&(ma[vh=vt(Ur,8)]=1);var io=1}else{var bh=s(19),yh=vt(Ur,4)+4;if(19<yh){ro.a=3;var ao=0;break i}for(no=0;no<yh;++no)bh[ru[no]]=vt(Ur,3);var ss=void 0,va=void 0,wh=ro,Fu=bh,oo=as,xh=ma,hs=0,zr=wh.m,Ah=8,Lh=f(128,q);r:for(;E(Lh,0,7,Fu,19);){if(vt(zr,1)){var Eu=2+2*vt(zr,3);if((ss=2+vt(zr,Eu))>oo)break r}else ss=oo;for(va=0;va<oo&&ss--;){K(zr);var Nh=Lh[0+(127&j(zr))];V(zr,zr.u+Nh.g);var qi=Nh.value;if(16>qi)xh[va++]=qi,qi!=0&&(Ah=qi);else{var Ou=qi==16,Sh=qi-16,Bu=eu[Sh],_h=vt(zr,tu[Sh])+Bu;if(va+_h>oo)break r;for(var ju=Ou?Ah:0;0<_h--;)xh[va++]=ju}}hs=1;break r}hs||(wh.a=3),io=hs}(io=io&&!Ur.h)&&(os=E(_u,Pu,8,ma,as)),io&&os!=0?ao=os:(ro.a=3,ao=0)}if(ao==0)break n;if(_r&&nu[ee]==1&&(_r=Bn[de].g==0),fi+=Bn[de].g,de+=ao,3>=ee){var ba,ls=Pn[0];for(ba=1;ba<tn;++ba)Pn[ba]>ls&&(ls=Pn[ba]);ln+=ls}}if(Ie.nd=_r,Ie.Qb=0,_r&&(Ie.qb=(jn[3][Kn[3]+0].value<<24|jn[1][Kn[1]+0].value<<16|jn[2][Kn[2]+0].value)>>>0,fi==0&&256>jn[0][Kn[0]+0].value&&(Ie.Qb=1,Ie.qb+=jn[0][Kn[0]+0].value<<8)),Ie.jc=!Ie.Qb&&6>ln,Ie.jc){var so,Pr=Ie;for(so=0;so<Bi;++so){var Hr=so,Wr=Pr.pd[Hr],ho=Pr.G[0][Pr.H[0]+Hr];256<=ho.value?(Wr.g=ho.g+256,Wr.value=ho.value):(Wr.g=0,Wr.value=0,Hr>>=en(ho,8,Wr),Hr>>=en(Pr.G[1][Pr.H[1]+Hr],16,Wr),Hr>>=en(Pr.G[2][Pr.H[2]+Hr],0,Wr),en(Pr.G[3][Pr.H[3]+Hr],24,Wr))}}}Qe.vc=me,Qe.Wb=we,Qe.Ya=On,Qe.yc=Fn,Lt=1;break e}Lt=0}if(!(y=Lt)){p.a=3;break t}if(0<Z){if(C.ua=1<<Z,!_(C.Wa,Z)){p.a=1,y=0;break t}}else C.ua=0;var us=p,Ph=w,Mu=A,cs=us.s,fs=cs.xc;if(us.c=Ph,us.i=Mu,cs.md=bt(Ph,fs),cs.wc=fs==0?-1:(1<<fs)-1,c){p.xb=pu;break t}if((H=s(w*A))==null){p.a=1,y=0;break t}y=(y=Gn(p,H,0,w,A,A,null))&&!N.h;break t}return y?(v!=null?v[0]=H:(t(H==null),t(c)),p.$=0,c||Dn(C)):Dn(C),y}function $r(r,a){var c=r.c*r.i,p=c+a+16*a;return t(r.c<=a),r.V=s(p),r.V==null?(r.Ta=null,r.Ua=0,r.a=1,0):(r.Ta=r.V,r.Ua=r.Ba+c+a,1)}function yi(r,a){var c=r.C,p=a-c,v=r.V,y=r.Ba+r.c*c;for(t(a<=r.l.o);0<p;){var w=16<p?16:p,A=r.l.ma,N=r.l.width,C=N*w,H=A.ca,Z=A.tb+N*c,I=r.Ta,W=r.Ua;Xr(r,w,v,y),Zs(I,W,H,Z,C),nr(A,c,c+w,H,Z,N),p-=w,v+=w*r.c,c+=w}t(c==a),r.C=r.Ma=a}function wi(){this.ub=this.yd=this.td=this.Rb=0}function xi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Eo(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Ki(){this.Yb=(function(){var r=[];return(function a(c,p,v){for(var y=v[p],w=0;w<y&&(c.push(v.length>p+1?[]:0),!(v.length<p+1));w++)a(c[w],p+1,v)})(r,0,[3,11]),r})()}function Ca(){this.jb=s(3),this.Wc=l([4,8],Ki),this.Xc=l([4,17],Ki)}function Ia(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function qn(){this.ld=this.La=this.dd=this.tc=0}function $i(){this.Na=this.la=0}function Fa(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Zi(){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 Ea(){this.uc=this.M=this.Nb=0,this.wa=Array(new qn),this.Y=0,this.ya=Array(new Zi),this.aa=0,this.l=new Ai}function Oa(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Ba(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new wi,this.Kc=new xi,this.ed=new Ia,this.Qa=new Eo,this.Ic=this.$c=this.Aa=0,this.D=new Ea,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=f(8,x),this.ia=0,this.pb=f(4,Fa),this.Pa=new Ca,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Oa),this.Hd=0,this.rb=Array(new $i),this.sb=0,this.wa=Array(new qn),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 Zi),this.L=this.aa=0,this.gd=l([4,2],qn),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 ir(r,a){return 0>r?0:r>a?a:r}function Ai(){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 Oo(){var r=new Ba;return r!=null&&(r.a=0,r.sc="OK",r.cb=0,r.Xb=0,da||(da=Li)),r}function Je(r,a,c){return r.a==0&&(r.a=a,r.sc=c,r.cb=0),0}function ja(r,a,c){return 3<=c&&r[a+0]==157&&r[a+1]==1&&r[a+2]==42}function ar(r,a){if(r==null)return 0;if(r.a=0,r.sc="OK",a==null)return Je(r,2,"null VP8Io passed to VP8GetHeaders()");var c=a.data,p=a.w,v=a.ha;if(4>v)return Je(r,7,"Truncated header.");var y=c[p+0]|c[p+1]<<8|c[p+2]<<16,w=r.Od;if(w.Rb=!(1&y),w.td=y>>1&7,w.yd=y>>4&1,w.ub=y>>5,3<w.td)return Je(r,3,"Incorrect keyframe parameters.");if(!w.yd)return Je(r,4,"Frame not displayable.");p+=3,v-=3;var A=r.Kc;if(w.Rb){if(7>v)return Je(r,7,"cannot parse picture header");if(!ja(c,p,v))return Je(r,3,"Bad code word");A.c=16383&(c[p+4]<<8|c[p+3]),A.Td=c[p+4]>>6,A.i=16383&(c[p+6]<<8|c[p+5]),A.Ud=c[p+6]>>6,p+=7,v-=7,r.za=A.c+15>>4,r.Ub=A.i+15>>4,a.width=A.c,a.height=A.i,a.Da=0,a.j=0,a.v=0,a.va=a.width,a.o=a.height,a.da=0,a.ib=a.width,a.hb=a.height,a.U=a.width,a.T=a.height,o((y=r.Pa).jb,0,255,y.jb.length),t((y=r.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,o(y.Zb,0,0,y.Zb.length),o(y.Lb,0,0,y.Lb)}if(w.ub>v)return Je(r,7,"bad partition length");at(y=r.m,c,p,w.ub),p+=w.ub,v-=w.ub,w.Rb&&(A.Ld=it(y),A.Kd=it(y)),A=r.Qa;var N,C=r.Pa;if(t(y!=null),t(A!=null),A.Cb=it(y),A.Cb){if(A.Bb=it(y),it(y)){for(A.Fb=it(y),N=0;4>N;++N)A.Zb[N]=it(y)?Q(y,7):0;for(N=0;4>N;++N)A.Lb[N]=it(y)?Q(y,6):0}if(A.Bb)for(N=0;3>N;++N)C.jb[N]=it(y)?ht(y,8):255}else A.Bb=0;if(y.Ka)return Je(r,3,"cannot parse segment header");if((A=r.ed).zd=it(y),A.Tb=ht(y,6),A.wb=ht(y,3),A.Pc=it(y),A.Pc&&it(y)){for(C=0;4>C;++C)it(y)&&(A.vd[C]=Q(y,6));for(C=0;4>C;++C)it(y)&&(A.od[C]=Q(y,6))}if(r.L=A.Tb==0?0:A.zd?1:2,y.Ka)return Je(r,3,"cannot parse filter header");var H=v;if(v=N=p,p=N+H,A=H,r.Xb=(1<<ht(r.m,2))-1,H<3*(C=r.Xb))c=7;else{for(N+=3*C,A-=3*C,H=0;H<C;++H){var Z=c[v+0]|c[v+1]<<8|c[v+2]<<16;Z>A&&(Z=A),at(r.Jc[+H],c,N,Z),N+=Z,A-=Z,v+=3}at(r.Jc[+C],c,N,A),c=N<p?0:5}if(c!=0)return Je(r,c,"cannot parse partitions");for(c=ht(N=r.m,7),v=it(N)?Q(N,4):0,p=it(N)?Q(N,4):0,A=it(N)?Q(N,4):0,C=it(N)?Q(N,4):0,N=it(N)?Q(N,4):0,H=r.Qa,Z=0;4>Z;++Z){if(H.Cb){var I=H.Zb[Z];H.Fb||(I+=c)}else{if(0<Z){r.pb[Z]=r.pb[0];continue}I=c}var W=r.pb[Z];W.Sc[0]=ns[ir(I+v,127)],W.Sc[1]=rs[ir(I+0,127)],W.Eb[0]=2*ns[ir(I+p,127)],W.Eb[1]=101581*rs[ir(I+A,127)]>>16,8>W.Eb[1]&&(W.Eb[1]=8),W.Qc[0]=ns[ir(I+C,117)],W.Qc[1]=rs[ir(I+N,127)],W.lc=I+N}if(!w.Rb)return Je(r,4,"Not a key frame.");for(it(y),w=r.Pa,c=0;4>c;++c){for(v=0;8>v;++v)for(p=0;3>p;++p)for(A=0;11>A;++A)C=ft(y,cu[c][v][p][A])?ht(y,8):lu[c][v][p][A],w.Wc[c][v].Yb[p][A]=C;for(v=0;17>v;++v)w.Xc[c][v]=w.Wc[c][fu[v]]}return r.kc=it(y),r.kc&&(r.Bd=ht(y,8)),r.cb=1}function Li(r,a,c,p,v,y,w){var A=a[v].Yb[c];for(c=0;16>v;++v){if(!ft(r,A[c+0]))return v;for(;!ft(r,A[c+1]);)if(A=a[++v].Yb[0],c=0,v==16)return 16;var N=a[v+1].Yb;if(ft(r,A[c+2])){var C=r,H=0;if(ft(C,(I=A)[(Z=c)+3]))if(ft(C,I[Z+6])){for(A=0,Z=2*(H=ft(C,I[Z+8]))+(I=ft(C,I[Z+9+H])),H=0,I=su[Z];I[A];++A)H+=H+ft(C,I[A]);H+=3+(8<<Z)}else ft(C,I[Z+7])?(H=7+2*ft(C,165),H+=ft(C,145)):H=5+ft(C,159);else H=ft(C,I[Z+4])?3+ft(C,I[Z+5]):2;A=N[2]}else H=1,A=N[1];N=w+hu[v],0>(C=r).b&&rt(C);var Z,I=C.b,W=(Z=C.Ca>>1)-(C.I>>I)>>31;--C.b,C.Ca+=W,C.Ca|=1,C.I-=(Z+1&W)<<I,y[N]=((H^W)-W)*p[(0<v)+0]}return 16}function Qi(r){var a=r.rb[r.sb-1];a.la=0,a.Na=0,o(r.zc,0,0,r.zc.length),r.ja=0}function Cn(r,a,c,p,v){v=r[a+c+32*p]+(v>>3),r[a+c+32*p]=-256&v?0>v?0:255:v}function Ni(r,a,c,p,v,y){Cn(r,a,0,c,p+v),Cn(r,a,1,c,p+y),Cn(r,a,2,c,p-y),Cn(r,a,3,c,p-v)}function vr(r){return(20091*r>>16)+r}function on(r,a,c,p){var v,y=0,w=s(16);for(v=0;4>v;++v){var A=r[a+0]+r[a+8],N=r[a+0]-r[a+8],C=(35468*r[a+4]>>16)-vr(r[a+12]),H=vr(r[a+4])+(35468*r[a+12]>>16);w[y+0]=A+H,w[y+1]=N+C,w[y+2]=N-C,w[y+3]=A-H,y+=4,a++}for(v=y=0;4>v;++v)A=(r=w[y+0]+4)+w[y+8],N=r-w[y+8],C=(35468*w[y+4]>>16)-vr(w[y+12]),Cn(c,p,0,0,A+(H=vr(w[y+4])+(35468*w[y+12]>>16))),Cn(c,p,1,0,N+C),Cn(c,p,2,0,N-C),Cn(c,p,3,0,A-H),y++,p+=32}function Ma(r,a,c,p){var v=r[a+0]+4,y=35468*r[a+4]>>16,w=vr(r[a+4]),A=35468*r[a+1]>>16;Ni(c,p,0,v+w,r=vr(r[a+1]),A),Ni(c,p,1,v+y,r,A),Ni(c,p,2,v-y,r,A),Ni(c,p,3,v-w,r,A)}function Bo(r,a,c,p,v){on(r,a,c,p),v&&on(r,a+16,c,p+4)}function jo(r,a,c,p){Lr(r,a+0,c,p,1),Lr(r,a+32,c,p+128,1)}function Mo(r,a,c,p){var v;for(r=r[a+0]+4,v=0;4>v;++v)for(a=0;4>a;++a)Cn(c,p,a,v,r)}function or(r,a,c,p){r[a+0]&&pn(r,a+0,c,p),r[a+16]&&pn(r,a+16,c,p+4),r[a+32]&&pn(r,a+32,c,p+128),r[a+48]&&pn(r,a+48,c,p+128+4)}function Ta(r,a,c,p){var v,y=s(16);for(v=0;4>v;++v){var w=r[a+0+v]+r[a+12+v],A=r[a+4+v]+r[a+8+v],N=r[a+4+v]-r[a+8+v],C=r[a+0+v]-r[a+12+v];y[0+v]=w+A,y[8+v]=w-A,y[4+v]=C+N,y[12+v]=C-N}for(v=0;4>v;++v)w=(r=y[0+4*v]+3)+y[3+4*v],A=y[1+4*v]+y[2+4*v],N=y[1+4*v]-y[2+4*v],C=r-y[3+4*v],c[p+0]=w+A>>3,c[p+16]=C+N>>3,c[p+32]=w-A>>3,c[p+48]=C-N>>3,p+=64}function Si(r,a,c){var p,v=a-32,y=In,w=255-r[v-1];for(p=0;p<c;++p){var A,N=y,C=w+r[a-1];for(A=0;A<c;++A)r[a+A]=N[C+r[v+A]];a+=32}}function _i(r,a){Si(r,a,4)}function ta(r,a){Si(r,a,8)}function To(r,a){Si(r,a,16)}function Ro(r,a){var c;for(c=0;16>c;++c)i(r,a+32*c,r,a-32,16)}function Do(r,a){var c;for(c=16;0<c;--c)o(r,a,r[a-1],16),a+=32}function Fr(r,a,c){var p;for(p=0;16>p;++p)o(a,c+32*p,r,16)}function Ra(r,a){var c,p=16;for(c=0;16>c;++c)p+=r[a-1+32*c]+r[a+c-32];Fr(p>>5,r,a)}function Er(r,a){var c,p=8;for(c=0;16>c;++c)p+=r[a-1+32*c];Fr(p>>4,r,a)}function qo(r,a){var c,p=8;for(c=0;16>c;++c)p+=r[a+c-32];Fr(p>>4,r,a)}function Zr(r,a){Fr(128,r,a)}function Jt(r,a,c){return r+2*a+c+2>>2}function Uo(r,a){var c,p=a-32;for(p=new Uint8Array([Jt(r[p-1],r[p+0],r[p+1]),Jt(r[p+0],r[p+1],r[p+2]),Jt(r[p+1],r[p+2],r[p+3]),Jt(r[p+2],r[p+3],r[p+4])]),c=0;4>c;++c)i(r,a+32*c,p,0,p.length)}function zo(r,a){var c=r[a-1],p=r[a-1+32],v=r[a-1+64],y=r[a-1+96];wt(r,a+0,16843009*Jt(r[a-1-32],c,p)),wt(r,a+32,16843009*Jt(c,p,v)),wt(r,a+64,16843009*Jt(p,v,y)),wt(r,a+96,16843009*Jt(v,y,y))}function Ho(r,a){var c,p=4;for(c=0;4>c;++c)p+=r[a+c-32]+r[a-1+32*c];for(p>>=3,c=0;4>c;++c)o(r,a+32*c,p,4)}function Wo(r,a){var c=r[a-1+0],p=r[a-1+32],v=r[a-1+64],y=r[a-1-32],w=r[a+0-32],A=r[a+1-32],N=r[a+2-32],C=r[a+3-32];r[a+0+96]=Jt(p,v,r[a-1+96]),r[a+1+96]=r[a+0+64]=Jt(c,p,v),r[a+2+96]=r[a+1+64]=r[a+0+32]=Jt(y,c,p),r[a+3+96]=r[a+2+64]=r[a+1+32]=r[a+0+0]=Jt(w,y,c),r[a+3+64]=r[a+2+32]=r[a+1+0]=Jt(A,w,y),r[a+3+32]=r[a+2+0]=Jt(N,A,w),r[a+3+0]=Jt(C,N,A)}function Vo(r,a){var c=r[a+1-32],p=r[a+2-32],v=r[a+3-32],y=r[a+4-32],w=r[a+5-32],A=r[a+6-32],N=r[a+7-32];r[a+0+0]=Jt(r[a+0-32],c,p),r[a+1+0]=r[a+0+32]=Jt(c,p,v),r[a+2+0]=r[a+1+32]=r[a+0+64]=Jt(p,v,y),r[a+3+0]=r[a+2+32]=r[a+1+64]=r[a+0+96]=Jt(v,y,w),r[a+3+32]=r[a+2+64]=r[a+1+96]=Jt(y,w,A),r[a+3+64]=r[a+2+96]=Jt(w,A,N),r[a+3+96]=Jt(A,N,N)}function br(r,a){var c=r[a-1+0],p=r[a-1+32],v=r[a-1+64],y=r[a-1-32],w=r[a+0-32],A=r[a+1-32],N=r[a+2-32],C=r[a+3-32];r[a+0+0]=r[a+1+64]=y+w+1>>1,r[a+1+0]=r[a+2+64]=w+A+1>>1,r[a+2+0]=r[a+3+64]=A+N+1>>1,r[a+3+0]=N+C+1>>1,r[a+0+96]=Jt(v,p,c),r[a+0+64]=Jt(p,c,y),r[a+0+32]=r[a+1+96]=Jt(c,y,w),r[a+1+32]=r[a+2+96]=Jt(y,w,A),r[a+2+32]=r[a+3+96]=Jt(w,A,N),r[a+3+32]=Jt(A,N,C)}function yr(r,a){var c=r[a+0-32],p=r[a+1-32],v=r[a+2-32],y=r[a+3-32],w=r[a+4-32],A=r[a+5-32],N=r[a+6-32],C=r[a+7-32];r[a+0+0]=c+p+1>>1,r[a+1+0]=r[a+0+64]=p+v+1>>1,r[a+2+0]=r[a+1+64]=v+y+1>>1,r[a+3+0]=r[a+2+64]=y+w+1>>1,r[a+0+32]=Jt(c,p,v),r[a+1+32]=r[a+0+96]=Jt(p,v,y),r[a+2+32]=r[a+1+96]=Jt(v,y,w),r[a+3+32]=r[a+2+96]=Jt(y,w,A),r[a+3+64]=Jt(w,A,N),r[a+3+96]=Jt(A,N,C)}function Go(r,a){var c=r[a-1+0],p=r[a-1+32],v=r[a-1+64],y=r[a-1+96];r[a+0+0]=c+p+1>>1,r[a+2+0]=r[a+0+32]=p+v+1>>1,r[a+2+32]=r[a+0+64]=v+y+1>>1,r[a+1+0]=Jt(c,p,v),r[a+3+0]=r[a+1+32]=Jt(p,v,y),r[a+3+32]=r[a+1+64]=Jt(v,y,y),r[a+3+64]=r[a+2+64]=r[a+0+96]=r[a+1+96]=r[a+2+96]=r[a+3+96]=y}function Yo(r,a){var c=r[a-1+0],p=r[a-1+32],v=r[a-1+64],y=r[a-1+96],w=r[a-1-32],A=r[a+0-32],N=r[a+1-32],C=r[a+2-32];r[a+0+0]=r[a+2+32]=c+w+1>>1,r[a+0+32]=r[a+2+64]=p+c+1>>1,r[a+0+64]=r[a+2+96]=v+p+1>>1,r[a+0+96]=y+v+1>>1,r[a+3+0]=Jt(A,N,C),r[a+2+0]=Jt(w,A,N),r[a+1+0]=r[a+3+32]=Jt(c,w,A),r[a+1+32]=r[a+3+64]=Jt(p,c,w),r[a+1+64]=r[a+3+96]=Jt(v,p,c),r[a+1+96]=Jt(y,v,p)}function Pi(r,a){var c;for(c=0;8>c;++c)i(r,a+32*c,r,a-32,8)}function ea(r,a){var c;for(c=0;8>c;++c)o(r,a,r[a-1],8),a+=32}function sr(r,a,c){var p;for(p=0;8>p;++p)o(a,c+32*p,r,8)}function Jo(r,a){var c,p=8;for(c=0;8>c;++c)p+=r[a+c-32]+r[a-1+32*c];sr(p>>4,r,a)}function ki(r,a){var c,p=4;for(c=0;8>c;++c)p+=r[a+c-32];sr(p>>3,r,a)}function Xo(r,a){var c,p=4;for(c=0;8>c;++c)p+=r[a-1+32*c];sr(p>>3,r,a)}function na(r,a){sr(128,r,a)}function Or(r,a,c){var p=r[a-c],v=r[a+0],y=3*(v-p)+$o[1020+r[a-2*c]-r[a+c]],w=Ya[112+(y+4>>3)];r[a-c]=In[255+p+Ya[112+(y+3>>3)]],r[a+0]=In[255+v-w]}function ra(r,a,c,p){var v=r[a+0],y=r[a+c];return zn[255+r[a-2*c]-r[a-c]]>p||zn[255+y-v]>p}function Qr(r,a,c,p){return 4*zn[255+r[a-c]-r[a+0]]+zn[255+r[a-2*c]-r[a+c]]<=p}function ia(r,a,c,p,v){var y=r[a-3*c],w=r[a-2*c],A=r[a-c],N=r[a+0],C=r[a+c],H=r[a+2*c],Z=r[a+3*c];return 4*zn[255+A-N]+zn[255+w-C]>p?0:zn[255+r[a-4*c]-y]<=v&&zn[255+y-w]<=v&&zn[255+w-A]<=v&&zn[255+Z-H]<=v&&zn[255+H-C]<=v&&zn[255+C-N]<=v}function Ci(r,a,c,p){var v=2*p+1;for(p=0;16>p;++p)Qr(r,a+p,c,v)&&Or(r,a+p,c)}function aa(r,a,c,p){var v=2*p+1;for(p=0;16>p;++p)Qr(r,a+p*c,1,v)&&Or(r,a+p*c,1)}function Ii(r,a,c,p){var v;for(v=3;0<v;--v)Ci(r,a+=4*c,c,p)}function Da(r,a,c,p){var v;for(v=3;0<v;--v)aa(r,a+=4,c,p)}function wr(r,a,c,p,v,y,w,A){for(y=2*y+1;0<v--;){if(ia(r,a,c,y,w))if(ra(r,a,c,A))Or(r,a,c);else{var N=r,C=a,H=c,Z=N[C-2*H],I=N[C-H],W=N[C+0],J=N[C+H],st=N[C+2*H],$=27*(ct=$o[1020+3*(W-I)+$o[1020+Z-J]])+63>>7,lt=18*ct+63>>7,ct=9*ct+63>>7;N[C-3*H]=In[255+N[C-3*H]+ct],N[C-2*H]=In[255+Z+lt],N[C-H]=In[255+I+$],N[C+0]=In[255+W-$],N[C+H]=In[255+J-lt],N[C+2*H]=In[255+st-ct]}a+=p}}function xr(r,a,c,p,v,y,w,A){for(y=2*y+1;0<v--;){if(ia(r,a,c,y,w))if(ra(r,a,c,A))Or(r,a,c);else{var N=r,C=a,H=c,Z=N[C-H],I=N[C+0],W=N[C+H],J=Ya[112+(4+(st=3*(I-Z))>>3)],st=Ya[112+(st+3>>3)],$=J+1>>1;N[C-2*H]=In[255+N[C-2*H]+$],N[C-H]=In[255+Z+st],N[C+0]=In[255+I-J],N[C+H]=In[255+W-$]}a+=p}}function qa(r,a,c,p,v,y){wr(r,a,c,1,16,p,v,y)}function Ua(r,a,c,p,v,y){wr(r,a,1,c,16,p,v,y)}function za(r,a,c,p,v,y){var w;for(w=3;0<w;--w)xr(r,a+=4*c,c,1,16,p,v,y)}function ti(r,a,c,p,v,y){var w;for(w=3;0<w;--w)xr(r,a+=4,1,c,16,p,v,y)}function Ha(r,a,c,p,v,y,w,A){wr(r,a,v,1,8,y,w,A),wr(c,p,v,1,8,y,w,A)}function h(r,a,c,p,v,y,w,A){wr(r,a,1,v,8,y,w,A),wr(c,p,1,v,8,y,w,A)}function m(r,a,c,p,v,y,w,A){xr(r,a+4*v,v,1,8,y,w,A),xr(c,p+4*v,v,1,8,y,w,A)}function P(r,a,c,p,v,y,w,A){xr(r,a+4,1,v,8,y,w,A),xr(c,p+4,1,v,8,y,w,A)}function T(){this.ba=new he,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ye,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function G(){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 ot(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function gt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new nt,this.yc=new q}function Et(){this.xb=this.a=0,this.l=new Ai,this.ca=new he,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 gt,this.ab=0,this.gc=f(4,ot),this.Oc=0}function Ft(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ai,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Kt(r,a,c,p,v,y,w){for(r=r==null?0:r[a+0],a=0;a<w;++a)v[y+a]=r+c[p+a]&255,r=v[y+a]}function te(r,a,c,p,v,y,w){var A;if(r==null)Kt(null,null,c,p,v,y,w);else for(A=0;A<w;++A)v[y+A]=r[a+A]+c[p+A]&255}function pe(r,a,c,p,v,y,w){if(r==null)Kt(null,null,c,p,v,y,w);else{var A,N=r[a+0],C=N,H=N;for(A=0;A<w;++A)C=H+(N=r[a+A])-C,H=c[p+A]+(-256&C?0>C?0:255:C)&255,C=N,v[y+A]=H}}function Xe(r,a,c,p){var v=a.width,y=a.o;if(t(r!=null&&a!=null),0>c||0>=p||c+p>y)return null;if(!r.Cc){if(r.ga==null){var w;if(r.ga=new Ft,(w=r.ga==null)||(w=a.width*a.o,t(r.Gb.length==0),r.Gb=s(w),r.Uc=0,r.Gb==null?w=0:(r.mb=r.Gb,r.nb=r.Uc,r.rc=null,w=1),w=!w),!w){w=r.ga;var A=r.Fa,N=r.P,C=r.qc,H=r.mb,Z=r.nb,I=N+1,W=C-1,J=w.l;if(t(A!=null&&H!=null&&a!=null),qr[0]=null,qr[1]=Kt,qr[2]=te,qr[3]=pe,w.ca=H,w.tb=Z,w.c=a.width,w.i=a.height,t(0<w.c&&0<w.i),1>=C)a=0;else if(w.$a=3&A[N+0],w.Z=A[N+0]>>2&3,w.Lc=A[N+0]>>4&3,N=A[N+0]>>6&3,0>w.$a||1<w.$a||4<=w.Z||1<w.Lc||N)a=0;else if(J.put=Gt,J.ac=er,J.bc=gr,J.ma=w,J.width=a.width,J.height=a.height,J.Da=a.Da,J.v=a.v,J.va=a.va,J.j=a.j,J.o=a.o,w.$a)t:{t(w.$a==1),a=Kr();e:for(;;){if(a==null){a=0;break t}if(t(w!=null),w.mc=a,a.c=w.c,a.i=w.i,a.l=w.l,a.l.ma=w,a.l.width=w.c,a.l.height=w.i,a.a=0,ut(a.m,A,I,W),!rr(w.c,w.i,1,a,null)||(a.ab==1&&a.gc[0].hc==3&&Wn(a.s)?(w.ic=1,A=a.c*a.i,a.Ta=null,a.Ua=0,a.V=s(A),a.Ba=0,a.V==null?(a.a=1,a=0):a=1):(w.ic=0,a=$r(a,w.c)),!a))break e;a=1;break t}w.mc=null,a=0}else a=W>=w.c*w.i;w=!a}if(w)return null;r.ga.Lc!=1?r.Ga=0:p=y-c}t(r.ga!=null),t(c+p<=y);t:{if(a=(A=r.ga).c,y=A.l.o,A.$a==0){if(I=r.rc,W=r.Vc,J=r.Fa,N=r.P+1+c*a,C=r.mb,H=r.nb+c*a,t(N<=r.P+r.qc),A.Z!=0)for(t(qr[A.Z]!=null),w=0;w<p;++w)qr[A.Z](I,W,J,N,C,H,a),I=C,W=H,H+=a,N+=a;else for(w=0;w<p;++w)i(C,H,J,N,a),I=C,W=H,H+=a,N+=a;r.rc=I,r.Vc=W}else{if(t(A.mc!=null),a=c+p,t((w=A.mc)!=null),t(a<=w.i),w.C>=a)a=1;else if(A.ic||Me(),A.ic){A=w.V,I=w.Ba,W=w.c;var st=w.i,$=(J=1,N=w.$/W,C=w.$%W,H=w.m,Z=w.s,w.$),lt=W*st,ct=W*a,yt=Z.wc,mt=$<ct?an(Z,C,N):null;t($<=lt),t(a<=st),t(Wn(Z));e:for(;;){for(;!H.h&&$<ct;){if(C&yt||(mt=an(Z,C,N)),t(mt!=null),K(H),256>(st=Te(mt.G[0],mt.H[0],H)))A[I+$]=st,++$,++C>=W&&(C=0,++N<=a&&!(N%16)&&Vn(w,N));else{if(!(280>st)){J=0;break e}st=Tn(st-256,H);var Tt,kt=Te(mt.G[4],mt.H[4],H);if(K(H),!($>=(kt=Rn(W,kt=Tn(kt,H)))&<-$>=st)){J=0;break e}for(Tt=0;Tt<st;++Tt)A[I+$+Tt]=A[I+$+Tt-kt];for($+=st,C+=st;C>=W;)C-=W,++N<=a&&!(N%16)&&Vn(w,N);$<ct&&C&yt&&(mt=an(Z,C,N))}t(H.h==z(H))}Vn(w,N>a?a:N);break e}!J||H.h&&$<lt?(J=0,w.a=H.h?5:3):w.$=$,a=J}else a=Gn(w,w.V,w.Ba,w.c,w.i,a,yi);if(!a){p=0;break t}}c+p>=y&&(r.Cc=1),p=1}if(!p)return null;if(r.Cc&&((p=r.ga)!=null&&(p.mc=null),r.ga=null,0<r.Ga))return alert("todo:WebPDequantizeLevels"),null}return r.nb+c*v}function Ne(r,a,c,p,v,y){for(;0<v--;){var w,A=r,N=a+(c?1:0),C=r,H=a+(c?0:3);for(w=0;w<p;++w){var Z=C[H+4*w];Z!=255&&(Z*=32897,A[N+4*w+0]=A[N+4*w+0]*Z>>23,A[N+4*w+1]=A[N+4*w+1]*Z>>23,A[N+4*w+2]=A[N+4*w+2]*Z>>23)}a+=y}}function Ae(r,a,c,p,v){for(;0<p--;){var y;for(y=0;y<c;++y){var w=r[a+2*y+0],A=15&(C=r[a+2*y+1]),N=4369*A,C=(240&C|C>>4)*N>>16;r[a+2*y+0]=(240&w|w>>4)*N>>16&240|(15&w|w<<4)*N>>16>>4&15,r[a+2*y+1]=240&C|A}a+=v}}function Fe(r,a,c,p,v,y,w,A){var N,C,H=255;for(C=0;C<v;++C){for(N=0;N<p;++N){var Z=r[a+N];y[w+4*N]=Z,H&=Z}a+=c,w+=A}return H!=255}function je(r,a,c,p,v){var y;for(y=0;y<v;++y)c[p+y]=r[a+y]>>8}function Me(){pa=Ne,Ks=Ae,$s=Fe,Zs=je}function cn(r,a,c){U[r]=function(p,v,y,w,A,N,C,H,Z,I,W,J,st,$,lt,ct,yt){var mt,Tt=yt-1>>1,kt=A[N+0]|C[H+0]<<16,re=Z[I+0]|W[J+0]<<16;t(p!=null);var Ot=3*kt+re+131074>>2;for(a(p[v+0],255&Ot,Ot>>16,st,$),y!=null&&(Ot=3*re+kt+131074>>2,a(y[w+0],255&Ot,Ot>>16,lt,ct)),mt=1;mt<=Tt;++mt){var fe=A[N+mt]|C[H+mt]<<16,Ze=Z[I+mt]|W[J+mt]<<16,ie=kt+fe+re+Ze+524296,Bt=ie+2*(fe+re)>>3;Ot=Bt+kt>>1,kt=(ie=ie+2*(kt+Ze)>>3)+fe>>1,a(p[v+2*mt-1],255&Ot,Ot>>16,st,$+(2*mt-1)*c),a(p[v+2*mt-0],255&kt,kt>>16,st,$+(2*mt-0)*c),y!=null&&(Ot=ie+re>>1,kt=Bt+Ze>>1,a(y[w+2*mt-1],255&Ot,Ot>>16,lt,ct+(2*mt-1)*c),a(y[w+2*mt+0],255&kt,kt>>16,lt,ct+(2*mt+0)*c)),kt=fe,re=Ze}1&yt||(Ot=3*kt+re+131074>>2,a(p[v+yt-1],255&Ot,Ot>>16,st,$+(yt-1)*c),y!=null&&(Ot=3*re+kt+131074>>2,a(y[w+yt-1],255&Ot,Ot>>16,lt,ct+(yt-1)*c)))}}function Ar(){Hn[Ja]=du,Hn[Xa]=lh,Hn[ih]=gu,Hn[Ka]=uh,Hn[$a]=ch,Hn[Zo]=fh,Hn[ah]=mu,Hn[Qo]=lh,Hn[ts]=uh,Hn[Za]=ch,Hn[es]=fh}function oa(r){return r&~vu?0>r?0:255:r>>ph}function ei(r,a){return oa((19077*r>>8)+(26149*a>>8)-14234)}function ni(r,a,c){return oa((19077*r>>8)-(6419*a>>8)-(13320*c>>8)+8708)}function Br(r,a){return oa((19077*r>>8)+(33050*a>>8)-17685)}function ri(r,a,c,p,v){p[v+0]=ei(r,c),p[v+1]=ni(r,a,c),p[v+2]=Br(r,a)}function Fi(r,a,c,p,v){p[v+0]=Br(r,a),p[v+1]=ni(r,a,c),p[v+2]=ei(r,c)}function Ei(r,a,c,p,v){var y=ni(r,a,c);a=y<<3&224|Br(r,a)>>3,p[v+0]=248&ei(r,c)|y>>5,p[v+1]=a}function fn(r,a,c,p,v){var y=240&Br(r,a)|15;p[v+0]=240&ei(r,c)|ni(r,a,c)>>4,p[v+1]=y}function ii(r,a,c,p,v){p[v+0]=255,ri(r,a,c,p,v+1)}function ai(r,a,c,p,v){Fi(r,a,c,p,v),p[v+3]=255}function sa(r,a,c,p,v){ri(r,a,c,p,v),p[v+3]=255}function hr(r,a,c){U[r]=function(p,v,y,w,A,N,C,H,Z){for(var I=H+(-2&Z)*c;H!=I;)a(p[v+0],y[w+0],A[N+0],C,H),a(p[v+1],y[w+0],A[N+0],C,H+c),v+=2,++w,++N,H+=2*c;1&Z&&a(p[v+0],y[w+0],A[N+0],C,H)}}function yn(r,a,c){return c==0?r==0?a==0?6:5:a==0?4:0:c}function Wa(r,a,c,p,v){switch(r>>>30){case 3:Lr(a,c,p,v,0);break;case 2:Rr(a,c,p,v);break;case 1:pn(a,c,p,v)}}function Oi(r,a){var c,p,v=a.M,y=a.Nb,w=r.oc,A=r.pc+40,N=r.oc,C=r.pc+584,H=r.oc,Z=r.pc+600;for(c=0;16>c;++c)w[A+32*c-1]=129;for(c=0;8>c;++c)N[C+32*c-1]=129,H[Z+32*c-1]=129;for(0<v?w[A-1-32]=N[C-1-32]=H[Z-1-32]=129:(o(w,A-32-1,127,21),o(N,C-32-1,127,9),o(H,Z-32-1,127,9)),p=0;p<r.za;++p){var I=a.ya[a.aa+p];if(0<p){for(c=-1;16>c;++c)i(w,A+32*c-4,w,A+32*c+12,4);for(c=-1;8>c;++c)i(N,C+32*c-4,N,C+32*c+4,4),i(H,Z+32*c-4,H,Z+32*c+4,4)}var W=r.Gd,J=r.Hd+p,st=I.ad,$=I.Hc;if(0<v&&(i(w,A-32,W[J].y,0,16),i(N,C-32,W[J].f,0,8),i(H,Z-32,W[J].ea,0,8)),I.Za){var lt=w,ct=A-32+16;for(0<v&&(p>=r.za-1?o(lt,ct,W[J].y[15],4):i(lt,ct,W[J+1].y,0,4)),c=0;4>c;c++)lt[ct+128+c]=lt[ct+256+c]=lt[ct+384+c]=lt[ct+0+c];for(c=0;16>c;++c,$<<=2)lt=w,ct=A+gh[c],Jn[I.Ob[c]](lt,ct),Wa($,st,16*+c,lt,ct)}else if(lt=yn(p,v,I.Ob[0]),Dr[lt](w,A),$!=0)for(c=0;16>c;++c,$<<=2)Wa($,st,16*+c,w,A+gh[c]);for(c=I.Gc,lt=yn(p,v,I.Dd),Sr[lt](N,C),Sr[lt](H,Z),$=st,lt=N,ct=C,255&(I=0|c)&&(170&I?Ri($,256,lt,ct):ur($,256,lt,ct)),I=H,$=Z,255&(c>>=8)&&(170&c?Ri(st,320,I,$):ur(st,320,I,$)),v<r.Ub-1&&(i(W[J].y,0,w,A+480,16),i(W[J].f,0,N,C+224,8),i(W[J].ea,0,H,Z+224,8)),c=8*y*r.B,W=r.sa,J=r.ta+16*p+16*y*r.R,st=r.qa,I=r.ra+8*p+c,$=r.Ha,lt=r.Ia+8*p+c,c=0;16>c;++c)i(W,J+c*r.R,w,A+32*c,16);for(c=0;8>c;++c)i(st,I+c*r.B,N,C+32*c,8),i($,lt+c*r.B,H,Z+32*c,8)}}function Va(r,a,c,p,v,y,w,A,N){var C=[0],H=[0],Z=0,I=N!=null?N.kd:0,W=N??new G;if(r==null||12>c)return 7;W.data=r,W.w=a,W.ha=c,a=[a],c=[c],W.gb=[W.gb];t:{var J=a,st=c,$=W.gb;if(t(r!=null),t(st!=null),t($!=null),$[0]=0,12<=st[0]&&!n(r,J[0],"RIFF")){if(n(r,J[0]+8,"WEBP")){$=3;break t}var lt=Dt(r,J[0]+4);if(12>lt||4294967286<lt){$=3;break t}if(I&<>st[0]-8){$=7;break t}$[0]=lt,J[0]+=12,st[0]-=12}$=0}if($!=0)return $;for(lt=0<W.gb[0],c=c[0];;){t:{var ct=r;st=a,$=c;var yt=C,mt=H,Tt=J=[0];if((Ot=Z=[Z])[0]=0,8>$[0])$=7;else{if(!n(ct,st[0],"VP8X")){if(Dt(ct,st[0]+4)!=10){$=3;break t}if(18>$[0]){$=7;break t}var kt=Dt(ct,st[0]+8),re=1+St(ct,st[0]+12);if(2147483648<=re*(ct=1+St(ct,st[0]+15))){$=3;break t}Tt!=null&&(Tt[0]=kt),yt!=null&&(yt[0]=re),mt!=null&&(mt[0]=ct),st[0]+=18,$[0]-=18,Ot[0]=1}$=0}}if(Z=Z[0],J=J[0],$!=0)return $;if(st=!!(2&J),!lt&&Z)return 3;if(y!=null&&(y[0]=!!(16&J)),w!=null&&(w[0]=st),A!=null&&(A[0]=0),w=C[0],J=H[0],Z&&st&&N==null){$=0;break}if(4>c){$=7;break}if(lt&&Z||!lt&&!Z&&!n(r,a[0],"ALPH")){c=[c],W.na=[W.na],W.P=[W.P],W.Sa=[W.Sa];t:{kt=r,$=a,lt=c;var Ot=W.gb;yt=W.na,mt=W.P,Tt=W.Sa,re=22,t(kt!=null),t(lt!=null),ct=$[0];var fe=lt[0];for(t(yt!=null),t(Tt!=null),yt[0]=null,mt[0]=null,Tt[0]=0;;){if($[0]=ct,lt[0]=fe,8>fe){$=7;break t}var Ze=Dt(kt,ct+4);if(4294967286<Ze){$=3;break t}var ie=8+Ze+1&-2;if(re+=ie,0<Ot&&re>Ot){$=3;break t}if(!n(kt,ct,"VP8 ")||!n(kt,ct,"VP8L")){$=0;break t}if(fe[0]<ie){$=7;break t}n(kt,ct,"ALPH")||(yt[0]=kt,mt[0]=ct+8,Tt[0]=Ze),ct+=ie,fe-=ie}}if(c=c[0],W.na=W.na[0],W.P=W.P[0],W.Sa=W.Sa[0],$!=0)break}c=[c],W.Ja=[W.Ja],W.xa=[W.xa];t:if(Ot=r,$=a,lt=c,yt=W.gb[0],mt=W.Ja,Tt=W.xa,kt=$[0],ct=!n(Ot,kt,"VP8 "),re=!n(Ot,kt,"VP8L"),t(Ot!=null),t(lt!=null),t(mt!=null),t(Tt!=null),8>lt[0])$=7;else{if(ct||re){if(Ot=Dt(Ot,kt+4),12<=yt&&Ot>yt-12){$=3;break t}if(I&&Ot>lt[0]-8){$=7;break t}mt[0]=Ot,$[0]+=8,lt[0]-=8,Tt[0]=re}else Tt[0]=5<=lt[0]&&Ot[kt+0]==47&&!(Ot[kt+4]>>5),mt[0]=lt[0];$=0}if(c=c[0],W.Ja=W.Ja[0],W.xa=W.xa[0],a=a[0],$!=0)break;if(4294967286<W.Ja)return 3;if(A==null||st||(A[0]=W.xa?2:1),w=[w],J=[J],W.xa){if(5>c){$=7;break}A=w,I=J,st=y,r==null||5>c?r=0:5<=c&&r[a+0]==47&&!(r[a+4]>>5)?(lt=[0],Ot=[0],yt=[0],ut(mt=new B,r,a,c),mr(mt,lt,Ot,yt)?(A!=null&&(A[0]=lt[0]),I!=null&&(I[0]=Ot[0]),st!=null&&(st[0]=yt[0]),r=1):r=0):r=0}else{if(10>c){$=7;break}A=J,r==null||10>c||!ja(r,a+3,c-3)?r=0:(I=r[a+0]|r[a+1]<<8|r[a+2]<<16,st=16383&(r[a+7]<<8|r[a+6]),r=16383&(r[a+9]<<8|r[a+8]),1&I||3<(I>>1&7)||!(I>>4&1)||I>>5>=W.Ja||!st||!r?r=0:(w&&(w[0]=st),A&&(A[0]=r),r=1))}if(!r||(w=w[0],J=J[0],Z&&(C[0]!=w||H[0]!=J)))return 3;N!=null&&(N[0]=W,N.offset=a-N.w,t(4294967286>a-N.w),t(N.offset==N.ha-c));break}return $==0||$==7&&Z&&N==null?(y!=null&&(y[0]|=W.na!=null&&0<W.na.length),p!=null&&(p[0]=w),v!=null&&(v[0]=J),0):$}function Un(r,a,c){var p=a.width,v=a.height,y=0,w=0,A=p,N=v;if(a.Da=r!=null&&0<r.Da,a.Da&&(A=r.cd,N=r.bd,y=r.v,w=r.j,11>c||(y&=-2,w&=-2),0>y||0>w||0>=A||0>=N||y+A>p||w+N>v))return 0;if(a.v=y,a.j=w,a.va=y+A,a.o=w+N,a.U=A,a.T=N,a.da=r!=null&&0<r.da,a.da){if(!Ht(A,N,c=[r.ib],y=[r.hb]))return 0;a.ib=c[0],a.hb=y[0]}return a.ob=r!=null&&r.ob,a.Kb=r==null||!r.Sd,a.da&&(a.ob=a.ib<3*p/4&&a.hb<3*v/4,a.Kb=0),1}function oi(r){if(r==null)return 2;if(11>r.S){var a=r.f.RGBA;a.fb+=(r.height-1)*a.A,a.A=-a.A}else a=r.f.kb,r=r.height,a.O+=(r-1)*a.fa,a.fa=-a.fa,a.N+=(r-1>>1)*a.Ab,a.Ab=-a.Ab,a.W+=(r-1>>1)*a.Db,a.Db=-a.Db,a.F!=null&&(a.J+=(r-1)*a.lb,a.lb=-a.lb);return 0}function ha(r,a,c,p){if(p==null||0>=r||0>=a)return 2;if(c!=null){if(c.Da){var v=c.cd,y=c.bd,w=-2&c.v,A=-2&c.j;if(0>w||0>A||0>=v||0>=y||w+v>r||A+y>a)return 2;r=v,a=y}if(c.da){if(!Ht(r,a,v=[c.ib],y=[c.hb]))return 2;r=v[0],a=y[0]}}p.width=r,p.height=a;t:{var N=p.width,C=p.height;if(r=p.S,0>=N||0>=C||!(r>=Ja&&13>r))r=2;else{if(0>=p.Rd&&p.sd==null){w=y=v=a=0;var H=(A=N*mh[r])*C;if(11>r||(y=(C+1)/2*(a=(N+1)/2),r==12&&(w=(v=N)*C)),(C=s(H+2*y+w))==null){r=1;break t}p.sd=C,11>r?((N=p.f.RGBA).eb=C,N.fb=0,N.A=A,N.size=H):((N=p.f.kb).y=C,N.O=0,N.fa=A,N.Fd=H,N.f=C,N.N=0+H,N.Ab=a,N.Cd=y,N.ea=C,N.W=0+H+y,N.Db=a,N.Ed=y,r==12&&(N.F=C,N.J=0+H+2*y),N.Tc=w,N.lb=v)}if(a=1,v=p.S,y=p.width,w=p.height,v>=Ja&&13>v)if(11>v)r=p.f.RGBA,a&=(A=Math.abs(r.A))*(w-1)+y<=r.size,a&=A>=y*mh[v],a&=r.eb!=null;else{r=p.f.kb,A=(y+1)/2,H=(w+1)/2,N=Math.abs(r.fa),C=Math.abs(r.Ab);var Z=Math.abs(r.Db),I=Math.abs(r.lb),W=I*(w-1)+y;a&=N*(w-1)+y<=r.Fd,a&=C*(H-1)+A<=r.Cd,a=(a&=Z*(H-1)+A<=r.Ed)&N>=y&C>=A&Z>=A,a&=r.y!=null,a&=r.f!=null,a&=r.ea!=null,v==12&&(a&=I>=y,a&=W<=r.Tc,a&=r.F!=null)}else a=0;r=a?0:2}}return r!=0||c!=null&&c.fd&&(r=oi(p)),r}var Bi=64,si=[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],la=24,wn=32,Sn=8,ji=[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];Ct("Predictor0","PredictorAdd0"),U.Predictor0=function(){return 4278190080},U.Predictor1=function(r){return r},U.Predictor2=function(r,a,c){return a[c+0]},U.Predictor3=function(r,a,c){return a[c+1]},U.Predictor4=function(r,a,c){return a[c-1]},U.Predictor5=function(r,a,c){return qt(qt(r,a[c+1]),a[c+0])},U.Predictor6=function(r,a,c){return qt(r,a[c-1])},U.Predictor7=function(r,a,c){return qt(r,a[c+0])},U.Predictor8=function(r,a,c){return qt(a[c-1],a[c+0])},U.Predictor9=function(r,a,c){return qt(a[c+0],a[c+1])},U.Predictor10=function(r,a,c){return qt(qt(r,a[c-1]),qt(a[c+0],a[c+1]))},U.Predictor11=function(r,a,c){var p=a[c+0];return 0>=Zt(p>>24&255,r>>24&255,(a=a[c-1])>>24&255)+Zt(p>>16&255,r>>16&255,a>>16&255)+Zt(p>>8&255,r>>8&255,a>>8&255)+Zt(255&p,255&r,255&a)?p:r},U.Predictor12=function(r,a,c){var p=a[c+0];return(be((r>>24&255)+(p>>24&255)-((a=a[c-1])>>24&255))<<24|be((r>>16&255)+(p>>16&255)-(a>>16&255))<<16|be((r>>8&255)+(p>>8&255)-(a>>8&255))<<8|be((255&r)+(255&p)-(255&a)))>>>0},U.Predictor13=function(r,a,c){var p=a[c-1];return(le((r=qt(r,a[c+0]))>>24&255,p>>24&255)<<24|le(r>>16&255,p>>16&255)<<16|le(r>>8&255,p>>8&255)<<8|le(255&r,255&p))>>>0};var jr=U.PredictorAdd0;U.PredictorAdd1=ce,Ct("Predictor2","PredictorAdd2"),Ct("Predictor3","PredictorAdd3"),Ct("Predictor4","PredictorAdd4"),Ct("Predictor5","PredictorAdd5"),Ct("Predictor6","PredictorAdd6"),Ct("Predictor7","PredictorAdd7"),Ct("Predictor8","PredictorAdd8"),Ct("Predictor9","PredictorAdd9"),Ct("Predictor10","PredictorAdd10"),Ct("Predictor11","PredictorAdd11"),Ct("Predictor12","PredictorAdd12"),Ct("Predictor13","PredictorAdd13");var Mr=U.PredictorAdd2;Rt("ColorIndexInverseTransform","MapARGB","32b",function(r){return r>>8&255},function(r){return r}),Rt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(r){return r},function(r){return r>>8&255});var Mi,hi=U.ColorIndexInverseTransform,Ke=U.MapARGB,Ko=U.VP8LColorIndexInverseTransformAlpha,lr=U.MapAlpha,Yn=U.VP8LPredictorsAdd=[];Yn.length=16,(U.VP8LPredictors=[]).length=16,(U.VP8LPredictorsAdd_C=[]).length=16,(U.VP8LPredictors_C=[]).length=16;var li,ua,ca,Ti,ui,ci,Tr,Lr,Rr,Ri,pn,ur,ke,Ce,ze,$e,Nr,fa,Di,Ga,Gs,Ys,Js,Xs,pa,Ks,$s,Zs,Qs=s(511),th=s(2041),eh=s(225),nh=s(767),rh=0,$o=th,Ya=eh,In=nh,zn=Qs,Ja=0,Xa=1,ih=2,Ka=3,$a=4,Zo=5,ah=6,Qo=7,ts=8,Za=9,es=10,tu=[2,3,7],eu=[3,3,11],oh=[280,256,256,256,40],nu=[0,1,1,1,0],ru=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],iu=[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],au=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ou=8,ns=[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],rs=[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],da=null,su=[[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]],hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],sh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],lu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],uu=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],cu=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],fu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Dr=[],Jn=[],Sr=[],pu=1,hh=2,qr=[],Hn=[];cn("UpsampleRgbLinePair",ri,3),cn("UpsampleBgrLinePair",Fi,3),cn("UpsampleRgbaLinePair",sa,4),cn("UpsampleBgraLinePair",ai,4),cn("UpsampleArgbLinePair",ii,4),cn("UpsampleRgba4444LinePair",fn,2),cn("UpsampleRgb565LinePair",Ei,2);var du=U.UpsampleRgbLinePair,gu=U.UpsampleBgrLinePair,lh=U.UpsampleRgbaLinePair,uh=U.UpsampleBgraLinePair,ch=U.UpsampleArgbLinePair,fh=U.UpsampleRgba4444LinePair,mu=U.UpsampleRgb565LinePair,Qa=16,to=1<<Qa-1,ga=-227,is=482,ph=6,vu=(256<<ph)-1,dh=0,bu=s(256),yu=s(256),wu=s(256),xu=s(256),Au=s(is-ga),Lu=s(is-ga);hr("YuvToRgbRow",ri,3),hr("YuvToBgrRow",Fi,3),hr("YuvToRgbaRow",sa,4),hr("YuvToBgraRow",ai,4),hr("YuvToArgbRow",ii,4),hr("YuvToRgba4444Row",fn,2),hr("YuvToRgb565Row",Ei,2);var gh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],eo=[0,2,8],Nu=[8,7,6,4,4,2,2,2,1,1,1,1],Su=1;this.WebPDecodeRGBA=function(r,a,c,p,v){var y=Xa,w=new T,A=new he;w.ba=A,A.S=y,A.width=[A.width],A.height=[A.height];var N=A.width,C=A.height,H=new Vt;if(H==null||r==null)var Z=2;else t(H!=null),Z=Va(r,a,c,H.width,H.height,H.Pd,H.Qd,H.format,null);if(Z!=0?N=0:(N!=null&&(N[0]=H.width[0]),C!=null&&(C[0]=H.height[0]),N=1),N){A.width=A.width[0],A.height=A.height[0],p!=null&&(p[0]=A.width),v!=null&&(v[0]=A.height);t:{if(p=new Ai,(v=new G).data=r,v.w=a,v.ha=c,v.kd=1,a=[0],t(v!=null),((r=Va(v.data,v.w,v.ha,null,null,null,a,null,v))==0||r==7)&&a[0]&&(r=4),(a=r)==0){if(t(w!=null),p.data=v.data,p.w=v.w+v.offset,p.ha=v.ha-v.offset,p.put=Gt,p.ac=er,p.bc=gr,p.ma=w,v.xa){if((r=Kr())==null){w=1;break t}if((function(I,W){var J=[0],st=[0],$=[0];e:for(;;){if(I==null)return 0;if(W==null)return I.a=2,0;if(I.l=W,I.a=0,ut(I.m,W.data,W.w,W.ha),!mr(I.m,J,st,$)){I.a=3;break e}if(I.xb=hh,W.width=J[0],W.height=st[0],!rr(J[0],st[0],1,I,null))break e;return 1}return t(I.a!=0),0})(r,p)){if(p=(a=ha(p.width,p.height,w.Oa,w.ba))==0){e:{p=r;n:for(;;){if(p==null){p=0;break e}if(t(p.s.yc!=null),t(p.s.Ya!=null),t(0<p.s.Wb),t((c=p.l)!=null),t((v=c.ma)!=null),p.xb!=0){if(p.ca=v.ba,p.tb=v.tb,t(p.ca!=null),!Un(v.Oa,c,Ka)){p.a=2;break n}if(!$r(p,c.width)||c.da)break n;if((c.da||Yt(p.ca.S))&&Me(),11>p.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),p.ca.f.kb.F!=null&&Me()),p.Pb&&0<p.s.ua&&p.s.vb.X==null&&!_(p.s.vb,p.s.Wa.Xa)){p.a=1;break n}p.xb=0}if(!Gn(p,p.V,p.Ba,p.c,p.i,c.o,Ir))break n;v.Dc=p.Ma,p=1;break e}t(p.a!=0),p=0}p=!p}p&&(a=r.a)}else a=r.a}else{if((r=new Oo)==null){w=1;break t}if(r.Fa=v.na,r.P=v.P,r.qc=v.Sa,ar(r,p)){if((a=ha(p.width,p.height,w.Oa,w.ba))==0){if(r.Aa=0,c=w.Oa,t((v=r)!=null),c!=null){if(0<(N=0>(N=c.Md)?0:100<N?255:255*N/100)){for(C=H=0;4>C;++C)12>(Z=v.pb[C]).lc&&(Z.ia=N*Nu[0>Z.lc?0:Z.lc]>>3),H|=Z.ia;H&&(alert("todo:VP8InitRandom"),v.ia=1)}v.Ga=c.Id,100<v.Ga?v.Ga=100:0>v.Ga&&(v.Ga=0)}(function(I,W){if(I==null)return 0;if(W==null)return Je(I,2,"NULL VP8Io parameter in VP8Decode().");if(!I.cb&&!ar(I,W))return 0;if(t(I.cb),W.ac==null||W.ac(W)){W.ob&&(I.L=0);var J=eo[I.L];if(I.L==2?(I.yb=0,I.zb=0):(I.yb=W.v-J>>4,I.zb=W.j-J>>4,0>I.yb&&(I.yb=0),0>I.zb&&(I.zb=0)),I.Va=W.o+15+J>>4,I.Hb=W.va+15+J>>4,I.Hb>I.za&&(I.Hb=I.za),I.Va>I.Ub&&(I.Va=I.Ub),0<I.L){var st=I.ed;for(J=0;4>J;++J){var $;if(I.Qa.Cb){var lt=I.Qa.Lb[J];I.Qa.Fb||(lt+=st.Tb)}else lt=st.Tb;for($=0;1>=$;++$){var ct=I.gd[J][$],yt=lt;if(st.Pc&&(yt+=st.vd[0],$&&(yt+=st.od[0])),0<(yt=0>yt?0:63<yt?63:yt)){var mt=yt;0<st.wb&&(mt=4<st.wb?mt>>2:mt>>1)>9-st.wb&&(mt=9-st.wb),1>mt&&(mt=1),ct.dd=mt,ct.tc=2*yt+mt,ct.ld=40<=yt?2:15<=yt?1:0}else ct.tc=0;ct.La=$}}}J=0}else Je(I,6,"Frame setup failed"),J=I.a;if(J=J==0){if(J){I.$c=0,0<I.Aa||(I.Ic=Su);e:{J=I.Ic,st=4*(mt=I.za);var Tt=32*mt,kt=mt+1,re=0<I.L?mt*(0<I.Aa?2:1):0,Ot=(I.Aa==2?2:1)*mt;if((ct=st+832+($=3*(16*J+eo[I.L])/2*Tt)+(lt=I.Fa!=null&&0<I.Fa.length?I.Kc.c*I.Kc.i:0))!=ct)J=0;else{if(ct>I.Vb){if(I.Vb=0,I.Ec=s(ct),I.Fc=0,I.Ec==null){J=Je(I,1,"no memory during frame initialization.");break e}I.Vb=ct}ct=I.Ec,yt=I.Fc,I.Ac=ct,I.Bc=yt,yt+=st,I.Gd=f(Tt,Oa),I.Hd=0,I.rb=f(kt+1,$i),I.sb=1,I.wa=re?f(re,qn):null,I.Y=0,I.D.Nb=0,I.D.wa=I.wa,I.D.Y=I.Y,0<I.Aa&&(I.D.Y+=mt),t(!0),I.oc=ct,I.pc=yt,yt+=832,I.ya=f(Ot,Zi),I.aa=0,I.D.ya=I.ya,I.D.aa=I.aa,I.Aa==2&&(I.D.aa+=mt),I.R=16*mt,I.B=8*mt,mt=(Tt=eo[I.L])*I.R,Tt=Tt/2*I.B,I.sa=ct,I.ta=yt+mt,I.qa=I.sa,I.ra=I.ta+16*J*I.R+Tt,I.Ha=I.qa,I.Ia=I.ra+8*J*I.B+Tt,I.$c=0,yt+=$,I.mb=lt?ct:null,I.nb=lt?yt:null,t(yt+lt<=I.Fc+I.Vb),Qi(I),o(I.Ac,I.Bc,0,st),J=1}}if(J){if(W.ka=0,W.y=I.sa,W.O=I.ta,W.f=I.qa,W.N=I.ra,W.ea=I.Ha,W.Vd=I.Ia,W.fa=I.R,W.Rc=I.B,W.F=null,W.J=0,!rh){for(J=-255;255>=J;++J)Qs[255+J]=0>J?-J:J;for(J=-1020;1020>=J;++J)th[1020+J]=-128>J?-128:127<J?127:J;for(J=-112;112>=J;++J)eh[112+J]=-16>J?-16:15<J?15:J;for(J=-255;510>=J;++J)nh[255+J]=0>J?0:255<J?255:J;rh=1}Tr=Ta,Lr=Bo,Ri=jo,pn=Mo,ur=or,Rr=Ma,ke=qa,Ce=Ua,ze=Ha,$e=h,Nr=za,fa=ti,Di=m,Ga=P,Gs=Ci,Ys=aa,Js=Ii,Xs=Da,Jn[0]=Ho,Jn[1]=_i,Jn[2]=Uo,Jn[3]=zo,Jn[4]=Wo,Jn[5]=br,Jn[6]=Vo,Jn[7]=yr,Jn[8]=Yo,Jn[9]=Go,Dr[0]=Ra,Dr[1]=To,Dr[2]=Ro,Dr[3]=Do,Dr[4]=Er,Dr[5]=qo,Dr[6]=Zr,Sr[0]=Jo,Sr[1]=ta,Sr[2]=Pi,Sr[3]=ea,Sr[4]=Xo,Sr[5]=ki,Sr[6]=na,J=1}else J=0}J&&(J=(function(fe,Ze){for(fe.M=0;fe.M<fe.Va;++fe.M){var ie,Bt=fe.Jc[fe.M&fe.Xb],Lt=fe.m,He=fe;for(ie=0;ie<He.za;++ie){var ee=Lt,de=He,Ee=de.Ac,sn=de.Bc+4*ie,xn=de.zc,Re=de.ya[de.aa+ie];if(de.Qa.Bb?Re.$b=ft(ee,de.Pa.jb[0])?2+ft(ee,de.Pa.jb[2]):ft(ee,de.Pa.jb[1]):Re.$b=0,de.kc&&(Re.Ad=ft(ee,de.Bd)),Re.Za=!ft(ee,145)+0,Re.Za){var dn=Re.Ob,An=0;for(de=0;4>de;++de){var Qe,me=xn[0+de];for(Qe=0;4>Qe;++Qe){me=uu[Ee[sn+Qe]][me];for(var we=sh[ft(ee,me[0])];0<we;)we=sh[2*we+ft(ee,me[we])];me=-we,Ee[sn+Qe]=me}i(dn,An,Ee,sn,4),An+=4,xn[0+de]=me}}else me=ft(ee,156)?ft(ee,128)?1:3:ft(ee,163)?2:0,Re.Ob[0]=me,o(Ee,sn,me,4),o(xn,0,me,4);Re.Dd=ft(ee,142)?ft(ee,114)?ft(ee,183)?1:3:2:0}if(He.m.Ka)return Je(fe,7,"Premature end-of-partition0 encountered.");for(;fe.ja<fe.za;++fe.ja){if(He=Bt,ee=(Lt=fe).rb[Lt.sb-1],Ee=Lt.rb[Lt.sb+Lt.ja],ie=Lt.ya[Lt.aa+Lt.ja],sn=Lt.kc?ie.Ad:0)ee.la=Ee.la=0,ie.Za||(ee.Na=Ee.Na=0),ie.Hc=0,ie.Gc=0,ie.ia=0;else{var De,xe;if(ee=Ee,Ee=He,sn=Lt.Pa.Xc,xn=Lt.ya[Lt.aa+Lt.ja],Re=Lt.pb[xn.$b],de=xn.ad,dn=0,An=Lt.rb[Lt.sb-1],me=Qe=0,o(de,dn,0,384),xn.Za)var hn=0,Xn=sn[3];else{we=s(16);var We=ee.Na+An.Na;if(We=da(Ee,sn[1],We,Re.Eb,0,we,0),ee.Na=An.Na=(0<We)+0,1<We)Tr(we,0,de,dn);else{var _n=we[0]+3>>3;for(we=0;256>we;we+=16)de[dn+we]=_n}hn=1,Xn=sn[0]}var Se=15&ee.la,tn=15&An.la;for(we=0;4>we;++we){var Fn=1&tn;for(_n=xe=0;4>_n;++_n)Se=Se>>1|(Fn=(We=da(Ee,Xn,We=Fn+(1&Se),Re.Sc,hn,de,dn))>hn)<<7,xe=xe<<2|(3<We?3:1<We?2:de[dn+0]!=0),dn+=16;Se>>=4,tn=tn>>1|Fn<<7,Qe=(Qe<<8|xe)>>>0}for(Xn=Se,hn=tn>>4,De=0;4>De;De+=2){for(xe=0,Se=ee.la>>4+De,tn=An.la>>4+De,we=0;2>we;++we){for(Fn=1&tn,_n=0;2>_n;++_n)We=Fn+(1&Se),Se=Se>>1|(Fn=0<(We=da(Ee,sn[2],We,Re.Qc,0,de,dn)))<<3,xe=xe<<2|(3<We?3:1<We?2:de[dn+0]!=0),dn+=16;Se>>=2,tn=tn>>1|Fn<<5}me|=xe<<4*De,Xn|=Se<<4<<De,hn|=(240&tn)<<De}ee.la=Xn,An.la=hn,xn.Hc=Qe,xn.Gc=me,xn.ia=43690&me?0:Re.ia,sn=!(Qe|me)}if(0<Lt.L&&(Lt.wa[Lt.Y+Lt.ja]=Lt.gd[ie.$b][ie.Za],Lt.wa[Lt.Y+Lt.ja].La|=!sn),He.Ka)return Je(fe,7,"Premature end-of-file encountered.")}if(Qi(fe),Lt=Ze,He=1,ie=(Bt=fe).D,ee=0<Bt.L&&Bt.M>=Bt.zb&&Bt.M<=Bt.Va,Bt.Aa==0)e:{if(ie.M=Bt.M,ie.uc=ee,Oi(Bt,ie),He=1,ie=(xe=Bt.D).Nb,ee=(me=eo[Bt.L])*Bt.R,Ee=me/2*Bt.B,we=16*ie*Bt.R,_n=8*ie*Bt.B,sn=Bt.sa,xn=Bt.ta-ee+we,Re=Bt.qa,de=Bt.ra-Ee+_n,dn=Bt.Ha,An=Bt.Ia-Ee+_n,tn=(Se=xe.M)==0,Qe=Se>=Bt.Va-1,Bt.Aa==2&&Oi(Bt,xe),xe.uc)for(Fn=(We=Bt).D.M,t(We.D.uc),xe=We.yb;xe<We.Hb;++xe){hn=xe,Xn=Fn;var Ln=(En=(ln=We).D).Nb;De=ln.R;var En=En.wa[En.Y+hn],On=ln.sa,Pn=ln.ta+16*Ln*De+16*hn,Bn=En.dd,Ie=En.tc;if(Ie!=0)if(t(3<=Ie),ln.L==1)0<hn&&Ys(On,Pn,De,Ie+4),En.La&&Xs(On,Pn,De,Ie),0<Xn&&Gs(On,Pn,De,Ie+4),En.La&&Js(On,Pn,De,Ie);else{var jn=ln.B,Kn=ln.qa,fi=ln.ra+8*Ln*jn+8*hn,_r=ln.Ha,ln=ln.Ia+8*Ln*jn+8*hn;Ln=En.ld,0<hn&&(Ce(On,Pn,De,Ie+4,Bn,Ln),$e(Kn,fi,_r,ln,jn,Ie+4,Bn,Ln)),En.La&&(fa(On,Pn,De,Ie,Bn,Ln),Ga(Kn,fi,_r,ln,jn,Ie,Bn,Ln)),0<Xn&&(ke(On,Pn,De,Ie+4,Bn,Ln),ze(Kn,fi,_r,ln,jn,Ie+4,Bn,Ln)),En.La&&(Nr(On,Pn,De,Ie,Bn,Ln),Di(Kn,fi,_r,ln,jn,Ie,Bn,Ln))}}if(Bt.ia&&alert("todo:DitherRow"),Lt.put!=null){if(xe=16*Se,Se=16*(Se+1),tn?(Lt.y=Bt.sa,Lt.O=Bt.ta+we,Lt.f=Bt.qa,Lt.N=Bt.ra+_n,Lt.ea=Bt.Ha,Lt.W=Bt.Ia+_n):(xe-=me,Lt.y=sn,Lt.O=xn,Lt.f=Re,Lt.N=de,Lt.ea=dn,Lt.W=An),Qe||(Se-=me),Se>Lt.o&&(Se=Lt.o),Lt.F=null,Lt.J=null,Bt.Fa!=null&&0<Bt.Fa.length&&xe<Se&&(Lt.J=Xe(Bt,Lt,xe,Se-xe),Lt.F=Bt.mb,Lt.F==null&&Lt.F.length==0)){He=Je(Bt,3,"Could not decode alpha data.");break e}xe<Lt.j&&(me=Lt.j-xe,xe=Lt.j,t(!(1&me)),Lt.O+=Bt.R*me,Lt.N+=Bt.B*(me>>1),Lt.W+=Bt.B*(me>>1),Lt.F!=null&&(Lt.J+=Lt.width*me)),xe<Se&&(Lt.O+=Lt.v,Lt.N+=Lt.v>>1,Lt.W+=Lt.v>>1,Lt.F!=null&&(Lt.J+=Lt.v),Lt.ka=xe-Lt.j,Lt.U=Lt.va-Lt.v,Lt.T=Se-xe,He=Lt.put(Lt))}ie+1!=Bt.Ic||Qe||(i(Bt.sa,Bt.ta-ee,sn,xn+16*Bt.R,ee),i(Bt.qa,Bt.ra-Ee,Re,de+8*Bt.B,Ee),i(Bt.Ha,Bt.Ia-Ee,dn,An+8*Bt.B,Ee))}if(!He)return Je(fe,6,"Output aborted.")}return 1})(I,W)),W.bc!=null&&W.bc(W),J&=1}return J?(I.cb=0,J):0})(r,p)||(a=r.a)}}else a=r.a}a==0&&w.Oa!=null&&w.Oa.fd&&(a=oi(w.ba))}w=a}y=w!=0?null:11>y?A.f.RGBA.eb:A.f.kb.y}else y=null;return y};var mh=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(U,pt){for(var S="",E=0;E<4;E++)S+=String.fromCharCode(U[pt++]);return S}function b(U,pt){return U[pt+0]|U[pt+1]<<8}function L(U,pt){return(U[pt+0]|U[pt+1]<<8|U[pt+2]<<16)>>>0}function F(U,pt){return(U[pt+0]|U[pt+1]<<8|U[pt+2]<<16|U[pt+3]<<24)>>>0}new u;var d=[0],M=[0],O=[],R=new u,k=e,Y=(function(U,pt){var S={},E=0,q=!1,D=0,nt=0;if(S.frames=[],!(function(x,B){for(var j=0;j<4;j++)if(x[B+j]!="RIFF".charCodeAt(j))return!0;return!1})(U,pt)){for(F(U,pt+=4),pt+=8;pt<U.length;){var at=g(U,pt),ht=F(U,pt+=4);pt+=4;var Q=ht+(1&ht);switch(at){case"VP8 ":case"VP8L":S.frames[E]===void 0&&(S.frames[E]={}),(vt=S.frames[E]).src_off=q?nt:pt-8,vt.src_size=D+ht+8,E++,q&&(q=!1,D=0,nt=0);break;case"VP8X":(vt=S.header={}).feature_flags=U[pt];var ut=pt+4;vt.canvas_width=1+L(U,ut),ut+=3,vt.canvas_height=1+L(U,ut),ut+=3;break;case"ALPH":q=!0,D=Q+8,nt=pt-8;break;case"ANIM":(vt=S.header).bgcolor=F(U,pt),ut=pt+4,vt.loop_count=b(U,ut),ut+=2;break;case"ANMF":var At,vt;(vt=S.frames[E]={}).offset_x=2*L(U,pt),pt+=3,vt.offset_y=2*L(U,pt),pt+=3,vt.width=1+L(U,pt),pt+=3,vt.height=1+L(U,pt),pt+=3,vt.duration=L(U,pt),pt+=3,At=U[pt++],vt.dispose=1&At,vt.blend=At>>1&1}at!="ANMF"&&(pt+=Q)}return S}})(k,0);Y.response=k,Y.rgbaoutput=!0,Y.dataurl=!1;var X=Y.header?Y.header:null,et=Y.frames?Y.frames:null;if(X){X.loop_counter=X.loop_count,d=[X.canvas_height],M=[X.canvas_width];for(var dt=0;dt<et.length&&et[dt].blend!=0;dt++);}var xt=et[0],Pt=R.WebPDecodeRGBA(k,xt.src_off,xt.src_size,M,d);xt.rgba=Pt,xt.imgwidth=M[0],xt.imgheight=d[0];for(var tt=0;tt<M[0]*d[0]*4;tt++)O[tt]=Pt[tt];return this.width=M,this.height=d,this.data=O,this}function Tc(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&").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 Rc(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,i,o,s,f,l,u,g,b=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new u,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new f,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new f,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new L(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,f=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,g=new b}]);var L=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var B=x;Object.defineProperty(this,"pdf",{get:function(){return B}});var j=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return j},set:function(_){j=!!_}});var z=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return z},set:function(_){z=!!_}});var V=0;Object.defineProperty(this,"posX",{get:function(){return V},set:function(_){isNaN(_)||(V=_)}});var K=0;Object.defineProperty(this,"posY",{get:function(){return K},set:function(_){isNaN(_)||(K=_)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(_){var Nt;typeof _=="number"?Nt=[_,_,_,_]:((Nt=new Array(4))[0]=_[0],Nt[1]=_.length>=2?_[1]:Nt[0],Nt[2]=_.length>=3?_[2]:Nt[0],Nt[3]=_.length>=4?_[3]:Nt[1]),g.margin=Nt}});var rt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return rt},set:function(_){rt=_}});var it=0;Object.defineProperty(this,"lastBreak",{get:function(){return it},set:function(_){it=_}});var ft=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ft},set:function(_){ft=_}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(_){_ instanceof b&&(g=_)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(_){g.path=_}});var wt=[];Object.defineProperty(this,"ctxStack",{get:function(){return wt},set:function(_){wt=_}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(_){var Nt;Nt=F(_),this.ctx.fillStyle=Nt.style,this.ctx.isFillTransparent=Nt.a===0,this.ctx.fillOpacity=Nt.a,this.pdf.setFillColor(Nt.r,Nt.g,Nt.b,{a:Nt.a}),this.pdf.setTextColor(Nt.r,Nt.g,Nt.b,{a:Nt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(_){var Nt=F(_);this.ctx.strokeStyle=Nt.style,this.ctx.isStrokeTransparent=Nt.a===0,this.ctx.strokeOpacity=Nt.a,Nt.a===0?this.pdf.setDrawColor(255,255,255):(Nt.a,this.pdf.setDrawColor(Nt.r,Nt.g,Nt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(_){["butt","round","square"].indexOf(_)!==-1&&(this.ctx.lineCap=_,this.pdf.setLineCap(_))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(_){isNaN(_)||(this.ctx.lineWidth=_,this.pdf.setLineWidth(_))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(_){["bevel","round","miter"].indexOf(_)!==-1&&(this.ctx.lineJoin=_,this.pdf.setLineJoin(_))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(_){isNaN(_)||(this.ctx.miterLimit=_,this.pdf.setMiterLimit(_))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(_){this.ctx.textBaseline=_}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(_){["right","end","center","left","start"].indexOf(_)!==-1&&(this.ctx.textAlign=_)}});var _t=null,St=null,Dt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Dt},set:function(_){_t=null,St=null,Dt=_}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(_){var Nt;if(this.ctx.font=_,(Nt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(_))!==null){var ae=Nt[1];Nt[2];var Ht=Nt[3],bt=Nt[4];Nt[5];var Wt=Nt[6],Ct=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(bt)[2];bt=Math.floor(Ct==="px"?parseFloat(bt)*this.pdf.internal.scaleFactor:Ct==="em"?parseFloat(bt)*this.pdf.getFontSize():parseFloat(bt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(bt);var zt=(function(Rt){var Ue,ge,oe=[],se=Rt.trim();if(se==="")return js;if(se in Ll)return[Ll[se]];for(;se!=="";){switch(ge=null,Ue=(se=Sl(se)).charAt(0)){case'"':case"'":ge=Fc(se.substring(1),Ue);break;default:ge=Ec(se)}if(ge===null||(oe.push(ge[0]),(se=Sl(ge[1]))!==""&&se.charAt(0)!==","))return js;se=se.replace(/^,/,"")}return oe})(Wt);if(this.fontFaces){var qt=(function(Rt,Ue){var ge=Rt.getFontList(),oe=JSON.stringify(ge);if(_t===null||St!==oe){var se=(function(Oe){var Ut=[];return Object.keys(Oe).forEach(function(Pe){Oe[Pe].forEach(function(Yt){var Qt=null;switch(Yt){case"bold":Qt={family:Pe,weight:"bold"};break;case"italic":Qt={family:Pe,style:"italic"};break;case"bolditalic":Qt={family:Pe,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Pe}}Qt!==null&&(Qt.ref={name:Pe,style:Yt},Ut.push(Qt))})}),Ut})(ge);_t=(function(Oe){for(var Ut={},Pe=0;Pe<Oe.length;++Pe){var Yt=Bs(Oe[Pe]),Qt=Yt.family,Be=Yt.stretch,he=Yt.style,Vt=Yt.weight;Ut[Qt]=Ut[Qt]||{},Ut[Qt][Be]=Ut[Qt][Be]||{},Ut[Qt][Be][he]=Ut[Qt][Be][he]||{},Ut[Qt][Be][he][Vt]=Yt}return Ut})(se.concat(Ue)),St=oe}return _t})(this.pdf,this.fontFaces),be=zt.map(function(Rt){return{family:Rt,stretch:"normal",weight:Ht,style:ae}}),le=(function(Rt,Ue,ge){for(var oe=(ge=ge||{}).defaultFontFamily||"times",se=Object.assign({},Ic,ge.genericFontFamilies||{}),Oe=null,Ut=null,Pe=0;Pe<Ue.length;++Pe)if(se[(Oe=Bs(Ue[Pe])).family]&&(Oe.family=se[Oe.family]),Rt.hasOwnProperty(Oe.family)){Ut=Rt[Oe.family];break}if(!(Ut=Ut||Rt[oe]))throw new Error("Could not find a font-family for the rule '"+Nl(Oe)+"' and default family '"+oe+"'.");if(Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];var Be=Us[Yt],he=Be<=Us.normal?-1:1,Vt=Al(Qt,Gl,Be,he);if(!Vt)throw new Error("Could not find a matching font-stretch value for "+Yt);return Vt})(Oe.stretch,Ut),Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];for(var Be=Vl[Yt],he=0;he<Be.length;++he)if(Qt[Be[he]])return Qt[Be[he]];throw new Error("Could not find a matching font-style for "+Yt)})(Oe.style,Ut),!(Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];if(Yt===400&&Qt[500])return Qt[500];if(Yt===500&&Qt[400])return Qt[400];var Be=Cc[Yt],he=Al(Qt,Yl,Be,Yt<400?-1:1);if(!he)throw new Error("Could not find a matching font-weight for value "+Yt);return he})(Oe.weight,Ut)))throw new Error("Failed to resolve a font for the rule '"+Nl(Oe)+"'.");return Ut})(qt,be);this.pdf.setFont(le.ref.name,le.ref.style)}else{var Zt="";(Ht==="bold"||parseInt(Ht,10)>=700||ae==="bold")&&(Zt="bold"),ae==="italic"&&(Zt+="italic"),Zt.length===0&&(Zt="normal");for(var ce="",ue={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"},jt=0;jt<zt.length;jt++){if(this.pdf.internal.getFont(zt[jt],Zt,{noFallback:!0,disableWarning:!0})!==void 0){ce=zt[jt];break}if(Zt==="bolditalic"&&this.pdf.internal.getFont(zt[jt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ce=zt[jt],Zt="bold";else if(this.pdf.internal.getFont(zt[jt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ce=zt[jt],Zt="normal";break}}if(ce===""){for(var ne=0;ne<zt.length;ne++)if(ue[zt[ne]]){ce=ue[zt[ne]];break}}ce=ce===""?"Times":ce,this.pdf.setFont(ce,Zt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(_){this.ctx.globalCompositeOperation=_}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(_){this.ctx.globalAlpha=_}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(_){this.ctx.lineDashOffset=_,vt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(_){this.ctx.lineDash=_,vt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(_){this.ctx.ignoreClearRect=!!_}})};L.prototype.setLineDash=function(x){this.lineDash=x},L.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},L.prototype.fill=function(){et.call(this,"fill",!1)},L.prototype.stroke=function(){et.call(this,"stroke",!1)},L.prototype.beginPath=function(){this.path=[{type:"begin"}]},L.prototype.moveTo=function(x,B){if(isNaN(x)||isNaN(B))throw _e.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var j=this.ctx.transform.applyToPoint(new f(x,B));this.path.push({type:"mt",x:j.x,y:j.y}),this.ctx.lastPoint=new f(x,B)},L.prototype.closePath=function(){var x=new f(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&Le(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){x=new f(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new f(x.x,x.y)},L.prototype.lineTo=function(x,B){if(isNaN(x)||isNaN(B))throw _e.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var j=this.ctx.transform.applyToPoint(new f(x,B));this.path.push({type:"lt",x:j.x,y:j.y}),this.ctx.lastPoint=new f(j.x,j.y)},L.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),et.call(this,null,!0)},L.prototype.quadraticCurveTo=function(x,B,j,z){if(isNaN(j)||isNaN(z)||isNaN(x)||isNaN(B))throw _e.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var V=this.ctx.transform.applyToPoint(new f(j,z)),K=this.ctx.transform.applyToPoint(new f(x,B));this.path.push({type:"qct",x1:K.x,y1:K.y,x:V.x,y:V.y}),this.ctx.lastPoint=new f(V.x,V.y)},L.prototype.bezierCurveTo=function(x,B,j,z,V,K){if(isNaN(V)||isNaN(K)||isNaN(x)||isNaN(B)||isNaN(j)||isNaN(z))throw _e.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var rt=this.ctx.transform.applyToPoint(new f(V,K)),it=this.ctx.transform.applyToPoint(new f(x,B)),ft=this.ctx.transform.applyToPoint(new f(j,z));this.path.push({type:"bct",x1:it.x,y1:it.y,x2:ft.x,y2:ft.y,x:rt.x,y:rt.y}),this.ctx.lastPoint=new f(rt.x,rt.y)},L.prototype.arc=function(x,B,j,z,V,K){if(isNaN(x)||isNaN(B)||isNaN(j)||isNaN(z)||isNaN(V))throw _e.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(K=!!K,!this.ctx.transform.isIdentity){var rt=this.ctx.transform.applyToPoint(new f(x,B));x=rt.x,B=rt.y;var it=this.ctx.transform.applyToPoint(new f(0,j)),ft=this.ctx.transform.applyToPoint(new f(0,0));j=Math.sqrt(Math.pow(it.x-ft.x,2)+Math.pow(it.y-ft.y,2))}Math.abs(V-z)>=2*Math.PI&&(z=0,V=2*Math.PI),this.path.push({type:"arc",x,y:B,radius:j,startAngle:z,endAngle:V,counterclockwise:K})},L.prototype.arcTo=function(x,B,j,z,V){throw new Error("arcTo not implemented.")},L.prototype.rect=function(x,B,j,z){if(isNaN(x)||isNaN(B)||isNaN(j)||isNaN(z))throw _e.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,B),this.lineTo(x+j,B),this.lineTo(x+j,B+z),this.lineTo(x,B+z),this.lineTo(x,B),this.lineTo(x+j,B),this.lineTo(x,B)},L.prototype.fillRect=function(x,B,j,z){if(isNaN(x)||isNaN(B)||isNaN(j)||isNaN(z))throw _e.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var V={};this.lineCap!=="butt"&&(V.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(V.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,B,j,z),this.fill(),V.hasOwnProperty("lineCap")&&(this.lineCap=V.lineCap),V.hasOwnProperty("lineJoin")&&(this.lineJoin=V.lineJoin)}},L.prototype.strokeRect=function(x,B,j,z){if(isNaN(x)||isNaN(B)||isNaN(j)||isNaN(z))throw _e.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");M.call(this)||(this.beginPath(),this.rect(x,B,j,z),this.stroke())},L.prototype.clearRect=function(x,B,j,z){if(isNaN(x)||isNaN(B)||isNaN(j)||isNaN(z))throw _e.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,B,j,z))},L.prototype.save=function(x){x=typeof x!="boolean"||x;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("q");if(this.pdf.setPage(B),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var z=new b(this.ctx);this.ctxStack.push(this.ctx),this.ctx=z}},L.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("Q");this.pdf.setPage(B),x&&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)},L.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var F=function(x){var B,j,z,V;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))B=0,j=0,z=0,V=0;else{var K=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(K!==null)B=parseInt(K[1]),j=parseInt(K[2]),z=parseInt(K[3]),V=1;else if((K=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)B=parseInt(K[1]),j=parseInt(K[2]),z=parseInt(K[3]),V=parseFloat(K[4]);else{if(V=1,typeof x=="string"&&x.charAt(0)!=="#"){var rt=new Rl(x);x=rt.ok?rt.toHex():"#000000"}x.length===4?(B=x.substring(1,2),B+=B,j=x.substring(2,3),j+=j,z=x.substring(3,4),z+=z):(B=x.substring(1,3),j=x.substring(3,5),z=x.substring(5,7)),B=parseInt(B,16),j=parseInt(j,16),z=parseInt(z,16)}}return{r:B,g:j,b:z,a:V,style:x}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},M=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};L.prototype.fillText=function(x,B,j,z){if(isNaN(B)||isNaN(j)||typeof x!="string")throw _e.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(z=isNaN(z)?void 0:z,!d.call(this)){var V=Q(this.ctx.transform.rotation),K=this.ctx.transform.scaleX;E.call(this,{text:x,x:B,y:j,scale:K,angle:V,align:this.textAlign,maxWidth:z})}},L.prototype.strokeText=function(x,B,j,z){if(isNaN(B)||isNaN(j)||typeof x!="string")throw _e.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!M.call(this)){z=isNaN(z)?void 0:z;var V=Q(this.ctx.transform.rotation),K=this.ctx.transform.scaleX;E.call(this,{text:x,x:B,y:j,scale:K,renderingMode:"stroke",angle:V,align:this.textAlign,maxWidth:z})}},L.prototype.measureText=function(x){if(typeof x!="string")throw _e.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,j=this.pdf.internal.scaleFactor,z=B.internal.getFontSize(),V=B.getStringUnitWidth(x)*z/B.internal.scaleFactor;return new function(K){var rt=(K=K||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return rt}}),this}({width:V*=Math.round(96*j/72*1e4)/1e4})},L.prototype.scale=function(x,B){if(isNaN(x)||isNaN(B))throw _e.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var j=new u(x,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(j)},L.prototype.rotate=function(x){if(isNaN(x))throw _e.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new u(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(B)},L.prototype.translate=function(x,B){if(isNaN(x)||isNaN(B))throw _e.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var j=new u(1,0,0,1,x,B);this.ctx.transform=this.ctx.transform.multiply(j)},L.prototype.transform=function(x,B,j,z,V,K){if(isNaN(x)||isNaN(B)||isNaN(j)||isNaN(z)||isNaN(V)||isNaN(K))throw _e.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var rt=new u(x,B,j,z,V,K);this.ctx.transform=this.ctx.transform.multiply(rt)},L.prototype.setTransform=function(x,B,j,z,V,K){x=isNaN(x)?1:x,B=isNaN(B)?0:B,j=isNaN(j)?0:j,z=isNaN(z)?1:z,V=isNaN(V)?0:V,K=isNaN(K)?0:K,this.ctx.transform=new u(x,B,j,z,V,K)};var O=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};L.prototype.drawImage=function(x,B,j,z,V,K,rt,it,ft){var wt=this.pdf.getImageProperties(x),_t=1,St=1,Dt=1,_=1;z!==void 0&&it!==void 0&&(Dt=it/z,_=ft/V,_t=wt.width/z*it/z,St=wt.height/V*ft/V),K===void 0&&(K=B,rt=j,B=0,j=0),z!==void 0&&it===void 0&&(it=z,ft=V),z===void 0&&it===void 0&&(it=wt.width,ft=wt.height);var Nt=this.ctx.transform.decompose(),ae=Q(Nt.rotate.shx),Ht=new u,bt=(Ht=(Ht=(Ht=Ht.multiply(Nt.translate)).multiply(Nt.skew)).multiply(Nt.scale)).applyToRectangle(new l(K-B*Dt,rt-j*_,z*_t,V*St));if(this.autoPaging){for(var Wt,Ct=R.call(this,bt),zt=[],qt=0;qt<Ct.length;qt+=1)zt.indexOf(Ct[qt])===-1&&zt.push(Ct[qt]);X(zt);for(var be=zt[0],le=zt[zt.length-1],Zt=be;Zt<le+1;Zt++){this.pdf.setPage(Zt);var ce=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ue=Zt===1?this.posY+this.margin[0]:this.margin[0],jt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Rt=Zt===1?0:jt+(Zt-2)*ne;if(this.ctx.clip_path.length!==0){var Ue=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Y(Wt,this.posX+this.margin[3],-Rt+ue+this.ctx.prevPageLastElemOffset),dt.call(this,"fill",!0),this.path=Ue}var ge=JSON.parse(JSON.stringify(bt));ge=Y([ge],this.posX+this.margin[3],-Rt+ue+this.ctx.prevPageLastElemOffset)[0];var oe=(Zt>be||Zt<le)&&O.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ce,ne,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",ge.x,ge.y,ge.w,ge.h,null,null,ae),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(x,"JPEG",bt.x,bt.y,bt.w,bt.h,null,null,ae)};var R=function(x,B,j){var z=[];B=B||this.pdf.internal.pageSize.width,j=j||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var V=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":z.push(Math.floor((x.y+V)/j)+1);break;case"arc":z.push(Math.floor((x.y+V-x.radius)/j)+1),z.push(Math.floor((x.y+V+x.radius)/j)+1);break;case"qct":var K=ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);z.push(Math.floor((K.y+V)/j)+1),z.push(Math.floor((K.y+K.h+V)/j)+1);break;case"bct":var rt=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);z.push(Math.floor((rt.y+V)/j)+1),z.push(Math.floor((rt.y+rt.h+V)/j)+1);break;case"rect":z.push(Math.floor((x.y+V)/j)+1),z.push(Math.floor((x.y+x.h+V)/j)+1)}for(var it=0;it<z.length;it+=1)for(;this.pdf.internal.getNumberOfPages()<z[it];)k.call(this);return z},k=function(){var x=this.fillStyle,B=this.strokeStyle,j=this.font,z=this.lineCap,V=this.lineWidth,K=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=B,this.font=j,this.lineCap=z,this.lineWidth=V,this.lineJoin=K},Y=function(x,B,j){for(var z=0;z<x.length;z++)switch(x[z].type){case"bct":x[z].x2+=B,x[z].y2+=j;case"qct":x[z].x1+=B,x[z].y1+=j;default:x[z].x+=B,x[z].y+=j}return x},X=function(x){return x.sort(function(B,j){return B-j})},et=function(x,B){var j=this.fillStyle,z=this.strokeStyle,V=this.lineCap,K=this.lineWidth,rt=Math.abs(K*this.ctx.transform.scaleX),it=this.lineJoin;if(this.autoPaging){for(var ft,wt,_t=JSON.parse(JSON.stringify(this.path)),St=JSON.parse(JSON.stringify(this.path)),Dt=[],_=0;_<St.length;_++)if(St[_].x!==void 0)for(var Nt=R.call(this,St[_]),ae=0;ae<Nt.length;ae+=1)Dt.indexOf(Nt[ae])===-1&&Dt.push(Nt[ae]);for(var Ht=0;Ht<Dt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<Dt[Ht];)k.call(this);X(Dt);for(var bt=Dt[0],Wt=Dt[Dt.length-1],Ct=bt;Ct<Wt+1;Ct++){this.pdf.setPage(Ct),this.fillStyle=j,this.strokeStyle=z,this.lineCap=V,this.lineWidth=rt,this.lineJoin=it;var zt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=Ct===1?this.posY+this.margin[0]:this.margin[0],be=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],le=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zt=Ct===1?0:be+(Ct-2)*le;if(this.ctx.clip_path.length!==0){var ce=this.path;ft=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Y(ft,this.posX+this.margin[3],-Zt+qt+this.ctx.prevPageLastElemOffset),dt.call(this,x,!0),this.path=ce}if(wt=JSON.parse(JSON.stringify(_t)),this.path=Y(wt,this.posX+this.margin[3],-Zt+qt+this.ctx.prevPageLastElemOffset),B===!1||Ct===0){var ue=(Ct>bt||Ct<Wt)&&O.call(this);ue&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],zt,le,null).clip().discardPath()),dt.call(this,x,B),ue&&this.pdf.restoreGraphicsState()}this.lineWidth=K}this.path=_t}else this.lineWidth=rt,dt.call(this,x,B),this.lineWidth=K},dt=function(x,B){if((x!=="stroke"||B||!M.call(this))&&(x==="stroke"||B||!d.call(this))){for(var j,z,V=[],K=this.path,rt=0;rt<K.length;rt++){var it=K[rt];switch(it.type){case"begin":V.push({begin:!0});break;case"close":V.push({close:!0});break;case"mt":V.push({start:it,deltas:[],abs:[]});break;case"lt":var ft=V.length;if(K[rt-1]&&!isNaN(K[rt-1].x)&&(j=[it.x-K[rt-1].x,it.y-K[rt-1].y],ft>0)){for(;ft>=0;ft--)if(V[ft-1].close!==!0&&V[ft-1].begin!==!0){V[ft-1].deltas.push(j),V[ft-1].abs.push(it);break}}break;case"bct":j=[it.x1-K[rt-1].x,it.y1-K[rt-1].y,it.x2-K[rt-1].x,it.y2-K[rt-1].y,it.x-K[rt-1].x,it.y-K[rt-1].y],V[V.length-1].deltas.push(j);break;case"qct":var wt=K[rt-1].x+2/3*(it.x1-K[rt-1].x),_t=K[rt-1].y+2/3*(it.y1-K[rt-1].y),St=it.x+2/3*(it.x1-it.x),Dt=it.y+2/3*(it.y1-it.y),_=it.x,Nt=it.y;j=[wt-K[rt-1].x,_t-K[rt-1].y,St-K[rt-1].x,Dt-K[rt-1].y,_-K[rt-1].x,Nt-K[rt-1].y],V[V.length-1].deltas.push(j);break;case"arc":V.push({deltas:[],abs:[],arc:!0}),Array.isArray(V[V.length-1].abs)&&V[V.length-1].abs.push(it)}}z=B?null:x==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<V.length;Ht++)if(V[Ht].arc)for(var bt=V[Ht].abs,Wt=0;Wt<bt.length;Wt++){var Ct=bt[Wt];Ct.type==="arc"?tt.call(this,Ct.x,Ct.y,Ct.radius,Ct.startAngle,Ct.endAngle,Ct.counterclockwise,void 0,B,!ae):q.call(this,Ct.x,Ct.y),ae=!0}else if(V[Ht].close===!0)this.pdf.internal.out("h"),ae=!1;else if(V[Ht].begin!==!0){var zt=V[Ht].start.x,qt=V[Ht].start.y;D.call(this,V[Ht].deltas,zt,qt),ae=!0}z&&U.call(this,z),B&&pt.call(this)}},xt=function(x){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,j=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-j;case"top":return x+B-j;case"hanging":return x+B-2*j;case"middle":return x+B/2-j;default:return x}},Pt=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};L.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(B,j){this.colorStops.push([B,j])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},L.prototype.createPattern=function(){return this.createLinearGradient()},L.prototype.createRadialGradient=function(){return this.createLinearGradient()};var tt=function(x,B,j,z,V,K,rt,it,ft){for(var wt=at.call(this,j,z,V,K),_t=0;_t<wt.length;_t++){var St=wt[_t];_t===0&&(ft?S.call(this,St.x1+x,St.y1+B):q.call(this,St.x1+x,St.y1+B)),nt.call(this,x,B,St.x2,St.y2,St.x3,St.y3,St.x4,St.y4)}it?pt.call(this):U.call(this,rt)},U=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},pt=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(x,B){this.pdf.internal.out(n(x)+" "+i(B)+" m")},E=function(x){var B;switch(x.align){case"right":case"end":B="right";break;case"center":B="center";break;default:B="left"}var j,z,V,K=this.pdf.getTextDimensions(x.text),rt=xt.call(this,x.y),it=Pt.call(this,rt)-K.h,ft=this.ctx.transform.applyToPoint(new f(x.x,rt));if(this.autoPaging){var wt=this.ctx.transform.decompose(),_t=new u;_t=(_t=(_t=_t.multiply(wt.translate)).multiply(wt.skew)).multiply(wt.scale);for(var St=this.ctx.transform.applyToRectangle(new l(x.x,rt,K.w,K.h)),Dt=_t.applyToRectangle(new l(x.x,it,K.w,K.h)),_=R.call(this,Dt),Nt=[],ae=0;ae<_.length;ae+=1)Nt.indexOf(_[ae])===-1&&Nt.push(_[ae]);X(Nt);for(var Ht=Nt[0],bt=Nt[Nt.length-1],Wt=Ht;Wt<bt+1;Wt++){this.pdf.setPage(Wt);var Ct=Wt===1?this.posY+this.margin[0]:this.margin[0],zt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qt=this.pdf.internal.pageSize.height-this.margin[2],be=qt-this.margin[0],le=this.pdf.internal.pageSize.width-this.margin[1],Zt=le-this.margin[3],ce=Wt===1?0:zt+(Wt-2)*be;if(this.ctx.clip_path.length!==0){var ue=this.path;j=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Y(j,this.posX+this.margin[3],-1*ce+Ct),dt.call(this,"fill",!0),this.path=ue}var jt=Y([JSON.parse(JSON.stringify(Dt))],this.posX+this.margin[3],-ce+Ct+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*x.scale),V=this.lineWidth,this.lineWidth=V*x.scale);var ne=this.autoPaging!=="text";if(ne||jt.y+jt.h<=qt){if(ne||jt.y>=Ct&&jt.x<=le){var Rt=ne?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||le-jt.x)[0],Ue=Y([JSON.parse(JSON.stringify(St))],this.posX+this.margin[3],-ce+Ct+this.ctx.prevPageLastElemOffset)[0],ge=ne&&(Wt>Ht||Wt<bt)&&O.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zt,be,null).clip().discardPath()),this.pdf.text(Rt,Ue.x,Ue.y,{angle:x.angle,align:B,renderingMode:x.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else jt.y<qt&&(this.ctx.prevPageLastElemOffset+=qt-jt.y);x.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=V)}}else x.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*x.scale),V=this.lineWidth,this.lineWidth=V*x.scale),this.pdf.text(x.text,ft.x+this.posX,ft.y+this.posY,{angle:x.angle,align:B,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=V)},q=function(x,B,j,z){j=j||0,z=z||0,this.pdf.internal.out(n(x+j)+" "+i(B+z)+" l")},D=function(x,B,j){return this.pdf.lines(x,B,j,null,null)},nt=function(x,B,j,z,V,K,rt,it){this.pdf.internal.out([t(o(j+x)),t(s(z+B)),t(o(V+x)),t(s(K+B)),t(o(rt+x)),t(s(it+B)),"c"].join(" "))},at=function(x,B,j,z){for(var V=2*Math.PI,K=Math.PI/2;B>j;)B-=V;var rt=Math.abs(j-B);rt<V&&z&&(rt=V-rt);for(var it=[],ft=z?-1:1,wt=B;rt>1e-5;){var _t=wt+ft*Math.min(rt,K);it.push(ht.call(this,x,wt,_t)),rt-=Math.abs(_t-wt),wt=_t}return it},ht=function(x,B,j){var z=(j-B)/2,V=x*Math.cos(z),K=x*Math.sin(z),rt=V,it=-K,ft=rt*rt+it*it,wt=ft+rt*V+it*K,_t=4/3*(Math.sqrt(2*ft*wt)-wt)/(rt*K-it*V),St=rt-_t*it,Dt=it+_t*rt,_=St,Nt=-Dt,ae=z+B,Ht=Math.cos(ae),bt=Math.sin(ae);return{x1:x*Math.cos(B),y1:x*Math.sin(B),x2:St*Ht-Dt*bt,y2:St*bt+Dt*Ht,x3:_*Ht-Nt*bt,y3:_*bt+Nt*Ht,x4:x*Math.cos(j),y4:x*Math.sin(j)}},Q=function(x){return 180*x/Math.PI},ut=function(x,B,j,z,V,K){var rt=x+.5*(j-x),it=B+.5*(z-B),ft=V+.5*(j-V),wt=K+.5*(z-K),_t=Math.min(x,V,rt,ft),St=Math.max(x,V,rt,ft),Dt=Math.min(B,K,it,wt),_=Math.max(B,K,it,wt);return new l(_t,Dt,St-_t,_-Dt)},At=function(x,B,j,z,V,K,rt,it){var ft,wt,_t,St,Dt,_,Nt,ae,Ht,bt,Wt,Ct,zt,qt,be=j-x,le=z-B,Zt=V-j,ce=K-z,ue=rt-V,jt=it-K;for(wt=0;wt<41;wt++)Ht=(Nt=(_t=x+(ft=wt/40)*be)+ft*((Dt=j+ft*Zt)-_t))+ft*(Dt+ft*(V+ft*ue-Dt)-Nt),bt=(ae=(St=B+ft*le)+ft*((_=z+ft*ce)-St))+ft*(_+ft*(K+ft*jt-_)-ae),wt==0?(Wt=Ht,Ct=bt,zt=Ht,qt=bt):(Wt=Math.min(Wt,Ht),Ct=Math.min(Ct,bt),zt=Math.max(zt,Ht),qt=Math.max(qt,bt));return new l(Math.round(Wt),Math.round(Ct),Math.round(zt-Wt),Math.round(qt-Ct))},vt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,B,j=(x=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:B}));this.prevLineDash!==j&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=j)}}})(Mt.API),(function(e){var t=function(f){var l,u,g,b,L,F,d,M,O,R;for(/[^\x00-\xFF]/.test(f),u=[],g=0,b=(f+=l="\0\0\0\0".slice(f.length%4||4)).length;b>g;g+=4)(L=(f.charCodeAt(g)<<24)+(f.charCodeAt(g+1)<<16)+(f.charCodeAt(g+2)<<8)+f.charCodeAt(g+3))!==0?(F=(L=((L=((L=((L=(L-(R=L%85))/85)-(O=L%85))/85)-(M=L%85))/85)-(d=L%85))/85)%85,u.push(F+33,d+33,M+33,O+33,R+33)):u.push(122);return(function(k,Y){for(var X=Y;X>0;X--)k.pop()})(u,l.length),String.fromCharCode.apply(String,u)+"~>"},n=function(f){var l,u,g,b,L,F=String,d="length",M=255,O="charCodeAt",R="slice",k="replace";for(f[R](-2),f=f[R](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),g=[],b=0,L=(f+=l="uuuuu"[R](f[d]%5||5))[d];L>b;b+=5)u=52200625*(f[O](b)-33)+614125*(f[O](b+1)-33)+7225*(f[O](b+2)-33)+85*(f[O](b+3)-33)+(f[O](b+4)-33),g.push(M&u>>24,M&u>>16,M&u>>8,M&u);return(function(Y,X){for(var et=X;et>0;et--)Y.pop()})(g,l[d]),F.fromCharCode.apply(F,g)},i=function(f){return f.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(f){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),l.test(f)===!1)return"";for(var u="",g=0;g<f.length;g+=2)u+=String.fromCharCode("0x"+(f[g]+f[g+1]));return u},s=function(f){for(var l=new Uint8Array(f.length),u=f.length;u--;)l[u]=f.charCodeAt(u);return(l=co(l)).reduce(function(g,b){return g+String.fromCharCode(b)},"")};e.processDataByFilters=function(f,l){var u=0,g=f||"",b=[];for(typeof(l=l||[])=="string"&&(l=[l]),u=0;u<l.length;u+=1)switch(l[u]){case"ASCII85Decode":case"/ASCII85Decode":g=n(g),b.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":g=t(g),b.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":g=o(g),b.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":g=i(g),b.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":g=s(g),b.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[u]+'" is not implemented')}return{data:g,reverseChain:b.reverse().join(" ")}}})(Mt.API),(function(e){e.loadFile=function(t,n,i){return(function(o,s,f){s=s!==!1,f=typeof f=="function"?f:function(){};var l=void 0;try{l=(function(u,g,b){var L=new XMLHttpRequest,F=0,d=function(M){var O=M.length,R=[],k=String.fromCharCode;for(F=0;F<O;F+=1)R.push(k(255&M.charCodeAt(F)));return R.join("")};if(L.open("GET",u,!g),L.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(L.onload=function(){L.status===200?b(d(this.responseText)):b(void 0)}),L.send(null),g&&L.status===200)return d(L.responseText)})(o,s,f)}catch{}return l})(t,n,i)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile})(Mt.API),(function(e){function t(){return(Xt.html2canvas?Promise.resolve(Xt.html2canvas):import("./html2canvas-HSPYX66M.js")).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function n(){return(Xt.DOMPurify?Promise.resolve(Xt.DOMPurify):import("./purify.es-4R37HRTQ.js")).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var i=function(l){var u=Le(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"},o=function(l,u){var g=document.createElement(l);for(var b in u.className&&(g.className=u.className),u.innerHTML&&u.dompurify&&(g.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)g.style[b]=u.style[b];return g},s=function l(u,g){for(var b=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),L=u.firstChild;L;L=L.nextSibling)g!==!0&&L.nodeType===1&&L.nodeName==="SCRIPT"||b.appendChild(l(L,g));return u.nodeType===1&&(u.nodeName==="CANVAS"?(b.width=u.width,b.height=u.height,b.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(b.value=u.value),b.addEventListener("load",function(){b.scrollTop=u.scrollTop,b.scrollLeft=u.scrollLeft},!0)),b},f=function l(u){var g=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),b=l.convert(Promise.resolve(),g);return(b=b.setProgress(1,l,1,[l])).set(u)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(l,u){return l.__proto__=u||f.prototype,l},f.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},f.prototype.from=function(l,u){return this.then(function(){switch(u=u||(function(g){switch(i(g)){case"string":return"string";case"element":return g.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),u){case"string":return this.then(n).then(function(g){return this.set({src:o("div",{innerHTML:l,dompurify:g})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},f.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},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=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(u),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},f.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(u){var g=Object.assign({},this.opt.html2canvas);return delete g.onrendered,u(this.prop.container,g)}).then(function(u){(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},f.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(u){var g=this.opt.jsPDF,b=this.opt.fontFaces,L=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,F=Object.assign({async:!0,allowTaint:!0,scale:L,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 F.onrendered,g.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,g.context2d.posX=this.opt.x,g.context2d.posY=this.opt.y,g.context2d.margin=this.opt.margin,g.context2d.fontFaces=b,b)for(var d=0;d<b.length;++d){var M=b[d],O=M.src.find(function(R){return R.format==="truetype"});O&&g.addFont(O.url,M.ref.name,M.ref.style)}return F.windowHeight=F.windowHeight||0,F.windowHeight=F.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):F.windowHeight,g.context2d.save(!0),u(this.prop.container,F)}).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)})},f.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},f.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},f.prototype.output=function(l,u,g){return(g=g||"pdf").toLowerCase()==="img"||g.toLowerCase()==="image"?this.outputImg(l,u):this.outputPdf(l,u)},f.prototype.outputPdf=function(l,u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,u)})},f.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},f.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},f.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},f.prototype.set=function(l){if(i(l)!=="object")return this;var u=Object.keys(l||{}).map(function(g){if(g in f.template.prop)return function(){this.prop[g]=l[g]};switch(g){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[g]=l[g]}}},this);return this.then(function(){return this.thenList(u)})},f.prototype.get=function(l,u){return this.then(function(){var g=l in f.template.prop?this.prop[l]:this.opt[l];return u?u(g):g})},f.prototype.setMargin=function(l){return this.then(function(){switch(i(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},f.prototype.setPageSize=function(l){function u(g,b){return Math.floor(g*b/72*96)}return this.then(function(){(l=l||Mt.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})},f.prototype.setProgress=function(l,u,g,b){return l!=null&&(this.progress.val=l),u!=null&&(this.progress.state=u),g!=null&&(this.progress.n=g),b!=null&&(this.progress.stack=b),this.progress.ratio=this.progress.val/this.progress.state,this},f.prototype.updateProgress=function(l,u,g,b){return this.setProgress(l?this.progress.val+l:null,u||null,g?this.progress.n+g:null,b?this.progress.stack.concat(b):null)},f.prototype.then=function(l,u){var g=this;return this.thenCore(l,u,function(b,L){return g.updateProgress(null,null,1,[b]),Promise.prototype.then.call(this,function(F){return g.updateProgress(null,b),F}).then(b,L).then(function(F){return g.updateProgress(1),F})})},f.prototype.thenCore=function(l,u,g){g=g||Promise.prototype.then;var b=this;l&&(l=l.bind(b)),u&&(u=u.bind(b));var L=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?b:f.convert(Object.assign({},b),Promise.prototype),F=g.call(L,l,u);return f.convert(F,b.__proto__)},f.prototype.thenExternal=function(l,u){return Promise.prototype.then.call(this,l,u)},f.prototype.thenList=function(l){var u=this;return l.forEach(function(g){u=u.thenCore(g)}),u},f.prototype.catch=function(l){l&&(l=l.bind(this));var u=Promise.prototype.catch.call(this,l);return f.convert(u,this)},f.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},f.prototype.error=function(l){return this.then(function(){throw new Error(l)})},f.prototype.using=f.prototype.set,f.prototype.saveAs=f.prototype.save,f.prototype.export=f.prototype.output,f.prototype.run=f.prototype.then,Mt.getPageSize=function(l,u,g){if(Le(l)==="object"){var b=l;l=b.orientation,u=b.unit||u,g=b.format||g}u=u||"mm",g=g||"a4",l=(""+(l||"P")).toLowerCase();var L,F=(""+g).toLowerCase(),d={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":L=1;break;case"mm":L=72/25.4;break;case"cm":L=72/2.54;break;case"in":L=72;break;case"px":L=.75;break;case"pc":case"em":L=12;break;case"ex":L=6;break;default:throw"Invalid unit: "+u}var M,O=0,R=0;if(d.hasOwnProperty(F))O=d[F][1]/L,R=d[F][0]/L;else try{O=g[1],R=g[0]}catch{throw new Error("Invalid format: "+g)}if(l==="p"||l==="portrait")l="p",R>O&&(M=R,R=O,O=M);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",O>R&&(M=R,R=O,O=M)}return{width:R,height:O,unit:u,k:L,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(Bs):null;var g=new f(u);return u.worker?g:g.from(l).doCallback()}})(Mt.API),Mt.API.addJS=function(e){var t,n,i=(function(o){for(var s="",f=0;f<o.length;f++){var l=o[f];if(l==="("||l===")"){for(var u=0,g=f-1;g>=0&&o[g]==="\\";g--)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"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},(function(e){var t;e.events.push(["postPutResources",function(){var n=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=n.outline.render().split(/\r\n/),s=0;s<o.length;s++){var f=o[s],l=i.exec(f);if(l!=null){var u=l[1];n.internal.newObjectDeferredBegin(u,!1)}n.internal.write(f)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,b=[];for(s=0;s<g;s++){var L=n.internal.newObject();b.push(L);var F=n.internal.getPageInfo(s+1);n.internal.write("<< /D["+F.objId+" 0 R /XYZ null null null]>> endobj")}var d=n.internal.newObject();for(n.internal.write("<< /Names [ "),s=0;s<b.length;s++)n.internal.write("(page_"+(s+1)+")"+b[s]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+d+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(i,o,s){var f={title:o,options:s,children:[]};return i==null&&(i=this.root),i.children.push(f),f},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(i){i.id=n.internal.newObjectDeferred();for(var o=0;o<i.children.length;o++)this.genIds_r(i.children[o])},n.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},n.outline.renderItems=function(i){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<i.children.length;s++){var f=i.children[s];this.objStart(f),this.line("/Title "+this.makeString(f.title)),this.line("/Parent "+this.makeRef(i)),s>0&&this.line("/Prev "+this.makeRef(i.children[s-1])),s<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[s+1])),f.children.length>0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var l=this.count=this.count_r({count:0},f);if(l>0&&this.line("/Count "+l),f.options&&f.options.pageNumber){var u=n.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var g=0;g<i.children.length;g++)this.renderItems(i.children[g])},n.outline.line=function(i){this.ctx.val+=i+`\r
|
|
42
|
+
`},n.outline.makeRef=function(i){return i.id+" 0 R"},n.outline.makeString=function(i){return"("+n.internal.pdfEscape(i)+")"},n.outline.objStart=function(i){this.ctx.val+=`\r
|
|
43
|
+
`+i.id+` 0 obj\r
|
|
44
|
+
<<\r
|
|
45
|
+
`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
46
|
+
endobj\r
|
|
47
|
+
`},n.outline.count_r=function(i,o){for(var s=0;s<o.children.length;s++)i.count++,this.count_r(i,o.children[s]);return i.count}}])})(Mt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,i,o,s,f,l){var u,g=this.decode.DCT_DECODE,b=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=f||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,u=(function(L){for(var F,d=256*L.charCodeAt(4)+L.charCodeAt(5),M=L.length,O={width:0,height:0,numcomponents:1},R=4;R<M;R+=2){if(R+=d,t.indexOf(L.charCodeAt(R+1))!==-1){F=256*L.charCodeAt(R+5)+L.charCodeAt(R+6),O={width:256*L.charCodeAt(R+7)+L.charCodeAt(R+8),height:F,numcomponents:L.charCodeAt(R+9)};break}d=256*L.charCodeAt(R+2)+L.charCodeAt(R+3)}return O})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),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}b={data:n,width:u.width,height:u.height,colorSpace:l,bitsPerComponent:8,filter:g,index:i,alias:o}}return b}})(Mt.API),Mt.API.processPNG=function(e,t,n,i){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var o,s=gl(e,{checkCrc:!0}),f=s.width,l=s.height,u=s.channels,g=s.palette,b=s.depth;o=g&&u===1?(function(tt){for(var U=tt.width,pt=tt.height,S=tt.data,E=tt.palette,q=tt.depth,D=!1,nt=[],at=[],ht=void 0,Q=!1,ut=0,At=0;At<E.length;At++){var vt=Ls(E[At],4),x=vt[0],B=vt[1],j=vt[2],z=vt[3];nt.push(x,B,j),z!=null&&(z===0?(ut++,at.length<1&&at.push(At)):z<255&&(Q=!0))}if(Q||ut>1){D=!0,at=void 0;var V=U*pt;ht=new Uint8Array(V);for(var K=new DataView(S.buffer),rt=0;rt<V;rt++){var it=Ms(K,rt,q),ft=Ls(E[it],4)[3];ht[rt]=ft}}else ut===0&&(at=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:D?8:void 0,colorBytes:S,alphaBytes:ht,needSMask:D,palette:nt,mask:at}})(s):u===2||u===4?(function(tt){for(var U=tt.data,pt=tt.width,S=tt.height,E=tt.channels,q=tt.depth,D=E===2?"DeviceGray":"DeviceRGB",nt=E-1,at=pt*S,ht=nt,Q=at*ht,ut=1*at,At=Math.ceil(Q*q/8),vt=Math.ceil(ut*q/8),x=new Uint8Array(At),B=new Uint8Array(vt),j=new DataView(U.buffer),z=new DataView(x.buffer),V=new DataView(B.buffer),K=!1,rt=0;rt<at;rt++){for(var it=rt*E,ft=0;ft<ht;ft++)Bl(z,Ms(j,it+ft,q),rt*ht+ft,q);var wt=Ms(j,it+ht,q);wt<(1<<q)-1&&(K=!0),Bl(V,wt,1*rt,q)}return{colorSpace:D,colorsPerPixel:nt,sMaskBitsPerComponent:K?q:void 0,colorBytes:x,alphaBytes:B,needSMask:K}})(s):(function(tt){var U=tt.data,pt=tt.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:pt,colorsPerPixel:pt==="DeviceGray"?1:3,colorBytes:U instanceof Uint16Array?(function(S){for(var E=S.length,q=new Uint8Array(2*E),D=new DataView(q.buffer,q.byteOffset,q.byteLength),nt=0;nt<E;nt++)D.setUint16(2*nt,S[nt],!1);return q})(U):U,needSMask:!1}})(s);var L,F,d,M=o,O=M.colorSpace,R=M.colorsPerPixel,k=M.sMaskBitsPerComponent,Y=M.colorBytes,X=M.alphaBytes,et=M.needSMask,dt=M.palette,xt=M.mask,Pt=null;return i!==Mt.API.image_compression.NONE&&typeof co=="function"?(Pt=(function(tt){var U;switch(tt){case Mt.API.image_compression.FAST:U=11;break;case Mt.API.image_compression.MEDIUM:U=13;break;case Mt.API.image_compression.SLOW:U=14;break;default:U=12}return U})(i),L=this.decode.FLATE_DECODE,F="/Predictor ".concat(Pt," /Colors ").concat(R," /BitsPerComponent ").concat(b," /Columns ").concat(f),e=Cl(Y,Math.ceil(f*R*b/8),R,b,i),et&&(d=Cl(X,Math.ceil(f*k/8),1,k,i))):(L=void 0,F=void 0,e=Y,et&&(d=X)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:n,data:e,index:t,filter:L,decodeParameters:F,transparency:xt,palette:dt,sMask:d,predictor:Pt,width:f,height:l,bitsPerComponent:b,sMaskBitsPerComponent:k,colorSpace:O}}},(function(e){e.processGIF89A=function(t,n,i,o){var s=new Mc(t),f=s.width,l=s.height,u=[];s.decodeAndBlitFrameRGBA(0,u);var g={data:u,width:f,height:l},b=new Ts(100).encode(g,100);return e.processJPEG.call(this,b,n,i,o)},e.processGIF87A=e.processGIF89A})(Mt.API),Zn.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 n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:i,blue:n,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Zn.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(n){_e.log("bit decode error:"+n)}},Zn.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var s=this.datav.getUint8(this.pos++,!0),f=i*this.width*4+8*o*4,l=0;l<8&&8*o+l<this.width;l++){var u=this.palette[s>>7-l&1];this.data[f+4*l]=u.blue,this.data[f+4*l+1]=u.green,this.data[f+4*l+2]=u.red,this.data[f+4*l+3]=255}n!==0&&(this.pos+=4-n)}},Zn.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<e;o++){var s=this.datav.getUint8(this.pos++,!0),f=i*this.width*4+2*o*4,l=s>>4,u=15&s,g=this.palette[l];if(this.data[f]=g.blue,this.data[f+1]=g.green,this.data[f+2]=g.red,this.data[f+3]=255,2*o+1>=this.width)break;g=this.palette[u],this.data[f+4]=g.blue,this.data[f+4+1]=g.green,this.data[f+4+2]=g.red,this.data[f+4+3]=255}t!==0&&(this.pos+=4-t)}},Zn.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var o=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*i;if(o<this.palette.length){var f=this.palette[o];this.data[s]=f.red,this.data[s+1]=f.green,this.data[s+2]=f.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)}},Zn.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var f=(s&t)/t*255|0,l=(s>>5&t)/t*255|0,u=(s>>10&t)/t*255|0,g=s>>15?255:0,b=i*this.width*4+4*o;this.data[b]=u,this.data[b+1]=l,this.data[b+2]=f,this.data[b+3]=g}this.pos+=e}},Zn.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var o=this.bottom_up?i:this.height-1-i,s=0;s<this.width;s++){var f=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(f&t)/t*255|0,u=(f>>5&n)/n*255|0,g=(f>>11)/t*255|0,b=o*this.width*4+4*s;this.data[b]=g,this.data[b+1]=u,this.data[b+2]=l,this.data[b+3]=255}this.pos+=e}},Zn.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),f=t*this.width*4+4*n;this.data[f]=s,this.data[f+1]=o,this.data[f+2]=i,this.data[f+3]=255}this.pos+=this.width%4}},Zn.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),f=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*n;this.data[l]=s,this.data[l+1]=o,this.data[l+2]=i,this.data[l+3]=f}},Zn.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,i,o){var s=new Zn(t,!1),f=s.width,l=s.height,u={data:s.getData(),width:f,height:l},g=new Ts(100).encode(u,100);return e.processJPEG.call(this,g,n,i,o)}})(Mt.API),Ml.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,i,o){var s=new Ml(t),f=s.width,l=s.height,u={data:s.getData(),width:f,height:l},g=new Ts(100).encode(u,100);return e.processJPEG.call(this,g,n,i,o)}})(Mt.API),Mt.API.processRGBA=function(e,t,n){for(var i=e.data,o=i.length,s=new Uint8Array(o/4*3),f=new Uint8Array(o/4),l=0,u=0,g=0;g<o;g+=4){var b=i[g],L=i[g+1],F=i[g+2],d=i[g+3];s[l++]=b,s[l++]=L,s[l++]=F,f[u++]=d}var M=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(f),data:M,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Mt.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 (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[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},zi=Mt.API,Lo=zi.getCharWidthsArray=function(e,t){var n,i,o=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),f=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:o.metadata.Unicode.widths,u=l.fof?l.fof:1,g=t.kerning?t.kerning:o.metadata.Unicode.kerning,b=g.fof?g.fof:1,L=t.doKerning!==!1,F=0,d=e.length,M=0,O=l[0]||u,R=[];for(n=0;n<d;n++)i=e.charCodeAt(n),typeof o.metadata.widthOfString=="function"?R.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+f*(1e3/s)||0)/1e3):(F=L&&Le(g[i])==="object"&&!isNaN(parseInt(g[i][M],10))?g[i][M]/b:0,R.push((l[i]||O)/u+F)),M=i;return R},_l=zi.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),i=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return zi.processArabic&&(e=zi.processArabic(e)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(e,n,o)/n:Lo.apply(this,arguments).reduce(function(s,f){return s+f},0)},Pl=function(e,t,n,i){for(var o=[],s=0,f=e.length,l=0;s!==f&&l+t[s]<n;)l+=t[s],s++;o.push(e.slice(0,s));var u=s;for(l=0;s!==f;)l+t[s]>i&&(o.push(e.slice(u,s)),l=0,u=s),l+=t[s],s++;return u!==s&&o.push(e.slice(u,s)),o},kl=function(e,t,n){n||(n={});var i,o,s,f,l,u,g,b=[],L=[b],F=n.textIndent||0,d=0,M=0,O=e.split(" "),R=Lo.apply(this,[" ",n])[0];if(u=n.lineIndent===-1?O[0].length+2:n.lineIndent||0){var k=Array(u).join(" "),Y=[];O.map(function(et){(et=et.split(/\s*\n/)).length>1?Y=Y.concat(et.map(function(dt,xt){return(xt&&dt.length?`
|
|
48
|
+
`:"")+dt})):Y.push(et[0])}),O=Y,u=_l.apply(this,[k,n])}for(s=0,f=O.length;s<f;s++){var X=0;if(i=O[s],u&&i[0]==`
|
|
49
|
+
`&&(i=i.substr(1),X=1),F+d+(M=(o=Lo.apply(this,[i,n])).reduce(function(et,dt){return et+dt},0))>t||X){if(M>t){for(l=Pl.apply(this,[i,o,t-(F+d),t]),b.push(l.shift()),b=[l.pop()];l.length;)L.push([l.shift()]);M=o.slice(i.length-(b[0]?b[0].length:0)).reduce(function(et,dt){return et+dt},0)}else b=[i];L.push(b),F=M+u,d=R}else b.push(i),F+=d+M,d=R}return g=u?function(et,dt){return(dt?k:"")+et.join(" ")}:function(et){return et.join(" ")},L.map(g)},zi.splitTextToSize=function(e,t,n){var i,o=(n=n||{}).fontSize||this.internal.getFontSize(),s=function(b){if(b.widths&&b.kerning)return{widths:b.widths,kerning:b.kerning};var L=this.internal.getFont(b.fontName,b.fontStyle),F="Unicode";return L.metadata[F]?{widths:L.metadata[F].widths||{0:1},kerning:L.metadata[F].kerning||{}}:{font:L.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(e)?e:String(e).split(/\r?\n/);var f=1*this.internal.scaleFactor*t/o;s.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,s.lineIndent=n.lineIndent;var l,u,g=[];for(l=0,u=i.length;l<u;l++)g=g.concat(kl.apply(this,[i[l],f,s]));return g},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",i={},o={},s=0;s<16;s++)i[n[s]]=t[s],o[t[s]]=n[s];var f=function(F){return"0x"+parseInt(F,10).toString(16)},l=e.__fontmetrics__.compress=function(F){var d,M,O,R,k=["{"];for(var Y in F){if(d=F[Y],isNaN(parseInt(Y,10))?M="'"+Y+"'":(Y=parseInt(Y,10),M=(M=f(Y).slice(2)).slice(0,-1)+o[M.slice(-1)]),typeof d=="number")d<0?(O=f(d).slice(3),R="-"):(O=f(d).slice(2),R=""),O=R+O.slice(0,-1)+o[O.slice(-1)];else{if(Le(d)!=="object")throw new Error("Don't know what to do with value type "+Le(d)+".");O=l(d)}k.push(M+O)}return k.push("}"),k.join("")},u=e.__fontmetrics__.uncompress=function(F){if(typeof F!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,M,O,R,k={},Y=1,X=k,et=[],dt="",xt="",Pt=F.length-1,tt=1;tt<Pt;tt+=1)(R=F[tt])=="'"?d?(O=d.join(""),d=void 0):d=[]:d?d.push(R):R=="{"?(et.push([X,O]),X={},O=void 0):R=="}"?((M=et.pop())[0][M[1]]=X,O=void 0,X=M[0]):R=="-"?Y=-1:O===void 0?i.hasOwnProperty(R)?(dt+=i[R],O=parseInt(dt,16)*Y,Y=1,dt=""):dt+=R:i.hasOwnProperty(R)?(xt+=i[R],X[O]=parseInt(xt,16)*Y,Y=1,O=void 0,xt=""):xt+=R;return k},g={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},b={Unicode:{Courier:g,"Courier-Bold":g,"Courier-BoldOblique":g,"Courier-Oblique":g,Helvetica:g,"Helvetica-Bold":g,"Helvetica-BoldOblique":g,"Helvetica-Oblique":g,"Times-Roman":g,"Times-Bold":g,"Times-BoldItalic":g,"Times-Italic":g}},L={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(F){var d=F.font,M=L.Unicode[d.postScriptName];M&&(d.metadata.Unicode={},d.metadata.Unicode.widths=M.widths,d.metadata.Unicode.kerning=M.kerning);var O=b.Unicode[d.postScriptName];O&&(d.metadata.Unicode.encoding=O,d.encoding=O.codePages[0])}])})(Mt.API),(function(e){var t=function(n){for(var i=n.length,o=new Uint8Array(i),s=0;s<i;s++)o[s]=n.charCodeAt(s);return o};e.API.events.push(["addFont",function(n){var i=void 0,o=n.font,s=n.instance;if(!o.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if(typeof(i=s.existsFileInVFS(o.postScriptName)===!1?s.loadFile(o.postScriptName):s.getFileFromVFS(o.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");(function(f,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(No(l)),f.metadata=e.API.TTFFont.open(l),f.metadata.Unicode=f.metadata.Unicode||{encoding:{},kerning:{},widths:[]},f.metadata.glyIdsUsed=[0]})(o,i)}}])})(Mt),Mt.API.addSvgAsImage=function(e,t,n,i,o,s,f,l){if(isNaN(t)||isNaN(n))throw _e.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw _e.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=i,u.height=o;var g=u.getContext("2d");g.fillStyle="#fff",g.fillRect(0,0,u.width,u.height);var b={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},L=this;return(Xt.canvg?Promise.resolve(Xt.canvg):import("./index.es-LIBYYWEU.js")).catch(function(F){return Promise.reject(new Error("Could not load canvg: "+F))}).then(function(F){return F.default?F.default:F}).then(function(F){return F.fromString(g,e,b)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(F){return F.render(b)}).then(function(){L.addImage(u.toDataURL("image/jpeg",1),t,n,i,o,f,l)})},Mt.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var o=0;o<this.internal.pages[i].length;o++)this.internal.pages[i][o]=this.internal.pages[i][o].replace(t,n);return this},Mt.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var i,o,s,f={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(f),u=[],g=0,b=0,L=0;function F(M,O){var R,k=!1;for(R=0;R<M.length;R+=1)M[R]===O&&(k=!0);return k}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(f)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var d=l.length;for(L=0;L<d;L+=1)n[l[L]].value=n[l[L]].defaultValue,n[l[L]].explicitSet=!1}if(Le(e)==="object"){for(o in e)if(s=e[o],F(l,o)&&s!==void 0){if(n[o].type==="boolean"&&typeof s=="boolean")n[o].value=s;else if(n[o].type==="name"&&F(n[o].valueSet,s))n[o].value=s;else if(n[o].type==="integer"&&Number.isInteger(s))n[o].value=s;else if(n[o].type==="array"){for(g=0;g<s.length;g+=1)if(i=!0,s[g].length===1&&typeof s[g][0]=="number")u.push(String(s[g]-1));else if(s[g].length>1){for(b=0;b<s[g].length;b+=1)typeof s[g][b]!="number"&&(i=!1);i===!0&&u.push([s[g][0]-1,s[g][1]-1].join(" "))}n[o].value="["+u.join(" ")+"]"}else n[o].value=n[o].defaultValue;n[o].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var M,O=[];for(M in n)n[M].explicitSet===!0&&(n[M].type==="name"?O.push("/"+M+" /"+n[M].value):O.push("/"+M+" "+n[M].value));O.length!==0&&this.internal.write(`/ViewerPreferences
|
|
50
|
+
<<
|
|
51
|
+
`+O.join(`
|
|
52
|
+
`)+`
|
|
53
|
+
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Mt.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",Rc),this.internal.events.subscribe("postPutResources",Tc)),this},(function(e){var t=e.API,n=t.pdfEscape16=function(s,f){for(var l,u=f.metadata.Unicode.widths,g=["","0","00","000","0000"],b=[""],L=0,F=s.length;L<F;++L){if(l=f.metadata.characterToGlyph(s.charCodeAt(L)),f.metadata.glyIdsUsed.push(l),f.metadata.toUnicode[l]=s.charCodeAt(L),u.indexOf(l)==-1&&(u.push(l),u.push([parseInt(f.metadata.widthOfGlyph(l),10)])),l=="0")return b.join("");l=l.toString(16),b.push(g[4-l.length],l)}return b.join("")},i=function(s){var f,l,u,g,b,L,F;for(b=`/CIDInit /ProcSet findresource begin
|
|
54
|
+
12 dict begin
|
|
55
|
+
begincmap
|
|
56
|
+
/CIDSystemInfo <<
|
|
57
|
+
/Registry (Adobe)
|
|
58
|
+
/Ordering (UCS)
|
|
59
|
+
/Supplement 0
|
|
60
|
+
>> def
|
|
61
|
+
/CMapName /Adobe-Identity-UCS def
|
|
62
|
+
/CMapType 2 def
|
|
63
|
+
1 begincodespacerange
|
|
64
|
+
<0000><ffff>
|
|
65
|
+
endcodespacerange`,u=[],L=0,F=(l=Object.keys(s).sort(function(d,M){return d-M})).length;L<F;L++)f=l[L],u.length>=100&&(b+=`
|
|
66
|
+
`+u.length+` beginbfchar
|
|
67
|
+
`+u.join(`
|
|
68
|
+
`)+`
|
|
69
|
+
endbfchar`,u=[]),s[f]!==void 0&&s[f]!==null&&typeof s[f].toString=="function"&&(g=("0000"+s[f].toString(16)).slice(-4),f=("0000"+(+f).toString(16)).slice(-4),u.push("<"+f+"><"+g+">"));return u.length&&(b+=`
|
|
70
|
+
`+u.length+` beginbfchar
|
|
71
|
+
`+u.join(`
|
|
72
|
+
`)+`
|
|
73
|
+
endbfchar
|
|
74
|
+
`),b+`endcmap
|
|
75
|
+
CMapName currentdict /CMap defineresource pop
|
|
76
|
+
end
|
|
77
|
+
end`};t.events.push(["putFont",function(s){(function(f){var l=f.font,u=f.out,g=f.newObject,b=f.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="Identity-H"){for(var L=l.metadata.Unicode.widths,F=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),d="",M=0;M<F.length;M++)d+=String.fromCharCode(F[M]);var O=g();b({data:d,addLength1:!0,objectId:O}),u("endobj");var R=g();b({data:i(l.metadata.toUnicode),addLength1:!0,objectId:R}),u("endobj");var k=g();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Wi(l.fontName)),u("/FontFile2 "+O+" 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("/Ascent "+l.metadata.ascender),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u(">>"),u("endobj");var Y=g();u("<<"),u("/Type /Font"),u("/BaseFont /"+Wi(l.fontName)),u("/FontDescriptor "+k+" 0 R"),u("/W "+e.API.PDFObject.convert(L)),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=g(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+R+" 0 R"),u("/BaseFont /"+Wi(l.fontName)),u("/Encoding /"+l.encoding),u("/DescendantFonts ["+Y+" 0 R]"),u(">>"),u("endobj"),l.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(f){var l=f.font,u=f.out,g=f.newObject,b=f.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var L=l.metadata.rawData,F="",d=0;d<L.length;d++)F+=String.fromCharCode(L[d]);var M=g();b({data:F,addLength1:!0,objectId:M}),u("endobj");var O=g();b({data:i(l.metadata.toUnicode),addLength1:!0,objectId:O}),u("endobj");var R=g();u("<<"),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u("/StemV "+l.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+M+" 0 R"),u("/Flags 96"),u("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),u("/FontName /"+Wi(l.fontName)),u("/ItalicAngle "+l.metadata.italicAngle),u("/Ascent "+l.metadata.ascender),u(">>"),u("endobj"),l.objectNumber=g();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 "+O+" 0 R/BaseFont/"+Wi(l.fontName)+"/FontDescriptor "+R+" 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 o=function(s){var f,l=s.text||"",u=s.x,g=s.y,b=s.options||{},L=s.mutex||{},F=L.pdfEscape,d=L.activeFontKey,M=L.fonts,O=d,R="",k=0,Y="",X=M[O].encoding;if(M[O].encoding!=="Identity-H")return{text:l,x:u,y:g,options:b,mutex:L};for(Y=l,O=d,Array.isArray(l)&&(Y=l[0]),k=0;k<Y.length;k+=1)M[O].metadata.hasOwnProperty("cmap")&&(f=M[O].metadata.cmap.unicode.codeMap[Y[k].charCodeAt(0)]),f||Y[k].charCodeAt(0)<256&&M[O].metadata.hasOwnProperty("Unicode")?R+=Y[k]:R+="";var et="";return parseInt(O.slice(1))<14||X==="WinAnsiEncoding"?et=F(R,O).split("").map(function(dt){return dt.charCodeAt(0).toString(16)}).join(""):X==="Identity-H"&&(et=n(R,M[O])),L.isHex=!0,{text:et,x:u,y:g,options:b,mutex:L}};t.events.push(["postProcessText",function(s){var f=s.text||"",l=[],u={text:f,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(f)){var g=0;for(g=0;g<f.length;g+=1)Array.isArray(f[g])&&f[g].length===3?l.push([o(Object.assign({},u,{text:f[g][0]})).text,f[g][1],f[g][2]]):l.push(o(Object.assign({},u,{text:f[g]})).text);s.text=l}else s.text=o(Object.assign({},u,{text:f})).text}])})(Mt),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,i){return t.call(this),this.internal.vFS[n]=i,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}})(Mt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(i){var o,s,f,l,u,g,b,L=t,F=[[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]],d=[[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]],M={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},O={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},R=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],k=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Y=!1,X=0;this.__bidiEngine__={};var et=function(S){var E=S.charCodeAt(),q=E>>8,D=O[q];return D!==void 0?L[256*D+(255&E)]:q===252||q===253?"AL":k.test(q)?"L":q===8?"R":"N"},dt=function(S){for(var E,q=0;q<S.length;q++){if((E=et(S.charAt(q)))==="L")return!1;if(E==="R")return!0}return!1},xt=function(S,E,q,D){var nt,at,ht,Q,ut=E[D];switch(ut){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Y=!1;break;case"N":case"AN":break;case"EN":Y&&(ut="AN");break;case"AL":Y=!0,ut="R";break;case"WS":case"BN":ut="N";break;case"CS":D<1||D+1>=E.length||(nt=q[D-1])!=="EN"&&nt!=="AN"||(at=E[D+1])!=="EN"&&at!=="AN"?ut="N":Y&&(at="AN"),ut=at===nt?at:"N";break;case"ES":ut=(nt=D>0?q[D-1]:"B")==="EN"&&D+1<E.length&&E[D+1]==="EN"?"EN":"N";break;case"ET":if(D>0&&q[D-1]==="EN"){ut="EN";break}if(Y){ut="N";break}for(ht=D+1,Q=E.length;ht<Q&&E[ht]==="ET";)ht++;ut=ht<Q&&E[ht]==="EN"?"EN":"N";break;case"NSM":if(f&&!l){for(Q=E.length,ht=D+1;ht<Q&&E[ht]==="NSM";)ht++;if(ht<Q){var At=S[D],vt=At>=1425&&At<=2303||At===64286;if(nt=E[ht],vt&&(nt==="R"||nt==="AL")){ut="R";break}}}ut=D<1||(nt=E[D-1])==="B"?"N":q[D-1];break;case"B":Y=!1,o=!0,ut=X;break;case"S":s=!0,ut="N"}return ut},Pt=function(S,E,q){var D=S.split("");return q&&tt(D,q,{hiLevel:X}),D.reverse(),E&&E.reverse(),D.join("")},tt=function(S,E,q){var D,nt,at,ht,Q,ut=-1,At=S.length,vt=0,x=[],B=X?d:F,j=[];for(Y=!1,o=!1,s=!1,nt=0;nt<At;nt++)j[nt]=et(S[nt]);for(at=0;at<At;at++){if(Q=vt,x[at]=xt(S,j,x,at),D=240&(vt=B[Q][M[x[at]]]),vt&=15,E[at]=ht=B[vt][5],D>0)if(D===16){for(nt=ut;nt<at;nt++)E[nt]=1;ut=-1}else ut=-1;if(B[vt][6])ut===-1&&(ut=at);else if(ut>-1){for(nt=ut;nt<at;nt++)E[nt]=ht;ut=-1}j[at]==="B"&&(E[at]=0),q.hiLevel|=ht}s&&(function(z,V,K){for(var rt=0;rt<K;rt++)if(z[rt]==="S"){V[rt]=X;for(var it=rt-1;it>=0&&z[it]==="WS";it--)V[it]=X}})(j,E,At)},U=function(S,E,q,D,nt){if(!(nt.hiLevel<S)){if(S===1&&X===1&&!o)return E.reverse(),void(q&&q.reverse());for(var at,ht,Q,ut,At=E.length,vt=0;vt<At;){if(D[vt]>=S){for(Q=vt+1;Q<At&&D[Q]>=S;)Q++;for(ut=vt,ht=Q-1;ut<ht;ut++,ht--)at=E[ut],E[ut]=E[ht],E[ht]=at,q&&(at=q[ut],q[ut]=q[ht],q[ht]=at);vt=Q}vt++}}},pt=function(S,E,q){var D=S.split(""),nt={hiLevel:X};return q||(q=[]),tt(D,q,nt),(function(at,ht,Q){if(Q.hiLevel!==0&&b)for(var ut,At=0;At<at.length;At++)ht[At]===1&&(ut=R.indexOf(at[At]))>=0&&(at[At]=R[ut+1])})(D,q,nt),U(2,D,E,q,nt),U(1,D,E,q,nt),D.join("")};return this.__bidiEngine__.doBidiReorder=function(S,E,q){if((function(nt,at){if(at)for(var ht=0;ht<nt.length;ht++)at[ht]=ht;l===void 0&&(l=dt(nt)),g===void 0&&(g=dt(nt))})(S,E),f||!u||g)if(f&&u&&l^g)X=l?1:0,S=Pt(S,E,q);else if(!f&&u&&g)X=l?1:0,S=pt(S,E,q),S=Pt(S,E);else if(!f||l||u||g){if(f&&!u&&l^g)S=Pt(S,E),l?(X=0,S=pt(S,E,q)):(X=1,S=pt(S,E,q),S=Pt(S,E));else if(f&&l&&!u&&g)X=1,S=pt(S,E,q),S=Pt(S,E);else if(!f&&!u&&l^g){var D=b;l?(X=1,S=pt(S,E,q),X=0,b=!1,S=pt(S,E,q),b=D):(X=0,S=pt(S,E,q),S=Pt(S,E),X=1,b=!1,S=pt(S,E,q),b=D,S=Pt(S,E))}}else X=0,S=pt(S,E,q);else X=l?1:0,S=pt(S,E,q);return S},this.__bidiEngine__.setOptions=function(S){S&&(f=S.isInputVisual,u=S.isOutputVisual,l=S.isInputRtl,g=S.isOutputRtl,b=S.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),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"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(i){var o=i.text;i.x,i.y;var s=i.options||{};i.mutex,s.lang;var f=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,n.setOptions(s),Object.prototype.toString.call(o)==="[object Array]"){var l=0;for(f=[],l=0;l<o.length;l+=1)Object.prototype.toString.call(o[l])==="[object Array]"?f.push([n.doBidiReorder(o[l][0]),o[l][1],o[l][2]]):f.push([n.doBidiReorder(o[l])]);i.text=f}else i.text=n.doBidiReorder(o);n.setOptions({isInputVisual:!0})}])})(Mt),Mt.API.TTFFont=(function(){function e(t){var n;if(this.rawData=t,n=this.contents=new Yr(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new Qc(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Dc(this.contents),this.head=new Uc(this),this.name=new Gc(this),this.cmap=new Xl(this),this.toUnicode={},this.hhea=new zc(this),this.maxp=new Yc(this),this.hmtx=new Jc(this),this.post=new Wc(this),this.os2=new Hc(this),this.loca=new Zc(this),this.glyf=new Xc(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,n,i,o,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var f,l,u,g;for(g=[],f=0,l=(u=this.bbox).length;f<l;f++)t=u[f],g.push(Math.round(t*this.scaleFactor));return g}.call(this),this.stemV=0,this.post.exists?(i=255&(o=this.post.italic_angle),32768&(n=o>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+i)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(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 n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,i){var o,s,f,l;for(f=0,s=0,l=(t=""+t).length;0<=l?s<l:s>l;s=0<=l?++s:--s)o=t.charCodeAt(s),f+=this.widthOfGlyph(this.characterToGlyph(o))+i*(1e3/n)||0;return f*(n/1e3)},e.prototype.lineHeight=function(t,n){var i;return n==null&&(n=!1),i=n?this.lineGap:0,(this.ascender+i-this.decender)/1e3*t},e})();var tr,Yr=(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 n,i;for(i=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)i[n]=String.fromCharCode(this.readByte());return i.join("")},e.prototype.writeString=function(t){var n,i,o;for(o=[],n=0,i=t.length;0<=i?n<i:n>i;n=0<=i?++n:--n)o.push(this.writeByte(t.charCodeAt(n)));return o},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,i,o,s,f,l,u;return t=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),f=this.readByte(),l=this.readByte(),u=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^i)+4294967296*(255^o)+16777216*(255^s)+65536*(255^f)+256*(255^l)+(255^u)+1):72057594037927940*t+281474976710656*n+1099511627776*i+4294967296*o+16777216*s+65536*f+256*l+u},e.prototype.writeLongLong=function(t){var n,i;return n=Math.floor(t/4294967296),i=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,i;for(n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push(this.readByte());return n},e.prototype.write=function(t){var n,i,o,s;for(s=[],i=0,o=t.length;i<o;i++)n=t[i],s.push(this.writeByte(n));return s},e})(),Dc=(function(){var e;function t(n){var i,o,s;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},o=0,s=this.tableCount;0<=s?o<s:o>s;o=0<=s?++o:--o)i={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[i.tag]=i}return t.prototype.encode=function(n){var i,o,s,f,l,u,g,b,L,F,d,M,O;for(O in d=Object.keys(n).length,u=Math.log(2),L=16*Math.floor(Math.log(d)/u),f=Math.floor(L/u),b=16*d-L,(o=new Yr).writeInt(this.scalarType),o.writeShort(d),o.writeShort(L),o.writeShort(f),o.writeShort(b),s=16*d,g=o.pos+s,l=null,M=[],n)for(F=n[O],o.writeString(O),o.writeInt(e(F)),o.writeInt(g),o.writeInt(F.length),M=M.concat(F),O==="head"&&(l=g),g+=F.length;g%4;)M.push(0),g++;return o.write(M),i=2981146554-e(o.data),o.pos=l+8,o.writeUInt32(i),o.data},e=function(n){var i,o,s,f;for(n=Kl.call(n);n.length%4;)n.push(0);for(s=new Yr(n),o=0,i=0,f=n.length;i<f;i=i+=4)o+=s.readUInt32();return 4294967295&o},t})(),qc={}.hasOwnProperty,pr=function(e,t){for(var n in t)qc.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};tr=(function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return 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 Uc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),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 n;return(n=new Yr).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e})(),Tl=(function(){function e(t,n){var i,o,s,f,l,u,g,b,L,F,d,M,O,R,k,Y,X;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),L=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(d=t.readUInt16(),F=d/2,t.pos+=6,s=(function(){var et,dt;for(dt=[],u=et=0;0<=F?et<F:et>F;u=0<=F?++et:--et)dt.push(t.readUInt16());return dt})(),t.pos+=2,O=(function(){var et,dt;for(dt=[],u=et=0;0<=F?et<F:et>F;u=0<=F?++et:--et)dt.push(t.readUInt16());return dt})(),g=(function(){var et,dt;for(dt=[],u=et=0;0<=F?et<F:et>F;u=0<=F?++et:--et)dt.push(t.readUInt16());return dt})(),b=(function(){var et,dt;for(dt=[],u=et=0;0<=F?et<F:et>F;u=0<=F?++et:--et)dt.push(t.readUInt16());return dt})(),o=(this.length-t.pos+this.offset)/2,l=(function(){var et,dt;for(dt=[],u=et=0;0<=o?et<o:et>o;u=0<=o?++et:--et)dt.push(t.readUInt16());return dt})(),u=k=0,X=s.length;k<X;u=++k)for(R=s[u],i=Y=M=O[u];M<=R?Y<=R:Y>=R;i=M<=R?++Y:--Y)b[u]===0?f=i+g[u]:(f=l[b[u]/2+(i-M)-(F-u)]||0)!==0&&(f+=g[u]),this.codeMap[i]=65535&f}t.pos=L}return e.encode=function(t,n){var i,o,s,f,l,u,g,b,L,F,d,M,O,R,k,Y,X,et,dt,xt,Pt,tt,U,pt,S,E,q,D,nt,at,ht,Q,ut,At,vt,x,B,j,z,V,K,rt,it,ft,wt,_t;switch(D=new Yr,f=Object.keys(t).sort(function(St,Dt){return St-Dt}),n){case"macroman":for(O=0,R=(function(){var St=[];for(M=0;M<256;++M)St.push(0);return St})(),Y={0:0},s={},nt=0,ut=f.length;nt<ut;nt++)Y[it=t[o=f[nt]]]==null&&(Y[it]=++O),s[o]={old:t[o],new:Y[t[o]]},R[o]=Y[t[o]];return D.writeUInt16(1),D.writeUInt16(0),D.writeUInt32(12),D.writeUInt16(0),D.writeUInt16(262),D.writeUInt16(0),D.write(R),{charMap:s,subtable:D.data,maxGlyphID:O+1};case"unicode":for(E=[],L=[],X=0,Y={},i={},k=g=null,at=0,At=f.length;at<At;at++)Y[dt=t[o=f[at]]]==null&&(Y[dt]=++X),i[o]={old:dt,new:Y[dt]},l=Y[dt]-o,k!=null&&l===g||(k&&L.push(k),E.push(o),g=l),k=o;for(k&&L.push(k),L.push(65535),E.push(65535),pt=2*(U=E.length),tt=2*Math.pow(Math.log(U)/Math.LN2,2),F=Math.log(tt/2)/Math.LN2,Pt=2*U-tt,u=[],xt=[],d=[],M=ht=0,vt=E.length;ht<vt;M=++ht){if(S=E[M],b=L[M],S===65535){u.push(0),xt.push(0);break}if(S-(q=i[S].new)>=32768)for(u.push(0),xt.push(2*(d.length+U-M)),o=Q=S;S<=b?Q<=b:Q>=b;o=S<=b?++Q:--Q)d.push(i[o].new);else u.push(q-S),xt.push(0)}for(D.writeUInt16(3),D.writeUInt16(1),D.writeUInt32(12),D.writeUInt16(4),D.writeUInt16(16+8*U+2*d.length),D.writeUInt16(0),D.writeUInt16(pt),D.writeUInt16(tt),D.writeUInt16(F),D.writeUInt16(Pt),K=0,x=L.length;K<x;K++)o=L[K],D.writeUInt16(o);for(D.writeUInt16(0),rt=0,B=E.length;rt<B;rt++)o=E[rt],D.writeUInt16(o);for(ft=0,j=u.length;ft<j;ft++)l=u[ft],D.writeUInt16(l);for(wt=0,z=xt.length;wt<z;wt++)et=xt[wt],D.writeUInt16(et);for(_t=0,V=d.length;_t<V;_t++)O=d[_t],D.writeUInt16(O);return{charMap:i,subtable:D.data,maxGlyphID:X+1}}},e})(),Xl=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,i,o;for(t.pos=this.offset,this.version=t.readUInt16(),o=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=o?i<o:i>o;i=0<=o?++i:--i)n=new Tl(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var i,o;return n==null&&(n="macroman"),i=Tl.encode(t,n),(o=new Yr).writeUInt16(0),o.writeUInt16(1),i.table=o.data.concat(i.subtable),i},e})(),zc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),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})(),Hc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),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 n,i;for(i=[],n=0;n<10;++n)i.push(t.readByte());return i})(),this.charRange=(function(){var n,i;for(i=[],n=0;n<4;++n)i.push(t.readInt());return i})(),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 n,i;for(i=[],n=0;n<2;n=++n)i.push(t.readInt());return i})(),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})(),Wc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),e.prototype.tag="post",e.prototype.parse=function(t){var n,i,o;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(i=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],o=[];t.pos<this.offset+this.length;)n=t.readByte(),o.push(this.names.push(t.readString(n)));return o;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);case 262144:return this.map=function(){var f,l,u;for(u=[],s=f=0,l=this.file.maxp.numGlyphs;0<=l?f<l:f>l;s=0<=l?++f:--f)u.push(t.readUInt32());return u}.call(this)}},e})(),Vc=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Gc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),e.prototype.tag="name",e.prototype.parse=function(t){var n,i,o,s,f,l,u,g,b,L,F;for(t.pos=this.offset,t.readShort(),n=t.readShort(),l=t.readShort(),i=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)i.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=b=0,L=i.length;b<L;s=++b)o=i[s],t.pos=o.offset,g=t.readString(o.length),f=new Vc(g,o),u[F=o.nameID]==null&&(u[F]=[]),u[o.nameID].push(f);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})(),Yc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),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})(),Jc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,i,o,s,f,l,u;for(t.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var g,b;for(b=[],n=g=0;0<=o?g<o:g>o;n=0<=o?++g:--g)b.push(t.readInt16());return b})(),this.widths=function(){var g,b,L,F;for(F=[],g=0,b=(L=this.metrics).length;g<b;g++)s=L[g],F.push(s.advance);return F}.call(this),i=this.widths[this.widths.length-1],u=[],n=f=0;0<=o?f<o:f>o;n=0<=o?++f:--f)u.push(this.widths.push(i));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})(),Kl=[].slice,Xc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,i,o,s,f,l,u,g,b,L;return t in this.cache?this.cache[t]:(s=this.file.loca,n=this.file.contents,i=s.indexOf(t),(o=s.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+i,f=(l=new Yr(n.read(o))).readShort(),g=l.readShort(),L=l.readShort(),u=l.readShort(),b=l.readShort(),this.cache[t]=f===-1?new $c(l,g,L,u,b):new Kc(l,f,g,L,u,b),this.cache[t]))},e.prototype.encode=function(t,n,i){var o,s,f,l,u;for(f=[],s=[],l=0,u=n.length;l<u;l++)o=t[n[l]],s.push(f.length),o&&(f=f.concat(o.encode(i)));return s.push(f.length),{table:f,offsets:s}},e})(),Kc=(function(){function e(t,n,i,o,s,f){this.raw=t,this.numberOfContours=n,this.xMin=i,this.yMin=o,this.xMax=s,this.yMax=f,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),$c=(function(){function e(t,n,i,o,s){var f,l;for(this.raw=t,this.xMin=n,this.yMin=i,this.xMax=o,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],f=this.raw;l=f.readShort(),this.glyphOffsets.push(f.pos),this.glyphIDs.push(f.readUInt16()),32&l;)f.pos+=1&l?4:2,128&l?f.pos+=8:64&l?f.pos+=4:8&l&&(f.pos+=2)}return e.prototype.encode=function(){var t,n,i;for(n=new Yr(Kl.call(this.raw.data)),t=0,i=this.glyphIDs.length;t<i;++t)n.pos=this.glyphOffsets[t];return n.data},e})(),Zc=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return pr(e,tr),e.prototype.tag="loca",e.prototype.parse=function(t){var n,i;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=2)s.push(2*t.readUInt16());return s}.call(this):function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=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,n){for(var i=new Uint32Array(this.offsets.length),o=0,s=0,f=0;f<i.length;++f)if(i[f]=o,s<n.length&&n[s]==f){++s,i[f]=o;var l=this.offsets[f],u=this.offsets[f+1]-l;u>0&&(o+=u)}for(var g=new Array(4*i.length),b=0;b<i.length;++b)g[4*b+3]=255&i[b],g[4*b+2]=(65280&i[b])>>8,g[4*b+1]=(16711680&i[b])>>16,g[4*b]=(4278190080&i[b])>>24;return g},e})(),Qc=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,i,o,s;for(n in o=this.font.cmap.tables[0].codeMap,t={},s=this.subset)i=s[n],t[n]=o[i];return t},e.prototype.glyphsFor=function(t){var n,i,o,s,f,l,u;for(o={},f=0,l=t.length;f<l;f++)o[s=t[f]]=this.font.glyf.glyphFor(s);for(s in n=[],o)(i=o[s])!=null&&i.compound&&n.push.apply(n,i.glyphIDs);if(n.length>0)for(s in u=this.glyphsFor(n))i=u[s],o[s]=i;return o},e.prototype.encode=function(t,n){var i,o,s,f,l,u,g,b,L,F,d,M,O,R,k;for(o in i=Xl.encode(this.generateCmap(),"unicode"),f=this.glyphsFor(t),d={0:0},k=i.charMap)d[(u=k[o]).old]=u.new;for(M in F=i.maxGlyphID,f)M in d||(d[M]=F++);return b=(function(Y){var X,et;for(X in et={},Y)et[Y[X]]=X;return et})(d),L=Object.keys(b).sort(function(Y,X){return Y-X}),O=(function(){var Y,X,et;for(et=[],Y=0,X=L.length;Y<X;Y++)l=L[Y],et.push(b[l]);return et})(),s=this.font.glyf.encode(f,O,d),g=this.font.loca.encode(s.offsets,O),R={cmap:this.font.cmap.raw(),glyf:s.table,loca:g,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(R["OS/2"]=this.font.os2.raw()),this.font.directory.encode(R)},e})();Mt.API.PDFObject=(function(){var e;function t(){}return e=function(n,i){return(Array(i+1).join("0")+n).slice(-i)},t.convert=function(n){var i,o,s,f;if(Array.isArray(n))return"["+(function(){var l,u,g;for(g=[],l=0,u=n.length;l<u;l++)i=n[l],g.push(t.convert(i));return g})().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n?.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(o in s=["<<"],n)f=n[o],s.push("/"+o+" "+t.convert(f));return s.push(">>"),s.join(`
|
|
78
|
+
`)}return""+n},t})();var Hs=!1;var tf=(e,t,n,i=1)=>{let s,f;do s=e.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),f=parseInt(s[0].replace(s[1],""),10),e.font=e.font.replace(f,f-1),Hs=!1,f-1===8&&(Hs=!0);while(f-1>8&&e.measureText(n).width*i>t);return e.font};var ef=(function(){function e(n,i,o){for(let s=0;s<i;++s)if(n.data[o*i*4+s*4+3]!==0)return!1;return!0}function t(n,i,o,s,f){for(let l=s;l<f;++l)if(n.data[l*i*4+o*4+3]!==0)return!1;return!0}return function(n){let i=n.getContext("2d"),o=n.width,s=i.getImageData(0,0,n.width,n.height),f=s.height,l=0,u=s.width,g=0;for(;g<f&&e(s,o,g);)++g;for(;f-1>g&&e(s,o,f-1);)--f;for(;l<u&&t(s,o,l,g,f);)++l;for(;u-1>l&&t(s,o,u-1,g,f);)--u;let b=i.getImageData(l,g,u-l,f-g),L=n.ownerDocument.createElement("canvas"),F=L.getContext("2d");return L.width=b.width,L.height=b.height,F.putImageData(b,0,0),L}})(),nf=(e,t,n,i)=>{let o=document.createElement("canvas");o.width=t,o.height=n;let{fillStyle:s="black",font:f="12px Arial",textAlign:l="left",textBaseline:u="top"}=i,g=o.getContext("2d");g.fillStyle=s,g.font=f,g.font=tf(g,o.width,e),g.textAlign=l,g.textBaseline=u;let b=e,L=g.measureText(b);if(Hs){let k=e.split(" ").length;for(let Y=0;Y<k&&!(L.width*1<o.width);Y+=1)b=b.substring(0,b.lastIndexOf(" ")),L=g.measureText(b)}let F=e.replace(b,"").trim(),d=[b,F].filter(k=>!!k);u==="bottom"&&(d=d.reverse());let M=l==="right"?o.width:0,O=u==="bottom"?o.height:0;return d.forEach(k=>{let{fontBoundingBoxAscent:Y,fontBoundingBoxDescent:X}=g.measureText(k),et=Y+X;g.fillText(k,M,O);let dt=et;u==="bottom"&&(dt=-et),O=O+dt}),ef(o)},rf=(e,t,n={})=>{let{fillStyle:i,font:o,margin:s=10,placement:f="bottom-left"}=n,[l,u]=f.split("-"),g=typeof e=="function"?e():e,b=nf(g,t.width,t.height,{fillStyle:i,font:o,textAlign:u,textBaseline:l}),L=s,F=s;u==="right"&&(L=t.width-b.width-s),l==="bottom"&&(F=t.height-b.height-s),t.getContext("2d").drawImage(b,L,F)};var af=(e,t,n)=>{let i,o;if(t?(i=Ih(t),o=Ch(t)):n&&([i,,o]=n),i&&o){let s=e.getPixelFromCoordinate(i),f=e.getPixelFromCoordinate(o),l=[s[0]<=f[0]?s[0]:f[0],s[1]<=f[1]?s[1]:f[1]],u=[s[0]>f[0]?s[0]:f[0],s[1]>f[1]?s[1]:f[1]];return{h:u[1]-l[1],w:u[0]-l[0],x:l[0],y:l[1]}}return null},$l=(e,t,n)=>{let i=e.getTargetElement().getElementsByTagName("canvas"),o,s;for(let f=0;f<i.length;f+=1){let l=i[f];if(!l.width||!l.height)continue;let u=af(e,t,n)||{h:l.height,w:l.width,x:0,y:0};o||(o=document.createElement("canvas"),o.width=u.w,o.height=u.h,s=o.getContext("2d")),s.drawImage(l,u.x,u.y,u.w,u.h,0,0,o.width,o.height)}return Promise.resolve(o)},of=(e,t="image/png",n=i=>i.replace("/","."))=>{try{if(window.navigator.msSaveBlob){let i;try{i=e.msToBlob()}catch(s){console.error(s)}let o=new Blob([i],{type:t});window.navigator.msSaveBlob(o,n(t))}else e.toBlob(i=>{let o=document.createElement("a");o.download=n(t),o.href=URL.createObjectURL(i),document.body.appendChild(o),o.click()},t);return Promise.resolve(!0)}catch(i){return console.error(i),Promise.resolve(!1)}},sf=async(e,t,n,i,o={},s={})=>{let f=i||e.getSize(),l=n,u=document.createElement("div");u.style.width=`${f[0]}px`,u.style.height=`${f[1]}px`,u.style.margin="0 0 0 -50000px",document.body.style.overflow="hidden",u.style.position="absolute",u.style.top="400px",u.style.zIndex="10000",document.body.append(u);let g=new Bh({pixelRatio:window.devicePixelRatio,target:u,view:new Fh({center:e.getView().getCenter(),projection:e.getView().getProjection(),zoom:e.getView().getZoom(),...s}),...o});return l&&g.getView().fit(l),g.setLayers(t),await new Promise(L=>{let F=window.setTimeout(()=>{L(g)},1e4);g.once("rendercomplete",()=>{clearTimeout(F),L(g)})})},hf={A0:[3370,2384],A1:[2384,1684],A3:[1191,842],A4:[842,595]};async function lf(e,t={},n={}){let{maxExtent:i,onAfter:o,onBefore:s,pixelRatio:f=3,useCopyright:l=!0,usePlaceholder:u=!0}=n,g=t?.format||"A4",b=hf[g]||g,L=b.map(X=>X*96/72),F=i,d=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get(){return f}});let M;u&&(M=await $l(e),M.style.zIndex="0",M.style.position="absolute",e.getViewport().querySelector(".ol-layers").insertAdjacentElement("afterend",M));let O=[...e.getLayers().getArray()],R=n?.copyrightOptions?.text||e.getControls().getArray().find(X=>X instanceof Eh)?.element?.textContent;e.getLayers().clear(),s?.(e,O);let k=await sf(e,O,F,L,{pixelRatio:f});Object.defineProperty(window,"devicePixelRatio",{get(){return d}});let Y=await $l(k);if(k.getLayers().clear(),k.getTargetElement().remove(),k.setTarget(null),k.dispose(),document.body.style.overflow="auto",e.setLayers(O),o?.(e,O),M&&e.once("rendercomplete",()=>{M.remove()}),l&&rf(R,Y,{...n?.copyrightOptions||{},font:`${(f*12).toString()}px Arial`}),/^A[0-9]{1,2}/.test(g)||g?.length===2){try{let X=new Mt({orientation:"landscape",unit:"pt",...t});X.addImage(Y,"JPEG",0,0,b[0],b[1]),X.save(`${Rh}-${new Date().toISOString().slice(0,10)}.pdf`)}catch(X){return console.error(X),!1}return!0}else return await of(Y)}var Zl=lf;var uf=e=>{let t=[];function n(i){i.forEach(function(o){o instanceof Oh?n(o.getLayers()):t.push(o)})}return n(e?.getLayers?.()||e),t},Ws=uf;var Ql=["A4","A3","A1","A0"],Vs=!1;function cf({...e}){let{map:t,realtimeLayer:n}=Mh(),[i,o]=ya(!1),[s,f]=ya(Ql[0]),l=ps(),u=ps(),[g,b]=ya(!1),[L,F]=ya(!1),{t:d}=Dh();return nn("div",{...e,children:[nn("div",{className:"flex flex-1 flex-col gap-4",children:[nn("div",{className:"flex flex-wrap items-center gap-2",children:[nn(zh,{checked:i,id:l,onChange:()=>o(!i)}),nn("label",{htmlFor:l,children:d("export_all_region")})]}),nn("div",{className:"flex flex-wrap items-center gap-2",children:[nn("label",{htmlFor:u,children:[d("export_format_title"),":"]}),nn(lo,{className:"w-24",id:u,onChange:M=>{f(M.target.value)},children:Ql.map(M=>nn("option",{children:M},M))})]})]}),nn("div",{children:nn(qh,{disabled:g,onClick:async()=>{F(!1),b(!0);let M=await Zl(t,{format:s},{maxExtent:i?Th:void 0,onAfter:(O,R)=>{n&&Vs!==n?.getVisible()&&n.setVisible(Vs),Ws(R).forEach(k=>{k.set(wa,!1)}),O.set(wa,!1)},onBefore:(O,R)=>{O.set(wa,!0),n&&(Vs=n.getVisible(),n.getVisible()&&n.setVisible(!1)),Ws(R).forEach(k=>{k.set(wa,!0)})}});setTimeout(()=>{b(!1),F(!M)},1e3)},children:[g&&d("exporting"),!g&&L&&d("error"),!g&&!L&&d("download")]})})]})}var ff=kh(cf);export{ff as default};
|
|
79
|
+
/*! Bundled license information:
|
|
80
|
+
|
|
81
|
+
jspdf/dist/jspdf.es.min.js:
|
|
82
|
+
(** @license
|
|
83
|
+
*
|
|
84
|
+
* jsPDF - PDF Document creation from JavaScript
|
|
85
|
+
* Version 4.2.1 Built on 2026-03-17T11:11:27.057Z
|
|
86
|
+
* CommitID 00000000
|
|
87
|
+
*
|
|
88
|
+
* Copyright (c) 2010-2025 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
89
|
+
* 2015-2025 yWorks GmbH, http://www.yworks.com
|
|
90
|
+
* 2015-2025 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
91
|
+
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
92
|
+
* 2010 Aaron Spike, https://github.com/acspike
|
|
93
|
+
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
94
|
+
* 2012 Pablo Hess, https://github.com/pablohess
|
|
95
|
+
* 2012 Florian Jenett, https://github.com/fjenett
|
|
96
|
+
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|
97
|
+
* 2013 Youssef Beddad, https://github.com/lifof
|
|
98
|
+
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|
99
|
+
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|
100
|
+
* 2013 Jeremy Morel, https://github.com/jmorel
|
|
101
|
+
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|
102
|
+
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|
103
|
+
* 2014 James Makes, https://github.com/dollaruw
|
|
104
|
+
* 2014 Diego Casorran, https://github.com/diegocr
|
|
105
|
+
* 2014 Steven Spungin, https://github.com/Flamenco
|
|
106
|
+
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|
107
|
+
*
|
|
108
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
109
|
+
* a copy of this software and associated documentation files (the
|
|
110
|
+
* "Software"), to deal in the Software without restriction, including
|
|
111
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
112
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
113
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
114
|
+
* the following conditions:
|
|
115
|
+
*
|
|
116
|
+
* The above copyright notice and this permission notice shall be
|
|
117
|
+
* included in all copies or substantial portions of the Software.
|
|
118
|
+
*
|
|
119
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
120
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
121
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
122
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
123
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
124
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
125
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
126
|
+
*
|
|
127
|
+
* Contributor(s):
|
|
128
|
+
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
129
|
+
* kim3er, mfo, alnorth, Flamenco
|
|
130
|
+
*)
|
|
131
|
+
(**
|
|
132
|
+
* A class to parse color values
|
|
133
|
+
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
134
|
+
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
135
|
+
* @license Use it if you like it
|
|
136
|
+
*)
|
|
137
|
+
(**
|
|
138
|
+
* @license
|
|
139
|
+
* Joseph Myers does not specify a particular license for his work.
|
|
140
|
+
*
|
|
141
|
+
* Author: Joseph Myers
|
|
142
|
+
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
143
|
+
*
|
|
144
|
+
* Modified by: Owen Leong
|
|
145
|
+
*)
|
|
146
|
+
(**
|
|
147
|
+
* @license
|
|
148
|
+
* FPDF is released under a permissive license: there is no usage restriction.
|
|
149
|
+
* You may embed it freely in your application (commercial or not), with or
|
|
150
|
+
* without modifications.
|
|
151
|
+
*
|
|
152
|
+
* Reference: http://www.fpdf.org/en/script/script37.php
|
|
153
|
+
*)
|
|
154
|
+
(**
|
|
155
|
+
* @license
|
|
156
|
+
* Licensed under the MIT License.
|
|
157
|
+
* http://opensource.org/licenses/mit-license
|
|
158
|
+
* Author: Owen Leong (@owenl131)
|
|
159
|
+
* Date: 15 Oct 2020
|
|
160
|
+
* References:
|
|
161
|
+
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
162
|
+
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
163
|
+
* http://www.fpdf.org/en/script/script37.php
|
|
164
|
+
*)
|
|
165
|
+
(**
|
|
166
|
+
* @license
|
|
167
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
|
168
|
+
All rights reserved.
|
|
169
|
+
|
|
170
|
+
Redistribution and use in source and binary forms, with or without
|
|
171
|
+
modification, are permitted provided that the following conditions are
|
|
172
|
+
met:
|
|
173
|
+
|
|
174
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
175
|
+
this list of conditions and the following disclaimer.
|
|
176
|
+
|
|
177
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
178
|
+
notice, this list of conditions and the following disclaimer in the
|
|
179
|
+
documentation and/or other materials provided with the distribution.
|
|
180
|
+
|
|
181
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
182
|
+
contributors may be used to endorse or promote products derived from
|
|
183
|
+
this software without specific prior written permission.
|
|
184
|
+
|
|
185
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
186
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
187
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
188
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
189
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
190
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
191
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
192
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
193
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
194
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
195
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
196
|
+
*)
|
|
197
|
+
(**
|
|
198
|
+
* @license
|
|
199
|
+
* Copyright (c) 2017 Aras Abbasi
|
|
200
|
+
*
|
|
201
|
+
* Licensed under the MIT License.
|
|
202
|
+
* http://opensource.org/licenses/mit-license
|
|
203
|
+
*)
|
|
204
|
+
(** ====================================================================
|
|
205
|
+
* @license
|
|
206
|
+
* jsPDF XMP metadata plugin
|
|
207
|
+
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
|
208
|
+
*
|
|
209
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
210
|
+
* a copy of this software and associated documentation files (the
|
|
211
|
+
* "Software"), to deal in the Software without restriction, including
|
|
212
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
213
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
214
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
215
|
+
* the following conditions:
|
|
216
|
+
*
|
|
217
|
+
* The above copyright notice and this permission notice shall be
|
|
218
|
+
* included in all copies or substantial portions of the Software.
|
|
219
|
+
*
|
|
220
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
221
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
222
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
223
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
224
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
225
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
226
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
227
|
+
* ====================================================================
|
|
228
|
+
*)
|
|
229
|
+
*/
|