@ianicdev/datatables2 0.11.7 → 0.12.1
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/dist/{Comparison-De27pAUU.cjs → Comparison-DtpUZsrU.cjs} +1 -1
- package/dist/{Comparison-BGS-fuIe.js → Comparison-IcnZYHnn.js} +1 -1
- package/dist/{Datepicker-Cw_J535b.js → Datepicker-BKJGzszq.js} +2 -2
- package/dist/{Datepicker-CIuhuD6k.cjs → Datepicker-tAQpdCVA.cjs} +1 -1
- package/dist/Options-DZWZnKMZ.js +222 -0
- package/dist/Options-th4F06rr.cjs +1 -0
- package/dist/{RefreshTable-CwKNOxC1.cjs → RefreshTable-CnvdYMek.cjs} +1 -1
- package/dist/{RefreshTable-DJh8kVcF.js → RefreshTable-D4ifMTa_.js} +2 -2
- package/dist/Search-B9HBH338.cjs +1 -0
- package/dist/{Search-C8e4aEIt.js → Search-BkQ1aZEe.js} +19 -19
- package/dist/{Table-BJ5tGV-x.cjs → Table-CGFEU1ml.cjs} +1 -1
- package/dist/{Table-ubU5wjVY.js → Table-CUFIrlzk.js} +3 -3
- package/dist/{TableServer-CDPE93Bi.cjs → TableServer-Ccn3CM5P.cjs} +1 -1
- package/dist/{TableServer-DuwL1c97.js → TableServer-DSAcYBTM.js} +3 -3
- package/dist/{cellRender-Dh2_N7Hn.cjs → cellRender-8D0QBLeC.cjs} +1 -1
- package/dist/{cellRender-u5Pfy695.js → cellRender-BBnDEG_7.js} +2 -2
- package/dist/{dataTables-Du4VyMxR.js → dataTables-B691de3Y.js} +207 -205
- package/dist/{dataTables-BxXcbziu.cjs → dataTables-C0Ygb6M3.cjs} +2 -2
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/{index-BebQe8X1.cjs → index-BiBUa6-_.cjs} +1 -1
- package/dist/{index-Dlb5c56z.js → index-C9x5Z2bI.js} +1602 -1606
- package/dist/{index-D0oTlDPt.js → index-CPLpre1I.js} +2 -2
- package/dist/index-CX6NrL8T.cjs +1 -0
- package/dist/{index-R3Q-lW3h.cjs → index-D4MrgePs.cjs} +1 -1
- package/dist/{index-CTF3ArB5.js → index-DwBno3e_.js} +2 -2
- package/dist/{index-Cfk_p1QT.cjs → index-GgkpPHGm.cjs} +1 -1
- package/dist/{index-pVnRXL21.js → index-H3lKuAD2.js} +9 -9
- package/dist/{index.es-BMrS5t0X.js → index.es-BISbMM3V.js} +1127 -1113
- package/dist/{index.es-bmkO-qSm.cjs → index.es-CK9mjb_K.cjs} +5 -5
- package/dist/{jspdf-BEHFm2qd.js → jspdf-CEG2zMqe.js} +2176 -2162
- package/dist/jspdf-DZiw2wns.cjs +79 -0
- package/dist/{useColumns-Csi8mDCk.js → useColumns-CTrxq_by.js} +3 -2
- package/dist/{useColumns-BpprQUUi.cjs → useColumns-Cgjt48Pi.cjs} +1 -1
- package/dist/{useDownload-B9YtKO_M.js → useDownload-DpS1G0qa.js} +1 -1
- package/dist/{useDownload-CELkYaWd.cjs → useDownload-tCiK460H.cjs} +1 -1
- package/dist/useRefreshTable-B3JWG3uB.cjs +1 -0
- package/dist/useRefreshTable-C01Fva1U.js +17 -0
- package/lib/locale/de.js +9 -0
- package/lib/locale/el.js +9 -0
- package/lib/locale/en.js +8 -0
- package/package.json +12 -12
- package/dist/Options-DEe2eGBJ.cjs +0 -1
- package/dist/Options-I1PQEYFi.js +0 -108
- package/dist/Search-_MWrcP0W.cjs +0 -1
- package/dist/index-BeStYA4v.cjs +0 -1
- package/dist/jspdf-BCsjByej.cjs +0 -79
- package/dist/useRefreshTable-CYZLF_fz.cjs +0 -1
- package/dist/useRefreshTable-DkrhQ57E.js +0 -18
package/dist/jspdf-BCsjByej.cjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";function ye(n){"@babel/helpers - typeof";return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(n)}var Qn=Uint8Array,On=Uint16Array,ol=Int32Array,sl=new Qn([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]),ll=new Qn([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]),Jl=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pf=function(n,t){for(var e=new On(31),r=0;r<31;++r)e[r]=t+=1<<n[r-1];for(var a=new ol(e[30]),r=1;r<30;++r)for(var i=e[r];i<e[r+1];++i)a[i]=i-e[r]<<5|r;return{b:e,r:a}},gf=pf(sl,2),rc=gf.b,Vs=gf.r;rc[28]=258,Vs[258]=28;var ic=pf(ll,0),Kl=ic.r,Ys=new On(32768);for(var Fe=0;Fe<32768;++Fe){var ti=(Fe&43690)>>1|(Fe&21845)<<1;ti=(ti&52428)>>2|(ti&13107)<<2,ti=(ti&61680)>>4|(ti&3855)<<4,Ys[Fe]=((ti&65280)>>8|(ti&255)<<8)>>1}var Ia=(function(n,t,e){for(var r=n.length,a=0,i=new On(t);a<r;++a)n[a]&&++i[n[a]-1];var f=new On(t);for(a=1;a<t;++a)f[a]=f[a-1]+i[a-1]<<1;var l;if(e){l=new On(1<<t);var u=15-t;for(a=0;a<r;++a)if(n[a])for(var h=a<<4|n[a],p=t-n[a],w=f[n[a]-1]++<<p,x=w|(1<<p)-1;w<=x;++w)l[Ys[w]>>u]=h}else for(l=new On(r),a=0;a<r;++a)n[a]&&(l[a]=Ys[f[n[a]-1]++]>>15-n[a]);return l}),Li=new Qn(288);for(var Fe=0;Fe<144;++Fe)Li[Fe]=8;for(var Fe=144;Fe<256;++Fe)Li[Fe]=9;for(var Fe=256;Fe<280;++Fe)Li[Fe]=7;for(var Fe=280;Fe<288;++Fe)Li[Fe]=8;var jo=new Qn(32);for(var Fe=0;Fe<32;++Fe)jo[Fe]=5;var ac=Ia(Li,9,0),oc=Ia(jo,5,0),vf=function(n){return(n+7)/8|0},sc=function(n,t,e){return(e==null||e>n.length)&&(e=n.length),new Qn(n.subarray(t,e))},Or=function(n,t,e){e<<=t&7;var r=t/8|0;n[r]|=e,n[r+1]|=e>>8},Ca=function(n,t,e){e<<=t&7;var r=t/8|0;n[r]|=e,n[r+1]|=e>>8,n[r+2]|=e>>16},xs=function(n,t){for(var e=[],r=0;r<n.length;++r)n[r]&&e.push({s:r,f:n[r]});var a=e.length,i=e.slice();if(!a)return{t:bf,l:0};if(a==1){var f=new Qn(e[0].s+1);return f[e[0].s]=1,{t:f,l:1}}e.sort(function(it,vt){return it.f-vt.f}),e.push({s:-1,f:25001});var l=e[0],u=e[1],h=0,p=1,w=2;for(e[0]={s:-1,f:l.f+u.f,l,r:u};p!=a-1;)l=e[e[h].f<e[w].f?h++:w++],u=e[h!=p&&e[h].f<e[w].f?h++:w++],e[p++]={s:-1,f:l.f+u.f,l,r:u};for(var x=i[0].s,r=1;r<a;++r)i[r].s>x&&(x=i[r].s);var g=new On(x+1),P=Js(e[p-1],g,0);if(P>t){var r=0,C=0,B=P-t,S=1<<B;for(i.sort(function(vt,ct){return g[ct.s]-g[vt.s]||vt.f-ct.f});r<a;++r){var G=i[r].s;if(g[G]>t)C+=S-(1<<P-g[G]),g[G]=t;else break}for(C>>=B;C>0;){var V=i[r].s;g[V]<t?C-=1<<t-g[V]++-1:++r}for(;r>=0&&C;--r){var T=i[r].s;g[T]==t&&(--g[T],++C)}P=t}return{t:new Qn(g),l:P}},Js=function(n,t,e){return n.s==-1?Math.max(Js(n.l,t,e+1),Js(n.r,t,e+1)):t[n.s]=e},Xl=function(n){for(var t=n.length;t&&!n[--t];);for(var e=new On(++t),r=0,a=n[0],i=1,f=function(u){e[r++]=u},l=1;l<=t;++l)if(n[l]==a&&l!=t)++i;else{if(!a&&i>2){for(;i>138;i-=138)f(32754);i>2&&(f(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(f(a),--i;i>6;i-=6)f(8304);i>2&&(f(i-3<<5|8208),i=0)}for(;i--;)f(a);i=1,a=n[l]}return{c:e.subarray(0,r),n:t}},Fa=function(n,t){for(var e=0,r=0;r<t.length;++r)e+=n[r]*t[r];return e},mf=function(n,t,e){var r=e.length,a=vf(t+2);n[a]=r&255,n[a+1]=r>>8,n[a+2]=n[a]^255,n[a+3]=n[a+1]^255;for(var i=0;i<r;++i)n[a+i+4]=e[i];return(a+4+r)*8},$l=function(n,t,e,r,a,i,f,l,u,h,p){Or(t,p++,e),++a[256];for(var w=xs(a,15),x=w.t,g=w.l,P=xs(i,15),C=P.t,B=P.l,S=Xl(x),G=S.c,V=S.n,T=Xl(C),it=T.c,vt=T.n,ct=new On(19),K=0;K<G.length;++K)++ct[G[K]&31];for(var K=0;K<it.length;++K)++ct[it[K]&31];for(var R=xs(ct,7),tt=R.t,L=R.l,O=19;O>4&&!tt[Jl[O-1]];--O);var z=h+5<<3,U=Fa(a,Li)+Fa(i,jo)+f,rt=Fa(a,x)+Fa(i,C)+f+14+3*O+Fa(ct,tt)+2*ct[16]+3*ct[17]+7*ct[18];if(u>=0&&z<=U&&z<=rt)return mf(t,p,n.subarray(u,u+h));var st,ut,nt,ht;if(Or(t,p,1+(rt<U)),p+=2,rt<U){st=Ia(x,g,0),ut=x,nt=Ia(C,B,0),ht=C;var _t=Ia(tt,L,0);Or(t,p,V-257),Or(t,p+5,vt-1),Or(t,p+10,O-4),p+=14;for(var K=0;K<O;++K)Or(t,p+3*K,tt[Jl[K]]);p+=3*O;for(var wt=[G,it],_=0;_<2;++_)for(var D=wt[_],K=0;K<D.length;++K){var M=D[K]&31;Or(t,p,_t[M]),p+=tt[M],M>15&&(Or(t,p,D[K]>>5&127),p+=D[K]>>12)}}else st=ac,ut=Li,nt=oc,ht=jo;for(var K=0;K<l;++K){var H=r[K];if(H>255){var M=H>>18&31;Ca(t,p,st[M+257]),p+=ut[M+257],M>7&&(Or(t,p,H>>23&31),p+=sl[M]);var J=H&31;Ca(t,p,nt[J]),p+=ht[J],J>3&&(Ca(t,p,H>>5&8191),p+=ll[J])}else Ca(t,p,st[H]),p+=ut[H]}return Ca(t,p,st[256]),p+ut[256]},lc=new ol([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),bf=new Qn(0),uc=function(n,t,e,r,a,i){var f=i.z||n.length,l=new Qn(r+f+5*(1+Math.ceil(f/7e3))+a),u=l.subarray(r,l.length-a),h=i.l,p=(i.r||0)&7;if(t){p&&(u[0]=i.r>>3);for(var w=lc[t-1],x=w>>13,g=w&8191,P=(1<<e)-1,C=i.p||new On(32768),B=i.h||new On(P+1),S=Math.ceil(e/3),G=2*S,V=function(Tt){return(n[Tt]^n[Tt+1]<<S^n[Tt+2]<<G)&P},T=new ol(25e3),it=new On(288),vt=new On(32),ct=0,K=0,R=i.i||0,tt=0,L=i.w||0,O=0;R+2<f;++R){var z=V(R),U=R&32767,rt=B[z];if(C[U]=rt,B[z]=U,L<=R){var st=f-R;if((ct>7e3||tt>24576)&&(st>423||!h)){p=$l(n,u,0,T,it,vt,K,tt,O,R-O,p),tt=ct=K=0,O=R;for(var ut=0;ut<286;++ut)it[ut]=0;for(var ut=0;ut<30;++ut)vt[ut]=0}var nt=2,ht=0,_t=g,wt=U-rt&32767;if(st>2&&z==V(R-wt))for(var _=Math.min(x,st)-1,D=Math.min(32767,R),M=Math.min(258,st);wt<=D&&--_t&&U!=rt;){if(n[R+nt]==n[R+nt-wt]){for(var H=0;H<M&&n[R+H]==n[R+H-wt];++H);if(H>nt){if(nt=H,ht=wt,H>_)break;for(var J=Math.min(wt,H-2),Z=0,ut=0;ut<J;++ut){var at=R-wt+ut&32767,ot=C[at],gt=at-ot&32767;gt>Z&&(Z=gt,rt=at)}}}U=rt,rt=C[U],wt+=U-rt&32767}if(ht){T[tt++]=268435456|Vs[nt]<<18|Kl[ht];var At=Vs[nt]&31,kt=Kl[ht]&31;K+=sl[At]+ll[kt],++it[257+At],++vt[kt],L=R+nt,++ct}else T[tt++]=n[R],++it[n[R]]}}for(R=Math.max(R,L);R<f;++R)T[tt++]=n[R],++it[n[R]];p=$l(n,u,h,T,it,vt,K,tt,O,R-O,p),h||(i.r=p&7|u[p/8|0]<<3,p-=7,i.h=B,i.p=C,i.i=R,i.w=L)}else{for(var R=i.w||0;R<f+h;R+=65535){var St=R+65535;St>=f&&(u[p/8|0]=h,St=f),p=mf(u,p+1,n.subarray(R,St))}i.i=f}return sc(l,0,r+vf(p)+a)},wf=function(){var n=1,t=0;return{p:function(e){for(var r=n,a=t,i=e.length|0,f=0;f!=i;){for(var l=Math.min(f+2655,i);f<l;++f)a+=r+=e[f];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}n=r,t=a},d:function(){return n%=65521,t%=65521,(n&255)<<24|(n&65280)<<8|(t&255)<<8|t>>8}}},fc=function(n,t,e,r,a){if(!a&&(a={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),f=new Qn(i.length+n.length);f.set(i),f.set(n,i.length),n=f,a.w=i.length}return uc(n,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+t.mem,e,r,a)},yf=function(n,t,e){for(;e;++t)n[t]=e,e>>>=8},hc=function(n,t){var e=t.level,r=e==0?0:e<6?1:e==9?3:2;if(n[0]=120,n[1]=r<<6|(t.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,t.dictionary){var a=wf();a.p(t.dictionary),yf(n,2,a.d())}};function Ks(n,t){t||(t={});var e=wf();e.p(n);var r=fc(n,t,t.dictionary?6:2,4);return hc(r,t),yf(r,r.length-4,e.d()),r}var cc=typeof TextDecoder<"u"&&new TextDecoder,dc=0;try{cc.decode(bf,{stream:!0}),dc=1}catch{}function pc(n){if(Array.isArray(n))return n}function gc(n,t){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var r,a,i,f,l=[],u=!0,h=!1;try{if(i=(e=e.call(n)).next,t!==0)for(;!(u=(r=i.call(e)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(p){h=!0,a=p}finally{try{if(!u&&e.return!=null&&(f=e.return(),Object(f)!==f))return}finally{if(h)throw a}}return l}}function Zl(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function vc(n,t){if(n){if(typeof n=="string")return Zl(n,t);var e={}.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Zl(n,t):void 0}}function mc(){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 Ql(n,t){return pc(n)||gc(n,t)||vc(n,t)||mc()}function tu(n,t="utf8"){return new TextDecoder(t).decode(n)}const bc=new TextEncoder;function wc(n){return bc.encode(n)}const yc=1024*8,xc=(()=>{const n=new Uint8Array(4),t=new Uint32Array(n.buffer);return!((t[0]=1)&n[0])})(),As={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ul{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=yc,e={}){let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const a=e.offset?e.offset>>>0:0,i=t.byteLength-a;let f=a;(ArrayBuffer.isView(t)||t instanceof ul)&&(t.byteLength!==t.buffer.byteLength&&(f=t.byteOffset+a),t=t.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,i),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,a=new Uint8Array(r);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const r=As[e].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,i=this.buffer.slice(a,a+r);if(this.littleEndian===xc&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(a,a+r));l.reverse();const u=new As[e](l.buffer);return this.offset+=r,u.reverse(),u}const f=new As[e](i);return this.offset+=r,f}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return tu(this.readBytes(t))}decodeText(t=1,e="utf8"){return tu(this.readBytes(t),e)}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 e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);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 e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(wc(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)}}function ta(n){let t=n.length;for(;--t>=0;)n[t]=0}const Ac=3,_c=258,xf=29,Nc=256,Lc=Nc+1+xf,Af=30,Sc=512,kc=new Array((Lc+2)*2);ta(kc);const Pc=new Array(Af*2);ta(Pc);const Cc=new Array(Sc);ta(Cc);const Fc=new Array(_c-Ac+1);ta(Fc);const Ic=new Array(xf);ta(Ic);const Ec=new Array(Af);ta(Ec);const Oc=(n,t,e,r)=>{let a=n&65535|0,i=n>>>16&65535|0,f=0;for(;e!==0;){f=e>2e3?2e3:e,e-=f;do a=a+t[r++]|0,i=i+a|0;while(--f);a%=65521,i%=65521}return a|i<<16|0};var Xs=Oc;const jc=()=>{let n,t=[];for(var e=0;e<256;e++){n=e;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;t[e]=n}return t},Bc=new Uint32Array(jc()),Dc=(n,t,e,r)=>{const a=Bc,i=r+e;n^=-1;for(let f=r;f<i;f++)n=n>>>8^a[(n^t[f])&255];return n^-1};var hr=Dc,$s={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},_f={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Rc=(n,t)=>Object.prototype.hasOwnProperty.call(n,t);var Mc=function(n){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)Rc(e,r)&&(n[r]=e[r])}}return n},Tc=n=>{let t=0;for(let r=0,a=n.length;r<a;r++)t+=n[r].length;const e=new Uint8Array(t);for(let r=0,a=0,i=n.length;r<i;r++){let f=n[r];e.set(f,a),a+=f.length}return e},Nf={assign:Mc,flattenChunks:Tc};let Lf=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Lf=!1}const ja=new Uint8Array(256);for(let n=0;n<256;n++)ja[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;ja[254]=ja[254]=1;var qc=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let t,e,r,a,i,f=n.length,l=0;for(a=0;a<f;a++)e=n.charCodeAt(a),(e&64512)===55296&&a+1<f&&(r=n.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(l),i=0,a=0;i<l;a++)e=n.charCodeAt(a),(e&64512)===55296&&a+1<f&&(r=n.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),e<128?t[i++]=e:e<2048?(t[i++]=192|e>>>6,t[i++]=128|e&63):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|e&63):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|e&63);return t};const Uc=(n,t)=>{if(t<65534&&n.subarray&&Lf)return String.fromCharCode.apply(null,n.length===t?n:n.subarray(0,t));let e="";for(let r=0;r<t;r++)e+=String.fromCharCode(n[r]);return e};var zc=(n,t)=>{const e=t||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,t));let r,a;const i=new Array(e*2);for(a=0,r=0;r<e;){let f=n[r++];if(f<128){i[a++]=f;continue}let l=ja[f];if(l>4){i[a++]=65533,r+=l-1;continue}for(f&=l===2?31:l===3?15:7;l>1&&r<e;)f=f<<6|n[r++]&63,l--;if(l>1){i[a++]=65533;continue}f<65536?i[a++]=f:(f-=65536,i[a++]=55296|f>>10&1023,i[a++]=56320|f&1023)}return Uc(i,a)},Hc=(n,t)=>{t=t||n.length,t>n.length&&(t=n.length);let e=t-1;for(;e>=0&&(n[e]&192)===128;)e--;return e<0||e===0?t:e+ja[n[e]]>t?e:t},Zs={string2buf:qc,buf2string:zc,utf8border:Hc};function Wc(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Gc=Wc;const yo=16209,Vc=16191;var Yc=function(t,e){let r,a,i,f,l,u,h,p,w,x,g,P,C,B,S,G,V,T,it,vt,ct,K,R,tt;const L=t.state;r=t.next_in,R=t.input,a=r+(t.avail_in-5),i=t.next_out,tt=t.output,f=i-(e-t.avail_out),l=i+(t.avail_out-257),u=L.dmax,h=L.wsize,p=L.whave,w=L.wnext,x=L.window,g=L.hold,P=L.bits,C=L.lencode,B=L.distcode,S=(1<<L.lenbits)-1,G=(1<<L.distbits)-1;t:do{P<15&&(g+=R[r++]<<P,P+=8,g+=R[r++]<<P,P+=8),V=C[g&S];e:for(;;){if(T=V>>>24,g>>>=T,P-=T,T=V>>>16&255,T===0)tt[i++]=V&65535;else if(T&16){it=V&65535,T&=15,T&&(P<T&&(g+=R[r++]<<P,P+=8),it+=g&(1<<T)-1,g>>>=T,P-=T),P<15&&(g+=R[r++]<<P,P+=8,g+=R[r++]<<P,P+=8),V=B[g&G];n:for(;;){if(T=V>>>24,g>>>=T,P-=T,T=V>>>16&255,T&16){if(vt=V&65535,T&=15,P<T&&(g+=R[r++]<<P,P+=8,P<T&&(g+=R[r++]<<P,P+=8)),vt+=g&(1<<T)-1,vt>u){t.msg="invalid distance too far back",L.mode=yo;break t}if(g>>>=T,P-=T,T=i-f,vt>T){if(T=vt-T,T>p&&L.sane){t.msg="invalid distance too far back",L.mode=yo;break t}if(ct=0,K=x,w===0){if(ct+=h-T,T<it){it-=T;do tt[i++]=x[ct++];while(--T);ct=i-vt,K=tt}}else if(w<T){if(ct+=h+w-T,T-=w,T<it){it-=T;do tt[i++]=x[ct++];while(--T);if(ct=0,w<it){T=w,it-=T;do tt[i++]=x[ct++];while(--T);ct=i-vt,K=tt}}}else if(ct+=w-T,T<it){it-=T;do tt[i++]=x[ct++];while(--T);ct=i-vt,K=tt}for(;it>2;)tt[i++]=K[ct++],tt[i++]=K[ct++],tt[i++]=K[ct++],it-=3;it&&(tt[i++]=K[ct++],it>1&&(tt[i++]=K[ct++]))}else{ct=i-vt;do tt[i++]=tt[ct++],tt[i++]=tt[ct++],tt[i++]=tt[ct++],it-=3;while(it>2);it&&(tt[i++]=tt[ct++],it>1&&(tt[i++]=tt[ct++]))}}else if((T&64)===0){V=B[(V&65535)+(g&(1<<T)-1)];continue n}else{t.msg="invalid distance code",L.mode=yo;break t}break}}else if((T&64)===0){V=C[(V&65535)+(g&(1<<T)-1)];continue e}else if(T&32){L.mode=Vc;break t}else{t.msg="invalid literal/length code",L.mode=yo;break t}break}}while(r<a&&i<l);it=P>>3,r-=it,P-=it<<3,g&=(1<<P)-1,t.next_in=r,t.next_out=i,t.avail_in=r<a?5+(a-r):5-(r-a),t.avail_out=i<l?257+(l-i):257-(i-l),L.hold=g,L.bits=P};const Hi=15,eu=852,nu=592,ru=0,_s=1,iu=2,Jc=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Kc=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Xc=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),$c=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Zc=(n,t,e,r,a,i,f,l)=>{const u=l.bits;let h=0,p=0,w=0,x=0,g=0,P=0,C=0,B=0,S=0,G=0,V,T,it,vt,ct,K=null,R;const tt=new Uint16Array(Hi+1),L=new Uint16Array(Hi+1);let O=null,z,U,rt;for(h=0;h<=Hi;h++)tt[h]=0;for(p=0;p<r;p++)tt[t[e+p]]++;for(g=u,x=Hi;x>=1&&tt[x]===0;x--);if(g>x&&(g=x),x===0)return a[i++]=1<<24|64<<16|0,a[i++]=1<<24|64<<16|0,l.bits=1,0;for(w=1;w<x&&tt[w]===0;w++);for(g<w&&(g=w),B=1,h=1;h<=Hi;h++)if(B<<=1,B-=tt[h],B<0)return-1;if(B>0&&(n===ru||x!==1))return-1;for(L[1]=0,h=1;h<Hi;h++)L[h+1]=L[h]+tt[h];for(p=0;p<r;p++)t[e+p]!==0&&(f[L[t[e+p]]++]=p);if(n===ru?(K=O=f,R=20):n===_s?(K=Jc,O=Kc,R=257):(K=Xc,O=$c,R=0),G=0,p=0,h=w,ct=i,P=g,C=0,it=-1,S=1<<g,vt=S-1,n===_s&&S>eu||n===iu&&S>nu)return 1;for(;;){z=h-C,f[p]+1<R?(U=0,rt=f[p]):f[p]>=R?(U=O[f[p]-R],rt=K[f[p]-R]):(U=96,rt=0),V=1<<h-C,T=1<<P,w=T;do T-=V,a[ct+(G>>C)+T]=z<<24|U<<16|rt|0;while(T!==0);for(V=1<<h-1;G&V;)V>>=1;if(V!==0?(G&=V-1,G+=V):G=0,p++,--tt[h]===0){if(h===x)break;h=t[e+f[p]]}if(h>g&&(G&vt)!==it){for(C===0&&(C=g),ct+=w,P=h-C,B=1<<P;P+C<x&&(B-=tt[P+C],!(B<=0));)P++,B<<=1;if(S+=1<<P,n===_s&&S>eu||n===iu&&S>nu)return 1;it=G&vt,a[it]=g<<24|P<<16|ct-i|0}}return G!==0&&(a[ct+G]=h-C<<24|64<<16|0),l.bits=g,0};var Ea=Zc;const Qc=0,Sf=1,kf=2,{Z_FINISH:au,Z_BLOCK:t1,Z_TREES:xo,Z_OK:Si,Z_STREAM_END:e1,Z_NEED_DICT:n1,Z_STREAM_ERROR:Hn,Z_DATA_ERROR:Pf,Z_MEM_ERROR:Cf,Z_BUF_ERROR:r1,Z_DEFLATED:ou}=_f,qo=16180,su=16181,lu=16182,uu=16183,fu=16184,hu=16185,cu=16186,du=16187,pu=16188,gu=16189,Bo=16190,jr=16191,Ns=16192,vu=16193,Ls=16194,mu=16195,bu=16196,wu=16197,yu=16198,Ao=16199,_o=16200,xu=16201,Au=16202,_u=16203,Nu=16204,Lu=16205,Ss=16206,Su=16207,ku=16208,Oe=16209,Ff=16210,If=16211,i1=852,a1=592,o1=15,s1=o1,Pu=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function l1(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Pi=n=>{if(!n)return 1;const t=n.state;return!t||t.strm!==n||t.mode<qo||t.mode>If?1:0},Ef=n=>{if(Pi(n))return Hn;const t=n.state;return n.total_in=n.total_out=t.total=0,n.msg="",t.wrap&&(n.adler=t.wrap&1),t.mode=qo,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(i1),t.distcode=t.distdyn=new Int32Array(a1),t.sane=1,t.back=-1,Si},Of=n=>{if(Pi(n))return Hn;const t=n.state;return t.wsize=0,t.whave=0,t.wnext=0,Ef(n)},jf=(n,t)=>{let e;if(Pi(n))return Hn;const r=n.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Hn:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,Of(n))},Bf=(n,t)=>{if(!n)return Hn;const e=new l1;n.state=e,e.strm=n,e.window=null,e.mode=qo;const r=jf(n,t);return r!==Si&&(n.state=null),r},u1=n=>Bf(n,s1);let Cu=!0,ks,Ps;const f1=n=>{if(Cu){ks=new Int32Array(512),Ps=new Int32Array(32);let t=0;for(;t<144;)n.lens[t++]=8;for(;t<256;)n.lens[t++]=9;for(;t<280;)n.lens[t++]=7;for(;t<288;)n.lens[t++]=8;for(Ea(Sf,n.lens,0,288,ks,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;Ea(kf,n.lens,0,32,Ps,0,n.work,{bits:5}),Cu=!1}n.lencode=ks,n.lenbits=9,n.distcode=Ps,n.distbits=5},Df=(n,t,e,r)=>{let a;const i=n.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>r&&(a=r),i.window.set(t.subarray(e-r,e-r+a),i.wnext),r-=a,r?(i.window.set(t.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0},h1=(n,t)=>{let e,r,a,i,f,l,u,h,p,w,x,g,P,C,B=0,S,G,V,T,it,vt,ct,K;const R=new Uint8Array(4);let tt,L;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Pi(n)||!n.output||!n.input&&n.avail_in!==0)return Hn;e=n.state,e.mode===jr&&(e.mode=Ns),f=n.next_out,a=n.output,u=n.avail_out,i=n.next_in,r=n.input,l=n.avail_in,h=e.hold,p=e.bits,w=l,x=u,K=Si;t:for(;;)switch(e.mode){case qo:if(e.wrap===0){e.mode=Ns;break}for(;p<16;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(e.wrap&2&&h===35615){e.wbits===0&&(e.wbits=15),e.check=0,R[0]=h&255,R[1]=h>>>8&255,e.check=hr(e.check,R,2,0),h=0,p=0,e.mode=su;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((h&255)<<8)+(h>>8))%31){n.msg="incorrect header check",e.mode=Oe;break}if((h&15)!==ou){n.msg="unknown compression method",e.mode=Oe;break}if(h>>>=4,p-=4,ct=(h&15)+8,e.wbits===0&&(e.wbits=ct),ct>15||ct>e.wbits){n.msg="invalid window size",e.mode=Oe;break}e.dmax=1<<e.wbits,e.flags=0,n.adler=e.check=1,e.mode=h&512?gu:jr,h=0,p=0;break;case su:for(;p<16;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(e.flags=h,(e.flags&255)!==ou){n.msg="unknown compression method",e.mode=Oe;break}if(e.flags&57344){n.msg="unknown header flags set",e.mode=Oe;break}e.head&&(e.head.text=h>>8&1),e.flags&512&&e.wrap&4&&(R[0]=h&255,R[1]=h>>>8&255,e.check=hr(e.check,R,2,0)),h=0,p=0,e.mode=lu;case lu:for(;p<32;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}e.head&&(e.head.time=h),e.flags&512&&e.wrap&4&&(R[0]=h&255,R[1]=h>>>8&255,R[2]=h>>>16&255,R[3]=h>>>24&255,e.check=hr(e.check,R,4,0)),h=0,p=0,e.mode=uu;case uu:for(;p<16;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}e.head&&(e.head.xflags=h&255,e.head.os=h>>8),e.flags&512&&e.wrap&4&&(R[0]=h&255,R[1]=h>>>8&255,e.check=hr(e.check,R,2,0)),h=0,p=0,e.mode=fu;case fu:if(e.flags&1024){for(;p<16;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}e.length=h,e.head&&(e.head.extra_len=h),e.flags&512&&e.wrap&4&&(R[0]=h&255,R[1]=h>>>8&255,e.check=hr(e.check,R,2,0)),h=0,p=0}else e.head&&(e.head.extra=null);e.mode=hu;case hu:if(e.flags&1024&&(g=e.length,g>l&&(g=l),g&&(e.head&&(ct=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+g),ct)),e.flags&512&&e.wrap&4&&(e.check=hr(e.check,r,g,i)),l-=g,i+=g,e.length-=g),e.length))break t;e.length=0,e.mode=cu;case cu:if(e.flags&2048){if(l===0)break t;g=0;do ct=r[i+g++],e.head&&ct&&e.length<65536&&(e.head.name+=String.fromCharCode(ct));while(ct&&g<l);if(e.flags&512&&e.wrap&4&&(e.check=hr(e.check,r,g,i)),l-=g,i+=g,ct)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=du;case du:if(e.flags&4096){if(l===0)break t;g=0;do ct=r[i+g++],e.head&&ct&&e.length<65536&&(e.head.comment+=String.fromCharCode(ct));while(ct&&g<l);if(e.flags&512&&e.wrap&4&&(e.check=hr(e.check,r,g,i)),l-=g,i+=g,ct)break t}else e.head&&(e.head.comment=null);e.mode=pu;case pu:if(e.flags&512){for(;p<16;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(e.wrap&4&&h!==(e.check&65535)){n.msg="header crc mismatch",e.mode=Oe;break}h=0,p=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),n.adler=e.check=0,e.mode=jr;break;case gu:for(;p<32;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}n.adler=e.check=Pu(h),h=0,p=0,e.mode=Bo;case Bo:if(e.havedict===0)return n.next_out=f,n.avail_out=u,n.next_in=i,n.avail_in=l,e.hold=h,e.bits=p,n1;n.adler=e.check=1,e.mode=jr;case jr:if(t===t1||t===xo)break t;case Ns:if(e.last){h>>>=p&7,p-=p&7,e.mode=Ss;break}for(;p<3;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}switch(e.last=h&1,h>>>=1,p-=1,h&3){case 0:e.mode=vu;break;case 1:if(f1(e),e.mode=Ao,t===xo){h>>>=2,p-=2;break t}break;case 2:e.mode=bu;break;case 3:n.msg="invalid block type",e.mode=Oe}h>>>=2,p-=2;break;case vu:for(h>>>=p&7,p-=p&7;p<32;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if((h&65535)!==(h>>>16^65535)){n.msg="invalid stored block lengths",e.mode=Oe;break}if(e.length=h&65535,h=0,p=0,e.mode=Ls,t===xo)break t;case Ls:e.mode=mu;case mu:if(g=e.length,g){if(g>l&&(g=l),g>u&&(g=u),g===0)break t;a.set(r.subarray(i,i+g),f),l-=g,i+=g,u-=g,f+=g,e.length-=g;break}e.mode=jr;break;case bu:for(;p<14;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(e.nlen=(h&31)+257,h>>>=5,p-=5,e.ndist=(h&31)+1,h>>>=5,p-=5,e.ncode=(h&15)+4,h>>>=4,p-=4,e.nlen>286||e.ndist>30){n.msg="too many length or distance symbols",e.mode=Oe;break}e.have=0,e.mode=wu;case wu:for(;e.have<e.ncode;){for(;p<3;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}e.lens[O[e.have++]]=h&7,h>>>=3,p-=3}for(;e.have<19;)e.lens[O[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,tt={bits:e.lenbits},K=Ea(Qc,e.lens,0,19,e.lencode,0,e.work,tt),e.lenbits=tt.bits,K){n.msg="invalid code lengths set",e.mode=Oe;break}e.have=0,e.mode=yu;case yu:for(;e.have<e.nlen+e.ndist;){for(;B=e.lencode[h&(1<<e.lenbits)-1],S=B>>>24,G=B>>>16&255,V=B&65535,!(S<=p);){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(V<16)h>>>=S,p-=S,e.lens[e.have++]=V;else{if(V===16){for(L=S+2;p<L;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(h>>>=S,p-=S,e.have===0){n.msg="invalid bit length repeat",e.mode=Oe;break}ct=e.lens[e.have-1],g=3+(h&3),h>>>=2,p-=2}else if(V===17){for(L=S+3;p<L;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}h>>>=S,p-=S,ct=0,g=3+(h&7),h>>>=3,p-=3}else{for(L=S+7;p<L;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}h>>>=S,p-=S,ct=0,g=11+(h&127),h>>>=7,p-=7}if(e.have+g>e.nlen+e.ndist){n.msg="invalid bit length repeat",e.mode=Oe;break}for(;g--;)e.lens[e.have++]=ct}}if(e.mode===Oe)break;if(e.lens[256]===0){n.msg="invalid code -- missing end-of-block",e.mode=Oe;break}if(e.lenbits=9,tt={bits:e.lenbits},K=Ea(Sf,e.lens,0,e.nlen,e.lencode,0,e.work,tt),e.lenbits=tt.bits,K){n.msg="invalid literal/lengths set",e.mode=Oe;break}if(e.distbits=6,e.distcode=e.distdyn,tt={bits:e.distbits},K=Ea(kf,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,tt),e.distbits=tt.bits,K){n.msg="invalid distances set",e.mode=Oe;break}if(e.mode=Ao,t===xo)break t;case Ao:e.mode=_o;case _o:if(l>=6&&u>=258){n.next_out=f,n.avail_out=u,n.next_in=i,n.avail_in=l,e.hold=h,e.bits=p,Yc(n,x),f=n.next_out,a=n.output,u=n.avail_out,i=n.next_in,r=n.input,l=n.avail_in,h=e.hold,p=e.bits,e.mode===jr&&(e.back=-1);break}for(e.back=0;B=e.lencode[h&(1<<e.lenbits)-1],S=B>>>24,G=B>>>16&255,V=B&65535,!(S<=p);){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(G&&(G&240)===0){for(T=S,it=G,vt=V;B=e.lencode[vt+((h&(1<<T+it)-1)>>T)],S=B>>>24,G=B>>>16&255,V=B&65535,!(T+S<=p);){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}h>>>=T,p-=T,e.back+=T}if(h>>>=S,p-=S,e.back+=S,e.length=V,G===0){e.mode=Lu;break}if(G&32){e.back=-1,e.mode=jr;break}if(G&64){n.msg="invalid literal/length code",e.mode=Oe;break}e.extra=G&15,e.mode=xu;case xu:if(e.extra){for(L=e.extra;p<L;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}e.length+=h&(1<<e.extra)-1,h>>>=e.extra,p-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Au;case Au:for(;B=e.distcode[h&(1<<e.distbits)-1],S=B>>>24,G=B>>>16&255,V=B&65535,!(S<=p);){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if((G&240)===0){for(T=S,it=G,vt=V;B=e.distcode[vt+((h&(1<<T+it)-1)>>T)],S=B>>>24,G=B>>>16&255,V=B&65535,!(T+S<=p);){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}h>>>=T,p-=T,e.back+=T}if(h>>>=S,p-=S,e.back+=S,G&64){n.msg="invalid distance code",e.mode=Oe;break}e.offset=V,e.extra=G&15,e.mode=_u;case _u:if(e.extra){for(L=e.extra;p<L;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}e.offset+=h&(1<<e.extra)-1,h>>>=e.extra,p-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){n.msg="invalid distance too far back",e.mode=Oe;break}e.mode=Nu;case Nu:if(u===0)break t;if(g=x-u,e.offset>g){if(g=e.offset-g,g>e.whave&&e.sane){n.msg="invalid distance too far back",e.mode=Oe;break}g>e.wnext?(g-=e.wnext,P=e.wsize-g):P=e.wnext-g,g>e.length&&(g=e.length),C=e.window}else C=a,P=f-e.offset,g=e.length;g>u&&(g=u),u-=g,e.length-=g;do a[f++]=C[P++];while(--g);e.length===0&&(e.mode=_o);break;case Lu:if(u===0)break t;a[f++]=e.length,u--,e.mode=_o;break;case Ss:if(e.wrap){for(;p<32;){if(l===0)break t;l--,h|=r[i++]<<p,p+=8}if(x-=u,n.total_out+=x,e.total+=x,e.wrap&4&&x&&(n.adler=e.check=e.flags?hr(e.check,a,x,f-x):Xs(e.check,a,x,f-x)),x=u,e.wrap&4&&(e.flags?h:Pu(h))!==e.check){n.msg="incorrect data check",e.mode=Oe;break}h=0,p=0}e.mode=Su;case Su:if(e.wrap&&e.flags){for(;p<32;){if(l===0)break t;l--,h+=r[i++]<<p,p+=8}if(e.wrap&4&&h!==(e.total&4294967295)){n.msg="incorrect length check",e.mode=Oe;break}h=0,p=0}e.mode=ku;case ku:K=e1;break t;case Oe:K=Pf;break t;case Ff:return Cf;case If:default:return Hn}return n.next_out=f,n.avail_out=u,n.next_in=i,n.avail_in=l,e.hold=h,e.bits=p,(e.wsize||x!==n.avail_out&&e.mode<Oe&&(e.mode<Ss||t!==au))&&Df(n,n.output,n.next_out,x-n.avail_out),w-=n.avail_in,x-=n.avail_out,n.total_in+=w,n.total_out+=x,e.total+=x,e.wrap&4&&x&&(n.adler=e.check=e.flags?hr(e.check,a,x,n.next_out-x):Xs(e.check,a,x,n.next_out-x)),n.data_type=e.bits+(e.last?64:0)+(e.mode===jr?128:0)+(e.mode===Ao||e.mode===Ls?256:0),(w===0&&x===0||t===au)&&K===Si&&(K=r1),K},c1=n=>{if(Pi(n))return Hn;let t=n.state;return t.window&&(t.window=null),n.state=null,Si},d1=(n,t)=>{if(Pi(n))return Hn;const e=n.state;return(e.wrap&2)===0?Hn:(e.head=t,t.done=!1,Si)},p1=(n,t)=>{const e=t.length;let r,a,i;return Pi(n)||(r=n.state,r.wrap!==0&&r.mode!==Bo)?Hn:r.mode===Bo&&(a=1,a=Xs(a,t,e,0),a!==r.check)?Pf:(i=Df(n,t,e,e),i?(r.mode=Ff,Cf):(r.havedict=1,Si))};var g1=Of,v1=jf,m1=Ef,b1=u1,w1=Bf,y1=h1,x1=c1,A1=d1,_1=p1,N1="pako inflate (from Nodeca project)",Br={inflateReset:g1,inflateReset2:v1,inflateResetKeep:m1,inflateInit:b1,inflateInit2:w1,inflate:y1,inflateEnd:x1,inflateGetHeader:A1,inflateSetDictionary:_1,inflateInfo:N1};function L1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var S1=L1;const Rf=Object.prototype.toString,{Z_NO_FLUSH:k1,Z_FINISH:P1,Z_OK:Ba,Z_STREAM_END:Cs,Z_NEED_DICT:Fs,Z_STREAM_ERROR:C1,Z_DATA_ERROR:Fu,Z_MEM_ERROR:F1}=_f;function Da(n){this.options=Nf.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(n&&n.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Gc,this.strm.avail_out=0;let e=Br.inflateInit2(this.strm,t.windowBits);if(e!==Ba)throw new Error($s[e]);if(this.header=new S1,Br.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Zs.string2buf(t.dictionary):Rf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Br.inflateSetDictionary(this.strm,t.dictionary),e!==Ba)))throw new Error($s[e])}Da.prototype.push=function(n,t){const e=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let i,f,l;if(this.ended)return!1;for(t===~~t?f=t:f=t===!0?P1:k1,Rf.call(n)==="[object ArrayBuffer]"?e.input=new Uint8Array(n):e.input=n,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),i=Br.inflate(e,f),i===Fs&&a&&(i=Br.inflateSetDictionary(e,a),i===Ba?i=Br.inflate(e,f):i===Fu&&(i=Fs));e.avail_in>0&&i===Cs&&e.state.wrap>0&&n[e.next_in]!==0;)Br.inflateReset(e),i=Br.inflate(e,f);switch(i){case C1:case Fu:case Fs:case F1:return this.onEnd(i),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||i===Cs))if(this.options.to==="string"){let u=Zs.utf8border(e.output,e.next_out),h=e.next_out-u,p=Zs.buf2string(e.output,u);e.next_out=h,e.avail_out=r-h,h&&e.output.set(e.output.subarray(u,u+h),0),this.onData(p)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===Ba&&l===0)){if(i===Cs)return i=Br.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Da.prototype.onData=function(n){this.chunks.push(n)};Da.prototype.onEnd=function(n){n===Ba&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nf.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function I1(n,t){const e=new Da(t);if(e.push(n),e.err)throw e.msg||$s[e.err];return e.result}var E1=Da,O1=I1,j1={Inflate:E1,inflate:O1};const{Inflate:B1,inflate:D1}=j1;var Iu=B1,R1=D1;const Mf=[];for(let n=0;n<256;n++){let t=n;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t=t>>>1;Mf[n]=t}const Eu=4294967295;function M1(n,t,e){let r=n;for(let a=0;a<e;a++)r=Mf[(r^t[a])&255]^r>>>8;return r}function T1(n,t){return(M1(Eu,n,t)^Eu)>>>0}function Ou(n,t,e){const r=n.readUint32(),a=T1(new Uint8Array(n.buffer,n.byteOffset+n.offset-t-4,t),t);if(a!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${a}`)}function Tf(n,t,e){for(let r=0;r<e;r++)t[r]=n[r]}function qf(n,t,e,r){let a=0;for(;a<r;a++)t[a]=n[a];for(;a<e;a++)t[a]=n[a]+t[a-r]&255}function Uf(n,t,e,r){let a=0;if(e.length===0)for(;a<r;a++)t[a]=n[a];else for(;a<r;a++)t[a]=n[a]+e[a]&255}function zf(n,t,e,r,a){let i=0;if(e.length===0){for(;i<a;i++)t[i]=n[i];for(;i<r;i++)t[i]=n[i]+(t[i-a]>>1)&255}else{for(;i<a;i++)t[i]=n[i]+(e[i]>>1)&255;for(;i<r;i++)t[i]=n[i]+(t[i-a]+e[i]>>1)&255}}function Hf(n,t,e,r,a){let i=0;if(e.length===0){for(;i<a;i++)t[i]=n[i];for(;i<r;i++)t[i]=n[i]+t[i-a]&255}else{for(;i<a;i++)t[i]=n[i]+e[i]&255;for(;i<r;i++)t[i]=n[i]+q1(t[i-a],e[i],e[i-a])&255}}function q1(n,t,e){const r=n+t-e,a=Math.abs(r-n),i=Math.abs(r-t),f=Math.abs(r-e);return a<=i&&a<=f?n:i<=f?t:e}function U1(n,t,e,r,a,i){switch(n){case 0:Tf(t,e,a);break;case 1:qf(t,e,a,i);break;case 2:Uf(t,e,r,a);break;case 3:zf(t,e,r,a,i);break;case 4:Hf(t,e,r,a,i);break;default:throw new Error(`Unsupported filter: ${n}`)}}const z1=new Uint16Array([255]),H1=new Uint8Array(z1.buffer),W1=H1[0]===255;function G1(n){const{data:t,width:e,height:r,channels:a,depth:i}=n,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(i/8)*a,u=new Uint8Array(r*e*l);let h=0;for(let p=0;p<7;p++){const w=f[p],x=Math.ceil((e-w.x)/w.xStep),g=Math.ceil((r-w.y)/w.yStep);if(x<=0||g<=0)continue;const P=x*l,C=new Uint8Array(P);for(let B=0;B<g;B++){const S=t[h++],G=t.subarray(h,h+P);h+=P;const V=new Uint8Array(P);U1(S,G,V,C,P,l),C.set(V);for(let T=0;T<x;T++){const it=w.x+T*w.xStep,vt=w.y+B*w.yStep;if(!(it>=e||vt>=r))for(let ct=0;ct<l;ct++)u[(vt*e+it)*l+ct]=V[T*l+ct]}}}if(i===16){const p=new Uint16Array(u.buffer);if(W1)for(let w=0;w<p.length;w++)p[w]=V1(p[w]);return p}else return u}function V1(n){return(n&255)<<8|n>>8&255}const Y1=new Uint16Array([255]),J1=new Uint8Array(Y1.buffer),K1=J1[0]===255,X1=new Uint8Array(0);function ju(n){const{data:t,width:e,height:r,channels:a,depth:i}=n,f=Math.ceil(i/8)*a,l=Math.ceil(i/8*a*e),u=new Uint8Array(r*l);let h=X1,p=0,w,x;for(let g=0;g<r;g++){switch(w=t.subarray(p+1,p+1+l),x=u.subarray(g*l,(g+1)*l),t[p]){case 0:Tf(w,x,l);break;case 1:qf(w,x,l,f);break;case 2:Uf(w,x,h,l);break;case 3:zf(w,x,h,l,f);break;case 4:Hf(w,x,h,l,f);break;default:throw new Error(`Unsupported filter: ${t[p]}`)}h=x,p+=l+1}if(i===16){const g=new Uint16Array(u.buffer);if(K1)for(let P=0;P<g.length;P++)g[P]=$1(g[P]);return g}else return u}function $1(n){return(n&255)<<8|n>>8&255}const Po=Uint8Array.of(137,80,78,71,13,10,26,10);function Bu(n){if(!Z1(n.readBytes(Po.length)))throw new Error("wrong PNG signature")}function Z1(n){if(n.length<Po.length)return!1;for(let t=0;t<Po.length;t++)if(n[t]!==Po[t])return!1;return!0}const Q1="tEXt",t2=0,Wf=new TextDecoder("latin1");function e2(n){if(r2(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const n2=/^[\u0000-\u00FF]*$/;function r2(n){if(!n2.test(n))throw new Error("invalid latin1 text")}function i2(n,t,e){const r=Gf(t);n[r]=a2(t,e-r.length-1)}function Gf(n){for(n.mark();n.readByte()!==t2;);const t=n.offset;n.reset();const e=Wf.decode(n.readBytes(t-n.offset-1));return n.skip(1),e2(e),e}function a2(n,t){return Wf.decode(n.readBytes(t))}const En={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Is={UNKNOWN:-1,DEFLATE:0},Du={UNKNOWN:-1,ADAPTIVE:0},Es={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},No={NONE:0,BACKGROUND:1,PREVIOUS:2},Os={SOURCE:0,OVER:1};class o2 extends ul{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,e={}){super(t);const{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new Iu,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=Is.UNKNOWN,this._filterMethod=Du.UNKNOWN,this._interlaceMethod=Es.UNKNOWN,this._colorType=En.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Bu(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeChunk(t,e)}return this.decodeImage(),this._png}decodeApng(){for(Bu(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(t,e)}return this.decodeApngImage(),this._apng}decodeChunk(t,e){const r=this.offset;switch(e){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 Q1:i2(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Ou(this,t+4,e):this.skip(4)}decodeApngChunk(t,e){const r=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,e),this.offset=r+t;break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Ou(this,t+4,e):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=s2(this.readUint8());const e=this.readUint8();this._colorType=e;let r;switch(e){case En.GREYSCALE:r=1;break;case En.TRUECOLOUR:r=3;break;case En.INDEXED_COLOUR:r=1;break;case En.GREYSCALE_ALPHA:r=2;break;case En.TRUECOLOUR_ALPHA:r=4;break;case En.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==Is.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const e=t/3;this._hasPalette=!0;const r=[];this._palette=r;for(let a=0;a<e;a++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const e=t,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let e=t,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case En.GREYSCALE:case En.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 e=0;e<t/2;e++)this._transparency[e]=this.readUint16();break}case En.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 e=0;for(;e<t;e++){const r=this.readByte();this._palette[e].push(r)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case En.UNKNOWN:case En.GREYSCALE_ALPHA:case En.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const e=Gf(this),r=this.readUint8();if(r!==Is.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const a=this.readBytes(t-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:R1(a)}}decodepHYs(){const t=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:t,y:e,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const e={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)},r=this._frames.at(t);if(r){if(r.data=ju({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(r,a,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(t,e,r){switch(t.disposeOp){case No.NONE:break;case No.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let i=0;i<this._png.width;i++){const f=(a*t.width+i)*this._png.channels;for(let l=0;l<this._png.channels;l++)r.data[f+l]=0}break;case No.PREVIOUS:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,e){const r=1<<this._png.depth,a=(i,f)=>{const l=((i+e.yOffset)*this._png.width+e.xOffset+f)*this._png.channels,u=(i*e.width+f)*this._png.channels;return{index:l,frameIndex:u}};switch(e.blendOp){case Os.SOURCE:for(let i=0;i<e.height;i++)for(let f=0;f<e.width;f++){const{index:l,frameIndex:u}=a(i,f);for(let h=0;h<this._png.channels;h++)t.data[l+h]=e.data[u+h]}break;case Os.OVER:for(let i=0;i<e.height;i++)for(let f=0;f<e.width;f++){const{index:l,frameIndex:u}=a(i,f);for(let h=0;h<this._png.channels;h++){const p=e.data[u+this._png.channels-1]/r,w=h%(this._png.channels-1)===0?1:e.data[u+h],x=Math.floor(p*w+(1-p)*t.data[l+h]);t.data[l+h]+=x}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Du.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Es.NO_INTERLACE)this._png.data=ju({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Es.ADAM7)this._png.data=G1({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(){const t=this._inflator.result,e=this._frames.at(-1);e?e.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:No.NONE,blendOp:Os.SOURCE,data:t}),this._inflator=new Iu,this._writingDataChunks=!1}}function s2(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}var Ru;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(Ru||(Ru={}));function l2(n,t){return new o2(n,t).decode()}var Jt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function js(){Jt.console&&typeof Jt.console.log=="function"&&Jt.console.log.apply(Jt.console,arguments)}var Le={log:js,warn:function(n){Jt.console&&(typeof Jt.console.warn=="function"?Jt.console.warn.apply(Jt.console,arguments):js.call(null,arguments))},error:function(n){Jt.console&&(typeof Jt.console.error=="function"?Jt.console.error.apply(Jt.console,arguments):js(n))}};function Bs(n,t,e){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Ai(r.response,t,e)},r.onerror=function(){Le.error("could not download file")},r.send()}function Mu(n){var t=new XMLHttpRequest;t.open("HEAD",n,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Lo(n){try{n.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),n.dispatchEvent(t)}}var Ai=Jt.saveAs||((typeof window>"u"?"undefined":ye(window))!=="object"||window!==Jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,t,e){var r=Jt.URL||Jt.webkitURL,a=document.createElement("a");t=t||n.name||"download",a.download=t,a.rel="noopener",typeof n=="string"?(a.href=n,a.origin!==location.origin?Mu(a.href)?Bs(n,t,e):Lo(a,a.target="_blank"):Lo(a)):(a.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){Lo(a)},0))}:"msSaveOrOpenBlob"in navigator?function(n,t,e){if(t=t||n.name||"download",typeof n=="string")if(Mu(n))Bs(n,t,e);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){Lo(r)})}else navigator.msSaveOrOpenBlob((function(a,i){return i===void 0?i={autoBom:!1}:ye(i)!=="object"&&(Le.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(n,e),t)}:function(n,t,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return Bs(n,t,e);var a=n.type==="application/octet-stream",i=/constructor/i.test(Jt.HTMLElement)||Jt.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||a&&i)&&(typeof FileReader>"u"?"undefined":ye(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var p=l.result;p=f?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=p:location=p,r=null},l.readAsDataURL(n)}else{var u=Jt.URL||Jt.webkitURL,h=u.createObjectURL(n);r?r.location=h:location.href=h,r=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});function Vf(n){var t;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var a=e[r].re,i=e[r].process,f=a.exec(n);f&&(t=i(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),h=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),h.length==1&&(h="0"+h),"#"+l+u+h}}var Co=Jt.atob.bind(Jt),Tu=Jt.btoa.bind(Jt);function Ds(n,t){var e=n[0],r=n[1],a=n[2],i=n[3];e=dn(e,r,a,i,t[0],7,-680876936),i=dn(i,e,r,a,t[1],12,-389564586),a=dn(a,i,e,r,t[2],17,606105819),r=dn(r,a,i,e,t[3],22,-1044525330),e=dn(e,r,a,i,t[4],7,-176418897),i=dn(i,e,r,a,t[5],12,1200080426),a=dn(a,i,e,r,t[6],17,-1473231341),r=dn(r,a,i,e,t[7],22,-45705983),e=dn(e,r,a,i,t[8],7,1770035416),i=dn(i,e,r,a,t[9],12,-1958414417),a=dn(a,i,e,r,t[10],17,-42063),r=dn(r,a,i,e,t[11],22,-1990404162),e=dn(e,r,a,i,t[12],7,1804603682),i=dn(i,e,r,a,t[13],12,-40341101),a=dn(a,i,e,r,t[14],17,-1502002290),e=pn(e,r=dn(r,a,i,e,t[15],22,1236535329),a,i,t[1],5,-165796510),i=pn(i,e,r,a,t[6],9,-1069501632),a=pn(a,i,e,r,t[11],14,643717713),r=pn(r,a,i,e,t[0],20,-373897302),e=pn(e,r,a,i,t[5],5,-701558691),i=pn(i,e,r,a,t[10],9,38016083),a=pn(a,i,e,r,t[15],14,-660478335),r=pn(r,a,i,e,t[4],20,-405537848),e=pn(e,r,a,i,t[9],5,568446438),i=pn(i,e,r,a,t[14],9,-1019803690),a=pn(a,i,e,r,t[3],14,-187363961),r=pn(r,a,i,e,t[8],20,1163531501),e=pn(e,r,a,i,t[13],5,-1444681467),i=pn(i,e,r,a,t[2],9,-51403784),a=pn(a,i,e,r,t[7],14,1735328473),e=gn(e,r=pn(r,a,i,e,t[12],20,-1926607734),a,i,t[5],4,-378558),i=gn(i,e,r,a,t[8],11,-2022574463),a=gn(a,i,e,r,t[11],16,1839030562),r=gn(r,a,i,e,t[14],23,-35309556),e=gn(e,r,a,i,t[1],4,-1530992060),i=gn(i,e,r,a,t[4],11,1272893353),a=gn(a,i,e,r,t[7],16,-155497632),r=gn(r,a,i,e,t[10],23,-1094730640),e=gn(e,r,a,i,t[13],4,681279174),i=gn(i,e,r,a,t[0],11,-358537222),a=gn(a,i,e,r,t[3],16,-722521979),r=gn(r,a,i,e,t[6],23,76029189),e=gn(e,r,a,i,t[9],4,-640364487),i=gn(i,e,r,a,t[12],11,-421815835),a=gn(a,i,e,r,t[15],16,530742520),e=vn(e,r=gn(r,a,i,e,t[2],23,-995338651),a,i,t[0],6,-198630844),i=vn(i,e,r,a,t[7],10,1126891415),a=vn(a,i,e,r,t[14],15,-1416354905),r=vn(r,a,i,e,t[5],21,-57434055),e=vn(e,r,a,i,t[12],6,1700485571),i=vn(i,e,r,a,t[3],10,-1894986606),a=vn(a,i,e,r,t[10],15,-1051523),r=vn(r,a,i,e,t[1],21,-2054922799),e=vn(e,r,a,i,t[8],6,1873313359),i=vn(i,e,r,a,t[15],10,-30611744),a=vn(a,i,e,r,t[6],15,-1560198380),r=vn(r,a,i,e,t[13],21,1309151649),e=vn(e,r,a,i,t[4],6,-145523070),i=vn(i,e,r,a,t[11],10,-1120210379),a=vn(a,i,e,r,t[2],15,718787259),r=vn(r,a,i,e,t[9],21,-343485551),n[0]=ni(e,n[0]),n[1]=ni(r,n[1]),n[2]=ni(a,n[2]),n[3]=ni(i,n[3])}function Uo(n,t,e,r,a,i){return t=ni(ni(t,n),ni(r,i)),ni(t<<a|t>>>32-a,e)}function dn(n,t,e,r,a,i,f){return Uo(t&e|~t&r,n,t,a,i,f)}function pn(n,t,e,r,a,i,f){return Uo(t&r|e&~r,n,t,a,i,f)}function gn(n,t,e,r,a,i,f){return Uo(t^e^r,n,t,a,i,f)}function vn(n,t,e,r,a,i,f){return Uo(e^(t|~r),n,t,a,i,f)}function Yf(n){var t,e=n.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=n.length;t+=64)Ds(r,u2(n.substring(t-64,t)));n=n.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<n.length;t++)a[t>>2]|=n.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(Ds(r,a),t=0;t<16;t++)a[t]=0;return a[14]=8*e,Ds(r,a),r}function u2(n){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=n.charCodeAt(t)+(n.charCodeAt(t+1)<<8)+(n.charCodeAt(t+2)<<16)+(n.charCodeAt(t+3)<<24);return e}var qu="0123456789abcdef".split("");function f2(n){for(var t="",e=0;e<4;e++)t+=qu[n>>8*e+4&15]+qu[n>>8*e&15];return t}function h2(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Qs(n){return Yf(n).map(h2).join("")}var c2=(function(n){for(var t=0;t<n.length;t++)n[t]=f2(n[t]);return n.join("")})(Yf("hello"))!="5d41402abc4b2a76b9719d911017c592";function ni(n,t){if(c2){var e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}return n+t&4294967295}function tl(n,t){var e,r,a,i;if(n!==e){for(var f=(a=n,i=1+(256/n.length|0),new Array(i+1).join(a)),l=[],u=0;u<256;u++)l[u]=u;var h=0;for(u=0;u<256;u++){var p=l[u];h=(h+p+f.charCodeAt(u))%256,l[u]=l[h],l[h]=p}e=n,r=l}else l=r;var w=t.length,x=0,g=0,P="";for(u=0;u<w;u++)g=(g+(p=l[x=(x+1)%256]))%256,l[x]=l[g],l[g]=p,f=l[(l[x]+l[g])%256],P+=String.fromCharCode(t.charCodeAt(u)^f);return P}var Uu={print:4,modify:8,copy:16,"annot-forms":32};function Vi(n,t,e,r){this.v=1,this.r=2;var a=192;n.forEach(function(l){if(Uu.perm!==void 0)throw new Error("Invalid permission: "+l);a+=Uu[l]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),f=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,f),this.P=-(1+(255^a)),this.encryptionKey=Qs(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=tl(this.encryptionKey,this.padding)}function Yi(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var t="",e=n.length,r=0;r<e;r++){var a=n.charCodeAt(r);t+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):n[r]}return t}function zu(n){if(ye(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,a){if(a=a||!1,typeof e!="string"||typeof r!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[r,!!a],i},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var i in t[e]){var f=t[e][i];try{f[0].apply(n,r)}catch(l){Jt.console&&Le.error("jsPDF PubSub Error",l.message,l)}f[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Do(n){if(!(this instanceof Do))return new Do(n);var t="opacity,stroke-opacity".split(",");for(var e in n)n.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=n[e]);this.id="",this.objectNumber=-1}function Jf(n,t){this.gState=n,this.matrix=t,this.id="",this.objectNumber=-1}function _i(n,t,e,r,a){if(!(this instanceof _i))return new _i(n,t,e,r,a);this.type=n==="axial"?2:3,this.coords=t,this.colors=e,Jf.call(this,r,a)}function Ji(n,t,e,r,a){if(!(this instanceof Ji))return new Ji(n,t,e,r,a);this.boundingBox=n,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,Jf.call(this,r,a)}function Rt(n){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],i=arguments[3],f=[],l=1,u=16,h="S",p=null;ye(n=n||{})==="object"&&(e=n.orientation,r=n.unit||r,a=n.format||a,i=n.compress||n.compressPdf||i,(p=n.encryption||null)!==null&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),l=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(t=n.precision),n.floatPrecision!==void 0&&(u=n.floatPrecision),h=n.defaultPathOperation||"S"),f=n.filters||(i===!0?["FlateEncode"]:f),r=r||"mm",e=(""+(e||"P")).toLowerCase();var w=n.putOnlyUsedFonts||!1,x={},g={internal:{},__private__:{}};g.__private__.PubSub=zu;var P="1.3",C=g.__private__.getPdfVersion=function(){return P};g.__private__.setPdfVersion=function(c){P=c};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return B};var S=g.__private__.getPageFormat=function(c){return B[c]};a=a||"a4";var G="compat",V="advanced",T=G;function it(){this.saveGraphicsState(),F(new Vt(ee,0,0,-ee,0,ci()*ee).toString()+" cm"),this.setFontSize(this.getFontSize()/ee),h="n",T=V}function vt(){this.restoreGraphicsState(),h="S",T=G}var ct=g.__private__.combineFontStyleAndFontWeight=function(c,m){if(c=="bold"&&m=="normal"||c=="bold"&&m==400||c=="normal"&&m=="italic"||c=="bold"&&m=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return m&&(c=m==400||m==="normal"?c==="italic"?"italic":"normal":m!=700&&m!=="bold"||c!=="normal"?(m==700?"bold":m)+""+c:"bold"),c};g.advancedAPI=function(c){var m=T===G;return m&&it.call(this),typeof c!="function"||(c(this),m&&vt.call(this)),this},g.compatAPI=function(c){var m=T===V;return m&&vt.call(this),typeof c!="function"||(c(this),m&&it.call(this)),this},g.isAdvancedAPI=function(){return T===V};var K,R=function(c){if(T!==V)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},tt=g.roundToPrecision=g.__private__.roundToPrecision=function(c,m){var j=t||m;if(isNaN(c)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(j).replace(/0+$/,"")};K=g.hpf=g.__private__.hpf=typeof u=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(c,u)}:u==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(c,16)};var L=g.f2=g.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return tt(c,2)},O=g.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return tt(c,3)},z=g.scale=g.__private__.scale=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.scale");return T===G?c*ee:T===V?c:void 0},U=function(c){return z((function(m){return T===G?ci()-m:T===V?m:void 0})(c))};g.__private__.setPrecision=g.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(t=parseInt(c,10))};var rt,st="00000000000000000000000000000000",ut=g.__private__.getFileId=function(){return st},nt=g.__private__.setFileId=function(c){return st=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():st.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),p!==null&&(Xe=new Vi(p.userPermissions,p.userPassword,p.ownerPassword,st)),st};g.setFileId=function(c){return nt(c),this},g.getFileId=function(){return ut()};var ht=g.__private__.convertDateToPDFDate=function(c){var m=c.getTimezoneOffset(),j=m<0?"+":"-",q=Math.floor(Math.abs(m/60)),X=Math.abs(m%60),dt=[j,M(q),"'",M(X),"'"].join("");return["D:",c.getFullYear(),M(c.getMonth()+1),M(c.getDate()),M(c.getHours()),M(c.getMinutes()),M(c.getSeconds()),dt].join("")},_t=g.__private__.convertPDFDateToDate=function(c){var m=parseInt(c.substr(2,4),10),j=parseInt(c.substr(6,2),10)-1,q=parseInt(c.substr(8,2),10),X=parseInt(c.substr(10,2),10),dt=parseInt(c.substr(12,2),10),mt=parseInt(c.substr(14,2),10);return new Date(m,j,q,X,dt,mt,0)},wt=g.__private__.setCreationDate=function(c){var m;if(c===void 0&&(c=new Date),c instanceof Date)m=ht(c);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(c))throw new Error("Invalid argument passed to jsPDF.setCreationDate");m=c}return rt=m},_=g.__private__.getCreationDate=function(c){var m=rt;return c==="jsDate"&&(m=_t(rt)),m};g.setCreationDate=function(c){return wt(c),this},g.getCreationDate=function(c){return _(c)};var D,M=g.__private__.padd2=function(c){return("0"+parseInt(c)).slice(-2)},H=g.__private__.padd2Hex=function(c){return("00"+(c=c.toString())).substr(c.length)},J=0,Z=[],at=[],ot=0,gt=[],At=[],kt=!1,St=at;g.__private__.setCustomOutputDestination=function(c){kt=!0,St=c};var Tt=function(c){kt||(St=c)};g.__private__.resetCustomOutputDestination=function(){kt=!1,St=at};var F=g.__private__.out=function(c){return c=c.toString(),ot+=c.length+1,St.push(c),St},Lt=g.__private__.write=function(c){return F(arguments.length===1?c.toString():Array.prototype.join.call(arguments," "))},ae=g.__private__.getArrayBuffer=function(c){for(var m=c.length,j=new ArrayBuffer(m),q=new Uint8Array(j);m--;)q[m]=c.charCodeAt(m);return j},Ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return Ht};var yt=n.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(c){return yt=T===V?c/ee:c,this};var Wt,Ct=g.__private__.getFontSize=g.getFontSize=function(){return T===G?yt:yt*ee},zt=n.R2L||!1;g.__private__.setR2L=g.setR2L=function(c){return zt=c,this},g.__private__.getR2L=g.getR2L=function(){return zt};var qt,me=g.__private__.setZoomMode=function(c){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(c))Wt=c;else if(isNaN(c)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(c)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+c+'" is not recognized.');Wt=c}else Wt=parseInt(c,10)};g.__private__.getZoomMode=function(){return Wt};var ue,Zt=g.__private__.setPageMode=function(c){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(c)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+c+'" is not recognized.');qt=c};g.__private__.getPageMode=function(){return qt};var he=g.__private__.setLayoutMode=function(c){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(c)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+c+'" is not recognized.');ue=c};g.__private__.getLayoutMode=function(){return ue},g.__private__.setDisplayMode=g.setDisplayMode=function(c,m,j){return me(c),he(m),Zt(j),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(c){if(Object.keys(fe).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[c]},g.__private__.getDocumentProperties=function(){return fe},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(c){for(var m in fe)fe.hasOwnProperty(m)&&c[m]&&(fe[m]=c[m]);return this},g.__private__.setDocumentProperty=function(c,m){if(Object.keys(fe).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[c]=m};var jt,ee,Mt,Te,pe,oe={},se={},Ie=[],Ut={},Se={},Yt={},Qt={},Ee=null,le=0,Gt=[],be=new zu(g),ii=n.hotfixes||[],hn={},gr={},nr=[],Vt=function c(m,j,q,X,dt,mt){if(!(this instanceof c))return new c(m,j,q,X,dt,mt);isNaN(m)&&(m=1),isNaN(j)&&(j=0),isNaN(q)&&(q=0),isNaN(X)&&(X=1),isNaN(dt)&&(dt=0),isNaN(mt)&&(mt=0),this._matrix=[m,j,q,X,dt,mt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(c){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(c)},Vt.prototype.multiply=function(c){var m=c.sx*this.sx+c.shy*this.shx,j=c.sx*this.shy+c.shy*this.sy,q=c.shx*this.sx+c.sy*this.shx,X=c.shx*this.shy+c.sy*this.sy,dt=c.tx*this.sx+c.ty*this.shx+this.tx,mt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Vt(m,j,q,X,dt,mt)},Vt.prototype.decompose=function(){var c=this.sx,m=this.shy,j=this.shx,q=this.sy,X=this.tx,dt=this.ty,mt=Math.sqrt(c*c+m*m),It=(c/=mt)*j+(m/=mt)*q;j-=c*It,q-=m*It;var Bt=Math.sqrt(j*j+q*q);return It/=Bt,c*(q/=Bt)<m*(j/=Bt)&&(c=-c,m=-m,It=-It,mt=-mt),{scale:new Vt(mt,0,0,Bt,0,0),translate:new Vt(1,0,0,1,X,dt),rotate:new Vt(c,m,-m,c,0,0),skew:new Vt(1,0,It,1,0,0)}},Vt.prototype.toString=function(c){return this.join(" ")},Vt.prototype.inversed=function(){var c=this.sx,m=this.shy,j=this.shx,q=this.sy,X=this.tx,dt=this.ty,mt=1/(c*q-m*j),It=q*mt,Bt=-m*mt,Kt=-j*mt,ne=c*mt;return new Vt(It,Bt,Kt,ne,-It*X-Kt*dt,-Bt*X-ne*dt)},Vt.prototype.applyToPoint=function(c){var m=c.x*this.sx+c.y*this.shx+this.tx,j=c.x*this.shy+c.y*this.sy+this.ty;return new Ar(m,j)},Vt.prototype.applyToRectangle=function(c){var m=this.applyToPoint(c),j=this.applyToPoint(new Ar(c.x+c.w,c.y+c.h));return new ua(m.x,m.y,j.x-m.x,j.y-m.y)},Vt.prototype.clone=function(){var c=this.sx,m=this.shy,j=this.shx,q=this.sy,X=this.tx,dt=this.ty;return new Vt(c,m,j,q,X,dt)},g.Matrix=Vt;var vr=g.matrixMult=function(c,m){return m.multiply(c)},mr=new Vt(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=mr;var jn=function(c,m){if(!Se[c]){var j=(m instanceof _i?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);m.id=j,Se[c]=j,Ut[j]=m,be.publish("addPattern",m)}};g.ShadingPattern=_i,g.TilingPattern=Ji,g.addShadingPattern=function(c,m){return R("addShadingPattern()"),jn(c,m),this},g.beginTilingPattern=function(c){R("beginTilingPattern()"),fa(c.boundingBox[0],c.boundingBox[1],c.boundingBox[2]-c.boundingBox[0],c.boundingBox[3]-c.boundingBox[1],c.matrix)},g.endTilingPattern=function(c,m){R("endTilingPattern()"),m.stream=At[D].join(`
|
|
3
|
-
`),jn(c,m),be.publish("endTilingPattern",m),nr.pop().restore()};var Bn,Be=g.__private__.newObject=function(){var c=nn();return an(c,!0),c},nn=g.__private__.newObjectDeferred=function(){return J++,Z[J]=function(){return ot},J},an=function(c,m){return m=typeof m=="boolean"&&m,Z[c]=ot,m&&F(c+" 0 obj"),c},ai=g.__private__.newAdditionalObject=function(){var c={objId:nn(),content:""};return gt.push(c),c},Mr=nn(),Wn=nn(),rr=g.__private__.decodeColorString=function(c){var m=c.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 j=parseFloat(m[0]);m=[j,j,j,"r"]}for(var q="#",X=0;X<3;X++)q+=("0"+Math.floor(255*parseFloat(m[X])).toString(16)).slice(-2);return q},Gn=g.__private__.encodeColorString=function(c){var m;typeof c=="string"&&(c={ch1:c});var j=c.ch1,q=c.ch2,X=c.ch3,dt=c.ch4,mt=c.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof j=="string"&&j.charAt(0)!=="#"){var It=new Vf(j);if(It.ok)j=It.toHex();else if(!/^\d*\.?\d*$/.test(j))throw new Error('Invalid color "'+j+'" passed to jsPDF.encodeColorString.')}if(typeof j=="string"&&/^#[0-9A-Fa-f]{3}$/.test(j)&&(j="#"+j[1]+j[1]+j[2]+j[2]+j[3]+j[3]),typeof j=="string"&&/^#[0-9A-Fa-f]{6}$/.test(j)){var Bt=parseInt(j.substr(1),16);j=Bt>>16&255,q=Bt>>8&255,X=255&Bt}if(q===void 0||dt===void 0&&j===q&&q===X)m=typeof j=="string"?j+" "+mt[0]:c.precision===2?L(j/255)+" "+mt[0]:O(j/255)+" "+mt[0];else if(dt===void 0||ye(dt)==="object"){if(dt&&!isNaN(dt.a)&&dt.a===0)return["1.","1.","1.",mt[1]].join(" ");m=typeof j=="string"?[j,q,X,mt[1]].join(" "):c.precision===2?[L(j/255),L(q/255),L(X/255),mt[1]].join(" "):[O(j/255),O(q/255),O(X/255),mt[1]].join(" ")}else m=typeof j=="string"?[j,q,X,dt,mt[2]].join(" "):c.precision===2?[L(j),L(q),L(X),L(dt),mt[2]].join(" "):[O(j),O(q),O(X),O(dt),mt[2]].join(" ");return m},Vn=g.__private__.getFilters=function(){return f},Dn=g.__private__.putStream=function(c){var m=(c=c||{}).data||"",j=c.filters||Vn(),q=c.alreadyAppliedFilters||[],X=c.addLength1||!1,dt=m.length,mt=c.objectId,It=function($e){return $e};if(p!==null&&mt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");p!==null&&(It=Xe.encryptor(mt,0));var Bt={};j===!0&&(j=["FlateEncode"]);var Kt=c.additionalKeyValues||[],ne=(Bt=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(m,j):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(Bt.data.length!==0&&(Kt.push({key:"Length",value:Bt.data.length}),X===!0&&Kt.push({key:"Length1",value:dt})),ne.length!=0)if(ne.split("/").length-1==1)Kt.push({key:"Filter",value:ne});else{Kt.push({key:"Filter",value:"["+ne+"]"});for(var ge=0;ge<Kt.length;ge+=1)if(Kt[ge].key==="DecodeParms"){for(var je=[],Je=0;Je<Bt.reverseChain.split("/").length-1;Je+=1)je.push("null");je.push(Kt[ge].value),Kt[ge].value="["+je.join(" ")+"]"}}F("<<");for(var ke=0;ke<Kt.length;ke++)F("/"+Kt[ke].key+" "+Kt[ke].value);F(">>"),Bt.data.length!==0&&(F("stream"),F(It(Bt.data)),F("endstream"))},oi=g.__private__.putPage=function(c){var m=c.number,j=c.data,q=c.objId,X=c.contentsObjId;an(q,!0),F("<</Type /Page"),F("/Parent "+c.rootDictionaryObjId+" 0 R"),F("/Resources "+c.resourceDictionaryObjId+" 0 R"),F("/MediaBox ["+parseFloat(K(c.mediaBox.bottomLeftX))+" "+parseFloat(K(c.mediaBox.bottomLeftY))+" "+K(c.mediaBox.topRightX)+" "+K(c.mediaBox.topRightY)+"]"),c.cropBox!==null&&F("/CropBox ["+K(c.cropBox.bottomLeftX)+" "+K(c.cropBox.bottomLeftY)+" "+K(c.cropBox.topRightX)+" "+K(c.cropBox.topRightY)+"]"),c.bleedBox!==null&&F("/BleedBox ["+K(c.bleedBox.bottomLeftX)+" "+K(c.bleedBox.bottomLeftY)+" "+K(c.bleedBox.topRightX)+" "+K(c.bleedBox.topRightY)+"]"),c.trimBox!==null&&F("/TrimBox ["+K(c.trimBox.bottomLeftX)+" "+K(c.trimBox.bottomLeftY)+" "+K(c.trimBox.topRightX)+" "+K(c.trimBox.topRightY)+"]"),c.artBox!==null&&F("/ArtBox ["+K(c.artBox.bottomLeftX)+" "+K(c.artBox.bottomLeftY)+" "+K(c.artBox.topRightX)+" "+K(c.artBox.topRightY)+"]"),typeof c.userUnit=="number"&&c.userUnit!==1&&F("/UserUnit "+c.userUnit),be.publish("putPage",{objId:q,pageContext:Gt[m],pageNumber:m,page:j}),F("/Contents "+X+" 0 R"),F(">>"),F("endobj");var dt=j.join(`
|
|
4
|
-
`);return T===V&&(dt+=`
|
|
5
|
-
Q`),an(X,!0),Dn({data:dt,filters:Vn(),objectId:X}),F("endobj"),q},ir=g.__private__.putPages=function(){var c,m,j=[];for(c=1;c<=le;c++)Gt[c].objId=nn(),Gt[c].contentsObjId=nn();for(c=1;c<=le;c++)j.push(oi({number:c,data:At[c],objId:Gt[c].objId,contentsObjId:Gt[c].contentsObjId,mediaBox:Gt[c].mediaBox,cropBox:Gt[c].cropBox,bleedBox:Gt[c].bleedBox,trimBox:Gt[c].trimBox,artBox:Gt[c].artBox,userUnit:Gt[c].userUnit,rootDictionaryObjId:Mr,resourceDictionaryObjId:Wn}));an(Mr,!0),F("<</Type /Pages");var q="/Kids [";for(m=0;m<le;m++)q+=j[m]+" 0 R ";F(q+"]"),F("/Count "+le),F(">>"),F("endobj"),be.publish("postPutPages")},si=function(c){be.publish("putFont",{font:c,out:F,newObject:Be,putStream:Dn}),c.isAlreadyPutted!==!0&&(c.objectNumber=Be(),F("<<"),F("/Type /Font"),F("/BaseFont /"+Yi(c.postScriptName)),F("/Subtype /Type1"),typeof c.encoding=="string"&&F("/Encoding /"+c.encoding),F("/FirstChar 32"),F("/LastChar 255"),F(">>"),F("endobj"))},Fi=function(c){c.objectNumber=Be();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[K(c.x),K(c.y),K(c.x+c.width),K(c.y+c.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+c.matrix.toString()+"]"});var j=c.pages[1].join(`
|
|
6
|
-
`);Dn({data:j,additionalKeyValues:m,objectId:c.objectNumber}),F("endobj")},Ii=function(c,m){m||(m=21);var j=Be(),q=(function(mt,It){var Bt,Kt=[],ne=1/(It-1);for(Bt=0;Bt<1;Bt+=ne)Kt.push(Bt);if(Kt.push(1),mt[0].offset!=0){var ge={offset:0,color:mt[0].color};mt.unshift(ge)}if(mt[mt.length-1].offset!=1){var je={offset:1,color:mt[mt.length-1].color};mt.push(je)}for(var Je="",ke=0,$e=0;$e<Kt.length;$e++){for(Bt=Kt[$e];Bt>mt[ke+1].offset;)ke++;var Ke=mt[ke].offset,on=(Bt-Ke)/(mt[ke+1].offset-Ke),Lr=mt[ke].color,Jn=mt[ke+1].color;Je+=H(Math.round((1-on)*Lr[0]+on*Jn[0]).toString(16))+H(Math.round((1-on)*Lr[1]+on*Jn[1]).toString(16))+H(Math.round((1-on)*Lr[2]+on*Jn[2]).toString(16))}return Je.trim()})(c.colors,m),X=[];X.push({key:"FunctionType",value:"0"}),X.push({key:"Domain",value:"[0.0 1.0]"}),X.push({key:"Size",value:"["+m+"]"}),X.push({key:"BitsPerSample",value:"8"}),X.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),X.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Dn({data:q,additionalKeyValues:X,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:j}),F("endobj"),c.objectNumber=Be(),F("<< /ShadingType "+c.type),F("/ColorSpace /DeviceRGB");var dt="/Coords ["+K(parseFloat(c.coords[0]))+" "+K(parseFloat(c.coords[1]))+" ";c.type===2?dt+=K(parseFloat(c.coords[2]))+" "+K(parseFloat(c.coords[3])):dt+=K(parseFloat(c.coords[2]))+" "+K(parseFloat(c.coords[3]))+" "+K(parseFloat(c.coords[4]))+" "+K(parseFloat(c.coords[5])),F(dt+="]"),c.matrix&&F("/Matrix ["+c.matrix.toString()+"]"),F("/Function "+j+" 0 R"),F("/Extend [true true]"),F(">>"),F("endobj")},Ei=function(c,m){var j=nn(),q=Be();m.push({resourcesOid:j,objectOid:q}),c.objectNumber=q;var X=[];X.push({key:"Type",value:"/Pattern"}),X.push({key:"PatternType",value:"1"}),X.push({key:"PaintType",value:"1"}),X.push({key:"TilingType",value:"1"}),X.push({key:"BBox",value:"["+c.boundingBox.map(K).join(" ")+"]"}),X.push({key:"XStep",value:K(c.xStep)}),X.push({key:"YStep",value:K(c.yStep)}),X.push({key:"Resources",value:j+" 0 R"}),c.matrix&&X.push({key:"Matrix",value:"["+c.matrix.toString()+"]"}),Dn({data:c.stream,additionalKeyValues:X,objectId:c.objectNumber}),F("endobj")},Ho=function(c){for(var m in c.objectNumber=Be(),F("<<"),c)switch(m){case"opacity":F("/ca "+L(c[m]));break;case"stroke-opacity":F("/CA "+L(c[m]))}F(">>"),F("endobj")},ea=function(c){an(c.resourcesOid,!0),F("<<"),F("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var m in F("/Font <<"),oe)oe.hasOwnProperty(m)&&(w===!1||w===!0&&x.hasOwnProperty(m))&&F("/"+m+" "+oe[m].objectNumber+" 0 R");F(">>")})(),(function(){if(Object.keys(Ut).length>0){for(var m in F("/Shading <<"),Ut)Ut.hasOwnProperty(m)&&Ut[m]instanceof _i&&Ut[m].objectNumber>=0&&F("/"+m+" "+Ut[m].objectNumber+" 0 R");be.publish("putShadingPatternDict"),F(">>")}})(),(function(m){if(Object.keys(Ut).length>0){for(var j in F("/Pattern <<"),Ut)Ut.hasOwnProperty(j)&&Ut[j]instanceof g.TilingPattern&&Ut[j].objectNumber>=0&&Ut[j].objectNumber<m&&F("/"+j+" "+Ut[j].objectNumber+" 0 R");be.publish("putTilingPatternDict"),F(">>")}})(c.objectOid),(function(){if(Object.keys(Yt).length>0){var m;for(m in F("/ExtGState <<"),Yt)Yt.hasOwnProperty(m)&&Yt[m].objectNumber>=0&&F("/"+m+" "+Yt[m].objectNumber+" 0 R");be.publish("putGStateDict"),F(">>")}})(),(function(){for(var m in F("/XObject <<"),hn)hn.hasOwnProperty(m)&&hn[m].objectNumber>=0&&F("/"+m+" "+hn[m].objectNumber+" 0 R");be.publish("putXobjectDict"),F(">>")})(),F(">>"),F("endobj")},Ra=function(c){se[c.fontName]=se[c.fontName]||{},se[c.fontName][c.fontStyle]=c.id},Ma=function(c,m,j,q,X){var dt={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:c,fontName:m,fontStyle:j,encoding:q,isStandardFont:X||!1,metadata:{}};return be.publish("addFont",{font:dt,instance:this}),oe[dt.id]=dt,Ra(dt),dt.id},Rn=g.__private__.pdfEscape=g.pdfEscape=function(c,m){return(function(j,q){var X,dt,mt,It,Bt,Kt,ne,ge,je;if(mt=(q=q||{}).sourceEncoding||"Unicode",Bt=q.outputEncoding,(q.autoencode||Bt)&&oe[jt].metadata&&oe[jt].metadata[mt]&&oe[jt].metadata[mt].encoding&&(It=oe[jt].metadata[mt].encoding,!Bt&&oe[jt].encoding&&(Bt=oe[jt].encoding),!Bt&&It.codePages&&(Bt=It.codePages[0]),typeof Bt=="string"&&(Bt=It[Bt]),Bt)){for(ne=!1,Kt=[],X=0,dt=j.length;X<dt;X++)(ge=Bt[j.charCodeAt(X)])?Kt.push(String.fromCharCode(ge)):Kt.push(j[X]),Kt[X].charCodeAt(0)>>8&&(ne=!0);j=Kt.join("")}for(X=j.length;ne===void 0&&X!==0;)j.charCodeAt(X-1)>>8&&(ne=!0),X--;if(!ne)return j;for(Kt=q.noBOM?[]:[254,255],X=0,dt=j.length;X<dt;X++){if((je=(ge=j.charCodeAt(X))>>8)>>8)throw new Error("Character at position "+X+" of string '"+j+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Kt.push(je),Kt.push(ge-(je<<8))}return String.fromCharCode.apply(void 0,Kt)})(c,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},na=g.__private__.beginPage=function(c){At[++le]=[],Gt[le]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(c[0]),topRightY:Number(c[1])}},qa(le),Tt(At[D])},Ta=function(c,m){var j,q,X;switch(e=m||e,typeof c=="string"&&(j=S(c.toLowerCase()),Array.isArray(j)&&(q=j[0],X=j[1])),Array.isArray(c)&&(q=c[0]*ee,X=c[1]*ee),isNaN(q)&&(q=a[0],X=a[1]),(q>14400||X>14400)&&(Le.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),q=Math.min(14400,q),X=Math.min(14400,X)),a=[q,X],e.substr(0,1)){case"l":X>q&&(a=[X,q]);break;case"p":q>X&&(a=[X,q])}na(a),Xt(aa),F(Di),sa!==0&&F(sa+" J"),la!==0&&F(la+" j"),be.publish("addPage",{pageNumber:le})},ra=function(c){c>0&&c<=le&&(At.splice(c,1),Gt.splice(c,1),le--,D>le&&(D=le),this.setPage(D))},qa=function(c){c>0&&c<=le&&(D=c)},Ua=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return At.length-1},za=function(c,m,j){var q,X=void 0;return j=j||{},c=c!==void 0?c:oe[jt].fontName,m=m!==void 0?m:oe[jt].fontStyle,q=c.toLowerCase(),se[q]!==void 0&&se[q][m]!==void 0?X=se[q][m]:se[c]!==void 0&&se[c][m]!==void 0?X=se[c][m]:j.disableWarning===!1&&Le.warn("Unable to look up font label for font '"+c+"', '"+m+"'. Refer to getFontList() for available fonts."),X||j.noFallback||(X=se.times[m])==null&&(X=se.times.normal),X},ar=g.__private__.putInfo=function(){var c=Be(),m=function(q){return q};for(var j in p!==null&&(m=Xe.encryptor(c,0)),F("<<"),F("/Producer ("+Rn(m("jsPDF "+Rt.version))+")"),fe)fe.hasOwnProperty(j)&&fe[j]&&F("/"+j.substr(0,1).toUpperCase()+j.substr(1)+" ("+Rn(m(fe[j]))+")");F("/CreationDate ("+Rn(m(rt))+")"),F(">>"),F("endobj")},Oi=g.__private__.putCatalog=function(c){var m=(c=c||{}).rootDictionaryObjId||Mr;switch(Be(),F("<<"),F("/Type /Catalog"),F("/Pages "+m+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":F("/OpenAction [3 0 R /FitH null]");break;case"fullheight":F("/OpenAction [3 0 R /FitV null]");break;case"fullpage":F("/OpenAction [3 0 R /Fit]");break;case"original":F("/OpenAction [3 0 R /XYZ null null 1]");break;default:var j=""+Wt;j.substr(j.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&F("/OpenAction [3 0 R /XYZ null null "+L(Wt)+"]")}switch(ue||(ue="continuous"),ue){case"continuous":F("/PageLayout /OneColumn");break;case"single":F("/PageLayout /SinglePage");break;case"two":case"twoleft":F("/PageLayout /TwoColumnLeft");break;case"tworight":F("/PageLayout /TwoColumnRight")}qt&&F("/PageMode /"+qt),be.publish("putCatalog"),F(">>"),F("endobj")},Wo=g.__private__.putTrailer=function(){F("trailer"),F("<<"),F("/Size "+(J+1)),F("/Root "+J+" 0 R"),F("/Info "+(J-1)+" 0 R"),p!==null&&F("/Encrypt "+Xe.oid+" 0 R"),F("/ID [ <"+st+"> <"+st+"> ]"),F(">>")},Ye=g.__private__.putHeader=function(){F("%PDF-"+P),F("%ºß¬à")},Ha=g.__private__.putXRef=function(){var c="0000000000";F("xref"),F("0 "+(J+1)),F("0000000000 65535 f ");for(var m=1;m<=J;m++)typeof Z[m]=="function"?F((c+Z[m]()).slice(-10)+" 00000 n "):Z[m]!==void 0?F((c+Z[m]).slice(-10)+" 00000 n "):F("0000000000 00000 n ")},or=g.__private__.buildDocument=function(){var c;J=0,ot=0,at=[],Z=[],gt=[],Mr=nn(),Wn=nn(),Tt(at),be.publish("buildDocument"),Ye(),ir(),(function(){be.publish("putAdditionalObjects");for(var j=0;j<gt.length;j++){var q=gt[j];an(q.objId,!0),F(q.content),F("endobj")}be.publish("postPutAdditionalObjects")})(),c=[],(function(){for(var j in oe)oe.hasOwnProperty(j)&&(w===!1||w===!0&&x.hasOwnProperty(j))&&si(oe[j])})(),(function(){var j;for(j in Yt)Yt.hasOwnProperty(j)&&Ho(Yt[j])})(),(function(){for(var j in hn)hn.hasOwnProperty(j)&&Fi(hn[j])})(),(function(j){var q;for(q in Ut)Ut.hasOwnProperty(q)&&(Ut[q]instanceof _i?Ii(Ut[q]):Ut[q]instanceof Ji&&Ei(Ut[q],j))})(c),be.publish("putResources"),c.forEach(ea),ea({resourcesOid:Wn,objectOid:Number.MAX_SAFE_INTEGER}),be.publish("postPutResources"),p!==null&&(Xe.oid=Be(),F("<<"),F("/Filter /Standard"),F("/V "+Xe.v),F("/R "+Xe.r),F("/U <"+Xe.toHexString(Xe.U)+">"),F("/O <"+Xe.toHexString(Xe.O)+">"),F("/P "+Xe.P),F(">>"),F("endobj")),ar(),Oi();var m=ot;return Ha(),Wo(),F("startxref"),F(""+m),F("%%EOF"),Tt(At[D]),at.join(`
|
|
7
|
-
`)},ji=g.__private__.getBlob=function(c){return new Blob([ae(c)],{type:"application/pdf"})},Wa=g.output=g.__private__.output=(Bn=function(c,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",c){case void 0:return or();case"save":g.save(m.filename);break;case"arraybuffer":return ae(or());case"blob":return ji(or());case"bloburi":case"bloburl":if(Jt.URL!==void 0&&typeof Jt.URL.createObjectURL=="function")return Jt.URL&&Jt.URL.createObjectURL(ji(or()))||void 0;Le.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var j="",q=or();try{j=Tu(q)}catch{j=Tu(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+m.filename+";base64,"+j;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var X="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",dt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';m.pdfObjectUrl&&(X=m.pdfObjectUrl,dt="");var mt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+X+'"'+dt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(m)+");<\/script></body></html>",It=Jt.open();return It!==null&&It.document.write(mt),It}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var Bt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(m.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+m.filename+'" width="500px" height="400px" /></body></html>',Kt=Jt.open();if(Kt!==null){Kt.document.write(Bt);var ne=this;Kt.document.documentElement.querySelector("#pdfViewer").onload=function(){Kt.document.title=m.filename,Kt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ne.output("bloburl"))}}return Kt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Jt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ge='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",m)+'"></iframe></body></html>',je=Jt.open();if(je!==null&&(je.document.write(ge),je.document.title=m.filename),je||typeof safari>"u")return je;break;case"datauri":case"dataurl":return Jt.document.location.href=this.output("datauristring",m);default:return null}},Bn.foo=function(){try{return Bn.apply(this,arguments)}catch(j){var c=j.stack||"";~c.indexOf(" at ")&&(c=c.split(" at ")[1]);var m="Error in function "+c.split(`
|
|
8
|
-
`)[0].split("<")[0]+": "+j.message;if(!Jt.console)throw new Error(m);Jt.console.error(m,j),Jt.alert&&alert(m)}},Bn.foo.bar=Bn,Bn.foo),Mn=function(c){return Array.isArray(ii)===!0&&ii.indexOf(c)>-1};switch(r){case"pt":ee=1;break;case"mm":ee=72/25.4;break;case"cm":ee=72/2.54;break;case"in":ee=72;break;case"px":ee=Mn("px_scaling")==1?.75:96/72;break;case"pc":case"em":ee=12;break;case"ex":ee=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);ee=r}var Xe=null;wt(),nt();var br=g.__private__.getPageInfo=g.getPageInfo=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Gt[c].objId,pageNumber:c,pageContext:Gt[c]}},Ga=g.__private__.getPageInfoByObjId=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in Gt)if(Gt[m].objId===c)break;return br(m)},Go=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Gt[D].objId,pageNumber:D,pageContext:Gt[D]}};g.addPage=function(){return Ta.apply(this,arguments),this},g.setPage=function(){return qa.apply(this,arguments),Tt.call(this,At[D]),this},g.insertPage=function(c){return this.addPage(),this.movePage(D,c),this},g.movePage=function(c,m){var j,q;if(c>m){j=At[c],q=Gt[c];for(var X=c;X>m;X--)At[X]=At[X-1],Gt[X]=Gt[X-1];At[m]=j,Gt[m]=q,this.setPage(m)}else if(c<m){j=At[c],q=Gt[c];for(var dt=c;dt<m;dt++)At[dt]=At[dt+1],Gt[dt]=Gt[dt+1];At[m]=j,Gt[m]=q,this.setPage(m)}return this},g.deletePage=function(){return ra.apply(this,arguments),this},g.__private__.text=g.text=function(c,m,j,q,X){var dt,mt,It,Bt,Kt,ne,ge,je,Je,ke=(q=q||{}).scope||this;if(typeof c=="number"&&typeof m=="number"&&(typeof j=="string"||Array.isArray(j))){var $e=j;j=m,m=c,c=$e}if(arguments[3]instanceof Vt==0?(It=arguments[4],Bt=arguments[5],ye(ge=arguments[3])==="object"&&ge!==null||(typeof It=="string"&&(Bt=It,It=null),typeof ge=="string"&&(Bt=ge,ge=null),typeof ge=="number"&&(It=ge,ge=null),q={flags:ge,angle:It,align:Bt})):(R("The transform parameter of text() with a Matrix value"),Je=X),isNaN(m)||isNaN(j)||c==null)throw new Error("Invalid arguments passed to jsPDF.text");if(c.length===0)return ke;var Ke,on="",Lr=typeof q.lineHeightFactor=="number"?q.lineHeightFactor:ui,Jn=ke.internal.scaleFactor;function Sr(we){return we=we.split(" ").join(Array(q.TabLen||9).join(" ")),Rn(we,ge)}function ca(we){for(var _e,Ue=we.concat(),Ze=[],Cr=Ue.length;Cr--;)typeof(_e=Ue.shift())=="string"?Ze.push(_e):Array.isArray(we)&&(_e.length===1||_e[1]===void 0&&_e[2]===void 0)?Ze.push(_e[0]):Ze.push([_e[0],_e[1],_e[2]]);return Ze}function Mi(we,_e){var Ue;if(typeof we=="string")Ue=_e(we)[0];else if(Array.isArray(we)){for(var Ze,Cr,Aa=we.concat(),Ui=[],no=Aa.length;no--;)typeof(Ze=Aa.shift())=="string"?Ui.push(_e(Ze)[0]):Array.isArray(Ze)&&typeof Ze[0]=="string"&&(Cr=_e(Ze[0],Ze[1],Ze[2]),Ui.push([Cr[0],Cr[1],Cr[2]]));Ue=Ui}return Ue}var Tr=!1,di=!0;if(typeof c=="string")Tr=!0;else if(Array.isArray(c)){var pi=c.concat();mt=[];for(var qr,sn=pi.length;sn--;)(typeof(qr=pi.shift())!="string"||Array.isArray(qr)&&typeof qr[0]!="string")&&(di=!1);Tr=di}if(Tr===!1)throw new Error('Type of text must be string or Array. "'+c+'" is not recognized.');typeof c=="string"&&(c=c.match(/[\r?\n]/)?c.split(/\r\n|\r|\n/g):[c]);var gi=yt/ke.internal.scaleFactor,vi=gi*(Lr-1);switch(q.baseline){case"bottom":j-=vi;break;case"top":j+=gi-vi;break;case"hanging":j+=gi-2*vi;break;case"middle":j+=gi/2-vi}if((ne=q.maxWidth||0)>0&&(typeof c=="string"?c=ke.splitTextToSize(c,ne):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(we,_e){return we.concat(ke.splitTextToSize(_e,ne))},[]))),dt={text:c,x:m,y:j,options:q,mutex:{pdfEscape:Rn,activeFontKey:jt,fonts:oe,activeFontSize:yt}},be.publish("preProcessText",dt),c=dt.text,It=(q=dt.options).angle,Je instanceof Vt==0&&It&&typeof It=="number"){It*=Math.PI/180,q.rotationDirection===0&&(It=-It),T===V&&(It=-It);var da=Math.cos(It),pa=Math.sin(It);Je=new Vt(da,pa,-pa,da,0,0)}else It&&It instanceof Vt&&(Je=It);T!==V||Je||(Je=mr),(Kt=q.charSpace||xr)!==void 0&&(on+=K(z(Kt))+` Tc
|
|
9
|
-
`,this.setCharSpace(this.getCharSpace()||0)),(je=q.horizontalScale)!==void 0&&(on+=K(100*je)+` Tz
|
|
10
|
-
`),q.lang;var mn=-1,kr=q.renderingMode!==void 0?q.renderingMode:q.stroke,Ti=ke.internal.getCurrentPageInfo().pageContext;switch(kr){case 0:case!1:case"fill":mn=0;break;case 1:case!0:case"stroke":mn=1;break;case 2:case"fillThenStroke":mn=2;break;case 3:case"invisible":mn=3;break;case 4:case"fillAndAddForClipping":mn=4;break;case 5:case"strokeAndAddPathForClipping":mn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mn=6;break;case 7:case"addToPathForClipping":mn=7}var to=Ti.usedRenderingMode!==void 0?Ti.usedRenderingMode:-1;mn!==-1?on+=mn+` Tr
|
|
11
|
-
`:to!==-1&&(on+=`0 Tr
|
|
12
|
-
`),mn!==-1&&(Ti.usedRenderingMode=mn),Bt=q.align||"left";var Tn,mi=yt*Lr,ga=ke.internal.pageSize.getWidth(),va=oe[jt];Kt=q.charSpace||xr,ne=q.maxWidth||0,ge=Object.assign({autoencode:!0,noBOM:!0},q.flags);var Ur=[],bi=function(we){return ke.getStringUnitWidth(we,{font:va,charSpace:Kt,fontSize:yt,doKerning:!1})*yt/Jn};if(Object.prototype.toString.call(c)==="[object Array]"){var Nn;mt=ca(c),Bt!=="left"&&(Tn=mt.map(bi));var Ln,zr=0;if(Bt==="right"){m-=Tn[0],c=[],sn=mt.length;for(var Pr=0;Pr<sn;Pr++)Pr===0?(Ln=wr(m),Nn=yr(j)):(Ln=z(zr-Tn[Pr]),Nn=-mi),c.push([mt[Pr],Ln,Nn]),zr=Tn[Pr]}else if(Bt==="center"){m-=Tn[0]/2,c=[],sn=mt.length;for(var Hr=0;Hr<sn;Hr++)Hr===0?(Ln=wr(m),Nn=yr(j)):(Ln=z((zr-Tn[Hr])/2),Nn=-mi),c.push([mt[Hr],Ln,Nn]),zr=Tn[Hr]}else if(Bt==="left"){c=[],sn=mt.length;for(var ma=0;ma<sn;ma++)c.push(mt[ma])}else if(Bt==="justify"&&va.encoding==="Identity-H"){c=[],sn=mt.length,ne=ne!==0?ne:ga;for(var qi=0,qe=0;qe<sn;qe++)if(Nn=qe===0?yr(j):-mi,Ln=qe===0?wr(m):qi,qe<sn-1){var eo=z((ne-Tn[qe])/(mt[qe].split(" ").length-1)),lr=mt[qe].split(" ");c.push([lr[0]+" ",Ln,Nn]),qi=0;for(var ur=1;ur<lr.length;ur++){var ba=(bi(lr[ur-1]+" "+lr[ur])-bi(lr[ur]))*Jn+eo;ur==lr.length-1?c.push([lr[ur],ba,0]):c.push([lr[ur]+" ",ba,0]),qi-=ba}}else c.push([mt[qe],Ln,Nn]);c.push(["",qi,0])}else{if(Bt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(c=[],sn=mt.length,ne=ne!==0?ne:ga,qe=0;qe<sn;qe++){Nn=qe===0?yr(j):-mi,Ln=qe===0?wr(m):0;var wa=mt[qe].split(" ").length-1,ya=wa>0?(ne-Tn[qe])/wa:0;qe<sn-1?Ur.push(K(z(ya))):Ur.push(0),c.push([mt[qe],Ln,Nn])}}}(typeof q.R2L=="boolean"?q.R2L:zt)===!0&&(c=Mi(c,function(we,_e,Ue){return[we.split("").reverse().join(""),_e,Ue]})),dt={text:c,x:m,y:j,options:q,mutex:{pdfEscape:Rn,activeFontKey:jt,fonts:oe,activeFontSize:yt}},be.publish("postProcessText",dt),c=dt.text,Ke=dt.mutex.isHex||!1;var xa=oe[jt].encoding;xa!=="WinAnsiEncoding"&&xa!=="StandardEncoding"||(c=Mi(c,function(we,_e,Ue){return[Sr(we),_e,Ue]})),mt=ca(c),c=[];for(var Wr,Gr,Vr,wi=Array.isArray(mt[0])?1:0,Yr="",yi=function(we,_e,Ue){var Ze="";return Ue instanceof Vt?(Ue=typeof q.angle=="number"?vr(Ue,new Vt(1,0,0,1,we,_e)):vr(new Vt(1,0,0,1,we,_e),Ue),T===V&&(Ue=vr(new Vt(1,0,0,-1,0,0),Ue)),Ze=Ue.join(" ")+` Tm
|
|
13
|
-
`):Ze=K(we)+" "+K(_e)+` Td
|
|
14
|
-
`,Ze},qn=0;qn<mt.length;qn++){switch(Yr="",wi){case 1:Vr=(Ke?"<":"(")+mt[qn][0]+(Ke?">":")"),Wr=parseFloat(mt[qn][1]),Gr=parseFloat(mt[qn][2]);break;case 0:Vr=(Ke?"<":"(")+mt[qn]+(Ke?">":")"),Wr=wr(m),Gr=yr(j)}Ur!==void 0&&Ur[qn]!==void 0&&(Yr=Ur[qn]+` Tw
|
|
15
|
-
`),qn===0?c.push(Yr+yi(Wr,Gr,Je)+Vr):wi===0?c.push(Yr+Vr):wi===1&&c.push(Yr+yi(Wr,Gr,Je)+Vr)}c=wi===0?c.join(` Tj
|
|
16
|
-
T* `):c.join(` Tj
|
|
17
|
-
`),c+=` Tj
|
|
18
|
-
`;var fr=`BT
|
|
19
|
-
/`;return fr+=jt+" "+yt+` Tf
|
|
20
|
-
`,fr+=K(yt*Lr)+` TL
|
|
21
|
-
`,fr+=fi+`
|
|
22
|
-
`,fr+=on,fr+=c,F(fr+="ET"),x[jt]=!0,ke};var Vo=g.__private__.clip=g.clip=function(c){return F(c==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Vo("evenodd")},g.__private__.discardPath=g.discardPath=function(){return F("n"),this};var sr=g.__private__.isValidStyle=function(c){var m=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(c)!==-1&&(m=!0),m};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(c){return sr(c)&&(h=c),this};var Va=g.__private__.getStyle=g.getStyle=function(c){var m=h;switch(c){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=c}return m},Ya=g.close=function(){return F("h"),this};g.stroke=function(){return F("S"),this},g.fill=function(c){return Bi("f",c),this},g.fillEvenOdd=function(c){return Bi("f*",c),this},g.fillStroke=function(c){return Bi("B",c),this},g.fillStrokeEvenOdd=function(c){return Bi("B*",c),this};var Bi=function(c,m){ye(m)==="object"?Jo(m,c):F(c)},li=function(c){c===null||T===V&&c===void 0||(c=Va(c),F(c))};function Yo(c,m,j,q,X){var dt=new Ji(m||this.boundingBox,j||this.xStep,q||this.yStep,this.gState,X||this.matrix);dt.stream=this.stream;var mt=c+"$$"+this.cloneIndex+++"$$";return jn(mt,dt),dt}var Jo=function(c,m){var j=Se[c.key],q=Ut[j];if(q instanceof _i)F("q"),F(Ko(m)),q.gState&&g.setGState(q.gState),F(c.matrix.toString()+" cm"),F("/"+j+" sh"),F("Q");else if(q instanceof Ji){var X=new Vt(1,0,0,-1,0,ci());c.matrix&&(X=X.multiply(c.matrix||mr),j=Yo.call(q,c.key,c.boundingBox,c.xStep,c.yStep,X).id),F("q"),F("/Pattern cs"),F("/"+j+" scn"),q.gState&&g.setGState(q.gState),F(m),F("Q")}},Ko=function(c){switch(c){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ia=g.moveTo=function(c,m){return F(K(z(c))+" "+K(U(m))+" m"),this},Ja=g.lineTo=function(c,m){return F(K(z(c))+" "+K(U(m))+" l"),this},Yn=g.curveTo=function(c,m,j,q,X,dt){return F([K(z(c)),K(U(m)),K(z(j)),K(U(q)),K(z(X)),K(U(dt)),"c"].join(" ")),this};g.__private__.line=g.line=function(c,m,j,q,X){if(isNaN(c)||isNaN(m)||isNaN(j)||isNaN(q)||!sr(X))throw new Error("Invalid arguments passed to jsPDF.line");return T===G?this.lines([[j-c,q-m]],c,m,[1,1],X||"S"):this.lines([[j-c,q-m]],c,m,[1,1]).stroke()},g.__private__.lines=g.lines=function(c,m,j,q,X,dt){var mt,It,Bt,Kt,ne,ge,je,Je,ke,$e,Ke,on;if(typeof c=="number"&&(on=j,j=m,m=c,c=on),q=q||[1,1],dt=dt||!1,isNaN(m)||isNaN(j)||!Array.isArray(c)||!Array.isArray(q)||!sr(X)||typeof dt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ia(m,j),mt=q[0],It=q[1],Kt=c.length,$e=m,Ke=j,Bt=0;Bt<Kt;Bt++)(ne=c[Bt]).length===2?($e=ne[0]*mt+$e,Ke=ne[1]*It+Ke,Ja($e,Ke)):(ge=ne[0]*mt+$e,je=ne[1]*It+Ke,Je=ne[2]*mt+$e,ke=ne[3]*It+Ke,$e=ne[4]*mt+$e,Ke=ne[5]*It+Ke,Yn(ge,je,Je,ke,$e,Ke));return dt&&Ya(),li(X),this},g.path=function(c){for(var m=0;m<c.length;m++){var j=c[m],q=j.c;switch(j.op){case"m":ia(q[0],q[1]);break;case"l":Ja(q[0],q[1]);break;case"c":Yn.apply(this,q);break;case"h":Ya()}}return this},g.__private__.rect=g.rect=function(c,m,j,q,X){if(isNaN(c)||isNaN(m)||isNaN(j)||isNaN(q)||!sr(X))throw new Error("Invalid arguments passed to jsPDF.rect");return T===G&&(q=-q),F([K(z(c)),K(U(m)),K(z(j)),K(z(q)),"re"].join(" ")),li(X),this},g.__private__.triangle=g.triangle=function(c,m,j,q,X,dt,mt){if(isNaN(c)||isNaN(m)||isNaN(j)||isNaN(q)||isNaN(X)||isNaN(dt)||!sr(mt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[j-c,q-m],[X-j,dt-q],[c-X,m-dt]],c,m,[1,1],mt,!0),this},g.__private__.roundedRect=g.roundedRect=function(c,m,j,q,X,dt,mt){if(isNaN(c)||isNaN(m)||isNaN(j)||isNaN(q)||isNaN(X)||isNaN(dt)||!sr(mt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var It=4/3*(Math.SQRT2-1);return X=Math.min(X,.5*j),dt=Math.min(dt,.5*q),this.lines([[j-2*X,0],[X*It,0,X,dt-dt*It,X,dt],[0,q-2*dt],[0,dt*It,-X*It,dt,-X,dt],[2*X-j,0],[-X*It,0,-X,-dt*It,-X,-dt],[0,2*dt-q],[0,-dt*It,X*It,-dt,X,-dt]],c+X,m,[1,1],mt,!0),this},g.__private__.ellipse=g.ellipse=function(c,m,j,q,X){if(isNaN(c)||isNaN(m)||isNaN(j)||isNaN(q)||!sr(X))throw new Error("Invalid arguments passed to jsPDF.ellipse");var dt=4/3*(Math.SQRT2-1)*j,mt=4/3*(Math.SQRT2-1)*q;return ia(c+j,m),Yn(c+j,m-mt,c+dt,m-q,c,m-q),Yn(c-dt,m-q,c-j,m-mt,c-j,m),Yn(c-j,m+mt,c-dt,m+q,c,m+q),Yn(c+dt,m+q,c+j,m+mt,c+j,m),li(X),this},g.__private__.circle=g.circle=function(c,m,j,q){if(isNaN(c)||isNaN(m)||isNaN(j)||!sr(q))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(c,m,j,j,q)},g.setFont=function(c,m,j){return j&&(m=ct(m,j)),jt=za(c,m,{disableWarning:!1}),this};var Xo=g.__private__.getFont=g.getFont=function(){return oe[za.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var c,m,j={};for(c in se)if(se.hasOwnProperty(c))for(m in j[c]=[],se[c])se[c].hasOwnProperty(m)&&j[c].push(m);return j},g.addFont=function(c,m,j,q,X){var dt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&dt.indexOf(arguments[3])!==-1?X=arguments[3]:arguments[3]&&dt.indexOf(arguments[3])==-1&&(j=ct(j,q)),Ma.call(this,c,m,j,X=X||"Identity-H")};var ui,aa=n.lineWidth||.200025,$o=g.__private__.getLineWidth=g.getLineWidth=function(){return aa},Xt=g.__private__.setLineWidth=g.setLineWidth=function(c){return aa=c,F(K(z(c))+" w"),this};g.__private__.setLineDash=Rt.API.setLineDash=Rt.API.setLineDashPattern=function(c,m){if(c=c||[],m=m||0,isNaN(m)||!Array.isArray(c))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return c=c.map(function(j){return K(z(j))}).join(" "),m=K(z(m)),F("["+c+"] "+m+" d"),this};var Zo=g.__private__.getLineHeight=g.getLineHeight=function(){return yt*ui};g.__private__.getLineHeight=g.getLineHeight=function(){return yt*ui};var Qo=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(c){return typeof(c=c||1.15)=="number"&&(ui=c),this},ts=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return ui};Qo(n.lineHeight);var wr=g.__private__.getHorizontalCoordinate=function(c){return z(c)},yr=g.__private__.getVerticalCoordinate=function(c){return T===V?c:Gt[D].mediaBox.topRightY-Gt[D].mediaBox.bottomLeftY-z(c)},es=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(c){return K(wr(c))},ns=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(c){return K(yr(c))},Di=n.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return rr(Di)},g.__private__.setStrokeColor=g.setDrawColor=function(c,m,j,q){return Di=Gn({ch1:c,ch2:m,ch3:j,ch4:q,pdfColorType:"draw",precision:2}),F(Di),this};var oa=n.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return rr(oa)},g.__private__.setFillColor=g.setFillColor=function(c,m,j,q){return oa=Gn({ch1:c,ch2:m,ch3:j,ch4:q,pdfColorType:"fill",precision:2}),F(oa),this};var fi=n.textColor||"0 g",rs=g.__private__.getTextColor=g.getTextColor=function(){return rr(fi)};g.__private__.setTextColor=g.setTextColor=function(c,m,j,q){return fi=Gn({ch1:c,ch2:m,ch3:j,ch4:q,pdfColorType:"text",precision:3}),this};var xr=n.charSpace,is=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(xr||0)};g.__private__.setCharSpace=g.setCharSpace=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return xr=c,this};var sa=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(c){var m=g.CapJoinStyles[c];if(m===void 0)throw new Error("Line cap style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return sa=m,F(m+" J"),this};var la=0;g.__private__.setLineJoin=g.setLineJoin=function(c){var m=g.CapJoinStyles[c];if(m===void 0)throw new Error("Line join style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return la=m,F(m+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(c){if(c=c||0,isNaN(c))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return F(K(z(c))+" M"),this},g.GState=Do,g.setGState=function(c){(c=typeof c=="string"?Yt[Qt[c]]:Ka(null,c)).equals(Ee)||(F("/"+c.id+" gs"),Ee=c)};var Ka=function(c,m){if(!c||!Qt[c]){var j=!1;for(var q in Yt)if(Yt.hasOwnProperty(q)&&Yt[q].equals(m)){j=!0;break}if(j)m=Yt[q];else{var X="GS"+(Object.keys(Yt).length+1).toString(10);Yt[X]=m,m.id=X}return c&&(Qt[c]=m.id),be.publish("addGState",m),m}};g.addGState=function(c,m){return Ka(c,m),this},g.saveGraphicsState=function(){return F("q"),Ie.push({key:jt,size:yt,color:fi}),this},g.restoreGraphicsState=function(){F("Q");var c=Ie.pop();return jt=c.key,yt=c.size,fi=c.color,Ee=null,this},g.setCurrentTransformationMatrix=function(c){return F(c.toString()+" cm"),this},g.comment=function(c){return F("#"+c),this};var Ar=function(c,m){var j=c||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return j},set:function(dt){isNaN(dt)||(j=parseFloat(dt))}});var q=m||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return q},set:function(dt){isNaN(dt)||(q=parseFloat(dt))}});var X="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return X},set:function(dt){X=dt.toString()}}),this},ua=function(c,m,j,q){Ar.call(this,c,m),this.type="rect";var X=j||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return X},set:function(mt){isNaN(mt)||(X=parseFloat(mt))}});var dt=q||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return dt},set:function(mt){isNaN(mt)||(dt=parseFloat(mt))}}),this},Ri=function(){this.page=le,this.currentPage=D,this.pages=At.slice(0),this.pagesContext=Gt.slice(0),this.x=Mt,this.y=Te,this.matrix=pe,this.width=ha(D),this.height=$a(D),this.outputDestination=St,this.id="",this.objectNumber=-1};Ri.prototype.restore=function(){le=this.page,D=this.currentPage,Gt=this.pagesContext,At=this.pages,Mt=this.x,Te=this.y,pe=this.matrix,Xa(D,this.width),_r(D,this.height),St=this.outputDestination};var fa=function(c,m,j,q,X){nr.push(new Ri),le=D=0,At=[],Mt=c,Te=m,pe=X,na([j,q])};for(var hi in g.beginFormObject=function(c,m,j,q,X){return fa(c,m,j,q,X),this},g.endFormObject=function(c){return(function(m){if(gr[m])nr.pop().restore();else{var j=new Ri,q="Xo"+(Object.keys(hn).length+1).toString(10);j.id=q,gr[m]=q,hn[q]=j,be.publish("addFormObject",j),nr.pop().restore()}})(c),this},g.doFormObject=function(c,m){var j=hn[gr[c]];return F("q"),F(m.toString()+" cm"),F("/"+j.id+" Do"),F("Q"),this},g.getFormObject=function(c){var m=hn[gr[c]];return{x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},g.save=function(c,m){return c=c||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||!1,m.returnPromise===!1?(Ai(ji(or()),c),typeof Ai.unload=="function"&&Jt.setTimeout&&setTimeout(Ai.unload,911),this):new Promise(function(j,q){try{var X=Ai(ji(or()),c);typeof Ai.unload=="function"&&Jt.setTimeout&&setTimeout(Ai.unload,911),j(X)}catch(dt){q(dt.message)}})},Rt.API)Rt.API.hasOwnProperty(hi)&&(hi==="events"&&Rt.API.events.length?(function(c,m){var j,q,X;for(X=m.length-1;X!==-1;X--)j=m[X][0],q=m[X][1],c.subscribe.apply(c,[j].concat(typeof q=="function"?[q]:q))})(be,Rt.API.events):g[hi]=Rt.API[hi]);function ha(c){return Gt[c].mediaBox.topRightX-Gt[c].mediaBox.bottomLeftX}function Xa(c,m){Gt[c].mediaBox.topRightX=m+Gt[c].mediaBox.bottomLeftX}function $a(c){return Gt[c].mediaBox.topRightY-Gt[c].mediaBox.bottomLeftY}function _r(c,m){Gt[c].mediaBox.topRightY=m+Gt[c].mediaBox.bottomLeftY}var Nr=g.getPageWidth=function(c){return ha(c=c||D)/ee},Za=g.setPageWidth=function(c,m){Xa(c,m*ee)},ci=g.getPageHeight=function(c){return $a(c=c||D)/ee},Qa=g.setPageHeight=function(c,m){_r(c,m*ee)};return g.internal={pdfEscape:Rn,getStyle:Va,getFont:Xo,getFontSize:Ct,getCharSpace:is,getTextColor:rs,getLineHeight:Zo,getLineHeightFactor:ts,getLineWidth:$o,write:Lt,getHorizontalCoordinate:wr,getVerticalCoordinate:yr,getCoordinateString:es,getVerticalCoordinateString:ns,collections:{},newObject:Be,newAdditionalObject:ai,newObjectDeferred:nn,newObjectDeferredBegin:an,getFilters:Vn,putStream:Dn,events:be,scaleFactor:ee,pageSize:{getWidth:function(){return Nr(D)},setWidth:function(c){Za(D,c)},getHeight:function(){return ci(D)},setHeight:function(c){Qa(D,c)}},encryptionOptions:p,encryption:Xe,getEncryptor:function(c){return p!==null?Xe.encryptor(c,0):function(m){return m}},output:Wa,getNumberOfPages:Ua,get pages(){return At},out:F,f2:L,f3:O,getPageInfo:br,getPageInfoByObjId:Ga,getCurrentPageInfo:Go,getPDFVersion:C,Point:Ar,Rectangle:ua,Matrix:Vt,hasHotfix:Mn},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return Nr(D)},set:function(c){Za(D,c)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return ci(D)},set:function(c){Qa(D,c)},enumerable:!0,configurable:!0}),(function(c){for(var m=0,j=Ht.length;m<j;m++){var q=Ma.call(this,c[m][0],c[m][1],c[m][2],Ht[m][3],!0);w===!1&&(x[q]=!0);var X=c[m][0].split("-");Ra({id:q,fontName:X[0],fontStyle:X[1]||""})}be.publish("addFonts",{fonts:oe,dictionary:se})}).call(g,Ht),jt="F1",Ta(a,e),be.publish("initialized"),g}Vi.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Vi.prototype.toHexString=function(n){return n.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Vi.prototype.hexToBytes=function(n){for(var t=[],e=0;e<n.length;e+=2)t.push(String.fromCharCode(parseInt(n.substr(e,2),16)));return t.join("")},Vi.prototype.processOwnerPassword=function(n,t){return tl(Qs(t).substr(0,5),n)},Vi.prototype.encryptor=function(n,t){var e=Qs(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return tl(e,r)}},Do.prototype.equals=function(n){var t,e="id,objectNumber,equals";if(!n||ye(n)!==ye(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!n.hasOwnProperty(t)||this[t]!==n[t])return!1;r++}for(t in n)n.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return r===0},Rt.API={events:[]},Rt.version="4.2.0";var Me=Rt.API,fl=1,Ci=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Wi=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ki=function(n){return n.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(e.length===1?"0"+e:e)})},$t=function(n){return n.toFixed(2)},ei=function(n){return n.toFixed(5)};Me.__acroform__={};var _n=function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n},Hu=function(n){return n*fl},cr=function(n){var t=new Xf,e=Ft.internal.getHeight(n)||0,r=Ft.internal.getWidth(n)||0;return t.BBox=[0,0,Number($t(r)),Number($t(e))],t},d2=Me.__acroform__.setBit=function(n,t){if(n=n||0,t=t||0,isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<t},p2=Me.__acroform__.clearBit=function(n,t){if(n=n||0,t=t||0,isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<t)},g2=Me.__acroform__.getBit=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<t?1:0},We=Me.__acroform__.getBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return g2(n,t-1)},Ge=Me.__acroform__.setBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return d2(n,t-1)},Ve=Me.__acroform__.clearBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return p2(n,t-1)},v2=Me.__acroform__.calculateCoordinates=function(n,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,a=n[0],i=n[1],f=n[2],l=n[3],u={};return u.lowerLeft_X=e(a)||0,u.lowerLeft_Y=r(i+l)||0,u.upperRight_X=e(a+f)||0,u.upperRight_Y=r(i)||0,[Number($t(u.lowerLeft_X)),Number($t(u.lowerLeft_Y)),Number($t(u.upperRight_X)),Number($t(u.upperRight_Y))]},m2=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var t=[],e=n._V||n.DV,r=el(n,e),a=n.scope.internal.getFont(n.fontName,n.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(n.scope.__private__.encodeColorString(n.color)),t.push("/"+a+" "+$t(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=cr(n);return i.scope=n.scope,i.stream=t.join(`
|
|
23
|
-
`),i}},el=function(n,t){var e=n.fontSize===0?n.maxFontSize:n.fontSize,r={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=n.multiline?a.map(function(L){return L.split(`
|
|
24
|
-
`)}):a.map(function(L){return[L]});var i=e,f=Ft.internal.getHeight(n)||0;f=f<0?-f:f;var l=Ft.internal.getWidth(n)||0;l=l<0?-l:l;var u=function(L,O,z){if(L+1<a.length){var U=O+" "+a[L+1][0];return So(U,n,z).width<=l-4}return!1};i++;t:for(;i>0;){t="",i--;var h,p,w=So("3",n,i).height,x=n.multiline?f-i:(f-w)/2,g=x+=2,P=0,C=0,B=0;if(i<=0){t=`(...) Tj
|
|
25
|
-
`,t+="% Width of Text: "+So(t,n,i=12).width+", FieldWidth:"+l+`
|
|
26
|
-
`;break}for(var S="",G=0,V=0;V<a.length;V++)if(a.hasOwnProperty(V)){var T=!1;if(a[V].length!==1&&B!==a[V].length-1){if((w+2)*(G+2)+2>f)continue t;S+=a[V][B],T=!0,C=V,V--}else{S=(S+=a[V][B]+" ").substr(S.length-1)==" "?S.substr(0,S.length-1):S;var it=parseInt(V),vt=u(it,S,i),ct=V>=a.length-1;if(vt&&!ct){S+=" ",B=0;continue}if(vt||ct){if(ct)C=it;else if(n.multiline&&(w+2)*(G+2)+2>f)continue t}else{if(!n.multiline||(w+2)*(G+2)+2>f)continue t;C=it}}for(var K="",R=P;R<=C;R++){var tt=a[R];if(n.multiline){if(R===C){K+=tt[B]+" ",B=(B+1)%tt.length;continue}if(R===P){K+=tt[tt.length-1]+" ";continue}}K+=tt[0]+" "}switch(K=K.substr(K.length-1)==" "?K.substr(0,K.length-1):K,p=So(K,n,i).width,n.textAlign){case"right":h=l-p-2;break;case"center":h=(l-p)/2;break;default:h=2}t+=$t(h)+" "+$t(g)+` Td
|
|
27
|
-
`,t+="("+Ci(K)+`) Tj
|
|
28
|
-
`,t+=-$t(h)+` 0 Td
|
|
29
|
-
`,g=-(i+2),p=0,P=T?C:C+1,G++,S=""}break}return r.text=t,r.fontSize=i,r},So=function(n,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(n,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},b2={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},w2=function(n,t){var e={type:"reference",object:n};t.internal.getPageInfo(n.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&t.internal.getPageInfo(n.page).pageContext.annotations.push(e)},y2=function(n,t){if(t.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(tr.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(b2)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");fl=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new $f,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in r)if(r.hasOwnProperty(a)){var i=r[a];i.objId=void 0,i.hasAnnotation&&w2(i,e)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(e){(function(r,a){var i=!r;for(var f in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(f)){var l=r[f],u=[],h=l.Rect;if(l.Rect&&(l.Rect=v2(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Ft.createDefaultAppearanceStream(l),ye(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(u=l.getKeyValueListForStream()),l.Rect=h,l.hasAppearanceStream&&!l.appearanceStreamContent){var p=m2(l);u.push({key:"AP",value:"<</N "+p+">>"}),a.internal.acroformPlugin.xForms.push(p)}if(l.appearanceStreamContent){var w="";for(var x in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(x)){var g=l.appearanceStreamContent[x];if(w+="/"+x+" ",w+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var f in g)if(g.hasOwnProperty(f)){var P=g[f];typeof P=="function"&&(P=P.call(a,l)),w+="/"+f+" "+P+" ",a.internal.acroformPlugin.xForms.indexOf(P)>=0||a.internal.acroformPlugin.xForms.push(P)}}else typeof(P=g)=="function"&&(P=P.call(a,l)),w+="/"+f+" "+P,a.internal.acroformPlugin.xForms.indexOf(P)>=0||a.internal.acroformPlugin.xForms.push(P);w+=">>"}u.push({key:"AP",value:`<<
|
|
30
|
-
`+w+">>"})}a.internal.putStream({additionalKeyValues:u,objectId:l.objId}),a.internal.out("endobj")}i&&(function(C,B){for(var S in C)if(C.hasOwnProperty(S)){var G=S,V=C[S];B.internal.newObjectDeferredBegin(V.objId,!0),ye(V)==="object"&&typeof V.putStream=="function"&&V.putStream(),delete C[G]}})(a.internal.acroformPlugin.xForms,a)})(e,n)}),n.internal.acroformPlugin.isInitialized=!0}},Kf=Me.__acroform__.arrayToPdfArray=function(n,t,e){var r=function(f){return f};if(Array.isArray(n)){for(var a="[",i=0;i<n.length;i++)switch(i!==0&&(a+=" "),ye(n[i])){case"boolean":case"number":case"object":a+=n[i].toString();break;case"string":n[i].substr(0,1)==="/"?a+="/"+ki(n[i].substr(1)):(t!==void 0&&e&&(r=e.internal.getEncryptor(t)),a+="("+Ci(r(n[i].toString()))+")")}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Rs=function(n,t,e){var r=function(a){return a};return t!==void 0&&e&&(r=e.internal.getEncryptor(t)),(n=n||"").toString(),"("+Ci(r(n))+")"},dr=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};dr.prototype.toString=function(){return this.objId+" 0 R"},dr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},dr.prototype.getKeyValueListForStream=function(){var n=[],t=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var r=t[e],a=this[r];a&&(Array.isArray(a)?n.push({key:r,value:Kf(a,this.objId,this.scope)}):a instanceof dr?(a.scope=this.scope,n.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&n.push({key:r,value:a}))}return n};var Xf=function(){dr.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 n,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){n=e.trim()},get:function(){return n||null}})};_n(Xf,dr);var $f=function(){dr.call(this);var n,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(n){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Ci(e(n))+")"}},set:function(e){n=e}})};_n($f,dr);var tr=function n(){dr.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(S){if(isNaN(S))throw new Error('Invalid value "'+S+'" for attribute F supplied.');t=S}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!We(t,3)},set:function(S){S?this.F=Ge(t,3):this.F=Ve(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(S){if(isNaN(S))throw new Error('Invalid value "'+S+'" for attribute Ff supplied.');e=S}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(S){r=S!==void 0?S:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(S){r[0]=S}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(S){r[1]=S}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(S){r[2]=S}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(S){r[3]=S}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(S){switch(S){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=S;break;default:throw new Error('Invalid value "'+S+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Ro)return;i="FieldObject"+n.FieldNum++}var S=function(G){return G};return this.scope&&(S=this.scope.internal.getEncryptor(this.objId)),"("+Ci(S(i))+")"},set:function(S){i=S.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(S){i=S}});var f="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return f},set:function(S){f=S}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(S){l=S}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(S){u=S}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h===void 0?50/fl:h},set:function(S){h=S}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(S){p=S}});var w="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!w||this instanceof Ro||this instanceof Ni))return Rs(w,this.objId,this.scope)},set:function(S){S=S.toString(),w=S}});var x=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(x)return this instanceof rn==0?Rs(x,this.objId,this.scope):x},set:function(S){S=S.toString(),x=this instanceof rn==0?S.substr(0,1)==="("?Wi(S.substr(1,S.length-2)):Wi(S):S}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof rn==1?Wi(x.substr(1,x.length-1)):x},set:function(S){S=S.toString(),x=this instanceof rn==1?"/"+ki(S):S}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(S){this.V=S}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof rn==0?Rs(g,this.objId,this.scope):g},set:function(S){S=S.toString(),g=this instanceof rn==0?S.substr(0,1)==="("?Wi(S.substr(1,S.length-2)):Wi(S):S}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof rn==1?Wi(g.substr(1,g.length-1)):g},set:function(S){S=S.toString(),g=this instanceof rn==1?"/"+ki(S):S}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var P,C=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return C},set:function(S){S=!!S,C=S}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(P)return P},set:function(S){P=S}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,1)},set:function(S){S?this.Ff=Ge(this.Ff,1):this.Ff=Ve(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,2)},set:function(S){S?this.Ff=Ge(this.Ff,2):this.Ff=Ve(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,3)},set:function(S){S?this.Ff=Ge(this.Ff,3):this.Ff=Ve(this.Ff,3)}});var B=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(B!==null)return B},set:function(S){if([0,1,2].indexOf(S)===-1)throw new Error('Invalid value "'+S+'" for attribute Q supplied.');B=S}}),Object.defineProperty(this,"textAlign",{get:function(){var S;switch(B){case 0:default:S="left";break;case 1:S="center";break;case 2:S="right"}return S},configurable:!0,enumerable:!0,set:function(S){switch(S){case"right":case 2:B=2;break;case"center":case 1:B=1;break;default:B=0}}})};_n(tr,dr);var Ki=function(){tr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){n=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Kf(t,this.objId,this.scope)},set:function(e){var r,a;a=[],typeof(r=e)=="string"&&(a=(function(i,f,l){l||(l=1);for(var u,h=[];u=f.exec(i);)h.push(u[l]);return h})(r,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,18)},set:function(e){e?this.Ff=Ge(this.Ff,18):this.Ff=Ve(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Ge(this.Ff,19):this.Ff=Ve(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,20)},set:function(e){e?(this.Ff=Ge(this.Ff,20),t.sort()):this.Ff=Ve(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,22)},set:function(e){e?this.Ff=Ge(this.Ff,22):this.Ff=Ve(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,23)},set:function(e){e?this.Ff=Ge(this.Ff,23):this.Ff=Ve(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,27)},set:function(e){e?this.Ff=Ge(this.Ff,27):this.Ff=Ve(this.Ff,27)}}),this.hasAppearanceStream=!1};_n(Ki,tr);var Xi=function(){Ki.call(this),this.fontName="helvetica",this.combo=!1};_n(Xi,Ki);var $i=function(){Xi.call(this),this.combo=!0};_n($i,Xi);var Fo=function(){$i.call(this),this.edit=!0};_n(Fo,$i);var rn=function(){tr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,15)},set:function(e){e?this.Ff=Ge(this.Ff,15):this.Ff=Ve(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,16)},set:function(e){e?this.Ff=Ge(this.Ff,16):this.Ff=Ve(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,17)},set:function(e){e?this.Ff=Ge(this.Ff,17):this.Ff=Ve(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,26)},set:function(e){e?this.Ff=Ge(this.Ff,26):this.Ff=Ve(this.Ff,26)}});var n,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,a=[];for(r in a.push("<<"),t)a.push("/"+r+" ("+Ci(e(t[r]))+")");return a.push(">>"),a.join(`
|
|
31
|
-
`)}},set:function(e){ye(e)==="object"&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){typeof e=="string"&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){var r=e==null?"":e.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),n="/"+ki(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+ki(e)}})};_n(rn,tr);var Io=function(){rn.call(this),this.pushButton=!0};_n(Io,rn);var Zi=function(){rn.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t!==void 0?t:[]}})};_n(Zi,rn);var Ro=function(){var n,t;tr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var i,f=[];for(i in f.push("<<"),r)f.push("/"+i+" ("+Ci(a(r[i]))+")");return f.push(">>"),f.join(`
|
|
32
|
-
`)},set:function(a){ye(a)==="object"&&(r=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){var i=a==null?"":a.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),e="/"+ki(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){var i=a==null?"":a.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),e="/"+ki(i)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ft.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};_n(Ro,tr),Zi.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=n.createAppearanceStream(e.optionName),e.caption=n.getCA()}},Zi.prototype.createOption=function(n){var t=new Ro;return t.Parent=this,t.optionName=n,this.Kids.push(t),x2.call(this.scope,t),t};var Eo=function(){rn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ft.CheckBox.createAppearanceStream()};_n(Eo,rn);var Ni=function(){tr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,13)},set:function(t){t?this.Ff=Ge(this.Ff,13):this.Ff=Ve(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,21)},set:function(t){t?this.Ff=Ge(this.Ff,21):this.Ff=Ve(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,23)},set:function(t){t?this.Ff=Ge(this.Ff,23):this.Ff=Ve(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,24)},set:function(t){t?this.Ff=Ge(this.Ff,24):this.Ff=Ve(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,25)},set:function(t){t?this.Ff=Ge(this.Ff,25):this.Ff=Ve(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,26)},set:function(t){t?this.Ff=Ge(this.Ff,26):this.Ff=Ve(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(t){Number.isInteger(t)&&(n=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};_n(Ni,tr);var Oo=function(){Ni.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!We(this.Ff,14)},set:function(n){n?this.Ff=Ge(this.Ff,14):this.Ff=Ve(this.Ff,14)}}),this.password=!0};_n(Oo,Ni);var Ft={CheckBox:{createAppearanceStream:function(){return{N:{On:Ft.CheckBox.YesNormal},D:{On:Ft.CheckBox.YesPushDown,Off:Ft.CheckBox.OffPushDown}}},YesPushDown:function(n){var t=cr(n);t.scope=n.scope;var e=[],r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color),i=el(n,n.caption);return e.push("0.749023 g"),e.push("0 0 "+$t(Ft.internal.getWidth(n))+" "+$t(Ft.internal.getHeight(n))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+$t(i.fontSize)+" Tf "+a),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(`
|
|
33
|
-
`),t},YesNormal:function(n){var t=cr(n);t.scope=n.scope;var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color),a=[],i=Ft.internal.getHeight(n),f=Ft.internal.getWidth(n),l=el(n,n.caption);return a.push("1 g"),a.push("0 0 "+$t(f)+" "+$t(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+$t(f-1)+" "+$t(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+$t(l.fontSize)+" Tf "+r),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join(`
|
|
34
|
-
`),t},OffPushDown:function(n){var t=cr(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(Ft.internal.getWidth(n))+" "+$t(Ft.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(`
|
|
35
|
-
`),t}},RadioButton:{Circle:{createAppearanceStream:function(n){var t={D:{Off:Ft.RadioButton.Circle.OffPushDown},N:{}};return t.N[n]=Ft.RadioButton.Circle.YesNormal,t.D[n]=Ft.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(n){var t=cr(n);t.scope=n.scope;var e=[],r=Ft.internal.getWidth(n)<=Ft.internal.getHeight(n)?Ft.internal.getWidth(n)/4:Ft.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Ft.internal.Bezier_C,i=Number((r*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+ei(Ft.internal.getWidth(n)/2)+" "+ei(Ft.internal.getHeight(n)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
|
|
36
|
-
`),t},YesPushDown:function(n){var t=cr(n);t.scope=n.scope;var e=[],r=Ft.internal.getWidth(n)<=Ft.internal.getHeight(n)?Ft.internal.getWidth(n)/4:Ft.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),i=Number((a*Ft.internal.Bezier_C).toFixed(5)),f=Number((r*Ft.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ei(Ft.internal.getWidth(n)/2)+" "+ei(Ft.internal.getHeight(n)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),e.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),e.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),e.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+ei(Ft.internal.getWidth(n)/2)+" "+ei(Ft.internal.getHeight(n)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+f+" "+f+" "+r+" 0 "+r+" c"),e.push("-"+f+" "+r+" -"+r+" "+f+" -"+r+" 0 c"),e.push("-"+r+" -"+f+" -"+f+" -"+r+" 0 -"+r+" c"),e.push(f+" -"+r+" "+r+" -"+f+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
|
|
37
|
-
`),t},OffPushDown:function(n){var t=cr(n);t.scope=n.scope;var e=[],r=Ft.internal.getWidth(n)<=Ft.internal.getHeight(n)?Ft.internal.getWidth(n)/4:Ft.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),i=Number((a*Ft.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ei(Ft.internal.getWidth(n)/2)+" "+ei(Ft.internal.getHeight(n)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),e.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),e.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),e.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
|
|
38
|
-
`),t}},Cross:{createAppearanceStream:function(n){var t={D:{Off:Ft.RadioButton.Cross.OffPushDown},N:{}};return t.N[n]=Ft.RadioButton.Cross.YesNormal,t.D[n]=Ft.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(n){var t=cr(n);t.scope=n.scope;var e=[],r=Ft.internal.calculateCross(n);return e.push("q"),e.push("1 1 "+$t(Ft.internal.getWidth(n)-2)+" "+$t(Ft.internal.getHeight(n)-2)+" re"),e.push("W"),e.push("n"),e.push($t(r.x1.x)+" "+$t(r.x1.y)+" m"),e.push($t(r.x2.x)+" "+$t(r.x2.y)+" l"),e.push($t(r.x4.x)+" "+$t(r.x4.y)+" m"),e.push($t(r.x3.x)+" "+$t(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(`
|
|
39
|
-
`),t},YesPushDown:function(n){var t=cr(n);t.scope=n.scope;var e=Ft.internal.calculateCross(n),r=[];return r.push("0.749023 g"),r.push("0 0 "+$t(Ft.internal.getWidth(n))+" "+$t(Ft.internal.getHeight(n))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+$t(Ft.internal.getWidth(n)-2)+" "+$t(Ft.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push($t(e.x1.x)+" "+$t(e.x1.y)+" m"),r.push($t(e.x2.x)+" "+$t(e.x2.y)+" l"),r.push($t(e.x4.x)+" "+$t(e.x4.y)+" m"),r.push($t(e.x3.x)+" "+$t(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
|
|
40
|
-
`),t},OffPushDown:function(n){var t=cr(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(Ft.internal.getWidth(n))+" "+$t(Ft.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(`
|
|
41
|
-
`),t}}},createDefaultAppearanceStream:function(n){var t=n.scope.internal.getFont(n.fontName,n.fontStyle).id,e=n.scope.__private__.encodeColorString(n.color);return"/"+t+" "+n.fontSize+" Tf "+e}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(n){var t=Ft.internal.getWidth(n),e=Ft.internal.getHeight(n),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},Ft.internal.getWidth=function(n){var t=0;return ye(n)==="object"&&(t=Hu(n.Rect[2])),t},Ft.internal.getHeight=function(n){var t=0;return ye(n)==="object"&&(t=Hu(n.Rect[3])),t};var x2=Me.addField=function(n){if(y2(this,n),!(n instanceof tr))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=n).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};Me.AcroFormChoiceField=Ki,Me.AcroFormListBox=Xi,Me.AcroFormComboBox=$i,Me.AcroFormEditBox=Fo,Me.AcroFormButton=rn,Me.AcroFormPushButton=Io,Me.AcroFormRadioButton=Zi,Me.AcroFormCheckBox=Eo,Me.AcroFormTextField=Ni,Me.AcroFormPasswordField=Oo,Me.AcroFormAppearance=Ft,Me.AcroForm={ChoiceField:Ki,ListBox:Xi,ComboBox:$i,EditBox:Fo,Button:rn,PushButton:Io,RadioButton:Zi,CheckBox:Eo,TextField:Ni,PasswordField:Oo,Appearance:Ft},Rt.AcroForm={ChoiceField:Ki,ListBox:Xi,ComboBox:$i,EditBox:Fo,Button:rn,PushButton:Io,RadioButton:Zi,CheckBox:Eo,TextField:Ni,PasswordField:Oo,Appearance:Ft};Rt.AcroForm;function Zf(n){return n.reduce(function(t,e,r){return t[e]=r,t},{})}(function(n){var t="addImage_";n.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=n.__addimage__.getImageFileTypeByImageData=function(L,O){var z,U,rt,st,ut,nt=e;if((O=O||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(vt(L))for(ut in r)for(rt=r[ut],z=0;z<rt.length;z+=1){for(st=!0,U=0;U<rt[z].length;U+=1)if(rt[z][U]!==void 0&&rt[z][U]!==L[U]){st=!1;break}if(st===!0){nt=ut;break}}else for(ut in r)for(rt=r[ut],z=0;z<rt.length;z+=1){for(st=!0,U=0;U<rt[z].length;U+=1)if(rt[z][U]!==void 0&&rt[z][U]!==L.charCodeAt(U)){st=!1;break}if(st===!0){nt=ut;break}}return nt===e&&O!==e&&(nt=O),nt},i=function L(O){for(var z=this.internal.write,U=this.internal.putStream,rt=(0,this.internal.getFilters)();rt.indexOf("FlateEncode")!==-1;)rt.splice(rt.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:O.width}),st.push({key:"Height",value:O.height}),O.colorSpace===S.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===S.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var ut="",nt=0,ht=O.transparency.length;nt<ht;nt++)ut+=O.transparency[nt]+" "+O.transparency[nt]+" ";st.push({key:"Mask",value:"["+ut+"]"})}O.sMask!==void 0&&st.push({key:"SMask",value:O.objectId+1+" 0 R"});var _t=O.filter!==void 0?["/"+O.filter]:void 0;if(U({data:O.data,additionalKeyValues:st,alreadyAppliedFilters:_t,objectId:O.objectId}),z("endobj"),"sMask"in O&&O.sMask!==void 0){var wt,_=(wt=O.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:O.bitsPerComponent,D={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:_,data:O.sMask};"filter"in O&&(D.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(_," /Columns ").concat(O.width),D.filter=O.filter),L.call(this,D)}if(O.colorSpace===S.INDEXED){var M=this.internal.newObject();U({data:K(new Uint8Array(O.palette)),objectId:M}),z("endobj")}},f=function(){var L=this.internal.collections[t+"images"];for(var O in L)i.call(this,L[O])},l=function(){var L,O=this.internal.collections[t+"images"],z=this.internal.write;for(var U in O)z("/I"+(L=O[U]).index,L.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))},h=function(){var L=this.internal.collections[t+"images"];return u.call(this),L},p=function(){return Object.keys(this.internal.collections[t+"images"]).length},w=function(L){return typeof n["process"+L.toUpperCase()]=="function"},x=function(L){return ye(L)==="object"&&L.nodeType===1},g=function(L,O){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var z=""+L.getAttribute("src");if(z.indexOf("data:image/")===0)return Co(unescape(z).split("base64,").pop());var U=n.loadFile(z,!0);if(U!==void 0)return U}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var rt;switch(O){case"PNG":rt="image/png";break;case"WEBP":rt="image/webp";break;default:rt="image/jpeg"}return Co(L.toDataURL(rt,1).split("base64,").pop())}},P=function(L){var O=this.internal.collections[t+"images"];if(O){for(var z in O)if(L===O[z].alias)return O[z]}},C=function(L,O,z){return L||O||(L=-96,O=-96),L<0&&(L=-1*z.width*72/L/this.internal.scaleFactor),O<0&&(O=-1*z.height*72/O/this.internal.scaleFactor),L===0&&(L=O*z.width/z.height),O===0&&(O=L*z.height/z.width),[L,O]},B=function(L,O,z,U,rt,st){var ut=C.call(this,z,U,rt),nt=this.internal.getCoordinateString,ht=this.internal.getVerticalCoordinateString,_t=h.call(this);if(z=ut[0],U=ut[1],_t[rt.index]=rt,st){st*=Math.PI/180;var wt=Math.cos(st),_=Math.sin(st),D=function(H){return H.toFixed(4)},M=[D(wt),D(_),D(-1*_),D(wt),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,nt(L),ht(O+U),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([nt(z),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(z),"0","0",nt(U),nt(L),ht(O+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+rt.index+" Do"),this.internal.write("Q")},S=n.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"};n.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var G=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},V=n.__addimage__.sHashCode=function(L){var O,z,U=0;if(typeof L=="string")for(z=L.length,O=0;O<z;O++)U=(U<<5)-U+L.charCodeAt(O),U|=0;else if(vt(L))for(z=L.byteLength/2,O=0;O<z;O++)U=(U<<5)-U+L[O],U|=0;return U},T=n.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var O=!0;return L.length===0&&(O=!1),L.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(O=!1),O},it=n.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var O=L.indexOf(",");return O<0?null:L.substring(0,O).trim().endsWith("base64")?L.substring(O+1):null};n.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var vt=n.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},ct=n.__addimage__.binaryStringToUint8Array=function(L){for(var O=L.length,z=new Uint8Array(O),U=0;U<O;U++)z[U]=L.charCodeAt(U);return z},K=n.__addimage__.arrayBufferToBinaryString=function(L){for(var O="",z=vt(L)?L:new Uint8Array(L),U=0;U<z.length;U+=8192)O+=String.fromCharCode.apply(null,z.subarray(U,U+8192));return O};n.addImage=function(){var L,O,z,U,rt,st,ut,nt,ht;if(typeof arguments[1]=="number"?(O=e,z=arguments[1],U=arguments[2],rt=arguments[3],st=arguments[4],ut=arguments[5],nt=arguments[6],ht=arguments[7]):(O=arguments[1],z=arguments[2],U=arguments[3],rt=arguments[4],st=arguments[5],ut=arguments[6],nt=arguments[7],ht=arguments[8]),ye(L=arguments[0])==="object"&&!x(L)&&"imageData"in L){var _t=L;L=_t.imageData,O=_t.format||O||e,z=_t.x||z||0,U=_t.y||U||0,rt=_t.w||_t.width||rt,st=_t.h||_t.height||st,ut=_t.alias||ut,nt=_t.compression||nt,ht=_t.rotation||_t.angle||ht}var wt=this.internal.getFilters();if(nt===void 0&&wt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(z)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var _=R.call(this,L,O,ut,nt);return B.call(this,z,U,rt,st,_,ht),this};var R=function(L,O,z,U){var rt,st,ut;if(typeof L=="string"&&a(L)===e){L=unescape(L);var nt=tt(L,!1);(nt!==""||(nt=n.loadFile(L,!0))!==void 0)&&(L=nt)}if(x(L)&&(L=g(L,O)),O=a(L,O),!w(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((ut=z)==null||ut.length===0)&&(z=(function(ht){return typeof ht=="string"||vt(ht)?V(ht):vt(ht.data)?V(ht.data):null})(L)),(rt=P.call(this,z))||(L instanceof Uint8Array||O==="RGBA"||(st=L,L=ct(L)),rt=this["process"+O.toUpperCase()](L,p.call(this),z,(function(ht){return ht&&typeof ht=="string"&&(ht=ht.toUpperCase()),ht in n.image_compression?ht:G.NONE})(U),st)),!rt)throw new Error("An unknown error occurred whilst processing the image.");return rt},tt=n.__addimage__.convertBase64ToBinaryString=function(L,O){O=typeof O!="boolean"||O;var z,U="";if(typeof L=="string"){var rt;z=(rt=it(L))!==null&&rt!==void 0?rt:L;try{U=Co(z)}catch(st){if(O)throw T(z)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};n.getImageProperties=function(L){var O,z,U="";if(x(L)&&(L=g(L)),typeof L=="string"&&a(L)===e&&((U=tt(L,!1))===""&&(U=n.loadFile(L)||""),L=U),z=a(L),!w(z))throw new Error("addImage does not support files of type '"+z+"', please ensure that a plugin for '"+z+"' support is added.");if(L instanceof Uint8Array||(L=ct(L)),!(O=this["process"+z.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=z,O}})(Rt.API),(function(n){var t=function(e){if(e!==void 0&&e!="")return!0};Rt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(e){for(var r,a,i,f=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(e.objId),h=e.pageContext.annotations,p=!1,w=0;w<h.length&&!p;w++)switch((r=h[w]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(p=!0);break;case"reference":case"text":case"freetext":p=!0}if(p!=0){this.internal.write("/Annots [");for(var x=0;x<h.length;x++){r=h[x];var g=this.internal.pdfEscape,P=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var C=this.internal.newAdditionalObject(),B=this.internal.newAdditionalObject(),S=this.internal.getEncryptor(C.objId),G=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(a="/Rect ["+f(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+f(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+g(S(r.contents))+")",i+=" /Popup "+B.objId+" 0 R",i+=" /P "+u.objId+" 0 R",i+=" /T ("+g(S(G))+") >>",C.content=i;var V=C.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+f(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+f(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+V,r.open&&(i+=" /Open true"),i+=" >>",B.content=i,this.internal.write(C.objId,"0 R",B.objId,"0 R");break;case"freetext":a="/Rect ["+f(r.bounds.x)+" "+l(r.bounds.y)+" "+f(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var T=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+g(P(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+T+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var it=this.annotations._nameMap[r.options.name];r.options.pageNumber=it.page,r.options.top=it.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+g(P(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;default:var vt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+vt+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),n.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},n.link=function(e,r,a,i,f){var l=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:u(e),y:h(r),w:u(e+a),h:h(r+i)},options:f,type:"link"})},n.textWithLink=function(e,r,a,i){var f,l,u=this.getTextWidth(e),h=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){l=i.maxWidth;var p=this.splitTextToSize(e,l).length;f=Math.ceil(h*p)}else l=u,f=h;return this.text(e,r,a,i),a+=.2*h,i.align==="center"&&(r-=u/2),i.align==="right"&&(r-=u),this.link(r,a-h,l,f,i),u},n.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(Rt.API),(function(n){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]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];n.__arabicParser__={};var i=n.__arabicParser__.isInArabicSubstitutionA=function(C){return t[C.charCodeAt(0)]!==void 0},f=n.__arabicParser__.isArabicLetter=function(C){return typeof C=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(C)},l=n.__arabicParser__.isArabicEndLetter=function(C){return f(C)&&i(C)&&t[C.charCodeAt(0)].length<=2},u=n.__arabicParser__.isArabicAlfLetter=function(C){return f(C)&&a.indexOf(C.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(C){return f(C)&&i(C)&&t[C.charCodeAt(0)].length>=1};var h=n.__arabicParser__.arabicLetterHasFinalForm=function(C){return f(C)&&i(C)&&t[C.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(C){return f(C)&&i(C)&&t[C.charCodeAt(0)].length>=3};var p=n.__arabicParser__.arabicLetterHasMedialForm=function(C){return f(C)&&i(C)&&t[C.charCodeAt(0)].length==4},w=n.__arabicParser__.resolveLigatures=function(C){var B=0,S=e,G="",V=0;for(B=0;B<C.length;B+=1)S[C.charCodeAt(B)]!==void 0?(V++,typeof(S=S[C.charCodeAt(B)])=="number"&&(G+=String.fromCharCode(S),S=e,V=0),B===C.length-1&&(S=e,G+=C.charAt(B-(V-1)),B-=V-1,V=0)):(S=e,G+=C.charAt(B-V),B-=V,V=0);return G};n.__arabicParser__.isArabicDiacritic=function(C){return C!==void 0&&r[C.charCodeAt(0)]!==void 0};var x=n.__arabicParser__.getCorrectForm=function(C,B,S){return f(C)?i(C)===!1?-1:!h(C)||!f(B)&&!f(S)||!f(S)&&l(B)||l(C)&&!f(B)||l(C)&&u(B)||l(C)&&l(B)?0:p(C)&&f(B)&&!l(B)&&f(S)&&h(S)?3:l(C)||!f(S)?1:2:-1},g=function(C){var B=0,S=0,G=0,V="",T="",it="",vt=(C=C||"").split("\\s+"),ct=[];for(B=0;B<vt.length;B+=1){for(ct.push(""),S=0;S<vt[B].length;S+=1)V=vt[B][S],T=vt[B][S-1],it=vt[B][S+1],f(V)?(G=x(V,T,it),ct[B]+=G!==-1?String.fromCharCode(t[V.charCodeAt(0)][G]):V):ct[B]+=V;ct[B]=w(ct[B])}return ct.join(" ")},P=n.__arabicParser__.processArabic=n.processArabic=function(){var C,B=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,S=[];if(Array.isArray(B)){var G=0;for(S=[],G=0;G<B.length;G+=1)Array.isArray(B[G])?S.push([g(B[G][0]),B[G][1],B[G][2]]):S.push([g(B[G])]);C=S}else C=g(B);return typeof arguments[0]=="string"?C:(arguments[0].text=C,arguments[0])};n.events.push(["preProcessText",P])})(Rt.API),Rt.API.autoPrint=function(n){var t;return(n=n||{}).variant=n.variant||"non-conform",n.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(n){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(l){i=l}});var f={};Object.defineProperty(this,"style",{get:function(){return f},set:function(l){f=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,r){var a;if((e=e||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(Rt.API),(function(n){var t={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(C){u=C}});var h=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return h},set:function(C){h=C}});var p=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return p},set:function(C){p=C}});var w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(C){w=C}});var x=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return x},set:function(C){x=C}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(C){g=C}});var P=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return P},set:function(C){P=C}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(u){return r.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},n.getTextDimensions=function(u,h){r.call(this);var p=(h=h||{}).fontSize||this.getFontSize(),w=h.font||this.getFont(),x=h.scaleFactor||this.internal.scaleFactor,g=0,P=0,C=0,B=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 S=h.maxWidth;S>0?typeof u=="string"?u=this.splitTextToSize(u,S):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(V,T){return V.concat(B.splitTextToSize(T,S))},[])):u=Array.isArray(u)?u:[u];for(var G=0;G<u.length;G++)g<(C=this.getStringUnitWidth(u[G],{font:w})*p)&&(g=C);return g!==0&&(P=u.length),{w:g/=x,h:Math.max((P*p*this.getLineHeightFactor()-p*(this.getLineHeightFactor()-1))/x,0)}},n.cellAddPage=function(){r.call(this),this.addPage();var u=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var f=n.cell=function(){var u;u=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var h=this.internal.__cell__.lastCell,p=this.internal.__cell__.padding,w=this.internal.__cell__.margins||t,x=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return h.lineNumber!==void 0&&(h.lineNumber===u.lineNumber?(u.x=(h.x||0)+(h.width||0),u.y=h.y||0):h.y+h.height+u.height+w.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=w.top,g&&x&&(this.printHeaderRow(u.lineNumber,!0),u.y+=x[0].height)):u.y=h.y+h.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,e===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-p,u.y+p,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+p,{align:"center",baseline:"top",maxWidth:u.width-p-p}):this.text(u.text,u.x+p,u.y+p,{align:"left",baseline:"top",maxWidth:u.width-p-p})),this.internal.__cell__.lastCell=u,this};n.table=function(u,h,p,w,x){if(r.call(this),!p)throw new Error("No data for PDF table.");var g,P,C,B,S=[],G=[],V=[],T={},it={},vt=[],ct=[],K=(x=x||{}).autoSize||!1,R=x.printHeaders!==!1,tt=x.css&&x.css["font-size"]!==void 0?16*x.css["font-size"]:x.fontSize||12,L=x.margins||Object.assign({width:this.getPageWidth()},t),O=typeof x.padding=="number"?x.padding:3,z=x.headerBackgroundColor||"#c8c8c8",U=x.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=tt,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=U,this.setFontSize(tt),w==null)G=S=Object.keys(p[0]),V=S.map(function(){return"left"});else if(Array.isArray(w)&&ye(w[0])==="object")for(S=w.map(function(_t){return _t.name}),G=w.map(function(_t){return _t.prompt||_t.name||""}),V=w.map(function(_t){return _t.align||"left"}),g=0;g<w.length;g+=1)it[w[g].name]=.7499990551181103*w[g].width;else Array.isArray(w)&&typeof w[0]=="string"&&(G=S=w,V=S.map(function(){return"left"}));if(K||Array.isArray(w)&&typeof w[0]=="string")for(g=0;g<S.length;g+=1){for(T[B=S[g]]=p.map(function(_t){return _t[B]}),this.setFont(void 0,"bold"),vt.push(this.getTextDimensions(G[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),P=T[B],this.setFont(void 0,"normal"),C=0;C<P.length;C+=1)vt.push(this.getTextDimensions(P[C],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);it[B]=Math.max.apply(null,vt)+O+O,vt=[]}if(R){var rt={};for(g=0;g<S.length;g+=1)rt[S[g]]={},rt[S[g]].text=G[g],rt[S[g]].align=V[g];var st=l.call(this,rt,it);ct=S.map(function(_t){return new i(u,h,it[_t],st,rt[_t].text,void 0,rt[_t].align)}),this.setTableHeaderRow(ct),this.printHeaderRow(1,!1)}var ut=w.reduce(function(_t,wt){return _t[wt.name]=wt.align,_t},{});for(g=0;g<p.length;g+=1){"rowStart"in x&&x.rowStart instanceof Function&&x.rowStart({row:g,data:p[g]},this);var nt=l.call(this,p[g],it);for(C=0;C<S.length;C+=1){var ht=p[g][S[C]];"cellStart"in x&&x.cellStart instanceof Function&&x.cellStart({row:g,col:C,data:ht},this),f.call(this,new i(u,h,it[S[C]],nt,ht,g+2,ut[S[C]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=h,this};var l=function(u,h){var p=this.internal.__cell__.padding,w=this.internal.__cell__.table_font_size,x=this.internal.scaleFactor;return Object.keys(u).map(function(g){var P=u[g];return this.splitTextToSize(P.hasOwnProperty("text")?P.text:P,h[g]-p-p)},this).map(function(g){return this.getLineHeightFactor()*g.length*w/x+p+p},this).reduce(function(g,P){return Math.max(g,P)},0)};n.setTableHeaderRow=function(u){r.call(this),this.internal.__cell__.tableHeaderRow=u},n.printHeaderRow=function(u,h){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var p;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(w[0],w[1],w[2],w[3],void 0,-1)}this.setFont(void 0,"bold");for(var x=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){p=this.internal.__cell__.tableHeaderRow[g].clone(),h&&(p.y=this.internal.__cell__.margins.top||0,x.push(p)),p.lineNumber=u;var P=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),f.call(this,p),this.setTextColor(P)}x.length>0&&this.setTableHeaderRow(x),this.setFont(void 0,"normal"),e=!1}})(Rt.API);var Qf={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},th=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],nl=Zf(th),eh=[100,200,300,400,500,600,700,800,900],A2=Zf(eh);function Ms(n){var t=n.family.replace(/"|'/g,"").toLowerCase(),e=(function(i){return Qf[i=i||"normal"]?i:"normal"})(n.style),r=(function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400})(n.weight),a=(function(i){return typeof nl[i=i||"normal"]=="number"?i:"normal"})(n.stretch);return{family:t,style:e,weight:r,stretch:a,src:n.src||[],ref:n.ref||{name:t,style:[a,e,r].join(" ")}}}function Wu(n,t,e,r){var a;for(a=e;a>=0&&a<t.length;a+=r)if(n[t[a]])return n[t[a]];for(a=e;a>=0&&a<t.length;a-=r)if(n[t[a]])return n[t[a]]}var _2={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Gu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Vu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Yu(n){return n.trimLeft()}function N2(n,t){for(var e=0;e<n.length;){if(n.charAt(e)===t)return[n.substring(0,e),n.substring(e+1)];e+=1}return null}function L2(n){var t=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],n.substring(t[0].length)]}var Gi,ko,Ju,Ku,Xu,Ts=["times"];function $u(n,t,e,r,a){var i=4,f=Qu;switch(a){case Rt.API.image_compression.FAST:i=1,f=Zu;break;case Rt.API.image_compression.MEDIUM:i=6,f=tf;break;case Rt.API.image_compression.SLOW:i=9,f=ef}n=(function(u,h,p,w){for(var x,g=u.length/h,P=new Uint8Array(u.length+g),C=[S2,Zu,Qu,tf,ef],B=0;B<g;B+=1){var S=B*h,G=u.subarray(S,S+h);if(w)P.set(w(G,p,x),S+B);else{for(var V=C.length,T=[],it=0;it<V;it+=1)T[it]=C[it](G,p,x);var vt=P2(T.concat());P.set(T[vt],S+B)}x=G}return P})(n,t,Math.ceil(e*r/8),f);var l=Ks(n,{level:i});return Rt.API.__addimage__.arrayBufferToBinaryString(l)}function S2(n){var t=Array.apply([],n);return t.unshift(0),t}function Zu(n,t){var e=n.length,r=[];r[0]=1;for(var a=0;a<e;a+=1){var i=n[a-t]||0;r[a+1]=n[a]-i+256&255}return r}function Qu(n,t,e){var r=n.length,a=[];a[0]=2;for(var i=0;i<r;i+=1){var f=e&&e[i]||0;a[i+1]=n[i]-f+256&255}return a}function tf(n,t,e){var r=n.length,a=[];a[0]=3;for(var i=0;i<r;i+=1){var f=n[i-t]||0,l=e&&e[i]||0;a[i+1]=n[i]+256-(f+l>>>1)&255}return a}function ef(n,t,e){var r=n.length,a=[];a[0]=4;for(var i=0;i<r;i+=1){var f=k2(n[i-t]||0,e&&e[i]||0,e&&e[i-t]||0);a[i+1]=n[i]-f+256&255}return a}function k2(n,t,e){if(n===t&&t===e)return n;var r=Math.abs(t-e),a=Math.abs(n-e),i=Math.abs(n+t-e-e);return r<=a&&r<=i?n:a<=i?t:e}function P2(n){var t=n.map(function(e){return e.reduce(function(r,a){return r+Math.abs(a)},0)});return t.indexOf(Math.min.apply(null,t))}function qs(n,t,e){var r=t*e,a=Math.floor(r/8),i=16-(r-8*a+e),f=(1<<e)-1;return nh(n,a)>>i&f}function nf(n,t,e,r){var a=e*r,i=Math.floor(a/8),f=16-(a-8*i+r),l=(1<<r)-1,u=(t&l)<<f;(function(h,p,w){if(p+1<h.byteLength)h.setUint16(p,w,!1);else{var x=w>>8&255;h.setUint8(p,x)}})(n,i,nh(n,i)&~(l<<f)&65535|u)}function nh(n,t){return t+1<n.byteLength?n.getUint16(t,!1):n.getUint8(t)<<8}function C2(n){var t=0;if(n[t++]!==71||n[t++]!==73||n[t++]!==70||n[t++]!==56||(n[t++]+1&253)!=56||n[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=n[t++]|n[t++]<<8,r=n[t++]|n[t++]<<8,a=n[t++],i=a>>7,f=1<<1+(7&a);n[t++],n[t++];var l=null,u=null;i&&(l=t,u=f,t+=3*f);var h=!0,p=[],w=0,x=null,g=0,P=null;for(this.width=e,this.height=r;h&&t<n.length;)switch(n[t++]){case 33:switch(n[t++]){case 255:if(n[t]!==11||n[t+1]==78&&n[t+2]==69&&n[t+3]==84&&n[t+4]==83&&n[t+5]==67&&n[t+6]==65&&n[t+7]==80&&n[t+8]==69&&n[t+9]==50&&n[t+10]==46&&n[t+11]==48&&n[t+12]==3&&n[t+13]==1&&n[t+16]==0)t+=14,P=n[t++]|n[t++]<<8,t++;else for(t+=12;;){if(!((L=n[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;case 249:if(n[t++]!==4||n[t+4]!==0)throw new Error("Invalid graphics extension block.");var C=n[t++];w=n[t++]|n[t++]<<8,x=n[t++],1&C||(x=null),g=C>>2&7,t++;break;case 254:for(;;){if(!((L=n[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+n[t-1].toString(16))}break;case 44:var B=n[t++]|n[t++]<<8,S=n[t++]|n[t++]<<8,G=n[t++]|n[t++]<<8,V=n[t++]|n[t++]<<8,T=n[t++],it=T>>6&1,vt=1<<1+(7&T),ct=l,K=u,R=!1;T>>7&&(R=!0,ct=t,K=vt,t+=3*vt);var tt=t;for(t++;;){var L;if(!((L=n[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}p.push({x:B,y:S,width:G,height:V,has_local_palette:R,palette_offset:ct,palette_size:K,data_offset:tt,data_length:t-tt,transparent_index:x,interlaced:!!it,delay:w,disposal:g});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+n[t-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return P},this.frameInfo=function(O){if(O<0||O>=p.length)throw new Error("Frame index out of range.");return p[O]},this.decodeAndBlitFrameBGRA=function(O,z){var U=this.frameInfo(O),rt=U.width*U.height;if(rt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var st=new Uint8Array(rt);rf(n,U.data_offset,st,rt);var ut=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ht=U.width,_t=e-ht,wt=ht,_=4*(U.y*e+U.x),D=4*((U.y+U.height)*e+U.x),M=_,H=4*_t;U.interlaced===!0&&(H+=4*e*7);for(var J=8,Z=0,at=st.length;Z<at;++Z){var ot=st[Z];if(wt===0&&(wt=ht,(M+=H)>=D&&(H=4*_t+4*e*(J-1),M=_+(ht+_t)*(J<<1),J>>=1)),ot===nt)M+=4;else{var gt=n[ut+3*ot],At=n[ut+3*ot+1],kt=n[ut+3*ot+2];z[M++]=kt,z[M++]=At,z[M++]=gt,z[M++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(O,z){var U=this.frameInfo(O),rt=U.width*U.height;if(rt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var st=new Uint8Array(rt);rf(n,U.data_offset,st,rt);var ut=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ht=U.width,_t=e-ht,wt=ht,_=4*(U.y*e+U.x),D=4*((U.y+U.height)*e+U.x),M=_,H=4*_t;U.interlaced===!0&&(H+=4*e*7);for(var J=8,Z=0,at=st.length;Z<at;++Z){var ot=st[Z];if(wt===0&&(wt=ht,(M+=H)>=D&&(H=4*_t+4*e*(J-1),M=_+(ht+_t)*(J<<1),J>>=1)),ot===nt)M+=4;else{var gt=n[ut+3*ot],At=n[ut+3*ot+1],kt=n[ut+3*ot+2];z[M++]=gt,z[M++]=At,z[M++]=kt,z[M++]=255}--wt}}}function rf(n,t,e,r){for(var a=n[t++],i=1<<a,f=i+1,l=f+1,u=a+1,h=(1<<u)-1,p=0,w=0,x=0,g=n[t++],P=new Int32Array(4096),C=null;;){for(;p<16&&g!==0;)w|=n[t++]<<p,p+=8,g===1?g=n[t++]:--g;if(p<u)break;var B=w&h;if(w>>=u,p-=u,B!==i){if(B===f)break;for(var S=B<l?B:C,G=0,V=S;V>i;)V=P[V]>>8,++G;var T=V;if(x+G+(S!==B?1:0)>r)return void Le.log("Warning, gif stream longer than expected.");e[x++]=T;var it=x+=G;for(S!==B&&(e[x++]=T),V=S;G--;)V=P[V],e[--it]=255&V,V>>=8;C!==null&&l<4096&&(P[l++]=C<<8|T,l>=h+1&&u<12&&(++u,h=h<<1|1)),C=B}else l=f+1,h=(1<<(u=a+1))-1,C=null}return x!==r&&Le.log("Warning, gif stream shorter than expected."),e}function Us(n){var t,e,r,a,i,f=Math.floor,l=new Array(64),u=new Array(64),h=new Array(64),p=new Array(64),w=new Array(65535),x=new Array(65535),g=new Array(64),P=new Array(64),C=[],B=0,S=7,G=new Array(64),V=new Array(64),T=new Array(64),it=new Array(256),vt=new Array(2048),ct=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],K=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],tt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],rt=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function st(_,D){for(var M=0,H=0,J=new Array,Z=1;Z<=16;Z++){for(var at=1;at<=_[Z];at++)J[D[H]]=[],J[D[H]][0]=M,J[D[H]][1]=Z,H++,M++;M*=2}return J}function ut(_){for(var D=_[0],M=_[1]-1;M>=0;)D&1<<M&&(B|=1<<S),M--,--S<0&&(B==255?(nt(255),nt(0)):nt(B),S=7,B=0)}function nt(_){C.push(_)}function ht(_){nt(_>>8&255),nt(255&_)}function _t(_,D,M,H,J){for(var Z,at=J[0],ot=J[240],gt=(function(yt,Wt){var Ct,zt,qt,me,ue,Zt,he,fe,jt,ee,Mt=0;for(jt=0;jt<8;++jt){Ct=yt[Mt],zt=yt[Mt+1],qt=yt[Mt+2],me=yt[Mt+3],ue=yt[Mt+4],Zt=yt[Mt+5],he=yt[Mt+6];var Te=Ct+(fe=yt[Mt+7]),pe=Ct-fe,oe=zt+he,se=zt-he,Ie=qt+Zt,Ut=qt-Zt,Se=me+ue,Yt=me-ue,Qt=Te+Se,Ee=Te-Se,le=oe+Ie,Gt=oe-Ie;yt[Mt]=Qt+le,yt[Mt+4]=Qt-le;var be=.707106781*(Gt+Ee);yt[Mt+2]=Ee+be,yt[Mt+6]=Ee-be;var ii=.382683433*((Qt=Yt+Ut)-(Gt=se+pe)),hn=.5411961*Qt+ii,gr=1.306562965*Gt+ii,nr=.707106781*(le=Ut+se),Vt=pe+nr,vr=pe-nr;yt[Mt+5]=vr+hn,yt[Mt+3]=vr-hn,yt[Mt+1]=Vt+gr,yt[Mt+7]=Vt-gr,Mt+=8}for(Mt=0,jt=0;jt<8;++jt){Ct=yt[Mt],zt=yt[Mt+8],qt=yt[Mt+16],me=yt[Mt+24],ue=yt[Mt+32],Zt=yt[Mt+40],he=yt[Mt+48];var mr=Ct+(fe=yt[Mt+56]),jn=Ct-fe,Bn=zt+he,Be=zt-he,nn=qt+Zt,an=qt-Zt,ai=me+ue,Mr=me-ue,Wn=mr+ai,rr=mr-ai,Gn=Bn+nn,Vn=Bn-nn;yt[Mt]=Wn+Gn,yt[Mt+32]=Wn-Gn;var Dn=.707106781*(Vn+rr);yt[Mt+16]=rr+Dn,yt[Mt+48]=rr-Dn;var oi=.382683433*((Wn=Mr+an)-(Vn=Be+jn)),ir=.5411961*Wn+oi,si=1.306562965*Vn+oi,Fi=.707106781*(Gn=an+Be),Ii=jn+Fi,Ei=jn-Fi;yt[Mt+40]=Ei+ir,yt[Mt+24]=Ei-ir,yt[Mt+8]=Ii+si,yt[Mt+56]=Ii-si,Mt++}for(jt=0;jt<64;++jt)ee=yt[jt]*Wt[jt],g[jt]=ee>0?ee+.5|0:ee-.5|0;return g})(_,D),At=0;At<64;++At)P[ct[At]]=gt[At];var kt=P[0]-M;M=P[0],kt==0?ut(H[0]):(ut(H[x[Z=32767+kt]]),ut(w[Z]));for(var St=63;St>0&&P[St]==0;)St--;if(St==0)return ut(at),M;for(var Tt,F=1;F<=St;){for(var Lt=F;P[F]==0&&F<=St;)++F;var ae=F-Lt;if(ae>=16){Tt=ae>>4;for(var Ht=1;Ht<=Tt;++Ht)ut(ot);ae&=15}Z=32767+P[F],ut(J[(ae<<4)+x[Z]]),ut(w[Z]),F++}return St!=63&&ut(at),M}function wt(_){_=Math.min(Math.max(_,1),100),i!=_&&((function(D){for(var M=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],H=0;H<64;H++){var J=f((M[H]*D+50)/100);J=Math.min(Math.max(J,1),255),l[ct[H]]=J}for(var Z=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],at=0;at<64;at++){var ot=f((Z[at]*D+50)/100);ot=Math.min(Math.max(ot,1),255),u[ct[at]]=ot}for(var gt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],At=0,kt=0;kt<8;kt++)for(var St=0;St<8;St++)h[At]=1/(l[ct[At]]*gt[kt]*gt[St]*8),p[At]=1/(u[ct[At]]*gt[kt]*gt[St]*8),At++})(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),i=_)}this.encode=function(_,D){D&&wt(D),C=new Array,B=0,S=7,ht(65496),ht(65504),ht(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),ht(1),ht(1),nt(0),nt(0),(function(){ht(65499),ht(132),nt(0);for(var zt=0;zt<64;zt++)nt(l[zt]);nt(1);for(var qt=0;qt<64;qt++)nt(u[qt])})(),(function(zt,qt){ht(65472),ht(17),nt(8),ht(qt),ht(zt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)})(_.width,_.height),(function(){ht(65476),ht(418),nt(0);for(var zt=0;zt<16;zt++)nt(K[zt+1]);for(var qt=0;qt<=11;qt++)nt(R[qt]);nt(16);for(var me=0;me<16;me++)nt(tt[me+1]);for(var ue=0;ue<=161;ue++)nt(L[ue]);nt(1);for(var Zt=0;Zt<16;Zt++)nt(O[Zt+1]);for(var he=0;he<=11;he++)nt(z[he]);nt(17);for(var fe=0;fe<16;fe++)nt(U[fe+1]);for(var jt=0;jt<=161;jt++)nt(rt[jt])})(),ht(65498),ht(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var M=0,H=0,J=0;B=0,S=7,this.encode.displayName="_encode_";for(var Z,at,ot,gt,At,kt,St,Tt,F,Lt=_.data,ae=_.width,Ht=_.height,yt=4*ae,Wt=0;Wt<Ht;){for(Z=0;Z<yt;){for(At=yt*Wt+Z,St=-1,Tt=0,F=0;F<64;F++)kt=At+(Tt=F>>3)*yt+(St=4*(7&F)),Wt+Tt>=Ht&&(kt-=yt*(Wt+1+Tt-Ht)),Z+St>=yt&&(kt-=Z+St-yt+4),at=Lt[kt++],ot=Lt[kt++],gt=Lt[kt++],G[F]=(vt[at]+vt[ot+256|0]+vt[gt+512|0]>>16)-128,V[F]=(vt[at+768|0]+vt[ot+1024|0]+vt[gt+1280|0]>>16)-128,T[F]=(vt[at+1280|0]+vt[ot+1536|0]+vt[gt+1792|0]>>16)-128;M=_t(G,h,M,t,r),H=_t(V,p,H,e,a),J=_t(T,p,J,e,a),Z+=32}Wt+=8}if(S>=0){var Ct=[];Ct[1]=S+1,Ct[0]=(1<<S+1)-1,ut(Ct)}return ht(65497),new Uint8Array(C)},n=n||50,(function(){for(var _=String.fromCharCode,D=0;D<256;D++)it[D]=_(D)})(),t=st(K,R),e=st(O,z),r=st(tt,L),a=st(U,rt),(function(){for(var _=1,D=2,M=1;M<=15;M++){for(var H=_;H<D;H++)x[32767+H]=M,w[32767+H]=[],w[32767+H][1]=M,w[32767+H][0]=H;for(var J=-(D-1);J<=-_;J++)x[32767+J]=M,w[32767+J]=[],w[32767+J][1]=M,w[32767+J][0]=D-1+J;_<<=1,D<<=1}})(),(function(){for(var _=0;_<256;_++)vt[_]=19595*_,vt[_+256|0]=38470*_,vt[_+512|0]=7471*_+32768,vt[_+768|0]=-11059*_,vt[_+1024|0]=-21709*_,vt[_+1280|0]=32768*_+8421375,vt[_+1536|0]=-27439*_,vt[_+1792|0]=-5329*_})(),wt(n)}function Zn(n,t){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.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 af(n){function t(R){if(!R)throw Error("assert :P")}function e(R,tt,L){for(var O=0;4>O;O++)if(R[tt+O]!=L.charCodeAt(O))return!0;return!1}function r(R,tt,L,O,z){for(var U=0;U<z;U++)R[tt+U]=L[O+U]}function a(R,tt,L,O){for(var z=0;z<O;z++)R[tt+z]=L}function i(R){return new Int32Array(R)}function f(R,tt){for(var L=[],O=0;O<R;O++)L.push(new tt);return L}function l(R,tt){var L=[];return(function O(z,U,rt){for(var st=rt[U],ut=0;ut<st&&(z.push(rt.length>U+1?[]:new tt),!(rt.length<U+1));ut++)O(z[ut],U+1,rt)})(L,0,R),L}var u=function(){var R=this;function tt(o,s){for(var d=1<<s-1>>>0;o&d;)d>>>=1;return d?(o&d-1)+d:o}function L(o,s,d,v,b){t(!(v%d));do o[s+(v-=d)]=b;while(0<v)}function O(o,s,d,v,b){if(t(2328>=b),512>=b)var y=i(512);else if((y=i(b))==null)return 0;return(function(A,N,k,I,W,et){var E,Y,$=N,lt=1<<k,Q=i(16),ft=i(16);for(t(W!=0),t(I!=null),t(A!=null),t(0<k),Y=0;Y<W;++Y){if(15<I[Y])return 0;++Q[I[Y]]}if(Q[0]==W)return 0;for(ft[1]=0,E=1;15>E;++E){if(Q[E]>1<<E)return 0;ft[E+1]=ft[E]+Q[E]}for(Y=0;Y<W;++Y)E=I[Y],0<I[Y]&&(et[ft[E]++]=Y);if(ft[15]==1)return(I=new z).g=0,I.value=et[0],L(A,$,1,lt,I),lt;var pt,xt=-1,bt=lt-1,Dt=0,Pt=1,re=1,Et=1<<k;for(Y=0,E=1,W=2;E<=k;++E,W<<=1){if(Pt+=re<<=1,0>(re-=Q[E]))return 0;for(;0<Q[E];--Q[E])(I=new z).g=E,I.value=et[Y++],L(A,$+Dt,W,Et,I),Dt=tt(Dt,E)}for(E=k+1,W=2;15>=E;++E,W<<=1){if(Pt+=re<<=1,0>(re-=Q[E]))return 0;for(;0<Q[E];--Q[E]){if(I=new z,(Dt&bt)!=xt){for($+=Et,pt=1<<(xt=E)-k;15>xt&&!(0>=(pt-=Q[xt]));)++xt,pt<<=1;lt+=Et=1<<(pt=xt-k),A[N+(xt=Dt&bt)].g=pt+k,A[N+xt].value=$-N-xt}I.g=E-k,I.value=et[Y++],L(A,$+(Dt>>k),W,Et,I),Dt=tt(Dt,E)}}return Pt!=2*ft[15]-1?0:lt})(o,s,d,v,b,y)}function z(){this.value=this.g=0}function U(){this.value=this.g=0}function rt(){this.G=f(5,z),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=f(bi,U)}function st(o,s,d,v){t(o!=null),t(s!=null),t(2147483648>v),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=s,o.pa=d,o.Jd=s,o.Yc=d+v,o.Zc=4<=v?d+v-4+1:d,at(o)}function ut(o,s){for(var d=0;0<s--;)d|=gt(o,128)<<s;return d}function nt(o,s){var d=ut(o,s);return ot(o)?-d:d}function ht(o,s,d,v){var b,y=0;for(t(o!=null),t(s!=null),t(4294967288>v),o.Sb=v,o.Ra=0,o.u=0,o.h=0,4<v&&(v=4),b=0;b<v;++b)y+=s[d+b]<<8*b;o.Ra=y,o.bb=v,o.oa=s,o.pa=d}function _t(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<zr-8>>>0,++o.bb,o.u-=8;H(o)&&(o.h=1,o.u=0)}function wt(o,s){if(t(0<=s),!o.h&&s<=Ln){var d=M(o)&Nn[s];return o.u+=s,_t(o),d}return o.h=1,o.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function D(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function M(o){return o.Ra>>>(o.u&zr-1)>>>0}function H(o){return t(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>zr}function J(o,s){o.u=s,o.h=H(o)}function Z(o){o.u>=Pr&&(t(o.u>=Pr),_t(o))}function at(o){t(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(t(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function ot(o){return ut(o,1)}function gt(o,s){var d=o.Ca;0>o.b&&at(o);var v=o.b,b=d*s>>>8,y=(o.I>>>v>b)+0;for(y?(d-=b,o.I-=b+1<<v>>>0):d=b+1,v=d,b=0;256<=v;)b+=8,v>>=8;return v=7^b+Hr[v],o.b-=v,o.Ca=(d<<v)-1,y}function At(o,s,d){o[s+0]=d>>24&255,o[s+1]=d>>16&255,o[s+2]=d>>8&255,o[s+3]=255&d}function kt(o,s){return o[s+0]|o[s+1]<<8}function St(o,s){return kt(o,s)|o[s+2]<<16}function Tt(o,s){return kt(o,s)|kt(o,s+2)<<16}function F(o,s){var d=1<<s;return t(o!=null),t(0<s),o.X=i(d),o.X==null?0:(o.Mb=32-s,o.Xa=s,1)}function Lt(o,s){t(o!=null),t(s!=null),t(o.Xa==s.Xa),r(s.X,0,o.X,0,1<<s.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(o,s,d,v){t(d!=null),t(v!=null);var b=d[0],y=v[0];return b==0&&(b=(o*y+s/2)/s),y==0&&(y=(s*b+o/2)/o),0>=b||0>=y?0:(d[0]=b,v[0]=y,1)}function yt(o,s){return o+(1<<s)-1>>>s}function Wt(o,s){return((4278255360&o)+(4278255360&s)>>>0&4278255360)+((16711935&o)+(16711935&s)>>>0&16711935)>>>0}function Ct(o,s){R[s]=function(d,v,b,y,A,N,k){var I;for(I=0;I<A;++I){var W=R[o](N[k+I-1],b,y+I);N[k+I]=Wt(d[v+I],W)}}}function zt(){this.ud=this.hd=this.jd=0}function qt(o,s){return((4278124286&(o^s))>>>1)+(o&s)>>>0}function me(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function ue(o,s){return me(o+(o-s+.5>>1))}function Zt(o,s,d){return Math.abs(s-d)-Math.abs(o-d)}function he(o,s,d,v,b,y,A){for(v=y[A-1],d=0;d<b;++d)y[A+d]=v=Wt(o[s+d],v)}function fe(o,s,d,v,b){var y;for(y=0;y<d;++y){var A=o[s+y],N=A>>8&255,k=16711935&(k=(k=16711935&A)+((N<<16)+N));v[b+y]=(4278255360&A)+k>>>0}}function jt(o,s){s.jd=255&o,s.hd=o>>8&255,s.ud=o>>16&255}function ee(o,s,d,v,b,y){var A;for(A=0;A<v;++A){var N=s[d+A],k=N>>>8,I=N,W=255&(W=(W=N>>>16)+((o.jd<<24>>24)*(k<<24>>24)>>>5));I=255&(I=(I+=(o.hd<<24>>24)*(k<<24>>24)>>>5)+((o.ud<<24>>24)*(W<<24>>24)>>>5)),b[y+A]=(4278255360&N)+(W<<16)+I}}function Mt(o,s,d,v,b){R[s]=function(y,A,N,k,I,W,et,E,Y){for(k=et;k<E;++k)for(et=0;et<Y;++et)I[W++]=b(N[v(y[A++])])},R[o]=function(y,A,N,k,I,W,et){var E=8>>y.b,Y=y.Ea,$=y.K[0],lt=y.w;if(8>E)for(y=(1<<y.b)-1,lt=(1<<E)-1;A<N;++A){var Q,ft=0;for(Q=0;Q<Y;++Q)Q&y||(ft=v(k[I++])),W[et++]=b($[ft<]),ft>>=E}else R["VP8LMapColor"+d](k,I,$,lt,W,et,A,N,Y)}}function Te(o,s,d,v,b){for(d=s+d;s<d;){var y=o[s++];v[b++]=y>>16&255,v[b++]=y>>8&255,v[b++]=255&y}}function pe(o,s,d,v,b){for(d=s+d;s<d;){var y=o[s++];v[b++]=y>>16&255,v[b++]=y>>8&255,v[b++]=255&y,v[b++]=y>>24&255}}function oe(o,s,d,v,b){for(d=s+d;s<d;){var y=(A=o[s++])>>16&240|A>>12&15,A=240&A|A>>28&15;v[b++]=y,v[b++]=A}}function se(o,s,d,v,b){for(d=s+d;s<d;){var y=(A=o[s++])>>16&248|A>>13&7,A=A>>5&224|A>>3&31;v[b++]=y,v[b++]=A}}function Ie(o,s,d,v,b){for(d=s+d;s<d;){var y=o[s++];v[b++]=255&y,v[b++]=y>>8&255,v[b++]=y>>16&255}}function Ut(o,s,d,v,b,y){if(y==0)for(d=s+d;s<d;)At(v,((y=o[s++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),b+=32;else r(v,b,o,s,d)}function Se(o,s){R[s][0]=R[o+"0"],R[s][1]=R[o+"1"],R[s][2]=R[o+"2"],R[s][3]=R[o+"3"],R[s][4]=R[o+"4"],R[s][5]=R[o+"5"],R[s][6]=R[o+"6"],R[s][7]=R[o+"7"],R[s][8]=R[o+"8"],R[s][9]=R[o+"9"],R[s][10]=R[o+"10"],R[s][11]=R[o+"11"],R[s][12]=R[o+"12"],R[s][13]=R[o+"13"],R[s][14]=R[o+"0"],R[s][15]=R[o+"0"]}function Yt(o){return o==ss||o==ls||o==lo||o==us}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Ee(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function le(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Ee,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function be(){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 ii(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function hn(o,s){var d=o.T,v=s.ba.f.RGBA,b=v.eb,y=v.fb+o.ka*v.A,A=zn[s.ba.S],N=o.y,k=o.O,I=o.f,W=o.N,et=o.ea,E=o.W,Y=s.cc,$=s.dc,lt=s.Mc,Q=s.Nc,ft=o.ka,pt=o.ka+o.T,xt=o.U,bt=xt+1>>1;for(ft==0?A(N,k,null,null,I,W,et,E,I,W,et,E,b,y,null,null,xt):(A(s.ec,s.fc,N,k,Y,$,lt,Q,I,W,et,E,b,y-v.A,b,y,xt),++d);ft+2<pt;ft+=2)Y=I,$=W,lt=et,Q=E,W+=o.Rc,E+=o.Rc,y+=2*v.A,A(N,(k+=2*o.fa)-o.fa,N,k,Y,$,lt,Q,I,W,et,E,b,y-v.A,b,y,xt);return k+=o.fa,o.j+pt<o.o?(r(s.ec,s.fc,N,k,xt),r(s.cc,s.dc,I,W,bt),r(s.Mc,s.Nc,et,E,bt),d--):1&pt||A(N,k,null,null,I,W,et,E,I,W,et,E,b,y+v.A,null,null,xt),d}function gr(o,s,d){var v=o.F,b=[o.J];if(v!=null){var y=o.U,A=s.ba.S,N=A==so||A==lo;s=s.ba.f.RGBA;var k=[0],I=o.ka;k[0]=o.T,o.Kb&&(I==0?--k[0]:(--I,b[0]-=o.width),o.j+o.ka+o.T==o.o&&(k[0]=o.o-o.j-I));var W=s.eb;I=s.fb+I*s.A,o=bl(v,b[0],o.width,y,k,W,I+(N?0:3),s.A),t(d==k),o&&Yt(A)&&_a(W,I,N,y,k,s.A)}return 0}function nr(o){var s=o.ma,d=s.ba.S,v=11>d,b=d==ao||d==oo||d==so||d==os||d==12||Yt(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!ga(s.Oa,o,b?11:12))return 0;if(b&&Yt(d)&&ca(),o.da)alert("todo:use_scaling");else{if(v){if(s.Ib=ii,o.Kb){if(d=o.U+1>>1,s.memory=i(o.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+o.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=hn,ca()}}else alert("todo:EmitYUV");b&&(s.Jb=gr,v&&Jn())}if(v&&!jl){for(o=0;256>o;++o)Mh[o]=89858*(o-128)+fo>>uo,Uh[o]=-22014*(o-128)+fo,qh[o]=-45773*(o-128),Th[o]=113618*(o-128)+fo>>uo;for(o=La;o<cs;++o)s=76283*(o-16)+fo>>uo,zh[o-La]=ar(s,255),Hh[o-La]=ar(s+8>>4,15);jl=1}return 1}function Vt(o){var s=o.ma,d=o.U,v=o.T;return t(!(1&o.ka)),0>=d||0>=v?0:(d=s.Ib(o,s),s.Jb!=null&&s.Jb(o,s,d),s.Dc+=d,1)}function vr(o){o.ma.memory=null}function mr(o,s,d,v){return wt(o,8)!=47?0:(s[0]=wt(o,14)+1,d[0]=wt(o,14)+1,v[0]=wt(o,1),wt(o,3)!=0?0:!o.h)}function jn(o,s){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(s,d)+1}function Bn(o,s){return 120<s?s-120:1<=(d=((d=Nh[s-1])>>4)*o+(8-(15&d)))?d:1;var d}function Be(o,s,d){var v=M(d),b=o[s+=255&v].g-8;return 0<b&&(J(d,d.u+8),v=M(d),s+=o[s].value,s+=v&(1<<b)-1),J(d,d.u+o[s].g),o[s].value}function nn(o,s,d){return d.g+=o.g,d.value+=o.value<<s>>>0,t(8>=d.g),o.g}function an(o,s,d){var v=o.xc;return t((s=v==0?0:o.vc[o.md*(d>>v)+(s>>v)])<o.Wb),o.Ya[s]}function ai(o,s,d,v){var b=o.ab,y=o.c*s,A=o.C;s=A+s;var N=d,k=v;for(v=o.Ta,d=o.Ua;0<b--;){var I=o.gc[b],W=A,et=s,E=N,Y=k,$=(k=v,N=d,I.Ea);switch(t(W<et),t(et<=I.nc),I.hc){case 2:qe(E,Y,(et-W)*$,k,N);break;case 0:var lt=W,Q=et,ft=k,pt=N,xt=(Et=I).Ea;lt==0&&(ma(E,Y,null,null,1,ft,pt),he(E,Y+1,0,0,xt-1,ft,pt+1),Y+=xt,pt+=xt,++lt);for(var bt=1<<Et.b,Dt=bt-1,Pt=yt(xt,Et.b),re=Et.K,Et=Et.w+(lt>>Et.b)*Pt;lt<Q;){var ce=re,Qe=Et,ie=1;for(qi(E,Y,ft,pt-xt,1,ft,pt);ie<xt;){var Ot=(ie&~Dt)+bt;Ot>xt&&(Ot=xt),(0,wa[ce[Qe++]>>8&15])(E,Y+ +ie,ft,pt+ie-xt,Ot-ie,ft,pt+ie),ie=Ot}Y+=xt,pt+=xt,++lt&Dt||(Et+=Pt)}et!=I.nc&&r(k,N-$,k,N+(et-W-1)*$,$);break;case 1:for($=E,Q=Y,xt=(E=I.Ea)-(pt=E&~(ft=(Y=1<<I.b)-1)),lt=yt(E,I.b),bt=I.K,I=I.w+(W>>I.b)*lt;W<et;){for(Dt=bt,Pt=I,re=new zt,Et=Q+pt,ce=Q+E;Q<Et;)jt(Dt[Pt++],re),ya(re,$,Q,Y,k,N),Q+=Y,N+=Y;Q<ce&&(jt(Dt[Pt++],re),ya(re,$,Q,xt,k,N),Q+=xt,N+=xt),++W&ft||(I+=lt)}break;case 3:if(E==k&&Y==N&&0<I.b){for(Q=k,E=$=N+(et-W)*$-(pt=(et-W)*yt(I.Ea,I.b)),Y=k,ft=N,lt=[],pt=(xt=pt)-1;0<=pt;--pt)lt[pt]=Y[ft+pt];for(pt=xt-1;0<=pt;--pt)Q[E+pt]=lt[pt];eo(I,W,et,k,$,k,N)}else eo(I,W,et,E,Y,k,N)}N=v,k=d}k!=d&&r(v,d,N,k,y)}function Mr(o,s){var d=o.V,v=o.Ba+o.c*o.C,b=s-o.C;if(t(s<=o.l.o),t(16>=b),0<b){var y=o.l,A=o.Ta,N=o.Ua,k=y.width;if(ai(o,b,d,v),b=N=[N],t((d=o.C)<(v=s)),t(y.v<y.va),v>y.o&&(v=y.o),d<y.j){var I=y.j-d;d=y.j,b[0]+=I*k}if(d>=v?d=0:(b[0]+=4*y.v,y.ka=d-y.j,y.U=y.va-y.v,y.T=v-d,d=1),d){if(N=N[0],11>(d=o.ca).S){var W=d.f.RGBA,et=(v=d.S,b=y.U,y=y.T,I=W.eb,W.A),E=y;for(W=W.fb+o.Ma*W.A;0<E--;){var Y=A,$=N,lt=b,Q=I,ft=W;switch(v){case io:xa(Y,$,lt,Q,ft);break;case ao:Wr(Y,$,lt,Q,ft);break;case ss:Wr(Y,$,lt,Q,ft),_a(Q,ft,0,lt,1,0);break;case Ll:wi(Y,$,lt,Q,ft);break;case oo:Ut(Y,$,lt,Q,ft,1);break;case ls:Ut(Y,$,lt,Q,ft,1),_a(Q,ft,0,lt,1,0);break;case so:Ut(Y,$,lt,Q,ft,0);break;case lo:Ut(Y,$,lt,Q,ft,0),_a(Q,ft,1,lt,1,0);break;case os:Gr(Y,$,lt,Q,ft);break;case us:Gr(Y,$,lt,Q,ft),ml(Q,ft,lt,1,0);break;case Sl:Vr(Y,$,lt,Q,ft);break;default:t(0)}N+=k,W+=et}o.Ma+=y}else alert("todo:EmitRescaledRowsYUVA");t(o.Ma<=d.height)}}o.C=s,t(o.C<=o.i)}function Wn(o){var s;if(0<o.ua)return 0;for(s=0;s<o.Wb;++s){var d=o.Ya[s].G,v=o.Ya[s].H;if(0<d[1][v[1]+0].g||0<d[2][v[2]+0].g||0<d[3][v[3]+0].g)return 0}return 1}function rr(o,s,d,v,b,y){if(o.Z!=0){var A=o.qd,N=o.rd;for(t(Kr[o.Z]!=null);s<d;++s)Kr[o.Z](A,N,v,b,v,b,y),A=v,N=b,b+=y;o.qd=A,o.rd=N}}function Gn(o,s){var d=o.l.ma,v=d.Z==0||d.Z==1?o.l.j:o.C;if(v=o.C<v?v:o.C,t(s<=o.l.o),s>v){var b=o.l.width,y=d.ca,A=d.tb+b*v,N=o.V,k=o.Ba+o.c*v,I=o.gc;t(o.ab==1),t(I[0].hc==3),ur(I[0],v,s,N,k,y,A),rr(d,v,s,y,A,b)}o.C=o.Ma=s}function Vn(o,s,d,v,b,y,A){var N=o.$/v,k=o.$%v,I=o.m,W=o.s,et=d+o.$,E=et;b=d+v*b;var Y=d+v*y,$=280+W.ua,lt=o.Pb?N:16777216,Q=0<W.ua?W.Wa:null,ft=W.wc,pt=et<Y?an(W,k,N):null;t(o.C<y),t(Y<=b);var xt=!1;t:for(;;){for(;xt||et<Y;){var bt=0;if(N>=lt){var Dt=et-d;t((lt=o).Pb),lt.wd=lt.m,lt.xd=Dt,0<lt.s.ua&&Lt(lt.s.Wa,lt.s.vb),lt=N+Sh}if(k&ft||(pt=an(W,k,N)),t(pt!=null),pt.Qb&&(s[et]=pt.qb,xt=!0),!xt)if(Z(I),pt.jc){bt=I,Dt=s;var Pt=et,re=pt.pd[M(bt)&bi-1];t(pt.jc),256>re.g?(J(bt,bt.u+re.g),Dt[Pt]=re.value,bt=0):(J(bt,bt.u+re.g-256),t(256<=re.value),bt=re.value),bt==0&&(xt=!0)}else bt=Be(pt.G[0],pt.H[0],I);if(I.h)break;if(xt||256>bt){if(!xt)if(pt.nd)s[et]=(pt.qb|bt<<8)>>>0;else{if(Z(I),xt=Be(pt.G[1],pt.H[1],I),Z(I),Dt=Be(pt.G[2],pt.H[2],I),Pt=Be(pt.G[3],pt.H[3],I),I.h)break;s[et]=(Pt<<24|xt<<16|bt<<8|Dt)>>>0}if(xt=!1,++et,++k>=v&&(k=0,++N,A!=null&&N<=y&&!(N%16)&&A(o,N),Q!=null))for(;E<et;)bt=s[E++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else if(280>bt){if(bt=jn(bt-256,I),Dt=Be(pt.G[4],pt.H[4],I),Z(I),Dt=Bn(v,Dt=jn(Dt,I)),I.h)break;if(et-d<Dt||b-et<bt)break t;for(Pt=0;Pt<bt;++Pt)s[et+Pt]=s[et+Pt-Dt];for(et+=bt,k+=bt;k>=v;)k-=v,++N,A!=null&&N<=y&&!(N%16)&&A(o,N);if(t(et<=b),k&ft&&(pt=an(W,k,N)),Q!=null)for(;E<et;)bt=s[E++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else{if(!(bt<$))break t;for(xt=bt-280,t(Q!=null);E<et;)bt=s[E++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=et,t(!(xt>>>(Dt=Q).Xa)),s[bt]=Dt.X[xt],xt=!0}xt||t(I.h==H(I))}if(o.Pb&&I.h&&et<b)t(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&Lt(o.s.vb,o.s.Wa);else{if(I.h)break t;A?.(o,N>y?y:N),o.a=0,o.$=et-d}return 1}return o.a=3,0}function Dn(o){t(o!=null),o.vc=null,o.yc=null,o.Ya=null;var s=o.Wa;s!=null&&(s.X=null),o.vb=null,t(o!=null)}function oi(){var o=new Kt;return o==null?null:(o.a=0,o.xb=Cl,Se("Predictor","VP8LPredictors"),Se("Predictor","VP8LPredictors_C"),Se("PredictorAdd","VP8LPredictorsAdd"),Se("PredictorAdd","VP8LPredictorsAdd_C"),qe=fe,ya=ee,xa=Te,Wr=pe,Gr=oe,Vr=se,wi=Ie,R.VP8LMapColor32b=lr,R.VP8LMapColor8b=ba,o)}function ir(o,s,d,v,b){var y=1,A=[o],N=[s],k=v.m,I=v.s,W=null,et=0;t:for(;;){if(d)for(;y&&wt(k,1);){var E=A,Y=N,$=v,lt=1,Q=$.m,ft=$.gc[$.ab],pt=wt(Q,2);if($.Oc&1<<pt)y=0;else{switch($.Oc|=1<<pt,ft.hc=pt,ft.Ea=E[0],ft.nc=Y[0],ft.K=[null],++$.ab,t(4>=$.ab),pt){case 0:case 1:ft.b=wt(Q,3)+2,lt=ir(yt(ft.Ea,ft.b),yt(ft.nc,ft.b),0,$,ft.K),ft.K=ft.K[0];break;case 3:var xt,bt=wt(Q,8)+1,Dt=16<bt?0:4<bt?1:2<bt?2:3;if(E[0]=yt(ft.Ea,Dt),ft.b=Dt,xt=lt=ir(bt,1,0,$,ft.K)){var Pt,re=bt,Et=ft,ce=1<<(8>>Et.b),Qe=i(ce);if(Qe==null)xt=0;else{var ie=Et.K[0],Ot=Et.w;for(Qe[0]=Et.K[0][0],Pt=1;Pt<1*re;++Pt)Qe[Pt]=Wt(ie[Ot+Pt],Qe[Pt-1]);for(;Pt<4*ce;++Pt)Qe[Pt]=0;Et.K[0]=null,Et.K[0]=Qe,xt=1}}lt=xt;break;case 2:break;default:t(0)}y=lt}}if(A=A[0],N=N[0],y&&wt(k,1)&&!(y=1<=(et=wt(k,4))&&11>=et)){v.a=3;break t}var Nt;if(Nt=y)e:{var ze,te,de,Ce=v,ln=A,bn=N,De=et,cn=d,wn=Ce.m,tn=Ce.s,ve=[null],xe=1,Re=0,Ae=Lh[De];n:for(;;){if(cn&&wt(wn,1)){var un=wt(wn,3)+2,Xn=yt(ln,un),He=yt(bn,un),xn=Xn*He;if(!ir(Xn,He,0,Ce,ve))break n;for(ve=ve[0],tn.xc=un,ze=0;ze<xn;++ze){var Ne=ve[ze]>>8&65535;ve[ze]=Ne,Ne>=xe&&(xe=Ne+1)}}if(wn.h)break n;for(te=0;5>te;++te){var en=kl[te];!te&&0<De&&(en+=1<<De),Re<en&&(Re=en)}var kn=f(xe*Ae,z),yn=xe,Pn=f(yn,rt);if(Pn==null)var Cn=null;else t(65536>=yn),Cn=Pn;var An=i(Re);if(Cn==null||An==null||kn==null){Ce.a=1;break n}var Fn=kn;for(ze=de=0;ze<xe;++ze){var Pe=Cn[ze],In=Pe.G,$n=Pe.H,xi=0,Ir=1,fn=0;for(te=0;5>te;++te){en=kl[te],In[te]=Fn,$n[te]=de,!te&&0<De&&(en+=1<<De);i:{var co,ds=en,po=Ce,Sa=An,Vh=Fn,Yh=de,ps=0,Xr=po.m,Jh=wt(Xr,1);if(a(Sa,0,0,ds),Jh){var Kh=wt(Xr,1)+1,Xh=wt(Xr,1),Rl=wt(Xr,Xh==0?1:8);Sa[Rl]=1,Kh==2&&(Sa[Rl=wt(Xr,8)]=1);var go=1}else{var Ml=i(19),Tl=wt(Xr,4)+4;if(19<Tl){po.a=3;var vo=0;break i}for(co=0;co<Tl;++co)Ml[_h[co]]=wt(Xr,3);var gs=void 0,ka=void 0,ql=po,$h=Ml,mo=ds,Ul=Sa,vs=0,$r=ql.m,zl=8,Hl=f(128,z);r:for(;O(Hl,0,7,$h,19);){if(wt($r,1)){var Zh=2+2*wt($r,3);if((gs=2+wt($r,Zh))>mo)break r}else gs=mo;for(ka=0;ka<mo&&gs--;){Z($r);var Wl=Hl[0+(127&M($r))];J($r,$r.u+Wl.g);var zi=Wl.value;if(16>zi)Ul[ka++]=zi,zi!=0&&(zl=zi);else{var Qh=zi==16,Gl=zi-16,tc=xh[Gl],Vl=wt($r,yh[Gl])+tc;if(ka+Vl>mo)break r;for(var ec=Qh?zl:0;0<Vl--;)Ul[ka++]=ec}}vs=1;break r}vs||(ql.a=3),go=vs}(go=go&&!Xr.h)&&(ps=O(Vh,Yh,8,Sa,ds)),go&&ps!=0?vo=ps:(po.a=3,vo=0)}if(vo==0)break n;if(Ir&&Ah[te]==1&&(Ir=Fn[de].g==0),xi+=Fn[de].g,de+=vo,3>=te){var Pa,ms=An[0];for(Pa=1;Pa<en;++Pa)An[Pa]>ms&&(ms=An[Pa]);fn+=ms}}if(Pe.nd=Ir,Pe.Qb=0,Ir&&(Pe.qb=(In[3][$n[3]+0].value<<24|In[1][$n[1]+0].value<<16|In[2][$n[2]+0].value)>>>0,xi==0&&256>In[0][$n[0]+0].value&&(Pe.Qb=1,Pe.qb+=In[0][$n[0]+0].value<<8)),Pe.jc=!Pe.Qb&&6>fn,Pe.jc){var bo,Er=Pe;for(bo=0;bo<bi;++bo){var Zr=bo,Qr=Er.pd[Zr],wo=Er.G[0][Er.H[0]+Zr];256<=wo.value?(Qr.g=wo.g+256,Qr.value=wo.value):(Qr.g=0,Qr.value=0,Zr>>=nn(wo,8,Qr),Zr>>=nn(Er.G[1][Er.H[1]+Zr],16,Qr),Zr>>=nn(Er.G[2][Er.H[2]+Zr],0,Qr),nn(Er.G[3][Er.H[3]+Zr],24,Qr))}}}tn.vc=ve,tn.Wb=xe,tn.Ya=Cn,tn.yc=kn,Nt=1;break e}Nt=0}if(!(y=Nt)){v.a=3;break t}if(0<et){if(I.ua=1<<et,!F(I.Wa,et)){v.a=1,y=0;break t}}else I.ua=0;var bs=v,Yl=A,nc=N,ws=bs.s,ys=ws.xc;if(bs.c=Yl,bs.i=nc,ws.md=yt(Yl,ys),ws.wc=ys==0?-1:(1<<ys)-1,d){v.xb=Oh;break t}if((W=i(A*N))==null){v.a=1,y=0;break t}y=(y=Vn(v,W,0,A,N,N,null))&&!k.h;break t}return y?(b!=null?b[0]=W:(t(W==null),t(d)),v.$=0,d||Dn(I)):Dn(I),y}function si(o,s){var d=o.c*o.i,v=d+s+16*s;return t(o.c<=s),o.V=i(v),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+d+s,1)}function Fi(o,s){var d=o.C,v=s-d,b=o.V,y=o.Ba+o.c*d;for(t(s<=o.l.o);0<v;){var A=16<v?16:v,N=o.l.ma,k=o.l.width,I=k*A,W=N.ca,et=N.tb+k*d,E=o.Ta,Y=o.Ua;ai(o,A,b,y),wl(E,Y,W,et,I),rr(N,d,d+A,W,et,k),v-=A,b+=A*o.c,d+=A}t(d==s),o.C=o.Ma=s}function Ii(){this.ub=this.yd=this.td=this.Rb=0}function Ei(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ho(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function ea(){this.Yb=(function(){var o=[];return(function s(d,v,b){for(var y=b[v],A=0;A<y&&(d.push(b.length>v+1?[]:0),!(b.length<v+1));A++)s(d[A],v+1,b)})(o,0,[3,11]),o})()}function Ra(){this.jb=i(3),this.Wc=l([4,8],ea),this.Xc=l([4,17],ea)}function Ma(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Rn(){this.ld=this.La=this.dd=this.tc=0}function na(){this.Na=this.la=0}function Ta(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ra(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function qa(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rn),this.Y=0,this.ya=Array(new ra),this.aa=0,this.l=new Oi}function Ua(){this.y=i(16),this.f=i(8),this.ea=i(8)}function za(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Ii,this.Kc=new Ei,this.ed=new Ma,this.Qa=new Ho,this.Ic=this.$c=this.Aa=0,this.D=new qa,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=f(8,_),this.ia=0,this.pb=f(4,Ta),this.Pa=new Ra,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ua),this.Hd=0,this.rb=Array(new na),this.sb=0,this.wa=Array(new Rn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ra),this.L=this.aa=0,this.gd=l([4,2],Rn),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 ar(o,s){return 0>o?0:o>s?s:o}function Oi(){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 Wo(){var o=new za;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Na||(Na=ji)),o}function Ye(o,s,d){return o.a==0&&(o.a=s,o.sc=d,o.cb=0),0}function Ha(o,s,d){return 3<=d&&o[s+0]==157&&o[s+1]==1&&o[s+2]==42}function or(o,s){if(o==null)return 0;if(o.a=0,o.sc="OK",s==null)return Ye(o,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,v=s.w,b=s.ha;if(4>b)return Ye(o,7,"Truncated header.");var y=d[v+0]|d[v+1]<<8|d[v+2]<<16,A=o.Od;if(A.Rb=!(1&y),A.td=y>>1&7,A.yd=y>>4&1,A.ub=y>>5,3<A.td)return Ye(o,3,"Incorrect keyframe parameters.");if(!A.yd)return Ye(o,4,"Frame not displayable.");v+=3,b-=3;var N=o.Kc;if(A.Rb){if(7>b)return Ye(o,7,"cannot parse picture header");if(!Ha(d,v,b))return Ye(o,3,"Bad code word");N.c=16383&(d[v+4]<<8|d[v+3]),N.Td=d[v+4]>>6,N.i=16383&(d[v+6]<<8|d[v+5]),N.Ud=d[v+6]>>6,v+=7,b-=7,o.za=N.c+15>>4,o.Ub=N.i+15>>4,s.width=N.c,s.height=N.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,a((y=o.Pa).jb,0,255,y.jb.length),t((y=o.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,a(y.Zb,0,0,y.Zb.length),a(y.Lb,0,0,y.Lb)}if(A.ub>b)return Ye(o,7,"bad partition length");st(y=o.m,d,v,A.ub),v+=A.ub,b-=A.ub,A.Rb&&(N.Ld=ot(y),N.Kd=ot(y)),N=o.Qa;var k,I=o.Pa;if(t(y!=null),t(N!=null),N.Cb=ot(y),N.Cb){if(N.Bb=ot(y),ot(y)){for(N.Fb=ot(y),k=0;4>k;++k)N.Zb[k]=ot(y)?nt(y,7):0;for(k=0;4>k;++k)N.Lb[k]=ot(y)?nt(y,6):0}if(N.Bb)for(k=0;3>k;++k)I.jb[k]=ot(y)?ut(y,8):255}else N.Bb=0;if(y.Ka)return Ye(o,3,"cannot parse segment header");if((N=o.ed).zd=ot(y),N.Tb=ut(y,6),N.wb=ut(y,3),N.Pc=ot(y),N.Pc&&ot(y)){for(I=0;4>I;++I)ot(y)&&(N.vd[I]=nt(y,6));for(I=0;4>I;++I)ot(y)&&(N.od[I]=nt(y,6))}if(o.L=N.Tb==0?0:N.zd?1:2,y.Ka)return Ye(o,3,"cannot parse filter header");var W=b;if(b=k=v,v=k+W,N=W,o.Xb=(1<<ut(o.m,2))-1,W<3*(I=o.Xb))d=7;else{for(k+=3*I,N-=3*I,W=0;W<I;++W){var et=d[b+0]|d[b+1]<<8|d[b+2]<<16;et>N&&(et=N),st(o.Jc[+W],d,k,et),k+=et,N-=et,b+=3}st(o.Jc[+I],d,k,N),d=k<v?0:5}if(d!=0)return Ye(o,d,"cannot parse partitions");for(d=ut(k=o.m,7),b=ot(k)?nt(k,4):0,v=ot(k)?nt(k,4):0,N=ot(k)?nt(k,4):0,I=ot(k)?nt(k,4):0,k=ot(k)?nt(k,4):0,W=o.Qa,et=0;4>et;++et){if(W.Cb){var E=W.Zb[et];W.Fb||(E+=d)}else{if(0<et){o.pb[et]=o.pb[0];continue}E=d}var Y=o.pb[et];Y.Sc[0]=fs[ar(E+b,127)],Y.Sc[1]=hs[ar(E+0,127)],Y.Eb[0]=2*fs[ar(E+v,127)],Y.Eb[1]=101581*hs[ar(E+N,127)]>>16,8>Y.Eb[1]&&(Y.Eb[1]=8),Y.Qc[0]=fs[ar(E+I,117)],Y.Qc[1]=hs[ar(E+k,127)],Y.lc=E+k}if(!A.Rb)return Ye(o,4,"Not a key frame.");for(ot(y),A=o.Pa,d=0;4>d;++d){for(b=0;8>b;++b)for(v=0;3>v;++v)for(N=0;11>N;++N)I=gt(y,Ih[d][b][v][N])?ut(y,8):Ch[d][b][v][N],A.Wc[d][b].Yb[v][N]=I;for(b=0;17>b;++b)A.Xc[d][b]=A.Wc[d][Eh[b]]}return o.kc=ot(y),o.kc&&(o.Bd=ut(y,8)),o.cb=1}function ji(o,s,d,v,b,y,A){var N=s[b].Yb[d];for(d=0;16>b;++b){if(!gt(o,N[d+0]))return b;for(;!gt(o,N[d+1]);)if(N=s[++b].Yb[0],d=0,b==16)return 16;var k=s[b+1].Yb;if(gt(o,N[d+2])){var I=o,W=0;if(gt(I,(E=N)[(et=d)+3]))if(gt(I,E[et+6])){for(N=0,et=2*(W=gt(I,E[et+8]))+(E=gt(I,E[et+9+W])),W=0,E=kh[et];E[N];++N)W+=W+gt(I,E[N]);W+=3+(8<<et)}else gt(I,E[et+7])?(W=7+2*gt(I,165),W+=gt(I,145)):W=5+gt(I,159);else W=gt(I,E[et+4])?3+gt(I,E[et+5]):2;N=k[2]}else W=1,N=k[1];k=A+Ph[b],0>(I=o).b&&at(I);var et,E=I.b,Y=(et=I.Ca>>1)-(I.I>>E)>>31;--I.b,I.Ca+=Y,I.Ca|=1,I.I-=(et+1&Y)<<E,y[k]=((W^Y)-Y)*v[(0<b)+0]}return 16}function Wa(o){var s=o.rb[o.sb-1];s.la=0,s.Na=0,a(o.zc,0,0,o.zc.length),o.ja=0}function Mn(o,s,d,v,b){b=o[s+d+32*v]+(b>>3),o[s+d+32*v]=-256&b?0>b?0:255:b}function Xe(o,s,d,v,b,y){Mn(o,s,0,d,v+b),Mn(o,s,1,d,v+y),Mn(o,s,2,d,v-y),Mn(o,s,3,d,v-b)}function br(o){return(20091*o>>16)+o}function Ga(o,s,d,v){var b,y=0,A=i(16);for(b=0;4>b;++b){var N=o[s+0]+o[s+8],k=o[s+0]-o[s+8],I=(35468*o[s+4]>>16)-br(o[s+12]),W=br(o[s+4])+(35468*o[s+12]>>16);A[y+0]=N+W,A[y+1]=k+I,A[y+2]=k-I,A[y+3]=N-W,y+=4,s++}for(b=y=0;4>b;++b)N=(o=A[y+0]+4)+A[y+8],k=o-A[y+8],I=(35468*A[y+4]>>16)-br(A[y+12]),Mn(d,v,0,0,N+(W=br(A[y+4])+(35468*A[y+12]>>16))),Mn(d,v,1,0,k+I),Mn(d,v,2,0,k-I),Mn(d,v,3,0,N-W),y++,v+=32}function Go(o,s,d,v){var b=o[s+0]+4,y=35468*o[s+4]>>16,A=br(o[s+4]),N=35468*o[s+1]>>16;Xe(d,v,0,b+A,o=br(o[s+1]),N),Xe(d,v,1,b+y,o,N),Xe(d,v,2,b-y,o,N),Xe(d,v,3,b-A,o,N)}function Vo(o,s,d,v,b){Ga(o,s,d,v),b&&Ga(o,s+16,d,v+4)}function sr(o,s,d,v){yi(o,s+0,d,v,1),yi(o,s+32,d,v+128,1)}function Va(o,s,d,v){var b;for(o=o[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)Mn(d,v,s,b,o)}function Ya(o,s,d,v){o[s+0]&&we(o,s+0,d,v),o[s+16]&&we(o,s+16,d,v+4),o[s+32]&&we(o,s+32,d,v+128),o[s+48]&&we(o,s+48,d,v+128+4)}function Bi(o,s,d,v){var b,y=i(16);for(b=0;4>b;++b){var A=o[s+0+b]+o[s+12+b],N=o[s+4+b]+o[s+8+b],k=o[s+4+b]-o[s+8+b],I=o[s+0+b]-o[s+12+b];y[0+b]=A+N,y[8+b]=A-N,y[4+b]=I+k,y[12+b]=I-k}for(b=0;4>b;++b)A=(o=y[0+4*b]+3)+y[3+4*b],N=y[1+4*b]+y[2+4*b],k=y[1+4*b]-y[2+4*b],I=o-y[3+4*b],d[v+0]=A+N>>3,d[v+16]=I+k>>3,d[v+32]=A-N>>3,d[v+48]=I-k>>3,v+=64}function li(o,s,d){var v,b=s-32,y=Sn,A=255-o[b-1];for(v=0;v<d;++v){var N,k=y,I=A+o[s-1];for(N=0;N<d;++N)o[s+N]=k[I+o[b+N]];s+=32}}function Yo(o,s){li(o,s,4)}function Jo(o,s){li(o,s,8)}function Ko(o,s){li(o,s,16)}function ia(o,s){var d;for(d=0;16>d;++d)r(o,s+32*d,o,s-32,16)}function Ja(o,s){var d;for(d=16;0<d;--d)a(o,s,o[s-1],16),s+=32}function Yn(o,s,d){var v;for(v=0;16>v;++v)a(s,d+32*v,o,16)}function Xo(o,s){var d,v=16;for(d=0;16>d;++d)v+=o[s-1+32*d]+o[s+d-32];Yn(v>>5,o,s)}function ui(o,s){var d,v=8;for(d=0;16>d;++d)v+=o[s-1+32*d];Yn(v>>4,o,s)}function aa(o,s){var d,v=8;for(d=0;16>d;++d)v+=o[s+d-32];Yn(v>>4,o,s)}function $o(o,s){Yn(128,o,s)}function Xt(o,s,d){return o+2*s+d+2>>2}function Zo(o,s){var d,v=s-32;for(v=new Uint8Array([Xt(o[v-1],o[v+0],o[v+1]),Xt(o[v+0],o[v+1],o[v+2]),Xt(o[v+1],o[v+2],o[v+3]),Xt(o[v+2],o[v+3],o[v+4])]),d=0;4>d;++d)r(o,s+32*d,v,0,v.length)}function Qo(o,s){var d=o[s-1],v=o[s-1+32],b=o[s-1+64],y=o[s-1+96];At(o,s+0,16843009*Xt(o[s-1-32],d,v)),At(o,s+32,16843009*Xt(d,v,b)),At(o,s+64,16843009*Xt(v,b,y)),At(o,s+96,16843009*Xt(b,y,y))}function ts(o,s){var d,v=4;for(d=0;4>d;++d)v+=o[s+d-32]+o[s-1+32*d];for(v>>=3,d=0;4>d;++d)a(o,s+32*d,v,4)}function wr(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=o[s-1-32],A=o[s+0-32],N=o[s+1-32],k=o[s+2-32],I=o[s+3-32];o[s+0+96]=Xt(v,b,o[s-1+96]),o[s+1+96]=o[s+0+64]=Xt(d,v,b),o[s+2+96]=o[s+1+64]=o[s+0+32]=Xt(y,d,v),o[s+3+96]=o[s+2+64]=o[s+1+32]=o[s+0+0]=Xt(A,y,d),o[s+3+64]=o[s+2+32]=o[s+1+0]=Xt(N,A,y),o[s+3+32]=o[s+2+0]=Xt(k,N,A),o[s+3+0]=Xt(I,k,N)}function yr(o,s){var d=o[s+1-32],v=o[s+2-32],b=o[s+3-32],y=o[s+4-32],A=o[s+5-32],N=o[s+6-32],k=o[s+7-32];o[s+0+0]=Xt(o[s+0-32],d,v),o[s+1+0]=o[s+0+32]=Xt(d,v,b),o[s+2+0]=o[s+1+32]=o[s+0+64]=Xt(v,b,y),o[s+3+0]=o[s+2+32]=o[s+1+64]=o[s+0+96]=Xt(b,y,A),o[s+3+32]=o[s+2+64]=o[s+1+96]=Xt(y,A,N),o[s+3+64]=o[s+2+96]=Xt(A,N,k),o[s+3+96]=Xt(N,k,k)}function es(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=o[s-1-32],A=o[s+0-32],N=o[s+1-32],k=o[s+2-32],I=o[s+3-32];o[s+0+0]=o[s+1+64]=y+A+1>>1,o[s+1+0]=o[s+2+64]=A+N+1>>1,o[s+2+0]=o[s+3+64]=N+k+1>>1,o[s+3+0]=k+I+1>>1,o[s+0+96]=Xt(b,v,d),o[s+0+64]=Xt(v,d,y),o[s+0+32]=o[s+1+96]=Xt(d,y,A),o[s+1+32]=o[s+2+96]=Xt(y,A,N),o[s+2+32]=o[s+3+96]=Xt(A,N,k),o[s+3+32]=Xt(N,k,I)}function ns(o,s){var d=o[s+0-32],v=o[s+1-32],b=o[s+2-32],y=o[s+3-32],A=o[s+4-32],N=o[s+5-32],k=o[s+6-32],I=o[s+7-32];o[s+0+0]=d+v+1>>1,o[s+1+0]=o[s+0+64]=v+b+1>>1,o[s+2+0]=o[s+1+64]=b+y+1>>1,o[s+3+0]=o[s+2+64]=y+A+1>>1,o[s+0+32]=Xt(d,v,b),o[s+1+32]=o[s+0+96]=Xt(v,b,y),o[s+2+32]=o[s+1+96]=Xt(b,y,A),o[s+3+32]=o[s+2+96]=Xt(y,A,N),o[s+3+64]=Xt(A,N,k),o[s+3+96]=Xt(N,k,I)}function Di(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=o[s-1+96];o[s+0+0]=d+v+1>>1,o[s+2+0]=o[s+0+32]=v+b+1>>1,o[s+2+32]=o[s+0+64]=b+y+1>>1,o[s+1+0]=Xt(d,v,b),o[s+3+0]=o[s+1+32]=Xt(v,b,y),o[s+3+32]=o[s+1+64]=Xt(b,y,y),o[s+3+64]=o[s+2+64]=o[s+0+96]=o[s+1+96]=o[s+2+96]=o[s+3+96]=y}function oa(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=o[s-1+96],A=o[s-1-32],N=o[s+0-32],k=o[s+1-32],I=o[s+2-32];o[s+0+0]=o[s+2+32]=d+A+1>>1,o[s+0+32]=o[s+2+64]=v+d+1>>1,o[s+0+64]=o[s+2+96]=b+v+1>>1,o[s+0+96]=y+b+1>>1,o[s+3+0]=Xt(N,k,I),o[s+2+0]=Xt(A,N,k),o[s+1+0]=o[s+3+32]=Xt(d,A,N),o[s+1+32]=o[s+3+64]=Xt(v,d,A),o[s+1+64]=o[s+3+96]=Xt(b,v,d),o[s+1+96]=Xt(y,b,v)}function fi(o,s){var d;for(d=0;8>d;++d)r(o,s+32*d,o,s-32,8)}function rs(o,s){var d;for(d=0;8>d;++d)a(o,s,o[s-1],8),s+=32}function xr(o,s,d){var v;for(v=0;8>v;++v)a(s,d+32*v,o,8)}function is(o,s){var d,v=8;for(d=0;8>d;++d)v+=o[s+d-32]+o[s-1+32*d];xr(v>>4,o,s)}function sa(o,s){var d,v=4;for(d=0;8>d;++d)v+=o[s+d-32];xr(v>>3,o,s)}function la(o,s){var d,v=4;for(d=0;8>d;++d)v+=o[s-1+32*d];xr(v>>3,o,s)}function Ka(o,s){xr(128,o,s)}function Ar(o,s,d){var v=o[s-d],b=o[s+0],y=3*(b-v)+as[1020+o[s-2*d]-o[s+d]],A=ro[112+(y+4>>3)];o[s-d]=Sn[255+v+ro[112+(y+3>>3)]],o[s+0]=Sn[255+b-A]}function ua(o,s,d,v){var b=o[s+0],y=o[s+d];return Un[255+o[s-2*d]-o[s-d]]>v||Un[255+y-b]>v}function Ri(o,s,d,v){return 4*Un[255+o[s-d]-o[s+0]]+Un[255+o[s-2*d]-o[s+d]]<=v}function fa(o,s,d,v,b){var y=o[s-3*d],A=o[s-2*d],N=o[s-d],k=o[s+0],I=o[s+d],W=o[s+2*d],et=o[s+3*d];return 4*Un[255+N-k]+Un[255+A-I]>v?0:Un[255+o[s-4*d]-y]<=b&&Un[255+y-A]<=b&&Un[255+A-N]<=b&&Un[255+et-W]<=b&&Un[255+W-I]<=b&&Un[255+I-k]<=b}function hi(o,s,d,v){var b=2*v+1;for(v=0;16>v;++v)Ri(o,s+v,d,b)&&Ar(o,s+v,d)}function ha(o,s,d,v){var b=2*v+1;for(v=0;16>v;++v)Ri(o,s+v*d,1,b)&&Ar(o,s+v*d,1)}function Xa(o,s,d,v){var b;for(b=3;0<b;--b)hi(o,s+=4*d,d,v)}function $a(o,s,d,v){var b;for(b=3;0<b;--b)ha(o,s+=4,d,v)}function _r(o,s,d,v,b,y,A,N){for(y=2*y+1;0<b--;){if(fa(o,s,d,y,A))if(ua(o,s,d,N))Ar(o,s,d);else{var k=o,I=s,W=d,et=k[I-2*W],E=k[I-W],Y=k[I+0],$=k[I+W],lt=k[I+2*W],Q=27*(pt=as[1020+3*(Y-E)+as[1020+et-$]])+63>>7,ft=18*pt+63>>7,pt=9*pt+63>>7;k[I-3*W]=Sn[255+k[I-3*W]+pt],k[I-2*W]=Sn[255+et+ft],k[I-W]=Sn[255+E+Q],k[I+0]=Sn[255+Y-Q],k[I+W]=Sn[255+$-ft],k[I+2*W]=Sn[255+lt-pt]}s+=v}}function Nr(o,s,d,v,b,y,A,N){for(y=2*y+1;0<b--;){if(fa(o,s,d,y,A))if(ua(o,s,d,N))Ar(o,s,d);else{var k=o,I=s,W=d,et=k[I-W],E=k[I+0],Y=k[I+W],$=ro[112+(4+(lt=3*(E-et))>>3)],lt=ro[112+(lt+3>>3)],Q=$+1>>1;k[I-2*W]=Sn[255+k[I-2*W]+Q],k[I-W]=Sn[255+et+lt],k[I+0]=Sn[255+E-$],k[I+W]=Sn[255+Y-Q]}s+=v}}function Za(o,s,d,v,b,y){_r(o,s,d,1,16,v,b,y)}function ci(o,s,d,v,b,y){_r(o,s,1,d,16,v,b,y)}function Qa(o,s,d,v,b,y){var A;for(A=3;0<A;--A)Nr(o,s+=4*d,d,1,16,v,b,y)}function c(o,s,d,v,b,y){var A;for(A=3;0<A;--A)Nr(o,s+=4,1,d,16,v,b,y)}function m(o,s,d,v,b,y,A,N){_r(o,s,b,1,8,y,A,N),_r(d,v,b,1,8,y,A,N)}function j(o,s,d,v,b,y,A,N){_r(o,s,1,b,8,y,A,N),_r(d,v,1,b,8,y,A,N)}function q(o,s,d,v,b,y,A,N){Nr(o,s+4*b,b,1,8,y,A,N),Nr(d,v+4*b,b,1,8,y,A,N)}function X(o,s,d,v,b,y,A,N){Nr(o,s+4,1,b,8,y,A,N),Nr(d,v+4,1,b,8,y,A,N)}function dt(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new be,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function mt(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function It(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Bt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new rt,this.yc=new z}function Kt(){this.xb=this.a=0,this.l=new Oi,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new D,this.Pb=0,this.wd=new D,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Bt,this.ab=0,this.gc=f(4,It),this.Oc=0}function ne(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Oi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ge(o,s,d,v,b,y,A){for(o=o==null?0:o[s+0],s=0;s<A;++s)b[y+s]=o+d[v+s]&255,o=b[y+s]}function je(o,s,d,v,b,y,A){var N;if(o==null)ge(null,null,d,v,b,y,A);else for(N=0;N<A;++N)b[y+N]=o[s+N]+d[v+N]&255}function Je(o,s,d,v,b,y,A){if(o==null)ge(null,null,d,v,b,y,A);else{var N,k=o[s+0],I=k,W=k;for(N=0;N<A;++N)I=W+(k=o[s+N])-I,W=d[v+N]+(-256&I?0>I?0:255:I)&255,I=k,b[y+N]=W}}function ke(o,s,d,v){var b=s.width,y=s.o;if(t(o!=null&&s!=null),0>d||0>=v||d+v>y)return null;if(!o.Cc){if(o.ga==null){var A;if(o.ga=new ne,(A=o.ga==null)||(A=s.width*s.o,t(o.Gb.length==0),o.Gb=i(A),o.Uc=0,o.Gb==null?A=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,A=1),A=!A),!A){A=o.ga;var N=o.Fa,k=o.P,I=o.qc,W=o.mb,et=o.nb,E=k+1,Y=I-1,$=A.l;if(t(N!=null&&W!=null&&s!=null),Kr[0]=null,Kr[1]=ge,Kr[2]=je,Kr[3]=Je,A.ca=W,A.tb=et,A.c=s.width,A.i=s.height,t(0<A.c&&0<A.i),1>=I)s=0;else if(A.$a=3&N[k+0],A.Z=N[k+0]>>2&3,A.Lc=N[k+0]>>4&3,k=N[k+0]>>6&3,0>A.$a||1<A.$a||4<=A.Z||1<A.Lc||k)s=0;else if($.put=Vt,$.ac=nr,$.bc=vr,$.ma=A,$.width=s.width,$.height=s.height,$.Da=s.Da,$.v=s.v,$.va=s.va,$.j=s.j,$.o=s.o,A.$a)t:{t(A.$a==1),s=oi();e:for(;;){if(s==null){s=0;break t}if(t(A!=null),A.mc=s,s.c=A.c,s.i=A.i,s.l=A.l,s.l.ma=A,s.l.width=A.c,s.l.height=A.i,s.a=0,ht(s.m,N,E,Y),!ir(A.c,A.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Wn(s.s)?(A.ic=1,N=s.c*s.i,s.Ta=null,s.Ua=0,s.V=i(N),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(A.ic=0,s=si(s,A.c)),!s))break e;s=1;break t}A.mc=null,s=0}else s=Y>=A.c*A.i;A=!s}if(A)return null;o.ga.Lc!=1?o.Ga=0:v=y-d}t(o.ga!=null),t(d+v<=y);t:{if(s=(N=o.ga).c,y=N.l.o,N.$a==0){if(E=o.rc,Y=o.Vc,$=o.Fa,k=o.P+1+d*s,I=o.mb,W=o.nb+d*s,t(k<=o.P+o.qc),N.Z!=0)for(t(Kr[N.Z]!=null),A=0;A<v;++A)Kr[N.Z](E,Y,$,k,I,W,s),E=I,Y=W,W+=s,k+=s;else for(A=0;A<v;++A)r(I,W,$,k,s),E=I,Y=W,W+=s,k+=s;o.rc=E,o.Vc=Y}else{if(t(N.mc!=null),s=d+v,t((A=N.mc)!=null),t(s<=A.i),A.C>=s)s=1;else if(N.ic||Jn(),N.ic){N=A.V,E=A.Ba,Y=A.c;var lt=A.i,Q=($=1,k=A.$/Y,I=A.$%Y,W=A.m,et=A.s,A.$),ft=Y*lt,pt=Y*s,xt=et.wc,bt=Q<pt?an(et,I,k):null;t(Q<=ft),t(s<=lt),t(Wn(et));e:for(;;){for(;!W.h&&Q<pt;){if(I&xt||(bt=an(et,I,k)),t(bt!=null),Z(W),256>(lt=Be(bt.G[0],bt.H[0],W)))N[E+Q]=lt,++Q,++I>=Y&&(I=0,++k<=s&&!(k%16)&&Gn(A,k));else{if(!(280>lt)){$=0;break e}lt=jn(lt-256,W);var Dt,Pt=Be(bt.G[4],bt.H[4],W);if(Z(W),!(Q>=(Pt=Bn(Y,Pt=jn(Pt,W)))&&ft-Q>=lt)){$=0;break e}for(Dt=0;Dt<lt;++Dt)N[E+Q+Dt]=N[E+Q+Dt-Pt];for(Q+=lt,I+=lt;I>=Y;)I-=Y,++k<=s&&!(k%16)&&Gn(A,k);Q<pt&&I&xt&&(bt=an(et,I,k))}t(W.h==H(W))}Gn(A,k>s?s:k);break e}!$||W.h&&Q<ft?($=0,A.a=W.h?5:3):A.$=Q,s=$}else s=Vn(A,A.V,A.Ba,A.c,A.i,s,Fi);if(!s){v=0;break t}}d+v>=y&&(o.Cc=1),v=1}if(!v)return null;if(o.Cc&&((v=o.ga)!=null&&(v.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+d*b}function $e(o,s,d,v,b,y){for(;0<b--;){var A,N=o,k=s+(d?1:0),I=o,W=s+(d?0:3);for(A=0;A<v;++A){var et=I[W+4*A];et!=255&&(et*=32897,N[k+4*A+0]=N[k+4*A+0]*et>>23,N[k+4*A+1]=N[k+4*A+1]*et>>23,N[k+4*A+2]=N[k+4*A+2]*et>>23)}s+=y}}function Ke(o,s,d,v,b){for(;0<v--;){var y;for(y=0;y<d;++y){var A=o[s+2*y+0],N=15&(I=o[s+2*y+1]),k=4369*N,I=(240&I|I>>4)*k>>16;o[s+2*y+0]=(240&A|A>>4)*k>>16&240|(15&A|A<<4)*k>>16>>4&15,o[s+2*y+1]=240&I|N}s+=b}}function on(o,s,d,v,b,y,A,N){var k,I,W=255;for(I=0;I<b;++I){for(k=0;k<v;++k){var et=o[s+k];y[A+4*k]=et,W&=et}s+=d,A+=N}return W!=255}function Lr(o,s,d,v,b){var y;for(y=0;y<b;++y)d[v+y]=o[s+y]>>8}function Jn(){_a=$e,ml=Ke,bl=on,wl=Lr}function Sr(o,s,d){R[o]=function(v,b,y,A,N,k,I,W,et,E,Y,$,lt,Q,ft,pt,xt){var bt,Dt=xt-1>>1,Pt=N[k+0]|I[W+0]<<16,re=et[E+0]|Y[$+0]<<16;t(v!=null);var Et=3*Pt+re+131074>>2;for(s(v[b+0],255&Et,Et>>16,lt,Q),y!=null&&(Et=3*re+Pt+131074>>2,s(y[A+0],255&Et,Et>>16,ft,pt)),bt=1;bt<=Dt;++bt){var ce=N[k+bt]|I[W+bt]<<16,Qe=et[E+bt]|Y[$+bt]<<16,ie=Pt+ce+re+Qe+524296,Ot=ie+2*(ce+re)>>3;Et=Ot+Pt>>1,Pt=(ie=ie+2*(Pt+Qe)>>3)+ce>>1,s(v[b+2*bt-1],255&Et,Et>>16,lt,Q+(2*bt-1)*d),s(v[b+2*bt-0],255&Pt,Pt>>16,lt,Q+(2*bt-0)*d),y!=null&&(Et=ie+re>>1,Pt=Ot+Qe>>1,s(y[A+2*bt-1],255&Et,Et>>16,ft,pt+(2*bt-1)*d),s(y[A+2*bt+0],255&Pt,Pt>>16,ft,pt+(2*bt+0)*d)),Pt=ce,re=Qe}1&xt||(Et=3*Pt+re+131074>>2,s(v[b+xt-1],255&Et,Et>>16,lt,Q+(xt-1)*d),y!=null&&(Et=3*re+Pt+131074>>2,s(y[A+xt-1],255&Et,Et>>16,ft,pt+(xt-1)*d)))}}function ca(){zn[io]=jh,zn[ao]=Fl,zn[Ll]=Bh,zn[oo]=Il,zn[so]=El,zn[os]=Ol,zn[Sl]=Dh,zn[ss]=Fl,zn[ls]=Il,zn[lo]=El,zn[us]=Ol}function Mi(o){return o&-16384?0>o?0:255:o>>Rh}function Tr(o,s){return Mi((19077*o>>8)+(26149*s>>8)-14234)}function di(o,s,d){return Mi((19077*o>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function pi(o,s){return Mi((19077*o>>8)+(33050*s>>8)-17685)}function qr(o,s,d,v,b){v[b+0]=Tr(o,d),v[b+1]=di(o,s,d),v[b+2]=pi(o,s)}function sn(o,s,d,v,b){v[b+0]=pi(o,s),v[b+1]=di(o,s,d),v[b+2]=Tr(o,d)}function gi(o,s,d,v,b){var y=di(o,s,d);s=y<<3&224|pi(o,s)>>3,v[b+0]=248&Tr(o,d)|y>>5,v[b+1]=s}function vi(o,s,d,v,b){var y=240&pi(o,s)|15;v[b+0]=240&Tr(o,d)|di(o,s,d)>>4,v[b+1]=y}function da(o,s,d,v,b){v[b+0]=255,qr(o,s,d,v,b+1)}function pa(o,s,d,v,b){sn(o,s,d,v,b),v[b+3]=255}function mn(o,s,d,v,b){qr(o,s,d,v,b),v[b+3]=255}function kr(o,s,d){R[o]=function(v,b,y,A,N,k,I,W,et){for(var E=W+(-2&et)*d;W!=E;)s(v[b+0],y[A+0],N[k+0],I,W),s(v[b+1],y[A+0],N[k+0],I,W+d),b+=2,++A,++k,W+=2*d;1&et&&s(v[b+0],y[A+0],N[k+0],I,W)}}function Ti(o,s,d){return d==0?o==0?s==0?6:5:s==0?4:0:d}function to(o,s,d,v,b){switch(o>>>30){case 3:yi(s,d,v,b,0);break;case 2:qn(s,d,v,b);break;case 1:we(s,d,v,b)}}function Tn(o,s){var d,v,b=s.M,y=s.Nb,A=o.oc,N=o.pc+40,k=o.oc,I=o.pc+584,W=o.oc,et=o.pc+600;for(d=0;16>d;++d)A[N+32*d-1]=129;for(d=0;8>d;++d)k[I+32*d-1]=129,W[et+32*d-1]=129;for(0<b?A[N-1-32]=k[I-1-32]=W[et-1-32]=129:(a(A,N-32-1,127,21),a(k,I-32-1,127,9),a(W,et-32-1,127,9)),v=0;v<o.za;++v){var E=s.ya[s.aa+v];if(0<v){for(d=-1;16>d;++d)r(A,N+32*d-4,A,N+32*d+12,4);for(d=-1;8>d;++d)r(k,I+32*d-4,k,I+32*d+4,4),r(W,et+32*d-4,W,et+32*d+4,4)}var Y=o.Gd,$=o.Hd+v,lt=E.ad,Q=E.Hc;if(0<b&&(r(A,N-32,Y[$].y,0,16),r(k,I-32,Y[$].f,0,8),r(W,et-32,Y[$].ea,0,8)),E.Za){var ft=A,pt=N-32+16;for(0<b&&(v>=o.za-1?a(ft,pt,Y[$].y[15],4):r(ft,pt,Y[$+1].y,0,4)),d=0;4>d;d++)ft[pt+128+d]=ft[pt+256+d]=ft[pt+384+d]=ft[pt+0+d];for(d=0;16>d;++d,Q<<=2)ft=A,pt=N+Bl[d],Kn[E.Ob[d]](ft,pt),to(Q,lt,16*+d,ft,pt)}else if(ft=Ti(v,b,E.Ob[0]),Jr[ft](A,N),Q!=0)for(d=0;16>d;++d,Q<<=2)to(Q,lt,16*+d,A,N+Bl[d]);for(d=E.Gc,ft=Ti(v,b,E.Dd),Fr[ft](k,I),Fr[ft](W,et),Q=lt,ft=k,pt=I,255&(E=0|d)&&(170&E?fr(Q,256,ft,pt):_e(Q,256,ft,pt)),E=W,Q=et,255&(d>>=8)&&(170&d?fr(lt,320,E,Q):_e(lt,320,E,Q)),b<o.Ub-1&&(r(Y[$].y,0,A,N+480,16),r(Y[$].f,0,k,I+224,8),r(Y[$].ea,0,W,et+224,8)),d=8*y*o.B,Y=o.sa,$=o.ta+16*v+16*y*o.R,lt=o.qa,E=o.ra+8*v+d,Q=o.Ha,ft=o.Ia+8*v+d,d=0;16>d;++d)r(Y,$+d*o.R,A,N+32*d,16);for(d=0;8>d;++d)r(lt,E+d*o.B,k,I+32*d,8),r(Q,ft+d*o.B,W,et+32*d,8)}}function mi(o,s,d,v,b,y,A,N,k){var I=[0],W=[0],et=0,E=k!=null?k.kd:0,Y=k??new mt;if(o==null||12>d)return 7;Y.data=o,Y.w=s,Y.ha=d,s=[s],d=[d],Y.gb=[Y.gb];t:{var $=s,lt=d,Q=Y.gb;if(t(o!=null),t(lt!=null),t(Q!=null),Q[0]=0,12<=lt[0]&&!e(o,$[0],"RIFF")){if(e(o,$[0]+8,"WEBP")){Q=3;break t}var ft=Tt(o,$[0]+4);if(12>ft||4294967286<ft){Q=3;break t}if(E&&ft>lt[0]-8){Q=7;break t}Q[0]=ft,$[0]+=12,lt[0]-=12}Q=0}if(Q!=0)return Q;for(ft=0<Y.gb[0],d=d[0];;){t:{var pt=o;lt=s,Q=d;var xt=I,bt=W,Dt=$=[0];if((Et=et=[et])[0]=0,8>Q[0])Q=7;else{if(!e(pt,lt[0],"VP8X")){if(Tt(pt,lt[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Pt=Tt(pt,lt[0]+8),re=1+St(pt,lt[0]+12);if(2147483648<=re*(pt=1+St(pt,lt[0]+15))){Q=3;break t}Dt!=null&&(Dt[0]=Pt),xt!=null&&(xt[0]=re),bt!=null&&(bt[0]=pt),lt[0]+=18,Q[0]-=18,Et[0]=1}Q=0}}if(et=et[0],$=$[0],Q!=0)return Q;if(lt=!!(2&$),!ft&&et)return 3;if(y!=null&&(y[0]=!!(16&$)),A!=null&&(A[0]=lt),N!=null&&(N[0]=0),A=I[0],$=W[0],et&<&&k==null){Q=0;break}if(4>d){Q=7;break}if(ft&&et||!ft&&!et&&!e(o,s[0],"ALPH")){d=[d],Y.na=[Y.na],Y.P=[Y.P],Y.Sa=[Y.Sa];t:{Pt=o,Q=s,ft=d;var Et=Y.gb;xt=Y.na,bt=Y.P,Dt=Y.Sa,re=22,t(Pt!=null),t(ft!=null),pt=Q[0];var ce=ft[0];for(t(xt!=null),t(Dt!=null),xt[0]=null,bt[0]=null,Dt[0]=0;;){if(Q[0]=pt,ft[0]=ce,8>ce){Q=7;break t}var Qe=Tt(Pt,pt+4);if(4294967286<Qe){Q=3;break t}var ie=8+Qe+1&-2;if(re+=ie,0<Et&&re>Et){Q=3;break t}if(!e(Pt,pt,"VP8 ")||!e(Pt,pt,"VP8L")){Q=0;break t}if(ce[0]<ie){Q=7;break t}e(Pt,pt,"ALPH")||(xt[0]=Pt,bt[0]=pt+8,Dt[0]=Qe),pt+=ie,ce-=ie}}if(d=d[0],Y.na=Y.na[0],Y.P=Y.P[0],Y.Sa=Y.Sa[0],Q!=0)break}d=[d],Y.Ja=[Y.Ja],Y.xa=[Y.xa];t:if(Et=o,Q=s,ft=d,xt=Y.gb[0],bt=Y.Ja,Dt=Y.xa,Pt=Q[0],pt=!e(Et,Pt,"VP8 "),re=!e(Et,Pt,"VP8L"),t(Et!=null),t(ft!=null),t(bt!=null),t(Dt!=null),8>ft[0])Q=7;else{if(pt||re){if(Et=Tt(Et,Pt+4),12<=xt&&Et>xt-12){Q=3;break t}if(E&&Et>ft[0]-8){Q=7;break t}bt[0]=Et,Q[0]+=8,ft[0]-=8,Dt[0]=re}else Dt[0]=5<=ft[0]&&Et[Pt+0]==47&&!(Et[Pt+4]>>5),bt[0]=ft[0];Q=0}if(d=d[0],Y.Ja=Y.Ja[0],Y.xa=Y.xa[0],s=s[0],Q!=0)break;if(4294967286<Y.Ja)return 3;if(N==null||lt||(N[0]=Y.xa?2:1),A=[A],$=[$],Y.xa){if(5>d){Q=7;break}N=A,E=$,lt=y,o==null||5>d?o=0:5<=d&&o[s+0]==47&&!(o[s+4]>>5)?(ft=[0],Et=[0],xt=[0],ht(bt=new D,o,s,d),mr(bt,ft,Et,xt)?(N!=null&&(N[0]=ft[0]),E!=null&&(E[0]=Et[0]),lt!=null&&(lt[0]=xt[0]),o=1):o=0):o=0}else{if(10>d){Q=7;break}N=$,o==null||10>d||!Ha(o,s+3,d-3)?o=0:(E=o[s+0]|o[s+1]<<8|o[s+2]<<16,lt=16383&(o[s+7]<<8|o[s+6]),o=16383&(o[s+9]<<8|o[s+8]),1&E||3<(E>>1&7)||!(E>>4&1)||E>>5>=Y.Ja||!lt||!o?o=0:(A&&(A[0]=lt),N&&(N[0]=o),o=1))}if(!o||(A=A[0],$=$[0],et&&(I[0]!=A||W[0]!=$)))return 3;k!=null&&(k[0]=Y,k.offset=s-k.w,t(4294967286>s-k.w),t(k.offset==k.ha-d));break}return Q==0||Q==7&&et&&k==null?(y!=null&&(y[0]|=Y.na!=null&&0<Y.na.length),v!=null&&(v[0]=A),b!=null&&(b[0]=$),0):Q}function ga(o,s,d){var v=s.width,b=s.height,y=0,A=0,N=v,k=b;if(s.Da=o!=null&&0<o.Da,s.Da&&(N=o.cd,k=o.bd,y=o.v,A=o.j,11>d||(y&=-2,A&=-2),0>y||0>A||0>=N||0>=k||y+N>v||A+k>b))return 0;if(s.v=y,s.j=A,s.va=y+N,s.o=A+k,s.U=N,s.T=k,s.da=o!=null&&0<o.da,s.da){if(!Ht(N,k,d=[o.ib],y=[o.hb]))return 0;s.ib=d[0],s.hb=y[0]}return s.ob=o!=null&&o.ob,s.Kb=o==null||!o.Sd,s.da&&(s.ob=s.ib<3*v/4&&s.hb<3*b/4,s.Kb=0),1}function va(o){if(o==null)return 2;if(11>o.S){var s=o.f.RGBA;s.fb+=(o.height-1)*s.A,s.A=-s.A}else s=o.f.kb,o=o.height,s.O+=(o-1)*s.fa,s.fa=-s.fa,s.N+=(o-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(o-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(o-1)*s.lb,s.lb=-s.lb);return 0}function Ur(o,s,d,v){if(v==null||0>=o||0>=s)return 2;if(d!=null){if(d.Da){var b=d.cd,y=d.bd,A=-2&d.v,N=-2&d.j;if(0>A||0>N||0>=b||0>=y||A+b>o||N+y>s)return 2;o=b,s=y}if(d.da){if(!Ht(o,s,b=[d.ib],y=[d.hb]))return 2;o=b[0],s=y[0]}}v.width=o,v.height=s;t:{var k=v.width,I=v.height;if(o=v.S,0>=k||0>=I||!(o>=io&&13>o))o=2;else{if(0>=v.Rd&&v.sd==null){A=y=b=s=0;var W=(N=k*Dl[o])*I;if(11>o||(y=(I+1)/2*(s=(k+1)/2),o==12&&(A=(b=k)*I)),(I=i(W+2*y+A))==null){o=1;break t}v.sd=I,11>o?((k=v.f.RGBA).eb=I,k.fb=0,k.A=N,k.size=W):((k=v.f.kb).y=I,k.O=0,k.fa=N,k.Fd=W,k.f=I,k.N=0+W,k.Ab=s,k.Cd=y,k.ea=I,k.W=0+W+y,k.Db=s,k.Ed=y,o==12&&(k.F=I,k.J=0+W+2*y),k.Tc=A,k.lb=b)}if(s=1,b=v.S,y=v.width,A=v.height,b>=io&&13>b)if(11>b)o=v.f.RGBA,s&=(N=Math.abs(o.A))*(A-1)+y<=o.size,s&=N>=y*Dl[b],s&=o.eb!=null;else{o=v.f.kb,N=(y+1)/2,W=(A+1)/2,k=Math.abs(o.fa),I=Math.abs(o.Ab);var et=Math.abs(o.Db),E=Math.abs(o.lb),Y=E*(A-1)+y;s&=k*(A-1)+y<=o.Fd,s&=I*(W-1)+N<=o.Cd,s=(s&=et*(W-1)+N<=o.Ed)&k>=y&I>=N&et>=N,s&=o.y!=null,s&=o.f!=null,s&=o.ea!=null,b==12&&(s&=E>=y,s&=Y<=o.Tc,s&=o.F!=null)}else s=0;o=s?0:2}}return o!=0||d!=null&&d.fd&&(o=va(v)),o}var bi=64,Nn=[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],Ln=24,zr=32,Pr=8,Hr=[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"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(o){return o},R.Predictor2=function(o,s,d){return s[d+0]},R.Predictor3=function(o,s,d){return s[d+1]},R.Predictor4=function(o,s,d){return s[d-1]},R.Predictor5=function(o,s,d){return qt(qt(o,s[d+1]),s[d+0])},R.Predictor6=function(o,s,d){return qt(o,s[d-1])},R.Predictor7=function(o,s,d){return qt(o,s[d+0])},R.Predictor8=function(o,s,d){return qt(s[d-1],s[d+0])},R.Predictor9=function(o,s,d){return qt(s[d+0],s[d+1])},R.Predictor10=function(o,s,d){return qt(qt(o,s[d-1]),qt(s[d+0],s[d+1]))},R.Predictor11=function(o,s,d){var v=s[d+0];return 0>=Zt(v>>24&255,o>>24&255,(s=s[d-1])>>24&255)+Zt(v>>16&255,o>>16&255,s>>16&255)+Zt(v>>8&255,o>>8&255,s>>8&255)+Zt(255&v,255&o,255&s)?v:o},R.Predictor12=function(o,s,d){var v=s[d+0];return(me((o>>24&255)+(v>>24&255)-((s=s[d-1])>>24&255))<<24|me((o>>16&255)+(v>>16&255)-(s>>16&255))<<16|me((o>>8&255)+(v>>8&255)-(s>>8&255))<<8|me((255&o)+(255&v)-(255&s)))>>>0},R.Predictor13=function(o,s,d){var v=s[d-1];return(ue((o=qt(o,s[d+0]))>>24&255,v>>24&255)<<24|ue(o>>16&255,v>>16&255)<<16|ue(o>>8&255,v>>8&255)<<8|ue(255&o,255&v))>>>0};var ma=R.PredictorAdd0;R.PredictorAdd1=he,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 qi=R.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var qe,eo=R.ColorIndexInverseTransform,lr=R.MapARGB,ur=R.VP8LColorIndexInverseTransformAlpha,ba=R.MapAlpha,wa=R.VP8LPredictorsAdd=[];wa.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var ya,xa,Wr,Gr,Vr,wi,Yr,yi,qn,fr,we,_e,Ue,Ze,Cr,Aa,Ui,no,hl,cl,dl,pl,gl,vl,_a,ml,bl,wl,yl=i(511),xl=i(2041),Al=i(225),_l=i(767),Nl=0,as=xl,ro=Al,Sn=_l,Un=yl,io=0,ao=1,Ll=2,oo=3,so=4,os=5,Sl=6,ss=7,ls=8,lo=9,us=10,yh=[2,3,7],xh=[3,3,11],kl=[280,256,256,256,40],Ah=[0,1,1,1,0],_h=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Nh=[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],Lh=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Sh=8,fs=[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],hs=[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],Na=null,kh=[[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]],Ph=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Pl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Ch=[[[[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]]]],Fh=[[[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]]],Ih=[[[[255,255,255,255,255,255,255,255,255,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]]]],Eh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Jr=[],Kn=[],Fr=[],Oh=1,Cl=2,Kr=[],zn=[];Sr("UpsampleRgbLinePair",qr,3),Sr("UpsampleBgrLinePair",sn,3),Sr("UpsampleRgbaLinePair",mn,4),Sr("UpsampleBgraLinePair",pa,4),Sr("UpsampleArgbLinePair",da,4),Sr("UpsampleRgba4444LinePair",vi,2),Sr("UpsampleRgb565LinePair",gi,2);var jh=R.UpsampleRgbLinePair,Bh=R.UpsampleBgrLinePair,Fl=R.UpsampleRgbaLinePair,Il=R.UpsampleBgraLinePair,El=R.UpsampleArgbLinePair,Ol=R.UpsampleRgba4444LinePair,Dh=R.UpsampleRgb565LinePair,uo=16,fo=1<<uo-1,La=-227,cs=482,Rh=6,jl=0,Mh=i(256),Th=i(256),qh=i(256),Uh=i(256),zh=i(cs-La),Hh=i(cs-La);kr("YuvToRgbRow",qr,3),kr("YuvToBgrRow",sn,3),kr("YuvToRgbaRow",mn,4),kr("YuvToBgraRow",pa,4),kr("YuvToArgbRow",da,4),kr("YuvToRgba4444Row",vi,2),kr("YuvToRgb565Row",gi,2);var Bl=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ho=[0,2,8],Wh=[8,7,6,4,4,2,2,2,1,1,1,1],Gh=1;this.WebPDecodeRGBA=function(o,s,d,v,b){var y=ao,A=new dt,N=new le;A.ba=N,N.S=y,N.width=[N.width],N.height=[N.height];var k=N.width,I=N.height,W=new Gt;if(W==null||o==null)var et=2;else t(W!=null),et=mi(o,s,d,W.width,W.height,W.Pd,W.Qd,W.format,null);if(et!=0?k=0:(k!=null&&(k[0]=W.width[0]),I!=null&&(I[0]=W.height[0]),k=1),k){N.width=N.width[0],N.height=N.height[0],v!=null&&(v[0]=N.width),b!=null&&(b[0]=N.height);t:{if(v=new Oi,(b=new mt).data=o,b.w=s,b.ha=d,b.kd=1,s=[0],t(b!=null),((o=mi(b.data,b.w,b.ha,null,null,null,s,null,b))==0||o==7)&&s[0]&&(o=4),(s=o)==0){if(t(A!=null),v.data=b.data,v.w=b.w+b.offset,v.ha=b.ha-b.offset,v.put=Vt,v.ac=nr,v.bc=vr,v.ma=A,b.xa){if((o=oi())==null){A=1;break t}if((function(E,Y){var $=[0],lt=[0],Q=[0];e:for(;;){if(E==null)return 0;if(Y==null)return E.a=2,0;if(E.l=Y,E.a=0,ht(E.m,Y.data,Y.w,Y.ha),!mr(E.m,$,lt,Q)){E.a=3;break e}if(E.xb=Cl,Y.width=$[0],Y.height=lt[0],!ir($[0],lt[0],1,E,null))break e;return 1}return t(E.a!=0),0})(o,v)){if(v=(s=Ur(v.width,v.height,A.Oa,A.ba))==0){e:{v=o;n:for(;;){if(v==null){v=0;break e}if(t(v.s.yc!=null),t(v.s.Ya!=null),t(0<v.s.Wb),t((d=v.l)!=null),t((b=d.ma)!=null),v.xb!=0){if(v.ca=b.ba,v.tb=b.tb,t(v.ca!=null),!ga(b.Oa,d,oo)){v.a=2;break n}if(!si(v,d.width)||d.da)break n;if((d.da||Yt(v.ca.S))&&Jn(),11>v.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),v.ca.f.kb.F!=null&&Jn()),v.Pb&&0<v.s.ua&&v.s.vb.X==null&&!F(v.s.vb,v.s.Wa.Xa)){v.a=1;break n}v.xb=0}if(!Vn(v,v.V,v.Ba,v.c,v.i,d.o,Mr))break n;b.Dc=v.Ma,v=1;break e}t(v.a!=0),v=0}v=!v}v&&(s=o.a)}else s=o.a}else{if((o=new Wo)==null){A=1;break t}if(o.Fa=b.na,o.P=b.P,o.qc=b.Sa,or(o,v)){if((s=Ur(v.width,v.height,A.Oa,A.ba))==0){if(o.Aa=0,d=A.Oa,t((b=o)!=null),d!=null){if(0<(k=0>(k=d.Md)?0:100<k?255:255*k/100)){for(I=W=0;4>I;++I)12>(et=b.pb[I]).lc&&(et.ia=k*Wh[0>et.lc?0:et.lc]>>3),W|=et.ia;W&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=d.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(E,Y){if(E==null)return 0;if(Y==null)return Ye(E,2,"NULL VP8Io parameter in VP8Decode().");if(!E.cb&&!or(E,Y))return 0;if(t(E.cb),Y.ac==null||Y.ac(Y)){Y.ob&&(E.L=0);var $=ho[E.L];if(E.L==2?(E.yb=0,E.zb=0):(E.yb=Y.v-$>>4,E.zb=Y.j-$>>4,0>E.yb&&(E.yb=0),0>E.zb&&(E.zb=0)),E.Va=Y.o+15+$>>4,E.Hb=Y.va+15+$>>4,E.Hb>E.za&&(E.Hb=E.za),E.Va>E.Ub&&(E.Va=E.Ub),0<E.L){var lt=E.ed;for($=0;4>$;++$){var Q;if(E.Qa.Cb){var ft=E.Qa.Lb[$];E.Qa.Fb||(ft+=lt.Tb)}else ft=lt.Tb;for(Q=0;1>=Q;++Q){var pt=E.gd[$][Q],xt=ft;if(lt.Pc&&(xt+=lt.vd[0],Q&&(xt+=lt.od[0])),0<(xt=0>xt?0:63<xt?63:xt)){var bt=xt;0<lt.wb&&(bt=4<lt.wb?bt>>2:bt>>1)>9-lt.wb&&(bt=9-lt.wb),1>bt&&(bt=1),pt.dd=bt,pt.tc=2*xt+bt,pt.ld=40<=xt?2:15<=xt?1:0}else pt.tc=0;pt.La=Q}}}$=0}else Ye(E,6,"Frame setup failed"),$=E.a;if($=$==0){if($){E.$c=0,0<E.Aa||(E.Ic=Gh);e:{$=E.Ic,lt=4*(bt=E.za);var Dt=32*bt,Pt=bt+1,re=0<E.L?bt*(0<E.Aa?2:1):0,Et=(E.Aa==2?2:1)*bt;if((pt=lt+832+(Q=3*(16*$+ho[E.L])/2*Dt)+(ft=E.Fa!=null&&0<E.Fa.length?E.Kc.c*E.Kc.i:0))!=pt)$=0;else{if(pt>E.Vb){if(E.Vb=0,E.Ec=i(pt),E.Fc=0,E.Ec==null){$=Ye(E,1,"no memory during frame initialization.");break e}E.Vb=pt}pt=E.Ec,xt=E.Fc,E.Ac=pt,E.Bc=xt,xt+=lt,E.Gd=f(Dt,Ua),E.Hd=0,E.rb=f(Pt+1,na),E.sb=1,E.wa=re?f(re,Rn):null,E.Y=0,E.D.Nb=0,E.D.wa=E.wa,E.D.Y=E.Y,0<E.Aa&&(E.D.Y+=bt),t(!0),E.oc=pt,E.pc=xt,xt+=832,E.ya=f(Et,ra),E.aa=0,E.D.ya=E.ya,E.D.aa=E.aa,E.Aa==2&&(E.D.aa+=bt),E.R=16*bt,E.B=8*bt,bt=(Dt=ho[E.L])*E.R,Dt=Dt/2*E.B,E.sa=pt,E.ta=xt+bt,E.qa=E.sa,E.ra=E.ta+16*$*E.R+Dt,E.Ha=E.qa,E.Ia=E.ra+8*$*E.B+Dt,E.$c=0,xt+=Q,E.mb=ft?pt:null,E.nb=ft?xt:null,t(xt+ft<=E.Fc+E.Vb),Wa(E),a(E.Ac,E.Bc,0,lt),$=1}}if($){if(Y.ka=0,Y.y=E.sa,Y.O=E.ta,Y.f=E.qa,Y.N=E.ra,Y.ea=E.Ha,Y.Vd=E.Ia,Y.fa=E.R,Y.Rc=E.B,Y.F=null,Y.J=0,!Nl){for($=-255;255>=$;++$)yl[255+$]=0>$?-$:$;for($=-1020;1020>=$;++$)xl[1020+$]=-128>$?-128:127<$?127:$;for($=-112;112>=$;++$)Al[112+$]=-16>$?-16:15<$?15:$;for($=-255;510>=$;++$)_l[255+$]=0>$?0:255<$?255:$;Nl=1}Yr=Bi,yi=Vo,fr=sr,we=Va,_e=Ya,qn=Go,Ue=Za,Ze=ci,Cr=m,Aa=j,Ui=Qa,no=c,hl=q,cl=X,dl=hi,pl=ha,gl=Xa,vl=$a,Kn[0]=ts,Kn[1]=Yo,Kn[2]=Zo,Kn[3]=Qo,Kn[4]=wr,Kn[5]=es,Kn[6]=yr,Kn[7]=ns,Kn[8]=oa,Kn[9]=Di,Jr[0]=Xo,Jr[1]=Ko,Jr[2]=ia,Jr[3]=Ja,Jr[4]=ui,Jr[5]=aa,Jr[6]=$o,Fr[0]=is,Fr[1]=Jo,Fr[2]=fi,Fr[3]=rs,Fr[4]=la,Fr[5]=sa,Fr[6]=Ka,$=1}else $=0}$&&($=(function(ce,Qe){for(ce.M=0;ce.M<ce.Va;++ce.M){var ie,Ot=ce.Jc[ce.M&ce.Xb],Nt=ce.m,ze=ce;for(ie=0;ie<ze.za;++ie){var te=Nt,de=ze,Ce=de.Ac,ln=de.Bc+4*ie,bn=de.zc,De=de.ya[de.aa+ie];if(de.Qa.Bb?De.$b=gt(te,de.Pa.jb[0])?2+gt(te,de.Pa.jb[2]):gt(te,de.Pa.jb[1]):De.$b=0,de.kc&&(De.Ad=gt(te,de.Bd)),De.Za=!gt(te,145)+0,De.Za){var cn=De.Ob,wn=0;for(de=0;4>de;++de){var tn,ve=bn[0+de];for(tn=0;4>tn;++tn){ve=Fh[Ce[ln+tn]][ve];for(var xe=Pl[gt(te,ve[0])];0<xe;)xe=Pl[2*xe+gt(te,ve[xe])];ve=-xe,Ce[ln+tn]=ve}r(cn,wn,Ce,ln,4),wn+=4,bn[0+de]=ve}}else ve=gt(te,156)?gt(te,128)?1:3:gt(te,163)?2:0,De.Ob[0]=ve,a(Ce,ln,ve,4),a(bn,0,ve,4);De.Dd=gt(te,142)?gt(te,114)?gt(te,183)?1:3:2:0}if(ze.m.Ka)return Ye(ce,7,"Premature end-of-partition0 encountered.");for(;ce.ja<ce.za;++ce.ja){if(ze=Ot,te=(Nt=ce).rb[Nt.sb-1],Ce=Nt.rb[Nt.sb+Nt.ja],ie=Nt.ya[Nt.aa+Nt.ja],ln=Nt.kc?ie.Ad:0)te.la=Ce.la=0,ie.Za||(te.Na=Ce.Na=0),ie.Hc=0,ie.Gc=0,ie.ia=0;else{var Re,Ae;if(te=Ce,Ce=ze,ln=Nt.Pa.Xc,bn=Nt.ya[Nt.aa+Nt.ja],De=Nt.pb[bn.$b],de=bn.ad,cn=0,wn=Nt.rb[Nt.sb-1],ve=tn=0,a(de,cn,0,384),bn.Za)var un=0,Xn=ln[3];else{xe=i(16);var He=te.Na+wn.Na;if(He=Na(Ce,ln[1],He,De.Eb,0,xe,0),te.Na=wn.Na=(0<He)+0,1<He)Yr(xe,0,de,cn);else{var xn=xe[0]+3>>3;for(xe=0;256>xe;xe+=16)de[cn+xe]=xn}un=1,Xn=ln[0]}var Ne=15&te.la,en=15&wn.la;for(xe=0;4>xe;++xe){var kn=1&en;for(xn=Ae=0;4>xn;++xn)Ne=Ne>>1|(kn=(He=Na(Ce,Xn,He=kn+(1&Ne),De.Sc,un,de,cn))>un)<<7,Ae=Ae<<2|(3<He?3:1<He?2:de[cn+0]!=0),cn+=16;Ne>>=4,en=en>>1|kn<<7,tn=(tn<<8|Ae)>>>0}for(Xn=Ne,un=en>>4,Re=0;4>Re;Re+=2){for(Ae=0,Ne=te.la>>4+Re,en=wn.la>>4+Re,xe=0;2>xe;++xe){for(kn=1&en,xn=0;2>xn;++xn)He=kn+(1&Ne),Ne=Ne>>1|(kn=0<(He=Na(Ce,ln[2],He,De.Qc,0,de,cn)))<<3,Ae=Ae<<2|(3<He?3:1<He?2:de[cn+0]!=0),cn+=16;Ne>>=2,en=en>>1|kn<<5}ve|=Ae<<4*Re,Xn|=Ne<<4<<Re,un|=(240&en)<<Re}te.la=Xn,wn.la=un,bn.Hc=tn,bn.Gc=ve,bn.ia=43690&ve?0:De.ia,ln=!(tn|ve)}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[ie.$b][ie.Za],Nt.wa[Nt.Y+Nt.ja].La|=!ln),ze.Ka)return Ye(ce,7,"Premature end-of-file encountered.")}if(Wa(ce),Nt=Qe,ze=1,ie=(Ot=ce).D,te=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(ie.M=Ot.M,ie.uc=te,Tn(Ot,ie),ze=1,ie=(Ae=Ot.D).Nb,te=(ve=ho[Ot.L])*Ot.R,Ce=ve/2*Ot.B,xe=16*ie*Ot.R,xn=8*ie*Ot.B,ln=Ot.sa,bn=Ot.ta-te+xe,De=Ot.qa,de=Ot.ra-Ce+xn,cn=Ot.Ha,wn=Ot.Ia-Ce+xn,en=(Ne=Ae.M)==0,tn=Ne>=Ot.Va-1,Ot.Aa==2&&Tn(Ot,Ae),Ae.uc)for(kn=(He=Ot).D.M,t(He.D.uc),Ae=He.yb;Ae<He.Hb;++Ae){un=Ae,Xn=kn;var yn=(Pn=(fn=He).D).Nb;Re=fn.R;var Pn=Pn.wa[Pn.Y+un],Cn=fn.sa,An=fn.ta+16*yn*Re+16*un,Fn=Pn.dd,Pe=Pn.tc;if(Pe!=0)if(t(3<=Pe),fn.L==1)0<un&&pl(Cn,An,Re,Pe+4),Pn.La&&vl(Cn,An,Re,Pe),0<Xn&&dl(Cn,An,Re,Pe+4),Pn.La&&gl(Cn,An,Re,Pe);else{var In=fn.B,$n=fn.qa,xi=fn.ra+8*yn*In+8*un,Ir=fn.Ha,fn=fn.Ia+8*yn*In+8*un;yn=Pn.ld,0<un&&(Ze(Cn,An,Re,Pe+4,Fn,yn),Aa($n,xi,Ir,fn,In,Pe+4,Fn,yn)),Pn.La&&(no(Cn,An,Re,Pe,Fn,yn),cl($n,xi,Ir,fn,In,Pe,Fn,yn)),0<Xn&&(Ue(Cn,An,Re,Pe+4,Fn,yn),Cr($n,xi,Ir,fn,In,Pe+4,Fn,yn)),Pn.La&&(Ui(Cn,An,Re,Pe,Fn,yn),hl($n,xi,Ir,fn,In,Pe,Fn,yn))}}if(Ot.ia&&alert("todo:DitherRow"),Nt.put!=null){if(Ae=16*Ne,Ne=16*(Ne+1),en?(Nt.y=Ot.sa,Nt.O=Ot.ta+xe,Nt.f=Ot.qa,Nt.N=Ot.ra+xn,Nt.ea=Ot.Ha,Nt.W=Ot.Ia+xn):(Ae-=ve,Nt.y=ln,Nt.O=bn,Nt.f=De,Nt.N=de,Nt.ea=cn,Nt.W=wn),tn||(Ne-=ve),Ne>Nt.o&&(Ne=Nt.o),Nt.F=null,Nt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&Ae<Ne&&(Nt.J=ke(Ot,Nt,Ae,Ne-Ae),Nt.F=Ot.mb,Nt.F==null&&Nt.F.length==0)){ze=Ye(Ot,3,"Could not decode alpha data.");break e}Ae<Nt.j&&(ve=Nt.j-Ae,Ae=Nt.j,t(!(1&ve)),Nt.O+=Ot.R*ve,Nt.N+=Ot.B*(ve>>1),Nt.W+=Ot.B*(ve>>1),Nt.F!=null&&(Nt.J+=Nt.width*ve)),Ae<Ne&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=Ae-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=Ne-Ae,ze=Nt.put(Nt))}ie+1!=Ot.Ic||tn||(r(Ot.sa,Ot.ta-te,ln,bn+16*Ot.R,te),r(Ot.qa,Ot.ra-Ce,De,de+8*Ot.B,Ce),r(Ot.Ha,Ot.Ia-Ce,cn,wn+8*Ot.B,Ce))}if(!ze)return Ye(ce,6,"Output aborted.")}return 1})(E,Y)),Y.bc!=null&&Y.bc(Y),$&=1}return $?(E.cb=0,$):0})(o,v)||(s=o.a)}}else s=o.a}s==0&&A.Oa!=null&&A.Oa.fd&&(s=va(A.ba))}A=s}y=A!=0?null:11>y?N.f.RGBA.eb:N.f.kb.y}else y=null;return y};var Dl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(R,tt){for(var L="",O=0;O<4;O++)L+=String.fromCharCode(R[tt++]);return L}function p(R,tt){return R[tt+0]|R[tt+1]<<8}function w(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16)>>>0}function x(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16|R[tt+3]<<24)>>>0}new u;var g=[0],P=[0],C=[],B=new u,S=n,G=(function(R,tt){var L={},O=0,z=!1,U=0,rt=0;if(L.frames=[],!(function(_,D){for(var M=0;M<4;M++)if(_[D+M]!="RIFF".charCodeAt(M))return!0;return!1})(R,tt)){for(x(R,tt+=4),tt+=8;tt<R.length;){var st=h(R,tt),ut=x(R,tt+=4);tt+=4;var nt=ut+(1&ut);switch(st){case"VP8 ":case"VP8L":L.frames[O]===void 0&&(L.frames[O]={}),(wt=L.frames[O]).src_off=z?rt:tt-8,wt.src_size=U+ut+8,O++,z&&(z=!1,U=0,rt=0);break;case"VP8X":(wt=L.header={}).feature_flags=R[tt];var ht=tt+4;wt.canvas_width=1+w(R,ht),ht+=3,wt.canvas_height=1+w(R,ht),ht+=3;break;case"ALPH":z=!0,U=nt+8,rt=tt-8;break;case"ANIM":(wt=L.header).bgcolor=x(R,tt),ht=tt+4,wt.loop_count=p(R,ht),ht+=2;break;case"ANMF":var _t,wt;(wt=L.frames[O]={}).offset_x=2*w(R,tt),tt+=3,wt.offset_y=2*w(R,tt),tt+=3,wt.width=1+w(R,tt),tt+=3,wt.height=1+w(R,tt),tt+=3,wt.duration=w(R,tt),tt+=3,_t=R[tt++],wt.dispose=1&_t,wt.blend=_t>>1&1}st!="ANMF"&&(tt+=nt)}return L}})(S,0);G.response=S,G.rgbaoutput=!0,G.dataurl=!1;var V=G.header?G.header:null,T=G.frames?G.frames:null;if(V){V.loop_counter=V.loop_count,g=[V.canvas_height],P=[V.canvas_width];for(var it=0;it<T.length&&T[it].blend!=0;it++);}var vt=T[0],ct=B.WebPDecodeRGBA(S,vt.src_off,vt.src_size,P,g);vt.rgba=ct,vt.imgwidth=P[0],vt.imgheight=g[0];for(var K=0;K<P[0]*g[0]*4;K++)C[K]=ct[K];return this.width=P,this.height=g,this.data=C,this}function F2(){var n,t=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(t));n=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function I2(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var t,e,r,a,i,f,l,u,h,p=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||!1,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||!1,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new u,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new f,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new f,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new w(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,f=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,h=new p}]);var w=function(_){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var D=_;Object.defineProperty(this,"pdf",{get:function(){return D}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(F){M=!!F}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(F){H=!!F}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(F){isNaN(F)||(J=F)}});var Z=0;Object.defineProperty(this,"posY",{get:function(){return Z},set:function(F){isNaN(F)||(Z=F)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(F){var Lt;typeof F=="number"?Lt=[F,F,F,F]:((Lt=new Array(4))[0]=F[0],Lt[1]=F.length>=2?F[1]:Lt[0],Lt[2]=F.length>=3?F[2]:Lt[0],Lt[3]=F.length>=4?F[3]:Lt[1]),h.margin=Lt}});var at=!1;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(F){at=F}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(F){ot=F}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(F){gt=F}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(F){F instanceof p&&(h=F)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(F){h.path=F}});var At=[];Object.defineProperty(this,"ctxStack",{get:function(){return At},set:function(F){At=F}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(F){var Lt;Lt=x(F),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(F){var Lt=x(F);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(F){["butt","round","square"].indexOf(F)!==-1&&(this.ctx.lineCap=F,this.pdf.setLineCap(F))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(F){isNaN(F)||(this.ctx.lineWidth=F,this.pdf.setLineWidth(F))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(F){["bevel","round","miter"].indexOf(F)!==-1&&(this.ctx.lineJoin=F,this.pdf.setLineJoin(F))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(F){isNaN(F)||(this.ctx.miterLimit=F,this.pdf.setMiterLimit(F))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(F){this.ctx.textBaseline=F}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(F){["right","end","center","left","start"].indexOf(F)!==-1&&(this.ctx.textAlign=F)}});var kt=null,St=null,Tt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Tt},set:function(F){kt=null,St=null,Tt=F}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(F){var Lt;if(this.ctx.font=F,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(F))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],yt=Lt[4];Lt[5];var Wt=Lt[6],Ct=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(Ct==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:Ct==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var zt=(function(Mt){var Te,pe,oe=[],se=Mt.trim();if(se==="")return Ts;if(se in Gu)return[Gu[se]];for(;se!=="";){switch(pe=null,Te=(se=Yu(se)).charAt(0)){case'"':case"'":pe=N2(se.substring(1),Te);break;default:pe=L2(se)}if(pe===null||(oe.push(pe[0]),(se=Yu(pe[1]))!==""&&se.charAt(0)!==","))return Ts;se=se.replace(/^,/,"")}return oe})(Wt);if(this.fontFaces){var qt=(function(Mt,Te){var pe=Mt.getFontList(),oe=JSON.stringify(pe);if(kt===null||St!==oe){var se=(function(Ie){var Ut=[];return Object.keys(Ie).forEach(function(Se){Ie[Se].forEach(function(Yt){var Qt=null;switch(Yt){case"bold":Qt={family:Se,weight:"bold"};break;case"italic":Qt={family:Se,style:"italic"};break;case"bolditalic":Qt={family:Se,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Se}}Qt!==null&&(Qt.ref={name:Se,style:Yt},Ut.push(Qt))})}),Ut})(pe);kt=(function(Ie){for(var Ut={},Se=0;Se<Ie.length;++Se){var Yt=Ms(Ie[Se]),Qt=Yt.family,Ee=Yt.stretch,le=Yt.style,Gt=Yt.weight;Ut[Qt]=Ut[Qt]||{},Ut[Qt][Ee]=Ut[Qt][Ee]||{},Ut[Qt][Ee][le]=Ut[Qt][Ee][le]||{},Ut[Qt][Ee][le][Gt]=Yt}return Ut})(se.concat(Te)),St=oe}return kt})(this.pdf,this.fontFaces),me=zt.map(function(Mt){return{family:Mt,stretch:"normal",weight:Ht,style:ae}}),ue=(function(Mt,Te,pe){for(var oe=(pe=pe||{}).defaultFontFamily||"times",se=Object.assign({},_2,pe.genericFontFamilies||{}),Ie=null,Ut=null,Se=0;Se<Te.length;++Se)if(se[(Ie=Ms(Te[Se])).family]&&(Ie.family=se[Ie.family]),Mt.hasOwnProperty(Ie.family)){Ut=Mt[Ie.family];break}if(!(Ut=Ut||Mt[oe]))throw new Error("Could not find a font-family for the rule '"+Vu(Ie)+"' and default family '"+oe+"'.");if(Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];var Ee=nl[Yt],le=Ee<=nl.normal?-1:1,Gt=Wu(Qt,th,Ee,le);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Yt);return Gt})(Ie.stretch,Ut),Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];for(var Ee=Qf[Yt],le=0;le<Ee.length;++le)if(Qt[Ee[le]])return Qt[Ee[le]];throw new Error("Could not find a matching font-style for "+Yt)})(Ie.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 Ee=A2[Yt],le=Wu(Qt,eh,Ee,Yt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Yt);return le})(Ie.weight,Ut)))throw new Error("Failed to resolve a font for the rule '"+Vu(Ie)+"'.");return Ut})(qt,me);this.pdf.setFont(ue.ref.name,ue.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 he="",fe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},jt=0;jt<zt.length;jt++){if(this.pdf.internal.getFont(zt[jt],Zt,{noFallback:!0,disableWarning:!0})!==void 0){he=zt[jt];break}if(Zt==="bolditalic"&&this.pdf.internal.getFont(zt[jt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)he=zt[jt],Zt="bold";else if(this.pdf.internal.getFont(zt[jt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){he=zt[jt],Zt="normal";break}}if(he===""){for(var ee=0;ee<zt.length;ee++)if(fe[zt[ee]]){he=fe[zt[ee]];break}}he=he===""?"Times":he,this.pdf.setFont(he,Zt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(F){this.ctx.globalCompositeOperation=F}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(F){this.ctx.globalAlpha=F}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(F){this.ctx.lineDashOffset=F,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(F){this.ctx.lineDash=F,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(F){this.ctx.ignoreClearRect=!!F}})};w.prototype.setLineDash=function(_){this.lineDash=_},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){T.call(this,"fill",!1)},w.prototype.stroke=function(){T.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(_,D){if(isNaN(_)||isNaN(D))throw Le.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new f(_,D));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new f(_,D)},w.prototype.closePath=function(){var _=new f(0,0),D=0;for(D=this.path.length-1;D!==-1;D--)if(this.path[D].type==="begin"&&ye(this.path[D+1])==="object"&&typeof this.path[D+1].x=="number"){_=new f(this.path[D+1].x,this.path[D+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new f(_.x,_.y)},w.prototype.lineTo=function(_,D){if(isNaN(_)||isNaN(D))throw Le.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new f(_,D));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new f(M.x,M.y)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),T.call(this,null,!0)},w.prototype.quadraticCurveTo=function(_,D,M,H){if(isNaN(M)||isNaN(H)||isNaN(_)||isNaN(D))throw Le.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new f(M,H)),Z=this.ctx.transform.applyToPoint(new f(_,D));this.path.push({type:"qct",x1:Z.x,y1:Z.y,x:J.x,y:J.y}),this.ctx.lastPoint=new f(J.x,J.y)},w.prototype.bezierCurveTo=function(_,D,M,H,J,Z){if(isNaN(J)||isNaN(Z)||isNaN(_)||isNaN(D)||isNaN(M)||isNaN(H))throw Le.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var at=this.ctx.transform.applyToPoint(new f(J,Z)),ot=this.ctx.transform.applyToPoint(new f(_,D)),gt=this.ctx.transform.applyToPoint(new f(M,H));this.path.push({type:"bct",x1:ot.x,y1:ot.y,x2:gt.x,y2:gt.y,x:at.x,y:at.y}),this.ctx.lastPoint=new f(at.x,at.y)},w.prototype.arc=function(_,D,M,H,J,Z){if(isNaN(_)||isNaN(D)||isNaN(M)||isNaN(H)||isNaN(J))throw Le.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Z=!!Z,!this.ctx.transform.isIdentity){var at=this.ctx.transform.applyToPoint(new f(_,D));_=at.x,D=at.y;var ot=this.ctx.transform.applyToPoint(new f(0,M)),gt=this.ctx.transform.applyToPoint(new f(0,0));M=Math.sqrt(Math.pow(ot.x-gt.x,2)+Math.pow(ot.y-gt.y,2))}Math.abs(J-H)>=2*Math.PI&&(H=0,J=2*Math.PI),this.path.push({type:"arc",x:_,y:D,radius:M,startAngle:H,endAngle:J,counterclockwise:Z})},w.prototype.arcTo=function(_,D,M,H,J){throw new Error("arcTo not implemented.")},w.prototype.rect=function(_,D,M,H){if(isNaN(_)||isNaN(D)||isNaN(M)||isNaN(H))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,D),this.lineTo(_+M,D),this.lineTo(_+M,D+H),this.lineTo(_,D+H),this.lineTo(_,D),this.lineTo(_+M,D),this.lineTo(_,D)},w.prototype.fillRect=function(_,D,M,H){if(isNaN(_)||isNaN(D)||isNaN(M)||isNaN(H))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,D,M,H),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},w.prototype.strokeRect=function(_,D,M,H){if(isNaN(_)||isNaN(D)||isNaN(M)||isNaN(H))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");P.call(this)||(this.beginPath(),this.rect(_,D,M,H),this.stroke())},w.prototype.clearRect=function(_,D,M,H){if(isNaN(_)||isNaN(D)||isNaN(M)||isNaN(H))throw Le.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,D,M,H))},w.prototype.save=function(_){_=typeof _!="boolean"||_;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(D),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new p(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},w.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(D),_&&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)},w.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var x=function(_){var D,M,H,J;if(_.isCanvasGradient===!0&&(_=_.getColor()),!_)return{r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))D=0,M=0,H=0,J=0;else{var Z=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(Z!==null)D=parseInt(Z[1]),M=parseInt(Z[2]),H=parseInt(Z[3]),J=1;else if((Z=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)D=parseInt(Z[1]),M=parseInt(Z[2]),H=parseInt(Z[3]),J=parseFloat(Z[4]);else{if(J=1,typeof _=="string"&&_.charAt(0)!=="#"){var at=new Vf(_);_=at.ok?at.toHex():"#000000"}_.length===4?(D=_.substring(1,2),D+=D,M=_.substring(2,3),M+=M,H=_.substring(3,4),H+=H):(D=_.substring(1,3),M=_.substring(3,5),H=_.substring(5,7)),D=parseInt(D,16),M=parseInt(M,16),H=parseInt(H,16)}}return{r:D,g:M,b:H,a:J,style:_}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},P=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};w.prototype.fillText=function(_,D,M,H){if(isNaN(D)||isNaN(M)||typeof _!="string")throw Le.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!g.call(this)){var J=nt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;O.call(this,{text:_,x:D,y:M,scale:Z,angle:J,align:this.textAlign,maxWidth:H})}},w.prototype.strokeText=function(_,D,M,H){if(isNaN(D)||isNaN(M)||typeof _!="string")throw Le.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!P.call(this)){H=isNaN(H)?void 0:H;var J=nt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;O.call(this,{text:_,x:D,y:M,scale:Z,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:H})}},w.prototype.measureText=function(_){if(typeof _!="string")throw Le.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var D=this.pdf,M=this.pdf.internal.scaleFactor,H=D.internal.getFontSize(),J=D.getStringUnitWidth(_)*H/D.internal.scaleFactor;return new function(Z){var at=(Z=Z||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:J*=Math.round(96*M/72*1e4)/1e4})},w.prototype.scale=function(_,D){if(isNaN(_)||isNaN(D))throw Le.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new u(_,0,0,D,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.rotate=function(_){if(isNaN(_))throw Le.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var D=new u(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(D)},w.prototype.translate=function(_,D){if(isNaN(_)||isNaN(D))throw Le.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new u(1,0,0,1,_,D);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.transform=function(_,D,M,H,J,Z){if(isNaN(_)||isNaN(D)||isNaN(M)||isNaN(H)||isNaN(J)||isNaN(Z))throw Le.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var at=new u(_,D,M,H,J,Z);this.ctx.transform=this.ctx.transform.multiply(at)},w.prototype.setTransform=function(_,D,M,H,J,Z){_=isNaN(_)?1:_,D=isNaN(D)?0:D,M=isNaN(M)?0:M,H=isNaN(H)?1:H,J=isNaN(J)?0:J,Z=isNaN(Z)?0:Z,this.ctx.transform=new u(_,D,M,H,J,Z)};var C=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(_,D,M,H,J,Z,at,ot,gt){var At=this.pdf.getImageProperties(_),kt=1,St=1,Tt=1,F=1;H!==void 0&&ot!==void 0&&(Tt=ot/H,F=gt/J,kt=At.width/H*ot/H,St=At.height/J*gt/J),Z===void 0&&(Z=D,at=M,D=0,M=0),H!==void 0&&ot===void 0&&(ot=H,gt=J),H===void 0&&ot===void 0&&(ot=At.width,gt=At.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new u,yt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(Z-D*Tt,at-M*F,H*kt,J*St));if(this.autoPaging){for(var Wt,Ct=B.call(this,yt),zt=[],qt=0;qt<Ct.length;qt+=1)zt.indexOf(Ct[qt])===-1&&zt.push(Ct[qt]);V(zt);for(var me=zt[0],ue=zt[zt.length-1],Zt=me;Zt<ue+1;Zt++){this.pdf.setPage(Zt);var he=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Zt===1?this.posY+this.margin[0]:this.margin[0],jt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Mt=Zt===1?0:jt+(Zt-2)*ee;if(this.ctx.clip_path.length!==0){var Te=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(Wt,this.posX+this.margin[3],-Mt+fe+this.ctx.prevPageLastElemOffset),it.call(this,"fill",!0),this.path=Te}var pe=JSON.parse(JSON.stringify(yt));pe=G([pe],this.posX+this.margin[3],-Mt+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Zt>me||Zt<ue)&&C.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],he,ee,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",pe.x,pe.y,pe.w,pe.h,null,null,ae),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(_,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,ae)};var B=function(_,D,M){var H=[];D=D||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case"mt":case"lt":H.push(Math.floor((_.y+J)/M)+1);break;case"arc":H.push(Math.floor((_.y+J-_.radius)/M)+1),H.push(Math.floor((_.y+J+_.radius)/M)+1);break;case"qct":var Z=ht(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);H.push(Math.floor((Z.y+J)/M)+1),H.push(Math.floor((Z.y+Z.h+J)/M)+1);break;case"bct":var at=_t(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);H.push(Math.floor((at.y+J)/M)+1),H.push(Math.floor((at.y+at.h+J)/M)+1);break;case"rect":H.push(Math.floor((_.y+J)/M)+1),H.push(Math.floor((_.y+_.h+J)/M)+1)}for(var ot=0;ot<H.length;ot+=1)for(;this.pdf.internal.getNumberOfPages()<H[ot];)S.call(this);return H},S=function(){var _=this.fillStyle,D=this.strokeStyle,M=this.font,H=this.lineCap,J=this.lineWidth,Z=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=D,this.font=M,this.lineCap=H,this.lineWidth=J,this.lineJoin=Z},G=function(_,D,M){for(var H=0;H<_.length;H++)switch(_[H].type){case"bct":_[H].x2+=D,_[H].y2+=M;case"qct":_[H].x1+=D,_[H].y1+=M;default:_[H].x+=D,_[H].y+=M}return _},V=function(_){return _.sort(function(D,M){return D-M})},T=function(_,D){var M=this.fillStyle,H=this.strokeStyle,J=this.lineCap,Z=this.lineWidth,at=Math.abs(Z*this.ctx.transform.scaleX),ot=this.lineJoin;if(this.autoPaging){for(var gt,At,kt=JSON.parse(JSON.stringify(this.path)),St=JSON.parse(JSON.stringify(this.path)),Tt=[],F=0;F<St.length;F++)if(St[F].x!==void 0)for(var Lt=B.call(this,St[F]),ae=0;ae<Lt.length;ae+=1)Tt.indexOf(Lt[ae])===-1&&Tt.push(Lt[ae]);for(var Ht=0;Ht<Tt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<Tt[Ht];)S.call(this);V(Tt);for(var yt=Tt[0],Wt=Tt[Tt.length-1],Ct=yt;Ct<Wt+1;Ct++){this.pdf.setPage(Ct),this.fillStyle=M,this.strokeStyle=H,this.lineCap=J,this.lineWidth=at,this.lineJoin=ot;var zt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=Ct===1?this.posY+this.margin[0]:this.margin[0],me=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ue=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zt=Ct===1?0:me+(Ct-2)*ue;if(this.ctx.clip_path.length!==0){var he=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(gt,this.posX+this.margin[3],-Zt+qt+this.ctx.prevPageLastElemOffset),it.call(this,_,!0),this.path=he}if(At=JSON.parse(JSON.stringify(kt)),this.path=G(At,this.posX+this.margin[3],-Zt+qt+this.ctx.prevPageLastElemOffset),D===!1||Ct===0){var fe=(Ct>yt||Ct<Wt)&&C.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],zt,ue,null).clip().discardPath()),it.call(this,_,D),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=Z}this.path=kt}else this.lineWidth=at,it.call(this,_,D),this.lineWidth=Z},it=function(_,D){if((_!=="stroke"||D||!P.call(this))&&(_==="stroke"||D||!g.call(this))){for(var M,H,J=[],Z=this.path,at=0;at<Z.length;at++){var ot=Z[at];switch(ot.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:ot,deltas:[],abs:[]});break;case"lt":var gt=J.length;if(Z[at-1]&&!isNaN(Z[at-1].x)&&(M=[ot.x-Z[at-1].x,ot.y-Z[at-1].y],gt>0)){for(;gt>=0;gt--)if(J[gt-1].close!==!0&&J[gt-1].begin!==!0){J[gt-1].deltas.push(M),J[gt-1].abs.push(ot);break}}break;case"bct":M=[ot.x1-Z[at-1].x,ot.y1-Z[at-1].y,ot.x2-Z[at-1].x,ot.y2-Z[at-1].y,ot.x-Z[at-1].x,ot.y-Z[at-1].y],J[J.length-1].deltas.push(M);break;case"qct":var At=Z[at-1].x+2/3*(ot.x1-Z[at-1].x),kt=Z[at-1].y+2/3*(ot.y1-Z[at-1].y),St=ot.x+2/3*(ot.x1-ot.x),Tt=ot.y+2/3*(ot.y1-ot.y),F=ot.x,Lt=ot.y;M=[At-Z[at-1].x,kt-Z[at-1].y,St-Z[at-1].x,Tt-Z[at-1].y,F-Z[at-1].x,Lt-Z[at-1].y],J[J.length-1].deltas.push(M);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(ot)}}H=D?null:_==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<J.length;Ht++)if(J[Ht].arc)for(var yt=J[Ht].abs,Wt=0;Wt<yt.length;Wt++){var Ct=yt[Wt];Ct.type==="arc"?K.call(this,Ct.x,Ct.y,Ct.radius,Ct.startAngle,Ct.endAngle,Ct.counterclockwise,void 0,D,!ae):z.call(this,Ct.x,Ct.y),ae=!0}else if(J[Ht].close===!0)this.pdf.internal.out("h"),ae=!1;else if(J[Ht].begin!==!0){var zt=J[Ht].start.x,qt=J[Ht].start.y;U.call(this,J[Ht].deltas,zt,qt),ae=!0}H&&R.call(this,H),D&&tt.call(this)}},vt=function(_){var D=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=D*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _-M;case"top":return _+D-M;case"hanging":return _+D-2*M;case"middle":return _+D/2-M;default:return _}},ct=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(D,M){this.colorStops.push([D,M])},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=!0,_},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var K=function(_,D,M,H,J,Z,at,ot,gt){for(var At=st.call(this,M,H,J,Z),kt=0;kt<At.length;kt++){var St=At[kt];kt===0&&(gt?L.call(this,St.x1+_,St.y1+D):z.call(this,St.x1+_,St.y1+D)),rt.call(this,_,D,St.x2,St.y2,St.x3,St.y3,St.x4,St.y4)}ot?tt.call(this):R.call(this,at)},R=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},tt=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(_,D){this.pdf.internal.out(e(_)+" "+r(D)+" m")},O=function(_){var D;switch(_.align){case"right":case"end":D="right";break;case"center":D="center";break;default:D="left"}var M,H,J,Z=this.pdf.getTextDimensions(_.text),at=vt.call(this,_.y),ot=ct.call(this,at)-Z.h,gt=this.ctx.transform.applyToPoint(new f(_.x,at));if(this.autoPaging){var At=this.ctx.transform.decompose(),kt=new u;kt=(kt=(kt=kt.multiply(At.translate)).multiply(At.skew)).multiply(At.scale);for(var St=this.ctx.transform.applyToRectangle(new l(_.x,at,Z.w,Z.h)),Tt=kt.applyToRectangle(new l(_.x,ot,Z.w,Z.h)),F=B.call(this,Tt),Lt=[],ae=0;ae<F.length;ae+=1)Lt.indexOf(F[ae])===-1&&Lt.push(F[ae]);V(Lt);for(var Ht=Lt[0],yt=Lt[Lt.length-1],Wt=Ht;Wt<yt+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],me=qt-this.margin[0],ue=this.pdf.internal.pageSize.width-this.margin[1],Zt=ue-this.margin[3],he=Wt===1?0:zt+(Wt-2)*me;if(this.ctx.clip_path.length!==0){var fe=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(M,this.posX+this.margin[3],-1*he+Ct),it.call(this,"fill",!0),this.path=fe}var jt=G([JSON.parse(JSON.stringify(Tt))],this.posX+this.margin[3],-he+Ct+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*_.scale),J=this.lineWidth,this.lineWidth=J*_.scale);var ee=this.autoPaging!=="text";if(ee||jt.y+jt.h<=qt){if(ee||jt.y>=Ct&&jt.x<=ue){var Mt=ee?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||ue-jt.x)[0],Te=G([JSON.parse(JSON.stringify(St))],this.posX+this.margin[3],-he+Ct+this.ctx.prevPageLastElemOffset)[0],pe=ee&&(Wt>Ht||Wt<yt)&&C.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zt,me,null).clip().discardPath()),this.pdf.text(Mt,Te.x,Te.y,{angle:_.angle,align:D,renderingMode:_.renderingMode}),pe&&this.pdf.restoreGraphicsState()}}else jt.y<qt&&(this.ctx.prevPageLastElemOffset+=qt-jt.y);_.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=J)}}else _.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*_.scale),J=this.lineWidth,this.lineWidth=J*_.scale),this.pdf.text(_.text,gt.x+this.posX,gt.y+this.posY,{angle:_.angle,align:D,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=J)},z=function(_,D,M,H){M=M||0,H=H||0,this.pdf.internal.out(e(_+M)+" "+r(D+H)+" l")},U=function(_,D,M){return this.pdf.lines(_,D,M,null,null)},rt=function(_,D,M,H,J,Z,at,ot){this.pdf.internal.out([t(a(M+_)),t(i(H+D)),t(a(J+_)),t(i(Z+D)),t(a(at+_)),t(i(ot+D)),"c"].join(" "))},st=function(_,D,M,H){for(var J=2*Math.PI,Z=Math.PI/2;D>M;)D-=J;var at=Math.abs(M-D);at<J&&H&&(at=J-at);for(var ot=[],gt=H?-1:1,At=D;at>1e-5;){var kt=At+gt*Math.min(at,Z);ot.push(ut.call(this,_,At,kt)),at-=Math.abs(kt-At),At=kt}return ot},ut=function(_,D,M){var H=(M-D)/2,J=_*Math.cos(H),Z=_*Math.sin(H),at=J,ot=-Z,gt=at*at+ot*ot,At=gt+at*J+ot*Z,kt=4/3*(Math.sqrt(2*gt*At)-At)/(at*Z-ot*J),St=at-kt*ot,Tt=ot+kt*at,F=St,Lt=-Tt,ae=H+D,Ht=Math.cos(ae),yt=Math.sin(ae);return{x1:_*Math.cos(D),y1:_*Math.sin(D),x2:St*Ht-Tt*yt,y2:St*yt+Tt*Ht,x3:F*Ht-Lt*yt,y3:F*yt+Lt*Ht,x4:_*Math.cos(M),y4:_*Math.sin(M)}},nt=function(_){return 180*_/Math.PI},ht=function(_,D,M,H,J,Z){var at=_+.5*(M-_),ot=D+.5*(H-D),gt=J+.5*(M-J),At=Z+.5*(H-Z),kt=Math.min(_,J,at,gt),St=Math.max(_,J,at,gt),Tt=Math.min(D,Z,ot,At),F=Math.max(D,Z,ot,At);return new l(kt,Tt,St-kt,F-Tt)},_t=function(_,D,M,H,J,Z,at,ot){var gt,At,kt,St,Tt,F,Lt,ae,Ht,yt,Wt,Ct,zt,qt,me=M-_,ue=H-D,Zt=J-M,he=Z-H,fe=at-J,jt=ot-Z;for(At=0;At<41;At++)Ht=(Lt=(kt=_+(gt=At/40)*me)+gt*((Tt=M+gt*Zt)-kt))+gt*(Tt+gt*(J+gt*fe-Tt)-Lt),yt=(ae=(St=D+gt*ue)+gt*((F=H+gt*he)-St))+gt*(F+gt*(Z+gt*jt-F)-ae),At==0?(Wt=Ht,Ct=yt,zt=Ht,qt=yt):(Wt=Math.min(Wt,Ht),Ct=Math.min(Ct,yt),zt=Math.max(zt,Ht),qt=Math.max(qt,yt));return new l(Math.round(Wt),Math.round(Ct),Math.round(zt-Wt),Math.round(qt-Ct))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,D,M=(_=this.ctx.lineDash,D=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:D}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(Rt.API),(function(n){var t=function(f){var l,u,h,p,w,x,g,P,C,B;for(u=[],h=0,p=(f+=l="\0\0\0\0".slice(f.length%4||4)).length;p>h;h+=4)(w=(f.charCodeAt(h)<<24)+(f.charCodeAt(h+1)<<16)+(f.charCodeAt(h+2)<<8)+f.charCodeAt(h+3))!==0?(x=(w=((w=((w=((w=(w-(B=w%85))/85)-(C=w%85))/85)-(P=w%85))/85)-(g=w%85))/85)%85,u.push(x+33,g+33,P+33,C+33,B+33)):u.push(122);return(function(S,G){for(var V=G;V>0;V--)S.pop()})(u,l.length),String.fromCharCode.apply(String,u)+"~>"},e=function(f){var l,u,h,p,w,x=String,g="length",P=255,C="charCodeAt",B="slice",S="replace";for(f[B](-2),f=f[B](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),h=[],p=0,w=(f+=l="uuuuu"[B](f[g]%5||5))[g];w>p;p+=5)u=52200625*(f[C](p)-33)+614125*(f[C](p+1)-33)+7225*(f[C](p+2)-33)+85*(f[C](p+3)-33)+(f[C](p+4)-33),h.push(P&u>>24,P&u>>16,P&u>>8,P&u);return(function(G,V){for(var T=V;T>0;T--)G.pop()})(h,l[g]),x.fromCharCode.apply(x,h)},r=function(f){return f.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(f){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),l.test(f)===!1)return"";for(var u="",h=0;h<f.length;h+=2)u+=String.fromCharCode("0x"+(f[h]+f[h+1]));return u},i=function(f){for(var l=new Uint8Array(f.length),u=f.length;u--;)l[u]=f.charCodeAt(u);return(l=Ks(l)).reduce(function(h,p){return h+String.fromCharCode(p)},"")};n.processDataByFilters=function(f,l){var u=0,h=f||"",p=[];for(typeof(l=l||[])=="string"&&(l=[l]),u=0;u<l.length;u+=1)switch(l[u]){case"ASCII85Decode":case"/ASCII85Decode":h=e(h),p.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":h=t(h),p.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":h=a(h),p.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":h=r(h),p.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":h=i(h),p.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[u]+'" is not implemented')}return{data:h,reverseChain:p.reverse().join(" ")}}})(Rt.API),(function(n){n.loadFile=function(t,e,r){return(function(a,i,f){i=i!==!1,f=typeof f=="function"?f:function(){};var l=void 0;try{l=(function(u,h,p){var w=new XMLHttpRequest,x=0,g=function(P){var C=P.length,B=[],S=String.fromCharCode;for(x=0;x<C;x+=1)B.push(S(255&P.charCodeAt(x)));return B.join("")};if(w.open("GET",u,!h),w.overrideMimeType("text/plain; charset=x-user-defined"),h===!1&&(w.onload=function(){w.status===200?p(g(this.responseText)):p(void 0)}),w.send(null),h&&w.status===200)return g(w.responseText)})(a,i,f)}catch{}return l})(t,e,r)},n.allowFsRead=void 0,n.loadImageFile=n.loadFile})(Rt.API),(function(n){function t(){return(Jt.html2canvas?Promise.resolve(Jt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-B5qzocYs.cjs"))).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return(Jt.DOMPurify?Promise.resolve(Jt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-DSa7RKfV.cjs"))).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var u=ye(l);return u==="undefined"?"undefined":u==="string"||l instanceof String?"string":u==="number"||l instanceof Number?"number":u==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":u==="object"?"object":"unknown"},a=function(l,u){var h=document.createElement(l);for(var p in u.className&&(h.className=u.className),u.innerHTML&&u.dompurify&&(h.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)h.style[p]=u.style[p];return h},i=function l(u,h){for(var p=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),w=u.firstChild;w;w=w.nextSibling)h!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||p.appendChild(l(w,h));return u.nodeType===1&&(u.nodeName==="CANVAS"?(p.width=u.width,p.height=u.height,p.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(p.value=u.value),p.addEventListener("load",function(){p.scrollTop=u.scrollTop,p.scrollLeft=u.scrollLeft},!0)),p},f=function l(u){var h=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),p=l.convert(Promise.resolve(),h);return(p=p.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(h){switch(r(h)){case"string":return"string";case"element":return h.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),u){case"string":return this.then(e).then(function(h){return this.set({src:a("div",{innerHTML:l,dompurify:h})})});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=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);u.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(u),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},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 h=Object.assign({},this.opt.html2canvas);return delete h.onrendered,u(this.prop.container,h)}).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 h=this.opt.jsPDF,p=this.opt.fontFaces,w=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,x=Object.assign({async:!0,allowTaint:!0,scale:w,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 x.onrendered,h.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,h.context2d.posX=this.opt.x,h.context2d.posY=this.opt.y,h.context2d.margin=this.opt.margin,h.context2d.fontFaces=p,p)for(var g=0;g<p.length;++g){var P=p[g],C=P.src.find(function(B){return B.format==="truetype"});C&&h.addFont(C.url,P.ref.name,P.ref.style)}return x.windowHeight=x.windowHeight||0,x.windowHeight=x.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):x.windowHeight,h.context2d.save(!0),u(this.prop.container,x)}).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,h){return(h=h||"pdf").toLowerCase()==="img"||h.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(r(l)!=="object")return this;var u=Object.keys(l||{}).map(function(h){if(h in f.template.prop)return function(){this.prop[h]=l[h]};switch(h){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[h]=l[h]}}},this);return this.then(function(){return this.thenList(u)})},f.prototype.get=function(l,u){return this.then(function(){var h=l in f.template.prop?this.prop[l]:this.opt[l];return u?u(h):h})},f.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},f.prototype.setPageSize=function(l){function u(h,p){return Math.floor(h*p/72*96)}return this.then(function(){(l=l||Rt.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,h,p){return l!=null&&(this.progress.val=l),u!=null&&(this.progress.state=u),h!=null&&(this.progress.n=h),p!=null&&(this.progress.stack=p),this.progress.ratio=this.progress.val/this.progress.state,this},f.prototype.updateProgress=function(l,u,h,p){return this.setProgress(l?this.progress.val+l:null,u||null,h?this.progress.n+h:null,p?this.progress.stack.concat(p):null)},f.prototype.then=function(l,u){var h=this;return this.thenCore(l,u,function(p,w){return h.updateProgress(null,null,1,[p]),Promise.prototype.then.call(this,function(x){return h.updateProgress(null,p),x}).then(p,w).then(function(x){return h.updateProgress(1),x})})},f.prototype.thenCore=function(l,u,h){h=h||Promise.prototype.then;var p=this;l&&(l=l.bind(p)),u&&(u=u.bind(p));var w=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?p:f.convert(Object.assign({},p),Promise.prototype),x=h.call(w,l,u);return f.convert(x,p.__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(h){u=u.thenCore(h)}),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,Rt.getPageSize=function(l,u,h){if(ye(l)==="object"){var p=l;l=p.orientation,u=p.unit||u,h=p.format||h}u=u||"mm",h=h||"a4",l=(""+(l||"P")).toLowerCase();var w,x=(""+h).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(u){case"pt":w=1;break;case"mm":w=72/25.4;break;case"cm":w=72/2.54;break;case"in":w=72;break;case"px":w=.75;break;case"pc":case"em":w=12;break;case"ex":w=6;break;default:throw"Invalid unit: "+u}var P,C=0,B=0;if(g.hasOwnProperty(x))C=g[x][1]/w,B=g[x][0]/w;else try{C=h[1],B=h[0]}catch{throw new Error("Invalid format: "+h)}if(l==="p"||l==="portrait")l="p",B>C&&(P=B,B=C,C=P);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",C>B&&(P=B,B=C,C=P)}return{width:B,height:C,unit:u,k:w,orientation:l}},n.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(Ms):null;var h=new f(u);return u.worker?h:h.from(l).doCallback()}})(Rt.API),Rt.API.addJS=function(n){var t,e,r=(function(a){for(var i="",f=0;f<a.length;f++){var l=a[f];if(l==="("||l===")"){for(var u=0,h=f-1;h>=0&&a[h]==="\\";h--)u++;i+=u%2==0?"\\"+l:l}else i+=l}return i})(n);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"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},(function(n){var t;n.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),i=0;i<a.length;i++){var f=a[i],l=r.exec(f);if(l!=null){var u=l[1];e.internal.newObjectDeferredBegin(u,!1)}e.internal.write(f)}if(this.outline.createNamedDestinations){var h=this.internal.pages.length,p=[];for(i=0;i<h;i++){var w=e.internal.newObject();p.push(w);var x=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+x.objId+" 0 R /XYZ null null null]>> endobj")}var g=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<p.length;i++)e.internal.write("(page_"+(i+1)+")"+p[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+g+" 0 R"),e.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),n.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,a,i){var f={title:a,options:i,children:[]};return r==null&&(r=this.root),r.children.push(f),f},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var a=0;a<r.children.length;a++)this.genIds_r(r.children[a])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var f=r.children[i];this.objStart(f),this.line("/Title "+this.makeString(f.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+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=e.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var h=0;h<r.children.length;h++)this.renderItems(r.children[h])},e.outline.line=function(r){this.ctx.val+=r+`\r
|
|
42
|
-
`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
|
|
43
|
-
`+r.id+` 0 obj\r
|
|
44
|
-
<<\r
|
|
45
|
-
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
46
|
-
endobj\r
|
|
47
|
-
`},e.outline.count_r=function(r,a){for(var i=0;i<a.children.length;i++)r.count++,this.count_r(r,a.children[i]);return r.count}}])})(Rt.API),(function(n){var t=[192,193,194,195,196,197,198,199];n.processJPEG=function(e,r,a,i,f,l){var u,h=this.decode.DCT_DECODE,p=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=f||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,u=(function(w){for(var x,g=256*w.charCodeAt(4)+w.charCodeAt(5),P=w.length,C={width:0,height:0,numcomponents:1},B=4;B<P;B+=2){if(B+=g,t.indexOf(w.charCodeAt(B+1))!==-1){x=256*w.charCodeAt(B+5)+w.charCodeAt(B+6),C={width:256*w.charCodeAt(B+7)+w.charCodeAt(B+8),height:x,numcomponents:w.charCodeAt(B+9)};break}g=256*w.charCodeAt(B+2)+w.charCodeAt(B+3)}return C})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),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}p={data:e,width:u.width,height:u.height,colorSpace:l,bitsPerComponent:8,filter:h,index:r,alias:a}}return p}})(Rt.API),Rt.API.processPNG=function(n,t,e,r){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var a,i=l2(n,{checkCrc:!0}),f=i.width,l=i.height,u=i.channels,h=i.palette,p=i.depth;a=h&&u===1?(function(K){for(var R=K.width,tt=K.height,L=K.data,O=K.palette,z=K.depth,U=!1,rt=[],st=[],ut=void 0,nt=!1,ht=0,_t=0;_t<O.length;_t++){var wt=Ql(O[_t],4),_=wt[0],D=wt[1],M=wt[2],H=wt[3];rt.push(_,D,M),H!=null&&(H===0?(ht++,st.length<1&&st.push(_t)):H<255&&(nt=!0))}if(nt||ht>1){U=!0,st=void 0;var J=R*tt;ut=new Uint8Array(J);for(var Z=new DataView(L.buffer),at=0;at<J;at++){var ot=qs(Z,at,z),gt=Ql(O[ot],4)[3];ut[at]=gt}}else ht===0&&(st=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:L,alphaBytes:ut,needSMask:U,palette:rt,mask:st}})(i):u===2||u===4?(function(K){for(var R=K.data,tt=K.width,L=K.height,O=K.channels,z=K.depth,U=O===2?"DeviceGray":"DeviceRGB",rt=O-1,st=tt*L,ut=rt,nt=st*ut,ht=1*st,_t=Math.ceil(nt*z/8),wt=Math.ceil(ht*z/8),_=new Uint8Array(_t),D=new Uint8Array(wt),M=new DataView(R.buffer),H=new DataView(_.buffer),J=new DataView(D.buffer),Z=!1,at=0;at<st;at++){for(var ot=at*O,gt=0;gt<ut;gt++)nf(H,qs(M,ot+gt,z),at*ut+gt,z);var At=qs(M,ot+ut,z);At<(1<<z)-1&&(Z=!0),nf(J,At,1*at,z)}return{colorSpace:U,colorsPerPixel:rt,sMaskBitsPerComponent:Z?z:void 0,colorBytes:_,alphaBytes:D,needSMask:Z}})(i):(function(K){var R=K.data,tt=K.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:tt,colorsPerPixel:tt==="DeviceGray"?1:3,colorBytes:R instanceof Uint16Array?(function(L){for(var O=L.length,z=new Uint8Array(2*O),U=new DataView(z.buffer,z.byteOffset,z.byteLength),rt=0;rt<O;rt++)U.setUint16(2*rt,L[rt],!1);return z})(R):R,needSMask:!1}})(i);var w,x,g,P=a,C=P.colorSpace,B=P.colorsPerPixel,S=P.sMaskBitsPerComponent,G=P.colorBytes,V=P.alphaBytes,T=P.needSMask,it=P.palette,vt=P.mask,ct=null;return r!==Rt.API.image_compression.NONE&&typeof Ks=="function"?(ct=(function(K){var R;switch(K){case Rt.API.image_compression.FAST:R=11;break;case Rt.API.image_compression.MEDIUM:R=13;break;case Rt.API.image_compression.SLOW:R=14;break;default:R=12}return R})(r),w=this.decode.FLATE_DECODE,x="/Predictor ".concat(ct," /Colors ").concat(B," /BitsPerComponent ").concat(p," /Columns ").concat(f),n=$u(G,Math.ceil(f*B*p/8),B,p,r),T&&(g=$u(V,Math.ceil(f*S/8),1,S,r))):(w=void 0,x=void 0,n=G,T&&(g=V)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:e,data:n,index:t,filter:w,decodeParameters:x,transparency:vt,palette:it,sMask:g,predictor:ct,width:f,height:l,bitsPerComponent:p,sMaskBitsPerComponent:S,colorSpace:C}}},(function(n){n.processGIF89A=function(t,e,r,a){var i=new C2(t),f=i.width,l=i.height,u=[];i.decodeAndBlitFrameRGBA(0,u);var h={data:u,width:f,height:l},p=new Us(100).encode(h,100);return n.processJPEG.call(this,p,e,r,a)},n.processGIF87A=n.processGIF89A})(Rt.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 n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var t=0;t<n;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Zn.prototype.parseBGR=function(){this.pos=this.offset;var n="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[n]()}catch(e){Le.log("bit decode error:"+e)}},Zn.prototype.bit1=function(){var n,t=Math.ceil(this.width/8),e=t%4;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<t;a++)for(var i=this.datav.getUint8(this.pos++,!0),f=r*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var u=this.palette[i>>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}e!==0&&(this.pos+=4-e)}},Zn.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),t=n%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<n;a++){var i=this.datav.getUint8(this.pos++,!0),f=r*this.width*4+2*a*4,l=i>>4,u=15&i,h=this.palette[l];if(this.data[f]=h.blue,this.data[f+1]=h.green,this.data[f+2]=h.red,this.data[f+3]=255,2*a+1>=this.width)break;h=this.palette[u],this.data[f+4]=h.blue,this.data[f+4+1]=h.green,this.data[f+4+2]=h.red,this.data[f+4+3]=255}t!==0&&(this.pos+=4-t)}},Zn.prototype.bit8=function(){for(var n=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(a<this.palette.length){var f=this.palette[a];this.data[i]=f.red,this.data[i+1]=f.green,this.data[i+2]=f.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}n!==0&&(this.pos+=4-n)}},Zn.prototype.bit15=function(){for(var n=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var f=(i&t)/t*255|0,l=(i>>5&t)/t*255|0,u=(i>>10&t)/t*255|0,h=i>>15?255:0,p=r*this.width*4+4*a;this.data[p]=u,this.data[p+1]=l,this.data[p+2]=f,this.data[p+3]=h}this.pos+=n}},Zn.prototype.bit16=function(){for(var n=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var f=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(f&t)/t*255|0,u=(f>>5&e)/e*255|0,h=(f>>11)/t*255|0,p=a*this.width*4+4*i;this.data[p]=h,this.data[p+1]=u,this.data[p+2]=l,this.data[p+3]=255}this.pos+=n}},Zn.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var t=this.bottom_up?n:this.height-1-n,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),f=t*this.width*4+4*e;this.data[f]=i,this.data[f+1]=a,this.data[f+2]=r,this.data[f+3]=255}this.pos+=this.width%4}},Zn.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var t=this.bottom_up?n:this.height-1-n,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),f=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*e;this.data[l]=i,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=f}},Zn.prototype.getData=function(){return this.data},(function(n){n.processBMP=function(t,e,r,a){var i=new Zn(t,!1),f=i.width,l=i.height,u={data:i.getData(),width:f,height:l},h=new Us(100).encode(u,100);return n.processJPEG.call(this,h,e,r,a)}})(Rt.API),af.prototype.getData=function(){return this.data},(function(n){n.processWEBP=function(t,e,r,a){var i=new af(t),f=i.width,l=i.height,u={data:i.getData(),width:f,height:l},h=new Us(100).encode(u,100);return n.processJPEG.call(this,h,e,r,a)}})(Rt.API),Rt.API.processRGBA=function(n,t,e){for(var r=n.data,a=r.length,i=new Uint8Array(a/4*3),f=new Uint8Array(a/4),l=0,u=0,h=0;h<a;h+=4){var p=r[h],w=r[h+1],x=r[h+2],g=r[h+3];i[l++]=p,i[l++]=w,i[l++]=x,f[u++]=g}var P=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(f),data:P,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},Rt.API.setLanguage=function(n){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"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,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},Gi=Rt.API,ko=Gi.getCharWidthsArray=function(n,t){var e,r,a=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),f=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,h=t.kerning?t.kerning:a.metadata.Unicode.kerning,p=h.fof?h.fof:1,w=t.doKerning!==!1,x=0,g=n.length,P=0,C=l[0]||u,B=[];for(e=0;e<g;e++)r=n.charCodeAt(e),typeof a.metadata.widthOfString=="function"?B.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+f*(1e3/i)||0)/1e3):(x=w&&ye(h[r])==="object"&&!isNaN(parseInt(h[r][P],10))?h[r][P]/p:0,B.push((l[r]||C)/u+x)),P=r;return B},Ju=Gi.getStringUnitWidth=function(n,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return Gi.processArabic&&(n=Gi.processArabic(n)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(n,e,a)/e:ko.apply(this,arguments).reduce(function(i,f){return i+f},0)},Ku=function(n,t,e,r){for(var a=[],i=0,f=n.length,l=0;i!==f&&l+t[i]<e;)l+=t[i],i++;a.push(n.slice(0,i));var u=i;for(l=0;i!==f;)l+t[i]>r&&(a.push(n.slice(u,i)),l=0,u=i),l+=t[i],i++;return u!==i&&a.push(n.slice(u,i)),a},Xu=function(n,t,e){e||(e={});var r,a,i,f,l,u,h,p=[],w=[p],x=e.textIndent||0,g=0,P=0,C=n.split(" "),B=ko.apply(this,[" ",e])[0];if(u=e.lineIndent===-1?C[0].length+2:e.lineIndent||0){var S=Array(u).join(" "),G=[];C.map(function(T){(T=T.split(/\s*\n/)).length>1?G=G.concat(T.map(function(it,vt){return(vt&&it.length?`
|
|
48
|
-
`:"")+it})):G.push(T[0])}),C=G,u=Ju.apply(this,[S,e])}for(i=0,f=C.length;i<f;i++){var V=0;if(r=C[i],u&&r[0]==`
|
|
49
|
-
`&&(r=r.substr(1),V=1),x+g+(P=(a=ko.apply(this,[r,e])).reduce(function(T,it){return T+it},0))>t||V){if(P>t){for(l=Ku.apply(this,[r,a,t-(x+g),t]),p.push(l.shift()),p=[l.pop()];l.length;)w.push([l.shift()]);P=a.slice(r.length-(p[0]?p[0].length:0)).reduce(function(T,it){return T+it},0)}else p=[r];w.push(p),x=P+u,g=B}else p.push(r),x+=g+P,g=B}return h=u?function(T,it){return(it?S:"")+T.join(" ")}:function(T){return T.join(" ")},w.map(h)},Gi.splitTextToSize=function(n,t,e){var r,a=(e=e||{}).fontSize||this.internal.getFontSize(),i=(function(p){if(p.widths&&p.kerning)return{widths:p.widths,kerning:p.kerning};var w=this.internal.getFont(p.fontName,p.fontStyle),x="Unicode";return w.metadata[x]?{widths:w.metadata[x].widths||{0:1},kerning:w.metadata[x].kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var f=1*this.internal.scaleFactor*t/a;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=e.lineIndent;var l,u,h=[];for(l=0,u=r.length;l<u;l++)h=h.concat(Xu.apply(this,[r[l],f,i]));return h},(function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var t="0123456789abcdef",e="klmnopqrstuvwxyz",r={},a={},i=0;i<16;i++)r[e[i]]=t[i],a[t[i]]=e[i];var f=function(x){return"0x"+parseInt(x,10).toString(16)},l=n.__fontmetrics__.compress=function(x){var g,P,C,B,S=["{"];for(var G in x){if(g=x[G],isNaN(parseInt(G,10))?P="'"+G+"'":(G=parseInt(G,10),P=(P=f(G).slice(2)).slice(0,-1)+a[P.slice(-1)]),typeof g=="number")g<0?(C=f(g).slice(3),B="-"):(C=f(g).slice(2),B=""),C=B+C.slice(0,-1)+a[C.slice(-1)];else{if(ye(g)!=="object")throw new Error("Don't know what to do with value type "+ye(g)+".");C=l(g)}S.push(P+C)}return S.push("}"),S.join("")},u=n.__fontmetrics__.uncompress=function(x){if(typeof x!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,P,C,B,S={},G=1,V=S,T=[],it="",vt="",ct=x.length-1,K=1;K<ct;K+=1)(B=x[K])=="'"?g?(C=g.join(""),g=void 0):g=[]:g?g.push(B):B=="{"?(T.push([V,C]),V={},C=void 0):B=="}"?((P=T.pop())[0][P[1]]=V,C=void 0,V=P[0]):B=="-"?G=-1:C===void 0?r.hasOwnProperty(B)?(it+=r[B],C=parseInt(it,16)*G,G=1,it=""):it+=B:r.hasOwnProperty(B)?(vt+=r[B],V[C]=parseInt(vt,16)*G,G=1,C=void 0,vt=""):vt+=B;return S},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},p={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},w={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}}}")}};n.events.push(["addFont",function(x){var g=x.font,P=w.Unicode[g.postScriptName];P&&(g.metadata.Unicode={},g.metadata.Unicode.widths=P.widths,g.metadata.Unicode.kerning=P.kerning);var C=p.Unicode[g.postScriptName];C&&(g.metadata.Unicode.encoding=C,g.encoding=C.codePages[0])}])})(Rt.API),(function(n){var t=function(e){for(var r=e.length,a=new Uint8Array(r),i=0;i<r;i++)a[i]=e.charCodeAt(i);return a};n.API.events.push(["addFont",function(e){var r=void 0,a=e.font,i=e.instance;if(!a.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=i.existsFileInVFS(a.postScriptName)===!1?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(f,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(Co(l)),f.metadata=n.API.TTFFont.open(l),f.metadata.Unicode=f.metadata.Unicode||{encoding:{},kerning:{},widths:[]},f.metadata.glyIdsUsed=[0]})(a,r)}}])})(Rt),Rt.API.addSvgAsImage=function(n,t,e,r,a,i,f,l){if(isNaN(t)||isNaN(e))throw Le.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw Le.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=r,u.height=a;var h=u.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,u.width,u.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},w=this;return(Jt.canvg?Promise.resolve(Jt.canvg):Promise.resolve().then(()=>require("./index.es-bmkO-qSm.cjs"))).catch(function(x){return Promise.reject(new Error("Could not load canvg: "+x))}).then(function(x){return x.default?x.default:x}).then(function(x){return x.fromString(h,n,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(x){return x.render(p)}).then(function(){w.addImage(u.toDataURL("image/jpeg",1),t,e,r,a,f,l)})},Rt.API.putTotalPages=function(n){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(n,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(t,e);return this},Rt.API.viewerPreferences=function(n,t){var e;n=n||{},t=t||!1;var r,a,i,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=[],h=0,p=0,w=0;function x(P,C){var B,S=!1;for(B=0;B<P.length;B+=1)P[B]===C&&(S=!0);return S}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(f)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,n==="reset"||t===!0){var g=l.length;for(w=0;w<g;w+=1)e[l[w]].value=e[l[w]].defaultValue,e[l[w]].explicitSet=!1}if(ye(n)==="object"){for(a in n)if(i=n[a],x(l,a)&&i!==void 0){if(e[a].type==="boolean"&&typeof i=="boolean")e[a].value=i;else if(e[a].type==="name"&&x(e[a].valueSet,i))e[a].value=i;else if(e[a].type==="integer"&&Number.isInteger(i))e[a].value=i;else if(e[a].type==="array"){for(h=0;h<i.length;h+=1)if(r=!0,i[h].length===1&&typeof i[h][0]=="number")u.push(String(i[h]-1));else if(i[h].length>1){for(p=0;p<i[h].length;p+=1)typeof i[h][p]!="number"&&(r=!1);r===!0&&u.push([i[h][0]-1,i[h][1]-1].join(" "))}e[a].value="["+u.join(" ")+"]"}else e[a].value=e[a].defaultValue;e[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var P,C=[];for(P in e)e[P].explicitSet===!0&&(e[P].type==="name"?C.push("/"+P+" /"+e[P].value):C.push("/"+P+" "+e[P].value));C.length!==0&&this.internal.write(`/ViewerPreferences
|
|
50
|
-
<<
|
|
51
|
-
`+C.join(`
|
|
52
|
-
`)+`
|
|
53
|
-
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},Rt.API.addMetadata=function(n,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",I2),this.internal.events.subscribe("postPutResources",F2)),this},(function(n){var t=n.API,e=t.pdfEscape16=function(i,f){for(var l,u=f.metadata.Unicode.widths,h=["","0","00","000","0000"],p=[""],w=0,x=i.length;w<x;++w){if(l=f.metadata.characterToGlyph(i.charCodeAt(w)),f.metadata.glyIdsUsed.push(l),f.metadata.toUnicode[l]=i.charCodeAt(w),u.indexOf(l)==-1&&(u.push(l),u.push([parseInt(f.metadata.widthOfGlyph(l),10)])),l=="0")return p.join("");l=l.toString(16),p.push(h[4-l.length],l)}return p.join("")},r=function(i){var f,l,u,h,p,w,x;for(p=`/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=[],w=0,x=(l=Object.keys(i).sort(function(g,P){return g-P})).length;w<x;w++)f=l[w],u.length>=100&&(p+=`
|
|
66
|
-
`+u.length+` beginbfchar
|
|
67
|
-
`+u.join(`
|
|
68
|
-
`)+`
|
|
69
|
-
endbfchar`,u=[]),i[f]!==void 0&&i[f]!==null&&typeof i[f].toString=="function"&&(h=("0000"+i[f].toString(16)).slice(-4),f=("0000"+(+f).toString(16)).slice(-4),u.push("<"+f+"><"+h+">"));return u.length&&(p+=`
|
|
70
|
-
`+u.length+` beginbfchar
|
|
71
|
-
`+u.join(`
|
|
72
|
-
`)+`
|
|
73
|
-
endbfchar
|
|
74
|
-
`),p+`endcmap
|
|
75
|
-
CMapName currentdict /CMap defineresource pop
|
|
76
|
-
end
|
|
77
|
-
end`};t.events.push(["putFont",function(i){(function(f){var l=f.font,u=f.out,h=f.newObject,p=f.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="Identity-H"){for(var w=l.metadata.Unicode.widths,x=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),g="",P=0;P<x.length;P++)g+=String.fromCharCode(x[P]);var C=h();p({data:g,addLength1:!0,objectId:C}),u("endobj");var B=h();p({data:r(l.metadata.toUnicode),addLength1:!0,objectId:B}),u("endobj");var S=h();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Yi(l.fontName)),u("/FontFile2 "+C+" 0 R"),u("/FontBBox "+n.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 G=h();u("<<"),u("/Type /Font"),u("/BaseFont /"+Yi(l.fontName)),u("/FontDescriptor "+S+" 0 R"),u("/W "+n.API.PDFObject.convert(w)),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=h(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+B+" 0 R"),u("/BaseFont /"+Yi(l.fontName)),u("/Encoding /"+l.encoding),u("/DescendantFonts ["+G+" 0 R]"),u(">>"),u("endobj"),l.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(f){var l=f.font,u=f.out,h=f.newObject,p=f.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var w=l.metadata.rawData,x="",g=0;g<w.length;g++)x+=String.fromCharCode(w[g]);var P=h();p({data:x,addLength1:!0,objectId:P}),u("endobj");var C=h();p({data:r(l.metadata.toUnicode),addLength1:!0,objectId:C}),u("endobj");var B=h();u("<<"),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u("/StemV "+l.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+P+" 0 R"),u("/Flags 96"),u("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),u("/FontName /"+Yi(l.fontName)),u("/ItalicAngle "+l.metadata.italicAngle),u("/Ascent "+l.metadata.ascender),u(">>"),u("endobj"),l.objectNumber=h();for(var S=0;S<l.metadata.hmtx.widths.length;S++)l.metadata.hmtx.widths[S]=parseInt(l.metadata.hmtx.widths[S]*(1e3/l.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+C+" 0 R/BaseFont/"+Yi(l.fontName)+"/FontDescriptor "+B+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),u("endobj"),l.isAlreadyPutted=!0}})(i)}]);var a=function(i){var f,l=i.text||"",u=i.x,h=i.y,p=i.options||{},w=i.mutex||{},x=w.pdfEscape,g=w.activeFontKey,P=w.fonts,C=g,B="",S=0,G="",V=P[C].encoding;if(P[C].encoding!=="Identity-H")return{text:l,x:u,y:h,options:p,mutex:w};for(G=l,C=g,Array.isArray(l)&&(G=l[0]),S=0;S<G.length;S+=1)P[C].metadata.hasOwnProperty("cmap")&&(f=P[C].metadata.cmap.unicode.codeMap[G[S].charCodeAt(0)]),f||G[S].charCodeAt(0)<256&&P[C].metadata.hasOwnProperty("Unicode")?B+=G[S]:B+="";var T="";return parseInt(C.slice(1))<14||V==="WinAnsiEncoding"?T=x(B,C).split("").map(function(it){return it.charCodeAt(0).toString(16)}).join(""):V==="Identity-H"&&(T=e(B,P[C])),w.isHex=!0,{text:T,x:u,y:h,options:p,mutex:w}};t.events.push(["postProcessText",function(i){var f=i.text||"",l=[],u={text:f,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(f)){var h=0;for(h=0;h<f.length;h+=1)Array.isArray(f[h])&&f[h].length===3?l.push([a(Object.assign({},u,{text:f[h][0]})).text,f[h][1],f[h][2]]):l.push(a(Object.assign({},u,{text:f[h]})).text);i.text=l}else i.text=a(Object.assign({},u,{text:f})).text}])})(Rt),(function(n){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},n.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},n.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(Rt.API),(function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(r){var a,i,f,l,u,h,p,w=t,x=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],P={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},C={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},B=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],S=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),G=!1,V=0;this.__bidiEngine__={};var T=function(L){var O=L.charCodeAt(),z=O>>8,U=C[z];return U!==void 0?w[256*U+(255&O)]:z===252||z===253?"AL":S.test(z)?"L":z===8?"R":"N"},it=function(L){for(var O,z=0;z<L.length;z++){if((O=T(L.charAt(z)))==="L")return!1;if(O==="R")return!0}return!1},vt=function(L,O,z,U){var rt,st,ut,nt,ht=O[U];switch(ht){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":G=!1;break;case"N":case"AN":break;case"EN":G&&(ht="AN");break;case"AL":G=!0,ht="R";break;case"WS":case"BN":ht="N";break;case"CS":U<1||U+1>=O.length||(rt=z[U-1])!=="EN"&&rt!=="AN"||(st=O[U+1])!=="EN"&&st!=="AN"?ht="N":G&&(st="AN"),ht=st===rt?st:"N";break;case"ES":ht=(rt=U>0?z[U-1]:"B")==="EN"&&U+1<O.length&&O[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&z[U-1]==="EN"){ht="EN";break}if(G){ht="N";break}for(ut=U+1,nt=O.length;ut<nt&&O[ut]==="ET";)ut++;ht=ut<nt&&O[ut]==="EN"?"EN":"N";break;case"NSM":if(f&&!l){for(nt=O.length,ut=U+1;ut<nt&&O[ut]==="NSM";)ut++;if(ut<nt){var _t=L[U],wt=_t>=1425&&_t<=2303||_t===64286;if(rt=O[ut],wt&&(rt==="R"||rt==="AL")){ht="R";break}}}ht=U<1||(rt=O[U-1])==="B"?"N":z[U-1];break;case"B":G=!1,a=!0,ht=V;break;case"S":i=!0,ht="N"}return ht},ct=function(L,O,z){var U=L.split("");return z&&K(U,z,{hiLevel:V}),U.reverse(),O&&O.reverse(),U.join("")},K=function(L,O,z){var U,rt,st,ut,nt,ht=-1,_t=L.length,wt=0,_=[],D=V?g:x,M=[];for(G=!1,a=!1,i=!1,rt=0;rt<_t;rt++)M[rt]=T(L[rt]);for(st=0;st<_t;st++){if(nt=wt,_[st]=vt(L,M,_,st),U=240&(wt=D[nt][P[_[st]]]),wt&=15,O[st]=ut=D[wt][5],U>0)if(U===16){for(rt=ht;rt<st;rt++)O[rt]=1;ht=-1}else ht=-1;if(D[wt][6])ht===-1&&(ht=st);else if(ht>-1){for(rt=ht;rt<st;rt++)O[rt]=ut;ht=-1}M[st]==="B"&&(O[st]=0),z.hiLevel|=ut}i&&(function(H,J,Z){for(var at=0;at<Z;at++)if(H[at]==="S"){J[at]=V;for(var ot=at-1;ot>=0&&H[ot]==="WS";ot--)J[ot]=V}})(M,O,_t)},R=function(L,O,z,U,rt){if(!(rt.hiLevel<L)){if(L===1&&V===1&&!a)return O.reverse(),void(z&&z.reverse());for(var st,ut,nt,ht,_t=O.length,wt=0;wt<_t;){if(U[wt]>=L){for(nt=wt+1;nt<_t&&U[nt]>=L;)nt++;for(ht=wt,ut=nt-1;ht<ut;ht++,ut--)st=O[ht],O[ht]=O[ut],O[ut]=st,z&&(st=z[ht],z[ht]=z[ut],z[ut]=st);wt=nt}wt++}}},tt=function(L,O,z){var U=L.split(""),rt={hiLevel:V};return z||(z=[]),K(U,z,rt),(function(st,ut,nt){if(nt.hiLevel!==0&&p)for(var ht,_t=0;_t<st.length;_t++)ut[_t]===1&&(ht=B.indexOf(st[_t]))>=0&&(st[_t]=B[ht+1])})(U,z,rt),R(2,U,O,z,rt),R(1,U,O,z,rt),U.join("")};return this.__bidiEngine__.doBidiReorder=function(L,O,z){if((function(rt,st){if(st)for(var ut=0;ut<rt.length;ut++)st[ut]=ut;l===void 0&&(l=it(rt)),h===void 0&&(h=it(rt))})(L,O),f||!u||h)if(f&&u&&l^h)V=l?1:0,L=ct(L,O,z);else if(!f&&u&&h)V=l?1:0,L=tt(L,O,z),L=ct(L,O);else if(!f||l||u||h){if(f&&!u&&l^h)L=ct(L,O),l?(V=0,L=tt(L,O,z)):(V=1,L=tt(L,O,z),L=ct(L,O));else if(f&&l&&!u&&h)V=1,L=tt(L,O,z),L=ct(L,O);else if(!f&&!u&&l^h){var U=p;l?(V=1,L=tt(L,O,z),V=0,p=!1,L=tt(L,O,z),p=U):(V=0,L=tt(L,O,z),L=ct(L,O),V=1,p=!1,L=tt(L,O,z),p=U,L=ct(L,O))}}else V=0,L=tt(L,O,z);else V=l?1:0,L=tt(L,O,z);return L},this.__bidiEngine__.setOptions=function(L){L&&(f=L.isInputVisual,u=L.isOutputVisual,l=L.isInputRtl,h=L.isOutputRtl,p=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),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"],e=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var f=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(f=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?f.push([e.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):f.push([e.doBidiReorder(a[l])]);r.text=f}else r.text=e.doBidiReorder(a);e.setOptions({isInputVisual:!0})}])})(Rt),Rt.API.TTFFont=(function(){function n(t){var e;if(this.rawData=t,e=this.contents=new ri(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new V2(this),this.registerTTF()}return n.open=function(t){return new n(t)},n.prototype.parse=function(){return this.directory=new E2(this.contents),this.head=new j2(this),this.name=new T2(this),this.cmap=new rh(this),this.toUnicode={},this.hhea=new B2(this),this.maxp=new q2(this),this.hmtx=new U2(this),this.post=new R2(this),this.os2=new D2(this),this.loca=new G2(this),this.glyf=new z2(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]},n.prototype.registerTTF=function(){var t,e,r,a,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var f,l,u,h;for(h=[],f=0,l=(u=this.bbox).length;f<l;f++)t=u[f],h.push(Math.round(t*this.scaleFactor));return h}).call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===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")},n.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},n.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},n.prototype.widthOfString=function(t,e,r){var a,i,f,l;for(f=0,i=0,l=(t=""+t).length;0<=l?i<l:i>l;i=0<=l?++i:--i)a=t.charCodeAt(i),f+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/e)||0;return f*(e/1e3)},n.prototype.lineHeight=function(t,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},n})();var er,ri=(function(){function n(t){this.data=t??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(t){return this.data[this.pos++]=t},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},n.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},n.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},n.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},n.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},n.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},n.prototype.writeString=function(t){var e,r,a;for(a=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)a.push(this.writeByte(t.charCodeAt(e)));return a},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(t){return this.writeInt16(t)},n.prototype.readLongLong=function(){var t,e,r,a,i,f,l,u;return t=this.readByte(),e=this.readByte(),r=this.readByte(),a=this.readByte(),i=this.readByte(),f=this.readByte(),l=this.readByte(),u=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^i)+65536*(255^f)+256*(255^l)+(255^u)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*a+16777216*i+65536*f+256*l+u},n.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(t){return this.writeInt32(t)},n.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},n.prototype.write=function(t){var e,r,a,i;for(i=[],r=0,a=t.length;r<a;r++)e=t[r],i.push(this.writeByte(e));return i},n})(),E2=(function(){var n;function t(e){var r,a,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},a=0,i=this.tableCount;0<=i?a<i:a>i;a=0<=i?++a:--a)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(e){var r,a,i,f,l,u,h,p,w,x,g,P,C;for(C in g=Object.keys(e).length,u=Math.log(2),w=16*Math.floor(Math.log(g)/u),f=Math.floor(w/u),p=16*g-w,(a=new ri).writeInt(this.scalarType),a.writeShort(g),a.writeShort(w),a.writeShort(f),a.writeShort(p),i=16*g,h=a.pos+i,l=null,P=[],e)for(x=e[C],a.writeString(C),a.writeInt(n(x)),a.writeInt(h),a.writeInt(x.length),P=P.concat(x),C==="head"&&(l=h),h+=x.length;h%4;)P.push(0),h++;return a.write(P),r=2981146554-n(a.data),a.pos=l+8,a.writeUInt32(r),a.data},n=function(e){var r,a,i,f;for(e=ih.call(e);e.length%4;)e.push(0);for(i=new ri(e),a=0,r=0,f=e.length;r<f;r=r+=4)a+=i.readUInt32();return 4294967295&a},t})(),O2={}.hasOwnProperty,pr=function(n,t){for(var e in t)O2.call(t,e)&&(n[e]=t[e]);function r(){this.constructor=n}return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};er=(function(){function n(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n})();var j2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="head",n.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()},n.prototype.encode=function(t){var e;return(e=new ri).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},n})(),of=(function(){function n(t,e){var r,a,i,f,l,u,h,p,w,x,g,P,C,B,S,G,V;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),w=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(g=t.readUInt16(),x=g/2,t.pos+=6,i=(function(){var T,it;for(it=[],u=T=0;0<=x?T<x:T>x;u=0<=x?++T:--T)it.push(t.readUInt16());return it})(),t.pos+=2,C=(function(){var T,it;for(it=[],u=T=0;0<=x?T<x:T>x;u=0<=x?++T:--T)it.push(t.readUInt16());return it})(),h=(function(){var T,it;for(it=[],u=T=0;0<=x?T<x:T>x;u=0<=x?++T:--T)it.push(t.readUInt16());return it})(),p=(function(){var T,it;for(it=[],u=T=0;0<=x?T<x:T>x;u=0<=x?++T:--T)it.push(t.readUInt16());return it})(),a=(this.length-t.pos+this.offset)/2,l=(function(){var T,it;for(it=[],u=T=0;0<=a?T<a:T>a;u=0<=a?++T:--T)it.push(t.readUInt16());return it})(),u=S=0,V=i.length;S<V;u=++S)for(B=i[u],r=G=P=C[u];P<=B?G<=B:G>=B;r=P<=B?++G:--G)p[u]===0?f=r+h[u]:(f=l[p[u]/2+(r-P)-(x-u)]||0)!==0&&(f+=h[u]),this.codeMap[r]=65535&f}t.pos=w}return n.encode=function(t,e){var r,a,i,f,l,u,h,p,w,x,g,P,C,B,S,G,V,T,it,vt,ct,K,R,tt,L,O,z,U,rt,st,ut,nt,ht,_t,wt,_,D,M,H,J,Z,at,ot,gt,At,kt;switch(U=new ri,f=Object.keys(t).sort(function(St,Tt){return St-Tt}),e){case"macroman":for(C=0,B=(function(){var St=[];for(P=0;P<256;++P)St.push(0);return St})(),G={0:0},i={},rt=0,ht=f.length;rt<ht;rt++)G[ot=t[a=f[rt]]]==null&&(G[ot]=++C),i[a]={old:t[a],new:G[t[a]]},B[a]=G[t[a]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(B),{charMap:i,subtable:U.data,maxGlyphID:C+1};case"unicode":for(O=[],w=[],V=0,G={},r={},S=h=null,st=0,_t=f.length;st<_t;st++)G[it=t[a=f[st]]]==null&&(G[it]=++V),r[a]={old:it,new:G[it]},l=G[it]-a,S!=null&&l===h||(S&&w.push(S),O.push(a),h=l),S=a;for(S&&w.push(S),w.push(65535),O.push(65535),tt=2*(R=O.length),K=2*Math.pow(Math.log(R)/Math.LN2,2),x=Math.log(K/2)/Math.LN2,ct=2*R-K,u=[],vt=[],g=[],P=ut=0,wt=O.length;ut<wt;P=++ut){if(L=O[P],p=w[P],L===65535){u.push(0),vt.push(0);break}if(L-(z=r[L].new)>=32768)for(u.push(0),vt.push(2*(g.length+R-P)),a=nt=L;L<=p?nt<=p:nt>=p;a=L<=p?++nt:--nt)g.push(r[a].new);else u.push(z-L),vt.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*R+2*g.length),U.writeUInt16(0),U.writeUInt16(tt),U.writeUInt16(K),U.writeUInt16(x),U.writeUInt16(ct),Z=0,_=w.length;Z<_;Z++)a=w[Z],U.writeUInt16(a);for(U.writeUInt16(0),at=0,D=O.length;at<D;at++)a=O[at],U.writeUInt16(a);for(gt=0,M=u.length;gt<M;gt++)l=u[gt],U.writeUInt16(l);for(At=0,H=vt.length;At<H;At++)T=vt[At],U.writeUInt16(T);for(kt=0,J=g.length;kt<J;kt++)C=g[kt],U.writeUInt16(C);return{charMap:r,subtable:U.data,maxGlyphID:V+1}}},n})(),rh=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="cmap",n.prototype.parse=function(t){var e,r,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)e=new of(t,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},n.encode=function(t,e){var r,a;return e==null&&(e="macroman"),r=of.encode(t,e),(a=new ri).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},n})(),B2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="hhea",n.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()},n})(),D2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="OS/2",n.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 e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r})(),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 e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},n})(),R2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="post",n.prototype.parse=function(t){var e,r,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)e=t.readByte(),a.push(this.names.push(t.readString(e)));return a;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var f,l,u;for(u=[],i=f=0,l=this.file.maxp.numGlyphs;0<=l?f<l:f>l;i=0<=l?++f:--f)u.push(t.readUInt32());return u}).call(this)}},n})(),M2=function(n,t){this.raw=n,this.length=n.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},T2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="name",n.prototype.parse=function(t){var e,r,a,i,f,l,u,h,p,w,x;for(t.pos=this.offset,t.readShort(),e=t.readShort(),l=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(u={},i=p=0,w=r.length;p<w;i=++p)a=r[i],t.pos=a.offset,h=t.readString(a.length),f=new M2(h,a),u[x=a.nameID]==null&&(u[x]=[]),u[a.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]},n})(),q2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="maxp",n.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()},n})(),U2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="hmtx",n.prototype.parse=function(t){var e,r,a,i,f,l,u;for(t.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var h,p;for(p=[],e=h=0;0<=a?h<a:h>a;e=0<=a?++h:--h)p.push(t.readInt16());return p})(),this.widths=(function(){var h,p,w,x;for(x=[],h=0,p=(w=this.metrics).length;h<p;h++)i=w[h],x.push(i.advance);return x}).call(this),r=this.widths[this.widths.length-1],u=[],e=f=0;0<=a?f<a:f>a;e=0<=a?++f:--f)u.push(this.widths.push(r));return u},n.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]}},n})(),ih=[].slice,z2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(t){var e,r,a,i,f,l,u,h,p,w;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),(a=i.lengthOf(t))===0?this.cache[t]=null:(e.pos=this.offset+r,f=(l=new ri(e.read(a))).readShort(),h=l.readShort(),w=l.readShort(),u=l.readShort(),p=l.readShort(),this.cache[t]=f===-1?new W2(l,h,w,u,p):new H2(l,f,h,w,u,p),this.cache[t]))},n.prototype.encode=function(t,e,r){var a,i,f,l,u;for(f=[],i=[],l=0,u=e.length;l<u;l++)a=t[e[l]],i.push(f.length),a&&(f=f.concat(a.encode(r)));return i.push(f.length),{table:f,offsets:i}},n})(),H2=(function(){function n(t,e,r,a,i,f){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=a,this.xMax=i,this.yMax=f,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n})(),W2=(function(){function n(t,e,r,a,i){var f,l;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=a,this.yMax=i,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 n.prototype.encode=function(){var t,e,r;for(e=new ri(ih.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},n})(),G2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return pr(n,er),n.prototype.tag="loca",n.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var a,i;for(i=[],r=0,a=this.length;r<a;r+=2)i.push(2*t.readUInt16());return i}).call(this):(function(){var a,i;for(i=[],r=0,a=this.length;r<a;r+=4)i.push(t.readUInt32());return i}).call(this)},n.prototype.indexOf=function(t){return this.offsets[t]},n.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},n.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),a=0,i=0,f=0;f<r.length;++f)if(r[f]=a,i<e.length&&e[i]==f){++i,r[f]=a;var l=this.offsets[f],u=this.offsets[f+1]-l;u>0&&(a+=u)}for(var h=new Array(4*r.length),p=0;p<r.length;++p)h[4*p+3]=255&r[p],h[4*p+2]=(65280&r[p])>>8,h[4*p+1]=(16711680&r[p])>>16,h[4*p]=(4278190080&r[p])>>24;return h},n})(),V2=(function(){function n(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var t,e,r,a,i;for(e in a=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=a[r];return t},n.prototype.glyphsFor=function(t){var e,r,a,i,f,l,u;for(a={},f=0,l=t.length;f<l;f++)a[i=t[f]]=this.font.glyf.glyphFor(i);for(i in e=[],a)(r=a[i])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in u=this.glyphsFor(e))r=u[i],a[i]=r;return a},n.prototype.encode=function(t,e){var r,a,i,f,l,u,h,p,w,x,g,P,C,B,S;for(a in r=rh.encode(this.generateCmap(),"unicode"),f=this.glyphsFor(t),g={0:0},S=r.charMap)g[(u=S[a]).old]=u.new;for(P in x=r.maxGlyphID,f)P in g||(g[P]=x++);return p=(function(G){var V,T;for(V in T={},G)T[G[V]]=V;return T})(g),w=Object.keys(p).sort(function(G,V){return G-V}),C=(function(){var G,V,T;for(T=[],G=0,V=w.length;G<V;G++)l=w[G],T.push(p[l]);return T})(),i=this.font.glyf.encode(f,C,g),h=this.font.loca.encode(i.offsets,C),B={cmap:this.font.cmap.raw(),glyf:i.table,loca:h,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(B["OS/2"]=this.font.os2.raw()),this.font.directory.encode(B)},n})();Rt.API.PDFObject=(function(){var n;function t(){}return n=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},t.convert=function(e){var r,a,i,f;if(Array.isArray(e))return"["+(function(){var l,u,h;for(h=[],l=0,u=e.length;l<u;l++)r=e[l],h.push(t.convert(r));return h})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+n(e.getUTCFullYear(),4)+n(e.getUTCMonth(),2)+n(e.getUTCDate(),2)+n(e.getUTCHours(),2)+n(e.getUTCMinutes(),2)+n(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in i=["<<"],e)f=e[a],i.push("/"+a+" "+t.convert(f));return i.push(">>"),i.join(`
|
|
78
|
-
`)}return""+e},t})();function ah(n,t,e,r,a){r=r||{};var i=1.15,f=a.internal.scaleFactor,l=a.internal.getFontSize()/f,u=a.getLineHeightFactor?a.getLineHeightFactor():i,h=l*u,p=/\r\n|\r|\n/g,w="",x=1;if((r.valign==="middle"||r.valign==="bottom"||r.halign==="center"||r.halign==="right")&&(w=typeof n=="string"?n.split(p):n,x=w.length||1),e+=l*(2-i),r.valign==="middle"?e-=x/2*h:r.valign==="bottom"&&(e-=x*h),r.halign==="center"||r.halign==="right"){var g=l;if(r.halign==="center"&&(g*=.5),w&&x>=1){for(var P=0;P<w.length;P++)a.text(w[P],t-a.getStringUnitWidth(w[P])*g,e),e+=h;return a}t-=a.getStringUnitWidth(n)*g}return r.halign==="justify"?a.text(n,t,e,{maxWidth:r.maxWidth||100,align:"justify"}):a.text(n,t,e),a}var sf={},Qi=(function(){function n(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return n.setDefaults=function(t,e){e===void 0&&(e=null),e?e.__autoTableDocumentDefaults=t:sf=t},n.unifyColor=function(t){return Array.isArray(t)?t:typeof t=="number"?[t,t,t]:typeof t=="string"?[t]:null},n.prototype.applyStyles=function(t,e){var r,a,i;e===void 0&&(e=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var f=this.jsPDFDocument.internal.getFont(),l=f.fontStyle,u=f.fontName;if(t.font&&(u=t.font),t.fontStyle){l=t.fontStyle;var h=this.getFontList()[u];h&&h.indexOf(l)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(h[0]),l=h[0])}if(this.jsPDFDocument.setFont(u,l),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!e){var p=n.unifyColor(t.fillColor);p&&(r=this.jsPDFDocument).setFillColor.apply(r,p),p=n.unifyColor(t.textColor),p&&(a=this.jsPDFDocument).setTextColor.apply(a,p),p=n.unifyColor(t.lineColor),p&&(i=this.jsPDFDocument).setDrawColor.apply(i,p),typeof t.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},n.prototype.splitTextToSize=function(t,e,r){return this.jsPDFDocument.splitTextToSize(t,e,r)},n.prototype.rect=function(t,e,r,a,i){return this.jsPDFDocument.rect(t,e,r,a,i)},n.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},n.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},n.prototype.getDocument=function(){return this.jsPDFDocument},n.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},n.prototype.addPage=function(){return this.jsPDFDocument.addPage()},n.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},n.prototype.getGlobalOptions=function(){return sf||{}},n.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},n.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return t.width==null&&(t={width:t.getWidth(),height:t.getHeight()}),t},n.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},n.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},n.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},n.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},n})(),rl=function(n,t){return rl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])},rl(n,t)};function oh(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rl(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var sh=(function(n){oh(t,n);function t(e){var r=n.call(this)||this;return r._element=e,r}return t})(Array);function Y2(n){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/n,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function J2(n){var t={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return t[n]}function Mo(n,t,e){e.applyStyles(t,!0);var r=Array.isArray(n)?n:[n],a=r.map(function(i){return e.getTextWidth(i)}).reduce(function(i,f){return Math.max(i,f)},0);return a}function lh(n,t,e,r){var a=t.settings.tableLineWidth,i=t.settings.tableLineColor;n.applyStyles({lineWidth:a,lineColor:i});var f=uh(a,!1);f&&n.rect(e.x,e.y,t.getWidth(n.pageSize().width),r.y-e.y,f)}function uh(n,t){var e=n>0,r=t||t===0;return e&&r?"DF":e?"S":r?"F":null}function zo(n,t){var e,r,a,i;if(n=n||t,Array.isArray(n)){if(n.length>=4)return{top:n[0],right:n[1],bottom:n[2],left:n[3]};if(n.length===3)return{top:n[0],right:n[1],bottom:n[2],left:n[1]};if(n.length===2)return{top:n[0],right:n[1],bottom:n[0],left:n[1]};n.length===1?n=n[0]:n=t}return typeof n=="object"?(typeof n.vertical=="number"&&(n.top=n.vertical,n.bottom=n.vertical),typeof n.horizontal=="number"&&(n.right=n.horizontal,n.left=n.horizontal),{left:(e=n.left)!==null&&e!==void 0?e:t,top:(r=n.top)!==null&&r!==void 0?r:t,right:(a=n.right)!==null&&a!==void 0?a:t,bottom:(i=n.bottom)!==null&&i!==void 0?i:t}):(typeof n!="number"&&(n=t),{top:n,right:n,bottom:n,left:n})}function fh(n,t){var e=zo(t.settings.margin,0);return n.pageSize().width-(e.left+e.right)}function K2(n,t,e,r,a){var i={},f=1.3333333333333333,l=zs(t,function(V){return a.getComputedStyle(V).backgroundColor});l!=null&&(i.fillColor=l);var u=zs(t,function(V){return a.getComputedStyle(V).color});u!=null&&(i.textColor=u);var h=$2(r,e);h&&(i.cellPadding=h);var p="borderTopColor",w=f*e,x=r.borderTopWidth;if(r.borderBottomWidth===x&&r.borderRightWidth===x&&r.borderLeftWidth===x){var g=(parseFloat(x)||0)/w;g&&(i.lineWidth=g)}else i.lineWidth={top:(parseFloat(r.borderTopWidth)||0)/w,right:(parseFloat(r.borderRightWidth)||0)/w,bottom:(parseFloat(r.borderBottomWidth)||0)/w,left:(parseFloat(r.borderLeftWidth)||0)/w},i.lineWidth.top||(i.lineWidth.right?p="borderRightColor":i.lineWidth.bottom?p="borderBottomColor":i.lineWidth.left&&(p="borderLeftColor"));var P=zs(t,function(V){return a.getComputedStyle(V)[p]});P!=null&&(i.lineColor=P);var C=["left","right","center","justify"];C.indexOf(r.textAlign)!==-1&&(i.halign=r.textAlign),C=["middle","bottom","top"],C.indexOf(r.verticalAlign)!==-1&&(i.valign=r.verticalAlign);var B=parseInt(r.fontSize||"");isNaN(B)||(i.fontSize=B/f);var S=X2(r);S&&(i.fontStyle=S);var G=(r.fontFamily||"").toLowerCase();return n.indexOf(G)!==-1&&(i.font=G),i}function X2(n){var t="";return(n.fontWeight==="bold"||n.fontWeight==="bolder"||parseInt(n.fontWeight)>=700)&&(t="bold"),(n.fontStyle==="italic"||n.fontStyle==="oblique")&&(t+="italic"),t}function zs(n,t){var e=hh(n,t);if(!e)return null;var r=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var a=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])],i=parseInt(r[4]);return i===0||isNaN(a[0])||isNaN(a[1])||isNaN(a[2])?null:a}function hh(n,t){var e=t(n);return e==="rgba(0, 0, 0, 0)"||e==="transparent"||e==="initial"||e==="inherit"?n.parentElement==null?null:hh(n.parentElement,t):e}function $2(n,t){var e=[n.paddingTop,n.paddingRight,n.paddingBottom,n.paddingLeft],r=96/(72/t),a=(parseInt(n.lineHeight)-parseInt(n.fontSize))/t/2,i=e.map(function(l){return parseInt(l||"0")/r}),f=zo(i,0);return a>f.top&&(f.top=a),a>f.bottom&&(f.bottom=a),f}function ch(n,t,e,r,a){var i,f;r===void 0&&(r=!1),a===void 0&&(a=!1);var l;typeof t=="string"?l=e.document.querySelector(t):l=t;var u=Object.keys(n.getFontList()),h=n.scaleFactor(),p=[],w=[],x=[];if(!l)return console.error("Html table could not be found with input: ",t),{head:p,body:w,foot:x};for(var g=0;g<l.rows.length;g++){var P=l.rows[g],C=(f=(i=P?.parentElement)===null||i===void 0?void 0:i.tagName)===null||f===void 0?void 0:f.toLowerCase(),B=Z2(u,h,e,P,r,a);B&&(C==="thead"?p.push(B):C==="tfoot"?x.push(B):w.push(B))}return{head:p,body:w,foot:x}}function Z2(n,t,e,r,a,i){for(var f=new sh(r),l=0;l<r.cells.length;l++){var u=r.cells[l],h=e.getComputedStyle(u);if(a||h.display!=="none"){var p=void 0;i&&(p=K2(n,u,t,h,e)),f.push({rowSpan:u.rowSpan,colSpan:u.colSpan,styles:p,_element:u,content:Q2(u)})}}var w=e.getComputedStyle(r);if(f.length>0&&(a||w.display!=="none"))return f}function Q2(n){var t=n.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map(function(e){return e.trim()}).join(`
|
|
79
|
-
`),t.innerText||t.textContent||""}function t5(n,t,e){for(var r=0,a=[n,t,e];r<a.length;r++){var i=a[r];i&&typeof i!="object"&&console.error("The options parameter should be of type object, is: "+typeof i),i.startY&&typeof i.startY!="number"&&(console.error("Invalid value for startY option",i.startY),delete i.startY)}}function Dr(n,t,e,r,a){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(n),f=1;f<arguments.length;f++){var l=arguments[f];if(l!=null)for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i}function dh(n,t){var e=new Qi(n),r=e.getDocumentOptions(),a=e.getGlobalOptions();t5(a,r,t);var i=Dr({},a,r,t),f;typeof window<"u"&&(f=window);var l=e5(a,r,t),u=n5(a,r,t),h=r5(e,i),p=a5(e,i,f);return{id:t.tableId,content:p,hooks:u,styles:l,settings:h}}function e5(n,t,e){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(u){if(u==="columnStyles"){var h=n[u],p=t[u],w=e[u];r.columnStyles=Dr({},h,p,w)}else{var x=[n,t,e],g=x.map(function(P){return P[u]||{}});r[u]=Dr({},g[0],g[1],g[2])}},i=0,f=Object.keys(r);i<f.length;i++){var l=f[i];a(l)}return r}function n5(n,t,e){for(var r=[n,t,e],a={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},i=0,f=r;i<f.length;i++){var l=f[i];l.didParseCell&&a.didParseCell.push(l.didParseCell),l.willDrawCell&&a.willDrawCell.push(l.willDrawCell),l.didDrawCell&&a.didDrawCell.push(l.didDrawCell),l.willDrawPage&&a.willDrawPage.push(l.willDrawPage),l.didDrawPage&&a.didDrawPage.push(l.didDrawPage)}return a}function r5(n,t){var e,r,a,i,f,l,u,h,p,w,x,g,P=zo(t.margin,40/n.scaleFactor()),C=(e=i5(n,t.startY))!==null&&e!==void 0?e:P.top,B;t.showFoot===!0?B="everyPage":t.showFoot===!1?B="never":B=(r=t.showFoot)!==null&&r!==void 0?r:"everyPage";var S;t.showHead===!0?S="everyPage":t.showHead===!1?S="never":S=(a=t.showHead)!==null&&a!==void 0?a:"everyPage";var G=(i=t.useCss)!==null&&i!==void 0?i:!1,V=t.theme||(G?"plain":"striped"),T=!!t.horizontalPageBreak,it=(f=t.horizontalPageBreakRepeat)!==null&&f!==void 0?f:null;return{includeHiddenHtml:(l=t.includeHiddenHtml)!==null&&l!==void 0?l:!1,useCss:G,theme:V,startY:C,margin:P,pageBreak:(u=t.pageBreak)!==null&&u!==void 0?u:"auto",rowPageBreak:(h=t.rowPageBreak)!==null&&h!==void 0?h:"auto",tableWidth:(p=t.tableWidth)!==null&&p!==void 0?p:"auto",showHead:S,showFoot:B,tableLineWidth:(w=t.tableLineWidth)!==null&&w!==void 0?w:0,tableLineColor:(x=t.tableLineColor)!==null&&x!==void 0?x:200,horizontalPageBreak:T,horizontalPageBreakRepeat:it,horizontalPageBreakBehaviour:(g=t.horizontalPageBreakBehaviour)!==null&&g!==void 0?g:"afterAllRows"}}function i5(n,t){var e=n.getLastAutoTable(),r=n.scaleFactor(),a=n.pageNumber(),i=!1;if(e&&e.startPageNumber){var f=e.startPageNumber+e.pageNumber-1;i=f===a}return typeof t=="number"?t:(t==null||t===!1)&&i&&e?.finalY!=null?e.finalY+20/r:null}function a5(n,t,e){var r=t.head||[],a=t.body||[],i=t.foot||[];if(t.html){var f=t.includeHiddenHtml;if(e){var l=ch(n,t.html,e,f,t.useCss)||{};r=l.head||r,a=l.body||r,i=l.foot||r}else console.error("Cannot parse html in non browser environment")}var u=t.columns||o5(r,a,i);return{columns:u,head:r,body:a,foot:i}}function o5(n,t,e){var r=n[0]||t[0]||e[0]||[],a=[];return Object.keys(r).filter(function(i){return i!=="_element"}).forEach(function(i){var f=1,l;Array.isArray(r)?l=r[parseInt(i)]:l=r[i],typeof l=="object"&&!Array.isArray(l)&&(f=l?.colSpan||1);for(var u=0;u<f;u++){var h=void 0;Array.isArray(r)?h=a.length:h=i+(u>0?"_".concat(u):"");var p={dataKey:h};a.push(p)}}),a}var il=(function(){function n(t,e,r){this.table=e,this.pageNumber=e.pageNumber,this.settings=e.settings,this.cursor=r,this.doc=t.getDocument()}return n})(),s5=(function(n){oh(t,n);function t(e,r,a,i,f,l){var u=n.call(this,e,r,l)||this;return u.cell=a,u.row=i,u.column=f,u.section=i.section,u}return t})(il),l5=(function(){function n(t,e){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return n.prototype.getHeadHeight=function(t){return this.head.reduce(function(e,r){return e+r.getMaxCellHeight(t)},0)},n.prototype.getFootHeight=function(t){return this.foot.reduce(function(e,r){return e+r.getMaxCellHeight(t)},0)},n.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},n.prototype.callCellHooks=function(t,e,r,a,i,f){for(var l=0,u=e;l<u.length;l++){var h=u[l],p=new s5(t,this,r,a,i,f),w=h(p)===!1;if(r.text=Array.isArray(r.text)?r.text:[r.text],w)return!1}return!0},n.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var r=0,a=this.hooks.didDrawPage;r<a.length;r++){var i=a[r];i(new il(t,this,e))}},n.prototype.callWillDrawPageHooks=function(t,e){for(var r=0,a=this.hooks.willDrawPage;r<a.length;r++){var i=a[r];i(new il(t,this,e))}},n.prototype.getWidth=function(t){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var e=this.columns.reduce(function(a,i){return a+i.wrappedWidth},0);return e}else{var r=this.settings.margin;return t-r.left-r.right}},n})(),ph=(function(){function n(t,e,r,a,i){i===void 0&&(i=!1),this.height=0,this.raw=t,t instanceof sh&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=r,this.cells=a,this.spansMultiplePages=i}return n.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce(function(r,a){var i;return Math.max(r,((i=e.cells[a.index])===null||i===void 0?void 0:i.height)||0)},0)},n.prototype.hasRowSpan=function(t){var e=this;return t.filter(function(r){var a=e.cells[r.index];return a?a.rowSpan>1:!1}).length>0},n.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},n.prototype.getMinimumRowHeight=function(t,e){var r=this;return t.reduce(function(a,i){var f=r.cells[i.index];if(!f)return 0;var l=e.getLineHeight(f.styles.fontSize),u=f.padding("vertical"),h=u+l;return h>a?h:a},0)},n})(),gh=(function(){function n(t,e,r){var a;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=r,this.raw=t;var i=t;t!=null&&typeof t=="object"&&!Array.isArray(t)?(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,i=(a=t.content)!==null&&a!==void 0?a:t,t._element&&(this.raw=t._element)):(this.rowSpan=1,this.colSpan=1);var f=i!=null?""+i:"",l=/\r\n|\r|\n/g;this.text=f.split(l)}return n.prototype.getTextPos=function(){var t;if(this.styles.valign==="top")t=this.y+this.padding("top");else if(this.styles.valign==="bottom")t=this.y+this.height-this.padding("bottom");else{var e=this.height-this.padding("vertical");t=this.y+e/2+this.padding("top")}var r;if(this.styles.halign==="right")r=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var a=this.width-this.padding("horizontal");r=this.x+a/2+this.padding("left")}else r=this.x+this.padding("left");return{x:r,y:t}},n.prototype.getContentHeight=function(t,e){e===void 0&&(e=1.15);var r=Array.isArray(this.text)?this.text.length:1,a=this.styles.fontSize/t*e,i=r*a+this.padding("vertical");return Math.max(i,this.styles.minCellHeight)},n.prototype.padding=function(t){var e=zo(this.styles.cellPadding,0);return t==="vertical"?e.top+e.bottom:t==="horizontal"?e.left+e.right:e[t]},n})(),u5=(function(){function n(t,e,r){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=r}return n.prototype.getMaxCustomCellWidth=function(t){for(var e=0,r=0,a=t.allRows();r<a.length;r++){var i=a[r],f=i.cells[this.index];f&&typeof f.styles.cellWidth=="number"&&(e=Math.max(e,f.styles.cellWidth))}return e},n})();function f5(n,t){h5(n,t);var e=[],r=0;t.columns.forEach(function(i){var f=i.getMaxCustomCellWidth(t);f?i.width=f:(i.width=i.wrappedWidth,e.push(i)),r+=i.width});var a=t.getWidth(n.pageSize().width)-r;a&&(a=al(e,a,function(i){return Math.max(i.minReadableWidth,i.minWidth)})),a&&(a=al(e,a,function(i){return i.minWidth})),a=Math.abs(a),!t.settings.horizontalPageBreak&&a>.1/n.scaleFactor()&&(a=a<1?a:Math.round(a),console.log("Of the table content, ".concat(a," units width could not fit page"))),d5(t),p5(t,n),c5(t)}function h5(n,t){var e=n.scaleFactor(),r=t.settings.horizontalPageBreak,a=fh(n,t);t.allRows().forEach(function(i){for(var f=0,l=t.columns;f<l.length;f++){var u=l[f],h=i.cells[u.index];if(h){var p=t.hooks.didParseCell;t.callCellHooks(n,p,h,i,u,null);var w=h.padding("horizontal");h.contentWidth=Mo(h.text,h.styles,n)+w;var x=Mo(h.text.join(" ").split(/[^\S\u00A0]+/),h.styles,n);if(h.minReadableWidth=x+h.padding("horizontal"),typeof h.styles.cellWidth=="number")h.minWidth=h.styles.cellWidth,h.wrappedWidth=h.styles.cellWidth;else if(h.styles.cellWidth==="wrap"||r===!0)h.contentWidth>a?(h.minWidth=a,h.wrappedWidth=a):(h.minWidth=h.contentWidth,h.wrappedWidth=h.contentWidth);else{var g=10/e;h.minWidth=h.styles.minCellWidth||g,h.wrappedWidth=h.contentWidth,h.minWidth>h.wrappedWidth&&(h.wrappedWidth=h.minWidth)}}}}),t.allRows().forEach(function(i){for(var f=0,l=t.columns;f<l.length;f++){var u=l[f],h=i.cells[u.index];if(h&&h.colSpan===1)u.wrappedWidth=Math.max(u.wrappedWidth,h.wrappedWidth),u.minWidth=Math.max(u.minWidth,h.minWidth),u.minReadableWidth=Math.max(u.minReadableWidth,h.minReadableWidth);else{var p=t.styles.columnStyles[u.dataKey]||t.styles.columnStyles[u.index]||{},w=p.cellWidth||p.minCellWidth;w&&typeof w=="number"&&(u.minWidth=w,u.wrappedWidth=w)}h&&(h.colSpan>1&&!u.minWidth&&(u.minWidth=h.minWidth),h.colSpan>1&&!u.wrappedWidth&&(u.wrappedWidth=h.minWidth))}})}function al(n,t,e){for(var r=t,a=n.reduce(function(g,P){return g+P.wrappedWidth},0),i=0;i<n.length;i++){var f=n[i],l=f.wrappedWidth/a,u=r*l,h=f.width+u,p=e(f),w=h<p?p:h;t-=w-f.width,f.width=w}if(t=Math.round(t*1e10)/1e10,t){var x=n.filter(function(g){return t<0?g.width>e(g):!0});x.length&&(t=al(x,t,e))}return t}function c5(n){for(var t={},e=1,r=n.allRows(),a=0;a<r.length;a++)for(var i=r[a],f=0,l=n.columns;f<l.length;f++){var u=l[f],h=t[u.index];if(e>1)e--,delete i.cells[u.index];else if(h)h.cell.height+=i.height,e=h.cell.colSpan,delete i.cells[u.index],h.left--,h.left<=1&&delete t[u.index];else{var p=i.cells[u.index];if(!p)continue;if(p.height=i.height,p.rowSpan>1){var w=r.length-a,x=p.rowSpan>w?w:p.rowSpan;t[u.index]={cell:p,left:x,row:i}}}}}function d5(n){for(var t=n.allRows(),e=0;e<t.length;e++)for(var r=t[e],a=null,i=0,f=0,l=0;l<n.columns.length;l++){var u=n.columns[l];if(f-=1,f>1&&n.columns[l+1])i+=u.width,delete r.cells[u.index];else if(a){var h=a;delete r.cells[u.index],a=null,h.width=u.width+i}else{var h=r.cells[u.index];if(!h)continue;if(f=h.colSpan,i=0,h.colSpan>1){a=h,i+=u.width;continue}h.width=u.width+i}}}function p5(n,t){for(var e={count:0,height:0},r=0,a=n.allRows();r<a.length;r++){for(var i=a[r],f=0,l=n.columns;f<l.length;f++){var u=l[f],h=i.cells[u.index];if(h){t.applyStyles(h.styles,!0);var p=h.width-h.padding("horizontal");if(h.styles.overflow==="linebreak")h.text=t.splitTextToSize(h.text,p+1/t.scaleFactor(),{fontSize:h.styles.fontSize});else if(h.styles.overflow==="ellipsize")h.text=lf(h.text,p,h.styles,t,"...");else if(h.styles.overflow==="hidden")h.text=lf(h.text,p,h.styles,t,"");else if(typeof h.styles.overflow=="function"){var w=h.styles.overflow(h.text,p);typeof w=="string"?h.text=[w]:h.text=w}h.contentHeight=h.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var x=h.contentHeight/h.rowSpan;h.rowSpan>1&&e.count*e.height<x*h.rowSpan?e={height:x,count:h.rowSpan}:e&&e.count>0&&e.height>x&&(x=e.height),x>i.height&&(i.height=x)}}e.count--}}function lf(n,t,e,r,a){return n.map(function(i){return g5(i,t,e,r,a)})}function g5(n,t,e,r,a){var i=1e4*r.scaleFactor();if(t=Math.ceil(t*i)/i,t>=Mo(n,e,r))return n;for(;t<Mo(n+a,e,r)&&!(n.length<=1);)n=n.substring(0,n.length-1);return n.trim()+a}function vh(n,t){var e=new Qi(n),r=v5(t,e.scaleFactor()),a=new l5(t,r);return f5(e,a),e.applyStyles(e.userStyles),a}function v5(n,t){var e=n.content,r=b5(e.columns);if(e.head.length===0){var a=uf(r,"head");a&&e.head.push(a)}if(e.foot.length===0){var a=uf(r,"foot");a&&e.foot.push(a)}var i=n.settings.theme,f=n.styles;return{columns:r,head:Hs("head",e.head,r,f,i,t),body:Hs("body",e.body,r,f,i,t),foot:Hs("foot",e.foot,r,f,i,t)}}function Hs(n,t,e,r,a,i){var f={},l=t.map(function(u,h){for(var p=0,w={},x=0,g=0,P=0,C=e;P<C.length;P++){var B=C[P];if(f[B.index]==null||f[B.index].left===0)if(g===0){var S=void 0;Array.isArray(u)?S=u[B.index-x-p]:S=u[B.dataKey];var G={};typeof S=="object"&&!Array.isArray(S)&&(G=S?.styles||{});var V=w5(n,B,h,a,r,i,G),T=new gh(S,V,n);w[B.dataKey]=T,w[B.index]=T,g=T.colSpan-1,f[B.index]={left:T.rowSpan-1,times:g}}else g--,x++;else f[B.index].left--,g=f[B.index].times,p++}return new ph(u,h,n,w)});return l}function uf(n,t){var e={};return n.forEach(function(r){if(r.raw!=null){var a=m5(t,r.raw);a!=null&&(e[r.dataKey]=a)}}),Object.keys(e).length>0?e:null}function m5(n,t){if(n==="head"){if(typeof t=="object")return t.header||null;if(typeof t=="string"||typeof t=="number")return t}else if(n==="foot"&&typeof t=="object")return t.footer;return null}function b5(n){return n.map(function(t,e){var r,a;return typeof t=="object"?a=(r=t.dataKey)!==null&&r!==void 0?r:e:a=e,new u5(a,t,e)})}function w5(n,t,e,r,a,i,f){var l=J2(r),u;n==="head"?u=a.headStyles:n==="body"?u=a.bodyStyles:n==="foot"&&(u=a.footStyles);var h=Dr({},l.table,l[n],a.styles,u),p=a.columnStyles[t.dataKey]||a.columnStyles[t.index]||{},w=n==="body"?p:{},x=n==="body"&&e%2===0?Dr({},l.alternateRow,a.alternateRowStyles):{},g=Y2(i),P=Dr({},g,h,x,w);return Dr(P,f)}function y5(n,t,e){var r;e===void 0&&(e={});var a=fh(n,t),i=new Map,f=[],l=[],u=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?u=t.settings.horizontalPageBreakRepeat:(typeof t.settings.horizontalPageBreakRepeat=="string"||typeof t.settings.horizontalPageBreakRepeat=="number")&&(u=[t.settings.horizontalPageBreakRepeat]),u.forEach(function(x){var g=t.columns.find(function(P){return P.dataKey===x||P.index===x});g&&!i.has(g.index)&&(i.set(g.index,!0),f.push(g.index),l.push(t.columns[g.index]),a-=g.wrappedWidth)});for(var h=!0,p=(r=e?.start)!==null&&r!==void 0?r:0;p<t.columns.length;){if(i.has(p)){p++;continue}var w=t.columns[p].wrappedWidth;if(h||a>=w)h=!1,f.push(p),l.push(t.columns[p]),a-=w;else break;p++}return{colIndexes:f,columns:l,lastIndex:p-1}}function x5(n,t){for(var e=[],r=0;r<t.columns.length;r++){var a=y5(n,t,{start:r});a.columns.length&&(e.push(a),r=a.lastIndex)}return e}function mh(n,t){var e=t.settings,r=e.startY,a=e.margin,i={x:a.left,y:r},f=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),l=r+a.bottom+f;if(e.pageBreak==="avoid"){var u=t.body,h=u.reduce(function(x,g){return x+g.height},0);l+=h}var p=new Qi(n);(e.pageBreak==="always"||e.startY!=null&&l>p.pageSize().height)&&(wh(p),i.y=a.top),t.callWillDrawPageHooks(p,i);var w=Dr({},i);t.startPageNumber=p.pageNumber(),e.horizontalPageBreak?A5(p,t,w,i):(p.applyStyles(p.userStyles),(e.showHead==="firstPage"||e.showHead==="everyPage")&&t.head.forEach(function(x){return Rr(p,t,x,i,t.columns)}),p.applyStyles(p.userStyles),t.body.forEach(function(x,g){var P=g===t.body.length-1;To(p,t,x,P,w,i,t.columns)}),p.applyStyles(p.userStyles),(e.showFoot==="lastPage"||e.showFoot==="everyPage")&&t.foot.forEach(function(x){return Rr(p,t,x,i,t.columns)})),lh(p,t,w,i),t.callEndPageHooks(p,i),t.finalY=i.y,n.lastAutoTable=t,p.applyStyles(p.userStyles)}function A5(n,t,e,r){var a=x5(n,t),i=t.settings;if(i.horizontalPageBreakBehaviour==="afterAllRows")a.forEach(function(h,p){n.applyStyles(n.userStyles),p>0?Oa(n,t,e,r,h.columns,!0):ff(n,t,r,h.columns),_5(n,t,e,r,h.columns),Ws(n,t,r,h.columns)});else for(var f=-1,l=a[0],u=function(){var h=f;if(l){n.applyStyles(n.userStyles);var p=l.columns;f>=0?Oa(n,t,e,r,p,!0):ff(n,t,r,p),h=hf(n,t,f+1,r,p),Ws(n,t,r,p)}var w=h-f;a.slice(1).forEach(function(x){n.applyStyles(n.userStyles),Oa(n,t,e,r,x.columns,!0),hf(n,t,f+1,r,x.columns,w),Ws(n,t,r,x.columns)}),f=h};f<t.body.length-1;)u()}function ff(n,t,e,r){var a=t.settings;n.applyStyles(n.userStyles),(a.showHead==="firstPage"||a.showHead==="everyPage")&&t.head.forEach(function(i){return Rr(n,t,i,e,r)})}function _5(n,t,e,r,a){n.applyStyles(n.userStyles),t.body.forEach(function(i,f){var l=f===t.body.length-1;To(n,t,i,l,e,r,a)})}function hf(n,t,e,r,a,i){n.applyStyles(n.userStyles),i=i??t.body.length;var f=Math.min(e+i,t.body.length),l=-1;return t.body.slice(e,f).forEach(function(u,h){var p=e+h===t.body.length-1,w=bh(n,t,p,r);u.canEntireRowFit(w,a)&&(Rr(n,t,u,r,a),l=e+h)}),l}function Ws(n,t,e,r){var a=t.settings;n.applyStyles(n.userStyles),(a.showFoot==="lastPage"||a.showFoot==="everyPage")&&t.foot.forEach(function(i){return Rr(n,t,i,e,r)})}function N5(n,t,e){var r=e.getLineHeight(n.styles.fontSize),a=n.padding("vertical"),i=Math.floor((t-a)/r);return Math.max(0,i)}function L5(n,t,e,r){var a={};n.spansMultiplePages=!0,n.height=0;for(var i=0,f=0,l=e.columns;f<l.length;f++){var u=l[f],h=n.cells[u.index];if(h){Array.isArray(h.text)||(h.text=[h.text]);var p=new gh(h.raw,h.styles,h.section);p=Dr(p,h),p.text=[];var w=N5(h,t,r);h.text.length>w&&(p.text=h.text.splice(w,h.text.length));var x=r.scaleFactor(),g=r.getLineHeightFactor();h.contentHeight=h.getContentHeight(x,g),h.contentHeight>=t&&(h.contentHeight=t,p.styles.minCellHeight-=t),h.contentHeight>n.height&&(n.height=h.contentHeight),p.contentHeight=p.getContentHeight(x,g),p.contentHeight>i&&(i=p.contentHeight),a[u.index]=p}}var P=new ph(n.raw,-1,n.section,a,!0);P.height=i;for(var C=0,B=e.columns;C<B.length;C++){var u=B[C],p=P.cells[u.index];p&&(p.height=P.height);var h=n.cells[u.index];h&&(h.height=n.height)}return P}function S5(n,t,e,r){var a=n.pageSize().height,i=r.settings.margin,f=i.top+i.bottom,l=a-f;t.section==="body"&&(l-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var u=t.getMinimumRowHeight(r.columns,n),h=u<e;if(u>l)return console.log("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!h)return!1;var p=t.hasRowSpan(r.columns),w=t.getMaxCellHeight(r.columns)>l;return w?(p&&console.log("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(p||r.settings.rowPageBreak==="avoid")}function To(n,t,e,r,a,i,f){var l=bh(n,t,r,i);if(e.canEntireRowFit(l,f))Rr(n,t,e,i,f);else if(S5(n,e,l,t)){var u=L5(e,l,t,n);Rr(n,t,e,i,f),Oa(n,t,a,i,f),To(n,t,u,r,a,i,f)}else Oa(n,t,a,i,f),To(n,t,e,r,a,i,f)}function Rr(n,t,e,r,a){r.x=t.settings.margin.left;for(var i=0,f=a;i<f.length;i++){var l=f[i],u=e.cells[l.index];if(!u){r.x+=l.width;continue}n.applyStyles(u.styles),u.x=r.x,u.y=r.y;var h=t.callCellHooks(n,t.hooks.willDrawCell,u,e,l,r);if(h===!1){r.x+=l.width;continue}k5(n,u,r);var p=u.getTextPos();ah(u.text,p.x,p.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},n.getDocument()),t.callCellHooks(n,t.hooks.didDrawCell,u,e,l,r),r.x+=l.width}r.y+=e.height}function k5(n,t,e){var r=t.styles;if(n.getDocument().setFillColor(n.getDocument().getFillColor()),typeof r.lineWidth=="number"){var a=uh(r.lineWidth,r.fillColor);a&&n.rect(t.x,e.y,t.width,t.height,a)}else typeof r.lineWidth=="object"&&(r.fillColor&&n.rect(t.x,e.y,t.width,t.height,"F"),P5(n,t,e,r.lineWidth))}function P5(n,t,e,r){var a,i,f,l;r.top&&(a=e.x,i=e.y,f=e.x+t.width,l=e.y,r.right&&(f+=.5*r.right),r.left&&(a-=.5*r.left),u(r.top,a,i,f,l)),r.bottom&&(a=e.x,i=e.y+t.height,f=e.x+t.width,l=e.y+t.height,r.right&&(f+=.5*r.right),r.left&&(a-=.5*r.left),u(r.bottom,a,i,f,l)),r.left&&(a=e.x,i=e.y,f=e.x,l=e.y+t.height,r.top&&(i-=.5*r.top),r.bottom&&(l+=.5*r.bottom),u(r.left,a,i,f,l)),r.right&&(a=e.x+t.width,i=e.y,f=e.x+t.width,l=e.y+t.height,r.top&&(i-=.5*r.top),r.bottom&&(l+=.5*r.bottom),u(r.right,a,i,f,l));function u(h,p,w,x,g){n.getDocument().setLineWidth(h),n.getDocument().line(p,w,x,g,"S")}}function bh(n,t,e,r){var a=t.settings.margin.bottom,i=t.settings.showFoot;return(i==="everyPage"||i==="lastPage"&&e)&&(a+=t.getFootHeight(t.columns)),n.pageSize().height-r.y-a}function Oa(n,t,e,r,a,i){a===void 0&&(a=[]),i===void 0&&(i=!1),n.applyStyles(n.userStyles),t.settings.showFoot==="everyPage"&&!i&&t.foot.forEach(function(l){return Rr(n,t,l,r,a)}),t.callEndPageHooks(n,r);var f=t.settings.margin;lh(n,t,e,r),wh(n),t.pageNumber++,r.x=f.left,r.y=f.top,e.y=f.top,t.callWillDrawPageHooks(n,r),t.settings.showHead==="everyPage"&&(t.head.forEach(function(l){return Rr(n,t,l,r,a)}),n.applyStyles(n.userStyles))}function wh(n){var t=n.pageNumber();n.setPage(t+1);var e=n.pageNumber();return e===t?(n.addPage(),!0):!1}function C5(n){n.API.autoTable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[0],a=dh(this,r),i=vh(this,a);return mh(this,i),this},n.API.lastAutoTable=!1,n.API.autoTableText=function(t,e,r,a){ah(t,e,r,a,this)},n.API.autoTableSetDefaults=function(t){return Qi.setDefaults(t,this),this},n.autoTableSetDefaults=function(t,e){Qi.setDefaults(t,e)},n.API.autoTableHtmlToJson=function(t,e){var r;if(e===void 0&&(e=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=new Qi(this),i=ch(a,t,window,e,!1),f=i.head,l=i.body,u=((r=f[0])===null||r===void 0?void 0:r.map(function(h){return h.content}))||[];return{columns:u,rows:l,data:l}}}var Gs;function F5(n,t){var e=dh(n,t),r=vh(n,e);mh(n,r)}try{if(typeof window<"u"&&window){var cf=window,df=cf.jsPDF||((Gs=cf.jspdf)===null||Gs===void 0?void 0:Gs.jsPDF);df&&C5(df)}}catch(n){console.error("Could not apply autoTable plugin",n)}exports.E=Rt;exports._typeof=ye;exports.autoTable=F5;
|