node-red-contrib-knx-ultimate 6.3.0 → 6.3.2

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.
@@ -1,56 +1,57 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./chunk-index.es.js","./app.js","./app.css"])))=>i.map(i=>d[i]);
2
- import{_ as gs}from"./app.js";function fe(n){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(n)}var tr=Uint8Array,mr=Uint16Array,Ps=Int32Array,go=new tr([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]),mo=new tr([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]),ms=new tr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Au=function(n,e){for(var r=new mr(31),a=0;a<31;++a)r[a]=e+=1<<n[a-1];for(var u=new Ps(r[30]),a=1;a<30;++a)for(var o=r[a];o<r[a+1];++o)u[o]=o-r[a]<<5|a;return{b:r,r:u}},xu=Au(go,2),Su=xu.b,vs=xu.r;Su[28]=258,vs[258]=28;var _u=Au(mo,0),Pl=_u.b,nu=_u.r,bs=new mr(32768);for(var we=0;we<32768;++we){var kn=(we&43690)>>1|(we&21845)<<1;kn=(kn&52428)>>2|(kn&13107)<<2,kn=(kn&61680)>>4|(kn&3855)<<4,bs[we]=((kn&65280)>>8|(kn&255)<<8)>>1}var Qr=(function(n,e,r){for(var a=n.length,u=0,o=new mr(e);u<a;++u)n[u]&&++o[n[u]-1];var c=new mr(e);for(u=1;u<e;++u)c[u]=c[u-1]+o[u-1]<<1;var h;if(r){h=new mr(1<<e);var f=15-e;for(u=0;u<a;++u)if(n[u])for(var g=u<<4|n[u],y=e-n[u],w=c[n[u]-1]++<<y,S=w|(1<<y)-1;w<=S;++w)h[bs[w]>>f]=g}else for(h=new mr(a),u=0;u<a;++u)n[u]&&(h[u]=bs[c[n[u]-1]++]>>15-n[u]);return h}),On=new tr(288);for(var we=0;we<144;++we)On[we]=8;for(var we=144;we<256;++we)On[we]=9;for(var we=256;we<280;++we)On[we]=7;for(var we=280;we<288;++we)On[we]=8;var va=new tr(32);for(var we=0;we<32;++we)va[we]=5;var kl=Qr(On,9,0),Fl=Qr(On,9,1),Il=Qr(va,5,0),Cl=Qr(va,5,1),os=function(n){for(var e=n[0],r=1;r<n.length;++r)n[r]>e&&(e=n[r]);return e},Er=function(n,e,r){var a=e/8|0;return(n[a]|n[a+1]<<8)>>(e&7)&r},ss=function(n,e){var r=e/8|0;return(n[r]|n[r+1]<<8|n[r+2]<<16)>>(e&7)},ks=function(n){return(n+7)/8|0},Pu=function(n,e,r){return(r==null||r>n.length)&&(r=n.length),new tr(n.subarray(e,r))},jl=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Dr=function(n,e,r){var a=new Error(e||jl[n]);if(a.code=n,Error.captureStackTrace&&Error.captureStackTrace(a,Dr),!r)throw a;return a},Ol=function(n,e,r,a){var u=n.length,o=0;if(!u||e.f&&!e.l)return r||new tr(0);var c=!r,h=c||e.i!=2,f=e.i;c&&(r=new tr(u*3));var g=function(Nt){var Ft=r.length;if(Nt>Ft){var _t=new tr(Math.max(Ft*2,Nt));_t.set(r),r=_t}},y=e.f||0,w=e.p||0,S=e.b||0,p=e.l,O=e.d,F=e.m,q=e.n,_=u*8;do{if(!p){y=Er(n,w,1);var B=Er(n,w+1,3);if(w+=3,B)if(B==1)p=Fl,O=Cl,F=9,q=5;else if(B==2){var wt=Er(n,w,31)+257,tt=Er(n,w+10,15)+4,z=wt+Er(n,w+5,31)+1;w+=14;for(var nt=new tr(z),dt=new tr(19),P=0;P<tt;++P)dt[ms[P]]=Er(n,w+P*3,7);w+=tt*3;for(var k=os(dt),W=(1<<k)-1,D=Qr(dt,k,1),P=0;P<z;){var st=D[Er(n,w,W)];w+=st&15;var Y=st>>4;if(Y<16)nt[P++]=Y;else{var it=0,ct=0;for(Y==16?(ct=3+Er(n,w,3),w+=2,it=nt[P-1]):Y==17?(ct=3+Er(n,w,7),w+=3):Y==18&&(ct=11+Er(n,w,127),w+=7);ct--;)nt[P++]=it}}var $=nt.subarray(0,wt),ht=nt.subarray(wt);F=os($),q=os(ht),p=Qr($,F,1),O=Qr(ht,q,1)}else Dr(1);else{var Y=ks(w)+4,ot=n[Y-4]|n[Y-3]<<8,lt=Y+ot;if(lt>u){f&&Dr(0);break}h&&g(S+ot),r.set(n.subarray(Y,lt),S),e.b=S+=ot,e.p=w=lt*8,e.f=y;continue}if(w>_){f&&Dr(0);break}}h&&g(S+131072);for(var pt=(1<<F)-1,It=(1<<q)-1,N=w;;N=w){var it=p[ss(n,w)&pt],C=it>>4;if(w+=it&15,w>_){f&&Dr(0);break}if(it||Dr(2),C<256)r[S++]=C;else if(C==256){N=w,p=null;break}else{var M=C-254;if(C>264){var P=C-257,R=go[P];M=Er(n,w,(1<<R)-1)+Su[P],w+=R}var J=O[ss(n,w)&It],Q=J>>4;J||Dr(3),w+=J&15;var ht=Pl[Q];if(Q>3){var R=mo[Q];ht+=ss(n,w)&(1<<R)-1,w+=R}if(w>_){f&&Dr(0);break}h&&g(S+131072);var et=S+M;if(S<ht){var rt=o-ht,At=Math.min(ht,et);for(rt+S<0&&Dr(3);S<At;++S)r[S]=a[rt+S]}for(;S<et;++S)r[S]=r[S-ht]}}e.l=p,e.p=N,e.b=S,e.f=y,p&&(y=1,e.m=F,e.d=O,e.n=q)}while(!y);return S!=r.length&&c?Pu(r,0,S):r.subarray(0,S)},dn=function(n,e,r){r<<=e&7;var a=e/8|0;n[a]|=r,n[a+1]|=r>>8},ca=function(n,e,r){r<<=e&7;var a=e/8|0;n[a]|=r,n[a+1]|=r>>8,n[a+2]|=r>>16},us=function(n,e){for(var r=[],a=0;a<n.length;++a)n[a]&&r.push({s:a,f:n[a]});var u=r.length,o=r.slice();if(!u)return{t:Fu,l:0};if(u==1){var c=new tr(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(lt,wt){return lt.f-wt.f}),r.push({s:-1,f:25001});var h=r[0],f=r[1],g=0,y=1,w=2;for(r[0]={s:-1,f:h.f+f.f,l:h,r:f};y!=u-1;)h=r[r[g].f<r[w].f?g++:w++],f=r[g!=y&&r[g].f<r[w].f?g++:w++],r[y++]={s:-1,f:h.f+f.f,l:h,r:f};for(var S=o[0].s,a=1;a<u;++a)o[a].s>S&&(S=o[a].s);var p=new mr(S+1),O=ys(r[y-1],p,0);if(O>e){var a=0,F=0,q=O-e,_=1<<q;for(o.sort(function(wt,tt){return p[tt.s]-p[wt.s]||wt.f-tt.f});a<u;++a){var B=o[a].s;if(p[B]>e)F+=_-(1<<O-p[B]),p[B]=e;else break}for(F>>=q;F>0;){var Y=o[a].s;p[Y]<e?F-=1<<e-p[Y]++-1:++a}for(;a>=0&&F;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++F)}O=e}return{t:new tr(p),l:O}},ys=function(n,e,r){return n.s==-1?Math.max(ys(n.l,e,r+1),ys(n.r,e,r+1)):e[n.s]=r},iu=function(n){for(var e=n.length;e&&!n[--e];);for(var r=new mr(++e),a=0,u=n[0],o=1,c=function(f){r[a++]=f},h=1;h<=e;++h)if(n[h]==u&&h!=e)++o;else{if(!u&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(c(u),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0)}for(;o--;)c(u);o=1,u=n[h]}return{c:r.subarray(0,a),n:e}},ha=function(n,e){for(var r=0,a=0;a<e.length;++a)r+=n[a]*e[a];return r},ku=function(n,e,r){var a=r.length,u=ks(e+2);n[u]=a&255,n[u+1]=a>>8,n[u+2]=n[u]^255,n[u+3]=n[u+1]^255;for(var o=0;o<a;++o)n[u+o+4]=r[o];return(u+4+a)*8},au=function(n,e,r,a,u,o,c,h,f,g,y){dn(e,y++,r),++u[256];for(var w=us(u,15),S=w.t,p=w.l,O=us(o,15),F=O.t,q=O.l,_=iu(S),B=_.c,Y=_.n,ot=iu(F),lt=ot.c,wt=ot.n,tt=new mr(19),z=0;z<B.length;++z)++tt[B[z]&31];for(var z=0;z<lt.length;++z)++tt[lt[z]&31];for(var nt=us(tt,7),dt=nt.t,P=nt.l,k=19;k>4&&!dt[ms[k-1]];--k);var W=g+5<<3,D=ha(u,On)+ha(o,va)+c,st=ha(u,S)+ha(o,F)+c+14+3*k+ha(tt,dt)+2*tt[16]+3*tt[17]+7*tt[18];if(f>=0&&W<=D&&W<=st)return ku(e,y,n.subarray(f,f+g));var it,ct,$,ht;if(dn(e,y,1+(st<D)),y+=2,st<D){it=Qr(S,p,0),ct=S,$=Qr(F,q,0),ht=F;var pt=Qr(dt,P,0);dn(e,y,Y-257),dn(e,y+5,wt-1),dn(e,y+10,k-4),y+=14;for(var z=0;z<k;++z)dn(e,y+3*z,dt[ms[z]]);y+=3*k;for(var It=[B,lt],N=0;N<2;++N)for(var C=It[N],z=0;z<C.length;++z){var M=C[z]&31;dn(e,y,pt[M]),y+=dt[M],M>15&&(dn(e,y,C[z]>>5&127),y+=C[z]>>12)}}else it=kl,ct=On,$=Il,ht=va;for(var z=0;z<h;++z){var R=a[z];if(R>255){var M=R>>18&31;ca(e,y,it[M+257]),y+=ct[M+257],M>7&&(dn(e,y,R>>23&31),y+=go[M]);var J=R&31;ca(e,y,$[J]),y+=ht[J],J>3&&(ca(e,y,R>>5&8191),y+=mo[J])}else ca(e,y,it[R]),y+=ct[R]}return ca(e,y,it[256]),y+ct[256]},Bl=new Ps([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Fu=new tr(0),Ml=function(n,e,r,a,u,o){var c=o.z||n.length,h=new tr(a+c+5*(1+Math.ceil(c/7e3))+u),f=h.subarray(a,h.length-u),g=o.l,y=(o.r||0)&7;if(e){y&&(f[0]=o.r>>3);for(var w=Bl[e-1],S=w>>13,p=w&8191,O=(1<<r)-1,F=o.p||new mr(32768),q=o.h||new mr(O+1),_=Math.ceil(r/3),B=2*_,Y=function(Ut){return(n[Ut]^n[Ut+1]<<_^n[Ut+2]<<B)&O},ot=new Ps(25e3),lt=new mr(288),wt=new mr(32),tt=0,z=0,nt=o.i||0,dt=0,P=o.w||0,k=0;nt+2<c;++nt){var W=Y(nt),D=nt&32767,st=q[W];if(F[D]=st,q[W]=D,P<=nt){var it=c-nt;if((tt>7e3||dt>24576)&&(it>423||!g)){y=au(n,f,0,ot,lt,wt,z,dt,k,nt-k,y),dt=tt=z=0,k=nt;for(var ct=0;ct<286;++ct)lt[ct]=0;for(var ct=0;ct<30;++ct)wt[ct]=0}var $=2,ht=0,pt=p,It=D-st&32767;if(it>2&&W==Y(nt-It))for(var N=Math.min(S,it)-1,C=Math.min(32767,nt),M=Math.min(258,it);It<=C&&--pt&&D!=st;){if(n[nt+$]==n[nt+$-It]){for(var R=0;R<M&&n[nt+R]==n[nt+R-It];++R);if(R>$){if($=R,ht=It,R>N)break;for(var J=Math.min(It,R-2),Q=0,ct=0;ct<J;++ct){var et=nt-It+ct&32767,rt=F[et],At=et-rt&32767;At>Q&&(Q=At,st=et)}}}D=st,st=F[D],It+=D-st&32767}if(ht){ot[dt++]=268435456|vs[$]<<18|nu[ht];var Nt=vs[$]&31,Ft=nu[ht]&31;z+=go[Nt]+mo[Ft],++lt[257+Nt],++wt[Ft],P=nt+$,++tt}else ot[dt++]=n[nt],++lt[n[nt]]}}for(nt=Math.max(nt,P);nt<c;++nt)ot[dt++]=n[nt],++lt[n[nt]];y=au(n,f,g,ot,lt,wt,z,dt,k,nt-k,y),g||(o.r=y&7|f[y/8|0]<<3,y-=7,o.h=q,o.p=F,o.i=nt,o.w=P)}else{for(var nt=o.w||0;nt<c+g;nt+=65535){var _t=nt+65535;_t>=c&&(f[y/8|0]=g,_t=c),y=ku(f,y+1,n.subarray(nt,_t))}o.i=c}return Pu(h,0,a+ks(y)+u)},Iu=function(){var n=1,e=0;return{p:function(r){for(var a=n,u=e,o=r.length|0,c=0;c!=o;){for(var h=Math.min(c+2655,o);c<h;++c)u+=a+=r[c];a=(a&65535)+15*(a>>16),u=(u&65535)+15*(u>>16)}n=a,e=u},d:function(){return n%=65521,e%=65521,(n&255)<<24|(n&65280)<<8|(e&255)<<8|e>>8}}},El=function(n,e,r,a,u){if(!u&&(u={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),c=new tr(o.length+n.length);c.set(o),c.set(n,o.length),n=c,u.w=o.length}return Ml(n,e.level==null?6:e.level,e.mem==null?u.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,r,a,u)},Cu=function(n,e,r){for(;r;++e)n[e]=r,r>>>=8},ql=function(n,e){var r=e.level,a=r==0?0:r<6?1:r==9?3:2;if(n[0]=120,n[1]=a<<6|(e.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,e.dictionary){var u=Iu();u.p(e.dictionary),Cu(n,2,u.d())}},Dl=function(n,e){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&Dr(6,"invalid zlib data"),(n[1]>>5&1)==1&&Dr(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function ws(n,e){e||(e={});var r=Iu();r.p(n);var a=El(n,e,e.dictionary?6:2,4);return ql(a,e),Cu(a,a.length-4,r.d()),a}function Tl(n,e){return Ol(n.subarray(Dl(n),-4),{i:2},e,e)}var Rl=typeof TextDecoder<"u"&&new TextDecoder,zl=0;try{Rl.decode(Fu,{stream:!0}),zl=1}catch{}var Ht=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function ls(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var ve={log:ls,warn:function(n){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):ls.call(null,arguments))},error:function(n){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):ls(n))}};function cs(n,e,r){var a=new XMLHttpRequest;a.open("GET",n),a.responseType="blob",a.onload=function(){Yn(a.response,e,r)},a.onerror=function(){ve.error("could not download file")},a.send()}function ou(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function lo(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var fa,Ls,Yn=Ht.saveAs||((typeof window>"u"?"undefined":fe(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,r){var a=Ht.URL||Ht.webkitURL,u=document.createElement("a");e=e||n.name||"download",u.download=e,u.rel="noopener",typeof n=="string"?(u.href=n,u.origin!==location.origin?ou(u.href)?cs(n,e,r):lo(u,u.target="_blank"):lo(u)):(u.href=a.createObjectURL(n),setTimeout((function(){a.revokeObjectURL(u.href)}),4e4),setTimeout((function(){lo(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(n,e,r){if(e=e||n.name||"download",typeof n=="string")if(ou(n))cs(n,e,r);else{var a=document.createElement("a");a.href=n,a.target="_blank",setTimeout((function(){lo(a)}))}else navigator.msSaveOrOpenBlob((function(u,o){return o===void 0?o={autoBom:!1}:fe(o)!=="object"&&(ve.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u})(n,r),e)}:function(n,e,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof n=="string")return cs(n,e,r);var u=n.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||u&&o)&&(typeof FileReader>"u"?"undefined":fe(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var y=h.result;y=c?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=y:location=y,a=null},h.readAsDataURL(n)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(n);a?a.location=g:location.href=g,a=null,setTimeout((function(){f.revokeObjectURL(g)}),4e4)}});function ju(n){var e;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 r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],a=0;a<r.length;a++){var u=r[a].re,o=r[a].process,c=u.exec(n);c&&(e=o(c),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}function hs(n,e){var r=n[0],a=n[1],u=n[2],o=n[3];r=Ke(r,a,u,o,e[0],7,-680876936),o=Ke(o,r,a,u,e[1],12,-389564586),u=Ke(u,o,r,a,e[2],17,606105819),a=Ke(a,u,o,r,e[3],22,-1044525330),r=Ke(r,a,u,o,e[4],7,-176418897),o=Ke(o,r,a,u,e[5],12,1200080426),u=Ke(u,o,r,a,e[6],17,-1473231341),a=Ke(a,u,o,r,e[7],22,-45705983),r=Ke(r,a,u,o,e[8],7,1770035416),o=Ke(o,r,a,u,e[9],12,-1958414417),u=Ke(u,o,r,a,e[10],17,-42063),a=Ke(a,u,o,r,e[11],22,-1990404162),r=Ke(r,a,u,o,e[12],7,1804603682),o=Ke(o,r,a,u,e[13],12,-40341101),u=Ke(u,o,r,a,e[14],17,-1502002290),r=Ze(r,a=Ke(a,u,o,r,e[15],22,1236535329),u,o,e[1],5,-165796510),o=Ze(o,r,a,u,e[6],9,-1069501632),u=Ze(u,o,r,a,e[11],14,643717713),a=Ze(a,u,o,r,e[0],20,-373897302),r=Ze(r,a,u,o,e[5],5,-701558691),o=Ze(o,r,a,u,e[10],9,38016083),u=Ze(u,o,r,a,e[15],14,-660478335),a=Ze(a,u,o,r,e[4],20,-405537848),r=Ze(r,a,u,o,e[9],5,568446438),o=Ze(o,r,a,u,e[14],9,-1019803690),u=Ze(u,o,r,a,e[3],14,-187363961),a=Ze(a,u,o,r,e[8],20,1163531501),r=Ze(r,a,u,o,e[13],5,-1444681467),o=Ze(o,r,a,u,e[2],9,-51403784),u=Ze(u,o,r,a,e[7],14,1735328473),r=$e(r,a=Ze(a,u,o,r,e[12],20,-1926607734),u,o,e[5],4,-378558),o=$e(o,r,a,u,e[8],11,-2022574463),u=$e(u,o,r,a,e[11],16,1839030562),a=$e(a,u,o,r,e[14],23,-35309556),r=$e(r,a,u,o,e[1],4,-1530992060),o=$e(o,r,a,u,e[4],11,1272893353),u=$e(u,o,r,a,e[7],16,-155497632),a=$e(a,u,o,r,e[10],23,-1094730640),r=$e(r,a,u,o,e[13],4,681279174),o=$e(o,r,a,u,e[0],11,-358537222),u=$e(u,o,r,a,e[3],16,-722521979),a=$e(a,u,o,r,e[6],23,76029189),r=$e(r,a,u,o,e[9],4,-640364487),o=$e(o,r,a,u,e[12],11,-421815835),u=$e(u,o,r,a,e[15],16,530742520),r=Qe(r,a=$e(a,u,o,r,e[2],23,-995338651),u,o,e[0],6,-198630844),o=Qe(o,r,a,u,e[7],10,1126891415),u=Qe(u,o,r,a,e[14],15,-1416354905),a=Qe(a,u,o,r,e[5],21,-57434055),r=Qe(r,a,u,o,e[12],6,1700485571),o=Qe(o,r,a,u,e[3],10,-1894986606),u=Qe(u,o,r,a,e[10],15,-1051523),a=Qe(a,u,o,r,e[1],21,-2054922799),r=Qe(r,a,u,o,e[8],6,1873313359),o=Qe(o,r,a,u,e[15],10,-30611744),u=Qe(u,o,r,a,e[6],15,-1560198380),a=Qe(a,u,o,r,e[13],21,1309151649),r=Qe(r,a,u,o,e[4],6,-145523070),o=Qe(o,r,a,u,e[11],10,-1120210379),u=Qe(u,o,r,a,e[2],15,718787259),a=Qe(a,u,o,r,e[9],21,-343485551),n[0]=Cn(r,n[0]),n[1]=Cn(a,n[1]),n[2]=Cn(u,n[2]),n[3]=Cn(o,n[3])}function vo(n,e,r,a,u,o){return e=Cn(Cn(e,n),Cn(a,o)),Cn(e<<u|e>>>32-u,r)}function Ke(n,e,r,a,u,o,c){return vo(e&r|~e&a,n,e,u,o,c)}function Ze(n,e,r,a,u,o,c){return vo(e&a|r&~a,n,e,u,o,c)}function $e(n,e,r,a,u,o,c){return vo(e^r^a,n,e,u,o,c)}function Qe(n,e,r,a,u,o,c){return vo(r^(e|~a),n,e,u,o,c)}function Ou(n){var e,r=n.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=n.length;e+=64)hs(a,Ul(n.substring(e-64,e)));n=n.substring(e-64);var u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n.length;e++)u[e>>2]|=n.charCodeAt(e)<<(e%4<<3);if(u[e>>2]|=128<<(e%4<<3),e>55)for(hs(a,u),e=0;e<16;e++)u[e]=0;return u[14]=8*r,hs(a,u),a}function Ul(n){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=n.charCodeAt(e)+(n.charCodeAt(e+1)<<8)+(n.charCodeAt(e+2)<<16)+(n.charCodeAt(e+3)<<24);return r}fa=Ht.atob.bind(Ht),Ls=Ht.btoa.bind(Ht);var su="0123456789abcdef".split("");function Hl(n){for(var e="",r=0;r<4;r++)e+=su[n>>8*r+4&15]+su[n>>8*r&15];return e}function Wl(n){return String.fromCharCode((255&n)>>0,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Ns(n){return Ou(n).map(Wl).join("")}var Vl=(function(n){for(var e=0;e<n.length;e++)n[e]=Hl(n[e]);return n.join("")})(Ou("hello"))!="5d41402abc4b2a76b9719d911017c592";function Cn(n,e){if(Vl){var r=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(r>>16)<<16|65535&r}return n+e&4294967295}function As(n,e){var r,a,u,o;if(n!==r){for(var c=(u=n,o=1+(256/n.length>>0),new Array(o+1).join(u)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var y=h[f];g=(g+y+c.charCodeAt(f))%256,h[f]=h[g],h[g]=y}r=n,a=h}else h=a;var w=e.length,S=0,p=0,O="";for(f=0;f<w;f++)p=(p+(y=h[S=(S+1)%256]))%256,h[S]=h[p],h[p]=y,c=h[(h[S]+h[p])%256],O+=String.fromCharCode(e.charCodeAt(f)^c);return O}var uu={print:4,modify:8,copy:16,"annot-forms":32};function ji(n,e,r,a){this.v=1,this.r=2;var u=192;n.forEach((function(h){if(uu.perm!==void 0)throw new Error("Invalid permission: "+h);u+=uu[h]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var o=(e+this.padding).substr(0,32),c=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,c),this.P=-(1+(255^u)),this.encryptionKey=Ns(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=As(this.encryptionKey,this.padding)}function Oi(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var e="",r=n.length,a=0;a<r;a++){var u=n.charCodeAt(a);u<33||u===35||u===37||u===40||u===41||u===47||u===60||u===62||u===91||u===93||u===123||u===125||u>126?e+="#"+("0"+u.toString(16)).slice(-2):e+=n[a]}return e}function lu(n){if(fe(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,a,u){if(u=u||!1,typeof r!="string"||typeof a!="function"||typeof u!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var o=Math.random().toString(35);return e[r][o]=[a,!!u],o},this.unsubscribe=function(r){for(var a in e)if(e[a][r])return delete e[a][r],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var a=Array.prototype.slice.call(arguments,1),u=[];for(var o in e[r]){var c=e[r][o];try{c[0].apply(n,a)}catch(h){Ht.console&&ve.error("jsPDF PubSub Error",h.message,h)}c[1]&&u.push(o)}u.length&&u.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function ba(n){if(!(this instanceof ba))return new ba(n);var e="opacity,stroke-opacity".split(",");for(var r in n)n.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=n[r]);this.id="",this.objectNumber=-1}function Bu(n,e){this.gState=n,this.matrix=e,this.id="",this.objectNumber=-1}function In(n,e,r,a,u){if(!(this instanceof In))return new In(n,e,r,a,u);this.type=n==="axial"?2:3,this.coords=e,this.colors=r,Bu.call(this,a,u)}function Xn(n,e,r,a,u){if(!(this instanceof Xn))return new Xn(n,e,r,a,u);this.boundingBox=n,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,Bu.call(this,a,u)}function Rt(n){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],u=arguments[2],o=arguments[3],c=[],h=1,f=16,g="S",y=null;fe(n=n||{})==="object"&&(r=n.orientation,a=n.unit||a,u=n.format||u,o=n.compress||n.compressPdf||o,(y=n.encryption||null)!==null&&(y.userPassword=y.userPassword||"",y.ownerPassword=y.ownerPassword||"",y.userPermissions=y.userPermissions||[]),h=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(e=n.precision),n.floatPrecision!==void 0&&(f=n.floatPrecision),g=n.defaultPathOperation||"S"),c=n.filters||(o===!0?["FlateEncode"]:c),a=a||"mm",r=(""+(r||"P")).toLowerCase();var w=n.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=lu;var O="1.3",F=p.__private__.getPdfVersion=function(){return O};p.__private__.setPdfVersion=function(s){O=s};var q={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return q};var _=p.__private__.getPageFormat=function(s){return q[s]};u=u||"a4";var B={COMPAT:"compat",ADVANCED:"advanced"},Y=B.COMPAT;function ot(){this.saveGraphicsState(),E(new zt(jt,0,0,-jt,0,mn()*jt).toString()+" cm"),this.setFontSize(this.getFontSize()/jt),g="n",Y=B.ADVANCED}function lt(){this.restoreGraphicsState(),g="S",Y=B.COMPAT}var wt=p.__private__.combineFontStyleAndFontWeight=function(s,v){if(s=="bold"&&v=="normal"||s=="bold"&&v==400||s=="normal"&&v=="italic"||s=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(s=v==400||v==="normal"?s==="italic"?"italic":"normal":v!=700&&v!=="bold"||s!=="normal"?(v==700?"bold":v)+""+s:"bold"),s};p.advancedAPI=function(s){var v=Y===B.COMPAT;return v&&ot.call(this),typeof s!="function"||(s(this),v&&lt.call(this)),this},p.compatAPI=function(s){var v=Y===B.ADVANCED;return v&&lt.call(this),typeof s!="function"||(s(this),v&&ot.call(this)),this},p.isAdvancedAPI=function(){return Y===B.ADVANCED};var tt,z=function(s){if(Y!==B.ADVANCED)throw new Error(s+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},nt=p.roundToPrecision=p.__private__.roundToPrecision=function(s,v){var j=e||v;if(isNaN(s)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return s.toFixed(j).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof f=="number"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return nt(s,f)}:f==="smart"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return nt(s,s>-1&&s<1?16:5)}:function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return nt(s,16)};var dt=p.f2=p.__private__.f2=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f2");return nt(s,2)},P=p.__private__.f3=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f3");return nt(s,3)},k=p.scale=p.__private__.scale=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.scale");return Y===B.COMPAT?s*jt:Y===B.ADVANCED?s:void 0},W=function(s){return Y===B.COMPAT?mn()-s:Y===B.ADVANCED?s:void 0},D=function(s){return k(W(s))};p.__private__.setPrecision=p.setPrecision=function(s){typeof parseInt(s,10)=="number"&&(e=parseInt(s,10))};var st,it="00000000000000000000000000000000",ct=p.__private__.getFileId=function(){return it},$=p.__private__.setFileId=function(s){return it=s!==void 0&&/^[a-fA-F0-9]{32}$/.test(s)?s.toUpperCase():it.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),y!==null&&(Ye=new ji(y.userPermissions,y.userPassword,y.ownerPassword,it)),it};p.setFileId=function(s){return $(s),this},p.getFileId=function(){return ct()};var ht=p.__private__.convertDateToPDFDate=function(s){var v=s.getTimezoneOffset(),j=v<0?"+":"-",T=Math.floor(Math.abs(v/60)),X=Math.abs(v%60),ut=[j,M(T),"'",M(X),"'"].join("");return["D:",s.getFullYear(),M(s.getMonth()+1),M(s.getDate()),M(s.getHours()),M(s.getMinutes()),M(s.getSeconds()),ut].join("")},pt=p.__private__.convertPDFDateToDate=function(s){var v=parseInt(s.substr(2,4),10),j=parseInt(s.substr(6,2),10)-1,T=parseInt(s.substr(8,2),10),X=parseInt(s.substr(10,2),10),ut=parseInt(s.substr(12,2),10),yt=parseInt(s.substr(14,2),10);return new Date(v,j,T,X,ut,yt,0)},It=p.__private__.setCreationDate=function(s){var v;if(s===void 0&&(s=new Date),s instanceof Date)v=ht(s);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(s))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=s}return st=v},N=p.__private__.getCreationDate=function(s){var v=st;return s==="jsDate"&&(v=pt(st)),v};p.setCreationDate=function(s){return It(s),this},p.getCreationDate=function(s){return N(s)};var C,M=p.__private__.padd2=function(s){return("0"+parseInt(s)).slice(-2)},R=p.__private__.padd2Hex=function(s){return("00"+(s=s.toString())).substr(s.length)},J=0,Q=[],et=[],rt=0,At=[],Nt=[],Ft=!1,_t=et,Ut=function(){J=0,rt=0,et=[],Q=[],At=[],rn=Be(),kr=Be()};p.__private__.setCustomOutputDestination=function(s){Ft=!0,_t=s};var ft=function(s){Ft||(_t=s)};p.__private__.resetCustomOutputDestination=function(){Ft=!1,_t=et};var E=p.__private__.out=function(s){return s=s.toString(),rt+=s.length+1,_t.push(s),_t},Kt=p.__private__.write=function(s){return E(arguments.length===1?s.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(s){for(var v=s.length,j=new ArrayBuffer(v),T=new Uint8Array(j);v--;)T[v]=s.charCodeAt(v);return j},Lt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return Lt};var xt=n.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(s){return xt=Y===B.ADVANCED?s/jt:s,this};var Ct,kt=p.__private__.getFontSize=p.getFontSize=function(){return Y===B.COMPAT?xt:xt*jt},qt=n.R2L||!1;p.__private__.setR2L=p.setR2L=function(s){return qt=s,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Gt,Qt=p.__private__.setZoomMode=function(s){var v=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(s))Ct=s;else if(isNaN(s)){if(v.indexOf(s)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+s+'" is not recognized.');Ct=s}else Ct=parseInt(s,10)};p.__private__.getZoomMode=function(){return Ct};var te,ie=p.__private__.setPageMode=function(s){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(s)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+s+'" is not recognized.');Gt=s};p.__private__.getPageMode=function(){return Gt};var de=p.__private__.setLayoutMode=function(s){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(s)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+s+'" is not recognized.');te=s};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(s,v,j){return Qt(s),de(v),ie(j),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(s){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[s]},p.__private__.getDocumentProperties=function(){return Wt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(s){for(var v in Wt)Wt.hasOwnProperty(v)&&s[v]&&(Wt[v]=s[v]);return this},p.__private__.setDocumentProperty=function(s,v){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[s]=v};var ee,jt,Je,oe,Sr,ge={},Le={},zr=[],ue={},Mn={},Ae={},_r={},en=null,xe=0,Jt=[],le=new lu(p),En=n.hotfixes||[],We={},Ur={},Hr=[],zt=function s(v,j,T,X,ut,yt){if(!(this instanceof s))return new s(v,j,T,X,ut,yt);isNaN(v)&&(v=1),isNaN(j)&&(j=0),isNaN(T)&&(T=0),isNaN(X)&&(X=1),isNaN(ut)&&(ut=0),isNaN(yt)&&(yt=0),this._matrix=[v,j,T,X,ut,yt]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),zt.prototype.join=function(s){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(s)},zt.prototype.multiply=function(s){var v=s.sx*this.sx+s.shy*this.shx,j=s.sx*this.shy+s.shy*this.sy,T=s.shx*this.sx+s.sy*this.shx,X=s.shx*this.shy+s.sy*this.sy,ut=s.tx*this.sx+s.ty*this.shx+this.tx,yt=s.tx*this.shy+s.ty*this.sy+this.ty;return new zt(v,j,T,X,ut,yt)},zt.prototype.decompose=function(){var s=this.sx,v=this.shy,j=this.shx,T=this.sy,X=this.tx,ut=this.ty,yt=Math.sqrt(s*s+v*v),Ot=(s/=yt)*j+(v/=yt)*T;j-=s*Ot,T-=v*Ot;var Dt=Math.sqrt(j*j+T*T);return Ot/=Dt,s*(T/=Dt)<v*(j/=Dt)&&(s=-s,v=-v,Ot=-Ot,yt=-yt),{scale:new zt(yt,0,0,Dt,0,0),translate:new zt(1,0,0,1,X,ut),rotate:new zt(s,v,-v,s,0,0),skew:new zt(1,0,Ot,1,0,0)}},zt.prototype.toString=function(s){return this.join(" ")},zt.prototype.inversed=function(){var s=this.sx,v=this.shy,j=this.shx,T=this.sy,X=this.tx,ut=this.ty,yt=1/(s*T-v*j),Ot=T*yt,Dt=-v*yt,Zt=-j*yt,Yt=s*yt;return new zt(Ot,Dt,Zt,Yt,-Ot*X-Zt*ut,-Dt*X-Yt*ut)},zt.prototype.applyToPoint=function(s){var v=s.x*this.sx+s.y*this.shx+this.tx,j=s.x*this.shy+s.y*this.sy+this.ty;return new pi(v,j)},zt.prototype.applyToRectangle=function(s){var v=this.applyToPoint(s),j=this.applyToPoint(new pi(s.x+s.w,s.y+s.h));return new Wi(v.x,v.y,j.x-v.x,j.y-v.y)},zt.prototype.clone=function(){var s=this.sx,v=this.shy,j=this.shx,T=this.sy,X=this.tx,ut=this.ty;return new zt(s,v,j,T,X,ut)},p.Matrix=zt;var Pr=p.matrixMult=function(s,v){return v.multiply(s)},Wr=new zt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Wr;var ir=function(s,v){if(!Mn[s]){var j=(v instanceof In?"Sh":"P")+(Object.keys(ue).length+1).toString(10);v.id=j,Mn[s]=j,ue[j]=v,le.publish("addPattern",v)}};p.ShadingPattern=In,p.TilingPattern=Xn,p.addShadingPattern=function(s,v){return z("addShadingPattern()"),ir(s,v),this},p.beginTilingPattern=function(s){z("beginTilingPattern()"),qa(s.boundingBox[0],s.boundingBox[1],s.boundingBox[2]-s.boundingBox[0],s.boundingBox[3]-s.boundingBox[1],s.matrix)},p.endTilingPattern=function(s,v){z("endTilingPattern()"),v.stream=Nt[C].join(`
3
- `),ir(s,v),le.publish("endTilingPattern",v),Hr.pop().restore()};var De=p.__private__.newObject=function(){var s=Be();return hr(s,!0),s},Be=p.__private__.newObjectDeferred=function(){return J++,Q[J]=function(){return rt},J},hr=function(s,v){return v=typeof v=="boolean"&&v,Q[s]=rt,v&&E(s+" 0 obj"),s},ei=p.__private__.newAdditionalObject=function(){var s={objId:Be(),content:""};return At.push(s),s},rn=Be(),kr=Be(),Fr=p.__private__.decodeColorString=function(s){var v=s.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length===5&&(v[4]==="k"||v[4]==="K")&&(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var j=parseFloat(v[0]);v=[j,j,j,"r"]}for(var T="#",X=0;X<3;X++)T+=("0"+Math.floor(255*parseFloat(v[X])).toString(16)).slice(-2);return T},Ir=p.__private__.encodeColorString=function(s){var v;typeof s=="string"&&(s={ch1:s});var j=s.ch1,T=s.ch2,X=s.ch3,ut=s.ch4,yt=s.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof j=="string"&&j.charAt(0)!=="#"){var Ot=new ju(j);if(Ot.ok)j=Ot.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 Dt=parseInt(j.substr(1),16);j=Dt>>16&255,T=Dt>>8&255,X=255&Dt}if(T===void 0||ut===void 0&&j===T&&T===X)typeof j=="string"?v=j+" "+yt[0]:s.precision===2?v=dt(j/255)+" "+yt[0]:v=P(j/255)+" "+yt[0];else if(ut===void 0||fe(ut)==="object"){if(ut&&!isNaN(ut.a)&&ut.a===0)return v=["1.","1.","1.",yt[1]].join(" ");if(typeof j=="string")v=[j,T,X,yt[1]].join(" ");else switch(s.precision){case 2:v=[dt(j/255),dt(T/255),dt(X/255),yt[1]].join(" ");break;default:case 3:v=[P(j/255),P(T/255),P(X/255),yt[1]].join(" ")}}else typeof j=="string"?v=[j,T,X,ut,yt[2]].join(" "):s.precision===2?v=[dt(j),dt(T),dt(X),dt(ut),yt[2]].join(" "):v=[P(j),P(T),P(X),P(ut),yt[2]].join(" ");return v},Vr=p.__private__.getFilters=function(){return c},vr=p.__private__.putStream=function(s){var v=(s=s||{}).data||"",j=s.filters||Vr(),T=s.alreadyAppliedFilters||[],X=s.addLength1||!1,ut=v.length,yt=s.objectId,Ot=function(Xe){return Xe};if(y!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");y!==null&&(Ot=Ye.encryptor(yt,0));var Dt={};j===!0&&(j=["FlateEncode"]);var Zt=s.additionalKeyValues||[],Yt=(Dt=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(v,j):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(Dt.data.length!==0&&(Zt.push({key:"Length",value:Dt.data.length}),X===!0&&Zt.push({key:"Length1",value:ut})),Yt.length!=0)if(Yt.split("/").length-1==1)Zt.push({key:"Filter",value:Yt});else{Zt.push({key:"Filter",value:"["+Yt+"]"});for(var ne=0;ne<Zt.length;ne+=1)if(Zt[ne].key==="DecodeParms"){for(var Ne=[],Se=0;Se<Dt.reverseChain.split("/").length-1;Se+=1)Ne.push("null");Ne.push(Zt[ne].value),Zt[ne].value="["+Ne.join(" ")+"]"}}E("<<");for(var Me=0;Me<Zt.length;Me++)E("/"+Zt[Me].key+" "+Zt[Me].value);E(">>"),Dt.data.length!==0&&(E("stream"),E(Ot(Dt.data)),E("endstream"))},Gr=p.__private__.putPage=function(s){var v=s.number,j=s.data,T=s.objId,X=s.contentsObjId;hr(T,!0),E("<</Type /Page"),E("/Parent "+s.rootDictionaryObjId+" 0 R"),E("/Resources "+s.resourceDictionaryObjId+" 0 R"),E("/MediaBox ["+parseFloat(tt(s.mediaBox.bottomLeftX))+" "+parseFloat(tt(s.mediaBox.bottomLeftY))+" "+tt(s.mediaBox.topRightX)+" "+tt(s.mediaBox.topRightY)+"]"),s.cropBox!==null&&E("/CropBox ["+tt(s.cropBox.bottomLeftX)+" "+tt(s.cropBox.bottomLeftY)+" "+tt(s.cropBox.topRightX)+" "+tt(s.cropBox.topRightY)+"]"),s.bleedBox!==null&&E("/BleedBox ["+tt(s.bleedBox.bottomLeftX)+" "+tt(s.bleedBox.bottomLeftY)+" "+tt(s.bleedBox.topRightX)+" "+tt(s.bleedBox.topRightY)+"]"),s.trimBox!==null&&E("/TrimBox ["+tt(s.trimBox.bottomLeftX)+" "+tt(s.trimBox.bottomLeftY)+" "+tt(s.trimBox.topRightX)+" "+tt(s.trimBox.topRightY)+"]"),s.artBox!==null&&E("/ArtBox ["+tt(s.artBox.bottomLeftX)+" "+tt(s.artBox.bottomLeftY)+" "+tt(s.artBox.topRightX)+" "+tt(s.artBox.topRightY)+"]"),typeof s.userUnit=="number"&&s.userUnit!==1&&E("/UserUnit "+s.userUnit),le.publish("putPage",{objId:T,pageContext:Jt[v],pageNumber:v,page:j}),E("/Contents "+X+" 0 R"),E(">>"),E("endobj");var ut=j.join(`
4
- `);return Y===B.ADVANCED&&(ut+=`
5
- Q`),hr(X,!0),vr({data:ut,filters:Vr(),objectId:X}),E("endobj"),T},qn=p.__private__.putPages=function(){var s,v,j=[];for(s=1;s<=xe;s++)Jt[s].objId=Be(),Jt[s].contentsObjId=Be();for(s=1;s<=xe;s++)j.push(Gr({number:s,data:Nt[s],objId:Jt[s].objId,contentsObjId:Jt[s].contentsObjId,mediaBox:Jt[s].mediaBox,cropBox:Jt[s].cropBox,bleedBox:Jt[s].bleedBox,trimBox:Jt[s].trimBox,artBox:Jt[s].artBox,userUnit:Jt[s].userUnit,rootDictionaryObjId:rn,resourceDictionaryObjId:kr}));hr(rn,!0),E("<</Type /Pages");var T="/Kids [";for(v=0;v<xe;v++)T+=j[v]+" 0 R ";E(T+"]"),E("/Count "+xe),E(">>"),E("endobj"),le.publish("postPutPages")},ri=function(s){le.publish("putFont",{font:s,out:E,newObject:De,putStream:vr}),s.isAlreadyPutted!==!0&&(s.objectNumber=De(),E("<<"),E("/Type /Font"),E("/BaseFont /"+Oi(s.postScriptName)),E("/Subtype /Type1"),typeof s.encoding=="string"&&E("/Encoding /"+s.encoding),E("/FirstChar 32"),E("/LastChar 255"),E(">>"),E("endobj"))},ni=function(){for(var s in ge)ge.hasOwnProperty(s)&&(w===!1||w===!0&&S.hasOwnProperty(s))&&ri(ge[s])},ii=function(s){s.objectNumber=De();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[tt(s.x),tt(s.y),tt(s.x+s.width),tt(s.y+s.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+s.matrix.toString()+"]"});var j=s.pages[1].join(`
6
- `);vr({data:j,additionalKeyValues:v,objectId:s.objectNumber}),E("endobj")},ai=function(){for(var s in We)We.hasOwnProperty(s)&&ii(We[s])},ya=function(s,v){var j,T=[],X=1/(v-1);for(j=0;j<1;j+=X)T.push(j);if(T.push(1),s[0].offset!=0){var ut={offset:0,color:s[0].color};s.unshift(ut)}if(s[s.length-1].offset!=1){var yt={offset:1,color:s[s.length-1].color};s.push(yt)}for(var Ot="",Dt=0,Zt=0;Zt<T.length;Zt++){for(j=T[Zt];j>s[Dt+1].offset;)Dt++;var Yt=s[Dt].offset,ne=(j-Yt)/(s[Dt+1].offset-Yt),Ne=s[Dt].color,Se=s[Dt+1].color;Ot+=R(Math.round((1-ne)*Ne[0]+ne*Se[0]).toString(16))+R(Math.round((1-ne)*Ne[1]+ne*Se[1]).toString(16))+R(Math.round((1-ne)*Ne[2]+ne*Se[2]).toString(16))}return Ot.trim()},bo=function(s,v){v||(v=21);var j=De(),T=ya(s.colors,v),X=[];X.push({key:"FunctionType",value:"0"}),X.push({key:"Domain",value:"[0.0 1.0]"}),X.push({key:"Size",value:"["+v+"]"}),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]"}),vr({data:T,additionalKeyValues:X,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:j}),E("endobj"),s.objectNumber=De(),E("<< /ShadingType "+s.type),E("/ColorSpace /DeviceRGB");var ut="/Coords ["+tt(parseFloat(s.coords[0]))+" "+tt(parseFloat(s.coords[1]))+" ";s.type===2?ut+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3])):ut+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3]))+" "+tt(parseFloat(s.coords[4]))+" "+tt(parseFloat(s.coords[5])),E(ut+="]"),s.matrix&&E("/Matrix ["+s.matrix.toString()+"]"),E("/Function "+j+" 0 R"),E("/Extend [true true]"),E(">>"),E("endobj")},yo=function(s,v){var j=Be(),T=De();v.push({resourcesOid:j,objectOid:T}),s.objectNumber=T;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:"["+s.boundingBox.map(tt).join(" ")+"]"}),X.push({key:"XStep",value:tt(s.xStep)}),X.push({key:"YStep",value:tt(s.yStep)}),X.push({key:"Resources",value:j+" 0 R"}),s.matrix&&X.push({key:"Matrix",value:"["+s.matrix.toString()+"]"}),vr({data:s.stream,additionalKeyValues:X,objectId:s.objectNumber}),E("endobj")},oi=function(s){var v;for(v in ue)ue.hasOwnProperty(v)&&(ue[v]instanceof In?bo(ue[v]):ue[v]instanceof Xn&&yo(ue[v],s))},wa=function(s){for(var v in s.objectNumber=De(),E("<<"),s)switch(v){case"opacity":E("/ca "+dt(s[v]));break;case"stroke-opacity":E("/CA "+dt(s[v]))}E(">>"),E("endobj")},wo=function(){var s;for(s in Ae)Ae.hasOwnProperty(s)&&wa(Ae[s])},Bi=function(){for(var s in E("/XObject <<"),We)We.hasOwnProperty(s)&&We[s].objectNumber>=0&&E("/"+s+" "+We[s].objectNumber+" 0 R");le.publish("putXobjectDict"),E(">>")},Lo=function(){Ye.oid=De(),E("<<"),E("/Filter /Standard"),E("/V "+Ye.v),E("/R "+Ye.r),E("/U <"+Ye.toHexString(Ye.U)+">"),E("/O <"+Ye.toHexString(Ye.O)+">"),E("/P "+Ye.P),E(">>"),E("endobj")},La=function(){for(var s in E("/Font <<"),ge)ge.hasOwnProperty(s)&&(w===!1||w===!0&&S.hasOwnProperty(s))&&E("/"+s+" "+ge[s].objectNumber+" 0 R");E(">>")},No=function(){if(Object.keys(ue).length>0){for(var s in E("/Shading <<"),ue)ue.hasOwnProperty(s)&&ue[s]instanceof In&&ue[s].objectNumber>=0&&E("/"+s+" "+ue[s].objectNumber+" 0 R");le.publish("putShadingPatternDict"),E(">>")}},si=function(s){if(Object.keys(ue).length>0){for(var v in E("/Pattern <<"),ue)ue.hasOwnProperty(v)&&ue[v]instanceof p.TilingPattern&&ue[v].objectNumber>=0&&ue[v].objectNumber<s&&E("/"+v+" "+ue[v].objectNumber+" 0 R");le.publish("putTilingPatternDict"),E(">>")}},Ao=function(){if(Object.keys(Ae).length>0){var s;for(s in E("/ExtGState <<"),Ae)Ae.hasOwnProperty(s)&&Ae[s].objectNumber>=0&&E("/"+s+" "+Ae[s].objectNumber+" 0 R");le.publish("putGStateDict"),E(">>")}},ke=function(s){hr(s.resourcesOid,!0),E("<<"),E("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),La(),No(),si(s.objectOid),Ao(),Bi(),E(">>"),E("endobj")},Na=function(){var s=[];ni(),wo(),ai(),oi(s),le.publish("putResources"),s.forEach(ke),ke({resourcesOid:kr,objectOid:Number.MAX_SAFE_INTEGER}),le.publish("postPutResources")},Aa=function(){le.publish("putAdditionalObjects");for(var s=0;s<At.length;s++){var v=At[s];hr(v.objId,!0),E(v.content),E("endobj")}le.publish("postPutAdditionalObjects")},xa=function(s){Le[s.fontName]=Le[s.fontName]||{},Le[s.fontName][s.fontStyle]=s.id},Mi=function(s,v,j,T,X){var ut={id:"F"+(Object.keys(ge).length+1).toString(10),postScriptName:s,fontName:v,fontStyle:j,encoding:T,isStandardFont:X||!1,metadata:{}};return le.publish("addFont",{font:ut,instance:this}),ge[ut.id]=ut,xa(ut),ut.id},xo=function(s){for(var v=0,j=Lt.length;v<j;v++){var T=Mi.call(this,s[v][0],s[v][1],s[v][2],Lt[v][3],!0);w===!1&&(S[T]=!0);var X=s[v][0].split("-");xa({id:T,fontName:X[0],fontStyle:X[1]||""})}le.publish("addFonts",{fonts:ge,dictionary:Le})},Cr=function(s){return s.foo=function(){try{return s.apply(this,arguments)}catch(T){var v=T.stack||"";~v.indexOf(" at ")&&(v=v.split(" at ")[1]);var j="Error in function "+v.split(`
7
- `)[0].split("<")[0]+": "+T.message;if(!Ht.console)throw new Error(j);Ht.console.error(j,T),Ht.alert&&alert(j)}},s.foo.bar=s,s.foo},ui=function(s,v){var j,T,X,ut,yt,Ot,Dt,Zt,Yt;if(X=(v=v||{}).sourceEncoding||"Unicode",yt=v.outputEncoding,(v.autoencode||yt)&&ge[ee].metadata&&ge[ee].metadata[X]&&ge[ee].metadata[X].encoding&&(ut=ge[ee].metadata[X].encoding,!yt&&ge[ee].encoding&&(yt=ge[ee].encoding),!yt&&ut.codePages&&(yt=ut.codePages[0]),typeof yt=="string"&&(yt=ut[yt]),yt)){for(Dt=!1,Ot=[],j=0,T=s.length;j<T;j++)(Zt=yt[s.charCodeAt(j)])?Ot.push(String.fromCharCode(Zt)):Ot.push(s[j]),Ot[j].charCodeAt(0)>>8&&(Dt=!0);s=Ot.join("")}for(j=s.length;Dt===void 0&&j!==0;)s.charCodeAt(j-1)>>8&&(Dt=!0),j--;if(!Dt)return s;for(Ot=v.noBOM?[]:[254,255],j=0,T=s.length;j<T;j++){if((Yt=(Zt=s.charCodeAt(j))>>8)>>8)throw new Error("Character at position "+j+" of string '"+s+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ot.push(Yt),Ot.push(Zt-(Yt<<8))}return String.fromCharCode.apply(void 0,Ot)},ar=p.__private__.pdfEscape=p.pdfEscape=function(s,v){return ui(s,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ei=p.__private__.beginPage=function(s){Nt[++xe]=[],Jt[xe]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(s[0]),topRightY:Number(s[1])}},_a(xe),ft(Nt[C])},Sa=function(s,v){var j,T,X;switch(r=v||r,typeof s=="string"&&(j=_(s.toLowerCase()),Array.isArray(j)&&(T=j[0],X=j[1])),Array.isArray(s)&&(T=s[0]*jt,X=s[1]*jt),isNaN(T)&&(T=u[0],X=u[1]),(T>14400||X>14400)&&(ve.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),T=Math.min(14400,T),X=Math.min(14400,X)),u=[T,X],r.substr(0,1)){case"l":X>T&&(u=[X,T]);break;case"p":T>X&&(u=[X,T])}Ei(u),ja(Ri),E(jr),Ui!==0&&E(Ui+" J"),Hi!==0&&E(Hi+" j"),le.publish("addPage",{pageNumber:xe})},So=function(s){s>0&&s<=xe&&(Nt.splice(s,1),Jt.splice(s,1),xe--,C>xe&&(C=xe),this.setPage(C))},_a=function(s){s>0&&s<=xe&&(C=s)},_o=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},Pa=function(s,v,j){var T,X=void 0;return j=j||{},s=s!==void 0?s:ge[ee].fontName,v=v!==void 0?v:ge[ee].fontStyle,T=s.toLowerCase(),Le[T]!==void 0&&Le[T][v]!==void 0?X=Le[T][v]:Le[s]!==void 0&&Le[s][v]!==void 0?X=Le[s][v]:j.disableWarning===!1&&ve.warn("Unable to look up font label for font '"+s+"', '"+v+"'. Refer to getFontList() for available fonts."),X||j.noFallback||(X=Le.times[v])==null&&(X=Le.times.normal),X},Po=p.__private__.putInfo=function(){var s=De(),v=function(T){return T};for(var j in y!==null&&(v=Ye.encryptor(s,0)),E("<<"),E("/Producer ("+ar(v("jsPDF "+Rt.version))+")"),Wt)Wt.hasOwnProperty(j)&&Wt[j]&&E("/"+j.substr(0,1).toUpperCase()+j.substr(1)+" ("+ar(v(Wt[j]))+")");E("/CreationDate ("+ar(v(st))+")"),E(">>"),E("endobj")},qi=p.__private__.putCatalog=function(s){var v=(s=s||{}).rootDictionaryObjId||rn;switch(De(),E("<<"),E("/Type /Catalog"),E("/Pages "+v+" 0 R"),Ct||(Ct="fullwidth"),Ct){case"fullwidth":E("/OpenAction [3 0 R /FitH null]");break;case"fullheight":E("/OpenAction [3 0 R /FitV null]");break;case"fullpage":E("/OpenAction [3 0 R /Fit]");break;case"original":E("/OpenAction [3 0 R /XYZ null null 1]");break;default:var j=""+Ct;j.substr(j.length-1)==="%"&&(Ct=parseInt(Ct)/100),typeof Ct=="number"&&E("/OpenAction [3 0 R /XYZ null null "+dt(Ct)+"]")}switch(te||(te="continuous"),te){case"continuous":E("/PageLayout /OneColumn");break;case"single":E("/PageLayout /SinglePage");break;case"two":case"twoleft":E("/PageLayout /TwoColumnLeft");break;case"tworight":E("/PageLayout /TwoColumnRight")}Gt&&E("/PageMode /"+Gt),le.publish("putCatalog"),E(">>"),E("endobj")},ko=p.__private__.putTrailer=function(){E("trailer"),E("<<"),E("/Size "+(J+1)),E("/Root "+J+" 0 R"),E("/Info "+(J-1)+" 0 R"),y!==null&&E("/Encrypt "+Ye.oid+" 0 R"),E("/ID [ <"+it+"> <"+it+"> ]"),E(">>")},Fo=p.__private__.putHeader=function(){E("%PDF-"+O),E("%ºß¬à")},Io=p.__private__.putXRef=function(){var s="0000000000";E("xref"),E("0 "+(J+1)),E("0000000000 65535 f ");for(var v=1;v<=J;v++)typeof Q[v]=="function"?E((s+Q[v]()).slice(-10)+" 00000 n "):Q[v]!==void 0?E((s+Q[v]).slice(-10)+" 00000 n "):E("0000000000 00000 n ")},nn=p.__private__.buildDocument=function(){Ut(),ft(et),le.publish("buildDocument"),Fo(),qn(),Aa(),Na(),y!==null&&Lo(),Po(),qi();var s=rt;return Io(),ko(),E("startxref"),E(""+s),E("%%EOF"),ft(Nt[C]),et.join(`
8
- `)},li=p.__private__.getBlob=function(s){return new Blob([Et(s)],{type:"application/pdf"})},ci=p.output=p.__private__.output=Cr((function(s,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",s){case void 0:return nn();case"save":p.save(v.filename);break;case"arraybuffer":return Et(nn());case"blob":return li(nn());case"bloburi":case"bloburl":if(Ht.URL!==void 0&&typeof Ht.URL.createObjectURL=="function")return Ht.URL&&Ht.URL.createObjectURL(li(nn()))||void 0;ve.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var j="",T=nn();try{j=Ls(T)}catch{j=Ls(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+v.filename+";base64,"+j;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ht)==="[object Window]"){var X="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ut=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(X=v.pdfObjectUrl,ut="");var yt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+X+'"'+ut+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(v)+");<\/script></body></html>",Ot=Ht.open();return Ot!==null&&Ot.document.write(yt),Ot}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ht)==="[object Window]"){var Dt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(v.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+v.filename+'" width="500px" height="400px" /></body></html>',Zt=Ht.open();if(Zt!==null){Zt.document.write(Dt);var Yt=this;Zt.document.documentElement.querySelector("#pdfViewer").onload=function(){Zt.document.title=v.filename,Zt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Yt.output("bloburl"))}}return Zt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ht)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ne='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",v)+'"></iframe></body></html>',Ne=Ht.open();if(Ne!==null&&(Ne.document.write(ne),Ne.document.title=v.filename),Ne||typeof safari>"u")return Ne;break;case"datauri":case"dataurl":return Ht.document.location.href=this.output("datauristring",v);default:return null}})),ka=function(s){return Array.isArray(En)===!0&&En.indexOf(s)>-1};switch(a){case"pt":jt=1;break;case"mm":jt=72/25.4;break;case"cm":jt=72/2.54;break;case"in":jt=72;break;case"px":jt=ka("px_scaling")==1?.75:96/72;break;case"pc":case"em":jt=12;break;case"ex":jt=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);jt=a}var Ye=null;It(),$();var Co=function(s){return y!==null?Ye.encryptor(s,0):function(v){return v}},Fa=p.__private__.getPageInfo=p.getPageInfo=function(s){if(isNaN(s)||s%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Jt[s].objId,pageNumber:s,pageContext:Jt[s]}},Vt=p.__private__.getPageInfoByObjId=function(s){if(isNaN(s)||s%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Jt)if(Jt[v].objId===s)break;return Fa(v)},jo=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Jt[C].objId,pageNumber:C,pageContext:Jt[C]}};p.addPage=function(){return Sa.apply(this,arguments),this},p.setPage=function(){return _a.apply(this,arguments),ft.call(this,Nt[C]),this},p.insertPage=function(s){return this.addPage(),this.movePage(C,s),this},p.movePage=function(s,v){var j,T;if(s>v){j=Nt[s],T=Jt[s];for(var X=s;X>v;X--)Nt[X]=Nt[X-1],Jt[X]=Jt[X-1];Nt[v]=j,Jt[v]=T,this.setPage(v)}else if(s<v){j=Nt[s],T=Jt[s];for(var ut=s;ut<v;ut++)Nt[ut]=Nt[ut+1],Jt[ut]=Jt[ut+1];Nt[v]=j,Jt[v]=T,this.setPage(v)}return this},p.deletePage=function(){return So.apply(this,arguments),this},p.__private__.text=p.text=function(s,v,j,T,X){var ut,yt,Ot,Dt,Zt,Yt,ne,Ne,Se,Me=(T=T||{}).scope||this;if(typeof s=="number"&&typeof v=="number"&&(typeof j=="string"||Array.isArray(j))){var Xe=j;j=v,v=s,s=Xe}if(arguments[3]instanceof zt?(z("The transform parameter of text() with a Matrix value"),Se=X):(Ot=arguments[4],Dt=arguments[5],fe(ne=arguments[3])==="object"&&ne!==null||(typeof Ot=="string"&&(Dt=Ot,Ot=null),typeof ne=="string"&&(Dt=ne,ne=null),typeof ne=="number"&&(Ot=ne,ne=null),T={flags:ne,angle:Ot,align:Dt})),isNaN(v)||isNaN(j)||s==null)throw new Error("Invalid arguments passed to jsPDF.text");if(s.length===0)return Me;var ze="",Or=!1,fr=typeof T.lineHeightFactor=="number"?T.lineHeightFactor:Tn,Xr=Me.internal.scaleFactor;function Da(be){return be=be.split(" ").join(Array(T.TabLen||9).join(" ")),ar(be,ne)}function Yi(be){for(var ye,Ie=be.concat(),Te=[],ln=Ie.length;ln--;)typeof(ye=Ie.shift())=="string"?Te.push(ye):Array.isArray(be)&&(ye.length===1||ye[1]===void 0&&ye[2]===void 0)?Te.push(ye[0]):Te.push([ye[0],ye[1],ye[2]]);return Te}function Xi(be,ye){var Ie;if(typeof be=="string")Ie=ye(be)[0];else if(Array.isArray(be)){for(var Te,ln,na=be.concat(),Si=[],Ha=na.length;Ha--;)typeof(Te=na.shift())=="string"?Si.push(ye(Te)[0]):Array.isArray(Te)&&typeof Te[0]=="string"&&(ln=ye(Te[0],Te[1],Te[2]),Si.push([ln[0],ln[1],ln[2]]));Ie=Si}return Ie}var mi=!1,Ki=!0;if(typeof s=="string")mi=!0;else if(Array.isArray(s)){var Zi=s.concat();yt=[];for(var vi,Ve=Zi.length;Ve--;)(typeof(vi=Zi.shift())!="string"||Array.isArray(vi)&&typeof vi[0]!="string")&&(Ki=!1);mi=Ki}if(mi===!1)throw new Error('Type of text must be string or Array. "'+s+'" is not recognized.');typeof s=="string"&&(s=s.match(/[\r?\n]/)?s.split(/\r\n|\r|\n/g):[s]);var bi=xt/Me.internal.scaleFactor,yi=bi*(fr-1);switch(T.baseline){case"bottom":j-=yi;break;case"top":j+=bi-yi;break;case"hanging":j+=bi-2*yi;break;case"middle":j+=bi/2-yi}if((Yt=T.maxWidth||0)>0&&(typeof s=="string"?s=Me.splitTextToSize(s,Yt):Object.prototype.toString.call(s)==="[object Array]"&&(s=s.reduce((function(be,ye){return be.concat(Me.splitTextToSize(ye,Yt))}),[]))),ut={text:s,x:v,y:j,options:T,mutex:{pdfEscape:ar,activeFontKey:ee,fonts:ge,activeFontSize:xt}},le.publish("preProcessText",ut),s=ut.text,Ot=(T=ut.options).angle,!(Se instanceof zt)&&Ot&&typeof Ot=="number"){Ot*=Math.PI/180,T.rotationDirection===0&&(Ot=-Ot),Y===B.ADVANCED&&(Ot=-Ot);var wi=Math.cos(Ot),$i=Math.sin(Ot);Se=new zt(wi,$i,-$i,wi,0,0)}else Ot&&Ot instanceof zt&&(Se=Ot);Y!==B.ADVANCED||Se||(Se=Wr),(Zt=T.charSpace||di)!==void 0&&(ze+=tt(k(Zt))+` Tc
9
- `,this.setCharSpace(this.getCharSpace()||0)),(Ne=T.horizontalScale)!==void 0&&(ze+=tt(100*Ne)+` Tz
10
- `),T.lang;var or=-1,Uo=T.renderingMode!==void 0?T.renderingMode:T.stroke,Qi=Me.internal.getCurrentPageInfo().pageContext;switch(Uo){case 0:case!1:case"fill":or=0;break;case 1:case!0:case"stroke":or=1;break;case 2:case"fillThenStroke":or=2;break;case 3:case"invisible":or=3;break;case 4:case"fillAndAddForClipping":or=4;break;case 5:case"strokeAndAddPathForClipping":or=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":or=6;break;case 7:case"addToPathForClipping":or=7}var Ta=Qi.usedRenderingMode!==void 0?Qi.usedRenderingMode:-1;or!==-1?ze+=or+` Tr
11
- `:Ta!==-1&&(ze+=`0 Tr
12
- `),or!==-1&&(Qi.usedRenderingMode=or),Dt=T.align||"left";var br,Li=xt*fr,Ra=Me.internal.pageSize.getWidth(),za=ge[ee];Zt=T.charSpace||di,Yt=T.maxWidth||0,ne=Object.assign({autoencode:!0,noBOM:!0},T.flags);var vn=[],Un=function(be){return Me.getStringUnitWidth(be,{font:za,charSpace:Zt,fontSize:xt,doKerning:!1})*xt/Xr};if(Object.prototype.toString.call(s)==="[object Array]"){var sr;yt=Yi(s),Dt!=="left"&&(br=yt.map(Un));var er,bn=0;if(Dt==="right"){v-=br[0],s=[],Ve=yt.length;for(var on=0;on<Ve;on++)on===0?(er=Yr(v),sr=an(j)):(er=k(bn-br[on]),sr=-Li),s.push([yt[on],er,sr]),bn=br[on]}else if(Dt==="center"){v-=br[0]/2,s=[],Ve=yt.length;for(var sn=0;sn<Ve;sn++)sn===0?(er=Yr(v),sr=an(j)):(er=k((bn-br[sn])/2),sr=-Li),s.push([yt[sn],er,sr]),bn=br[sn]}else if(Dt==="left"){s=[],Ve=yt.length;for(var Ni=0;Ni<Ve;Ni++)s.push(yt[Ni])}else if(Dt==="justify"&&za.encoding==="Identity-H"){s=[],Ve=yt.length,Yt=Yt!==0?Yt:Ra;for(var un=0,Fe=0;Fe<Ve;Fe++)if(sr=Fe===0?an(j):-Li,er=Fe===0?Yr(v):un,Fe<Ve-1){var ta=k((Yt-br[Fe])/(yt[Fe].split(" ").length-1)),rr=yt[Fe].split(" ");s.push([rr[0]+" ",er,sr]),un=0;for(var yr=1;yr<rr.length;yr++){var Ai=(Un(rr[yr-1]+" "+rr[yr])-Un(rr[yr]))*Xr+ta;yr==rr.length-1?s.push([rr[yr],Ai,0]):s.push([rr[yr]+" ",Ai,0]),un-=Ai}}else s.push([yt[Fe],er,sr]);s.push(["",un,0])}else{if(Dt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(s=[],Ve=yt.length,Yt=Yt!==0?Yt:Ra,Fe=0;Fe<Ve;Fe++)sr=Fe===0?an(j):-Li,er=Fe===0?Yr(v):0,Fe<Ve-1?vn.push(tt(k((Yt-br[Fe])/(yt[Fe].split(" ").length-1)))):vn.push(0),s.push([yt[Fe],er,sr])}}var Ua=typeof T.R2L=="boolean"?T.R2L:qt;Ua===!0&&(s=Xi(s,(function(be,ye,Ie){return[be.split("").reverse().join(""),ye,Ie]}))),ut={text:s,x:v,y:j,options:T,mutex:{pdfEscape:ar,activeFontKey:ee,fonts:ge,activeFontSize:xt}},le.publish("postProcessText",ut),s=ut.text,Or=ut.mutex.isHex||!1;var ea=ge[ee].encoding;ea!=="WinAnsiEncoding"&&ea!=="StandardEncoding"||(s=Xi(s,(function(be,ye,Ie){return[Da(be),ye,Ie]}))),yt=Yi(s),s=[];for(var Hn,Wn,yn,Vn=0,xi=1,Gn=Array.isArray(yt[0])?xi:Vn,wn="",ra=function(be,ye,Ie){var Te="";return Ie instanceof zt?(Ie=typeof T.angle=="number"?Pr(Ie,new zt(1,0,0,1,be,ye)):Pr(new zt(1,0,0,1,be,ye),Ie),Y===B.ADVANCED&&(Ie=Pr(new zt(1,0,0,-1,0,0),Ie)),Te=Ie.join(" ")+` Tm
13
- `):Te=tt(be)+" "+tt(ye)+` Td
14
- `,Te},wr=0;wr<yt.length;wr++){switch(wn="",Gn){case xi:yn=(Or?"<":"(")+yt[wr][0]+(Or?">":")"),Hn=parseFloat(yt[wr][1]),Wn=parseFloat(yt[wr][2]);break;case Vn:yn=(Or?"<":"(")+yt[wr]+(Or?">":")"),Hn=Yr(v),Wn=an(j)}vn!==void 0&&vn[wr]!==void 0&&(wn=vn[wr]+` Tw
15
- `),wr===0?s.push(wn+ra(Hn,Wn,Se)+yn):Gn===Vn?s.push(wn+yn):Gn===xi&&s.push(wn+ra(Hn,Wn,Se)+yn)}s=Gn===Vn?s.join(` Tj
16
- T* `):s.join(` Tj
17
- `),s+=` Tj
18
- `;var Lr=`BT
19
- /`;return Lr+=ee+" "+xt+` Tf
20
- `,Lr+=tt(xt*fr)+` TL
21
- `,Lr+=Rn+`
22
- `,Lr+=ze,Lr+=s,E(Lr+="ET"),S[ee]=!0,Me};var Oo=p.__private__.clip=p.clip=function(s){return E(s==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Oo("evenodd")},p.__private__.discardPath=p.discardPath=function(){return E("n"),this};var Jr=p.__private__.isValidStyle=function(s){var v=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(s)!==-1&&(v=!0),v};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(s){return Jr(s)&&(g=s),this};var Ia=p.__private__.getStyle=p.getStyle=function(s){var v=g;switch(s){case"D":case"S":v="S";break;case"F":v="f";break;case"FD":case"DF":v="B";break;case"f":case"f*":case"B":case"B*":v=s}return v},Ca=p.close=function(){return E("h"),this};p.stroke=function(){return E("S"),this},p.fill=function(s){return hi("f",s),this},p.fillEvenOdd=function(s){return hi("f*",s),this},p.fillStroke=function(s){return hi("B",s),this},p.fillStrokeEvenOdd=function(s){return hi("B*",s),this};var hi=function(s,v){fe(v)==="object"?Mo(v,s):E(s)},Di=function(s){s===null||Y===B.ADVANCED&&s===void 0||(s=Ia(s),E(s))};function Bo(s,v,j,T,X){var ut=new Xn(v||this.boundingBox,j||this.xStep,T||this.yStep,this.gState,X||this.matrix);ut.stream=this.stream;var yt=s+"$$"+this.cloneIndex+++"$$";return ir(yt,ut),ut}var Mo=function(s,v){var j=Mn[s.key],T=ue[j];if(T instanceof In)E("q"),E(Eo(v)),T.gState&&p.setGState(T.gState),E(s.matrix.toString()+" cm"),E("/"+j+" sh"),E("Q");else if(T instanceof Xn){var X=new zt(1,0,0,-1,0,mn());s.matrix&&(X=X.multiply(s.matrix||Wr),j=Bo.call(T,s.key,s.boundingBox,s.xStep,s.yStep,X).id),E("q"),E("/Pattern cs"),E("/"+j+" scn"),T.gState&&p.setGState(T.gState),E(v),E("Q")}},Eo=function(s){switch(s){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Ti=p.moveTo=function(s,v){return E(tt(k(s))+" "+tt(D(v))+" m"),this},Dn=p.lineTo=function(s,v){return E(tt(k(s))+" "+tt(D(v))+" l"),this},pn=p.curveTo=function(s,v,j,T,X,ut){return E([tt(k(s)),tt(D(v)),tt(k(j)),tt(D(T)),tt(k(X)),tt(D(ut)),"c"].join(" ")),this};p.__private__.line=p.line=function(s,v,j,T,X){if(isNaN(s)||isNaN(v)||isNaN(j)||isNaN(T)||!Jr(X))throw new Error("Invalid arguments passed to jsPDF.line");return Y===B.COMPAT?this.lines([[j-s,T-v]],s,v,[1,1],X||"S"):this.lines([[j-s,T-v]],s,v,[1,1]).stroke()},p.__private__.lines=p.lines=function(s,v,j,T,X,ut){var yt,Ot,Dt,Zt,Yt,ne,Ne,Se,Me,Xe,ze,Or;if(typeof s=="number"&&(Or=j,j=v,v=s,s=Or),T=T||[1,1],ut=ut||!1,isNaN(v)||isNaN(j)||!Array.isArray(s)||!Array.isArray(T)||!Jr(X)||typeof ut!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ti(v,j),yt=T[0],Ot=T[1],Zt=s.length,Xe=v,ze=j,Dt=0;Dt<Zt;Dt++)(Yt=s[Dt]).length===2?(Xe=Yt[0]*yt+Xe,ze=Yt[1]*Ot+ze,Dn(Xe,ze)):(ne=Yt[0]*yt+Xe,Ne=Yt[1]*Ot+ze,Se=Yt[2]*yt+Xe,Me=Yt[3]*Ot+ze,Xe=Yt[4]*yt+Xe,ze=Yt[5]*Ot+ze,pn(ne,Ne,Se,Me,Xe,ze));return ut&&Ca(),Di(X),this},p.path=function(s){for(var v=0;v<s.length;v++){var j=s[v],T=j.c;switch(j.op){case"m":Ti(T[0],T[1]);break;case"l":Dn(T[0],T[1]);break;case"c":pn.apply(this,T);break;case"h":Ca()}}return this},p.__private__.rect=p.rect=function(s,v,j,T,X){if(isNaN(s)||isNaN(v)||isNaN(j)||isNaN(T)||!Jr(X))throw new Error("Invalid arguments passed to jsPDF.rect");return Y===B.COMPAT&&(T=-T),E([tt(k(s)),tt(D(v)),tt(k(j)),tt(k(T)),"re"].join(" ")),Di(X),this},p.__private__.triangle=p.triangle=function(s,v,j,T,X,ut,yt){if(isNaN(s)||isNaN(v)||isNaN(j)||isNaN(T)||isNaN(X)||isNaN(ut)||!Jr(yt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[j-s,T-v],[X-j,ut-T],[s-X,v-ut]],s,v,[1,1],yt,!0),this},p.__private__.roundedRect=p.roundedRect=function(s,v,j,T,X,ut,yt){if(isNaN(s)||isNaN(v)||isNaN(j)||isNaN(T)||isNaN(X)||isNaN(ut)||!Jr(yt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ot=4/3*(Math.SQRT2-1);return X=Math.min(X,.5*j),ut=Math.min(ut,.5*T),this.lines([[j-2*X,0],[X*Ot,0,X,ut-ut*Ot,X,ut],[0,T-2*ut],[0,ut*Ot,-X*Ot,ut,-X,ut],[2*X-j,0],[-X*Ot,0,-X,-ut*Ot,-X,-ut],[0,2*ut-T],[0,-ut*Ot,X*Ot,-ut,X,-ut]],s+X,v,[1,1],yt,!0),this},p.__private__.ellipse=p.ellipse=function(s,v,j,T,X){if(isNaN(s)||isNaN(v)||isNaN(j)||isNaN(T)||!Jr(X))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ut=4/3*(Math.SQRT2-1)*j,yt=4/3*(Math.SQRT2-1)*T;return Ti(s+j,v),pn(s+j,v-yt,s+ut,v-T,s,v-T),pn(s-ut,v-T,s-j,v-yt,s-j,v),pn(s-j,v+yt,s-ut,v+T,s,v+T),pn(s+ut,v+T,s+j,v+yt,s+j,v),Di(X),this},p.__private__.circle=p.circle=function(s,v,j,T){if(isNaN(s)||isNaN(v)||isNaN(j)||!Jr(T))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(s,v,j,j,T)},p.setFont=function(s,v,j){return j&&(v=wt(v,j)),ee=Pa(s,v,{disableWarning:!1}),this};var qo=p.__private__.getFont=p.getFont=function(){return ge[Pa.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var s,v,j={};for(s in Le)if(Le.hasOwnProperty(s))for(v in j[s]=[],Le[s])Le[s].hasOwnProperty(v)&&j[s].push(v);return j},p.addFont=function(s,v,j,T,X){var ut=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ut.indexOf(arguments[3])!==-1?X=arguments[3]:arguments[3]&&ut.indexOf(arguments[3])==-1&&(j=wt(j,T)),X=X||"Identity-H",Mi.call(this,s,v,j,X)};var Tn,Ri=n.lineWidth||.200025,fi=p.__private__.getLineWidth=p.getLineWidth=function(){return Ri},ja=p.__private__.setLineWidth=p.setLineWidth=function(s){return Ri=s,E(tt(k(s))+" w"),this};p.__private__.setLineDash=Rt.API.setLineDash=Rt.API.setLineDashPattern=function(s,v){if(s=s||[],v=v||0,isNaN(v)||!Array.isArray(s))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return s=s.map((function(j){return tt(k(j))})).join(" "),v=tt(k(v)),E("["+s+"] "+v+" d"),this};var Oa=p.__private__.getLineHeight=p.getLineHeight=function(){return xt*Tn};p.__private__.getLineHeight=p.getLineHeight=function(){return xt*Tn};var Ba=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(s){return typeof(s=s||1.15)=="number"&&(Tn=s),this},Ma=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Tn};Ba(n.lineHeight);var Yr=p.__private__.getHorizontalCoordinate=function(s){return k(s)},an=p.__private__.getVerticalCoordinate=function(s){return Y===B.ADVANCED?s:Jt[C].mediaBox.topRightY-Jt[C].mediaBox.bottomLeftY-k(s)},Do=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(s){return tt(Yr(s))},gn=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(s){return tt(an(s))},jr=n.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Fr(jr)},p.__private__.setStrokeColor=p.setDrawColor=function(s,v,j,T){return jr=Ir({ch1:s,ch2:v,ch3:j,ch4:T,pdfColorType:"draw",precision:2}),E(jr),this};var zi=n.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Fr(zi)},p.__private__.setFillColor=p.setFillColor=function(s,v,j,T){return zi=Ir({ch1:s,ch2:v,ch3:j,ch4:T,pdfColorType:"fill",precision:2}),E(zi),this};var Rn=n.textColor||"0 g",To=p.__private__.getTextColor=p.getTextColor=function(){return Fr(Rn)};p.__private__.setTextColor=p.setTextColor=function(s,v,j,T){return Rn=Ir({ch1:s,ch2:v,ch3:j,ch4:T,pdfColorType:"text",precision:3}),this};var di=n.charSpace,Ro=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(di||0)};p.__private__.setCharSpace=p.setCharSpace=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return di=s,this};var Ui=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(s){var v=p.CapJoinStyles[s];if(v===void 0)throw new Error("Line cap style of '"+s+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ui=v,E(v+" J"),this};var Hi=0;p.__private__.setLineJoin=p.setLineJoin=function(s){var v=p.CapJoinStyles[s];if(v===void 0)throw new Error("Line join style of '"+s+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Hi=v,E(v+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(s){if(s=s||0,isNaN(s))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return E(tt(k(s))+" M"),this},p.GState=ba,p.setGState=function(s){(s=typeof s=="string"?Ae[_r[s]]:Ea(null,s)).equals(en)||(E("/"+s.id+" gs"),en=s)};var Ea=function(s,v){if(!s||!_r[s]){var j=!1;for(var T in Ae)if(Ae.hasOwnProperty(T)&&Ae[T].equals(v)){j=!0;break}if(j)v=Ae[T];else{var X="GS"+(Object.keys(Ae).length+1).toString(10);Ae[X]=v,v.id=X}return s&&(_r[s]=v.id),le.publish("addGState",v),v}};p.addGState=function(s,v){return Ea(s,v),this},p.saveGraphicsState=function(){return E("q"),zr.push({key:ee,size:xt,color:Rn}),this},p.restoreGraphicsState=function(){E("Q");var s=zr.pop();return ee=s.key,xt=s.size,Rn=s.color,en=null,this},p.setCurrentTransformationMatrix=function(s){return E(s.toString()+" cm"),this},p.comment=function(s){return E("#"+s),this};var pi=function(s,v){var j=s||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return j},set:function(ut){isNaN(ut)||(j=parseFloat(ut))}});var T=v||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return T},set:function(ut){isNaN(ut)||(T=parseFloat(ut))}});var X="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return X},set:function(ut){X=ut.toString()}}),this},Wi=function(s,v,j,T){pi.call(this,s,v),this.type="rect";var X=j||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return X},set:function(yt){isNaN(yt)||(X=parseFloat(yt))}});var ut=T||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ut},set:function(yt){isNaN(yt)||(ut=parseFloat(yt))}}),this},Vi=function(){this.page=xe,this.currentPage=C,this.pages=Nt.slice(0),this.pagesContext=Jt.slice(0),this.x=Je,this.y=oe,this.matrix=Sr,this.width=zn(C),this.height=mn(C),this.outputDestination=_t,this.id="",this.objectNumber=-1};Vi.prototype.restore=function(){xe=this.page,C=this.currentPage,Jt=this.pagesContext,Nt=this.pages,Je=this.x,oe=this.y,Sr=this.matrix,Gi(C,this.width),Ji(C,this.height),_t=this.outputDestination};var qa=function(s,v,j,T,X){Hr.push(new Vi),xe=C=0,Nt=[],Je=s,oe=v,Sr=X,Ei([j,T])},zo=function(s){if(Ur[s])Hr.pop().restore();else{var v=new Vi,j="Xo"+(Object.keys(We).length+1).toString(10);v.id=j,Ur[s]=j,We[j]=v,le.publish("addFormObject",v),Hr.pop().restore()}};for(var gi in p.beginFormObject=function(s,v,j,T,X){return qa(s,v,j,T,X),this},p.endFormObject=function(s){return zo(s),this},p.doFormObject=function(s,v){var j=We[Ur[s]];return E("q"),E(v.toString()+" cm"),E("/"+j.id+" Do"),E("Q"),this},p.getFormObject=function(s){var v=We[Ur[s]];return{x:v.x,y:v.y,width:v.width,height:v.height,matrix:v.matrix}},p.save=function(s,v){return s=s||"generated.pdf",(v=v||{}).returnPromise=v.returnPromise||!1,v.returnPromise===!1?(Yn(li(nn()),s),typeof Yn.unload=="function"&&Ht.setTimeout&&setTimeout(Yn.unload,911),this):new Promise((function(j,T){try{var X=Yn(li(nn()),s);typeof Yn.unload=="function"&&Ht.setTimeout&&setTimeout(Yn.unload,911),j(X)}catch(ut){T(ut.message)}}))},Rt.API)Rt.API.hasOwnProperty(gi)&&(gi==="events"&&Rt.API.events.length?(function(s,v){var j,T,X;for(X=v.length-1;X!==-1;X--)j=v[X][0],T=v[X][1],s.subscribe.apply(s,[j].concat(typeof T=="function"?[T]:T))})(le,Rt.API.events):p[gi]=Rt.API[gi]);var zn=p.getPageWidth=function(s){return(Jt[s=s||C].mediaBox.topRightX-Jt[s].mediaBox.bottomLeftX)/jt},Gi=p.setPageWidth=function(s,v){Jt[s].mediaBox.topRightX=v*jt+Jt[s].mediaBox.bottomLeftX},mn=p.getPageHeight=function(s){return(Jt[s=s||C].mediaBox.topRightY-Jt[s].mediaBox.bottomLeftY)/jt},Ji=p.setPageHeight=function(s,v){Jt[s].mediaBox.topRightY=v*jt+Jt[s].mediaBox.bottomLeftY};return p.internal={pdfEscape:ar,getStyle:Ia,getFont:qo,getFontSize:kt,getCharSpace:Ro,getTextColor:To,getLineHeight:Oa,getLineHeightFactor:Ma,getLineWidth:fi,write:Kt,getHorizontalCoordinate:Yr,getVerticalCoordinate:an,getCoordinateString:Do,getVerticalCoordinateString:gn,collections:{},newObject:De,newAdditionalObject:ei,newObjectDeferred:Be,newObjectDeferredBegin:hr,getFilters:Vr,putStream:vr,events:le,scaleFactor:jt,pageSize:{getWidth:function(){return zn(C)},setWidth:function(s){Gi(C,s)},getHeight:function(){return mn(C)},setHeight:function(s){Ji(C,s)}},encryptionOptions:y,encryption:Ye,getEncryptor:Co,output:ci,getNumberOfPages:_o,pages:Nt,out:E,f2:dt,f3:P,getPageInfo:Fa,getPageInfoByObjId:Vt,getCurrentPageInfo:jo,getPDFVersion:F,Point:pi,Rectangle:Wi,Matrix:zt,hasHotfix:ka},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return zn(C)},set:function(s){Gi(C,s)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return mn(C)},set:function(s){Ji(C,s)},enumerable:!0,configurable:!0}),xo.call(p,Lt),ee="F1",Sa(u,r),le.publish("initialized"),p}ji.prototype.lsbFirstWord=function(n){return String.fromCharCode(n>>0&255,n>>8&255,n>>16&255,n>>24&255)},ji.prototype.toHexString=function(n){return n.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},ji.prototype.hexToBytes=function(n){for(var e=[],r=0;r<n.length;r+=2)e.push(String.fromCharCode(parseInt(n.substr(r,2),16)));return e.join("")},ji.prototype.processOwnerPassword=function(n,e){return As(Ns(e).substr(0,5),n)},ji.prototype.encryptor=function(n,e){var r=Ns(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return As(r,a)}},ba.prototype.equals=function(n){var e,r="id,objectNumber,equals";if(!n||fe(n)!==fe(this))return!1;var a=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!n.hasOwnProperty(e)||this[e]!==n[e])return!1;a++}for(e in n)n.hasOwnProperty(e)&&r.indexOf(e)<0&&a--;return a===0},Rt.API={events:[]},Rt.version="2.5.2";var Pe=Rt.API,Fs=1,ti=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ii=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Xt=function(n){return n.toFixed(2)},Fn=function(n){return n.toFixed(5)};Pe.__acroform__={};var cr=function(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n},cu=function(n){return n*Fs},Zr=function(n){var e=new Eu,r=Mt.internal.getHeight(n)||0,a=Mt.internal.getWidth(n)||0;return e.BBox=[0,0,Number(Xt(a)),Number(Xt(r))],e},Gl=Pe.__acroform__.setBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|=1<<e},Jl=Pe.__acroform__.clearBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&=~(1<<e)},Yl=Pe.__acroform__.getBit=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(n&1<<e)==0?0:1},Ce=Pe.__acroform__.getBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Yl(n,e-1)},je=Pe.__acroform__.setBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Gl(n,e-1)},Oe=Pe.__acroform__.clearBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Jl(n,e-1)},Xl=Pe.__acroform__.calculateCoordinates=function(n,e){var r=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,u=n[0],o=n[1],c=n[2],h=n[3],f={};return f.lowerLeft_X=r(u)||0,f.lowerLeft_Y=a(o+h)||0,f.upperRight_X=r(u+c)||0,f.upperRight_Y=a(o)||0,[Number(Xt(f.lowerLeft_X)),Number(Xt(f.lowerLeft_Y)),Number(Xt(f.upperRight_X)),Number(Xt(f.upperRight_Y))]},Kl=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var e=[],r=n._V||n.DV,a=xs(n,r),u=n.scope.internal.getFont(n.fontName,n.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.scope.__private__.encodeColorString(n.color)),e.push("/"+u+" "+Xt(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=Zr(n);return o.scope=n.scope,o.stream=e.join(`
23
- `),o}},xs=function(n,e){var r=n.fontSize===0?n.maxFontSize:n.fontSize,a={text:"",fontSize:""},u=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");u=n.multiline?u.map((function(P){return P.split(`
24
- `)})):u.map((function(P){return[P]}));var o=r,c=Mt.internal.getHeight(n)||0;c=c<0?-c:c;var h=Mt.internal.getWidth(n)||0;h=h<0?-h:h;var f=function(P,k,W){if(P+1<u.length){var D=k+" "+u[P+1][0];return co(D,n,W).width<=h-4}return!1};o++;t:for(;o>0;){e="",o--;var g,y,w=co("3",n,o).height,S=n.multiline?c-o:(c-w)/2,p=S+=2,O=0,F=0,q=0;if(o<=0){e=`(...) Tj
25
- `,e+="% Width of Text: "+co(e,n,o=12).width+", FieldWidth:"+h+`
26
- `;break}for(var _="",B=0,Y=0;Y<u.length;Y++)if(u.hasOwnProperty(Y)){var ot=!1;if(u[Y].length!==1&&q!==u[Y].length-1){if((w+2)*(B+2)+2>c)continue t;_+=u[Y][q],ot=!0,F=Y,Y--}else{_=(_+=u[Y][q]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var lt=parseInt(Y),wt=f(lt,_,o),tt=Y>=u.length-1;if(wt&&!tt){_+=" ",q=0;continue}if(wt||tt){if(tt)F=lt;else if(n.multiline&&(w+2)*(B+2)+2>c)continue t}else{if(!n.multiline||(w+2)*(B+2)+2>c)continue t;F=lt}}for(var z="",nt=O;nt<=F;nt++){var dt=u[nt];if(n.multiline){if(nt===F){z+=dt[q]+" ",q=(q+1)%dt.length;continue}if(nt===O){z+=dt[dt.length-1]+" ";continue}}z+=dt[0]+" "}switch(z=z.substr(z.length-1)==" "?z.substr(0,z.length-1):z,y=co(z,n,o).width,n.textAlign){case"right":g=h-y-2;break;case"center":g=(h-y)/2;break;default:g=2}e+=Xt(g)+" "+Xt(p)+` Td
27
- `,e+="("+ti(z)+`) Tj
28
- `,e+=-Xt(g)+` 0 Td
29
- `,p=-(o+2),y=0,O=ot?F:F+1,B++,_=""}break}return a.text=e,a.fontSize=o,a},co=function(n,e,r){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),u=e.scope.getStringUnitWidth(n,{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:u}},Zl={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},$l=function(n,e){var r={type:"reference",object:n};e.internal.getPageInfo(n.page).pageContext.annotations.find((function(a){return a.type===r.type&&a.object===r.object}))===void 0&&e.internal.getPageInfo(n.page).pageContext.annotations.push(r)},Ql=function(n,e){for(var r in n)if(n.hasOwnProperty(r)){var a=r,u=n[r];e.internal.newObjectDeferredBegin(u.objId,!0),fe(u)==="object"&&typeof u.putStream=="function"&&u.putStream(),delete n[a]}},tc=function(n,e){if(e.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(Zl)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Fs=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new qu,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",(function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(n)})),n.internal.events.subscribe("buildDocument",(function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var u in a)if(a.hasOwnProperty(u)){var o=a[u];o.objId=void 0,o.hasAnnotation&&$l(o,r)}})(n)})),n.internal.events.subscribe("putCatalog",(function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)})),n.internal.events.subscribe("postPutPages",(function(r){(function(a,u){var o=!a;for(var c in a||(u.internal.newObjectDeferredBegin(u.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),u.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||u.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(c)){var h=a[c],f=[],g=h.Rect;if(h.Rect&&(h.Rect=Xl(h.Rect,u)),u.internal.newObjectDeferredBegin(h.objId,!0),h.DA=Mt.createDefaultAppearanceStream(h),fe(h)==="object"&&typeof h.getKeyValueListForStream=="function"&&(f=h.getKeyValueListForStream()),h.Rect=g,h.hasAppearanceStream&&!h.appearanceStreamContent){var y=Kl(h);f.push({key:"AP",value:"<</N "+y+">>"}),u.internal.acroformPlugin.xForms.push(y)}if(h.appearanceStreamContent){var w="";for(var S in h.appearanceStreamContent)if(h.appearanceStreamContent.hasOwnProperty(S)){var p=h.appearanceStreamContent[S];if(w+="/"+S+" ",w+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var O=p[c];typeof O=="function"&&(O=O.call(u,h)),w+="/"+c+" "+O+" ",u.internal.acroformPlugin.xForms.indexOf(O)>=0||u.internal.acroformPlugin.xForms.push(O)}}else typeof(O=p)=="function"&&(O=O.call(u,h)),w+="/"+c+" "+O,u.internal.acroformPlugin.xForms.indexOf(O)>=0||u.internal.acroformPlugin.xForms.push(O);w+=">>"}f.push({key:"AP",value:`<<
30
- `+w+">>"})}u.internal.putStream({additionalKeyValues:f,objectId:h.objId}),u.internal.out("endobj")}o&&Ql(u.internal.acroformPlugin.xForms,u)})(r,n)})),n.internal.acroformPlugin.isInitialized=!0}},Mu=Pe.__acroform__.arrayToPdfArray=function(n,e,r){var a=function(c){return c};if(Array.isArray(n)){for(var u="[",o=0;o<n.length;o++)switch(o!==0&&(u+=" "),fe(n[o])){case"boolean":case"number":case"object":u+=n[o].toString();break;case"string":n[o].substr(0,1)!=="/"?(e!==void 0&&r&&(a=r.internal.getEncryptor(e)),u+="("+ti(a(n[o].toString()))+")"):u+=n[o].toString()}return u+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},fs=function(n,e,r){var a=function(u){return u};return e!==void 0&&r&&(a=r.internal.getEncryptor(e)),(n=n||"").toString(),n="("+ti(a(n))+")"},$r=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})};$r.prototype.toString=function(){return this.objId+" 0 R"},$r.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},$r.prototype.getKeyValueListForStream=function(){var n=[],e=Object.getOwnPropertyNames(this).filter((function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"}));for(var r in e)if(Object.getOwnPropertyDescriptor(this,e[r]).configurable===!1){var a=e[r],u=this[a];u&&(Array.isArray(u)?n.push({key:a,value:Mu(u,this.objId,this.scope)}):u instanceof $r?(u.scope=this.scope,n.push({key:a,value:u.objId+" 0 R"})):typeof u!="function"&&n.push({key:a,value:u}))}return n};var Eu=function(){$r.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,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){n=r.trim()},get:function(){return n||null}})};cr(Eu,$r);var qu=function(){$r.call(this);var n,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var r=function(a){return a};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+ti(r(n))+")"}},set:function(r){n=r}})};cr(qu,$r);var Tr=function n(){$r.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');e=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ce(e,3)},set:function(_){_?this.F=je(e,3):this.F=Oe(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');r=_}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(_){a=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(_){a[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(_){a[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(_){a[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(_){a[3]=_}});var u="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return u},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":u=_;break;default:throw new Error('Invalid value "'+_+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof po)return;o="FieldObject"+n.FieldNum++}var _=function(B){return B};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+ti(_(o))+")"},set:function(_){o=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(_){o=_}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(_){c=_}});var h="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return h},set:function(_){h=_}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(_){f=_}});var g=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return g===void 0?50/Fs:g},set:function(_){g=_}});var y="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return y},set:function(_){y=_}});var w="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!w||this instanceof po||this instanceof jn))return fs(w,this.objId,this.scope)},set:function(_){_=_.toString(),w=_}});var S=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(S)return this instanceof Re?S:fs(S,this.objId,this.scope)},set:function(_){_=_.toString(),S=this instanceof Re?_:_.substr(0,1)==="("?Ii(_.substr(1,_.length-2)):Ii(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Re?Ii(S.substr(1,S.length-1)):S},set:function(_){_=_.toString(),S=this instanceof Re?"/"+_:_}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Re?p:fs(p,this.objId,this.scope)},set:function(_){_=_.toString(),p=this instanceof Re?_:_.substr(0,1)==="("?Ii(_.substr(1,_.length-2)):Ii(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Re?Ii(p.substr(1,p.length-1)):p},set:function(_){_=_.toString(),p=this instanceof Re?"/"+_:_}}),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 O,F=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return F},set:function(_){_=!!_,F=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(O)return O},set:function(_){O=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,1)},set:function(_){_?this.Ff=je(this.Ff,1):this.Ff=Oe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,2)},set:function(_){_?this.Ff=je(this.Ff,2):this.Ff=Oe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,3)},set:function(_){_?this.Ff=je(this.Ff,3):this.Ff=Oe(this.Ff,3)}});var q=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(q!==null)return q},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');q=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(q){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:q=2;break;case"center":case 1:q=1;break;default:q=0}}})};cr(Tr,$r);var Kn=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(r){n=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(r){n=r}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Mu(e,this.objId,this.scope)},set:function(r){var a,u;u=[],typeof(a=r)=="string"&&(u=(function(o,c,h){h||(h=1);for(var f,g=[];f=c.exec(o);)g.push(f[h]);return g})(a,/\((.*?)\)/g)),e=u}}),this.getOptions=function(){return e},this.setOptions=function(r){e=r,this.sort&&e.sort()},this.addOption=function(r){r=(r=r||"").toString(),e.push(r),this.sort&&e.sort()},this.removeOption=function(r,a){for(a=a||!1,r=(r=r||"").toString();e.indexOf(r)!==-1&&(e.splice(e.indexOf(r),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,18)},set:function(r){r?this.Ff=je(this.Ff,18):this.Ff=Oe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=je(this.Ff,19):this.Ff=Oe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,20)},set:function(r){r?(this.Ff=je(this.Ff,20),e.sort()):this.Ff=Oe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,22)},set:function(r){r?this.Ff=je(this.Ff,22):this.Ff=Oe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,23)},set:function(r){r?this.Ff=je(this.Ff,23):this.Ff=Oe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,27)},set:function(r){r?this.Ff=je(this.Ff,27):this.Ff=Oe(this.Ff,27)}}),this.hasAppearanceStream=!1};cr(Kn,Tr);var Zn=function(){Kn.call(this),this.fontName="helvetica",this.combo=!1};cr(Zn,Kn);var $n=function(){Zn.call(this),this.combo=!0};cr($n,Zn);var da=function(){$n.call(this),this.edit=!0};cr(da,$n);var Re=function(){Tr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,15)},set:function(r){r?this.Ff=je(this.Ff,15):this.Ff=Oe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,16)},set:function(r){r?this.Ff=je(this.Ff,16):this.Ff=Oe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,17)},set:function(r){r?this.Ff=je(this.Ff,17):this.Ff=Oe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,26)},set:function(r){r?this.Ff=je(this.Ff,26):this.Ff=Oe(this.Ff,26)}});var n,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(o){return o};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var a,u=[];for(a in u.push("<<"),e)u.push("/"+a+" ("+ti(r(e[a]))+")");return u.push(">>"),u.join(`
31
- `)}},set:function(r){fe(r)==="object"&&(e=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(r){typeof r=="string"&&(e.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(r){n=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(r){n="/"+r}})};cr(Re,Tr);var pa=function(){Re.call(this),this.pushButton=!0};cr(pa,Re);var Qn=function(){Re.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e!==void 0?e:[]}})};cr(Qn,Re);var po=function(){var n,e;Tr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(u){n=u}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(u){e=u}});var r,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var u=function(h){return h};this.scope&&(u=this.scope.internal.getEncryptor(this.objId));var o,c=[];for(o in c.push("<<"),a)c.push("/"+o+" ("+ti(u(a[o]))+")");return c.push(">>"),c.join(`
32
- `)},set:function(u){fe(u)==="object"&&(a=u)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(u){typeof u=="string"&&(a.CA=u)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(u){r=u}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(u){r="/"+u}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};cr(po,Tr),Qn.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 e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=n.createAppearanceStream(r.optionName),r.caption=n.getCA()}},Qn.prototype.createOption=function(n){var e=new po;return e.Parent=this,e.optionName=n,this.Kids.push(e),ec.call(this.scope,e),e};var ga=function(){Re.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Mt.CheckBox.createAppearanceStream()};cr(ga,Re);var jn=function(){Tr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,13)},set:function(e){e?this.Ff=je(this.Ff,13):this.Ff=Oe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,21)},set:function(e){e?this.Ff=je(this.Ff,21):this.Ff=Oe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,23)},set:function(e){e?this.Ff=je(this.Ff,23):this.Ff=Oe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,24)},set:function(e){e?this.Ff=je(this.Ff,24):this.Ff=Oe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,25)},set:function(e){e?this.Ff=je(this.Ff,25):this.Ff=Oe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,26)},set:function(e){e?this.Ff=je(this.Ff,26):this.Ff=Oe(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){Number.isInteger(e)&&(n=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};cr(jn,Tr);var ma=function(){jn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ce(this.Ff,14)},set:function(n){n?this.Ff=je(this.Ff,14):this.Ff=Oe(this.Ff,14)}}),this.password=!0};cr(ma,jn);var Mt={CheckBox:{createAppearanceStream:function(){return{N:{On:Mt.CheckBox.YesNormal},D:{On:Mt.CheckBox.YesPushDown,Off:Mt.CheckBox.OffPushDown}}},YesPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,u=n.scope.__private__.encodeColorString(n.color),o=xs(n,n.caption);return r.push("0.749023 g"),r.push("0 0 "+Xt(Mt.internal.getWidth(n))+" "+Xt(Mt.internal.getHeight(n))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+a+" "+Xt(o.fontSize)+" Tf "+u),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join(`
33
- `),e},YesNormal:function(n){var e=Zr(n);e.scope=n.scope;var r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color),u=[],o=Mt.internal.getHeight(n),c=Mt.internal.getWidth(n),h=xs(n,n.caption);return u.push("1 g"),u.push("0 0 "+Xt(c)+" "+Xt(o)+" re"),u.push("f"),u.push("q"),u.push("0 0 1 rg"),u.push("0 0 "+Xt(c-1)+" "+Xt(o-1)+" re"),u.push("W"),u.push("n"),u.push("0 g"),u.push("BT"),u.push("/"+r+" "+Xt(h.fontSize)+" Tf "+a),u.push(h.text),u.push("ET"),u.push("Q"),e.stream=u.join(`
34
- `),e},OffPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(Mt.internal.getWidth(n))+" "+Xt(Mt.internal.getHeight(n))+" re"),r.push("f"),e.stream=r.join(`
35
- `),e}},RadioButton:{Circle:{createAppearanceStream:function(n){var e={D:{Off:Mt.RadioButton.Circle.OffPushDown},N:{}};return e.N[n]=Mt.RadioButton.Circle.YesNormal,e.D[n]=Mt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.getWidth(n)<=Mt.internal.getHeight(n)?Mt.internal.getWidth(n)/4:Mt.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var u=Mt.internal.Bezier_C,o=Number((a*u).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Fn(Mt.internal.getWidth(n)/2)+" "+Fn(Mt.internal.getHeight(n)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),r.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),r.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),r.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
36
- `),e},YesPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.getWidth(n)<=Mt.internal.getHeight(n)?Mt.internal.getWidth(n)/4:Mt.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var u=Number((2*a).toFixed(5)),o=Number((u*Mt.internal.Bezier_C).toFixed(5)),c=Number((a*Mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Fn(Mt.internal.getWidth(n)/2)+" "+Fn(Mt.internal.getHeight(n)/2)+" cm"),r.push(u+" 0 m"),r.push(u+" "+o+" "+o+" "+u+" 0 "+u+" c"),r.push("-"+o+" "+u+" -"+u+" "+o+" -"+u+" 0 c"),r.push("-"+u+" -"+o+" -"+o+" -"+u+" 0 -"+u+" c"),r.push(o+" -"+u+" "+u+" -"+o+" "+u+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Fn(Mt.internal.getWidth(n)/2)+" "+Fn(Mt.internal.getHeight(n)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+c+" "+c+" "+a+" 0 "+a+" c"),r.push("-"+c+" "+a+" -"+a+" "+c+" -"+a+" 0 c"),r.push("-"+a+" -"+c+" -"+c+" -"+a+" 0 -"+a+" c"),r.push(c+" -"+a+" "+a+" -"+c+" "+a+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
37
- `),e},OffPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.getWidth(n)<=Mt.internal.getHeight(n)?Mt.internal.getWidth(n)/4:Mt.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var u=Number((2*a).toFixed(5)),o=Number((u*Mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Fn(Mt.internal.getWidth(n)/2)+" "+Fn(Mt.internal.getHeight(n)/2)+" cm"),r.push(u+" 0 m"),r.push(u+" "+o+" "+o+" "+u+" 0 "+u+" c"),r.push("-"+o+" "+u+" -"+u+" "+o+" -"+u+" 0 c"),r.push("-"+u+" -"+o+" -"+o+" -"+u+" 0 -"+u+" c"),r.push(o+" -"+u+" "+u+" -"+o+" "+u+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
38
- `),e}},Cross:{createAppearanceStream:function(n){var e={D:{Off:Mt.RadioButton.Cross.OffPushDown},N:{}};return e.N[n]=Mt.RadioButton.Cross.YesNormal,e.D[n]=Mt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.calculateCross(n);return r.push("q"),r.push("1 1 "+Xt(Mt.internal.getWidth(n)-2)+" "+Xt(Mt.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(Xt(a.x1.x)+" "+Xt(a.x1.y)+" m"),r.push(Xt(a.x2.x)+" "+Xt(a.x2.y)+" l"),r.push(Xt(a.x4.x)+" "+Xt(a.x4.y)+" m"),r.push(Xt(a.x3.x)+" "+Xt(a.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
39
- `),e},YesPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=Mt.internal.calculateCross(n),a=[];return a.push("0.749023 g"),a.push("0 0 "+Xt(Mt.internal.getWidth(n))+" "+Xt(Mt.internal.getHeight(n))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Xt(Mt.internal.getWidth(n)-2)+" "+Xt(Mt.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(Xt(r.x1.x)+" "+Xt(r.x1.y)+" m"),a.push(Xt(r.x2.x)+" "+Xt(r.x2.y)+" l"),a.push(Xt(r.x4.x)+" "+Xt(r.x4.y)+" m"),a.push(Xt(r.x3.x)+" "+Xt(r.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join(`
40
- `),e},OffPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(Mt.internal.getWidth(n))+" "+Xt(Mt.internal.getHeight(n))+" re"),r.push("f"),e.stream=r.join(`
41
- `),e}}},createDefaultAppearanceStream:function(n){var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color);return"/"+e+" "+n.fontSize+" Tf "+r}};Mt.internal={Bezier_C:.551915024494,calculateCross:function(n){var e=Mt.internal.getWidth(n),r=Mt.internal.getHeight(n),a=Math.min(e,r);return{x1:{x:(e-a)/2,y:(r-a)/2+a},x2:{x:(e-a)/2+a,y:(r-a)/2},x3:{x:(e-a)/2,y:(r-a)/2},x4:{x:(e-a)/2+a,y:(r-a)/2+a}}}},Mt.internal.getWidth=function(n){var e=0;return fe(n)==="object"&&(e=cu(n.Rect[2])),e},Mt.internal.getHeight=function(n){var e=0;return fe(n)==="object"&&(e=cu(n.Rect[3])),e};var ec=Pe.addField=function(n){if(tc(this,n),!(n instanceof Tr))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=n).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};Pe.AcroFormChoiceField=Kn,Pe.AcroFormListBox=Zn,Pe.AcroFormComboBox=$n,Pe.AcroFormEditBox=da,Pe.AcroFormButton=Re,Pe.AcroFormPushButton=pa,Pe.AcroFormRadioButton=Qn,Pe.AcroFormCheckBox=ga,Pe.AcroFormTextField=jn,Pe.AcroFormPasswordField=ma,Pe.AcroFormAppearance=Mt,Pe.AcroForm={ChoiceField:Kn,ListBox:Zn,ComboBox:$n,EditBox:da,Button:Re,PushButton:pa,RadioButton:Qn,CheckBox:ga,TextField:jn,PasswordField:ma,Appearance:Mt},Rt.AcroForm={ChoiceField:Kn,ListBox:Zn,ComboBox:$n,EditBox:da,Button:Re,PushButton:pa,RadioButton:Qn,CheckBox:ga,TextField:jn,PasswordField:ma,Appearance:Mt};var rc=Rt.AcroForm;function Du(n){return n.reduce((function(e,r,a){return e[r]=a,e}),{})}(function(n){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(P,k){var W,D,st,it,ct,$=e;if((k=k||e)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(wt(P))for(ct in r)for(st=r[ct],W=0;W<st.length;W+=1){for(it=!0,D=0;D<st[W].length;D+=1)if(st[W][D]!==void 0&&st[W][D]!==P[D]){it=!1;break}if(it===!0){$=ct;break}}else for(ct in r)for(st=r[ct],W=0;W<st.length;W+=1){for(it=!0,D=0;D<st[W].length;D+=1)if(st[W][D]!==void 0&&st[W][D]!==P.charCodeAt(D)){it=!1;break}if(it===!0){$=ct;break}}return $===e&&k!==e&&($=k),$},u=function P(k){for(var W=this.internal.write,D=this.internal.putStream,st=(0,this.internal.getFilters)();st.indexOf("FlateEncode")!==-1;)st.splice(st.indexOf("FlateEncode"),1);k.objectId=this.internal.newObject();var it=[];if(it.push({key:"Type",value:"/XObject"}),it.push({key:"Subtype",value:"/Image"}),it.push({key:"Width",value:k.width}),it.push({key:"Height",value:k.height}),k.colorSpace===q.INDEXED?it.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(k.palette.length/3-1)+" "+("sMask"in k&&k.sMask!==void 0?k.objectId+2:k.objectId+1)+" 0 R]"}):(it.push({key:"ColorSpace",value:"/"+k.colorSpace}),k.colorSpace===q.DEVICE_CMYK&&it.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),it.push({key:"BitsPerComponent",value:k.bitsPerComponent}),"decodeParameters"in k&&k.decodeParameters!==void 0&&it.push({key:"DecodeParms",value:"<<"+k.decodeParameters+">>"}),"transparency"in k&&Array.isArray(k.transparency)){for(var ct="",$=0,ht=k.transparency.length;$<ht;$++)ct+=k.transparency[$]+" "+k.transparency[$]+" ";it.push({key:"Mask",value:"["+ct+"]"})}k.sMask!==void 0&&it.push({key:"SMask",value:k.objectId+1+" 0 R"});var pt=k.filter!==void 0?["/"+k.filter]:void 0;if(D({data:k.data,additionalKeyValues:it,alreadyAppliedFilters:pt,objectId:k.objectId}),W("endobj"),"sMask"in k&&k.sMask!==void 0){var It="/Predictor "+k.predictor+" /Colors 1 /BitsPerComponent "+k.bitsPerComponent+" /Columns "+k.width,N={width:k.width,height:k.height,colorSpace:"DeviceGray",bitsPerComponent:k.bitsPerComponent,decodeParameters:It,data:k.sMask};"filter"in k&&(N.filter=k.filter),P.call(this,N)}if(k.colorSpace===q.INDEXED){var C=this.internal.newObject();D({data:z(new Uint8Array(k.palette)),objectId:C}),W("endobj")}},o=function(){var P=this.internal.collections.addImage_images;for(var k in P)u.call(this,P[k])},c=function(){var P,k=this.internal.collections.addImage_images,W=this.internal.write;for(var D in k)W("/I"+(P=k[D]).index,P.objectId,"0","R")},h=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",c))},f=function(){var P=this.internal.collections.addImage_images;return h.call(this),P},g=function(){return Object.keys(this.internal.collections.addImage_images).length},y=function(P){return typeof n["process"+P.toUpperCase()]=="function"},w=function(P){return fe(P)==="object"&&P.nodeType===1},S=function(P,k){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var W=""+P.getAttribute("src");if(W.indexOf("data:image/")===0)return fa(unescape(W).split("base64,").pop());var D=n.loadFile(W,!0);if(D!==void 0)return D}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var st;switch(k){case"PNG":st="image/png";break;case"WEBP":st="image/webp";break;default:st="image/jpeg"}return fa(P.toDataURL(st,1).split("base64,").pop())}},p=function(P){var k=this.internal.collections.addImage_images;if(k){for(var W in k)if(P===k[W].alias)return k[W]}},O=function(P,k,W){return P||k||(P=-96,k=-96),P<0&&(P=-1*W.width*72/P/this.internal.scaleFactor),k<0&&(k=-1*W.height*72/k/this.internal.scaleFactor),P===0&&(P=k*W.width/W.height),k===0&&(k=P*W.height/W.width),[P,k]},F=function(P,k,W,D,st,it){var ct=O.call(this,W,D,st),$=this.internal.getCoordinateString,ht=this.internal.getVerticalCoordinateString,pt=f.call(this);if(W=ct[0],D=ct[1],pt[st.index]=st,it){it*=Math.PI/180;var It=Math.cos(it),N=Math.sin(it),C=function(R){return R.toFixed(4)},M=[C(It),C(N),C(-1*N),C(It),0,0,"cm"]}this.internal.write("q"),it?(this.internal.write([1,"0","0",1,$(P),ht(k+D),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([$(W),"0","0",$(D),"0","0","cm"].join(" "))):this.internal.write([$(W),"0","0",$(D),$(P),ht(k+D),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+st.index+" Do"),this.internal.write("Q")},q=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 _=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},B=n.__addimage__.sHashCode=function(P){var k,W,D=0;if(typeof P=="string")for(W=P.length,k=0;k<W;k++)D=(D<<5)-D+P.charCodeAt(k),D|=0;else if(wt(P))for(W=P.byteLength/2,k=0;k<W;k++)D=(D<<5)-D+P[k],D|=0;return D},Y=n.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var k=!0;return P.length===0&&(k=!1),P.length%4!=0&&(k=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(k=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(k=!1),k},ot=n.__addimage__.extractImageFromDataUrl=function(P){var k=(P=P||"").split("base64,"),W=null;if(k.length===2){var D=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(k[0]);Array.isArray(D)&&(W={mimeType:D[1],charset:D[2],data:k[1]})}return W},lt=n.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};n.__addimage__.isArrayBuffer=function(P){return lt()&&P instanceof ArrayBuffer};var wt=n.__addimage__.isArrayBufferView=function(P){return lt()&&typeof Uint32Array<"u"&&(P instanceof Int8Array||P instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array)},tt=n.__addimage__.binaryStringToUint8Array=function(P){for(var k=P.length,W=new Uint8Array(k),D=0;D<k;D++)W[D]=P.charCodeAt(D);return W},z=n.__addimage__.arrayBufferToBinaryString=function(P){for(var k="",W=wt(P)?P:new Uint8Array(P),D=0;D<W.length;D+=8192)k+=String.fromCharCode.apply(null,W.subarray(D,D+8192));return k};n.addImage=function(){var P,k,W,D,st,it,ct,$,ht;if(typeof arguments[1]=="number"?(k=e,W=arguments[1],D=arguments[2],st=arguments[3],it=arguments[4],ct=arguments[5],$=arguments[6],ht=arguments[7]):(k=arguments[1],W=arguments[2],D=arguments[3],st=arguments[4],it=arguments[5],ct=arguments[6],$=arguments[7],ht=arguments[8]),fe(P=arguments[0])==="object"&&!w(P)&&"imageData"in P){var pt=P;P=pt.imageData,k=pt.format||k||e,W=pt.x||W||0,D=pt.y||D||0,st=pt.w||pt.width||st,it=pt.h||pt.height||it,ct=pt.alias||ct,$=pt.compression||$,ht=pt.rotation||pt.angle||ht}var It=this.internal.getFilters();if($===void 0&&It.indexOf("FlateEncode")!==-1&&($="SLOW"),isNaN(W)||isNaN(D))throw new Error("Invalid coordinates passed to jsPDF.addImage");h.call(this);var N=nt.call(this,P,k,ct,$);return F.call(this,W,D,st,it,N,ht),this};var nt=function(P,k,W,D){var st,it,ct;if(typeof P=="string"&&a(P)===e){P=unescape(P);var $=dt(P,!1);($!==""||($=n.loadFile(P,!0))!==void 0)&&(P=$)}if(w(P)&&(P=S(P,k)),k=a(P,k),!y(k))throw new Error("addImage does not support files of type '"+k+"', please ensure that a plugin for '"+k+"' support is added.");if(((ct=W)==null||ct.length===0)&&(W=(function(ht){return typeof ht=="string"||wt(ht)?B(ht):wt(ht.data)?B(ht.data):null})(P)),(st=p.call(this,W))||(lt()&&(P instanceof Uint8Array||k==="RGBA"||(it=P,P=tt(P))),st=this["process"+k.toUpperCase()](P,g.call(this),W,(function(ht){return ht&&typeof ht=="string"&&(ht=ht.toUpperCase()),ht in n.image_compression?ht:_.NONE})(D),it)),!st)throw new Error("An unknown error occurred whilst processing the image.");return st},dt=n.__addimage__.convertBase64ToBinaryString=function(P,k){var W;k=typeof k!="boolean"||k;var D,st="";if(typeof P=="string"){D=(W=ot(P))!==null?W.data:P;try{st=fa(D)}catch(it){if(k)throw Y(D)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+it.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return st};n.getImageProperties=function(P){var k,W,D="";if(w(P)&&(P=S(P)),typeof P=="string"&&a(P)===e&&((D=dt(P,!1))===""&&(D=n.loadFile(P)||""),P=D),W=a(P),!y(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(!lt()||P instanceof Uint8Array||(P=tt(P)),!(k=this["process"+W.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return k.fileType=W,k}})(Rt.API),(function(n){var e=function(r){if(r!==void 0&&r!="")return!0};Rt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(r){for(var a,u,o,c=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(r.objId),g=r.pageContext.annotations,y=!1,w=0;w<g.length&&!y;w++)switch((a=g[w]).type){case"link":(e(a.options.url)||e(a.options.pageNumber))&&(y=!0);break;case"reference":case"text":case"freetext":y=!0}if(y!=0){this.internal.write("/Annots [");for(var S=0;S<g.length;S++){a=g[S];var p=this.internal.pdfEscape,O=this.internal.getEncryptor(r.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),q=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(F.objId),B=a.title||"Note";o="<</Type /Annot /Subtype /Text "+(u="/Rect ["+c(a.bounds.x)+" "+h(a.bounds.y+a.bounds.h)+" "+c(a.bounds.x+a.bounds.w)+" "+h(a.bounds.y)+"] ")+"/Contents ("+p(_(a.contents))+")",o+=" /Popup "+q.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+p(_(B))+") >>",F.content=o;var Y=F.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(u="/Rect ["+c(a.bounds.x+30)+" "+h(a.bounds.y+a.bounds.h)+" "+c(a.bounds.x+a.bounds.w+30)+" "+h(a.bounds.y)+"] ")+" /Parent "+Y,a.open&&(o+=" /Open true"),o+=" >>",q.content=o,this.internal.write(F.objId,"0 R",q.objId,"0 R");break;case"freetext":u="/Rect ["+c(a.bounds.x)+" "+h(a.bounds.y)+" "+c(a.bounds.x+a.bounds.w)+" "+h(a.bounds.y+a.bounds.h)+"] ";var ot=a.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+u+"/Contents ("+p(O(a.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ot+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(a.options.name){var lt=this.annotations._nameMap[a.options.name];a.options.pageNumber=lt.page,a.options.top=lt.y}else a.options.top||(a.options.top=0);if(u="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",o="",a.options.url)o="<</Type /Annot /Subtype /Link "+u+"/Border [0 0 0] /A <</S /URI /URI ("+p(O(a.options.url))+") >>";else if(a.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+u+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,o+=" /FitV "+a.options.left+"]";break;default:var wt=h(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),o+=" /XYZ "+a.options.left+" "+wt+" "+a.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),n.createAnnotation=function(r){var a=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":a.pageContext.annotations.push(r)}},n.link=function(r,a,u,o,c){var h=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;h.pageContext.annotations.push({finalBounds:{x:f(r),y:g(a),w:f(r+u),h:g(a+o)},options:c,type:"link"})},n.textWithLink=function(r,a,u,o){var c,h,f=this.getTextWidth(r),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){h=o.maxWidth;var y=this.splitTextToSize(r,h).length;c=Math.ceil(g*y)}else h=f,c=g;return this.text(r,a,u,o),u+=.2*g,o.align==="center"&&(a-=f/2),o.align==="right"&&(a-=f),this.link(a,u-g,h,c,o),f},n.getTextWidth=function(r){var a=this.internal.getFontSize();return this.getStringUnitWidth(r)*a/this.internal.scaleFactor}})(Rt.API),(function(n){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},u=[1570,1571,1573,1575];n.__arabicParser__={};var o=n.__arabicParser__.isInArabicSubstitutionA=function(F){return e[F.charCodeAt(0)]!==void 0},c=n.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},h=n.__arabicParser__.isArabicEndLetter=function(F){return c(F)&&o(F)&&e[F.charCodeAt(0)].length<=2},f=n.__arabicParser__.isArabicAlfLetter=function(F){return c(F)&&u.indexOf(F.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return c(F)&&o(F)&&e[F.charCodeAt(0)].length>=1};var g=n.__arabicParser__.arabicLetterHasFinalForm=function(F){return c(F)&&o(F)&&e[F.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(F){return c(F)&&o(F)&&e[F.charCodeAt(0)].length>=3};var y=n.__arabicParser__.arabicLetterHasMedialForm=function(F){return c(F)&&o(F)&&e[F.charCodeAt(0)].length==4},w=n.__arabicParser__.resolveLigatures=function(F){var q=0,_=r,B="",Y=0;for(q=0;q<F.length;q+=1)_[F.charCodeAt(q)]!==void 0?(Y++,typeof(_=_[F.charCodeAt(q)])=="number"&&(B+=String.fromCharCode(_),_=r,Y=0),q===F.length-1&&(_=r,B+=F.charAt(q-(Y-1)),q-=Y-1,Y=0)):(_=r,B+=F.charAt(q-Y),q-=Y,Y=0);return B};n.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&a[F.charCodeAt(0)]!==void 0};var S=n.__arabicParser__.getCorrectForm=function(F,q,_){return c(F)?o(F)===!1?-1:!g(F)||!c(q)&&!c(_)||!c(_)&&h(q)||h(F)&&!c(q)||h(F)&&f(q)||h(F)&&h(q)?0:y(F)&&c(q)&&!h(q)&&c(_)&&g(_)?3:h(F)||!c(_)?1:2:-1},p=function(F){var q=0,_=0,B=0,Y="",ot="",lt="",wt=(F=F||"").split("\\s+"),tt=[];for(q=0;q<wt.length;q+=1){for(tt.push(""),_=0;_<wt[q].length;_+=1)Y=wt[q][_],ot=wt[q][_-1],lt=wt[q][_+1],c(Y)?(B=S(Y,ot,lt),tt[q]+=B!==-1?String.fromCharCode(e[Y.charCodeAt(0)][B]):Y):tt[q]+=Y;tt[q]=w(tt[q])}return tt.join(" ")},O=n.__arabicParser__.processArabic=n.processArabic=function(){var F,q=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(q)){var B=0;for(_=[],B=0;B<q.length;B+=1)Array.isArray(q[B])?_.push([p(q[B][0]),q[B][1],q[B][2]]):_.push([p(q[B])]);F=_}else F=p(q);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};n.events.push(["preProcessText",O])})(Rt.API),Rt.API.autoPrint=function(n){var e;return((n=n||{}).variant=n.variant||"non-conform",n.variant)==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))),this},(function(n){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(h){r=h}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(h){a=isNaN(h)||Number.isInteger(h)===!1||h<0?150:h,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var u=300;Object.defineProperty(this,"height",{get:function(){return u},set:function(h){u=isNaN(h)||Number.isInteger(h)===!1||h<0?300:h,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=u+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(h){o=h}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(h){c=h}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(r,a){var u;if((r=r||"2d")!=="2d")return null;for(u in a)this.pdf.context2d.hasOwnProperty(u)&&(this.pdf.context2d[u]=a[u]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(Rt.API),(function(n){var e={left:0,top:0,bottom:0,right:0},r=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),u.call(this))},u=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(F){f=F}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(F){g=F}});var y=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return y},set:function(F){y=F}});var w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(F){w=F}});var S=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return S},set:function(F){S=F}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(F){p=F}});var O=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return O},set:function(F){O=F}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(f){return a.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},n.getTextDimensions=function(f,g){a.call(this);var y=(g=g||{}).fontSize||this.getFontSize(),w=g.font||this.getFont(),S=g.scaleFactor||this.internal.scaleFactor,p=0,O=0,F=0,q=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var _=g.maxWidth;_>0?typeof f=="string"?f=this.splitTextToSize(f,_):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce((function(Y,ot){return Y.concat(q.splitTextToSize(ot,_))}),[])):f=Array.isArray(f)?f:[f];for(var B=0;B<f.length;B++)p<(F=this.getStringUnitWidth(f[B],{font:w})*y)&&(p=F);return p!==0&&(O=f.length),{w:p/=S,h:Math.max((O*y*this.getLineHeightFactor()-y*(this.getLineHeightFactor()-1))/S,0)}},n.cellAddPage=function(){a.call(this),this.addPage();var f=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=n.cell=function(){var f;f=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var g=this.internal.__cell__.lastCell,y=this.internal.__cell__.padding,w=this.internal.__cell__.margins||e,S=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return g.lineNumber!==void 0&&(g.lineNumber===f.lineNumber?(f.x=(g.x||0)+(g.width||0),f.y=g.y||0):g.y+g.height+f.height+w.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=w.top,p&&S&&(this.printHeaderRow(f.lineNumber,!0),f.y+=S[0].height)):f.y=g.y+g.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,r===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-y,f.y+y,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+y,{align:"center",baseline:"top",maxWidth:f.width-y-y}):this.text(f.text,f.x+y,f.y+y,{align:"left",baseline:"top",maxWidth:f.width-y-y})),this.internal.__cell__.lastCell=f,this};n.table=function(f,g,y,w,S){if(a.call(this),!y)throw new Error("No data for PDF table.");var p,O,F,q,_=[],B=[],Y=[],ot={},lt={},wt=[],tt=[],z=(S=S||{}).autoSize||!1,nt=S.printHeaders!==!1,dt=S.css&&S.css["font-size"]!==void 0?16*S.css["font-size"]:S.fontSize||12,P=S.margins||Object.assign({width:this.getPageWidth()},e),k=typeof S.padding=="number"?S.padding:3,W=S.headerBackgroundColor||"#c8c8c8",D=S.headerTextColor||"#000";if(u.call(this),this.internal.__cell__.printHeaders=nt,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=dt,this.internal.__cell__.padding=k,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=D,this.setFontSize(dt),w==null)B=_=Object.keys(y[0]),Y=_.map((function(){return"left"}));else if(Array.isArray(w)&&fe(w[0])==="object")for(_=w.map((function(pt){return pt.name})),B=w.map((function(pt){return pt.prompt||pt.name||""})),Y=w.map((function(pt){return pt.align||"left"})),p=0;p<w.length;p+=1)lt[w[p].name]=w[p].width*(19.049976/25.4);else Array.isArray(w)&&typeof w[0]=="string"&&(B=_=w,Y=_.map((function(){return"left"})));if(z||Array.isArray(w)&&typeof w[0]=="string")for(p=0;p<_.length;p+=1){for(ot[q=_[p]]=y.map((function(pt){return pt[q]})),this.setFont(void 0,"bold"),wt.push(this.getTextDimensions(B[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),O=ot[q],this.setFont(void 0,"normal"),F=0;F<O.length;F+=1)wt.push(this.getTextDimensions(O[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);lt[q]=Math.max.apply(null,wt)+k+k,wt=[]}if(nt){var st={};for(p=0;p<_.length;p+=1)st[_[p]]={},st[_[p]].text=B[p],st[_[p]].align=Y[p];var it=h.call(this,st,lt);tt=_.map((function(pt){return new o(f,g,lt[pt],it,st[pt].text,void 0,st[pt].align)})),this.setTableHeaderRow(tt),this.printHeaderRow(1,!1)}var ct=w.reduce((function(pt,It){return pt[It.name]=It.align,pt}),{});for(p=0;p<y.length;p+=1){"rowStart"in S&&S.rowStart instanceof Function&&S.rowStart({row:p,data:y[p]},this);var $=h.call(this,y[p],lt);for(F=0;F<_.length;F+=1){var ht=y[p][_[F]];"cellStart"in S&&S.cellStart instanceof Function&&S.cellStart({row:p,col:F,data:ht},this),c.call(this,new o(f,g,lt[_[F]],$,ht,p+2,ct[_[F]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=g,this};var h=function(f,g){var y=this.internal.__cell__.padding,w=this.internal.__cell__.table_font_size,S=this.internal.scaleFactor;return Object.keys(f).map((function(p){var O=f[p];return this.splitTextToSize(O.hasOwnProperty("text")?O.text:O,g[p]-y-y)}),this).map((function(p){return this.getLineHeightFactor()*p.length*w/S+y+y}),this).reduce((function(p,O){return Math.max(p,O)}),0)};n.setTableHeaderRow=function(f){a.call(this),this.internal.__cell__.tableHeaderRow=f},n.printHeaderRow=function(f,g){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var y;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(w[0],w[1],w[2],w[3],void 0,-1)}this.setFont(void 0,"bold");for(var S=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){y=this.internal.__cell__.tableHeaderRow[p].clone(),g&&(y.y=this.internal.__cell__.margins.top||0,S.push(y)),y.lineNumber=f;var O=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,y),this.setTextColor(O)}S.length>0&&this.setTableHeaderRow(S),this.setFont(void 0,"normal"),r=!1}})(Rt.API);var Tu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ru=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ss=Du(Ru),zu=[100,200,300,400,500,600,700,800,900],nc=Du(zu);function _s(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),r=(function(o){return Tu[o=o||"normal"]?o:"normal"})(n.style),a=(function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400})(n.weight),u=(function(o){return typeof Ss[o=o||"normal"]=="number"?o:"normal"})(n.stretch);return{family:e,style:r,weight:a,stretch:u,src:n.src||[],ref:n.ref||{name:e,style:[u,r,a].join(" ")}}}function hu(n,e,r,a){var u;for(u=r;u>=0&&u<e.length;u+=a)if(n[e[u]])return n[e[u]];for(u=r;u>=0&&u<e.length;u-=a)if(n[e[u]])return n[e[u]]}var ic={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},fu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function du(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function ac(n,e,r){for(var a=(r=r||{}).defaultFontFamily||"times",u=Object.assign({},ic,r.genericFontFamilies||{}),o=null,c=null,h=0;h<e.length;++h)if(u[(o=_s(e[h])).family]&&(o.family=u[o.family]),n.hasOwnProperty(o.family)){c=n[o.family];break}if(!(c=c||n[a]))throw new Error("Could not find a font-family for the rule '"+du(o)+"' and default family '"+a+"'.");if(c=(function(f,g){if(g[f])return g[f];var y=Ss[f],w=y<=Ss.normal?-1:1,S=hu(g,Ru,y,w);if(!S)throw new Error("Could not find a matching font-stretch value for "+f);return S})(o.stretch,c),c=(function(f,g){if(g[f])return g[f];for(var y=Tu[f],w=0;w<y.length;++w)if(g[y[w]])return g[y[w]];throw new Error("Could not find a matching font-style for "+f)})(o.style,c),!(c=(function(f,g){if(g[f])return g[f];if(f===400&&g[500])return g[500];if(f===500&&g[400])return g[400];var y=nc[f],w=hu(g,zu,y,f<400?-1:1);if(!w)throw new Error("Could not find a matching font-weight for value "+f);return w})(o.weight,c)))throw new Error("Failed to resolve a font for the rule '"+du(o)+"'.");return c}function pu(n){return n.trimLeft()}function oc(n,e){for(var r=0;r<n.length;){if(n.charAt(r)===e)return[n.substring(0,r),n.substring(r+1)];r+=1}return null}function sc(n){var e=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],n.substring(e[0].length)]}var ho,gu,mu,ds=["times"];(function(n){var e,r,a,u,o,c,h,f,g,y=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new f,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new c,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new c,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new w(this),e=this.internal.f2,r=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,u=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,c=this.internal.Point,h=this.internal.Rectangle,f=this.internal.Matrix,g=new y}]);var w=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var C=N;Object.defineProperty(this,"pdf",{get:function(){return C}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(ft){M=!!ft}});var R=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return R},set:function(ft){R=!!ft}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(ft){isNaN(ft)||(J=ft)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(ft){isNaN(ft)||(Q=ft)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(ft){var E;typeof ft=="number"?E=[ft,ft,ft,ft]:((E=new Array(4))[0]=ft[0],E[1]=ft.length>=2?ft[1]:E[0],E[2]=ft.length>=3?ft[2]:E[0],E[3]=ft.length>=4?ft[3]:E[1]),g.margin=E}});var et=!1;Object.defineProperty(this,"autoPaging",{get:function(){return et},set:function(ft){et=ft}});var rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return rt},set:function(ft){rt=ft}});var At=[];Object.defineProperty(this,"pageBreaks",{get:function(){return At},set:function(ft){At=ft}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(ft){ft instanceof y&&(g=ft)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(ft){g.path=ft}});var Nt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Nt},set:function(ft){Nt=ft}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ft){var E;E=S(ft),this.ctx.fillStyle=E.style,this.ctx.isFillTransparent=E.a===0,this.ctx.fillOpacity=E.a,this.pdf.setFillColor(E.r,E.g,E.b,{a:E.a}),this.pdf.setTextColor(E.r,E.g,E.b,{a:E.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ft){var E=S(ft);this.ctx.strokeStyle=E.style,this.ctx.isStrokeTransparent=E.a===0,this.ctx.strokeOpacity=E.a,E.a===0?this.pdf.setDrawColor(255,255,255):(E.a,this.pdf.setDrawColor(E.r,E.g,E.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ft){["butt","round","square"].indexOf(ft)!==-1&&(this.ctx.lineCap=ft,this.pdf.setLineCap(ft))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ft){isNaN(ft)||(this.ctx.lineWidth=ft,this.pdf.setLineWidth(ft))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ft){["bevel","round","miter"].indexOf(ft)!==-1&&(this.ctx.lineJoin=ft,this.pdf.setLineJoin(ft))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ft){isNaN(ft)||(this.ctx.miterLimit=ft,this.pdf.setMiterLimit(ft))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ft){this.ctx.textBaseline=ft}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ft){["right","end","center","left","start"].indexOf(ft)!==-1&&(this.ctx.textAlign=ft)}});var Ft=null;function _t(ft,E){if(Ft===null){var Kt=(function(Et){var Lt=[];return Object.keys(Et).forEach((function(xt){Et[xt].forEach((function(Ct){var kt=null;switch(Ct){case"bold":kt={family:xt,weight:"bold"};break;case"italic":kt={family:xt,style:"italic"};break;case"bolditalic":kt={family:xt,weight:"bold",style:"italic"};break;case"":case"normal":kt={family:xt}}kt!==null&&(kt.ref={name:xt,style:Ct},Lt.push(kt))}))})),Lt})(ft.getFontList());Ft=(function(Et){for(var Lt={},xt=0;xt<Et.length;++xt){var Ct=_s(Et[xt]),kt=Ct.family,qt=Ct.stretch,Gt=Ct.style,Qt=Ct.weight;Lt[kt]=Lt[kt]||{},Lt[kt][qt]=Lt[kt][qt]||{},Lt[kt][qt][Gt]=Lt[kt][qt][Gt]||{},Lt[kt][qt][Gt][Qt]=Ct}return Lt})(Kt.concat(E))}return Ft}var Ut=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ut},set:function(ft){Ft=null,Ut=ft}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ft){var E;if(this.ctx.font=ft,(E=/^\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-z]+?)\s*$/i.exec(ft))!==null){var Kt=E[1],Et=(E[2],E[3]),Lt=E[4],xt=(E[5],E[6]),Ct=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Lt)[2];Lt=Math.floor(Ct==="px"?parseFloat(Lt)*this.pdf.internal.scaleFactor:Ct==="em"?parseFloat(Lt)*this.pdf.getFontSize():parseFloat(Lt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Lt);var kt=(function(Wt){var ee,jt,Je=[],oe=Wt.trim();if(oe==="")return ds;if(oe in fu)return[fu[oe]];for(;oe!=="";){switch(jt=null,ee=(oe=pu(oe)).charAt(0)){case'"':case"'":jt=oc(oe.substring(1),ee);break;default:jt=sc(oe)}if(jt===null||(Je.push(jt[0]),(oe=pu(jt[1]))!==""&&oe.charAt(0)!==","))return ds;oe=oe.replace(/^,/,"")}return Je})(xt);if(this.fontFaces){var qt=ac(_t(this.pdf,this.fontFaces),kt.map((function(Wt){return{family:Wt,stretch:"normal",weight:Et,style:Kt}})));this.pdf.setFont(qt.ref.name,qt.ref.style)}else{var Gt="";(Et==="bold"||parseInt(Et,10)>=700||Kt==="bold")&&(Gt="bold"),Kt==="italic"&&(Gt+="italic"),Gt.length===0&&(Gt="normal");for(var Qt="",te={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"},ie=0;ie<kt.length;ie++){if(this.pdf.internal.getFont(kt[ie],Gt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=kt[ie];break}if(Gt==="bolditalic"&&this.pdf.internal.getFont(kt[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=kt[ie],Gt="bold";else if(this.pdf.internal.getFont(kt[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=kt[ie],Gt="normal";break}}if(Qt===""){for(var de=0;de<kt.length;de++)if(te[kt[de]]){Qt=te[kt[de]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Gt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ft){this.ctx.globalCompositeOperation=ft}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ft){this.ctx.globalAlpha=ft}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ft){this.ctx.lineDashOffset=ft,It.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ft){this.ctx.lineDash=ft,It.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ft){this.ctx.ignoreClearRect=!!ft}})};w.prototype.setLineDash=function(N){this.lineDash=N},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){ot.call(this,"fill",!1)},w.prototype.stroke=function(){ot.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(N,C){if(isNaN(N)||isNaN(C))throw ve.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new c(N,C));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new c(N,C)},w.prototype.closePath=function(){var N=new c(0,0),C=0;for(C=this.path.length-1;C!==-1;C--)if(this.path[C].type==="begin"&&fe(this.path[C+1])==="object"&&typeof this.path[C+1].x=="number"){N=new c(this.path[C+1].x,this.path[C+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(N.x,N.y)},w.prototype.lineTo=function(N,C){if(isNaN(N)||isNaN(C))throw ve.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new c(N,C));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new c(M.x,M.y)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ot.call(this,null,!0)},w.prototype.quadraticCurveTo=function(N,C,M,R){if(isNaN(M)||isNaN(R)||isNaN(N)||isNaN(C))throw ve.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new c(M,R)),Q=this.ctx.transform.applyToPoint(new c(N,C));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:J.x,y:J.y}),this.ctx.lastPoint=new c(J.x,J.y)},w.prototype.bezierCurveTo=function(N,C,M,R,J,Q){if(isNaN(J)||isNaN(Q)||isNaN(N)||isNaN(C)||isNaN(M)||isNaN(R))throw ve.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var et=this.ctx.transform.applyToPoint(new c(J,Q)),rt=this.ctx.transform.applyToPoint(new c(N,C)),At=this.ctx.transform.applyToPoint(new c(M,R));this.path.push({type:"bct",x1:rt.x,y1:rt.y,x2:At.x,y2:At.y,x:et.x,y:et.y}),this.ctx.lastPoint=new c(et.x,et.y)},w.prototype.arc=function(N,C,M,R,J,Q){if(isNaN(N)||isNaN(C)||isNaN(M)||isNaN(R)||isNaN(J))throw ve.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=!!Q,!this.ctx.transform.isIdentity){var et=this.ctx.transform.applyToPoint(new c(N,C));N=et.x,C=et.y;var rt=this.ctx.transform.applyToPoint(new c(0,M)),At=this.ctx.transform.applyToPoint(new c(0,0));M=Math.sqrt(Math.pow(rt.x-At.x,2)+Math.pow(rt.y-At.y,2))}Math.abs(J-R)>=2*Math.PI&&(R=0,J=2*Math.PI),this.path.push({type:"arc",x:N,y:C,radius:M,startAngle:R,endAngle:J,counterclockwise:Q})},w.prototype.arcTo=function(N,C,M,R,J){throw new Error("arcTo not implemented.")},w.prototype.rect=function(N,C,M,R){if(isNaN(N)||isNaN(C)||isNaN(M)||isNaN(R))throw ve.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,C),this.lineTo(N+M,C),this.lineTo(N+M,C+R),this.lineTo(N,C+R),this.lineTo(N,C),this.lineTo(N+M,C),this.lineTo(N,C)},w.prototype.fillRect=function(N,C,M,R){if(isNaN(N)||isNaN(C)||isNaN(M)||isNaN(R))throw ve.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.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(N,C,M,R),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},w.prototype.strokeRect=function(N,C,M,R){if(isNaN(N)||isNaN(C)||isNaN(M)||isNaN(R))throw ve.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");O.call(this)||(this.beginPath(),this.rect(N,C,M,R),this.stroke())},w.prototype.clearRect=function(N,C,M,R){if(isNaN(N)||isNaN(C)||isNaN(M)||isNaN(R))throw ve.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,C,M,R))},w.prototype.save=function(N){N=typeof N!="boolean"||N;for(var C=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(C),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var R=new y(this.ctx);this.ctxStack.push(this.ctx),this.ctx=R}},w.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var C=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(C),N&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},w.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var S=function(N){var C,M,R,J;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))C=0,M=0,R=0,J=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(Q!==null)C=parseInt(Q[1]),M=parseInt(Q[2]),R=parseInt(Q[3]),J=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)C=parseInt(Q[1]),M=parseInt(Q[2]),R=parseInt(Q[3]),J=parseFloat(Q[4]);else{if(J=1,typeof N=="string"&&N.charAt(0)!=="#"){var et=new ju(N);N=et.ok?et.toHex():"#000000"}N.length===4?(C=N.substring(1,2),C+=C,M=N.substring(2,3),M+=M,R=N.substring(3,4),R+=R):(C=N.substring(1,3),M=N.substring(3,5),R=N.substring(5,7)),C=parseInt(C,16),M=parseInt(M,16),R=parseInt(R,16)}}return{r:C,g:M,b:R,a:J,style:N}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},O=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};w.prototype.fillText=function(N,C,M,R){if(isNaN(C)||isNaN(M)||typeof N!="string")throw ve.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(R=isNaN(R)?void 0:R,!p.call(this)){var J=$(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:N,x:C,y:M,scale:Q,angle:J,align:this.textAlign,maxWidth:R})}},w.prototype.strokeText=function(N,C,M,R){if(isNaN(C)||isNaN(M)||typeof N!="string")throw ve.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!O.call(this)){R=isNaN(R)?void 0:R;var J=$(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:N,x:C,y:M,scale:Q,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:R})}},w.prototype.measureText=function(N){if(typeof N!="string")throw ve.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var C=this.pdf,M=this.pdf.internal.scaleFactor,R=C.internal.getFontSize(),J=C.getStringUnitWidth(N)*R/C.internal.scaleFactor,Q=function(et){var rt=(et=et||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return rt}}),this};return new Q({width:J*=Math.round(96*M/72*1e4)/1e4})},w.prototype.scale=function(N,C){if(isNaN(N)||isNaN(C))throw ve.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new f(N,0,0,C,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.rotate=function(N){if(isNaN(N))throw ve.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var C=new f(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(C)},w.prototype.translate=function(N,C){if(isNaN(N)||isNaN(C))throw ve.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new f(1,0,0,1,N,C);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.transform=function(N,C,M,R,J,Q){if(isNaN(N)||isNaN(C)||isNaN(M)||isNaN(R)||isNaN(J)||isNaN(Q))throw ve.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var et=new f(N,C,M,R,J,Q);this.ctx.transform=this.ctx.transform.multiply(et)},w.prototype.setTransform=function(N,C,M,R,J,Q){N=isNaN(N)?1:N,C=isNaN(C)?0:C,M=isNaN(M)?0:M,R=isNaN(R)?1:R,J=isNaN(J)?0:J,Q=isNaN(Q)?0:Q,this.ctx.transform=new f(N,C,M,R,J,Q)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(N,C,M,R,J,Q,et,rt,At){var Nt=this.pdf.getImageProperties(N),Ft=1,_t=1,Ut=1,ft=1;R!==void 0&&rt!==void 0&&(Ut=rt/R,ft=At/J,Ft=Nt.width/R*rt/R,_t=Nt.height/J*At/J),Q===void 0&&(Q=C,et=M,C=0,M=0),R!==void 0&&rt===void 0&&(rt=R,At=J),R===void 0&&rt===void 0&&(rt=Nt.width,At=Nt.height);for(var E,Kt=this.ctx.transform.decompose(),Et=$(Kt.rotate.shx),Lt=new f,xt=(Lt=(Lt=(Lt=Lt.multiply(Kt.translate)).multiply(Kt.skew)).multiply(Kt.scale)).applyToRectangle(new h(Q-C*Ut,et-M*ft,R*Ft,J*_t)),Ct=q.call(this,xt),kt=[],qt=0;qt<Ct.length;qt+=1)kt.indexOf(Ct[qt])===-1&&kt.push(Ct[qt]);if(Y(kt),this.autoPaging)for(var Gt=kt[0],Qt=kt[kt.length-1],te=Gt;te<Qt+1;te++){this.pdf.setPage(te);var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],de=te===1?this.posY+this.margin[0]:this.margin[0],Wt=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],jt=te===1?0:Wt+(te-2)*ee;if(this.ctx.clip_path.length!==0){var Je=this.path;E=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(E,this.posX+this.margin[3],-jt+de+this.ctx.prevPageLastElemOffset),lt.call(this,"fill",!0),this.path=Je}var oe=JSON.parse(JSON.stringify(xt));oe=B([oe],this.posX+this.margin[3],-jt+de+this.ctx.prevPageLastElemOffset)[0];var Sr=(te>Gt||te<Qt)&&F.call(this);Sr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,ee,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",oe.x,oe.y,oe.w,oe.h,null,null,Et),Sr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",xt.x,xt.y,xt.w,xt.h,null,null,Et)};var q=function(N,C,M){var R=[];C=C||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(N.type){default:case"mt":case"lt":R.push(Math.floor((N.y+J)/M)+1);break;case"arc":R.push(Math.floor((N.y+J-N.radius)/M)+1),R.push(Math.floor((N.y+J+N.radius)/M)+1);break;case"qct":var Q=ht(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);R.push(Math.floor((Q.y+J)/M)+1),R.push(Math.floor((Q.y+Q.h+J)/M)+1);break;case"bct":var et=pt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);R.push(Math.floor((et.y+J)/M)+1),R.push(Math.floor((et.y+et.h+J)/M)+1);break;case"rect":R.push(Math.floor((N.y+J)/M)+1),R.push(Math.floor((N.y+N.h+J)/M)+1)}for(var rt=0;rt<R.length;rt+=1)for(;this.pdf.internal.getNumberOfPages()<R[rt];)_.call(this);return R},_=function(){var N=this.fillStyle,C=this.strokeStyle,M=this.font,R=this.lineCap,J=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=C,this.font=M,this.lineCap=R,this.lineWidth=J,this.lineJoin=Q},B=function(N,C,M){for(var R=0;R<N.length;R++)switch(N[R].type){case"bct":N[R].x2+=C,N[R].y2+=M;case"qct":N[R].x1+=C,N[R].y1+=M;default:N[R].x+=C,N[R].y+=M}return N},Y=function(N){return N.sort((function(C,M){return C-M}))},ot=function(N,C){for(var M,R,J=this.fillStyle,Q=this.strokeStyle,et=this.lineCap,rt=this.lineWidth,At=Math.abs(rt*this.ctx.transform.scaleX),Nt=this.lineJoin,Ft=JSON.parse(JSON.stringify(this.path)),_t=JSON.parse(JSON.stringify(this.path)),Ut=[],ft=0;ft<_t.length;ft++)if(_t[ft].x!==void 0)for(var E=q.call(this,_t[ft]),Kt=0;Kt<E.length;Kt+=1)Ut.indexOf(E[Kt])===-1&&Ut.push(E[Kt]);for(var Et=0;Et<Ut.length;Et++)for(;this.pdf.internal.getNumberOfPages()<Ut[Et];)_.call(this);if(Y(Ut),this.autoPaging)for(var Lt=Ut[0],xt=Ut[Ut.length-1],Ct=Lt;Ct<xt+1;Ct++){this.pdf.setPage(Ct),this.fillStyle=J,this.strokeStyle=Q,this.lineCap=et,this.lineWidth=At,this.lineJoin=Nt;var kt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=Ct===1?this.posY+this.margin[0]:this.margin[0],Gt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=Ct===1?0:Gt+(Ct-2)*Qt;if(this.ctx.clip_path.length!==0){var ie=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(M,this.posX+this.margin[3],-te+qt+this.ctx.prevPageLastElemOffset),lt.call(this,N,!0),this.path=ie}if(R=JSON.parse(JSON.stringify(Ft)),this.path=B(R,this.posX+this.margin[3],-te+qt+this.ctx.prevPageLastElemOffset),C===!1||Ct===0){var de=(Ct>Lt||Ct<xt)&&F.call(this);de&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],kt,Qt,null).clip().discardPath()),lt.call(this,N,C),de&&this.pdf.restoreGraphicsState()}this.lineWidth=rt}else this.lineWidth=At,lt.call(this,N,C),this.lineWidth=rt;this.path=Ft},lt=function(N,C){if((N!=="stroke"||C||!O.call(this))&&(N==="stroke"||C||!p.call(this))){for(var M,R,J=[],Q=this.path,et=0;et<Q.length;et++){var rt=Q[et];switch(rt.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:rt,deltas:[],abs:[]});break;case"lt":var At=J.length;if(Q[et-1]&&!isNaN(Q[et-1].x)&&(M=[rt.x-Q[et-1].x,rt.y-Q[et-1].y],At>0)){for(;At>=0;At--)if(J[At-1].close!==!0&&J[At-1].begin!==!0){J[At-1].deltas.push(M),J[At-1].abs.push(rt);break}}break;case"bct":M=[rt.x1-Q[et-1].x,rt.y1-Q[et-1].y,rt.x2-Q[et-1].x,rt.y2-Q[et-1].y,rt.x-Q[et-1].x,rt.y-Q[et-1].y],J[J.length-1].deltas.push(M);break;case"qct":var Nt=Q[et-1].x+2/3*(rt.x1-Q[et-1].x),Ft=Q[et-1].y+2/3*(rt.y1-Q[et-1].y),_t=rt.x+2/3*(rt.x1-rt.x),Ut=rt.y+2/3*(rt.y1-rt.y),ft=rt.x,E=rt.y;M=[Nt-Q[et-1].x,Ft-Q[et-1].y,_t-Q[et-1].x,Ut-Q[et-1].y,ft-Q[et-1].x,E-Q[et-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(rt)}}R=C?null:N==="stroke"?"stroke":"fill";for(var Kt=!1,Et=0;Et<J.length;Et++)if(J[Et].arc)for(var Lt=J[Et].abs,xt=0;xt<Lt.length;xt++){var Ct=Lt[xt];Ct.type==="arc"?z.call(this,Ct.x,Ct.y,Ct.radius,Ct.startAngle,Ct.endAngle,Ct.counterclockwise,void 0,C,!Kt):W.call(this,Ct.x,Ct.y),Kt=!0}else if(J[Et].close===!0)this.pdf.internal.out("h"),Kt=!1;else if(J[Et].begin!==!0){var kt=J[Et].start.x,qt=J[Et].start.y;D.call(this,J[Et].deltas,kt,qt),Kt=!0}R&&nt.call(this,R),C&&dt.call(this)}},wt=function(N){var C=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=C*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-M;case"top":return N+C-M;case"hanging":return N+C-2*M;case"middle":return N+C/2-M;case"ideographic":return N;default:return N}},tt=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(C,M){this.colorStops.push([C,M])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var z=function(N,C,M,R,J,Q,et,rt,At){for(var Nt=it.call(this,M,R,J,Q),Ft=0;Ft<Nt.length;Ft++){var _t=Nt[Ft];Ft===0&&(At?P.call(this,_t.x1+N,_t.y1+C):W.call(this,_t.x1+N,_t.y1+C)),st.call(this,N,C,_t.x2,_t.y2,_t.x3,_t.y3,_t.x4,_t.y4)}rt?dt.call(this):nt.call(this,et)},nt=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},dt=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(N,C){this.pdf.internal.out(r(N)+" "+a(C)+" m")},k=function(N){var C;switch(N.align){case"right":case"end":C="right";break;case"center":C="center";break;default:C="left"}var M=this.pdf.getTextDimensions(N.text),R=wt.call(this,N.y),J=tt.call(this,R)-M.h,Q=this.ctx.transform.applyToPoint(new c(N.x,R)),et=this.ctx.transform.decompose(),rt=new f;rt=(rt=(rt=rt.multiply(et.translate)).multiply(et.skew)).multiply(et.scale);for(var At,Nt,Ft,_t=this.ctx.transform.applyToRectangle(new h(N.x,R,M.w,M.h)),Ut=rt.applyToRectangle(new h(N.x,J,M.w,M.h)),ft=q.call(this,Ut),E=[],Kt=0;Kt<ft.length;Kt+=1)E.indexOf(ft[Kt])===-1&&E.push(ft[Kt]);if(Y(E),this.autoPaging)for(var Et=E[0],Lt=E[E.length-1],xt=Et;xt<Lt+1;xt++){this.pdf.setPage(xt);var Ct=xt===1?this.posY+this.margin[0]:this.margin[0],kt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qt=this.pdf.internal.pageSize.height-this.margin[2],Gt=qt-this.margin[0],Qt=this.pdf.internal.pageSize.width-this.margin[1],te=Qt-this.margin[3],ie=xt===1?0:kt+(xt-2)*Gt;if(this.ctx.clip_path.length!==0){var de=this.path;At=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(At,this.posX+this.margin[3],-1*ie+Ct),lt.call(this,"fill",!0),this.path=de}var Wt=B([JSON.parse(JSON.stringify(Ut))],this.posX+this.margin[3],-ie+Ct+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*N.scale),Ft=this.lineWidth,this.lineWidth=Ft*N.scale);var ee=this.autoPaging!=="text";if(ee||Wt.y+Wt.h<=qt){if(ee||Wt.y>=Ct&&Wt.x<=Qt){var jt=ee?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||Qt-Wt.x)[0],Je=B([JSON.parse(JSON.stringify(_t))],this.posX+this.margin[3],-ie+Ct+this.ctx.prevPageLastElemOffset)[0],oe=ee&&(xt>Et||xt<Lt)&&F.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,Gt,null).clip().discardPath()),this.pdf.text(jt,Je.x,Je.y,{angle:N.angle,align:C,renderingMode:N.renderingMode}),oe&&this.pdf.restoreGraphicsState()}}else Wt.y<qt&&(this.ctx.prevPageLastElemOffset+=qt-Wt.y);N.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=Ft)}else N.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*N.scale),Ft=this.lineWidth,this.lineWidth=Ft*N.scale),this.pdf.text(N.text,Q.x+this.posX,Q.y+this.posY,{angle:N.angle,align:C,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=Ft)},W=function(N,C,M,R){M=M||0,R=R||0,this.pdf.internal.out(r(N+M)+" "+a(C+R)+" l")},D=function(N,C,M){return this.pdf.lines(N,C,M,null,null)},st=function(N,C,M,R,J,Q,et,rt){this.pdf.internal.out([e(u(M+N)),e(o(R+C)),e(u(J+N)),e(o(Q+C)),e(u(et+N)),e(o(rt+C)),"c"].join(" "))},it=function(N,C,M,R){for(var J=2*Math.PI,Q=Math.PI/2;C>M;)C-=J;var et=Math.abs(M-C);et<J&&R&&(et=J-et);for(var rt=[],At=R?-1:1,Nt=C;et>1e-5;){var Ft=Nt+At*Math.min(et,Q);rt.push(ct.call(this,N,Nt,Ft)),et-=Math.abs(Ft-Nt),Nt=Ft}return rt},ct=function(N,C,M){var R=(M-C)/2,J=N*Math.cos(R),Q=N*Math.sin(R),et=J,rt=-Q,At=et*et+rt*rt,Nt=At+et*J+rt*Q,Ft=4/3*(Math.sqrt(2*At*Nt)-Nt)/(et*Q-rt*J),_t=et-Ft*rt,Ut=rt+Ft*et,ft=_t,E=-Ut,Kt=R+C,Et=Math.cos(Kt),Lt=Math.sin(Kt);return{x1:N*Math.cos(C),y1:N*Math.sin(C),x2:_t*Et-Ut*Lt,y2:_t*Lt+Ut*Et,x3:ft*Et-E*Lt,y3:ft*Lt+E*Et,x4:N*Math.cos(M),y4:N*Math.sin(M)}},$=function(N){return 180*N/Math.PI},ht=function(N,C,M,R,J,Q){var et=N+.5*(M-N),rt=C+.5*(R-C),At=J+.5*(M-J),Nt=Q+.5*(R-Q),Ft=Math.min(N,J,et,At),_t=Math.max(N,J,et,At),Ut=Math.min(C,Q,rt,Nt),ft=Math.max(C,Q,rt,Nt);return new h(Ft,Ut,_t-Ft,ft-Ut)},pt=function(N,C,M,R,J,Q,et,rt){var At,Nt,Ft,_t,Ut,ft,E,Kt,Et,Lt,xt,Ct,kt,qt,Gt=M-N,Qt=R-C,te=J-M,ie=Q-R,de=et-J,Wt=rt-Q;for(Nt=0;Nt<41;Nt++)Et=(E=(Ft=N+(At=Nt/40)*Gt)+At*((Ut=M+At*te)-Ft))+At*(Ut+At*(J+At*de-Ut)-E),Lt=(Kt=(_t=C+At*Qt)+At*((ft=R+At*ie)-_t))+At*(ft+At*(Q+At*Wt-ft)-Kt),Nt==0?(xt=Et,Ct=Lt,kt=Et,qt=Lt):(xt=Math.min(xt,Et),Ct=Math.min(Ct,Lt),kt=Math.max(kt,Et),qt=Math.max(qt,Lt));return new h(Math.round(xt),Math.round(Ct),Math.round(kt-xt),Math.round(qt-Ct))},It=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,C,M=(N=this.ctx.lineDash,C=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:C}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(Rt.API),(function(n){var e=function(o){var c,h,f,g,y,w,S,p,O,F;for(h=[],f=0,g=(o+=c="\0\0\0\0".slice(o.length%4||4)).length;g>f;f+=4)(y=(o.charCodeAt(f)<<24)+(o.charCodeAt(f+1)<<16)+(o.charCodeAt(f+2)<<8)+o.charCodeAt(f+3))!==0?(w=(y=((y=((y=((y=(y-(F=y%85))/85)-(O=y%85))/85)-(p=y%85))/85)-(S=y%85))/85)%85,h.push(w+33,S+33,p+33,O+33,F+33)):h.push(122);return(function(q,_){for(var B=_;B>0;B--)q.pop()})(h,c.length),String.fromCharCode.apply(String,h)+"~>"},r=function(o){var c,h,f,g,y,w=String,S="length",p=255,O="charCodeAt",F="slice",q="replace";for(o[F](-2),o=o[F](0,-2)[q](/\s/g,"")[q]("z","!!!!!"),f=[],g=0,y=(o+=c="uuuuu"[F](o[S]%5||5))[S];y>g;g+=5)h=52200625*(o[O](g)-33)+614125*(o[O](g+1)-33)+7225*(o[O](g+2)-33)+85*(o[O](g+3)-33)+(o[O](g+4)-33),f.push(p&h>>24,p&h>>16,p&h>>8,p&h);return(function(_,B){for(var Y=B;Y>0;Y--)_.pop()})(f,c[S]),w.fromCharCode.apply(w,f)},a=function(o){var c=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),c.test(o)===!1)return"";for(var h="",f=0;f<o.length;f+=2)h+=String.fromCharCode("0x"+(o[f]+o[f+1]));return h},u=function(o){for(var c=new Uint8Array(o.length),h=o.length;h--;)c[h]=o.charCodeAt(h);return o=(c=ws(c)).reduce((function(f,g){return f+String.fromCharCode(g)}),"")};n.processDataByFilters=function(o,c){var h=0,f=o||"",g=[];for(typeof(c=c||[])=="string"&&(c=[c]),h=0;h<c.length;h+=1)switch(c[h]){case"ASCII85Decode":case"/ASCII85Decode":f=r(f),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=e(f),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=a(f),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=f.split("").map((function(y){return("0"+y.charCodeAt().toString(16)).slice(-2)})).join("")+">",g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=u(f),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+c[h]+'" is not implemented')}return{data:f,reverseChain:g.reverse().join(" ")}}})(Rt.API),(function(n){n.loadFile=function(e,r,a){return(function(u,o,c){o=o!==!1,c=typeof c=="function"?c:function(){};var h=void 0;try{h=(function(f,g,y){var w=new XMLHttpRequest,S=0,p=function(O){var F=O.length,q=[],_=String.fromCharCode;for(S=0;S<F;S+=1)q.push(_(255&O.charCodeAt(S)));return q.join("")};if(w.open("GET",f,!g),w.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(w.onload=function(){w.status===200?y(p(this.responseText)):y(void 0)}),w.send(null),g&&w.status===200)return p(w.responseText)})(u,o,c)}catch{}return h})(e,r,a)},n.loadImageFile=n.loadFile})(Rt.API),(function(n){function e(){return(Ht.html2canvas?Promise.resolve(Ht.html2canvas):gs(()=>import("./chunk-html2canvas.esm.js"),[],import.meta.url)).catch((function(c){return Promise.reject(new Error("Could not load html2canvas: "+c))})).then((function(c){return c.default?c.default:c}))}function r(){return(Ht.DOMPurify?Promise.resolve(Ht.DOMPurify):gs(()=>import("./chunk-purify.es.js"),[],import.meta.url)).catch((function(c){return Promise.reject(new Error("Could not load dompurify: "+c))})).then((function(c){return c.default?c.default:c}))}var a=function(c){var h=fe(c);return h==="undefined"?"undefined":h==="string"||c instanceof String?"string":h==="number"||c instanceof Number?"number":h==="function"||c instanceof Function?"function":c&&c.constructor===Array?"array":c&&c.nodeType===1?"element":h==="object"?"object":"unknown"},u=function(c,h){var f=document.createElement(c);for(var g in h.className&&(f.className=h.className),h.innerHTML&&h.dompurify&&(f.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)f.style[g]=h.style[g];return f},o=function c(h){var f=Object.assign(c.convert(Promise.resolve()),JSON.parse(JSON.stringify(c.template))),g=c.convert(Promise.resolve(),f);return g=(g=g.setProgress(1,c,1,[c])).set(h)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(c,h){return c.__proto__=h||o.prototype,c},o.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"}},o.prototype.from=function(c,h){return this.then((function(){switch(h=h||(function(f){switch(a(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(c)){case"string":return this.then(r).then((function(f){return this.set({src:u("div",{innerHTML:c,dompurify:f})})}));case"element":return this.set({src:c});case"canvas":return this.set({canvas:c});case"img":return this.set({img:c});default:return this.error("Unknown source type.")}}))},o.prototype.to=function(c){switch(c){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.")}},o.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 c={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},h=(function f(g,y){for(var w=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),S=g.firstChild;S;S=S.nextSibling)y!==!0&&S.nodeType===1&&S.nodeName==="SCRIPT"||w.appendChild(f(S,y));return g.nodeType===1&&(g.nodeName==="CANVAS"?(w.width=g.width,w.height=g.height,w.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(w.value=g.value),w.addEventListener("load",(function(){w.scrollTop=g.scrollTop,w.scrollLeft=g.scrollLeft}),!0)),w})(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(c.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=u("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=u("div",{className:"html2pdf__container",style:c}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(u("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"}))},o.prototype.toCanvas=function(){var c=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(c).then(e).then((function(h){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,h(this.prop.container,f)})).then((function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},o.prototype.toContext2d=function(){var c=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(c).then(e).then((function(h){var f=this.opt.jsPDF,g=this.opt.fontFaces,y=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,w=Object.assign({async:!0,allowTaint:!0,scale:y,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete w.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=g,g)for(var S=0;S<g.length;++S){var p=g[S],O=p.src.find((function(F){return F.format==="truetype"}));O&&f.addFont(O.url,p.ref.name,p.ref.style)}return w.windowHeight=w.windowHeight||0,w.windowHeight=w.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):w.windowHeight,f.context2d.save(!0),h(this.prop.container,w)})).then((function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var c=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=c}))},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},o.prototype.output=function(c,h,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(c,h):this.outputPdf(c,h)},o.prototype.outputPdf=function(c,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(c,h)}))},o.prototype.outputImg=function(c){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(c){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 "'+c+'" is not supported.'}}))},o.prototype.save=function(c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(c?{filename:c}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},o.prototype.set=function(c){if(a(c)!=="object")return this;var h=Object.keys(c||{}).map((function(f){if(f in o.template.prop)return function(){this.prop[f]=c[f]};switch(f){case"margin":return this.setMargin.bind(this,c.margin);case"jsPDF":return function(){return this.opt.jsPDF=c.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,c.pageSize);default:return function(){this.opt[f]=c[f]}}}),this);return this.then((function(){return this.thenList(h)}))},o.prototype.get=function(c,h){return this.then((function(){var f=c in o.template.prop?this.prop[c]:this.opt[c];return h?h(f):f}))},o.prototype.setMargin=function(c){return this.then((function(){switch(a(c)){case"number":c=[c,c,c,c];case"array":if(c.length===2&&(c=[c[0],c[1],c[0],c[1]]),c.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=c})).then(this.setPageSize)},o.prototype.setPageSize=function(c){function h(f,g){return Math.floor(f*g/72*96)}return this.then((function(){(c=c||Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(c.inner={width:c.width-this.opt.margin[1]-this.opt.margin[3],height:c.height-this.opt.margin[0]-this.opt.margin[2]},c.inner.px={width:h(c.inner.width,c.k),height:h(c.inner.height,c.k)},c.inner.ratio=c.inner.height/c.inner.width),this.prop.pageSize=c}))},o.prototype.setProgress=function(c,h,f,g){return c!=null&&(this.progress.val=c),h!=null&&(this.progress.state=h),f!=null&&(this.progress.n=f),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(c,h,f,g){return this.setProgress(c?this.progress.val+c:null,h||null,f?this.progress.n+f:null,g?this.progress.stack.concat(g):null)},o.prototype.then=function(c,h){var f=this;return this.thenCore(c,h,(function(g,y){return f.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,(function(w){return f.updateProgress(null,g),w})).then(g,y).then((function(w){return f.updateProgress(1),w}))}))},o.prototype.thenCore=function(c,h,f){f=f||Promise.prototype.then,c&&(c=c.bind(this)),h&&(h=h.bind(this));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),y=f.call(g,c,h);return o.convert(y,this.__proto__)},o.prototype.thenExternal=function(c,h){return Promise.prototype.then.call(this,c,h)},o.prototype.thenList=function(c){var h=this;return c.forEach((function(f){h=h.thenCore(f)})),h},o.prototype.catch=function(c){c&&(c=c.bind(this));var h=Promise.prototype.catch.call(this,c);return o.convert(h,this)},o.prototype.catchExternal=function(c){return Promise.prototype.catch.call(this,c)},o.prototype.error=function(c){return this.then((function(){throw new Error(c)}))},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Rt.getPageSize=function(c,h,f){if(fe(c)==="object"){var g=c;c=g.orientation,h=g.unit||h,f=g.format||f}h=h||"mm",f=f||"a4",c=(""+(c||"P")).toLowerCase();var y,w=(""+f).toLowerCase(),S={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(h){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+h}var p,O=0,F=0;if(S.hasOwnProperty(w))O=S[w][1]/y,F=S[w][0]/y;else try{O=f[1],F=f[0]}catch{throw new Error("Invalid format: "+f)}if(c==="p"||c==="portrait")c="p",F>O&&(p=F,F=O,O=p);else{if(c!=="l"&&c!=="landscape")throw"Invalid orientation: "+c;c="l",O>F&&(p=F,F=O,O=p)}return{width:F,height:O,unit:h,k:y,orientation:c}},n.html=function(c,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(_s):null;var f=new o(h);return h.worker?f:f.from(c).doCallback()}})(Rt.API),Rt.API.addJS=function(n){return mu=n,this.internal.events.subscribe("postPutResources",(function(){ho=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ho+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),gu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+mu+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){ho!==void 0&&gu!==void 0&&this.internal.out("/Names <</JavaScript "+ho+" 0 R>>")})),this},(function(n){var e;n.events.push(["postPutResources",function(){var r=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var u=r.outline.render().split(/\r\n/),o=0;o<u.length;o++){var c=u[o],h=a.exec(c);if(h!=null){var f=h[1];r.internal.newObjectDeferredBegin(f,!1)}r.internal.write(c)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,y=[];for(o=0;o<g;o++){var w=r.internal.newObject();y.push(w);var S=r.internal.getPageInfo(o+1);r.internal.write("<< /D["+S.objId+" 0 R /XYZ null null null]>> endobj")}var p=r.internal.newObject();for(r.internal.write("<< /Names [ "),o=0;o<y.length;o++)r.internal.write("(page_"+(o+1)+")"+y[o]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+p+" 0 R"),r.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(a,u,o){var c={title:u,options:o,children:[]};return a==null&&(a=this.root),a.children.push(c),c},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(a){a.id=r.internal.newObjectDeferred();for(var u=0;u<a.children.length;u++)this.genIds_r(a.children[u])},r.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},r.outline.renderItems=function(a){for(var u=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<a.children.length;o++){var c=a.children[o];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(a)),o>0&&this.line("/Prev "+this.makeRef(a.children[o-1])),o<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[o+1])),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1])));var h=this.count=this.count_r({count:0},c);if(h>0&&this.line("/Count "+h),c.options&&c.options.pageNumber){var f=r.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+u(0)+" 0]")}this.objEnd()}for(var g=0;g<a.children.length;g++)this.renderItems(a.children[g])},r.outline.line=function(a){this.ctx.val+=a+`\r
42
- `},r.outline.makeRef=function(a){return a.id+" 0 R"},r.outline.makeString=function(a){return"("+r.internal.pdfEscape(a)+")"},r.outline.objStart=function(a){this.ctx.val+=`\r
43
- `+a.id+` 0 obj\r
2
+ import{_ as mo}from"./app.js";function xe(n){"@babel/helpers - typeof";return xe=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},xe(n)}var Qn=Uint8Array,Mn=Uint16Array,Ko=Int32Array,Xo=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]),$o=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]),Bl=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ku=function(n,t){for(var e=new Mn(31),i=0;i<31;++i)e[i]=t+=1<<n[i-1];for(var o=new Ko(e[30]),i=1;i<30;++i)for(var a=e[i];a<e[i+1];++a)o[a]=a-e[i]<<5|i;return{b:e,r:o}},Xu=Ku(Xo,2),Nh=Xu.b,To=Xu.r;Nh[28]=258,To[258]=28;var Lh=Ku($o,0),Ml=Lh.r,Do=new Mn(32768);for(var Ee=0;Ee<32768;++Ee){var Jr=(Ee&43690)>>1|(Ee&21845)<<1;Jr=(Jr&52428)>>2|(Jr&13107)<<2,Jr=(Jr&61680)>>4|(Jr&3855)<<4,Do[Ee]=((Jr&65280)>>8|(Jr&255)<<8)>>1}var Fa=(function(n,t,e){for(var i=n.length,o=0,a=new Mn(t);o<i;++o)n[o]&&++a[n[o]-1];var c=new Mn(t);for(o=1;o<t;++o)c[o]=c[o-1]+a[o-1]<<1;var l;if(e){l=new Mn(1<<t);var h=15-t;for(o=0;o<i;++o)if(n[o])for(var d=o<<4|n[o],m=t-n[o],_=c[n[o]-1]++<<m,k=_|(1<<m)-1;_<=k;++_)l[Do[_]>>h]=d}else for(l=new Mn(i),o=0;o<i;++o)n[o]&&(l[o]=Do[c[n[o]-1]++]>>15-n[o]);return l}),Li=new Qn(288);for(var Ee=0;Ee<144;++Ee)Li[Ee]=8;for(var Ee=144;Ee<256;++Ee)Li[Ee]=9;for(var Ee=256;Ee<280;++Ee)Li[Ee]=7;for(var Ee=280;Ee<288;++Ee)Li[Ee]=8;var Is=new Qn(32);for(var Ee=0;Ee<32;++Ee)Is[Ee]=5;var Sh=Fa(Li,9,0),kh=Fa(Is,5,0),$u=function(n){return(n+7)/8|0},Ph=function(n,t,e){return(e==null||e>n.length)&&(e=n.length),new Qn(n.subarray(t,e))},Cr=function(n,t,e){e<<=t&7;var i=t/8|0;n[i]|=e,n[i+1]|=e>>8},Pa=function(n,t,e){e<<=t&7;var i=t/8|0;n[i]|=e,n[i+1]|=e>>8,n[i+2]|=e>>16},vo=function(n,t){for(var e=[],i=0;i<n.length;++i)n[i]&&e.push({s:i,f:n[i]});var o=e.length,a=e.slice();if(!o)return{t:Qu,l:0};if(o==1){var c=new Qn(e[0].s+1);return c[e[0].s]=1,{t:c,l:1}}e.sort(function(it,vt){return it.f-vt.f}),e.push({s:-1,f:25001});var l=e[0],h=e[1],d=0,m=1,_=2;for(e[0]={s:-1,f:l.f+h.f,l,r:h};m!=o-1;)l=e[e[d].f<e[_].f?d++:_++],h=e[d!=m&&e[d].f<e[_].f?d++:_++],e[m++]={s:-1,f:l.f+h.f,l,r:h};for(var k=a[0].s,i=1;i<o;++i)a[i].s>k&&(k=a[i].s);var p=new Mn(k+1),j=qo(e[m-1],p,0);if(j>t){var i=0,O=0,M=j-t,S=1<<M;for(a.sort(function(vt,dt){return p[dt.s]-p[vt.s]||vt.f-dt.f});i<o;++i){var V=a[i].s;if(p[V]>t)O+=S-(1<<j-p[V]),p[V]=t;else break}for(O>>=M;O>0;){var G=a[i].s;p[G]<t?O-=1<<t-p[G]++-1:++i}for(;i>=0&&O;--i){var q=a[i].s;p[q]==t&&(--p[q],++O)}j=t}return{t:new Qn(p),l:j}},qo=function(n,t,e){return n.s==-1?Math.max(qo(n.l,t,e+1),qo(n.r,t,e+1)):t[n.s]=e},Rl=function(n){for(var t=n.length;t&&!n[--t];);for(var e=new Mn(++t),i=0,o=n[0],a=1,c=function(h){e[i++]=h},l=1;l<=t;++l)if(n[l]==o&&l!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)c(32754);a>2&&(c(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(c(o),--a;a>6;a-=6)c(8304);a>2&&(c(a-3<<5|8208),a=0)}for(;a--;)c(o);a=1,o=n[l]}return{c:e.subarray(0,i),n:t}},Ia=function(n,t){for(var e=0,i=0;i<t.length;++i)e+=n[i]*t[i];return e},Zu=function(n,t,e){var i=e.length,o=$u(t+2);n[o]=i&255,n[o+1]=i>>8,n[o+2]=n[o]^255,n[o+3]=n[o+1]^255;for(var a=0;a<i;++a)n[o+a+4]=e[a];return(o+4+i)*8},Tl=function(n,t,e,i,o,a,c,l,h,d,m){Cr(t,m++,e),++o[256];for(var _=vo(o,15),k=_.t,p=_.l,j=vo(a,15),O=j.t,M=j.l,S=Rl(k),V=S.c,G=S.n,q=Rl(O),it=q.c,vt=q.n,dt=new Mn(19),X=0;X<V.length;++X)++dt[V[X]&31];for(var X=0;X<it.length;++X)++dt[it[X]&31];for(var R=vo(dt,7),tt=R.t,N=R.l,E=19;E>4&&!tt[Bl[E-1]];--E);var z=d+5<<3,U=Ia(o,Li)+Ia(a,Is)+c,rt=Ia(o,k)+Ia(a,O)+c+14+3*E+Ia(dt,tt)+2*dt[16]+3*dt[17]+7*dt[18];if(h>=0&&z<=U&&z<=rt)return Zu(t,m,n.subarray(h,h+d));var ot,ft,nt,ct;if(Cr(t,m,1+(rt<U)),m+=2,rt<U){ot=Fa(k,p,0),ft=k,nt=Fa(O,M,0),ct=O;var At=Fa(tt,N,0);Cr(t,m,G-257),Cr(t,m+5,vt-1),Cr(t,m+10,E-4),m+=14;for(var X=0;X<E;++X)Cr(t,m+3*X,tt[Bl[X]]);m+=3*E;for(var wt=[V,it],x=0;x<2;++x)for(var B=wt[x],X=0;X<B.length;++X){var T=B[X]&31;Cr(t,m,At[T]),m+=tt[T],T>15&&(Cr(t,m,B[X]>>5&127),m+=B[X]>>12)}}else ot=Sh,ft=Li,nt=kh,ct=Is;for(var X=0;X<l;++X){var H=i[X];if(H>255){var T=H>>18&31;Pa(t,m,ot[T+257]),m+=ft[T+257],T>7&&(Cr(t,m,H>>23&31),m+=Xo[T]);var J=H&31;Pa(t,m,nt[J]),m+=ct[J],J>3&&(Pa(t,m,H>>5&8191),m+=$o[J])}else Pa(t,m,ot[H]),m+=ft[H]}return Pa(t,m,ot[256]),m+ft[256]},Ih=new Ko([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Qu=new Qn(0),Fh=function(n,t,e,i,o,a){var c=a.z||n.length,l=new Qn(i+c+5*(1+Math.ceil(c/7e3))+o),h=l.subarray(i,l.length-o),d=a.l,m=(a.r||0)&7;if(t){m&&(h[0]=a.r>>3);for(var _=Ih[t-1],k=_>>13,p=_&8191,j=(1<<e)-1,O=a.p||new Mn(32768),M=a.h||new Mn(j+1),S=Math.ceil(e/3),V=2*S,G=function(Dt){return(n[Dt]^n[Dt+1]<<S^n[Dt+2]<<V)&j},q=new Ko(25e3),it=new Mn(288),vt=new Mn(32),dt=0,X=0,R=a.i||0,tt=0,N=a.w||0,E=0;R+2<c;++R){var z=G(R),U=R&32767,rt=M[z];if(O[U]=rt,M[z]=U,N<=R){var ot=c-R;if((dt>7e3||tt>24576)&&(ot>423||!d)){m=Tl(n,h,0,q,it,vt,X,tt,E,R-E,m),tt=dt=X=0,E=R;for(var ft=0;ft<286;++ft)it[ft]=0;for(var ft=0;ft<30;++ft)vt[ft]=0}var nt=2,ct=0,At=p,wt=U-rt&32767;if(ot>2&&z==G(R-wt))for(var x=Math.min(k,ot)-1,B=Math.min(32767,R),T=Math.min(258,ot);wt<=B&&--At&&U!=rt;){if(n[R+nt]==n[R+nt-wt]){for(var H=0;H<T&&n[R+H]==n[R+H-wt];++H);if(H>nt){if(nt=H,ct=wt,H>x)break;for(var J=Math.min(wt,H-2),Z=0,ft=0;ft<J;++ft){var at=R-wt+ft&32767,st=O[at],gt=at-st&32767;gt>Z&&(Z=gt,rt=at)}}}U=rt,rt=O[U],wt+=U-rt&32767}if(ct){q[tt++]=268435456|To[nt]<<18|Ml[ct];var _t=To[nt]&31,kt=Ml[ct]&31;X+=Xo[_t]+$o[kt],++it[257+_t],++vt[kt],N=R+nt,++dt}else q[tt++]=n[R],++it[n[R]]}}for(R=Math.max(R,N);R<c;++R)q[tt++]=n[R],++it[n[R]];m=Tl(n,h,d,q,it,vt,X,tt,E,R-E,m),d||(a.r=m&7|h[m/8|0]<<3,m-=7,a.h=M,a.p=O,a.i=R,a.w=N)}else{for(var R=a.w||0;R<c+d;R+=65535){var St=R+65535;St>=c&&(h[m/8|0]=d,St=c),m=Zu(h,m+1,n.subarray(R,St))}a.i=c}return Ph(l,0,i+$u(m)+o)},tf=function(){var n=1,t=0;return{p:function(e){for(var i=n,o=t,a=e.length|0,c=0;c!=a;){for(var l=Math.min(c+2655,a);c<l;++c)o+=i+=e[c];i=(i&65535)+15*(i>>16),o=(o&65535)+15*(o>>16)}n=i,t=o},d:function(){return n%=65521,t%=65521,(n&255)<<24|(n&65280)<<8|(t&255)<<8|t>>8}}},Ch=function(n,t,e,i,o){if(!o&&(o={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),c=new Qn(a.length+n.length);c.set(a),c.set(n,a.length),n=c,o.w=a.length}return Fh(n,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+t.mem,e,i,o)},ef=function(n,t,e){for(;e;++t)n[t]=e,e>>>=8},Eh=function(n,t){var e=t.level,i=e==0?0:e<6?1:e==9?3:2;if(n[0]=120,n[1]=i<<6|(t.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,t.dictionary){var o=tf();o.p(t.dictionary),ef(n,2,o.d())}};function Uo(n,t){t||(t={});var e=tf();e.p(n);var i=Ch(n,t,t.dictionary?6:2,4);return Eh(i,t),ef(i,i.length-4,e.d()),i}var Oh=typeof TextDecoder<"u"&&new TextDecoder,jh=0;try{Oh.decode(Qu,{stream:!0}),jh=1}catch{}function Bh(n){if(Array.isArray(n))return n}function Mh(n,t){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var i,o,a,c,l=[],h=!0,d=!1;try{if(a=(e=e.call(n)).next,t!==0)for(;!(h=(i=a.call(e)).done)&&(l.push(i.value),l.length!==t);h=!0);}catch(m){d=!0,o=m}finally{try{if(!h&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(d)throw o}}return l}}function Dl(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,i=Array(t);e<t;e++)i[e]=n[e];return i}function Rh(n,t){if(n){if(typeof n=="string")return Dl(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)?Dl(n,t):void 0}}function Th(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ql(n,t){return Bh(n)||Mh(n,t)||Rh(n,t)||Th()}function Ul(n,t="utf8"){return new TextDecoder(t).decode(n)}const Dh=new TextEncoder;function qh(n){return Dh.encode(n)}const Uh=1024*8,zh=(()=>{const n=new Uint8Array(4),t=new Uint32Array(n.buffer);return!((t[0]=1)&n[0])})(),bo={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 Zo{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=Uh,e={}){let i=!1;typeof t=="number"?t=new ArrayBuffer(t):(i=!0,this.lastWrittenByte=t.byteLength);const o=e.offset?e.offset>>>0:0,a=t.byteLength-o;let c=o;(ArrayBuffer.isView(t)||t instanceof Zo)&&(t.byteLength!==t.buffer.byteLength&&(c=t.byteOffset+o),t=t.buffer),i?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,a),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 i=(this.offset+t)*2,o=new Uint8Array(i);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const i=bo[e].BYTES_PER_ELEMENT*t,o=this.byteOffset+this.offset,a=this.buffer.slice(o,o+i);if(this.littleEndian===zh&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(o,o+i));l.reverse();const h=new bo[e](l.buffer);return this.offset+=i,h.reverse(),h}const c=new bo[e](a);return this.offset+=i,c}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let i=0;i<t;i++)e+=this.readChar();return e}readUtf8(t=1){return Ul(this.readBytes(t))}decodeText(t=1,e="utf8"){return Ul(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(qh(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 ia(n){let t=n.length;for(;--t>=0;)n[t]=0}const Hh=3,Wh=258,nf=29,Vh=256,Gh=Vh+1+nf,rf=30,Yh=512,Jh=new Array((Gh+2)*2);ia(Jh);const Kh=new Array(rf*2);ia(Kh);const Xh=new Array(Yh);ia(Xh);const $h=new Array(Wh-Hh+1);ia($h);const Zh=new Array(nf);ia(Zh);const Qh=new Array(rf);ia(Qh);const tc=(n,t,e,i)=>{let o=n&65535|0,a=n>>>16&65535|0,c=0;for(;e!==0;){c=e>2e3?2e3:e,e-=c;do o=o+t[i++]|0,a=a+o|0;while(--c);o%=65521,a%=65521}return o|a<<16|0};var zo=tc;const ec=()=>{let n,t=[];for(var e=0;e<256;e++){n=e;for(var i=0;i<8;i++)n=n&1?3988292384^n>>>1:n>>>1;t[e]=n}return t},nc=new Uint32Array(ec()),rc=(n,t,e,i)=>{const o=nc,a=i+e;n^=-1;for(let c=i;c<a;c++)n=n>>>8^o[(n^t[c])&255];return n^-1};var cr=rc,Ho={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"},af={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 ic=(n,t)=>Object.prototype.hasOwnProperty.call(n,t);var ac=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 i in e)ic(e,i)&&(n[i]=e[i])}}return n},sc=n=>{let t=0;for(let i=0,o=n.length;i<o;i++)t+=n[i].length;const e=new Uint8Array(t);for(let i=0,o=0,a=n.length;i<a;i++){let c=n[i];e.set(c,o),o+=c.length}return e},sf={assign:ac,flattenChunks:sc};let of=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{of=!1}const Ma=new Uint8Array(256);for(let n=0;n<256;n++)Ma[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Ma[254]=Ma[255]=1;var oc=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let t,e,i,o,a,c=n.length,l=0;for(o=0;o<c;o++)e=n.charCodeAt(o),(e&64512)===55296&&o+1<c&&(i=n.charCodeAt(o+1),(i&64512)===56320&&(e=65536+(e-55296<<10)+(i-56320),o++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(l),a=0,o=0;a<l;o++)e=n.charCodeAt(o),(e&64512)===55296&&o+1<c&&(i=n.charCodeAt(o+1),(i&64512)===56320&&(e=65536+(e-55296<<10)+(i-56320),o++)),e<128?t[a++]=e:e<2048?(t[a++]=192|e>>>6,t[a++]=128|e&63):e<65536?(t[a++]=224|e>>>12,t[a++]=128|e>>>6&63,t[a++]=128|e&63):(t[a++]=240|e>>>18,t[a++]=128|e>>>12&63,t[a++]=128|e>>>6&63,t[a++]=128|e&63);return t};const lc=(n,t)=>{if(t<65534&&n.subarray&&of)return String.fromCharCode.apply(null,n.length===t?n:n.subarray(0,t));let e="";for(let i=0;i<t;i++)e+=String.fromCharCode(n[i]);return e};var uc=(n,t)=>{const e=t||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,t));let i,o;const a=new Array(e*2);for(o=0,i=0;i<e;){let c=n[i++];if(c<128){a[o++]=c;continue}let l=Ma[c];if(l>4){a[o++]=65533,i+=l-1;continue}for(c&=l===2?31:l===3?15:7;l>1&&i<e;)c=c<<6|n[i++]&63,l--;if(l>1){a[o++]=65533;continue}c<65536?a[o++]=c:(c-=65536,a[o++]=55296|c>>10&1023,a[o++]=56320|c&1023)}return lc(a,o)},fc=(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+Ma[n[e]]>t?e:t},Wo={string2buf:oc,buf2string:uc,utf8border:fc};function hc(){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 cc=hc;const ws=16209,dc=16191;var pc=function(t,e){let i,o,a,c,l,h,d,m,_,k,p,j,O,M,S,V,G,q,it,vt,dt,X,R,tt;const N=t.state;i=t.next_in,R=t.input,o=i+(t.avail_in-5),a=t.next_out,tt=t.output,c=a-(e-t.avail_out),l=a+(t.avail_out-257),h=N.dmax,d=N.wsize,m=N.whave,_=N.wnext,k=N.window,p=N.hold,j=N.bits,O=N.lencode,M=N.distcode,S=(1<<N.lenbits)-1,V=(1<<N.distbits)-1;t:do{j<15&&(p+=R[i++]<<j,j+=8,p+=R[i++]<<j,j+=8),G=O[p&S];e:for(;;){if(q=G>>>24,p>>>=q,j-=q,q=G>>>16&255,q===0)tt[a++]=G&65535;else if(q&16){it=G&65535,q&=15,q&&(j<q&&(p+=R[i++]<<j,j+=8),it+=p&(1<<q)-1,p>>>=q,j-=q),j<15&&(p+=R[i++]<<j,j+=8,p+=R[i++]<<j,j+=8),G=M[p&V];n:for(;;){if(q=G>>>24,p>>>=q,j-=q,q=G>>>16&255,q&16){if(vt=G&65535,q&=15,j<q&&(p+=R[i++]<<j,j+=8,j<q&&(p+=R[i++]<<j,j+=8)),vt+=p&(1<<q)-1,vt>h){t.msg="invalid distance too far back",N.mode=ws;break t}if(p>>>=q,j-=q,q=a-c,vt>q){if(q=vt-q,q>m&&N.sane){t.msg="invalid distance too far back",N.mode=ws;break t}if(dt=0,X=k,_===0){if(dt+=d-q,q<it){it-=q;do tt[a++]=k[dt++];while(--q);dt=a-vt,X=tt}}else if(_<q){if(dt+=d+_-q,q-=_,q<it){it-=q;do tt[a++]=k[dt++];while(--q);if(dt=0,_<it){q=_,it-=q;do tt[a++]=k[dt++];while(--q);dt=a-vt,X=tt}}}else if(dt+=_-q,q<it){it-=q;do tt[a++]=k[dt++];while(--q);dt=a-vt,X=tt}for(;it>2;)tt[a++]=X[dt++],tt[a++]=X[dt++],tt[a++]=X[dt++],it-=3;it&&(tt[a++]=X[dt++],it>1&&(tt[a++]=X[dt++]))}else{dt=a-vt;do tt[a++]=tt[dt++],tt[a++]=tt[dt++],tt[a++]=tt[dt++],it-=3;while(it>2);it&&(tt[a++]=tt[dt++],it>1&&(tt[a++]=tt[dt++]))}}else if((q&64)===0){G=M[(G&65535)+(p&(1<<q)-1)];continue n}else{t.msg="invalid distance code",N.mode=ws;break t}break}}else if((q&64)===0){G=O[(G&65535)+(p&(1<<q)-1)];continue e}else if(q&32){N.mode=dc;break t}else{t.msg="invalid literal/length code",N.mode=ws;break t}break}}while(i<o&&a<l);it=j>>3,i-=it,j-=it<<3,p&=(1<<j)-1,t.next_in=i,t.next_out=a,t.avail_in=i<o?5+(o-i):5-(i-o),t.avail_out=a<l?257+(l-a):257-(a-l),N.hold=p,N.bits=j};const Zi=15,zl=852,Hl=592,Wl=0,wo=1,Vl=2,gc=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]),mc=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,199,75]),vc=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]),bc=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]),wc=(n,t,e,i,o,a,c,l)=>{const h=l.bits;let d=0,m=0,_=0,k=0,p=0,j=0,O=0,M=0,S=0,V=0,G,q,it,vt,dt,X=null,R;const tt=new Uint16Array(Zi+1),N=new Uint16Array(Zi+1);let E=null,z,U,rt;for(d=0;d<=Zi;d++)tt[d]=0;for(m=0;m<i;m++)tt[t[e+m]]++;for(p=h,k=Zi;k>=1&&tt[k]===0;k--);if(p>k&&(p=k),k===0)return o[a++]=1<<24|64<<16|0,o[a++]=1<<24|64<<16|0,l.bits=1,0;for(_=1;_<k&&tt[_]===0;_++);for(p<_&&(p=_),M=1,d=1;d<=Zi;d++)if(M<<=1,M-=tt[d],M<0)return-1;if(M>0&&(n===Wl||k!==1))return-1;for(N[1]=0,d=1;d<Zi;d++)N[d+1]=N[d]+tt[d];for(m=0;m<i;m++)t[e+m]!==0&&(c[N[t[e+m]]++]=m);if(n===Wl?(X=E=c,R=20):n===wo?(X=gc,E=mc,R=257):(X=vc,E=bc,R=0),V=0,m=0,d=_,dt=a,j=p,O=0,it=-1,S=1<<p,vt=S-1,n===wo&&S>zl||n===Vl&&S>Hl)return 1;for(;;){z=d-O,c[m]+1<R?(U=0,rt=c[m]):c[m]>=R?(U=E[c[m]-R],rt=X[c[m]-R]):(U=96,rt=0),G=1<<d-O,q=1<<j,_=q;do q-=G,o[dt+(V>>O)+q]=z<<24|U<<16|rt|0;while(q!==0);for(G=1<<d-1;V&G;)G>>=1;if(G!==0?(V&=G-1,V+=G):V=0,m++,--tt[d]===0){if(d===k)break;d=t[e+c[m]]}if(d>p&&(V&vt)!==it){for(O===0&&(O=p),dt+=_,j=d-O,M=1<<j;j+O<k&&(M-=tt[j+O],!(M<=0));)j++,M<<=1;if(S+=1<<j,n===wo&&S>zl||n===Vl&&S>Hl)return 1;it=V&vt,o[it]=p<<24|j<<16|dt-a|0}}return V!==0&&(o[dt+V]=d-O<<24|64<<16|0),l.bits=p,0};var Ca=wc;const yc=0,lf=1,uf=2,{Z_FINISH:Gl,Z_BLOCK:xc,Z_TREES:ys,Z_OK:Si,Z_STREAM_END:_c,Z_NEED_DICT:Ac,Z_STREAM_ERROR:Wn,Z_DATA_ERROR:ff,Z_MEM_ERROR:hf,Z_BUF_ERROR:Nc,Z_DEFLATED:Yl}=af,Es=16180,Jl=16181,Kl=16182,Xl=16183,$l=16184,Zl=16185,Ql=16186,tu=16187,eu=16188,nu=16189,Fs=16190,Er=16191,yo=16192,ru=16193,xo=16194,iu=16195,au=16196,su=16197,ou=16198,xs=16199,_s=16200,lu=16201,uu=16202,fu=16203,hu=16204,cu=16205,_o=16206,du=16207,pu=16208,Be=16209,cf=16210,df=16211,Lc=852,Sc=592,kc=15,Pc=kc,gu=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function Ic(){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<Es||t.mode>df?1:0},pf=n=>{if(Pi(n))return Wn;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=Es,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(Lc),t.distcode=t.distdyn=new Int32Array(Sc),t.sane=1,t.back=-1,Si},gf=n=>{if(Pi(n))return Wn;const t=n.state;return t.wsize=0,t.whave=0,t.wnext=0,pf(n)},mf=(n,t)=>{let e;if(Pi(n))return Wn;const i=n.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Wn:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=e,i.wbits=t,gf(n))},vf=(n,t)=>{if(!n)return Wn;const e=new Ic;n.state=e,e.strm=n,e.window=null,e.mode=Es;const i=mf(n,t);return i!==Si&&(n.state=null),i},Fc=n=>vf(n,Pc);let mu=!0,Ao,No;const Cc=n=>{if(mu){Ao=new Int32Array(512),No=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(Ca(lf,n.lens,0,288,Ao,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;Ca(uf,n.lens,0,32,No,0,n.work,{bits:5}),mu=!1}n.lencode=Ao,n.lenbits=9,n.distcode=No,n.distbits=5},bf=(n,t,e,i)=>{let o;const a=n.state;return a.window===null&&(a.window=new Uint8Array(1<<a.wbits)),a.wsize===0&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0),i>=a.wsize?(a.window.set(t.subarray(e-a.wsize,e),0),a.wnext=0,a.whave=a.wsize):(o=a.wsize-a.wnext,o>i&&(o=i),a.window.set(t.subarray(e-i,e-i+o),a.wnext),i-=o,i?(a.window.set(t.subarray(e-i,e),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0},Ec=(n,t)=>{let e,i,o,a,c,l,h,d,m,_,k,p,j,O,M=0,S,V,G,q,it,vt,dt,X;const R=new Uint8Array(4);let tt,N;const E=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 Wn;e=n.state,e.mode===Er&&(e.mode=yo),c=n.next_out,o=n.output,h=n.avail_out,a=n.next_in,i=n.input,l=n.avail_in,d=e.hold,m=e.bits,_=l,k=h,X=Si;t:for(;;)switch(e.mode){case Es:if(e.wrap===0){e.mode=yo;break}for(;m<16;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(e.wrap&2&&d===35615){e.wbits===0&&(e.wbits=15),e.check=0,R[0]=d&255,R[1]=d>>>8&255,e.check=cr(e.check,R,2,0),d=0,m=0,e.mode=Jl;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((d&255)<<8)+(d>>8))%31){n.msg="incorrect header check",e.mode=Be;break}if((d&15)!==Yl){n.msg="unknown compression method",e.mode=Be;break}if(d>>>=4,m-=4,dt=(d&15)+8,e.wbits===0&&(e.wbits=dt),dt>15||dt>e.wbits){n.msg="invalid window size",e.mode=Be;break}e.dmax=1<<e.wbits,e.flags=0,n.adler=e.check=1,e.mode=d&512?nu:Er,d=0,m=0;break;case Jl:for(;m<16;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(e.flags=d,(e.flags&255)!==Yl){n.msg="unknown compression method",e.mode=Be;break}if(e.flags&57344){n.msg="unknown header flags set",e.mode=Be;break}e.head&&(e.head.text=d>>8&1),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,e.check=cr(e.check,R,2,0)),d=0,m=0,e.mode=Kl;case Kl:for(;m<32;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}e.head&&(e.head.time=d),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,R[2]=d>>>16&255,R[3]=d>>>24&255,e.check=cr(e.check,R,4,0)),d=0,m=0,e.mode=Xl;case Xl:for(;m<16;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}e.head&&(e.head.xflags=d&255,e.head.os=d>>8),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,e.check=cr(e.check,R,2,0)),d=0,m=0,e.mode=$l;case $l:if(e.flags&1024){for(;m<16;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}e.length=d,e.head&&(e.head.extra_len=d),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,e.check=cr(e.check,R,2,0)),d=0,m=0}else e.head&&(e.head.extra=null);e.mode=Zl;case Zl:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(dt=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(i.subarray(a,a+p),dt)),e.flags&512&&e.wrap&4&&(e.check=cr(e.check,i,p,a)),l-=p,a+=p,e.length-=p),e.length))break t;e.length=0,e.mode=Ql;case Ql:if(e.flags&2048){if(l===0)break t;p=0;do dt=i[a+p++],e.head&&dt&&e.length<65536&&(e.head.name+=String.fromCharCode(dt));while(dt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=cr(e.check,i,p,a)),l-=p,a+=p,dt)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=tu;case tu:if(e.flags&4096){if(l===0)break t;p=0;do dt=i[a+p++],e.head&&dt&&e.length<65536&&(e.head.comment+=String.fromCharCode(dt));while(dt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=cr(e.check,i,p,a)),l-=p,a+=p,dt)break t}else e.head&&(e.head.comment=null);e.mode=eu;case eu:if(e.flags&512){for(;m<16;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(e.wrap&4&&d!==(e.check&65535)){n.msg="header crc mismatch",e.mode=Be;break}d=0,m=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),n.adler=e.check=0,e.mode=Er;break;case nu:for(;m<32;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}n.adler=e.check=gu(d),d=0,m=0,e.mode=Fs;case Fs:if(e.havedict===0)return n.next_out=c,n.avail_out=h,n.next_in=a,n.avail_in=l,e.hold=d,e.bits=m,Ac;n.adler=e.check=1,e.mode=Er;case Er:if(t===xc||t===ys)break t;case yo:if(e.last){d>>>=m&7,m-=m&7,e.mode=_o;break}for(;m<3;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}switch(e.last=d&1,d>>>=1,m-=1,d&3){case 0:e.mode=ru;break;case 1:if(Cc(e),e.mode=xs,t===ys){d>>>=2,m-=2;break t}break;case 2:e.mode=au;break;case 3:n.msg="invalid block type",e.mode=Be}d>>>=2,m-=2;break;case ru:for(d>>>=m&7,m-=m&7;m<32;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if((d&65535)!==(d>>>16^65535)){n.msg="invalid stored block lengths",e.mode=Be;break}if(e.length=d&65535,d=0,m=0,e.mode=xo,t===ys)break t;case xo:e.mode=iu;case iu:if(p=e.length,p){if(p>l&&(p=l),p>h&&(p=h),p===0)break t;o.set(i.subarray(a,a+p),c),l-=p,a+=p,h-=p,c+=p,e.length-=p;break}e.mode=Er;break;case au:for(;m<14;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(e.nlen=(d&31)+257,d>>>=5,m-=5,e.ndist=(d&31)+1,d>>>=5,m-=5,e.ncode=(d&15)+4,d>>>=4,m-=4,e.nlen>286||e.ndist>30){n.msg="too many length or distance symbols",e.mode=Be;break}e.have=0,e.mode=su;case su:for(;e.have<e.ncode;){for(;m<3;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}e.lens[E[e.have++]]=d&7,d>>>=3,m-=3}for(;e.have<19;)e.lens[E[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,tt={bits:e.lenbits},X=Ca(yc,e.lens,0,19,e.lencode,0,e.work,tt),e.lenbits=tt.bits,X){n.msg="invalid code lengths set",e.mode=Be;break}e.have=0,e.mode=ou;case ou:for(;e.have<e.nlen+e.ndist;){for(;M=e.lencode[d&(1<<e.lenbits)-1],S=M>>>24,V=M>>>16&255,G=M&65535,!(S<=m);){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(G<16)d>>>=S,m-=S,e.lens[e.have++]=G;else{if(G===16){for(N=S+2;m<N;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(d>>>=S,m-=S,e.have===0){n.msg="invalid bit length repeat",e.mode=Be;break}dt=e.lens[e.have-1],p=3+(d&3),d>>>=2,m-=2}else if(G===17){for(N=S+3;m<N;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}d>>>=S,m-=S,dt=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=S+7;m<N;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}d>>>=S,m-=S,dt=0,p=11+(d&127),d>>>=7,m-=7}if(e.have+p>e.nlen+e.ndist){n.msg="invalid bit length repeat",e.mode=Be;break}for(;p--;)e.lens[e.have++]=dt}}if(e.mode===Be)break;if(e.lens[256]===0){n.msg="invalid code -- missing end-of-block",e.mode=Be;break}if(e.lenbits=9,tt={bits:e.lenbits},X=Ca(lf,e.lens,0,e.nlen,e.lencode,0,e.work,tt),e.lenbits=tt.bits,X){n.msg="invalid literal/lengths set",e.mode=Be;break}if(e.distbits=6,e.distcode=e.distdyn,tt={bits:e.distbits},X=Ca(uf,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,tt),e.distbits=tt.bits,X){n.msg="invalid distances set",e.mode=Be;break}if(e.mode=xs,t===ys)break t;case xs:e.mode=_s;case _s:if(l>=6&&h>=258){n.next_out=c,n.avail_out=h,n.next_in=a,n.avail_in=l,e.hold=d,e.bits=m,pc(n,k),c=n.next_out,o=n.output,h=n.avail_out,a=n.next_in,i=n.input,l=n.avail_in,d=e.hold,m=e.bits,e.mode===Er&&(e.back=-1);break}for(e.back=0;M=e.lencode[d&(1<<e.lenbits)-1],S=M>>>24,V=M>>>16&255,G=M&65535,!(S<=m);){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(V&&(V&240)===0){for(q=S,it=V,vt=G;M=e.lencode[vt+((d&(1<<q+it)-1)>>q)],S=M>>>24,V=M>>>16&255,G=M&65535,!(q+S<=m);){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}d>>>=q,m-=q,e.back+=q}if(d>>>=S,m-=S,e.back+=S,e.length=G,V===0){e.mode=cu;break}if(V&32){e.back=-1,e.mode=Er;break}if(V&64){n.msg="invalid literal/length code",e.mode=Be;break}e.extra=V&15,e.mode=lu;case lu:if(e.extra){for(N=e.extra;m<N;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}e.length+=d&(1<<e.extra)-1,d>>>=e.extra,m-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=uu;case uu:for(;M=e.distcode[d&(1<<e.distbits)-1],S=M>>>24,V=M>>>16&255,G=M&65535,!(S<=m);){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if((V&240)===0){for(q=S,it=V,vt=G;M=e.distcode[vt+((d&(1<<q+it)-1)>>q)],S=M>>>24,V=M>>>16&255,G=M&65535,!(q+S<=m);){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}d>>>=q,m-=q,e.back+=q}if(d>>>=S,m-=S,e.back+=S,V&64){n.msg="invalid distance code",e.mode=Be;break}e.offset=G,e.extra=V&15,e.mode=fu;case fu:if(e.extra){for(N=e.extra;m<N;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}e.offset+=d&(1<<e.extra)-1,d>>>=e.extra,m-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){n.msg="invalid distance too far back",e.mode=Be;break}e.mode=hu;case hu:if(h===0)break t;if(p=k-h,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){n.msg="invalid distance too far back",e.mode=Be;break}p>e.wnext?(p-=e.wnext,j=e.wsize-p):j=e.wnext-p,p>e.length&&(p=e.length),O=e.window}else O=o,j=c-e.offset,p=e.length;p>h&&(p=h),h-=p,e.length-=p;do o[c++]=O[j++];while(--p);e.length===0&&(e.mode=_s);break;case cu:if(h===0)break t;o[c++]=e.length,h--,e.mode=_s;break;case _o:if(e.wrap){for(;m<32;){if(l===0)break t;l--,d|=i[a++]<<m,m+=8}if(k-=h,n.total_out+=k,e.total+=k,e.wrap&4&&k&&(n.adler=e.check=e.flags?cr(e.check,o,k,c-k):zo(e.check,o,k,c-k)),k=h,e.wrap&4&&(e.flags?d:gu(d))!==e.check){n.msg="incorrect data check",e.mode=Be;break}d=0,m=0}e.mode=du;case du:if(e.wrap&&e.flags){for(;m<32;){if(l===0)break t;l--,d+=i[a++]<<m,m+=8}if(e.wrap&4&&d!==(e.total&4294967295)){n.msg="incorrect length check",e.mode=Be;break}d=0,m=0}e.mode=pu;case pu:X=_c;break t;case Be:X=ff;break t;case cf:return hf;case df:default:return Wn}return n.next_out=c,n.avail_out=h,n.next_in=a,n.avail_in=l,e.hold=d,e.bits=m,(e.wsize||k!==n.avail_out&&e.mode<Be&&(e.mode<_o||t!==Gl))&&bf(n,n.output,n.next_out,k-n.avail_out),_-=n.avail_in,k-=n.avail_out,n.total_in+=_,n.total_out+=k,e.total+=k,e.wrap&4&&k&&(n.adler=e.check=e.flags?cr(e.check,o,k,n.next_out-k):zo(e.check,o,k,n.next_out-k)),n.data_type=e.bits+(e.last?64:0)+(e.mode===Er?128:0)+(e.mode===xs||e.mode===xo?256:0),(_===0&&k===0||t===Gl)&&X===Si&&(X=Nc),X},Oc=n=>{if(Pi(n))return Wn;let t=n.state;return t.window&&(t.window=null),n.state=null,Si},jc=(n,t)=>{if(Pi(n))return Wn;const e=n.state;return(e.wrap&2)===0?Wn:(e.head=t,t.done=!1,Si)},Bc=(n,t)=>{const e=t.length;let i,o,a;return Pi(n)||(i=n.state,i.wrap!==0&&i.mode!==Fs)?Wn:i.mode===Fs&&(o=1,o=zo(o,t,e,0),o!==i.check)?ff:(a=bf(n,t,e,e),a?(i.mode=cf,hf):(i.havedict=1,Si))};var Mc=gf,Rc=mf,Tc=pf,Dc=Fc,qc=vf,Uc=Ec,zc=Oc,Hc=jc,Wc=Bc,Vc="pako inflate (from Nodeca project)",pr={inflateReset:Mc,inflateReset2:Rc,inflateResetKeep:Tc,inflateInit:Dc,inflateInit2:qc,inflate:Uc,inflateEnd:zc,inflateGetHeader:Hc,inflateSetDictionary:Wc,inflateInfo:Vc};function Gc(){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 Yc=Gc;const wf=Object.prototype.toString,{Z_NO_FLUSH:Jc,Z_FINISH:vu,Z_OK:ra,Z_STREAM_END:Lo,Z_NEED_DICT:So,Z_STREAM_ERROR:Kc,Z_DATA_ERROR:bu,Z_MEM_ERROR:Xc,Z_BUF_ERROR:wu}=af,$c={chunkSize:1024*64,windowBits:15,to:""};function Ta(n){this.options=sf.assign({},$c,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 cc,this.strm.avail_out=0;let e=pr.inflateInit2(this.strm,t.windowBits);if(e!==ra)throw new Error(Ho[e]);if(this.header=new Yc,pr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Wo.string2buf(t.dictionary):wf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=pr.inflateSetDictionary(this.strm,t.dictionary),e!==ra)))throw new Error(Ho[e])}Ta.prototype.push=function(n,t){const e=this.strm,i=this.options.chunkSize,o=this.options.dictionary;let a,c,l;if(this.ended)return!1;for(t===~~t?c=t:c=t===!0?vu:Jc,wf.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(i),e.next_out=0,e.avail_out=i),a=pr.inflate(e,c),a===So&&o&&(a=pr.inflateSetDictionary(e,o),a===ra?a=pr.inflate(e,c):a===bu&&(a=So));e.avail_in>0&&a===Lo&&e.state.wrap&2&&e.state.flags!==0&&e.input[e.next_in]!==0;)pr.inflateReset(e),a=pr.inflate(e,c);switch(a){case Kc:case bu:case So:case Xc:return this.onEnd(a),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||a===Lo||c>0))if(this.options.to==="string"){let h=Wo.utf8border(e.output,e.next_out),d=e.next_out-h,m=Wo.buf2string(e.output,h);e.next_out=d,e.avail_out=i-d,d&&e.output.set(e.output.subarray(h,h+d),0),this.onData(m)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out)),e.avail_out=0,e.next_out=0;if(!((a===ra||a===wu)&&l===0)){if(a===Lo)return a=pr.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(e.avail_in===0){if(c===vu)return a=pr.inflateEnd(this.strm),this.onEnd(a===ra?wu:a),this.ended=!0,!1;break}}}return!0};Ta.prototype.onData=function(n){this.chunks.push(n)};Ta.prototype.onEnd=function(n){n===ra&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=sf.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function Zc(n,t){const e=new Ta(t);if(e.push(n,!0),e.err)throw e.msg||Ho[e.err];return e.result}var Qc=Ta,t1=Zc,e1={Inflate:Qc,inflate:t1};const{Inflate:n1,inflate:r1}=e1;var yu=n1,i1=r1;const yf=[];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;yf[n]=t}const xu=4294967295;function a1(n,t,e){let i=n;for(let o=0;o<e;o++)i=yf[(i^t[o])&255]^i>>>8;return i}function s1(n,t){return(a1(xu,n,t)^xu)>>>0}function _u(n,t,e){const i=n.readUint32(),o=s1(new Uint8Array(n.buffer,n.byteOffset+n.offset-t-4,t),t);if(o!==i)throw new Error(`CRC mismatch for chunk ${e}. Expected ${i}, found ${o}`)}function xf(n,t,e){for(let i=0;i<e;i++)t[i]=n[i]}function _f(n,t,e,i){let o=0;for(;o<i;o++)t[o]=n[o];for(;o<e;o++)t[o]=n[o]+t[o-i]&255}function Af(n,t,e,i){let o=0;if(e.length===0)for(;o<i;o++)t[o]=n[o];else for(;o<i;o++)t[o]=n[o]+e[o]&255}function Nf(n,t,e,i,o){let a=0;if(e.length===0){for(;a<o;a++)t[a]=n[a];for(;a<i;a++)t[a]=n[a]+(t[a-o]>>1)&255}else{for(;a<o;a++)t[a]=n[a]+(e[a]>>1)&255;for(;a<i;a++)t[a]=n[a]+(t[a-o]+e[a]>>1)&255}}function Lf(n,t,e,i,o){let a=0;if(e.length===0){for(;a<o;a++)t[a]=n[a];for(;a<i;a++)t[a]=n[a]+t[a-o]&255}else{for(;a<o;a++)t[a]=n[a]+e[a]&255;for(;a<i;a++)t[a]=n[a]+o1(t[a-o],e[a],e[a-o])&255}}function o1(n,t,e){const i=n+t-e,o=Math.abs(i-n),a=Math.abs(i-t),c=Math.abs(i-e);return o<=a&&o<=c?n:a<=c?t:e}function l1(n,t,e,i,o,a){switch(n){case 0:xf(t,e,o);break;case 1:_f(t,e,o,a);break;case 2:Af(t,e,i,o);break;case 3:Nf(t,e,i,o,a);break;case 4:Lf(t,e,i,o,a);break;default:throw new Error(`Unsupported filter: ${n}`)}}const u1=new Uint16Array([255]),f1=new Uint8Array(u1.buffer),h1=f1[0]===255;function c1(n){const{data:t,width:e,height:i,channels:o,depth:a}=n,c=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(a/8)*o,h=new Uint8Array(i*e*l);let d=0;for(let m=0;m<7;m++){const _=c[m],k=Math.ceil((e-_.x)/_.xStep),p=Math.ceil((i-_.y)/_.yStep);if(k<=0||p<=0)continue;const j=k*l,O=new Uint8Array(j);for(let M=0;M<p;M++){const S=t[d++],V=t.subarray(d,d+j);d+=j;const G=new Uint8Array(j);l1(S,V,G,O,j,l),O.set(G);for(let q=0;q<k;q++){const it=_.x+q*_.xStep,vt=_.y+M*_.yStep;if(!(it>=e||vt>=i))for(let dt=0;dt<l;dt++)h[(vt*e+it)*l+dt]=G[q*l+dt]}}}if(a===16){const m=new Uint16Array(h.buffer);if(h1)for(let _=0;_<m.length;_++)m[_]=d1(m[_]);return m}else return h}function d1(n){return(n&255)<<8|n>>8&255}const p1=new Uint16Array([255]),g1=new Uint8Array(p1.buffer),m1=g1[0]===255,v1=new Uint8Array(0);function Au(n){const{data:t,width:e,height:i,channels:o,depth:a}=n,c=Math.ceil(a/8)*o,l=Math.ceil(a/8*o*e),h=new Uint8Array(i*l);let d=v1,m=0,_,k;for(let p=0;p<i;p++){switch(_=t.subarray(m+1,m+1+l),k=h.subarray(p*l,(p+1)*l),t[m]){case 0:xf(_,k,l);break;case 1:_f(_,k,l,c);break;case 2:Af(_,k,d,l);break;case 3:Nf(_,k,d,l,c);break;case 4:Lf(_,k,d,l,c);break;default:throw new Error(`Unsupported filter: ${t[m]}`)}d=k,m+=l+1}if(a===16){const p=new Uint16Array(h.buffer);if(m1)for(let j=0;j<p.length;j++)p[j]=b1(p[j]);return p}else return h}function b1(n){return(n&255)<<8|n>>8&255}const ks=Uint8Array.of(137,80,78,71,13,10,26,10);function Nu(n){if(!w1(n.readBytes(ks.length)))throw new Error("wrong PNG signature")}function w1(n){if(n.length<ks.length)return!1;for(let t=0;t<ks.length;t++)if(n[t]!==ks[t])return!1;return!0}const y1="tEXt",x1=0,Sf=new TextDecoder("latin1");function _1(n){if(N1(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const A1=/^[\u0000-\u00FF]*$/;function N1(n){if(!A1.test(n))throw new Error("invalid latin1 text")}function L1(n,t,e){const i=kf(t);n[i]=S1(t,e-i.length-1)}function kf(n){for(n.mark();n.readByte()!==x1;);const t=n.offset;n.reset();const e=Sf.decode(n.readBytes(t-n.offset-1));return n.skip(1),_1(e),e}function S1(n,t){return Sf.decode(n.readBytes(t))}const Bn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},ko={UNKNOWN:-1,DEFLATE:0},Lu={UNKNOWN:-1,ADAPTIVE:0},Po={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},As={NONE:0,BACKGROUND:1,PREVIOUS:2},Io={SOURCE:0,OVER:1};class k1 extends Zo{_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:i=!1}=e;this._checkCrc=i,this._inflator=new yu,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=ko.UNKNOWN,this._filterMethod=Lu.UNKNOWN,this._interlaceMethod=Po.UNKNOWN,this._colorType=Bn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Nu(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeChunk(t,e)}return this.decodeImage(),this._png}decodeApng(){for(Nu(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(t,e)}return this.decodeApngImage(),this._apng}decodeChunk(t,e){const i=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 y1:L1(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?_u(this,t+4,e):this.skip(4)}decodeApngChunk(t,e){const i=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=i+t;break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?_u(this,t+4,e):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=P1(this.readUint8());const e=this.readUint8();this._colorType=e;let i;switch(e){case Bn.GREYSCALE:i=1;break;case Bn.TRUECOLOUR:i=3;break;case Bn.INDEXED_COLOUR:i=1;break;case Bn.GREYSCALE_ALPHA:i=2;break;case Bn.TRUECOLOUR_ALPHA:i=4;break;case Bn.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==ko.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 i=[];this._palette=i;for(let o=0;o<e;o++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const e=t,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,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,i=this.offset+this.byteOffset;if(i+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,i,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case Bn.GREYSCALE:case Bn.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 Bn.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 i=this.readByte();this._palette[e].push(i)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case Bn.UNKNOWN:case Bn.GREYSCALE_ALPHA:case Bn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const e=kf(this),i=this.readUint8();if(i!==ko.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const o=this.readBytes(t-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:i1(o)}}decodepHYs(){const t=this.readUint32(),e=this.readUint32(),i=this.readByte();this._png.resolution={x:t,y:e,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){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)},i=this._frames.at(t);if(i){if(i.data=Au({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)e.data=i.data;else{const o=this._apng.frames.at(t-1);this.disposeFrame(i,o,e),this.addFrameDataToCanvas(e,i)}this._apng.frames.push(e)}}return this._apng}disposeFrame(t,e,i){switch(t.disposeOp){case As.NONE:break;case As.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let a=0;a<this._png.width;a++){const c=(o*t.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[c+l]=0}break;case As.PREVIOUS:i.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,e){const i=1<<this._png.depth,o=(a,c)=>{const l=((a+e.yOffset)*this._png.width+e.xOffset+c)*this._png.channels,h=(a*e.width+c)*this._png.channels;return{index:l,frameIndex:h}};switch(e.blendOp){case Io.SOURCE:for(let a=0;a<e.height;a++)for(let c=0;c<e.width;c++){const{index:l,frameIndex:h}=o(a,c);for(let d=0;d<this._png.channels;d++)t.data[l+d]=e.data[h+d]}break;case Io.OVER:for(let a=0;a<e.height;a++)for(let c=0;c<e.width;c++){const{index:l,frameIndex:h}=o(a,c);for(let d=0;d<this._png.channels;d++){const m=e.data[h+this._png.channels-1]/i,_=d%(this._png.channels-1)===0?1:e.data[h+d],k=Math.floor(m*_+(1-m)*t.data[l+d]);t.data[l+d]+=k}}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!==Lu.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Po.NO_INTERLACE)this._png.data=Au({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Po.ADAM7)this._png.data=c1({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:As.NONE,blendOp:Io.SOURCE,data:t}),this._inflator=new yu,this._writingDataChunks=!1}}function P1(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}var Su;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(Su||(Su={}));function I1(n,t){return new k1(n,t).decode()}var Kt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Fo(){Kt.console&&typeof Kt.console.log=="function"&&Kt.console.log.apply(Kt.console,arguments)}var Le={log:Fo,warn:function(n){Kt.console&&(typeof Kt.console.warn=="function"?Kt.console.warn.apply(Kt.console,arguments):Fo.call(null,arguments))},error:function(n){Kt.console&&(typeof Kt.console.error=="function"?Kt.console.error.apply(Kt.console,arguments):Fo(n))}};function Co(n,t,e){var i=new XMLHttpRequest;i.open("GET",n),i.responseType="blob",i.onload=function(){wi(i.response,t,e)},i.onerror=function(){Le.error("could not download file")},i.send()}function ku(n){var t=new XMLHttpRequest;t.open("HEAD",n,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ns(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 wi=Kt.saveAs||((typeof window>"u"?"undefined":xe(window))!=="object"||window!==Kt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,t,e){var i=Kt.URL||Kt.webkitURL,o=document.createElement("a");t=t||n.name||"download",o.download=t,o.rel="noopener",typeof n=="string"?(o.href=n,o.origin!==location.origin?ku(o.href)?Co(n,t,e):Ns(o,o.target="_blank"):Ns(o)):(o.href=i.createObjectURL(n),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){Ns(o)},0))}:"msSaveOrOpenBlob"in navigator?function(n,t,e){if(t=t||n.name||"download",typeof n=="string")if(ku(n))Co(n,t,e);else{var i=document.createElement("a");i.href=n,i.target="_blank",setTimeout(function(){Ns(i)})}else navigator.msSaveOrOpenBlob((function(o,a){return a===void 0?a={autoBom:!1}:xe(a)!=="object"&&(Le.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o})(n,e),t)}:function(n,t,e,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof n=="string")return Co(n,t,e);var o=n.type==="application/octet-stream",a=/constructor/i.test(Kt.HTMLElement)||Kt.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&a)&&(typeof FileReader>"u"?"undefined":xe(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=c?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},l.readAsDataURL(n)}else{var h=Kt.URL||Kt.webkitURL,d=h.createObjectURL(n);i?i.location=d:location.href=d,i=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});function Pf(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)]}}],i=0;i<e.length;i++){var o=e[i].re,a=e[i].process,c=o.exec(n);c&&(t=a(c),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),h=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),d.length==1&&(d="0"+d),"#"+l+h+d}}var Ps=Kt.atob.bind(Kt),Pu=Kt.btoa.bind(Kt);function Eo(n,t){var e=n[0],i=n[1],o=n[2],a=n[3];e=gn(e,i,o,a,t[0],7,-680876936),a=gn(a,e,i,o,t[1],12,-389564586),o=gn(o,a,e,i,t[2],17,606105819),i=gn(i,o,a,e,t[3],22,-1044525330),e=gn(e,i,o,a,t[4],7,-176418897),a=gn(a,e,i,o,t[5],12,1200080426),o=gn(o,a,e,i,t[6],17,-1473231341),i=gn(i,o,a,e,t[7],22,-45705983),e=gn(e,i,o,a,t[8],7,1770035416),a=gn(a,e,i,o,t[9],12,-1958414417),o=gn(o,a,e,i,t[10],17,-42063),i=gn(i,o,a,e,t[11],22,-1990404162),e=gn(e,i,o,a,t[12],7,1804603682),a=gn(a,e,i,o,t[13],12,-40341101),o=gn(o,a,e,i,t[14],17,-1502002290),e=mn(e,i=gn(i,o,a,e,t[15],22,1236535329),o,a,t[1],5,-165796510),a=mn(a,e,i,o,t[6],9,-1069501632),o=mn(o,a,e,i,t[11],14,643717713),i=mn(i,o,a,e,t[0],20,-373897302),e=mn(e,i,o,a,t[5],5,-701558691),a=mn(a,e,i,o,t[10],9,38016083),o=mn(o,a,e,i,t[15],14,-660478335),i=mn(i,o,a,e,t[4],20,-405537848),e=mn(e,i,o,a,t[9],5,568446438),a=mn(a,e,i,o,t[14],9,-1019803690),o=mn(o,a,e,i,t[3],14,-187363961),i=mn(i,o,a,e,t[8],20,1163531501),e=mn(e,i,o,a,t[13],5,-1444681467),a=mn(a,e,i,o,t[2],9,-51403784),o=mn(o,a,e,i,t[7],14,1735328473),e=vn(e,i=mn(i,o,a,e,t[12],20,-1926607734),o,a,t[5],4,-378558),a=vn(a,e,i,o,t[8],11,-2022574463),o=vn(o,a,e,i,t[11],16,1839030562),i=vn(i,o,a,e,t[14],23,-35309556),e=vn(e,i,o,a,t[1],4,-1530992060),a=vn(a,e,i,o,t[4],11,1272893353),o=vn(o,a,e,i,t[7],16,-155497632),i=vn(i,o,a,e,t[10],23,-1094730640),e=vn(e,i,o,a,t[13],4,681279174),a=vn(a,e,i,o,t[0],11,-358537222),o=vn(o,a,e,i,t[3],16,-722521979),i=vn(i,o,a,e,t[6],23,76029189),e=vn(e,i,o,a,t[9],4,-640364487),a=vn(a,e,i,o,t[12],11,-421815835),o=vn(o,a,e,i,t[15],16,530742520),e=bn(e,i=vn(i,o,a,e,t[2],23,-995338651),o,a,t[0],6,-198630844),a=bn(a,e,i,o,t[7],10,1126891415),o=bn(o,a,e,i,t[14],15,-1416354905),i=bn(i,o,a,e,t[5],21,-57434055),e=bn(e,i,o,a,t[12],6,1700485571),a=bn(a,e,i,o,t[3],10,-1894986606),o=bn(o,a,e,i,t[10],15,-1051523),i=bn(i,o,a,e,t[1],21,-2054922799),e=bn(e,i,o,a,t[8],6,1873313359),a=bn(a,e,i,o,t[15],10,-30611744),o=bn(o,a,e,i,t[6],15,-1560198380),i=bn(i,o,a,e,t[13],21,1309151649),e=bn(e,i,o,a,t[4],6,-145523070),a=bn(a,e,i,o,t[11],10,-1120210379),o=bn(o,a,e,i,t[2],15,718787259),i=bn(i,o,a,e,t[9],21,-343485551),n[0]=$r(e,n[0]),n[1]=$r(i,n[1]),n[2]=$r(o,n[2]),n[3]=$r(a,n[3])}function Os(n,t,e,i,o,a){return t=$r($r(t,n),$r(i,a)),$r(t<<o|t>>>32-o,e)}function gn(n,t,e,i,o,a,c){return Os(t&e|~t&i,n,t,o,a,c)}function mn(n,t,e,i,o,a,c){return Os(t&i|e&~i,n,t,o,a,c)}function vn(n,t,e,i,o,a,c){return Os(t^e^i,n,t,o,a,c)}function bn(n,t,e,i,o,a,c){return Os(e^(t|~i),n,t,o,a,c)}function If(n){var t,e=n.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=n.length;t+=64)Eo(i,F1(n.substring(t-64,t)));n=n.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<n.length;t++)o[t>>2]|=n.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(Eo(i,o),t=0;t<16;t++)o[t]=0;return o[14]=8*e,Eo(i,o),i}function F1(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 Iu="0123456789abcdef".split("");function C1(n){for(var t="",e=0;e<4;e++)t+=Iu[n>>8*e+4&15]+Iu[n>>8*e&15];return t}function E1(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Vo(n){return If(n).map(E1).join("")}var O1=(function(n){for(var t=0;t<n.length;t++)n[t]=C1(n[t]);return n.join("")})(If("hello"))!="5d41402abc4b2a76b9719d911017c592";function $r(n,t){if(O1){var e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}return n+t&4294967295}function Go(n,t){var e,i,o,a;if(n!==e){for(var c=(o=n,a=1+(256/n.length|0),new Array(a+1).join(o)),l=[],h=0;h<256;h++)l[h]=h;var d=0;for(h=0;h<256;h++){var m=l[h];d=(d+m+c.charCodeAt(h))%256,l[h]=l[d],l[d]=m}e=n,i=l}else l=i;var _=t.length,k=0,p=0,j="";for(h=0;h<_;h++)p=(p+(m=l[k=(k+1)%256]))%256,l[k]=l[p],l[p]=m,c=l[(l[k]+l[p])%256],j+=String.fromCharCode(t.charCodeAt(h)^c);return j}var Fu={print:4,modify:8,copy:16,"annot-forms":32};function ea(n,t,e,i){this.v=1,this.r=2;var o=192;n.forEach(function(l){if(Fu.perm!==void 0)throw new Error("Invalid permission: "+l);o+=Fu[l]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(t+this.padding).substr(0,32),c=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,c),this.P=-(1+(255^o)),this.encryptionKey=Vo(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Go(this.encryptionKey,this.padding)}function na(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var t="",e=n.length,i=0;i<e;i++){var o=n.charCodeAt(i);t+=o<33||o===35||o===37||o===40||o===41||o===47||o===60||o===62||o===91||o===93||o===123||o===125||o>126?"#"+("0"+o.toString(16)).slice(-2):n[i]}return t}function Cu(n){if(xe(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,i,o){if(o=o||!1,typeof e!="string"||typeof i!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[i,!!o],a},this.unsubscribe=function(e){for(var i in t)if(t[i][e])return delete t[i][e],Object.keys(t[i]).length===0&&delete t[i],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var a in t[e]){var c=t[e][a];try{c[0].apply(n,i)}catch(l){Kt.console&&Le.error("jsPDF PubSub Error",l.message,l)}c[1]&&o.push(a)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Ra(n){if(!(this instanceof Ra))return new Ra(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 Ff(n,t){this.gState=n,this.matrix=t,this.id="",this.objectNumber=-1}function Xr(n,t,e,i,o){if(!(this instanceof Xr))return new Xr(n,t,e,i,o);this.type=n==="axial"?2:3,this.coords=t,this.colors=e,Ff.call(this,i,o)}function yi(n,t,e,i,o){if(!(this instanceof yi))return new yi(n,t,e,i,o);this.boundingBox=n,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,Ff.call(this,i,o)}function Mt(n){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],o=arguments[2],a=arguments[3],c=[],l=1,h=16,d="S",m=null;xe(n=n||{})==="object"&&(e=n.orientation,i=n.unit||i,o=n.format||o,a=n.compress||n.compressPdf||a,(m=n.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(t=n.precision),n.floatPrecision!==void 0&&(h=n.floatPrecision),d=n.defaultPathOperation||"S"),c=n.filters||(a===!0?["FlateEncode"]:c),i=i||"mm",e=(""+(e||"P")).toLowerCase();var _=n.putOnlyUsedFonts||!1,k={},p={internal:{},__private__:{}};p.__private__.PubSub=Cu;var j="1.3",O=p.__private__.getPdfVersion=function(){return j};p.__private__.setPdfVersion=function(u){j=u};var M={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return M};var S=p.__private__.getPageFormat=function(u){return M[u]};o=o||"a4";var V="compat",G="advanced",q=V;function it(){this.saveGraphicsState(),P(new Gt(ne,0,0,-ne,0,si()*ne).toString()+" cm"),this.setFontSize(this.getFontSize()/ne),d="n",q=G}function vt(){this.restoreGraphicsState(),d="S",q=V}var dt=p.__private__.combineFontStyleAndFontWeight=function(u,v){if(u=="bold"&&v=="normal"||u=="bold"&&v==400||u=="normal"&&v=="italic"||u=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(u=v==400||v==="normal"?u==="italic"?"italic":"normal":v!=700&&v!=="bold"||u!=="normal"?(v==700?"bold":v)+""+u:"bold"),u};p.advancedAPI=function(u){var v=q===V;return v&&it.call(this),typeof u!="function"||(u(this),v&&vt.call(this)),this},p.compatAPI=function(u){var v=q===G;return v&&vt.call(this),typeof u!="function"||(u(this),v&&it.call(this)),this},p.isAdvancedAPI=function(){return q===G};var X,R=function(u){if(q!==G)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},tt=p.roundToPrecision=p.__private__.roundToPrecision=function(u,v){var I=t||v;if(isNaN(u)||isNaN(I))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(I).replace(/0+$/,"")};X=p.hpf=p.__private__.hpf=typeof h=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(u,h)}:h==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(u,16)};var N=p.f2=p.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return tt(u,2)},E=p.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return tt(u,3)},z=p.scale=p.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return q===V?u*ne:q===G?u:void 0},U=function(u){return z((function(v){return q===V?si()-v:q===G?v:void 0})(u))};p.__private__.setPrecision=p.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(t=parseInt(u,10))};var rt,ot="00000000000000000000000000000000",ft=p.__private__.getFileId=function(){return ot},nt=p.__private__.setFileId=function(u){return ot=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():ot.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(sn=new ea(m.userPermissions,m.userPassword,m.ownerPassword,ot)),ot};p.setFileId=function(u){return nt(u),this},p.getFileId=function(){return ft()};var ct=p.__private__.convertDateToPDFDate=function(u){var v=u.getTimezoneOffset(),I=v<0?"+":"-",D=Math.floor(Math.abs(v/60)),K=Math.abs(v%60),lt=[I,T(D),"'",T(K),"'"].join("");return["D:",u.getFullYear(),T(u.getMonth()+1),T(u.getDate()),T(u.getHours()),T(u.getMinutes()),T(u.getSeconds()),lt].join("")},At=p.__private__.convertPDFDateToDate=function(u){var v=parseInt(u.substr(2,4),10),I=parseInt(u.substr(6,2),10)-1,D=parseInt(u.substr(8,2),10),K=parseInt(u.substr(10,2),10),lt=parseInt(u.substr(12,2),10),mt=parseInt(u.substr(14,2),10);return new Date(v,I,D,K,lt,mt,0)},wt=p.__private__.setCreationDate=function(u){var v;if(u===void 0&&(u=new Date),u instanceof Date)v=ct(u);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(u))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=u}return rt=v},x=p.__private__.getCreationDate=function(u){var v=rt;return u==="jsDate"&&(v=At(rt)),v};p.setCreationDate=function(u){return wt(u),this},p.getCreationDate=function(u){return x(u)};var B,T=p.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},H=p.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},J=0,Z=[],at=[],st=0,gt=[],_t=[],kt=!1,St=at;p.__private__.setCustomOutputDestination=function(u){kt=!0,St=u};var Dt=function(u){kt||(St=u)};p.__private__.resetCustomOutputDestination=function(){kt=!1,St=at};var P=p.__private__.out=function(u){return u=u.toString(),st+=u.length+1,St.push(u),St},Lt=p.__private__.write=function(u){return P(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(u){for(var v=u.length,I=new ArrayBuffer(v),D=new Uint8Array(I);v--;)D[v]=u.charCodeAt(v);return I},Ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return Ht};var yt=n.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(u){return yt=q===G?u/ne:u,this};var Wt,Ft=p.__private__.getFontSize=p.getFontSize=function(){return q===V?yt:yt*ne},zt=n.R2L||!1;p.__private__.setR2L=p.setR2L=function(u){return zt=u,this},p.__private__.getR2L=p.getR2L=function(){return zt};var qt,ve=p.__private__.setZoomMode=function(u){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))Wt=u;else if(isNaN(u)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');Wt=u}else Wt=parseInt(u,10)};p.__private__.getZoomMode=function(){return Wt};var ue,Zt=p.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');qt=u};p.__private__.getPageMode=function(){return qt};var he=p.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');ue=u};p.__private__.getLayoutMode=function(){return ue},p.__private__.setDisplayMode=p.setDisplayMode=function(u,v,I){return ve(u),he(v),Zt(I),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(u){if(Object.keys(fe).indexOf(u)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[u]},p.__private__.getDocumentProperties=function(){return fe},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(u){for(var v in fe)fe.hasOwnProperty(v)&&u[v]&&(fe[v]=u[v]);return this},p.__private__.setDocumentProperty=function(u,v){if(Object.keys(fe).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[u]=v};var Bt,ne,Tt,ze,ge,se={},oe={},Oe=[],Ut={},Se={},Yt={},Qt={},je=null,le=0,Vt=[],be=new Cu(p),ti=n.hotfixes||[],fn={},vr={},nr=[],Gt=function u(v,I,D,K,lt,mt){if(!(this instanceof u))return new u(v,I,D,K,lt,mt);isNaN(v)&&(v=1),isNaN(I)&&(I=0),isNaN(D)&&(D=0),isNaN(K)&&(K=1),isNaN(lt)&&(lt=0),isNaN(mt)&&(mt=0),this._matrix=[v,I,D,K,lt,mt]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Gt.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(X).join(u)},Gt.prototype.multiply=function(u){var v=u.sx*this.sx+u.shy*this.shx,I=u.sx*this.shy+u.shy*this.sy,D=u.shx*this.sx+u.sy*this.shx,K=u.shx*this.shy+u.sy*this.sy,lt=u.tx*this.sx+u.ty*this.shx+this.tx,mt=u.tx*this.shy+u.ty*this.sy+this.ty;return new Gt(v,I,D,K,lt,mt)},Gt.prototype.decompose=function(){var u=this.sx,v=this.shy,I=this.shx,D=this.sy,K=this.tx,lt=this.ty,mt=Math.sqrt(u*u+v*v),Et=(u/=mt)*I+(v/=mt)*D;I-=u*Et,D-=v*Et;var Ct=Math.sqrt(I*I+D*D);return Et/=Ct,u*(D/=Ct)<v*(I/=Ct)&&(u=-u,v=-v,Et=-Et,mt=-mt),{scale:new Gt(mt,0,0,Ct,0,0),translate:new Gt(1,0,0,1,K,lt),rotate:new Gt(u,v,-v,u,0,0),skew:new Gt(1,0,Et,1,0,0)}},Gt.prototype.toString=function(u){return this.join(" ")},Gt.prototype.inversed=function(){var u=this.sx,v=this.shy,I=this.shx,D=this.sy,K=this.tx,lt=this.ty,mt=1/(u*D-v*I),Et=D*mt,Ct=-v*mt,Xt=-I*mt,te=u*mt;return new Gt(Et,Ct,Xt,te,-Et*K-Xt*lt,-Ct*K-te*lt)},Gt.prototype.applyToPoint=function(u){var v=u.x*this.sx+u.y*this.shx+this.tx,I=u.x*this.shy+u.y*this.sy+this.ty;return new ai(v,I)},Gt.prototype.applyToRectangle=function(u){var v=this.applyToPoint(u),I=this.applyToPoint(new ai(u.x+u.w,u.y+u.h));return new da(v.x,v.y,I.x-v.x,I.y-v.y)},Gt.prototype.clone=function(){var u=this.sx,v=this.shy,I=this.shx,D=this.sy,K=this.tx,lt=this.ty;return new Gt(u,v,I,D,K,lt)},p.Matrix=Gt;var br=p.matrixMult=function(u,v){return v.multiply(u)},wr=new Gt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=wr;var Rn=function(u,v){if(!Se[u]){var I=(v instanceof Xr?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);v.id=I,Se[u]=I,Ut[I]=v,be.publish("addPattern",v)}};p.ShadingPattern=Xr,p.TilingPattern=yi,p.addShadingPattern=function(u,v){return R("addShadingPattern()"),Rn(u,v),this},p.beginTilingPattern=function(u){R("beginTilingPattern()"),pa(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},p.endTilingPattern=function(u,v){R("endTilingPattern()"),v.stream=_t[B].join(`
4
+ `),Rn(u,v),be.publish("endTilingPattern",v),nr.pop().restore()};var Tn,Te=p.__private__.newObject=function(){var u=rn();return an(u,!0),u},rn=p.__private__.newObjectDeferred=function(){return J++,Z[J]=function(){return st},J},an=function(u,v){return v=typeof v=="boolean"&&v,Z[u]=st,v&&P(u+" 0 obj"),u},ei=p.__private__.newAdditionalObject=function(){var u={objId:rn(),content:""};return gt.push(u),u},Or=rn(),Vn=rn(),rr=p.__private__.decodeColorString=function(u){var v=u.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length!==5||v[4]!=="k"&&v[4]!=="K"||(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var I=parseFloat(v[0]);v=[I,I,I,"r"]}for(var D="#",K=0;K<3;K++)D+=("0"+Math.floor(255*parseFloat(v[K])).toString(16)).slice(-2);return D},Gn=p.__private__.encodeColorString=function(u){var v;typeof u=="string"&&(u={ch1:u});var I=u.ch1,D=u.ch2,K=u.ch3,lt=u.ch4,mt=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof I=="string"&&I.charAt(0)!=="#"){var Et=new Pf(I);if(Et.ok)I=Et.toHex();else if(!/^\d*\.?\d*$/.test(I))throw new Error('Invalid color "'+I+'" passed to jsPDF.encodeColorString.')}if(typeof I=="string"&&/^#[0-9A-Fa-f]{3}$/.test(I)&&(I="#"+I[1]+I[1]+I[2]+I[2]+I[3]+I[3]),typeof I=="string"&&/^#[0-9A-Fa-f]{6}$/.test(I)){var Ct=parseInt(I.substr(1),16);I=Ct>>16&255,D=Ct>>8&255,K=255&Ct}if(D===void 0||lt===void 0&&I===D&&D===K)v=typeof I=="string"?I+" "+mt[0]:u.precision===2?N(I/255)+" "+mt[0]:E(I/255)+" "+mt[0];else if(lt===void 0||xe(lt)==="object"){if(lt&&!isNaN(lt.a)&&lt.a===0)return["1.","1.","1.",mt[1]].join(" ");v=typeof I=="string"?[I,D,K,mt[1]].join(" "):u.precision===2?[N(I/255),N(D/255),N(K/255),mt[1]].join(" "):[E(I/255),E(D/255),E(K/255),mt[1]].join(" ")}else v=typeof I=="string"?[I,D,K,lt,mt[2]].join(" "):u.precision===2?[N(I),N(D),N(K),N(lt),mt[2]].join(" "):[E(I),E(D),E(K),E(lt),mt[2]].join(" ");return v},Yn=p.__private__.getFilters=function(){return c},Dn=p.__private__.putStream=function(u){var v=(u=u||{}).data||"",I=u.filters||Yn(),D=u.alreadyAppliedFilters||[],K=u.addLength1||!1,lt=v.length,mt=u.objectId,Et=function(Fe){return Fe};if(m!==null&&mt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Et=sn.encryptor(mt,0));var Ct={};I===!0&&(I=["FlateEncode"]);var Xt=u.additionalKeyValues||[],te=(Ct=Mt.API.processDataByFilters!==void 0?Mt.API.processDataByFilters(v,I):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(D)?D.join(" "):D.toString());if(Ct.data.length!==0&&(Xt.push({key:"Length",value:Ct.data.length}),K===!0&&Xt.push({key:"Length1",value:lt})),te.length!=0)if(te.split("/").length-1==1)Xt.push({key:"Filter",value:te});else{Xt.push({key:"Filter",value:"["+te+"]"});for(var de=0;de<Xt.length;de+=1)if(Xt[de].key==="DecodeParms"){for(var Xe=[],Ae=0;Ae<Ct.reverseChain.split("/").length-1;Ae+=1)Xe.push("null");Xe.push(Xt[de].value),Xt[de].value="["+Xe.join(" ")+"]"}}P("<<");for(var _e=0;_e<Xt.length;_e++)P("/"+Xt[_e].key+" "+Xt[_e].value);P(">>"),Ct.data.length!==0&&(P("stream"),P(Et(Ct.data)),P("endstream"))},ni=p.__private__.putPage=function(u){var v=u.number,I=u.data,D=u.objId,K=u.contentsObjId;an(D,!0),P("<</Type /Page"),P("/Parent "+u.rootDictionaryObjId+" 0 R"),P("/Resources "+u.resourceDictionaryObjId+" 0 R"),P("/MediaBox ["+parseFloat(X(u.mediaBox.bottomLeftX))+" "+parseFloat(X(u.mediaBox.bottomLeftY))+" "+X(u.mediaBox.topRightX)+" "+X(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&P("/CropBox ["+X(u.cropBox.bottomLeftX)+" "+X(u.cropBox.bottomLeftY)+" "+X(u.cropBox.topRightX)+" "+X(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&P("/BleedBox ["+X(u.bleedBox.bottomLeftX)+" "+X(u.bleedBox.bottomLeftY)+" "+X(u.bleedBox.topRightX)+" "+X(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&P("/TrimBox ["+X(u.trimBox.bottomLeftX)+" "+X(u.trimBox.bottomLeftY)+" "+X(u.trimBox.topRightX)+" "+X(u.trimBox.topRightY)+"]"),u.artBox!==null&&P("/ArtBox ["+X(u.artBox.bottomLeftX)+" "+X(u.artBox.bottomLeftY)+" "+X(u.artBox.topRightX)+" "+X(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&P("/UserUnit "+u.userUnit),be.publish("putPage",{objId:D,pageContext:Vt[v],pageNumber:v,page:I}),P("/Contents "+K+" 0 R"),P(">>"),P("endobj");var lt=I.join(`
5
+ `);return q===G&&(lt+=`
6
+ Q`),an(K,!0),Dn({data:lt,filters:Yn(),objectId:K}),P("endobj"),D},ir=p.__private__.putPages=function(){var u,v,I=[];for(u=1;u<=le;u++)Vt[u].objId=rn(),Vt[u].contentsObjId=rn();for(u=1;u<=le;u++)I.push(ni({number:u,data:_t[u],objId:Vt[u].objId,contentsObjId:Vt[u].contentsObjId,mediaBox:Vt[u].mediaBox,cropBox:Vt[u].cropBox,bleedBox:Vt[u].bleedBox,trimBox:Vt[u].trimBox,artBox:Vt[u].artBox,userUnit:Vt[u].userUnit,rootDictionaryObjId:Or,resourceDictionaryObjId:Vn}));an(Or,!0),P("<</Type /Pages");var D="/Kids [";for(v=0;v<le;v++)D+=I[v]+" 0 R ";P(D+"]"),P("/Count "+le),P(">>"),P("endobj"),be.publish("postPutPages")},ri=function(u){be.publish("putFont",{font:u,out:P,newObject:Te,putStream:Dn}),u.isAlreadyPutted!==!0&&(u.objectNumber=Te(),P("<<"),P("/Type /Font"),P("/BaseFont /"+na(u.postScriptName)),P("/Subtype /Type1"),typeof u.encoding=="string"&&P("/Encoding /"+u.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"))},Fi=function(u){u.objectNumber=Te();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[X(u.x),X(u.y),X(u.x+u.width),X(u.y+u.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var I=u.pages[1].join(`
7
+ `);Dn({data:I,additionalKeyValues:v,objectId:u.objectNumber}),P("endobj")},Ci=function(u,v){v||(v=21);var I=Te(),D=(function(mt,Et){var Ct,Xt=[],te=1/(Et-1);for(Ct=0;Ct<1;Ct+=te)Xt.push(Ct);if(Xt.push(1),mt[0].offset!=0){var de={offset:0,color:mt[0].color};mt.unshift(de)}if(mt[mt.length-1].offset!=1){var Xe={offset:1,color:mt[mt.length-1].color};mt.push(Xe)}for(var Ae="",_e=0,Fe=0;Fe<Xt.length;Fe++){for(Ct=Xt[Fe];Ct>mt[_e+1].offset;)_e++;var Me=mt[_e].offset,Re=(Ct-Me)/(mt[_e+1].offset-Me),hn=mt[_e].color,Lr=mt[_e+1].color;Ae+=H(Math.round((1-Re)*hn[0]+Re*Lr[0]).toString(16))+H(Math.round((1-Re)*hn[1]+Re*Lr[1]).toString(16))+H(Math.round((1-Re)*hn[2]+Re*Lr[2]).toString(16))}return Ae.trim()})(u.colors,v),K=[];K.push({key:"FunctionType",value:"0"}),K.push({key:"Domain",value:"[0.0 1.0]"}),K.push({key:"Size",value:"["+v+"]"}),K.push({key:"BitsPerSample",value:"8"}),K.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),K.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Dn({data:D,additionalKeyValues:K,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:I}),P("endobj"),u.objectNumber=Te(),P("<< /ShadingType "+u.type),P("/ColorSpace /DeviceRGB");var lt="/Coords ["+X(parseFloat(u.coords[0]))+" "+X(parseFloat(u.coords[1]))+" ";u.type===2?lt+=X(parseFloat(u.coords[2]))+" "+X(parseFloat(u.coords[3])):lt+=X(parseFloat(u.coords[2]))+" "+X(parseFloat(u.coords[3]))+" "+X(parseFloat(u.coords[4]))+" "+X(parseFloat(u.coords[5])),P(lt+="]"),u.matrix&&P("/Matrix ["+u.matrix.toString()+"]"),P("/Function "+I+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj")},Ei=function(u,v){var I=rn(),D=Te();v.push({resourcesOid:I,objectOid:D}),u.objectNumber=D;var K=[];K.push({key:"Type",value:"/Pattern"}),K.push({key:"PatternType",value:"1"}),K.push({key:"PaintType",value:"1"}),K.push({key:"TilingType",value:"1"}),K.push({key:"BBox",value:"["+u.boundingBox.map(X).join(" ")+"]"}),K.push({key:"XStep",value:X(u.xStep)}),K.push({key:"YStep",value:X(u.yStep)}),K.push({key:"Resources",value:I+" 0 R"}),u.matrix&&K.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),Dn({data:u.stream,additionalKeyValues:K,objectId:u.objectNumber}),P("endobj")},js=function(u){for(var v in u.objectNumber=Te(),P("<<"),u)switch(v){case"opacity":P("/ca "+N(u[v]));break;case"stroke-opacity":P("/CA "+N(u[v]))}P(">>"),P("endobj")},aa=function(u){an(u.resourcesOid,!0),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var v in P("/Font <<"),se)se.hasOwnProperty(v)&&(_===!1||_===!0&&k.hasOwnProperty(v))&&P("/"+v+" "+se[v].objectNumber+" 0 R");P(">>")})(),(function(){if(Object.keys(Ut).length>0){for(var v in P("/Shading <<"),Ut)Ut.hasOwnProperty(v)&&Ut[v]instanceof Xr&&Ut[v].objectNumber>=0&&P("/"+v+" "+Ut[v].objectNumber+" 0 R");be.publish("putShadingPatternDict"),P(">>")}})(),(function(v){if(Object.keys(Ut).length>0){for(var I in P("/Pattern <<"),Ut)Ut.hasOwnProperty(I)&&Ut[I]instanceof p.TilingPattern&&Ut[I].objectNumber>=0&&Ut[I].objectNumber<v&&P("/"+I+" "+Ut[I].objectNumber+" 0 R");be.publish("putTilingPatternDict"),P(">>")}})(u.objectOid),(function(){if(Object.keys(Yt).length>0){var v;for(v in P("/ExtGState <<"),Yt)Yt.hasOwnProperty(v)&&Yt[v].objectNumber>=0&&P("/"+v+" "+Yt[v].objectNumber+" 0 R");be.publish("putGStateDict"),P(">>")}})(),(function(){for(var v in P("/XObject <<"),fn)fn.hasOwnProperty(v)&&fn[v].objectNumber>=0&&P("/"+v+" "+fn[v].objectNumber+" 0 R");be.publish("putXobjectDict"),P(">>")})(),P(">>"),P("endobj")},Da=function(u){oe[u.fontName]=oe[u.fontName]||{},oe[u.fontName][u.fontStyle]=u.id},qa=function(u,v,I,D,K){var lt={id:"F"+(Object.keys(se).length+1).toString(10),postScriptName:u,fontName:v,fontStyle:I,encoding:D,isStandardFont:K||!1,metadata:{}};return be.publish("addFont",{font:lt,instance:this}),se[lt.id]=lt,Da(lt),lt.id},qn=p.__private__.pdfEscape=p.pdfEscape=function(u,v){return(function(I,D){var K,lt,mt,Et,Ct,Xt,te,de,Xe;if(mt=(D=D||{}).sourceEncoding||"Unicode",Ct=D.outputEncoding,(D.autoencode||Ct)&&se[Bt].metadata&&se[Bt].metadata[mt]&&se[Bt].metadata[mt].encoding&&(Et=se[Bt].metadata[mt].encoding,!Ct&&se[Bt].encoding&&(Ct=se[Bt].encoding),!Ct&&Et.codePages&&(Ct=Et.codePages[0]),typeof Ct=="string"&&(Ct=Et[Ct]),Ct)){for(te=!1,Xt=[],K=0,lt=I.length;K<lt;K++)(de=Ct[I.charCodeAt(K)])?Xt.push(String.fromCharCode(de)):Xt.push(I[K]),Xt[K].charCodeAt(0)>>8&&(te=!0);I=Xt.join("")}for(K=I.length;te===void 0&&K!==0;)I.charCodeAt(K-1)>>8&&(te=!0),K--;if(!te)return I;for(Xt=D.noBOM?[]:[254,255],K=0,lt=I.length;K<lt;K++){if((Xe=(de=I.charCodeAt(K))>>8)>>8)throw new Error("Character at position "+K+" of string '"+I+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Xt.push(Xe),Xt.push(de-(Xe<<8))}return String.fromCharCode.apply(void 0,Xt)})(u,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},sa=p.__private__.beginPage=function(u){_t[++le]=[],Vt[le]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},za(le),Dt(_t[B])},Ua=function(u,v){var I,D,K;switch(e=v||e,typeof u=="string"&&(I=S(u.toLowerCase()),Array.isArray(I)&&(D=I[0],K=I[1])),Array.isArray(u)&&(D=u[0]*ne,K=u[1]*ne),isNaN(D)&&(D=o[0],K=o[1]),(D>14400||K>14400)&&(Le.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),D=Math.min(14400,D),K=Math.min(14400,K)),o=[D,K],e.substr(0,1)){case"l":K>D&&(o=[K,D]);break;case"p":D>K&&(o=[K,D])}sa(o),Ws(Jt),P(Ti),ha!==0&&P(ha+" J"),Mr!==0&&P(Mr+" j"),be.publish("addPage",{pageNumber:le})},oa=function(u){u>0&&u<=le&&(_t.splice(u,1),Vt.splice(u,1),le--,B>le&&(B=le),this.setPage(B))},za=function(u){u>0&&u<=le&&(B=u)},Ha=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return _t.length-1},Wa=function(u,v,I){var D,K=void 0;return I=I||{},u=u!==void 0?u:se[Bt].fontName,v=v!==void 0?v:se[Bt].fontStyle,D=u.toLowerCase(),oe[D]!==void 0&&oe[D][v]!==void 0?K=oe[D][v]:oe[u]!==void 0&&oe[u][v]!==void 0?K=oe[u][v]:I.disableWarning===!1&&Le.warn("Unable to look up font label for font '"+u+"', '"+v+"'. Refer to getFontList() for available fonts."),K||I.noFallback||(K=oe.times[v])==null&&(K=oe.times.normal),K},ar=p.__private__.putInfo=function(){var u=Te(),v=function(D){return D};for(var I in m!==null&&(v=sn.encryptor(u,0)),P("<<"),P("/Producer ("+qn(v("jsPDF "+Mt.version))+")"),fe)fe.hasOwnProperty(I)&&fe[I]&&P("/"+I.substr(0,1).toUpperCase()+I.substr(1)+" ("+qn(v(fe[I]))+")");P("/CreationDate ("+qn(v(rt))+")"),P(">>"),P("endobj")},Oi=p.__private__.putCatalog=function(u){var v=(u=u||{}).rootDictionaryObjId||Or;switch(Te(),P("<<"),P("/Type /Catalog"),P("/Pages "+v+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":P("/OpenAction [3 0 R /FitH null]");break;case"fullheight":P("/OpenAction [3 0 R /FitV null]");break;case"fullpage":P("/OpenAction [3 0 R /Fit]");break;case"original":P("/OpenAction [3 0 R /XYZ null null 1]");break;default:var I=""+Wt;I.substr(I.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&P("/OpenAction [3 0 R /XYZ null null "+N(Wt)+"]")}switch(ue||(ue="continuous"),ue){case"continuous":P("/PageLayout /OneColumn");break;case"single":P("/PageLayout /SinglePage");break;case"two":case"twoleft":P("/PageLayout /TwoColumnLeft");break;case"tworight":P("/PageLayout /TwoColumnRight")}qt&&P("/PageMode /"+qt),be.publish("putCatalog"),P(">>"),P("endobj")},Bs=p.__private__.putTrailer=function(){P("trailer"),P("<<"),P("/Size "+(J+1)),P("/Root "+J+" 0 R"),P("/Info "+(J-1)+" 0 R"),m!==null&&P("/Encrypt "+sn.oid+" 0 R"),P("/ID [ <"+ot+"> <"+ot+"> ]"),P(">>")},Ke=p.__private__.putHeader=function(){P("%PDF-"+j),P("%ºß¬à")},Va=p.__private__.putXRef=function(){var u="0000000000";P("xref"),P("0 "+(J+1)),P("0000000000 65535 f ");for(var v=1;v<=J;v++)typeof Z[v]=="function"?P((u+Z[v]()).slice(-10)+" 00000 n "):Z[v]!==void 0?P((u+Z[v]).slice(-10)+" 00000 n "):P("0000000000 00000 n ")},sr=p.__private__.buildDocument=function(){var u;J=0,st=0,at=[],Z=[],gt=[],Or=rn(),Vn=rn(),Dt(at),be.publish("buildDocument"),Ke(),ir(),(function(){be.publish("putAdditionalObjects");for(var I=0;I<gt.length;I++){var D=gt[I];an(D.objId,!0),P(D.content),P("endobj")}be.publish("postPutAdditionalObjects")})(),u=[],(function(){for(var I in se)se.hasOwnProperty(I)&&(_===!1||_===!0&&k.hasOwnProperty(I))&&ri(se[I])})(),(function(){var I;for(I in Yt)Yt.hasOwnProperty(I)&&js(Yt[I])})(),(function(){for(var I in fn)fn.hasOwnProperty(I)&&Fi(fn[I])})(),(function(I){var D;for(D in Ut)Ut.hasOwnProperty(D)&&(Ut[D]instanceof Xr?Ci(Ut[D]):Ut[D]instanceof yi&&Ei(Ut[D],I))})(u),be.publish("putResources"),u.forEach(aa),aa({resourcesOid:Vn,objectOid:Number.MAX_SAFE_INTEGER}),be.publish("postPutResources"),m!==null&&(sn.oid=Te(),P("<<"),P("/Filter /Standard"),P("/V "+sn.v),P("/R "+sn.r),P("/U <"+sn.toHexString(sn.U)+">"),P("/O <"+sn.toHexString(sn.O)+">"),P("/P "+sn.P),P(">>"),P("endobj")),ar(),Oi();var v=st;return Va(),Bs(),P("startxref"),P(""+v),P("%%EOF"),Dt(_t[B]),at.join(`
8
+ `)},ji=p.__private__.getBlob=function(u){return new Blob([ae(u)],{type:"application/pdf"})},la=function(u){for(;u.firstChild;)u.removeChild(u.firstChild)},Pn=function(u){var v,I=u.document,D=I.documentElement,K=I.head,lt=I.body;return K||(K=I.createElement("head"),D.appendChild(K)),lt||(lt=I.createElement("body"),D.appendChild(lt)),la(K),la(lt),(v=I.createElement("style")).appendChild(I.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),K.appendChild(v),{document:I,body:lt}},Bi=p.output=p.__private__.output=(Tn=function(u,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",u){case void 0:return sr();case"save":p.save(v.filename);break;case"arraybuffer":return ae(sr());case"blob":return ji(sr());case"bloburi":case"bloburl":if(Kt.URL!==void 0&&typeof Kt.URL.createObjectURL=="function")return Kt.URL&&Kt.URL.createObjectURL(ji(sr()))||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 I="",D=sr();try{I=Pu(D)}catch{I=Pu(unescape(encodeURIComponent(D)))}return"data:application/pdf;filename="+encodeURIComponent(v.filename)+";base64,"+I;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Kt)==="[object Window]"){var K="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",lt=!v.pdfObjectUrl;lt||(K=v.pdfObjectUrl);var mt=Kt.open();if(mt!==null){var Et=Pn(mt),Ct=Et.document.createElement("script"),Xt=this;Ct.src=K,lt&&(Ct.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ct.crossOrigin="anonymous"),Ct.onload=function(){mt.PDFObject.embed(Xt.output("dataurlstring"),v)},Et.body.appendChild(Ct)}return mt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Kt)==="[object Window]"){var te=v.pdfJsUrl||"examples/PDF.js/web/viewer.html",de=Kt.open();if(de!==null){var Xe=Pn(de),Ae=Xe.document.createElement("iframe"),_e=te.indexOf("?")===-1?"?":"&";Xt=this,Ae.id="pdfViewer",Ae.width="500px",Ae.height="400px",Ae.src=te+_e+"file=&downloadName="+encodeURIComponent(v.filename),Ae.onload=function(){de.document.title=v.filename,Ae.contentWindow.PDFViewerApplication.open(Xt.output("bloburl"))},Xe.body.appendChild(Ae)}return de}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Kt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Fe=Kt.open();if(Fe!==null){var Me=Pn(Fe),Re=Me.document.createElement("iframe");Re.src=this.output("datauristring",v),Me.body.appendChild(Re),Fe.document.title=v.filename}if(Fe||typeof safari>"u")return Fe;break;case"datauri":case"dataurl":return Kt.document.location.href=this.output("datauristring",v);default:return null}},Tn.foo=function(){try{return Tn.apply(this,arguments)}catch(I){var u=I.stack||"";~u.indexOf(" at ")&&(u=u.split(" at ")[1]);var v="Error in function "+u.split(`
9
+ `)[0].split("<")[0]+": "+I.message;if(!Kt.console)throw new Error(v);Kt.console.error(v,I),Kt.alert&&alert(v)}},Tn.foo.bar=Tn,Tn.foo),yr=function(u){return Array.isArray(ti)===!0&&ti.indexOf(u)>-1};switch(i){case"pt":ne=1;break;case"mm":ne=72/25.4;break;case"cm":ne=72/2.54;break;case"in":ne=72;break;case"px":ne=yr("px_scaling")==1?.75:96/72;break;case"pc":case"em":ne=12;break;case"ex":ne=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);ne=i}var sn=null;wt(),nt();var Ga=p.__private__.getPageInfo=p.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Vt[u].objId,pageNumber:u,pageContext:Vt[u]}},Ms=p.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Vt)if(Vt[v].objId===u)break;return Ga(v)},Rs=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Vt[B].objId,pageNumber:B,pageContext:Vt[B]}};p.addPage=function(){return Ua.apply(this,arguments),this},p.setPage=function(){return za.apply(this,arguments),Dt.call(this,_t[B]),this},p.insertPage=function(u){return this.addPage(),this.movePage(B,u),this},p.movePage=function(u,v){var I,D;if(u>v){I=_t[u],D=Vt[u];for(var K=u;K>v;K--)_t[K]=_t[K-1],Vt[K]=Vt[K-1];_t[v]=I,Vt[v]=D,this.setPage(v)}else if(u<v){I=_t[u],D=Vt[u];for(var lt=u;lt<v;lt++)_t[lt]=_t[lt+1],Vt[lt]=Vt[lt+1];_t[v]=I,Vt[v]=D,this.setPage(v)}return this},p.deletePage=function(){return oa.apply(this,arguments),this},p.__private__.text=p.text=function(u,v,I,D,K){var lt,mt,Et,Ct,Xt,te,de,Xe,Ae,_e=(D=D||{}).scope||this;if(typeof u=="number"&&typeof v=="number"&&(typeof I=="string"||Array.isArray(I))){var Fe=I;I=v,v=u,u=Fe}if(arguments[3]instanceof Gt==0?(Et=arguments[4],Ct=arguments[5],xe(de=arguments[3])==="object"&&de!==null||(typeof Et=="string"&&(Ct=Et,Et=null),typeof de=="string"&&(Ct=de,de=null),typeof de=="number"&&(Et=de,de=null),D={flags:de,angle:Et,align:Ct})):(R("The transform parameter of text() with a Matrix value"),Ae=K),isNaN(v)||isNaN(I)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return _e;var Me,Re="",hn=typeof D.lineHeightFactor=="number"?D.lineHeightFactor:ii,Lr=_e.internal.scaleFactor;function ga(ke){return ke=ke.split(" ").join(Array(D.TabLen||9).join(" ")),qn(ke,de)}function oi(ke){for(var Pe,He=ke.concat(),Ze=[],kr=He.length;kr--;)typeof(Pe=He.shift())=="string"?Ze.push(Pe):Array.isArray(ke)&&(Pe.length===1||Pe[1]===void 0&&Pe[2]===void 0)?Ze.push(Pe[0]):Ze.push([Pe[0],Pe[1],Pe[2]]);return Ze}function li(ke,Pe){var He;if(typeof ke=="string")He=Pe(ke)[0];else if(Array.isArray(ke)){for(var Ze,kr,xa=ke.concat(),Xi=[],ns=xa.length;ns--;)typeof(Ze=xa.shift())=="string"?Xi.push(Pe(Ze)[0]):Array.isArray(Ze)&&typeof Ze[0]=="string"&&(kr=Pe(Ze[0],Ze[1],Ze[2]),Xi.push([kr[0],kr[1],kr[2]]));He=Xi}return He}var Rr=!1,ui=!0;if(typeof u=="string")Rr=!0;else if(Array.isArray(u)){var zi=u.concat();mt=[];for(var Hi,cn=zi.length;cn--;)(typeof(Hi=zi.shift())!="string"||Array.isArray(Hi)&&typeof Hi[0]!="string")&&(ui=!1);Rr=ui}if(Rr===!1)throw new Error('Type of text must be string or Array. "'+u+'" is not recognized.');typeof u=="string"&&(u=u.match(/[\r?\n]/)?u.split(/\r\n|\r|\n/g):[u]);var fi=yt/_e.internal.scaleFactor,hi=fi*(hn-1);switch(D.baseline){case"bottom":I-=hi;break;case"top":I+=fi-hi;break;case"hanging":I+=fi-2*hi;break;case"middle":I+=fi/2-hi}if((te=D.maxWidth||0)>0&&(typeof u=="string"?u=_e.splitTextToSize(u,te):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(ke,Pe){return ke.concat(_e.splitTextToSize(Pe,te))},[]))),lt={text:u,x:v,y:I,options:D,mutex:{pdfEscape:qn,activeFontKey:Bt,fonts:se,activeFontSize:yt}},be.publish("preProcessText",lt),u=lt.text,Et=(D=lt.options).angle,Ae instanceof Gt==0&&Et&&typeof Et=="number"){Et*=Math.PI/180,D.rotationDirection===0&&(Et=-Et),q===G&&(Et=-Et);var ma=Math.cos(Et),ur=Math.sin(Et);Ae=new Gt(ma,ur,-ur,ma,0,0)}else Et&&Et instanceof Gt&&(Ae=Et);q!==G||Ae||(Ae=wr),(Xt=D.charSpace||Di)!==void 0&&(Re+=X(z(Xt))+` Tc
10
+ `,this.setCharSpace(this.getCharSpace()||0)),(Xe=D.horizontalScale)!==void 0&&(Re+=X(100*Xe)+` Tz
11
+ `),D.lang;var wn=-1,ts=D.renderingMode!==void 0?D.renderingMode:D.stroke,Wi=_e.internal.getCurrentPageInfo().pageContext;switch(ts){case 0:case!1:case"fill":wn=0;break;case 1:case!0:case"stroke":wn=1;break;case 2:case"fillThenStroke":wn=2;break;case 3:case"invisible":wn=3;break;case 4:case"fillAndAddForClipping":wn=4;break;case 5:case"strokeAndAddPathForClipping":wn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":wn=6;break;case 7:case"addToPathForClipping":wn=7}var es=Wi.usedRenderingMode!==void 0?Wi.usedRenderingMode:-1;wn!==-1?Re+=wn+` Tr
12
+ `:es!==-1&&(Re+=`0 Tr
13
+ `),wn!==-1&&(Wi.usedRenderingMode=wn),Ct=D.align||"left";var Un,ci=yt*hn,va=_e.internal.pageSize.getWidth(),Vi=se[Bt];Xt=D.charSpace||Di,te=D.maxWidth||0,de=Object.assign({autoencode:!0,noBOM:!0},D.flags);var di=[],ba=function(ke){return _e.getStringUnitWidth(ke,{font:Vi,charSpace:Xt,fontSize:yt,doKerning:!1})*yt/Lr};if(Object.prototype.toString.call(u)==="[object Array]"){var yn;mt=oi(u),Ct!=="left"&&(Un=mt.map(ba));var Nn,Gi=0;if(Ct==="right"){v-=Un[0],u=[],cn=mt.length;for(var Tr=0;Tr<cn;Tr++)Tr===0?(Nn=xr(v),yn=_r(I)):(Nn=z(Gi-Un[Tr]),yn=-ci),u.push([mt[Tr],Nn,yn]),Gi=Un[Tr]}else if(Ct==="center"){v-=Un[0]/2,u=[],cn=mt.length;for(var Dr=0;Dr<cn;Dr++)Dr===0?(Nn=xr(v),yn=_r(I)):(Nn=z((Gi-Un[Dr])/2),yn=-ci),u.push([mt[Dr],Nn,yn]),Gi=Un[Dr]}else if(Ct==="left"){u=[],cn=mt.length;for(var Yi=0;Yi<cn;Yi++)u.push(mt[Yi])}else if(Ct==="justify"&&Vi.encoding==="Identity-H"){u=[],cn=mt.length,te=te!==0?te:va;for(var pi=0,$e=0;$e<cn;$e++)if(yn=$e===0?_r(I):-ci,Nn=$e===0?xr(v):pi,$e<cn-1){var Zs=z((te-Un[$e])/(mt[$e].split(" ").length-1)),fr=mt[$e].split(" ");u.push([fr[0]+" ",Nn,yn]),pi=0;for(var Jn=1;Jn<fr.length;Jn++){var gi=(ba(fr[Jn-1]+" "+fr[Jn])-ba(fr[Jn]))*Lr+Zs;Jn==fr.length-1?u.push([fr[Jn],gi,0]):u.push([fr[Jn]+" ",gi,0]),pi-=gi}}else u.push([mt[$e],Nn,yn]);u.push(["",pi,0])}else{if(Ct!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],cn=mt.length,te=te!==0?te:va,$e=0;$e<cn;$e++){yn=$e===0?_r(I):-ci,Nn=$e===0?xr(v):0;var wa=mt[$e].split(" ").length-1,ya=wa>0?(te-Un[$e])/wa:0;$e<cn-1?di.push(X(z(ya))):di.push(0),u.push([mt[$e],Nn,yn])}}}(typeof D.R2L=="boolean"?D.R2L:zt)===!0&&(u=li(u,function(ke,Pe,He){return[ke.split("").reverse().join(""),Pe,He]})),lt={text:u,x:v,y:I,options:D,mutex:{pdfEscape:qn,activeFontKey:Bt,fonts:se,activeFontSize:yt}},be.publish("postProcessText",lt),u=lt.text,Me=lt.mutex.isHex||!1;var Ji=se[Bt].encoding;Ji!=="WinAnsiEncoding"&&Ji!=="StandardEncoding"||(u=li(u,function(ke,Pe,He){return[ga(ke),Pe,He]})),mt=oi(u),u=[];for(var mi,vi,qr,Sr=Array.isArray(mt[0])?1:0,Ur="",Ki=function(ke,Pe,He){var Ze="";return He instanceof Gt?(He=typeof D.angle=="number"?br(He,new Gt(1,0,0,1,ke,Pe)):br(new Gt(1,0,0,1,ke,Pe),He),q===G&&(He=br(new Gt(1,0,0,-1,0,0),He)),Ze=He.join(" ")+` Tm
14
+ `):Ze=X(ke)+" "+X(Pe)+` Td
15
+ `,Ze},dn=0;dn<mt.length;dn++){switch(Ur="",Sr){case 1:qr=(Me?"<":"(")+mt[dn][0]+(Me?">":")"),mi=parseFloat(mt[dn][1]),vi=parseFloat(mt[dn][2]);break;case 0:qr=(Me?"<":"(")+mt[dn]+(Me?">":")"),mi=xr(v),vi=_r(I)}di!==void 0&&di[dn]!==void 0&&(Ur=di[dn]+` Tw
16
+ `),dn===0?u.push(Ur+Ki(mi,vi,Ae)+qr):Sr===0?u.push(Ur+qr):Sr===1&&u.push(Ur+Ki(mi,vi,Ae)+qr)}u=Sr===0?u.join(` Tj
17
+ T* `):u.join(` Tj
18
+ `),u+=` Tj
19
+ `;var hr=`BT
20
+ /`;return hr+=Bt+" "+yt+` Tf
21
+ `,hr+=X(yt*hn)+` TL
22
+ `,hr+=lr+`
23
+ `,hr+=Re,hr+=u,P(hr+="ET"),k[Bt]=!0,_e};var Ts=p.__private__.clip=p.clip=function(u){return P(u==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Ts("evenodd")},p.__private__.discardPath=p.discardPath=function(){return P("n"),this};var or=p.__private__.isValidStyle=function(u){var v=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(v=!0),v};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(u){return or(u)&&(d=u),this};var Ya=p.__private__.getStyle=p.getStyle=function(u){var v=d;switch(u){case"D":case"S":v="S";break;case"F":v="f";break;case"FD":case"DF":v="B";break;case"f":case"f*":case"B":case"B*":v=u}return v},Mi=p.close=function(){return P("h"),this};p.stroke=function(){return P("S"),this},p.fill=function(u){return Ri("f",u),this},p.fillEvenOdd=function(u){return Ri("f*",u),this},p.fillStroke=function(u){return Ri("B",u),this},p.fillStrokeEvenOdd=function(u){return Ri("B*",u),this};var Ri=function(u,v){xe(v)==="object"?qs(v,u):P(u)},ua=function(u){u===null||q===G&&u===void 0||(u=Ya(u),P(u))};function Ds(u,v,I,D,K){var lt=new yi(v||this.boundingBox,I||this.xStep,D||this.yStep,this.gState,K||this.matrix);lt.stream=this.stream;var mt=u+"$$"+this.cloneIndex+++"$$";return Rn(mt,lt),lt}var qs=function(u,v){var I=Se[u.key],D=Ut[I];if(D instanceof Xr)P("q"),P(Us(v)),D.gState&&p.setGState(D.gState),P(u.matrix.toString()+" cm"),P("/"+I+" sh"),P("Q");else if(D instanceof yi){var K=new Gt(1,0,0,-1,0,si());u.matrix&&(K=K.multiply(u.matrix||wr),I=Ds.call(D,u.key,u.boundingBox,u.xStep,u.yStep,K).id),P("q"),P("/Pattern cs"),P("/"+I+" scn"),D.gState&&p.setGState(D.gState),P(v),P("Q")}},Us=function(u){switch(u){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"}},jr=p.moveTo=function(u,v){return P(X(z(u))+" "+X(U(v))+" m"),this},Ja=p.lineTo=function(u,v){return P(X(z(u))+" "+X(U(v))+" l"),this},Br=p.curveTo=function(u,v,I,D,K,lt){return P([X(z(u)),X(U(v)),X(z(I)),X(U(D)),X(z(K)),X(U(lt)),"c"].join(" ")),this};p.__private__.line=p.line=function(u,v,I,D,K){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(D)||!or(K))throw new Error("Invalid arguments passed to jsPDF.line");return q===V?this.lines([[I-u,D-v]],u,v,[1,1],K||"S"):this.lines([[I-u,D-v]],u,v,[1,1]).stroke()},p.__private__.lines=p.lines=function(u,v,I,D,K,lt){var mt,Et,Ct,Xt,te,de,Xe,Ae,_e,Fe,Me,Re;if(typeof u=="number"&&(Re=I,I=v,v=u,u=Re),D=D||[1,1],lt=lt||!1,isNaN(v)||isNaN(I)||!Array.isArray(u)||!Array.isArray(D)||!or(K)||typeof lt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(jr(v,I),mt=D[0],Et=D[1],Xt=u.length,Fe=v,Me=I,Ct=0;Ct<Xt;Ct++)(te=u[Ct]).length===2?(Fe=te[0]*mt+Fe,Me=te[1]*Et+Me,Ja(Fe,Me)):(de=te[0]*mt+Fe,Xe=te[1]*Et+Me,Ae=te[2]*mt+Fe,_e=te[3]*Et+Me,Fe=te[4]*mt+Fe,Me=te[5]*Et+Me,Br(de,Xe,Ae,_e,Fe,Me));return lt&&Mi(),ua(K),this},p.path=function(u){for(var v=0;v<u.length;v++){var I=u[v],D=I.c;switch(I.op){case"m":jr(D[0],D[1]);break;case"l":Ja(D[0],D[1]);break;case"c":Br.apply(this,D);break;case"h":Mi()}}return this},p.__private__.rect=p.rect=function(u,v,I,D,K){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(D)||!or(K))throw new Error("Invalid arguments passed to jsPDF.rect");return q===V&&(D=-D),P([X(z(u)),X(U(v)),X(z(I)),X(z(D)),"re"].join(" ")),ua(K),this},p.__private__.triangle=p.triangle=function(u,v,I,D,K,lt,mt){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(D)||isNaN(K)||isNaN(lt)||!or(mt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[I-u,D-v],[K-I,lt-D],[u-K,v-lt]],u,v,[1,1],mt,!0),this},p.__private__.roundedRect=p.roundedRect=function(u,v,I,D,K,lt,mt){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(D)||isNaN(K)||isNaN(lt)||!or(mt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Et=4/3*(Math.SQRT2-1);return K=Math.min(K,.5*I),lt=Math.min(lt,.5*D),this.lines([[I-2*K,0],[K*Et,0,K,lt-lt*Et,K,lt],[0,D-2*lt],[0,lt*Et,-K*Et,lt,-K,lt],[2*K-I,0],[-K*Et,0,-K,-lt*Et,-K,-lt],[0,2*lt-D],[0,-lt*Et,K*Et,-lt,K,-lt]],u+K,v,[1,1],mt,!0),this},p.__private__.ellipse=p.ellipse=function(u,v,I,D,K){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(D)||!or(K))throw new Error("Invalid arguments passed to jsPDF.ellipse");var lt=4/3*(Math.SQRT2-1)*I,mt=4/3*(Math.SQRT2-1)*D;return jr(u+I,v),Br(u+I,v-mt,u+lt,v-D,u,v-D),Br(u-lt,v-D,u-I,v-mt,u-I,v),Br(u-I,v+mt,u-lt,v+D,u,v+D),Br(u+lt,v+D,u+I,v+mt,u+I,v),ua(K),this},p.__private__.circle=p.circle=function(u,v,I,D){if(isNaN(u)||isNaN(v)||isNaN(I)||!or(D))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,v,I,I,D)},p.setFont=function(u,v,I){return I&&(v=dt(v,I)),Bt=Wa(u,v,{disableWarning:!1}),this};var zs=p.__private__.getFont=p.getFont=function(){return se[Wa.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var u,v,I={};for(u in oe)if(oe.hasOwnProperty(u))for(v in I[u]=[],oe[u])oe[u].hasOwnProperty(v)&&I[u].push(v);return I},p.addFont=function(u,v,I,D,K){var lt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&lt.indexOf(arguments[3])!==-1?K=arguments[3]:arguments[3]&&lt.indexOf(arguments[3])==-1&&(I=dt(I,D)),qa.call(this,u,v,I,K=K||"Identity-H")};var ii,Jt=n.lineWidth||.200025,Hs=p.__private__.getLineWidth=p.getLineWidth=function(){return Jt},Ws=p.__private__.setLineWidth=p.setLineWidth=function(u){return Jt=u,P(X(z(u))+" w"),this};p.__private__.setLineDash=Mt.API.setLineDash=Mt.API.setLineDashPattern=function(u,v){if(u=u||[],v=v||0,isNaN(v)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(I){return X(z(I))}).join(" "),v=X(z(v)),P("["+u+"] "+v+" d"),this};var Vs=p.__private__.getLineHeight=p.getLineHeight=function(){return yt*ii};p.__private__.getLineHeight=p.getLineHeight=function(){return yt*ii};var Gs=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(ii=u),this},Ys=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return ii};Gs(n.lineHeight);var xr=p.__private__.getHorizontalCoordinate=function(u){return z(u)},_r=p.__private__.getVerticalCoordinate=function(u){return q===G?u:Vt[B].mediaBox.topRightY-Vt[B].mediaBox.bottomLeftY-z(u)},Js=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(u){return X(xr(u))},Ks=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(u){return X(_r(u))},Ti=n.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return rr(Ti)},p.__private__.setStrokeColor=p.setDrawColor=function(u,v,I,D){return Ti=Gn({ch1:u,ch2:v,ch3:I,ch4:D,pdfColorType:"draw",precision:2}),P(Ti),this};var fa=n.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return rr(fa)},p.__private__.setFillColor=p.setFillColor=function(u,v,I,D){return fa=Gn({ch1:u,ch2:v,ch3:I,ch4:D,pdfColorType:"fill",precision:2}),P(fa),this};var lr=n.textColor||"0 g",Xs=p.__private__.getTextColor=p.getTextColor=function(){return rr(lr)};p.__private__.setTextColor=p.setTextColor=function(u,v,I,D){return lr=Gn({ch1:u,ch2:v,ch3:I,ch4:D,pdfColorType:"text",precision:3}),this};var Di=n.charSpace,$s=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Di||0)};p.__private__.setCharSpace=p.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Di=u,this};var ha=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(u){var v=p.CapJoinStyles[u];if(v===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ha=v,P(v+" J"),this};var Mr=0;p.__private__.setLineJoin=p.setLineJoin=function(u){var v=p.CapJoinStyles[u];if(v===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Mr=v,P(v+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return P(X(z(u))+" M"),this},p.GState=Ra,p.setGState=function(u){(u=typeof u=="string"?Yt[Qt[u]]:ca(null,u)).equals(je)||(P("/"+u.id+" gs"),je=u)};var ca=function(u,v){if(!u||!Qt[u]){var I=!1;for(var D in Yt)if(Yt.hasOwnProperty(D)&&Yt[D].equals(v)){I=!0;break}if(I)v=Yt[D];else{var K="GS"+(Object.keys(Yt).length+1).toString(10);Yt[K]=v,v.id=K}return u&&(Qt[u]=v.id),be.publish("addGState",v),v}};p.addGState=function(u,v){return ca(u,v),this},p.saveGraphicsState=function(){return P("q"),Oe.push({key:Bt,size:yt,color:lr}),this},p.restoreGraphicsState=function(){P("Q");var u=Oe.pop();return Bt=u.key,yt=u.size,lr=u.color,je=null,this},p.setCurrentTransformationMatrix=function(u){return P(u.toString()+" cm"),this},p.comment=function(u){return P("#"+u),this};var ai=function(u,v){var I=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return I},set:function(lt){isNaN(lt)||(I=parseFloat(lt))}});var D=v||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return D},set:function(lt){isNaN(lt)||(D=parseFloat(lt))}});var K="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return K},set:function(lt){K=lt.toString()}}),this},da=function(u,v,I,D){ai.call(this,u,v),this.type="rect";var K=I||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return K},set:function(mt){isNaN(mt)||(K=parseFloat(mt))}});var lt=D||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return lt},set:function(mt){isNaN(mt)||(lt=parseFloat(mt))}}),this},qi=function(){this.page=le,this.currentPage=B,this.pages=_t.slice(0),this.pagesContext=Vt.slice(0),this.x=Tt,this.y=ze,this.matrix=ge,this.width=Ka(B),this.height=Nr(B),this.outputDestination=St,this.id="",this.objectNumber=-1};qi.prototype.restore=function(){le=this.page,B=this.currentPage,Vt=this.pagesContext,_t=this.pages,Tt=this.x,ze=this.y,ge=this.matrix,Ar(B,this.width),Xa(B,this.height),St=this.outputDestination};var pa=function(u,v,I,D,K){nr.push(new qi),le=B=0,_t=[],Tt=u,ze=v,ge=K,sa([I,D])};for(var Ui in p.beginFormObject=function(u,v,I,D,K){return pa(u,v,I,D,K),this},p.endFormObject=function(u){return(function(v){if(vr[v])nr.pop().restore();else{var I=new qi,D="Xo"+(Object.keys(fn).length+1).toString(10);I.id=D,vr[v]=D,fn[D]=I,be.publish("addFormObject",I),nr.pop().restore()}})(u),this},p.doFormObject=function(u,v){var I=fn[vr[u]];return P("q"),P(v.toString()+" cm"),P("/"+I.id+" Do"),P("Q"),this},p.getFormObject=function(u){var v=fn[vr[u]];return{x:v.x,y:v.y,width:v.width,height:v.height,matrix:v.matrix}},p.save=function(u,v){return u=u||"generated.pdf",(v=v||{}).returnPromise=v.returnPromise||!1,v.returnPromise===!1?(wi(ji(sr()),u),typeof wi.unload=="function"&&Kt.setTimeout&&setTimeout(wi.unload,911),this):new Promise(function(I,D){try{var K=wi(ji(sr()),u);typeof wi.unload=="function"&&Kt.setTimeout&&setTimeout(wi.unload,911),I(K)}catch(lt){D(lt.message)}})},Mt.API)Mt.API.hasOwnProperty(Ui)&&(Ui==="events"&&Mt.API.events.length?(function(u,v){var I,D,K;for(K=v.length-1;K!==-1;K--)I=v[K][0],D=v[K][1],u.subscribe.apply(u,[I].concat(typeof D=="function"?[D]:D))})(be,Mt.API.events):p[Ui]=Mt.API[Ui]);function Ka(u){return Vt[u].mediaBox.topRightX-Vt[u].mediaBox.bottomLeftX}function Ar(u,v){Vt[u].mediaBox.topRightX=v+Vt[u].mediaBox.bottomLeftX}function Nr(u){return Vt[u].mediaBox.topRightY-Vt[u].mediaBox.bottomLeftY}function Xa(u,v){Vt[u].mediaBox.topRightY=v+Vt[u].mediaBox.bottomLeftY}var $a=p.getPageWidth=function(u){return Ka(u=u||B)/ne},Za=p.setPageWidth=function(u,v){Ar(u,v*ne)},si=p.getPageHeight=function(u){return Nr(u=u||B)/ne},Qa=p.setPageHeight=function(u,v){Xa(u,v*ne)};return p.internal={pdfEscape:qn,getStyle:Ya,getFont:zs,getFontSize:Ft,getCharSpace:$s,getTextColor:Xs,getLineHeight:Vs,getLineHeightFactor:Ys,getLineWidth:Hs,write:Lt,getHorizontalCoordinate:xr,getVerticalCoordinate:_r,getCoordinateString:Js,getVerticalCoordinateString:Ks,collections:{},newObject:Te,newAdditionalObject:ei,newObjectDeferred:rn,newObjectDeferredBegin:an,getFilters:Yn,putStream:Dn,events:be,scaleFactor:ne,pageSize:{getWidth:function(){return $a(B)},setWidth:function(u){Za(B,u)},getHeight:function(){return si(B)},setHeight:function(u){Qa(B,u)}},encryptionOptions:m,encryption:sn,getEncryptor:function(u){return m!==null?sn.encryptor(u,0):function(v){return v}},output:Bi,getNumberOfPages:Ha,get pages(){return _t},out:P,f2:N,f3:E,getPageInfo:Ga,getPageInfoByObjId:Ms,getCurrentPageInfo:Rs,getPDFVersion:O,Point:ai,Rectangle:da,Matrix:Gt,hasHotfix:yr},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return $a(B)},set:function(u){Za(B,u)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return si(B)},set:function(u){Qa(B,u)},enumerable:!0,configurable:!0}),(function(u){for(var v=0,I=Ht.length;v<I;v++){var D=qa.call(this,u[v][0],u[v][1],u[v][2],Ht[v][3],!0);_===!1&&(k[D]=!0);var K=u[v][0].split("-");Da({id:D,fontName:K[0],fontStyle:K[1]||""})}be.publish("addFonts",{fonts:se,dictionary:oe})}).call(p,Ht),Bt="F1",Ua(o,e),be.publish("initialized"),p}ea.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},ea.prototype.toHexString=function(n){return n.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ea.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("")},ea.prototype.processOwnerPassword=function(n,t){return Go(Vo(t).substr(0,5),n)},ea.prototype.encryptor=function(n,t){var e=Vo(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&t,t>>8&255)).substr(0,10);return function(i){return Go(e,i)}},Ra.prototype.equals=function(n){var t,e="id,objectNumber,equals";if(!n||xe(n)!==xe(this))return!1;var i=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!n.hasOwnProperty(t)||this[t]!==n[t])return!1;i++}for(t in n)n.hasOwnProperty(t)&&e.indexOf(t)<0&&i--;return i===0},Mt.API={events:[]},Mt.version="4.2.1";var Ue=Mt.API,Qo=1,Ii=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qi=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)},Kr=function(n){return n.toFixed(5)};Ue.__acroform__={};var kn=function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n},Eu=function(n){return n*Qo},dr=function(n){var t=new Ef,e=It.internal.getHeight(n)||0,i=It.internal.getWidth(n)||0;return t.BBox=[0,0,Number($t(i)),Number($t(e))],t},j1=Ue.__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},B1=Ue.__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)},M1=Ue.__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},Ge=Ue.__acroform__.getBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return M1(n,t-1)},Ye=Ue.__acroform__.setBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return j1(n,t-1)},Je=Ue.__acroform__.clearBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return B1(n,t-1)},R1=Ue.__acroform__.calculateCoordinates=function(n,t){var e=t.internal.getHorizontalCoordinate,i=t.internal.getVerticalCoordinate,o=n[0],a=n[1],c=n[2],l=n[3],h={};return h.lowerLeft_X=e(o)||0,h.lowerLeft_Y=i(a+l)||0,h.upperRight_X=e(o+c)||0,h.upperRight_Y=i(a)||0,[Number($t(h.lowerLeft_X)),Number($t(h.lowerLeft_Y)),Number($t(h.upperRight_X)),Number($t(h.upperRight_Y))]},T1=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var t=[],e=n._V||n.DV,i=Yo(n,e),o=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("/"+o+" "+$t(i.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=dr(n);return a.scope=n.scope,a.stream=t.join(`
24
+ `),a}},Yo=function(n,t){var e=n.fontSize===0?n.maxFontSize:n.fontSize,i={text:"",fontSize:""},o=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");o=n.multiline?o.map(function(N){return N.split(`
25
+ `)}):o.map(function(N){return[N]});var a=e,c=It.internal.getHeight(n)||0;c=c<0?-c:c;var l=It.internal.getWidth(n)||0;l=l<0?-l:l;var h=function(N,E,z){if(N+1<o.length){var U=E+" "+o[N+1][0];return Ls(U,n,z).width<=l-4}return!1};a++;t:for(;a>0;){t="",a--;var d,m,_=Ls("3",n,a).height,k=n.multiline?c-a:(c-_)/2,p=k+=2,j=0,O=0,M=0;if(a<=0){t=`(...) Tj
26
+ `,t+="% Width of Text: "+Ls(t,n,a=12).width+", FieldWidth:"+l+`
27
+ `;break}for(var S="",V=0,G=0;G<o.length;G++)if(o.hasOwnProperty(G)){var q=!1;if(o[G].length!==1&&M!==o[G].length-1){if((_+2)*(V+2)+2>c)continue t;S+=o[G][M],q=!0,O=G,G--}else{S=(S+=o[G][M]+" ").substr(S.length-1)==" "?S.substr(0,S.length-1):S;var it=parseInt(G),vt=h(it,S,a),dt=G>=o.length-1;if(vt&&!dt){S+=" ",M=0;continue}if(vt||dt){if(dt)O=it;else if(n.multiline&&(_+2)*(V+2)+2>c)continue t}else{if(!n.multiline||(_+2)*(V+2)+2>c)continue t;O=it}}for(var X="",R=j;R<=O;R++){var tt=o[R];if(n.multiline){if(R===O){X+=tt[M]+" ",M=(M+1)%tt.length;continue}if(R===j){X+=tt[tt.length-1]+" ";continue}}X+=tt[0]+" "}switch(X=X.substr(X.length-1)==" "?X.substr(0,X.length-1):X,m=Ls(X,n,a).width,n.textAlign){case"right":d=l-m-2;break;case"center":d=(l-m)/2;break;default:d=2}t+=$t(d)+" "+$t(p)+` Td
28
+ `,t+="("+Ii(X)+`) Tj
29
+ `,t+=-$t(d)+` 0 Td
30
+ `,p=-(a+2),m=0,j=q?O:O+1,V++,S=""}break}return i.text=t,i.fontSize=a,i},Ls=function(n,t,e){var i=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(n,{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:o}},D1={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},q1=function(n,t){var e={type:"reference",object:n};t.internal.getPageInfo(n.page).pageContext.annotations.find(function(i){return i.type===e.type&&i.object===e.object})===void 0&&t.internal.getPageInfo(n.page).pageContext.annotations.push(e)},U1=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(D1)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Qo=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Of,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 i=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];a.objId=void 0,a.hasAnnotation&&q1(a,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(i,o){var a=!i;for(var c in i||(o.internal.newObjectDeferredBegin(o.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),o.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),i=i||o.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(i.hasOwnProperty(c)){var l=i[c],h=[],d=l.Rect;if(l.Rect&&(l.Rect=R1(l.Rect,o)),o.internal.newObjectDeferredBegin(l.objId,!0),l.DA=It.createDefaultAppearanceStream(l),xe(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(h=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var m=T1(l);h.push({key:"AP",value:"<</N "+m+">>"}),o.internal.acroformPlugin.xForms.push(m)}if(l.appearanceStreamContent){var _="";for(var k in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(k)){var p=l.appearanceStreamContent[k];if(_+="/"+k+" ",_+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var j=p[c];typeof j=="function"&&(j=j.call(o,l)),_+="/"+c+" "+j+" ",o.internal.acroformPlugin.xForms.indexOf(j)>=0||o.internal.acroformPlugin.xForms.push(j)}}else typeof(j=p)=="function"&&(j=j.call(o,l)),_+="/"+c+" "+j,o.internal.acroformPlugin.xForms.indexOf(j)>=0||o.internal.acroformPlugin.xForms.push(j);_+=">>"}h.push({key:"AP",value:`<<
31
+ `+_+">>"})}o.internal.putStream({additionalKeyValues:h,objectId:l.objId}),o.internal.out("endobj")}a&&(function(O,M){for(var S in O)if(O.hasOwnProperty(S)){var V=S,G=O[S];M.internal.newObjectDeferredBegin(G.objId,!0),xe(G)==="object"&&typeof G.putStream=="function"&&G.putStream(),delete O[V]}})(o.internal.acroformPlugin.xForms,o)})(e,n)}),n.internal.acroformPlugin.isInitialized=!0}},Cf=Ue.__acroform__.arrayToPdfArray=function(n,t,e){var i=function(c){return c};if(Array.isArray(n)){for(var o="[",a=0;a<n.length;a++)switch(a!==0&&(o+=" "),xe(n[a])){case"boolean":case"number":case"object":o+=n[a].toString();break;case"string":n[a].substr(0,1)==="/"?o+="/"+ki(n[a].substr(1)):(t!==void 0&&e&&(i=e.internal.getEncryptor(t)),o+="("+Ii(i(n[a].toString()))+")")}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Oo=function(n,t,e){var i=function(o){return o};return t!==void 0&&e&&(i=e.internal.getEncryptor(t)),(n=n||"").toString(),"("+Ii(i(n))+")"},gr=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})};gr.prototype.toString=function(){return this.objId+" 0 R"},gr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},gr.prototype.getKeyValueListForStream=function(){var n=[],t=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var i=t[e],o=this[i];o&&(Array.isArray(o)?n.push({key:i,value:Cf(o,this.objId,this.scope)}):o instanceof gr?(o.scope=this.scope,n.push({key:i,value:o.objId+" 0 R"})):typeof o!="function"&&n.push({key:i,value:o}))}return n};var Ef=function(){gr.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}})};kn(Ef,gr);var Of=function(){gr.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(i){return i};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Ii(e(n))+")"}},set:function(e){n=e}})};kn(Of,gr);var tr=function n(){gr.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!!Ge(t,3)},set:function(S){S?this.F=Ye(t,3):this.F=Je(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 i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(S){i=S!==void 0?S:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(S){i[0]=S}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(S){i[1]=S}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(S){i[2]=S}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(S){i[3]=S}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(S){switch(S){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=S;break;default:throw new Error('Invalid value "'+S+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Cs)return;a="FieldObject"+n.FieldNum++}var S=function(V){return V};return this.scope&&(S=this.scope.internal.getEncryptor(this.objId)),"("+Ii(S(a))+")"},set:function(S){a=S.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(S){a=S}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(S){c=S}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(S){l=S}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return h},set:function(S){h=S}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Qo:d},set:function(S){d=S}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(S){m=S}});var _="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!_||this instanceof Cs||this instanceof Zr))return Oo(_,this.objId,this.scope)},set:function(S){S=S.toString(),_=S}});var k=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(k)return this instanceof nn==0?Oo(k,this.objId,this.scope):k},set:function(S){S=S.toString(),k=this instanceof nn==0?S.substr(0,1)==="("?Qi(S.substr(1,S.length-2)):Qi(S):S}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof nn==1?Qi(k.substr(1,k.length-1)):k},set:function(S){S=S.toString(),k=this instanceof nn==1?"/"+ki(S):S}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(S){this.V=S}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof nn==0?Oo(p,this.objId,this.scope):p},set:function(S){S=S.toString(),p=this instanceof nn==0?S.substr(0,1)==="("?Qi(S.substr(1,S.length-2)):Qi(S):S}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof nn==1?Qi(p.substr(1,p.length-1)):p},set:function(S){S=S.toString(),p=this instanceof nn==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 j,O=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return O},set:function(S){S=!!S,O=S}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(j)return j},set:function(S){j=S}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,1)},set:function(S){S?this.Ff=Ye(this.Ff,1):this.Ff=Je(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,2)},set:function(S){S?this.Ff=Ye(this.Ff,2):this.Ff=Je(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,3)},set:function(S){S?this.Ff=Ye(this.Ff,3):this.Ff=Je(this.Ff,3)}});var M=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(M!==null)return M},set:function(S){if([0,1,2].indexOf(S)===-1)throw new Error('Invalid value "'+S+'" for attribute Q supplied.');M=S}}),Object.defineProperty(this,"textAlign",{get:function(){var S;switch(M){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:M=2;break;case"center":case 1:M=1;break;default:M=0}}})};kn(tr,gr);var xi=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 Cf(t,this.objId,this.scope)},set:function(e){var i,o;o=[],typeof(i=e)=="string"&&(o=(function(a,c,l){l||(l=1);for(var h,d=[];h=c.exec(a);)d.push(h[l]);return d})(i,/\((.*?)\)/g)),t=o}}),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,i){for(i=i||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),i!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,18)},set:function(e){e?this.Ff=Ye(this.Ff,18):this.Ff=Je(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Ye(this.Ff,19):this.Ff=Je(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,20)},set:function(e){e?(this.Ff=Ye(this.Ff,20),t.sort()):this.Ff=Je(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,22)},set:function(e){e?this.Ff=Ye(this.Ff,22):this.Ff=Je(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,23)},set:function(e){e?this.Ff=Ye(this.Ff,23):this.Ff=Je(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,27)},set:function(e){e?this.Ff=Ye(this.Ff,27):this.Ff=Je(this.Ff,27)}}),this.hasAppearanceStream=!1};kn(xi,tr);var _i=function(){xi.call(this),this.fontName="helvetica",this.combo=!1};kn(_i,xi);var Ai=function(){_i.call(this),this.combo=!0};kn(Ai,_i);var Ea=function(){Ai.call(this),this.edit=!0};kn(Ea,Ai);var nn=function(){tr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,15)},set:function(e){e?this.Ff=Ye(this.Ff,15):this.Ff=Je(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,16)},set:function(e){e?this.Ff=Ye(this.Ff,16):this.Ff=Je(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,17)},set:function(e){e?this.Ff=Ye(this.Ff,17):this.Ff=Je(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,26)},set:function(e){e?this.Ff=Ye(this.Ff,26):this.Ff=Je(this.Ff,26)}});var n,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(a){return a};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var i,o=[];for(i in o.push("<<"),t)o.push("/"+i+" ("+Ii(e(t[i]))+")");return o.push(">>"),o.join(`
32
+ `)}},set:function(e){xe(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 i=e==null?"":e.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),n="/"+ki(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+ki(e)}})};kn(nn,tr);var Oa=function(){nn.call(this),this.pushButton=!0};kn(Oa,nn);var Ni=function(){nn.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:[]}})};kn(Ni,nn);var Cs=function(){var n,t;tr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(o){n=o}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(o){t=o}});var e,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var o=function(l){return l};this.scope&&(o=this.scope.internal.getEncryptor(this.objId));var a,c=[];for(a in c.push("<<"),i)c.push("/"+a+" ("+Ii(o(i[a]))+")");return c.push(">>"),c.join(`
33
+ `)},set:function(o){xe(o)==="object"&&(i=o)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(o){typeof o=="string"&&(i.CA=o)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(o){var a=o==null?"":o.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),e="/"+ki(a)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(o){var a=o==null?"":o.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),e="/"+ki(a)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=It.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};kn(Cs,tr),Ni.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()}},Ni.prototype.createOption=function(n){var t=new Cs;return t.Parent=this,t.optionName=n,this.Kids.push(t),z1.call(this.scope,t),t};var ja=function(){nn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=It.CheckBox.createAppearanceStream()};kn(ja,nn);var Zr=function(){tr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,13)},set:function(t){t?this.Ff=Ye(this.Ff,13):this.Ff=Je(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,21)},set:function(t){t?this.Ff=Ye(this.Ff,21):this.Ff=Je(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,23)},set:function(t){t?this.Ff=Ye(this.Ff,23):this.Ff=Je(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,24)},set:function(t){t?this.Ff=Ye(this.Ff,24):this.Ff=Je(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,25)},set:function(t){t?this.Ff=Ye(this.Ff,25):this.Ff=Je(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,26)},set:function(t){t?this.Ff=Ye(this.Ff,26):this.Ff=Je(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}})};kn(Zr,tr);var Ba=function(){Zr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,14)},set:function(n){n?this.Ff=Ye(this.Ff,14):this.Ff=Je(this.Ff,14)}}),this.password=!0};kn(Ba,Zr);var It={CheckBox:{createAppearanceStream:function(){return{N:{On:It.CheckBox.YesNormal},D:{On:It.CheckBox.YesPushDown,Off:It.CheckBox.OffPushDown}}},YesPushDown:function(n){var t=dr(n);t.scope=n.scope;var e=[],i=n.scope.internal.getFont(n.fontName,n.fontStyle).id,o=n.scope.__private__.encodeColorString(n.color),a=Yo(n,n.caption);return e.push("0.749023 g"),e.push("0 0 "+$t(It.internal.getWidth(n))+" "+$t(It.internal.getHeight(n))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+i+" "+$t(a.fontSize)+" Tf "+o),e.push("BT"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(`
34
+ `),t},YesNormal:function(n){var t=dr(n);t.scope=n.scope;var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,i=n.scope.__private__.encodeColorString(n.color),o=[],a=It.internal.getHeight(n),c=It.internal.getWidth(n),l=Yo(n,n.caption);return o.push("1 g"),o.push("0 0 "+$t(c)+" "+$t(a)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+$t(c-1)+" "+$t(a-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+e+" "+$t(l.fontSize)+" Tf "+i),o.push(l.text),o.push("ET"),o.push("Q"),t.stream=o.join(`
35
+ `),t},OffPushDown:function(n){var t=dr(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(It.internal.getWidth(n))+" "+$t(It.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(`
36
+ `),t}},RadioButton:{Circle:{createAppearanceStream:function(n){var t={D:{Off:It.RadioButton.Circle.OffPushDown},N:{}};return t.N[n]=It.RadioButton.Circle.YesNormal,t.D[n]=It.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(n){var t=dr(n);t.scope=n.scope;var e=[],i=It.internal.getWidth(n)<=It.internal.getHeight(n)?It.internal.getWidth(n)/4:It.internal.getHeight(n)/4;i=Number((.9*i).toFixed(5));var o=It.internal.Bezier_C,a=Number((i*o).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Kr(It.internal.getWidth(n)/2)+" "+Kr(It.internal.getHeight(n)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),e.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),e.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),e.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
37
+ `),t},YesPushDown:function(n){var t=dr(n);t.scope=n.scope;var e=[],i=It.internal.getWidth(n)<=It.internal.getHeight(n)?It.internal.getWidth(n)/4:It.internal.getHeight(n)/4;i=Number((.9*i).toFixed(5));var o=Number((2*i).toFixed(5)),a=Number((o*It.internal.Bezier_C).toFixed(5)),c=Number((i*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Kr(It.internal.getWidth(n)/2)+" "+Kr(It.internal.getHeight(n)/2)+" cm"),e.push(o+" 0 m"),e.push(o+" "+a+" "+a+" "+o+" 0 "+o+" c"),e.push("-"+a+" "+o+" -"+o+" "+a+" -"+o+" 0 c"),e.push("-"+o+" -"+a+" -"+a+" -"+o+" 0 -"+o+" c"),e.push(a+" -"+o+" "+o+" -"+a+" "+o+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Kr(It.internal.getWidth(n)/2)+" "+Kr(It.internal.getHeight(n)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+c+" "+c+" "+i+" 0 "+i+" c"),e.push("-"+c+" "+i+" -"+i+" "+c+" -"+i+" 0 c"),e.push("-"+i+" -"+c+" -"+c+" -"+i+" 0 -"+i+" c"),e.push(c+" -"+i+" "+i+" -"+c+" "+i+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
38
+ `),t},OffPushDown:function(n){var t=dr(n);t.scope=n.scope;var e=[],i=It.internal.getWidth(n)<=It.internal.getHeight(n)?It.internal.getWidth(n)/4:It.internal.getHeight(n)/4;i=Number((.9*i).toFixed(5));var o=Number((2*i).toFixed(5)),a=Number((o*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Kr(It.internal.getWidth(n)/2)+" "+Kr(It.internal.getHeight(n)/2)+" cm"),e.push(o+" 0 m"),e.push(o+" "+a+" "+a+" "+o+" 0 "+o+" c"),e.push("-"+a+" "+o+" -"+o+" "+a+" -"+o+" 0 c"),e.push("-"+o+" -"+a+" -"+a+" -"+o+" 0 -"+o+" c"),e.push(a+" -"+o+" "+o+" -"+a+" "+o+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
39
+ `),t}},Cross:{createAppearanceStream:function(n){var t={D:{Off:It.RadioButton.Cross.OffPushDown},N:{}};return t.N[n]=It.RadioButton.Cross.YesNormal,t.D[n]=It.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(n){var t=dr(n);t.scope=n.scope;var e=[],i=It.internal.calculateCross(n);return e.push("q"),e.push("1 1 "+$t(It.internal.getWidth(n)-2)+" "+$t(It.internal.getHeight(n)-2)+" re"),e.push("W"),e.push("n"),e.push($t(i.x1.x)+" "+$t(i.x1.y)+" m"),e.push($t(i.x2.x)+" "+$t(i.x2.y)+" l"),e.push($t(i.x4.x)+" "+$t(i.x4.y)+" m"),e.push($t(i.x3.x)+" "+$t(i.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(`
40
+ `),t},YesPushDown:function(n){var t=dr(n);t.scope=n.scope;var e=It.internal.calculateCross(n),i=[];return i.push("0.749023 g"),i.push("0 0 "+$t(It.internal.getWidth(n))+" "+$t(It.internal.getHeight(n))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+$t(It.internal.getWidth(n)-2)+" "+$t(It.internal.getHeight(n)-2)+" re"),i.push("W"),i.push("n"),i.push($t(e.x1.x)+" "+$t(e.x1.y)+" m"),i.push($t(e.x2.x)+" "+$t(e.x2.y)+" l"),i.push($t(e.x4.x)+" "+$t(e.x4.y)+" m"),i.push($t(e.x3.x)+" "+$t(e.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join(`
41
+ `),t},OffPushDown:function(n){var t=dr(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(It.internal.getWidth(n))+" "+$t(It.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(`
42
+ `),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}};It.internal={Bezier_C:.551915024494,calculateCross:function(n){var t=It.internal.getWidth(n),e=It.internal.getHeight(n),i=Math.min(t,e);return{x1:{x:(t-i)/2,y:(e-i)/2+i},x2:{x:(t-i)/2+i,y:(e-i)/2},x3:{x:(t-i)/2,y:(e-i)/2},x4:{x:(t-i)/2+i,y:(e-i)/2+i}}}},It.internal.getWidth=function(n){var t=0;return xe(n)==="object"&&(t=Eu(n.Rect[2])),t},It.internal.getHeight=function(n){var t=0;return xe(n)==="object"&&(t=Eu(n.Rect[3])),t};var z1=Ue.addField=function(n){if(U1(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};Ue.AcroFormChoiceField=xi,Ue.AcroFormListBox=_i,Ue.AcroFormComboBox=Ai,Ue.AcroFormEditBox=Ea,Ue.AcroFormButton=nn,Ue.AcroFormPushButton=Oa,Ue.AcroFormRadioButton=Ni,Ue.AcroFormCheckBox=ja,Ue.AcroFormTextField=Zr,Ue.AcroFormPasswordField=Ba,Ue.AcroFormAppearance=It,Ue.AcroForm={ChoiceField:xi,ListBox:_i,ComboBox:Ai,EditBox:Ea,Button:nn,PushButton:Oa,RadioButton:Ni,CheckBox:ja,TextField:Zr,PasswordField:Ba,Appearance:It},Mt.AcroForm={ChoiceField:xi,ListBox:_i,ComboBox:Ai,EditBox:Ea,Button:nn,PushButton:Oa,RadioButton:Ni,CheckBox:ja,TextField:Zr,PasswordField:Ba,Appearance:It};var H1=Mt.AcroForm;function jf(n){return n.reduce(function(t,e,i){return t[e]=i,t},{})}(function(n){var t="addImage_";n.__addimage__={};var e="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=n.__addimage__.getImageFileTypeByImageData=function(N,E){var z,U,rt,ot,ft,nt=e;if((E=E||e)==="RGBA"||N.data!==void 0&&N.data instanceof Uint8ClampedArray&&"height"in N&&"width"in N)return"RGBA";if(vt(N))for(ft in i)for(rt=i[ft],z=0;z<rt.length;z+=1){for(ot=!0,U=0;U<rt[z].length;U+=1)if(rt[z][U]!==void 0&&rt[z][U]!==N[U]){ot=!1;break}if(ot===!0){nt=ft;break}}else for(ft in i)for(rt=i[ft],z=0;z<rt.length;z+=1){for(ot=!0,U=0;U<rt[z].length;U+=1)if(rt[z][U]!==void 0&&rt[z][U]!==N.charCodeAt(U)){ot=!1;break}if(ot===!0){nt=ft;break}}return nt===e&&E!==e&&(nt=E),nt},a=function N(E){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);E.objectId=this.internal.newObject();var ot=[];if(ot.push({key:"Type",value:"/XObject"}),ot.push({key:"Subtype",value:"/Image"}),ot.push({key:"Width",value:E.width}),ot.push({key:"Height",value:E.height}),E.colorSpace===S.INDEXED?ot.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(E.palette.length/3-1)+" "+("sMask"in E&&E.sMask!==void 0?E.objectId+2:E.objectId+1)+" 0 R]"}):(ot.push({key:"ColorSpace",value:"/"+E.colorSpace}),E.colorSpace===S.DEVICE_CMYK&&ot.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ot.push({key:"BitsPerComponent",value:E.bitsPerComponent}),"decodeParameters"in E&&E.decodeParameters!==void 0&&ot.push({key:"DecodeParms",value:"<<"+E.decodeParameters+">>"}),"transparency"in E&&Array.isArray(E.transparency)&&E.transparency.length>0){for(var ft="",nt=0,ct=E.transparency.length;nt<ct;nt++)ft+=E.transparency[nt]+" "+E.transparency[nt]+" ";ot.push({key:"Mask",value:"["+ft+"]"})}E.sMask!==void 0&&ot.push({key:"SMask",value:E.objectId+1+" 0 R"});var At=E.filter!==void 0?["/"+E.filter]:void 0;if(U({data:E.data,additionalKeyValues:ot,alreadyAppliedFilters:At,objectId:E.objectId}),z("endobj"),"sMask"in E&&E.sMask!==void 0){var wt,x=(wt=E.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:E.bitsPerComponent,B={width:E.width,height:E.height,colorSpace:"DeviceGray",bitsPerComponent:x,data:E.sMask};"filter"in E&&(B.decodeParameters="/Predictor ".concat(E.predictor," /Colors 1 /BitsPerComponent ").concat(x," /Columns ").concat(E.width),B.filter=E.filter),N.call(this,B)}if(E.colorSpace===S.INDEXED){var T=this.internal.newObject();U({data:X(new Uint8Array(E.palette)),objectId:T}),z("endobj")}},c=function(){var N=this.internal.collections[t+"images"];for(var E in N)a.call(this,N[E])},l=function(){var N,E=this.internal.collections[t+"images"],z=this.internal.write;for(var U in E)z("/I"+(N=E[U]).index,N.objectId,"0","R")},h=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",c),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var N=this.internal.collections[t+"images"];return h.call(this),N},m=function(){return Object.keys(this.internal.collections[t+"images"]).length},_=function(N){return typeof n["process"+N.toUpperCase()]=="function"},k=function(N){return xe(N)==="object"&&N.nodeType===1},p=function(N,E){if(N.nodeName==="IMG"&&N.hasAttribute("src")){var z=""+N.getAttribute("src");if(z.indexOf("data:image/")===0)return Ps(unescape(z).split("base64,").pop());var U=n.loadFile(z,!0);if(U!==void 0)return U}if(N.nodeName==="CANVAS"){if(N.width===0||N.height===0)throw new Error("Given canvas must have data. Canvas width: "+N.width+", height: "+N.height);var rt;switch(E){case"PNG":rt="image/png";break;case"WEBP":rt="image/webp";break;default:rt="image/jpeg"}return Ps(N.toDataURL(rt,1).split("base64,").pop())}},j=function(N){var E=this.internal.collections[t+"images"];if(E){for(var z in E)if(N===E[z].alias)return E[z]}},O=function(N,E,z){return N||E||(N=-96,E=-96),N<0&&(N=-1*z.width*72/N/this.internal.scaleFactor),E<0&&(E=-1*z.height*72/E/this.internal.scaleFactor),N===0&&(N=E*z.width/z.height),E===0&&(E=N*z.height/z.width),[N,E]},M=function(N,E,z,U,rt,ot){var ft=O.call(this,z,U,rt),nt=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,At=d.call(this);if(z=ft[0],U=ft[1],At[rt.index]=rt,ot){ot*=Math.PI/180;var wt=Math.cos(ot),x=Math.sin(ot),B=function(H){return H.toFixed(4)},T=[B(wt),B(x),B(-1*x),B(wt),0,0,"cm"]}this.internal.write("q"),ot?(this.internal.write([1,"0","0",1,nt(N),ct(E+U),"cm"].join(" ")),this.internal.write(T.join(" ")),this.internal.write([nt(z),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(z),"0","0",nt(U),nt(N),ct(E+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 V=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},G=n.__addimage__.sHashCode=function(N){var E,z,U=0;if(typeof N=="string")for(z=N.length,E=0;E<z;E++)U=(U<<5)-U+N.charCodeAt(E),U|=0;else if(vt(N))for(z=N.byteLength/2,E=0;E<z;E++)U=(U<<5)-U+N[E],U|=0;return U},q=n.__addimage__.validateStringAsBase64=function(N){(N=N||"").toString().trim();var E=!0;return N.length===0&&(E=!1),N.length%4!=0&&(E=!1),/^[A-Za-z0-9+/]+$/.test(N.substr(0,N.length-2))===!1&&(E=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(N.substr(-2))===!1&&(E=!1),E},it=n.__addimage__.extractImageFromDataUrl=function(N){if(N==null||!(N=N.trim()).startsWith("data:"))return null;var E=N.indexOf(",");return E<0?null:N.substring(0,E).trim().endsWith("base64")?N.substring(E+1):null};n.__addimage__.isArrayBuffer=function(N){return N instanceof ArrayBuffer};var vt=n.__addimage__.isArrayBufferView=function(N){return N instanceof Int8Array||N instanceof Uint8Array||N instanceof Uint8ClampedArray||N instanceof Int16Array||N instanceof Uint16Array||N instanceof Int32Array||N instanceof Uint32Array||N instanceof Float32Array||N instanceof Float64Array},dt=n.__addimage__.binaryStringToUint8Array=function(N){for(var E=N.length,z=new Uint8Array(E),U=0;U<E;U++)z[U]=N.charCodeAt(U);return z},X=n.__addimage__.arrayBufferToBinaryString=function(N){for(var E="",z=vt(N)?N:new Uint8Array(N),U=0;U<z.length;U+=8192)E+=String.fromCharCode.apply(null,z.subarray(U,U+8192));return E};n.addImage=function(){var N,E,z,U,rt,ot,ft,nt,ct;if(typeof arguments[1]=="number"?(E=e,z=arguments[1],U=arguments[2],rt=arguments[3],ot=arguments[4],ft=arguments[5],nt=arguments[6],ct=arguments[7]):(E=arguments[1],z=arguments[2],U=arguments[3],rt=arguments[4],ot=arguments[5],ft=arguments[6],nt=arguments[7],ct=arguments[8]),xe(N=arguments[0])==="object"&&!k(N)&&"imageData"in N){var At=N;N=At.imageData,E=At.format||E||e,z=At.x||z||0,U=At.y||U||0,rt=At.w||At.width||rt,ot=At.h||At.height||ot,ft=At.alias||ft,nt=At.compression||nt,ct=At.rotation||At.angle||ct}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");h.call(this);var x=R.call(this,N,E,ft,nt);return M.call(this,z,U,rt,ot,x,ct),this};var R=function(N,E,z,U){var rt,ot,ft;if(typeof N=="string"&&o(N)===e){N=unescape(N);var nt=tt(N,!1);(nt!==""||(nt=n.loadFile(N,!0))!==void 0)&&(N=nt)}if(k(N)&&(N=p(N,E)),E=o(N,E),!_(E))throw new Error("addImage does not support files of type '"+E+"', please ensure that a plugin for '"+E+"' support is added.");if(((ft=z)==null||ft.length===0)&&(z=(function(ct){return typeof ct=="string"||vt(ct)?G(ct):vt(ct.data)?G(ct.data):null})(N)),(rt=j.call(this,z))||(N instanceof Uint8Array||E==="RGBA"||(ot=N,N=dt(N)),rt=this["process"+E.toUpperCase()](N,m.call(this),z,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in n.image_compression?ct:V.NONE})(U),ot)),!rt)throw new Error("An unknown error occurred whilst processing the image.");return rt},tt=n.__addimage__.convertBase64ToBinaryString=function(N,E){E=typeof E!="boolean"||E;var z,U="";if(typeof N=="string"){var rt;z=(rt=it(N))!==null&&rt!==void 0?rt:N;try{U=Ps(z)}catch(ot){if(E)throw q(z)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ot.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};n.getImageProperties=function(N){var E,z,U="";if(k(N)&&(N=p(N)),typeof N=="string"&&o(N)===e&&((U=tt(N,!1))===""&&(U=n.loadFile(N)||""),N=U),z=o(N),!_(z))throw new Error("addImage does not support files of type '"+z+"', please ensure that a plugin for '"+z+"' support is added.");if(N instanceof Uint8Array||(N=dt(N)),!(E=this["process"+z.toUpperCase()](N)))throw new Error("An unknown error occurred whilst processing the image");return E.fileType=z,E}})(Mt.API),(function(n){var t=function(e){if(e!==void 0&&e!="")return!0};Mt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(e){for(var i,o,a,c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,h=this.internal.getPageInfoByObjId(e.objId),d=e.pageContext.annotations,m=!1,_=0;_<d.length&&!m;_++)switch((i=d[_]).type){case"link":(t(i.options.url)||t(i.options.pageNumber))&&(m=!0);break;case"reference":case"text":case"freetext":m=!0}if(m!=0){this.internal.write("/Annots [");for(var k=0;k<d.length;k++){i=d[k];var p=this.internal.pdfEscape,j=this.internal.getEncryptor(e.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var O=this.internal.newAdditionalObject(),M=this.internal.newAdditionalObject(),S=this.internal.getEncryptor(O.objId),V=i.title||"Note";a="<</Type /Annot /Subtype /Text "+(o="/Rect ["+c(i.bounds.x)+" "+l(i.bounds.y+i.bounds.h)+" "+c(i.bounds.x+i.bounds.w)+" "+l(i.bounds.y)+"] ")+"/Contents ("+p(S(i.contents))+")",a+=" /Popup "+M.objId+" 0 R",a+=" /P "+h.objId+" 0 R",a+=" /T ("+p(S(V))+") >>",O.content=a;var G=O.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(o="/Rect ["+c(i.bounds.x+30)+" "+l(i.bounds.y+i.bounds.h)+" "+c(i.bounds.x+i.bounds.w+30)+" "+l(i.bounds.y)+"] ")+" /Parent "+G,i.open&&(a+=" /Open true"),a+=" >>",M.content=a,this.internal.write(O.objId,"0 R",M.objId,"0 R");break;case"freetext":o="/Rect ["+c(i.bounds.x)+" "+l(i.bounds.y)+" "+c(i.bounds.x+i.bounds.w)+" "+l(i.bounds.y+i.bounds.h)+"] ";var q="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(i.color||"#000000");a="<</Type /Annot /Subtype /FreeText "+o+"/Contents ("+p(j(i.contents))+")",a+=" /DS("+p(j(q))+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(i.options.name){var it=this.annotations._nameMap[i.options.name];i.options.pageNumber=it.page,i.options.top=it.y}else i.options.top||(i.options.top=0);if(o="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",a="",i.options.url)a="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /A <</S /URI /URI ("+p(j(i.options.url))+") >>";else if(i.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,a+=" /FitV "+i.options.left+"]";break;default:var vt=l(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),a+=" /XYZ "+i.options.left+" "+vt+" "+i.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),n.createAnnotation=function(e){var i=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":i.pageContext.annotations.push(e)}},n.link=function(e,i,o,a,c){var l=this.internal.getCurrentPageInfo(),h=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:h(e),y:d(i),w:h(e+o),h:d(i+a)},options:c,type:"link"})},n.textWithLink=function(e,i,o,a){var c,l,h=this.getTextWidth(e),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){l=a.maxWidth;var m=this.splitTextToSize(e,l).length;c=Math.ceil(d*m)}else l=h,c=d;return this.text(e,i,o,a),o+=.2*d,a.align==="center"&&(i-=h/2),a.align==="right"&&(i-=h),this.link(i,o-d,l,c,a),h},n.getTextWidth=function(e){var i=this.internal.getFontSize();return this.getStringUnitWidth(e)*i/this.internal.scaleFactor}})(Mt.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}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];n.__arabicParser__={};var a=n.__arabicParser__.isInArabicSubstitutionA=function(O){return t[O.charCodeAt(0)]!==void 0},c=n.__arabicParser__.isArabicLetter=function(O){return typeof O=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(O)},l=n.__arabicParser__.isArabicEndLetter=function(O){return c(O)&&a(O)&&t[O.charCodeAt(0)].length<=2},h=n.__arabicParser__.isArabicAlfLetter=function(O){return c(O)&&o.indexOf(O.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(O){return c(O)&&a(O)&&t[O.charCodeAt(0)].length>=1};var d=n.__arabicParser__.arabicLetterHasFinalForm=function(O){return c(O)&&a(O)&&t[O.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(O){return c(O)&&a(O)&&t[O.charCodeAt(0)].length>=3};var m=n.__arabicParser__.arabicLetterHasMedialForm=function(O){return c(O)&&a(O)&&t[O.charCodeAt(0)].length==4},_=n.__arabicParser__.resolveLigatures=function(O){var M=0,S=e,V="",G=0;for(M=0;M<O.length;M+=1)S[O.charCodeAt(M)]!==void 0?(G++,typeof(S=S[O.charCodeAt(M)])=="number"&&(V+=String.fromCharCode(S),S=e,G=0),M===O.length-1&&(S=e,V+=O.charAt(M-(G-1)),M-=G-1,G=0)):(S=e,V+=O.charAt(M-G),M-=G,G=0);return V};n.__arabicParser__.isArabicDiacritic=function(O){return O!==void 0&&i[O.charCodeAt(0)]!==void 0};var k=n.__arabicParser__.getCorrectForm=function(O,M,S){return c(O)?a(O)===!1?-1:!d(O)||!c(M)&&!c(S)||!c(S)&&l(M)||l(O)&&!c(M)||l(O)&&h(M)||l(O)&&l(M)?0:m(O)&&c(M)&&!l(M)&&c(S)&&d(S)?3:l(O)||!c(S)?1:2:-1},p=function(O){var M=0,S=0,V=0,G="",q="",it="",vt=(O=O||"").split("\\s+"),dt=[];for(M=0;M<vt.length;M+=1){for(dt.push(""),S=0;S<vt[M].length;S+=1)G=vt[M][S],q=vt[M][S-1],it=vt[M][S+1],c(G)?(V=k(G,q,it),dt[M]+=V!==-1?String.fromCharCode(t[G.charCodeAt(0)][V]):G):dt[M]+=G;dt[M]=_(dt[M])}return dt.join(" ")},j=n.__arabicParser__.processArabic=n.processArabic=function(){var O,M=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,S=[];if(Array.isArray(M)){var V=0;for(S=[],V=0;V<M.length;V+=1)Array.isArray(M[V])?S.push([p(M[V][0]),M[V][1],M[V][2]]):S.push([p(M[V])]);O=S}else O=p(M);return typeof arguments[0]=="string"?O:(arguments[0].text=O,arguments[0])};n.events.push(["preProcessText",j])})(Mt.API),Mt.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 i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var o=300;Object.defineProperty(this,"height",{get:function(){return o},set:function(l){o=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=o+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(l){a=l}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,i){var o;if((e=e||"2d")!=="2d")return null;for(o in i)this.pdf.context2d.hasOwnProperty(o)&&(this.pdf.context2d[o]=i[o]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(Mt.API),(function(n){var t={left:0,top:0,bottom:0,right:0},e=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var h=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return h},set:function(O){h=O}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(O){d=O}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(O){m=O}});var _=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return _},set:function(O){_=O}});var k=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return k},set:function(O){k=O}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(O){p=O}});var j=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return j},set:function(O){j=O}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(h){return i.call(this),this.internal.__cell__.headerFunction=typeof h=="function"?h:void 0,this},n.getTextDimensions=function(h,d){i.call(this);var m=(d=d||{}).fontSize||this.getFontSize(),_=d.font||this.getFont(),k=d.scaleFactor||this.internal.scaleFactor,p=0,j=0,O=0,M=this;if(!Array.isArray(h)&&typeof h!="string"){if(typeof h!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");h=String(h)}var S=d.maxWidth;S>0?typeof h=="string"?h=this.splitTextToSize(h,S):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(G,q){return G.concat(M.splitTextToSize(q,S))},[])):h=Array.isArray(h)?h:[h];for(var V=0;V<h.length;V++)p<(O=this.getStringUnitWidth(h[V],{font:_})*m)&&(p=O);return p!==0&&(j=h.length),{w:p/=k,h:Math.max((j*m*this.getLineHeightFactor()-m*(this.getLineHeightFactor()-1))/k,0)}},n.cellAddPage=function(){i.call(this),this.addPage();var h=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(h.left,h.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=n.cell=function(){var h;h=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var d=this.internal.__cell__.lastCell,m=this.internal.__cell__.padding,_=this.internal.__cell__.margins||t,k=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===h.lineNumber?(h.x=(d.x||0)+(d.width||0),h.y=d.y||0):d.y+d.height+h.height+_.bottom>this.getPageHeight()?(this.cellAddPage(),h.y=_.top,p&&k&&(this.printHeaderRow(h.lineNumber,!0),h.y+=k[0].height)):h.y=d.y+d.height||h.y),h.text[0]!==void 0&&(this.rect(h.x,h.y,h.width,h.height,e===!0?"FD":void 0),h.align==="right"?this.text(h.text,h.x+h.width-m,h.y+m,{align:"right",baseline:"top"}):h.align==="center"?this.text(h.text,h.x+h.width/2,h.y+m,{align:"center",baseline:"top",maxWidth:h.width-m-m}):this.text(h.text,h.x+m,h.y+m,{align:"left",baseline:"top",maxWidth:h.width-m-m})),this.internal.__cell__.lastCell=h,this};n.table=function(h,d,m,_,k){if(i.call(this),!m)throw new Error("No data for PDF table.");var p,j,O,M,S=[],V=[],G=[],q={},it={},vt=[],dt=[],X=(k=k||{}).autoSize||!1,R=k.printHeaders!==!1,tt=k.css&&k.css["font-size"]!==void 0?16*k.css["font-size"]:k.fontSize||12,N=k.margins||Object.assign({width:this.getPageWidth()},t),E=typeof k.padding=="number"?k.padding:3,z=k.headerBackgroundColor||"#c8c8c8",U=k.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=tt,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=U,this.setFontSize(tt),_==null)V=S=Object.keys(m[0]),G=S.map(function(){return"left"});else if(Array.isArray(_)&&xe(_[0])==="object")for(S=_.map(function(At){return At.name}),V=_.map(function(At){return At.prompt||At.name||""}),G=_.map(function(At){return At.align||"left"}),p=0;p<_.length;p+=1)it[_[p].name]=.7499990551181103*_[p].width;else Array.isArray(_)&&typeof _[0]=="string"&&(V=S=_,G=S.map(function(){return"left"}));if(X||Array.isArray(_)&&typeof _[0]=="string")for(p=0;p<S.length;p+=1){for(q[M=S[p]]=m.map(function(At){return At[M]}),this.setFont(void 0,"bold"),vt.push(this.getTextDimensions(V[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),j=q[M],this.setFont(void 0,"normal"),O=0;O<j.length;O+=1)vt.push(this.getTextDimensions(j[O],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);it[M]=Math.max.apply(null,vt)+E+E,vt=[]}if(R){var rt={};for(p=0;p<S.length;p+=1)rt[S[p]]={},rt[S[p]].text=V[p],rt[S[p]].align=G[p];var ot=l.call(this,rt,it);dt=S.map(function(At){return new a(h,d,it[At],ot,rt[At].text,void 0,rt[At].align)}),this.setTableHeaderRow(dt),this.printHeaderRow(1,!1)}var ft=_.reduce(function(At,wt){return At[wt.name]=wt.align,At},{});for(p=0;p<m.length;p+=1){"rowStart"in k&&k.rowStart instanceof Function&&k.rowStart({row:p,data:m[p]},this);var nt=l.call(this,m[p],it);for(O=0;O<S.length;O+=1){var ct=m[p][S[O]];"cellStart"in k&&k.cellStart instanceof Function&&k.cellStart({row:p,col:O,data:ct},this),c.call(this,new a(h,d,it[S[O]],nt,ct,p+2,ft[S[O]]))}}return this.internal.__cell__.table_x=h,this.internal.__cell__.table_y=d,this};var l=function(h,d){var m=this.internal.__cell__.padding,_=this.internal.__cell__.table_font_size,k=this.internal.scaleFactor;return Object.keys(h).map(function(p){var j=h[p];return this.splitTextToSize(j.hasOwnProperty("text")?j.text:j,d[p]-m-m)},this).map(function(p){return this.getLineHeightFactor()*p.length*_/k+m+m},this).reduce(function(p,j){return Math.max(p,j)},0)};n.setTableHeaderRow=function(h){i.call(this),this.internal.__cell__.tableHeaderRow=h},n.printHeaderRow=function(h,d){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var m;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var _=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(_[0],_[1],_[2],_[3],void 0,-1)}this.setFont(void 0,"bold");for(var k=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){m=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(m.y=this.internal.__cell__.margins.top||0,k.push(m)),m.lineNumber=h;var j=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,m),this.setTextColor(j)}k.length>0&&this.setTableHeaderRow(k),this.setFont(void 0,"normal"),e=!1}})(Mt.API);var Bf={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Mf=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Jo=jf(Mf),Rf=[100,200,300,400,500,600,700,800,900],W1=jf(Rf);function jo(n){var t=n.family.replace(/"|'/g,"").toLowerCase(),e=(function(a){return Bf[a=a||"normal"]?a:"normal"})(n.style),i=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(n.weight),o=(function(a){return typeof Jo[a=a||"normal"]=="number"?a:"normal"})(n.stretch);return{family:t,style:e,weight:i,stretch:o,src:n.src||[],ref:n.ref||{name:t,style:[o,e,i].join(" ")}}}function Ou(n,t,e,i){var o;for(o=e;o>=0&&o<t.length;o+=i)if(n[t[o]])return n[t[o]];for(o=e;o>=0&&o<t.length;o-=i)if(n[t[o]])return n[t[o]]}var V1={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ju={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Bu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Mu(n){return n.trimLeft()}function G1(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 Y1(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 ta,Ss,Ru,Tu,Du,Bo=["times"];function qu(n,t,e,i,o){var a=4,c=zu;switch(o){case Mt.API.image_compression.FAST:a=1,c=Uu;break;case Mt.API.image_compression.MEDIUM:a=6,c=Hu;break;case Mt.API.image_compression.SLOW:a=9,c=Wu}n=(function(h,d,m,_){for(var k,p=h.length/d,j=new Uint8Array(h.length+p),O=[J1,Uu,zu,Hu,Wu],M=0;M<p;M+=1){var S=M*d,V=h.subarray(S,S+d);if(_)j.set(_(V,m,k),S+M);else{for(var G=O.length,q=[],it=0;it<G;it+=1)q[it]=O[it](V,m,k);var vt=X1(q.concat());j.set(q[vt],S+M)}k=V}return j})(n,t,Math.ceil(e*i/8),c);var l=Uo(n,{level:a});return Mt.API.__addimage__.arrayBufferToBinaryString(l)}function J1(n){var t=Array.apply([],n);return t.unshift(0),t}function Uu(n,t){var e=n.length,i=[];i[0]=1;for(var o=0;o<e;o+=1){var a=n[o-t]||0;i[o+1]=n[o]-a+256&255}return i}function zu(n,t,e){var i=n.length,o=[];o[0]=2;for(var a=0;a<i;a+=1){var c=e&&e[a]||0;o[a+1]=n[a]-c+256&255}return o}function Hu(n,t,e){var i=n.length,o=[];o[0]=3;for(var a=0;a<i;a+=1){var c=n[a-t]||0,l=e&&e[a]||0;o[a+1]=n[a]+256-(c+l>>>1)&255}return o}function Wu(n,t,e){var i=n.length,o=[];o[0]=4;for(var a=0;a<i;a+=1){var c=K1(n[a-t]||0,e&&e[a]||0,e&&e[a-t]||0);o[a+1]=n[a]-c+256&255}return o}function K1(n,t,e){if(n===t&&t===e)return n;var i=Math.abs(t-e),o=Math.abs(n-e),a=Math.abs(n+t-e-e);return i<=o&&i<=a?n:o<=a?t:e}function X1(n){var t=n.map(function(e){return e.reduce(function(i,o){return i+Math.abs(o)},0)});return t.indexOf(Math.min.apply(null,t))}function Mo(n,t,e){var i=t*e,o=Math.floor(i/8),a=16-(i-8*o+e),c=(1<<e)-1;return Tf(n,o)>>a&c}function Vu(n,t,e,i){var o=e*i,a=Math.floor(o/8),c=16-(o-8*a+i),l=(1<<i)-1,h=(t&l)<<c;(function(d,m,_){if(m+1<d.byteLength)d.setUint16(m,_,!1);else{var k=_>>8&255;d.setUint8(m,k)}})(n,a,Tf(n,a)&~(l<<c)&65535|h)}function Tf(n,t){return t+1<n.byteLength?n.getUint16(t,!1):n.getUint8(t)<<8}function $1(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,i=n[t++]|n[t++]<<8,o=n[t++],a=o>>7,c=1<<1+(7&o);n[t++],n[t++];var l=null,h=null;a&&(l=t,h=c,t+=3*c);var d=!0,m=[],_=0,k=null,p=0,j=null;for(this.width=e,this.height=i;d&&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,j=n[t++]|n[t++]<<8,t++;else for(t+=12;;){if(!((N=n[t++])>=0))throw Error("Invalid block size");if(N===0)break;t+=N}break;case 249:if(n[t++]!==4||n[t+4]!==0)throw new Error("Invalid graphics extension block.");var O=n[t++];_=n[t++]|n[t++]<<8,k=n[t++],1&O||(k=null),p=O>>2&7,t++;break;case 254:for(;;){if(!((N=n[t++])>=0))throw Error("Invalid block size");if(N===0)break;t+=N}break;default:throw new Error("Unknown graphic control label: 0x"+n[t-1].toString(16))}break;case 44:var M=n[t++]|n[t++]<<8,S=n[t++]|n[t++]<<8,V=n[t++]|n[t++]<<8,G=n[t++]|n[t++]<<8,q=n[t++],it=q>>6&1,vt=1<<1+(7&q),dt=l,X=h,R=!1;q>>7&&(R=!0,dt=t,X=vt,t+=3*vt);var tt=t;for(t++;;){var N;if(!((N=n[t++])>=0))throw Error("Invalid block size");if(N===0)break;t+=N}m.push({x:M,y:S,width:V,height:G,has_local_palette:R,palette_offset:dt,palette_size:X,data_offset:tt,data_length:t-tt,transparent_index:k,interlaced:!!it,delay:_,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+n[t-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return j},this.frameInfo=function(E){if(E<0||E>=m.length)throw new Error("Frame index out of range.");return m[E]},this.decodeAndBlitFrameBGRA=function(E,z){var U=this.frameInfo(E),rt=U.width*U.height;if(rt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ot=new Uint8Array(rt);Gu(n,U.data_offset,ot,rt);var ft=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ct=U.width,At=e-ct,wt=ct,x=4*(U.y*e+U.x),B=4*((U.y+U.height)*e+U.x),T=x,H=4*At;U.interlaced===!0&&(H+=4*e*7);for(var J=8,Z=0,at=ot.length;Z<at;++Z){var st=ot[Z];if(wt===0&&(wt=ct,(T+=H)>=B&&(H=4*At+4*e*(J-1),T=x+(ct+At)*(J<<1),J>>=1)),st===nt)T+=4;else{var gt=n[ft+3*st],_t=n[ft+3*st+1],kt=n[ft+3*st+2];z[T++]=kt,z[T++]=_t,z[T++]=gt,z[T++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(E,z){var U=this.frameInfo(E),rt=U.width*U.height;if(rt>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ot=new Uint8Array(rt);Gu(n,U.data_offset,ot,rt);var ft=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ct=U.width,At=e-ct,wt=ct,x=4*(U.y*e+U.x),B=4*((U.y+U.height)*e+U.x),T=x,H=4*At;U.interlaced===!0&&(H+=4*e*7);for(var J=8,Z=0,at=ot.length;Z<at;++Z){var st=ot[Z];if(wt===0&&(wt=ct,(T+=H)>=B&&(H=4*At+4*e*(J-1),T=x+(ct+At)*(J<<1),J>>=1)),st===nt)T+=4;else{var gt=n[ft+3*st],_t=n[ft+3*st+1],kt=n[ft+3*st+2];z[T++]=gt,z[T++]=_t,z[T++]=kt,z[T++]=255}--wt}}}function Gu(n,t,e,i){for(var o=n[t++],a=1<<o,c=a+1,l=c+1,h=o+1,d=(1<<h)-1,m=0,_=0,k=0,p=n[t++],j=new Int32Array(4096),O=null;;){for(;m<16&&p!==0;)_|=n[t++]<<m,m+=8,p===1?p=n[t++]:--p;if(m<h)break;var M=_&d;if(_>>=h,m-=h,M!==a){if(M===c)break;for(var S=M<l?M:O,V=0,G=S;G>a;)G=j[G]>>8,++V;var q=G;if(k+V+(S!==M?1:0)>i)return void Le.log("Warning, gif stream longer than expected.");e[k++]=q;var it=k+=V;for(S!==M&&(e[k++]=q),G=S;V--;)G=j[G],e[--it]=255&G,G>>=8;O!==null&&l<4096&&(j[l++]=O<<8|q,l>=d+1&&h<12&&(++h,d=d<<1|1)),O=M}else l=c+1,d=(1<<(h=o+1))-1,O=null}return k!==i&&Le.log("Warning, gif stream shorter than expected."),e}function Ro(n){var t,e,i,o,a,c=Math.floor,l=new Array(64),h=new Array(64),d=new Array(64),m=new Array(64),_=new Array(65535),k=new Array(65535),p=new Array(64),j=new Array(64),O=[],M=0,S=7,V=new Array(64),G=new Array(64),q=new Array(64),it=new Array(256),vt=new Array(2048),dt=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],X=[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],N=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[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 ot(x,B){for(var T=0,H=0,J=new Array,Z=1;Z<=16;Z++){for(var at=1;at<=x[Z];at++)J[B[H]]=[],J[B[H]][0]=T,J[B[H]][1]=Z,H++,T++;T*=2}return J}function ft(x){for(var B=x[0],T=x[1]-1;T>=0;)B&1<<T&&(M|=1<<S),T--,--S<0&&(M==255?(nt(255),nt(0)):nt(M),S=7,M=0)}function nt(x){O.push(x)}function ct(x){nt(x>>8&255),nt(255&x)}function At(x,B,T,H,J){for(var Z,at=J[0],st=J[240],gt=(function(yt,Wt){var Ft,zt,qt,ve,ue,Zt,he,fe,Bt,ne,Tt=0;for(Bt=0;Bt<8;++Bt){Ft=yt[Tt],zt=yt[Tt+1],qt=yt[Tt+2],ve=yt[Tt+3],ue=yt[Tt+4],Zt=yt[Tt+5],he=yt[Tt+6];var ze=Ft+(fe=yt[Tt+7]),ge=Ft-fe,se=zt+he,oe=zt-he,Oe=qt+Zt,Ut=qt-Zt,Se=ve+ue,Yt=ve-ue,Qt=ze+Se,je=ze-Se,le=se+Oe,Vt=se-Oe;yt[Tt]=Qt+le,yt[Tt+4]=Qt-le;var be=.707106781*(Vt+je);yt[Tt+2]=je+be,yt[Tt+6]=je-be;var ti=.382683433*((Qt=Yt+Ut)-(Vt=oe+ge)),fn=.5411961*Qt+ti,vr=1.306562965*Vt+ti,nr=.707106781*(le=Ut+oe),Gt=ge+nr,br=ge-nr;yt[Tt+5]=br+fn,yt[Tt+3]=br-fn,yt[Tt+1]=Gt+vr,yt[Tt+7]=Gt-vr,Tt+=8}for(Tt=0,Bt=0;Bt<8;++Bt){Ft=yt[Tt],zt=yt[Tt+8],qt=yt[Tt+16],ve=yt[Tt+24],ue=yt[Tt+32],Zt=yt[Tt+40],he=yt[Tt+48];var wr=Ft+(fe=yt[Tt+56]),Rn=Ft-fe,Tn=zt+he,Te=zt-he,rn=qt+Zt,an=qt-Zt,ei=ve+ue,Or=ve-ue,Vn=wr+ei,rr=wr-ei,Gn=Tn+rn,Yn=Tn-rn;yt[Tt]=Vn+Gn,yt[Tt+32]=Vn-Gn;var Dn=.707106781*(Yn+rr);yt[Tt+16]=rr+Dn,yt[Tt+48]=rr-Dn;var ni=.382683433*((Vn=Or+an)-(Yn=Te+Rn)),ir=.5411961*Vn+ni,ri=1.306562965*Yn+ni,Fi=.707106781*(Gn=an+Te),Ci=Rn+Fi,Ei=Rn-Fi;yt[Tt+40]=Ei+ir,yt[Tt+24]=Ei-ir,yt[Tt+8]=Ci+ri,yt[Tt+56]=Ci-ri,Tt++}for(Bt=0;Bt<64;++Bt)ne=yt[Bt]*Wt[Bt],p[Bt]=ne>0?ne+.5|0:ne-.5|0;return p})(x,B),_t=0;_t<64;++_t)j[dt[_t]]=gt[_t];var kt=j[0]-T;T=j[0],kt==0?ft(H[0]):(ft(H[k[Z=32767+kt]]),ft(_[Z]));for(var St=63;St>0&&j[St]==0;)St--;if(St==0)return ft(at),T;for(var Dt,P=1;P<=St;){for(var Lt=P;j[P]==0&&P<=St;)++P;var ae=P-Lt;if(ae>=16){Dt=ae>>4;for(var Ht=1;Ht<=Dt;++Ht)ft(st);ae&=15}Z=32767+j[P],ft(J[(ae<<4)+k[Z]]),ft(_[Z]),P++}return St!=63&&ft(at),T}function wt(x){x=Math.min(Math.max(x,1),100),a!=x&&((function(B){for(var T=[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=c((T[H]*B+50)/100);J=Math.min(Math.max(J,1),255),l[dt[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 st=c((Z[at]*B+50)/100);st=Math.min(Math.max(st,1),255),h[dt[at]]=st}for(var gt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_t=0,kt=0;kt<8;kt++)for(var St=0;St<8;St++)d[_t]=1/(l[dt[_t]]*gt[kt]*gt[St]*8),m[_t]=1/(h[dt[_t]]*gt[kt]*gt[St]*8),_t++})(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),a=x)}this.encode=function(x,B){B&&wt(B),O=new Array,M=0,S=7,ct(65496),ct(65504),ct(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),ct(1),ct(1),nt(0),nt(0),(function(){ct(65499),ct(132),nt(0);for(var zt=0;zt<64;zt++)nt(l[zt]);nt(1);for(var qt=0;qt<64;qt++)nt(h[qt])})(),(function(zt,qt){ct(65472),ct(17),nt(8),ct(qt),ct(zt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)})(x.width,x.height),(function(){ct(65476),ct(418),nt(0);for(var zt=0;zt<16;zt++)nt(X[zt+1]);for(var qt=0;qt<=11;qt++)nt(R[qt]);nt(16);for(var ve=0;ve<16;ve++)nt(tt[ve+1]);for(var ue=0;ue<=161;ue++)nt(N[ue]);nt(1);for(var Zt=0;Zt<16;Zt++)nt(E[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 Bt=0;Bt<=161;Bt++)nt(rt[Bt])})(),ct(65498),ct(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var T=0,H=0,J=0;M=0,S=7,this.encode.displayName="_encode_";for(var Z,at,st,gt,_t,kt,St,Dt,P,Lt=x.data,ae=x.width,Ht=x.height,yt=4*ae,Wt=0;Wt<Ht;){for(Z=0;Z<yt;){for(_t=yt*Wt+Z,St=-1,Dt=0,P=0;P<64;P++)kt=_t+(Dt=P>>3)*yt+(St=4*(7&P)),Wt+Dt>=Ht&&(kt-=yt*(Wt+1+Dt-Ht)),Z+St>=yt&&(kt-=Z+St-yt+4),at=Lt[kt++],st=Lt[kt++],gt=Lt[kt++],V[P]=(vt[at]+vt[st+256|0]+vt[gt+512|0]>>16)-128,G[P]=(vt[at+768|0]+vt[st+1024|0]+vt[gt+1280|0]>>16)-128,q[P]=(vt[at+1280|0]+vt[st+1536|0]+vt[gt+1792|0]>>16)-128;T=At(V,d,T,t,i),H=At(G,m,H,e,o),J=At(q,m,J,e,o),Z+=32}Wt+=8}if(S>=0){var Ft=[];Ft[1]=S+1,Ft[0]=(1<<S+1)-1,ft(Ft)}return ct(65497),new Uint8Array(O)},n=n||50,(function(){for(var x=String.fromCharCode,B=0;B<256;B++)it[B]=x(B)})(),t=ot(X,R),e=ot(E,z),i=ot(tt,N),o=ot(U,rt),(function(){for(var x=1,B=2,T=1;T<=15;T++){for(var H=x;H<B;H++)k[32767+H]=T,_[32767+H]=[],_[32767+H][1]=T,_[32767+H][0]=H;for(var J=-(B-1);J<=-x;J++)k[32767+J]=T,_[32767+J]=[],_[32767+J][1]=T,_[32767+J][0]=B-1+J;x<<=1,B<<=1}})(),(function(){for(var x=0;x<256;x++)vt[x]=19595*x,vt[x+256|0]=38470*x,vt[x+512|0]=7471*x+32768,vt[x+768|0]=-11059*x,vt[x+1024|0]=-21709*x,vt[x+1280|0]=32768*x+8421375,vt[x+1536|0]=-27439*x,vt[x+1792|0]=-5329*x})(),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 Yu(n){function t(R){if(!R)throw Error("assert :P")}function e(R,tt,N){for(var E=0;4>E;E++)if(R[tt+E]!=N.charCodeAt(E))return!0;return!1}function i(R,tt,N,E,z){for(var U=0;U<z;U++)R[tt+U]=N[E+U]}function o(R,tt,N,E){for(var z=0;z<E;z++)R[tt+z]=N}function a(R){return new Int32Array(R)}function c(R,tt){for(var N=[],E=0;E<R;E++)N.push(new tt);return N}function l(R,tt){var N=[];return(function E(z,U,rt){for(var ot=rt[U],ft=0;ft<ot&&(z.push(rt.length>U+1?[]:new tt),!(rt.length<U+1));ft++)E(z[ft],U+1,rt)})(N,0,R),N}var h=function(){var R=this;function tt(r,s){for(var f=1<<s-1>>>0;r&f;)f>>>=1;return f?(r&f-1)+f:r}function N(r,s,f,g,b){t(!(g%f));do r[s+(g-=f)]=b;while(0<g)}function E(r,s,f,g,b){if(t(2328>=b),512>=b)var w=a(512);else if((w=a(b))==null)return 0;return(function(y,A,L,F,W,et){var C,Y,$=A,ut=1<<L,Q=a(16),ht=a(16);for(t(W!=0),t(F!=null),t(y!=null),t(0<L),Y=0;Y<W;++Y){if(15<F[Y])return 0;++Q[F[Y]]}if(Q[0]==W)return 0;for(ht[1]=0,C=1;15>C;++C){if(Q[C]>1<<C)return 0;ht[C+1]=ht[C]+Q[C]}for(Y=0;Y<W;++Y)C=F[Y],0<F[Y]&&(et[ht[C]++]=Y);if(ht[15]==1)return(F=new z).g=0,F.value=et[0],N(y,$,1,ut,F),ut;var pt,xt=-1,bt=ut-1,Rt=0,Pt=1,re=1,Ot=1<<L;for(Y=0,C=1,W=2;C<=L;++C,W<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C])(F=new z).g=C,F.value=et[Y++],N(y,$+Rt,W,Ot,F),Rt=tt(Rt,C)}for(C=L+1,W=2;15>=C;++C,W<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C]){if(F=new z,(Rt&bt)!=xt){for($+=Ot,pt=1<<(xt=C)-L;15>xt&&!(0>=(pt-=Q[xt]));)++xt,pt<<=1;ut+=Ot=1<<(pt=xt-L),y[A+(xt=Rt&bt)].g=pt+L,y[A+xt].value=$-A-xt}F.g=C-L,F.value=et[Y++],N(y,$+(Rt>>L),W,Ot,F),Rt=tt(Rt,C)}}return Pt!=2*ht[15]-1?0:ut})(r,s,f,g,b,w)}function z(){this.value=this.g=0}function U(){this.value=this.g=0}function rt(){this.G=c(5,z),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(Vi,U)}function ot(r,s,f,g){t(r!=null),t(s!=null),t(2147483648>g),r.Ca=254,r.I=0,r.b=-8,r.Ka=0,r.oa=s,r.pa=f,r.Jd=s,r.Yc=f+g,r.Zc=4<=g?f+g-4+1:f,at(r)}function ft(r,s){for(var f=0;0<s--;)f|=gt(r,128)<<s;return f}function nt(r,s){var f=ft(r,s);return st(r)?-f:f}function ct(r,s,f,g){var b,w=0;for(t(r!=null),t(s!=null),t(4294967288>g),r.Sb=g,r.Ra=0,r.u=0,r.h=0,4<g&&(g=4),b=0;b<g;++b)w+=s[f+b]<<8*b;r.Ra=w,r.bb=g,r.oa=s,r.pa=f}function At(r){for(;8<=r.u&&r.bb<r.Sb;)r.Ra>>>=8,r.Ra+=r.oa[r.pa+r.bb]<<yn-8>>>0,++r.bb,r.u-=8;H(r)&&(r.h=1,r.u=0)}function wt(r,s){if(t(0<=s),!r.h&&s<=ba){var f=T(r)&di[s];return r.u+=s,At(r),f}return r.h=1,r.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function T(r){return r.Ra>>>(r.u&yn-1)>>>0}function H(r){return t(r.bb<=r.Sb),r.h||r.bb==r.Sb&&r.u>yn}function J(r,s){r.u=s,r.h=H(r)}function Z(r){r.u>=Nn&&(t(r.u>=Nn),At(r))}function at(r){t(r!=null&&r.oa!=null),r.pa<r.Zc?(r.I=(r.oa[r.pa++]|r.I<<8)>>>0,r.b+=8):(t(r!=null&&r.oa!=null),r.pa<r.Yc?(r.b+=8,r.I=r.oa[r.pa++]|r.I<<8):r.Ka?r.b=0:(r.I<<=8,r.b+=8,r.Ka=1))}function st(r){return ft(r,1)}function gt(r,s){var f=r.Ca;0>r.b&&at(r);var g=r.b,b=f*s>>>8,w=(r.I>>>g>b)+0;for(w?(f-=b,r.I-=b+1<<g>>>0):f=b+1,g=f,b=0;256<=g;)b+=8,g>>=8;return g=7^b+Gi[g],r.b-=g,r.Ca=(f<<g)-1,w}function _t(r,s,f){r[s+0]=f>>24&255,r[s+1]=f>>16&255,r[s+2]=f>>8&255,r[s+3]=255&f}function kt(r,s){return r[s+0]|r[s+1]<<8}function St(r,s){return kt(r,s)|r[s+2]<<16}function Dt(r,s){return kt(r,s)|kt(r,s+2)<<16}function P(r,s){var f=1<<s;return t(r!=null),t(0<s),r.X=a(f),r.X==null?0:(r.Mb=32-s,r.Xa=s,1)}function Lt(r,s){t(r!=null),t(s!=null),t(r.Xa==s.Xa),i(s.X,0,r.X,0,1<<s.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(r,s,f,g){t(f!=null),t(g!=null);var b=f[0],w=g[0];return b==0&&(b=(r*w+s/2)/s),w==0&&(w=(s*b+r/2)/r),0>=b||0>=w?0:(f[0]=b,g[0]=w,1)}function yt(r,s){return r+(1<<s)-1>>>s}function Wt(r,s){return((4278255360&r)+(4278255360&s)>>>0&4278255360)+((16711935&r)+(16711935&s)>>>0&16711935)>>>0}function Ft(r,s){R[s]=function(f,g,b,w,y,A,L){var F;for(F=0;F<y;++F){var W=R[r](A[L+F-1],b,w+F);A[L+F]=Wt(f[g+F],W)}}}function zt(){this.ud=this.hd=this.jd=0}function qt(r,s){return((4278124286&(r^s))>>>1)+(r&s)>>>0}function ve(r){return 0<=r&&256>r?r:0>r?0:255<r?255:void 0}function ue(r,s){return ve(r+(r-s+.5>>1))}function Zt(r,s,f){return Math.abs(s-f)-Math.abs(r-f)}function he(r,s,f,g,b,w,y){for(g=w[y-1],f=0;f<b;++f)w[y+f]=g=Wt(r[s+f],g)}function fe(r,s,f,g,b){var w;for(w=0;w<f;++w){var y=r[s+w],A=y>>8&255,L=16711935&(L=(L=16711935&y)+((A<<16)+A));g[b+w]=(4278255360&y)+L>>>0}}function Bt(r,s){s.jd=255&r,s.hd=r>>8&255,s.ud=r>>16&255}function ne(r,s,f,g,b,w){var y;for(y=0;y<g;++y){var A=s[f+y],L=A>>>8,F=A,W=255&(W=(W=A>>>16)+((r.jd<<24>>24)*(L<<24>>24)>>>5));F=255&(F=(F+=(r.hd<<24>>24)*(L<<24>>24)>>>5)+((r.ud<<24>>24)*(W<<24>>24)>>>5)),b[w+y]=(4278255360&A)+(W<<16)+F}}function Tt(r,s,f,g,b){R[s]=function(w,y,A,L,F,W,et,C,Y){for(L=et;L<C;++L)for(et=0;et<Y;++et)F[W++]=b(A[g(w[y++])])},R[r]=function(w,y,A,L,F,W,et){var C=8>>w.b,Y=w.Ea,$=w.K[0],ut=w.w;if(8>C)for(w=(1<<w.b)-1,ut=(1<<C)-1;y<A;++y){var Q,ht=0;for(Q=0;Q<Y;++Q)Q&w||(ht=g(L[F++])),W[et++]=b($[ht&ut]),ht>>=C}else R["VP8LMapColor"+f](L,F,$,ut,W,et,y,A,Y)}}function ze(r,s,f,g,b){for(f=s+f;s<f;){var w=r[s++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w}}function ge(r,s,f,g,b){for(f=s+f;s<f;){var w=r[s++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w,g[b++]=w>>24&255}}function se(r,s,f,g,b){for(f=s+f;s<f;){var w=(y=r[s++])>>16&240|y>>12&15,y=240&y|y>>28&15;g[b++]=w,g[b++]=y}}function oe(r,s,f,g,b){for(f=s+f;s<f;){var w=(y=r[s++])>>16&248|y>>13&7,y=y>>5&224|y>>3&31;g[b++]=w,g[b++]=y}}function Oe(r,s,f,g,b){for(f=s+f;s<f;){var w=r[s++];g[b++]=255&w,g[b++]=w>>8&255,g[b++]=w>>16&255}}function Ut(r,s,f,g,b,w){if(w==0)for(f=s+f;s<f;)_t(g,((w=r[s++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),b+=32;else i(g,b,r,s,f)}function Se(r,s){R[s][0]=R[r+"0"],R[s][1]=R[r+"1"],R[s][2]=R[r+"2"],R[s][3]=R[r+"3"],R[s][4]=R[r+"4"],R[s][5]=R[r+"5"],R[s][6]=R[r+"6"],R[s][7]=R[r+"7"],R[s][8]=R[r+"8"],R[s][9]=R[r+"9"],R[s][10]=R[r+"10"],R[s][11]=R[r+"11"],R[s][12]=R[r+"12"],R[s][13]=R[r+"13"],R[s][14]=R[r+"0"],R[s][15]=R[r+"0"]}function Yt(r){return r==eo||r==no||r==ls||r==ro}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function je(){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 je,this.sd=null}function Vt(){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 ti(r){return alert("todo:WebPSamplerProcessPlane"),r.T}function fn(r,s){var f=r.T,g=s.ba.f.RGBA,b=g.eb,w=g.fb+r.ka*g.A,y=Hn[s.ba.S],A=r.y,L=r.O,F=r.f,W=r.N,et=r.ea,C=r.W,Y=s.cc,$=s.dc,ut=s.Mc,Q=s.Nc,ht=r.ka,pt=r.ka+r.T,xt=r.U,bt=xt+1>>1;for(ht==0?y(A,L,null,null,F,W,et,C,F,W,et,C,b,w,null,null,xt):(y(s.ec,s.fc,A,L,Y,$,ut,Q,F,W,et,C,b,w-g.A,b,w,xt),++f);ht+2<pt;ht+=2)Y=F,$=W,ut=et,Q=C,W+=r.Rc,C+=r.Rc,w+=2*g.A,y(A,(L+=2*r.fa)-r.fa,A,L,Y,$,ut,Q,F,W,et,C,b,w-g.A,b,w,xt);return L+=r.fa,r.j+pt<r.o?(i(s.ec,s.fc,A,L,xt),i(s.cc,s.dc,F,W,bt),i(s.Mc,s.Nc,et,C,bt),f--):1&pt||y(A,L,null,null,F,W,et,C,F,W,et,C,b,w+g.A,null,null,xt),f}function vr(r,s,f){var g=r.F,b=[r.J];if(g!=null){var w=r.U,y=s.ba.S,A=y==os||y==ls;s=s.ba.f.RGBA;var L=[0],F=r.ka;L[0]=r.T,r.Kb&&(F==0?--L[0]:(--F,b[0]-=r.width),r.j+r.ka+r.T==r.o&&(L[0]=r.o-r.j-F));var W=s.eb;F=s.fb+F*s.A,r=al(g,b[0],r.width,w,L,W,F+(A?0:3),s.A),t(f==L),r&&Yt(y)&&_a(W,F,A,w,L,s.A)}return 0}function nr(r){var s=r.ma,f=s.ba.S,g=11>f,b=f==as||f==ss||f==os||f==to||f==12||Yt(f);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Un(s.Oa,r,b?11:12))return 0;if(b&&Yt(f)&&Lr(),r.da)alert("todo:use_scaling");else{if(g){if(s.Ib=ti,r.Kb){if(f=r.U+1>>1,s.memory=a(r.U+2*f),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+r.U,s.Mc=s.cc,s.Nc=s.dc+f,s.Ib=fn,Lr()}}else alert("todo:EmitYUV");b&&(s.Jb=vr,g&&Re())}if(g&&!xl){for(r=0;256>r;++r)ah[r]=89858*(r-128)+fs>>us,lh[r]=-22014*(r-128)+fs,oh[r]=-45773*(r-128),sh[r]=113618*(r-128)+fs>>us;for(r=Na;r<so;++r)s=76283*(r-16)+fs>>us,uh[r-Na]=ar(s,255),fh[r-Na]=ar(s+8>>4,15);xl=1}return 1}function Gt(r){var s=r.ma,f=r.U,g=r.T;return t(!(1&r.ka)),0>=f||0>=g?0:(f=s.Ib(r,s),s.Jb!=null&&s.Jb(r,s,f),s.Dc+=f,1)}function br(r){r.ma.memory=null}function wr(r,s,f,g){return wt(r,8)!=47?0:(s[0]=wt(r,14)+1,f[0]=wt(r,14)+1,g[0]=wt(r,1),wt(r,3)!=0?0:!r.h)}function Rn(r,s){if(4>r)return r+1;var f=r-2>>1;return(2+(1&r)<<f)+wt(s,f)+1}function Tn(r,s){return 120<s?s-120:1<=(f=((f=Vf[s-1])>>4)*r+(8-(15&f)))?f:1;var f}function Te(r,s,f){var g=T(f),b=r[s+=255&g].g-8;return 0<b&&(J(f,f.u+8),g=T(f),s+=r[s].value,s+=g&(1<<b)-1),J(f,f.u+r[s].g),r[s].value}function rn(r,s,f){return f.g+=r.g,f.value+=r.value<<s>>>0,t(8>=f.g),r.g}function an(r,s,f){var g=r.xc;return t((s=g==0?0:r.vc[r.md*(f>>g)+(s>>g)])<r.Wb),r.Ya[s]}function ei(r,s,f,g){var b=r.ab,w=r.c*s,y=r.C;s=y+s;var A=f,L=g;for(g=r.Ta,f=r.Ua;0<b--;){var F=r.gc[b],W=y,et=s,C=A,Y=L,$=(L=g,A=f,F.Ea);switch(t(W<et),t(et<=F.nc),F.hc){case 2:Yi(C,Y,(et-W)*$,L,A);break;case 0:var ut=W,Q=et,ht=L,pt=A,xt=(Ot=F).Ea;ut==0&&(Tr(C,Y,null,null,1,ht,pt),he(C,Y+1,0,0,xt-1,ht,pt+1),Y+=xt,pt+=xt,++ut);for(var bt=1<<Ot.b,Rt=bt-1,Pt=yt(xt,Ot.b),re=Ot.K,Ot=Ot.w+(ut>>Ot.b)*Pt;ut<Q;){var ce=re,Qe=Ot,ie=1;for(Dr(C,Y,ht,pt-xt,1,ht,pt);ie<xt;){var jt=(ie&~Rt)+bt;jt>xt&&(jt=xt),(0,Jn[ce[Qe++]>>8&15])(C,Y+ +ie,ht,pt+ie-xt,jt-ie,ht,pt+ie),ie=jt}Y+=xt,pt+=xt,++ut&Rt||(Ot+=Pt)}et!=F.nc&&i(L,A-$,L,A+(et-W-1)*$,$);break;case 1:for($=C,Q=Y,xt=(C=F.Ea)-(pt=C&~(ht=(Y=1<<F.b)-1)),ut=yt(C,F.b),bt=F.K,F=F.w+(W>>F.b)*ut;W<et;){for(Rt=bt,Pt=F,re=new zt,Ot=Q+pt,ce=Q+C;Q<Ot;)Bt(Rt[Pt++],re),gi(re,$,Q,Y,L,A),Q+=Y,A+=Y;Q<ce&&(Bt(Rt[Pt++],re),gi(re,$,Q,xt,L,A),Q+=xt,A+=xt),++W&ht||(F+=ut)}break;case 3:if(C==L&&Y==A&&0<F.b){for(Q=L,C=$=A+(et-W)*$-(pt=(et-W)*yt(F.Ea,F.b)),Y=L,ht=A,ut=[],pt=(xt=pt)-1;0<=pt;--pt)ut[pt]=Y[ht+pt];for(pt=xt-1;0<=pt;--pt)Q[C+pt]=ut[pt];pi(F,W,et,L,$,L,A)}else pi(F,W,et,C,Y,L,A)}A=g,L=f}L!=f&&i(g,f,A,L,w)}function Or(r,s){var f=r.V,g=r.Ba+r.c*r.C,b=s-r.C;if(t(s<=r.l.o),t(16>=b),0<b){var w=r.l,y=r.Ta,A=r.Ua,L=w.width;if(ei(r,b,f,g),b=A=[A],t((f=r.C)<(g=s)),t(w.v<w.va),g>w.o&&(g=w.o),f<w.j){var F=w.j-f;f=w.j,b[0]+=F*L}if(f>=g?f=0:(b[0]+=4*w.v,w.ka=f-w.j,w.U=w.va-w.v,w.T=g-f,f=1),f){if(A=A[0],11>(f=r.ca).S){var W=f.f.RGBA,et=(g=f.S,b=w.U,w=w.T,F=W.eb,W.A),C=w;for(W=W.fb+r.Ma*W.A;0<C--;){var Y=y,$=A,ut=b,Q=F,ht=W;switch(g){case is:wa(Y,$,ut,Q,ht);break;case as:ya(Y,$,ut,Q,ht);break;case eo:ya(Y,$,ut,Q,ht),_a(Q,ht,0,ut,1,0);break;case cl:vi(Y,$,ut,Q,ht);break;case ss:Ut(Y,$,ut,Q,ht,1);break;case no:Ut(Y,$,ut,Q,ht,1),_a(Q,ht,0,ut,1,0);break;case os:Ut(Y,$,ut,Q,ht,0);break;case ls:Ut(Y,$,ut,Q,ht,0),_a(Q,ht,1,ut,1,0);break;case to:Ji(Y,$,ut,Q,ht);break;case ro:Ji(Y,$,ut,Q,ht),il(Q,ht,ut,1,0);break;case dl:mi(Y,$,ut,Q,ht);break;default:t(0)}A+=L,W+=et}r.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");t(r.Ma<=f.height)}}r.C=s,t(r.C<=r.i)}function Vn(r){var s;if(0<r.ua)return 0;for(s=0;s<r.Wb;++s){var f=r.Ya[s].G,g=r.Ya[s].H;if(0<f[1][g[1]+0].g||0<f[2][g[2]+0].g||0<f[3][g[3]+0].g)return 0}return 1}function rr(r,s,f,g,b,w){if(r.Z!=0){var y=r.qd,A=r.rd;for(t(Hr[r.Z]!=null);s<f;++s)Hr[r.Z](y,A,g,b,g,b,w),y=g,A=b,b+=w;r.qd=y,r.rd=A}}function Gn(r,s){var f=r.l.ma,g=f.Z==0||f.Z==1?r.l.j:r.C;if(g=r.C<g?g:r.C,t(s<=r.l.o),s>g){var b=r.l.width,w=f.ca,y=f.tb+b*g,A=r.V,L=r.Ba+r.c*g,F=r.gc;t(r.ab==1),t(F[0].hc==3),Zs(F[0],g,s,A,L,w,y),rr(f,g,s,w,y,b)}r.C=r.Ma=s}function Yn(r,s,f,g,b,w,y){var A=r.$/g,L=r.$%g,F=r.m,W=r.s,et=f+r.$,C=et;b=f+g*b;var Y=f+g*w,$=280+W.ua,ut=r.Pb?A:16777216,Q=0<W.ua?W.Wa:null,ht=W.wc,pt=et<Y?an(W,L,A):null;t(r.C<w),t(Y<=b);var xt=!1;t:for(;;){for(;xt||et<Y;){var bt=0;if(A>=ut){var Rt=et-f;t((ut=r).Pb),ut.wd=ut.m,ut.xd=Rt,0<ut.s.ua&&Lt(ut.s.Wa,ut.s.vb),ut=A+Yf}if(L&ht||(pt=an(W,L,A)),t(pt!=null),pt.Qb&&(s[et]=pt.qb,xt=!0),!xt)if(Z(F),pt.jc){bt=F,Rt=s;var Pt=et,re=pt.pd[T(bt)&Vi-1];t(pt.jc),256>re.g?(J(bt,bt.u+re.g),Rt[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=Te(pt.G[0],pt.H[0],F);if(F.h)break;if(xt||256>bt){if(!xt)if(pt.nd)s[et]=(pt.qb|bt<<8)>>>0;else{if(Z(F),xt=Te(pt.G[1],pt.H[1],F),Z(F),Rt=Te(pt.G[2],pt.H[2],F),Pt=Te(pt.G[3],pt.H[3],F),F.h)break;s[et]=(Pt<<24|xt<<16|bt<<8|Rt)>>>0}if(xt=!1,++et,++L>=g&&(L=0,++A,y!=null&&A<=w&&!(A%16)&&y(r,A),Q!=null))for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else if(280>bt){if(bt=Rn(bt-256,F),Rt=Te(pt.G[4],pt.H[4],F),Z(F),Rt=Tn(g,Rt=Rn(Rt,F)),F.h)break;if(et-f<Rt||b-et<bt)break t;for(Pt=0;Pt<bt;++Pt)s[et+Pt]=s[et+Pt-Rt];for(et+=bt,L+=bt;L>=g;)L-=g,++A,y!=null&&A<=w&&!(A%16)&&y(r,A);if(t(et<=b),L&ht&&(pt=an(W,L,A)),Q!=null)for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else{if(!(bt<$))break t;for(xt=bt-280,t(Q!=null);C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=et,t(!(xt>>>(Rt=Q).Xa)),s[bt]=Rt.X[xt],xt=!0}xt||t(F.h==H(F))}if(r.Pb&&F.h&&et<b)t(r.m.h),r.a=5,r.m=r.wd,r.$=r.xd,0<r.s.ua&&Lt(r.s.vb,r.s.Wa);else{if(F.h)break t;y?.(r,A>w?w:A),r.a=0,r.$=et-f}return 1}return r.a=3,0}function Dn(r){t(r!=null),r.vc=null,r.yc=null,r.Ya=null;var s=r.Wa;s!=null&&(s.X=null),r.vb=null,t(r!=null)}function ni(){var r=new Et;return r==null?null:(r.a=0,r.xb=ml,Se("Predictor","VP8LPredictors"),Se("Predictor","VP8LPredictors_C"),Se("PredictorAdd","VP8LPredictorsAdd"),Se("PredictorAdd","VP8LPredictorsAdd_C"),Yi=fe,gi=ne,wa=ze,ya=ge,Ji=se,mi=oe,vi=Oe,R.VP8LMapColor32b=$e,R.VP8LMapColor8b=fr,r)}function ir(r,s,f,g,b){var w=1,y=[r],A=[s],L=g.m,F=g.s,W=null,et=0;t:for(;;){if(f)for(;w&&wt(L,1);){var C=y,Y=A,$=g,ut=1,Q=$.m,ht=$.gc[$.ab],pt=wt(Q,2);if($.Oc&1<<pt)w=0;else{switch($.Oc|=1<<pt,ht.hc=pt,ht.Ea=C[0],ht.nc=Y[0],ht.K=[null],++$.ab,t(4>=$.ab),pt){case 0:case 1:ht.b=wt(Q,3)+2,ut=ir(yt(ht.Ea,ht.b),yt(ht.nc,ht.b),0,$,ht.K),ht.K=ht.K[0];break;case 3:var xt,bt=wt(Q,8)+1,Rt=16<bt?0:4<bt?1:2<bt?2:3;if(C[0]=yt(ht.Ea,Rt),ht.b=Rt,xt=ut=ir(bt,1,0,$,ht.K)){var Pt,re=bt,Ot=ht,ce=1<<(8>>Ot.b),Qe=a(ce);if(Qe==null)xt=0;else{var ie=Ot.K[0],jt=Ot.w;for(Qe[0]=Ot.K[0][0],Pt=1;Pt<1*re;++Pt)Qe[Pt]=Wt(ie[jt+Pt],Qe[Pt-1]);for(;Pt<4*ce;++Pt)Qe[Pt]=0;Ot.K[0]=null,Ot.K[0]=Qe,xt=1}}ut=xt;break;case 2:break;default:t(0)}w=ut}}if(y=y[0],A=A[0],w&&wt(L,1)&&!(w=1<=(et=wt(L,4))&&11>=et)){g.a=3;break t}var Nt;if(Nt=w)e:{var We,ee,pe,Ce=g,on=y,xn=A,De=et,pn=f,_n=Ce.m,tn=Ce.s,me=[null],we=1,qe=0,ye=Gf[De];n:for(;;){if(pn&&wt(_n,1)){var ln=wt(_n,3)+2,Xn=yt(on,ln),Ve=yt(xn,ln),Ln=Xn*Ve;if(!ir(Xn,Ve,0,Ce,me))break n;for(me=me[0],tn.xc=ln,We=0;We<Ln;++We){var Ne=me[We]>>8&65535;me[We]=Ne,Ne>=we&&(we=Ne+1)}}if(_n.h)break n;for(ee=0;5>ee;++ee){var en=pl[ee];!ee&&0<De&&(en+=1<<De),qe<en&&(qe=en)}var Fn=c(we*ye,z),An=we,Cn=c(An,rt);if(Cn==null)var En=null;else t(65536>=An),En=Cn;var Sn=a(qe);if(En==null||Sn==null||Fn==null){Ce.a=1;break n}var On=Fn;for(We=pe=0;We<we;++We){var Ie=En[We],jn=Ie.G,$n=Ie.H,bi=0,Ir=1,un=0;for(ee=0;5>ee;++ee){en=pl[ee],jn[ee]=On,$n[ee]=pe,!ee&&0<De&&(en+=1<<De);i:{var cs,oo=en,ds=Ce,La=Sn,dh=On,ph=pe,lo=0,Wr=ds.m,gh=wt(Wr,1);if(o(La,0,0,oo),gh){var mh=wt(Wr,1)+1,vh=wt(Wr,1),Nl=wt(Wr,vh==0?1:8);La[Nl]=1,mh==2&&(La[Nl=wt(Wr,8)]=1);var ps=1}else{var Ll=a(19),Sl=wt(Wr,4)+4;if(19<Sl){ds.a=3;var gs=0;break i}for(cs=0;cs<Sl;++cs)Ll[Wf[cs]]=wt(Wr,3);var uo=void 0,Sa=void 0,kl=ds,bh=Ll,ms=oo,Pl=La,fo=0,Vr=kl.m,Il=8,Fl=c(128,z);r:for(;E(Fl,0,7,bh,19);){if(wt(Vr,1)){var wh=2+2*wt(Vr,3);if((uo=2+wt(Vr,wh))>ms)break r}else uo=ms;for(Sa=0;Sa<ms&&uo--;){Z(Vr);var Cl=Fl[0+(127&T(Vr))];J(Vr,Vr.u+Cl.g);var $i=Cl.value;if(16>$i)Pl[Sa++]=$i,$i!=0&&(Il=$i);else{var yh=$i==16,El=$i-16,xh=zf[El],Ol=wt(Vr,Uf[El])+xh;if(Sa+Ol>ms)break r;for(var _h=yh?Il:0;0<Ol--;)Pl[Sa++]=_h}}fo=1;break r}fo||(kl.a=3),ps=fo}(ps=ps&&!Wr.h)&&(lo=E(dh,ph,8,La,oo)),ps&&lo!=0?gs=lo:(ds.a=3,gs=0)}if(gs==0)break n;if(Ir&&Hf[ee]==1&&(Ir=On[pe].g==0),bi+=On[pe].g,pe+=gs,3>=ee){var ka,ho=Sn[0];for(ka=1;ka<en;++ka)Sn[ka]>ho&&(ho=Sn[ka]);un+=ho}}if(Ie.nd=Ir,Ie.Qb=0,Ir&&(Ie.qb=(jn[3][$n[3]+0].value<<24|jn[1][$n[1]+0].value<<16|jn[2][$n[2]+0].value)>>>0,bi==0&&256>jn[0][$n[0]+0].value&&(Ie.Qb=1,Ie.qb+=jn[0][$n[0]+0].value<<8)),Ie.jc=!Ie.Qb&&6>un,Ie.jc){var vs,Fr=Ie;for(vs=0;vs<Vi;++vs){var Gr=vs,Yr=Fr.pd[Gr],bs=Fr.G[0][Fr.H[0]+Gr];256<=bs.value?(Yr.g=bs.g+256,Yr.value=bs.value):(Yr.g=0,Yr.value=0,Gr>>=rn(bs,8,Yr),Gr>>=rn(Fr.G[1][Fr.H[1]+Gr],16,Yr),Gr>>=rn(Fr.G[2][Fr.H[2]+Gr],0,Yr),rn(Fr.G[3][Fr.H[3]+Gr],24,Yr))}}}tn.vc=me,tn.Wb=we,tn.Ya=En,tn.yc=Fn,Nt=1;break e}Nt=0}if(!(w=Nt)){g.a=3;break t}if(0<et){if(F.ua=1<<et,!P(F.Wa,et)){g.a=1,w=0;break t}}else F.ua=0;var co=g,jl=y,Ah=A,po=co.s,go=po.xc;if(co.c=jl,co.i=Ah,po.md=yt(jl,go),po.wc=go==0?-1:(1<<go)-1,f){g.xb=th;break t}if((W=a(y*A))==null){g.a=1,w=0;break t}w=(w=Yn(g,W,0,y,A,A,null))&&!L.h;break t}return w?(b!=null?b[0]=W:(t(W==null),t(f)),g.$=0,f||Dn(F)):Dn(F),w}function ri(r,s){var f=r.c*r.i,g=f+s+16*s;return t(r.c<=s),r.V=a(g),r.V==null?(r.Ta=null,r.Ua=0,r.a=1,0):(r.Ta=r.V,r.Ua=r.Ba+f+s,1)}function Fi(r,s){var f=r.C,g=s-f,b=r.V,w=r.Ba+r.c*f;for(t(s<=r.l.o);0<g;){var y=16<g?16:g,A=r.l.ma,L=r.l.width,F=L*y,W=A.ca,et=A.tb+L*f,C=r.Ta,Y=r.Ua;ei(r,y,b,w),sl(C,Y,W,et,F),rr(A,f,f+y,W,et,L),g-=y,b+=y*r.c,f+=y}t(f==s),r.C=r.Ma=s}function Ci(){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 js(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function aa(){this.Yb=(function(){var r=[];return(function s(f,g,b){for(var w=b[g],y=0;y<w&&(f.push(b.length>g+1?[]:0),!(b.length<g+1));y++)s(f[y],g+1,b)})(r,0,[3,11]),r})()}function Da(){this.jb=a(3),this.Wc=l([4,8],aa),this.Xc=l([4,17],aa)}function qa(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function qn(){this.ld=this.La=this.dd=this.tc=0}function sa(){this.Na=this.la=0}function Ua(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function oa(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function za(){this.uc=this.M=this.Nb=0,this.wa=Array(new qn),this.Y=0,this.ya=Array(new oa),this.aa=0,this.l=new Oi}function Ha(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Wa(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Ci,this.Kc=new Ei,this.ed=new qa,this.Qa=new js,this.Ic=this.$c=this.Aa=0,this.D=new za,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,x),this.ia=0,this.pb=c(4,Ua),this.Pa=new Da,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ha),this.Hd=0,this.rb=Array(new sa),this.sb=0,this.wa=Array(new qn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new oa),this.L=this.aa=0,this.gd=l([4,2],qn),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function ar(r,s){return 0>r?0:r>s?s:r}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 Bs(){var r=new Wa;return r!=null&&(r.a=0,r.sc="OK",r.cb=0,r.Xb=0,Aa||(Aa=ji)),r}function Ke(r,s,f){return r.a==0&&(r.a=s,r.sc=f,r.cb=0),0}function Va(r,s,f){return 3<=f&&r[s+0]==157&&r[s+1]==1&&r[s+2]==42}function sr(r,s){if(r==null)return 0;if(r.a=0,r.sc="OK",s==null)return Ke(r,2,"null VP8Io passed to VP8GetHeaders()");var f=s.data,g=s.w,b=s.ha;if(4>b)return Ke(r,7,"Truncated header.");var w=f[g+0]|f[g+1]<<8|f[g+2]<<16,y=r.Od;if(y.Rb=!(1&w),y.td=w>>1&7,y.yd=w>>4&1,y.ub=w>>5,3<y.td)return Ke(r,3,"Incorrect keyframe parameters.");if(!y.yd)return Ke(r,4,"Frame not displayable.");g+=3,b-=3;var A=r.Kc;if(y.Rb){if(7>b)return Ke(r,7,"cannot parse picture header");if(!Va(f,g,b))return Ke(r,3,"Bad code word");A.c=16383&(f[g+4]<<8|f[g+3]),A.Td=f[g+4]>>6,A.i=16383&(f[g+6]<<8|f[g+5]),A.Ud=f[g+6]>>6,g+=7,b-=7,r.za=A.c+15>>4,r.Ub=A.i+15>>4,s.width=A.c,s.height=A.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,o((w=r.Pa).jb,0,255,w.jb.length),t((w=r.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,o(w.Zb,0,0,w.Zb.length),o(w.Lb,0,0,w.Lb)}if(y.ub>b)return Ke(r,7,"bad partition length");ot(w=r.m,f,g,y.ub),g+=y.ub,b-=y.ub,y.Rb&&(A.Ld=st(w),A.Kd=st(w)),A=r.Qa;var L,F=r.Pa;if(t(w!=null),t(A!=null),A.Cb=st(w),A.Cb){if(A.Bb=st(w),st(w)){for(A.Fb=st(w),L=0;4>L;++L)A.Zb[L]=st(w)?nt(w,7):0;for(L=0;4>L;++L)A.Lb[L]=st(w)?nt(w,6):0}if(A.Bb)for(L=0;3>L;++L)F.jb[L]=st(w)?ft(w,8):255}else A.Bb=0;if(w.Ka)return Ke(r,3,"cannot parse segment header");if((A=r.ed).zd=st(w),A.Tb=ft(w,6),A.wb=ft(w,3),A.Pc=st(w),A.Pc&&st(w)){for(F=0;4>F;++F)st(w)&&(A.vd[F]=nt(w,6));for(F=0;4>F;++F)st(w)&&(A.od[F]=nt(w,6))}if(r.L=A.Tb==0?0:A.zd?1:2,w.Ka)return Ke(r,3,"cannot parse filter header");var W=b;if(b=L=g,g=L+W,A=W,r.Xb=(1<<ft(r.m,2))-1,W<3*(F=r.Xb))f=7;else{for(L+=3*F,A-=3*F,W=0;W<F;++W){var et=f[b+0]|f[b+1]<<8|f[b+2]<<16;et>A&&(et=A),ot(r.Jc[+W],f,L,et),L+=et,A-=et,b+=3}ot(r.Jc[+F],f,L,A),f=L<g?0:5}if(f!=0)return Ke(r,f,"cannot parse partitions");for(f=ft(L=r.m,7),b=st(L)?nt(L,4):0,g=st(L)?nt(L,4):0,A=st(L)?nt(L,4):0,F=st(L)?nt(L,4):0,L=st(L)?nt(L,4):0,W=r.Qa,et=0;4>et;++et){if(W.Cb){var C=W.Zb[et];W.Fb||(C+=f)}else{if(0<et){r.pb[et]=r.pb[0];continue}C=f}var Y=r.pb[et];Y.Sc[0]=io[ar(C+b,127)],Y.Sc[1]=ao[ar(C+0,127)],Y.Eb[0]=2*io[ar(C+g,127)],Y.Eb[1]=101581*ao[ar(C+A,127)]>>16,8>Y.Eb[1]&&(Y.Eb[1]=8),Y.Qc[0]=io[ar(C+F,117)],Y.Qc[1]=ao[ar(C+L,127)],Y.lc=C+L}if(!y.Rb)return Ke(r,4,"Not a key frame.");for(st(w),y=r.Pa,f=0;4>f;++f){for(b=0;8>b;++b)for(g=0;3>g;++g)for(A=0;11>A;++A)F=gt(w,Zf[f][b][g][A])?ft(w,8):Xf[f][b][g][A],y.Wc[f][b].Yb[g][A]=F;for(b=0;17>b;++b)y.Xc[f][b]=y.Wc[f][Qf[b]]}return r.kc=st(w),r.kc&&(r.Bd=ft(w,8)),r.cb=1}function ji(r,s,f,g,b,w,y){var A=s[b].Yb[f];for(f=0;16>b;++b){if(!gt(r,A[f+0]))return b;for(;!gt(r,A[f+1]);)if(A=s[++b].Yb[0],f=0,b==16)return 16;var L=s[b+1].Yb;if(gt(r,A[f+2])){var F=r,W=0;if(gt(F,(C=A)[(et=f)+3]))if(gt(F,C[et+6])){for(A=0,et=2*(W=gt(F,C[et+8]))+(C=gt(F,C[et+9+W])),W=0,C=Jf[et];C[A];++A)W+=W+gt(F,C[A]);W+=3+(8<<et)}else gt(F,C[et+7])?(W=7+2*gt(F,165),W+=gt(F,145)):W=5+gt(F,159);else W=gt(F,C[et+4])?3+gt(F,C[et+5]):2;A=L[2]}else W=1,A=L[1];L=y+Kf[b],0>(F=r).b&&at(F);var et,C=F.b,Y=(et=F.Ca>>1)-(F.I>>C)>>31;--F.b,F.Ca+=Y,F.Ca|=1,F.I-=(et+1&Y)<<C,w[L]=((W^Y)-Y)*g[(0<b)+0]}return 16}function la(r){var s=r.rb[r.sb-1];s.la=0,s.Na=0,o(r.zc,0,0,r.zc.length),r.ja=0}function Pn(r,s,f,g,b){b=r[s+f+32*g]+(b>>3),r[s+f+32*g]=-256&b?0>b?0:255:b}function Bi(r,s,f,g,b,w){Pn(r,s,0,f,g+b),Pn(r,s,1,f,g+w),Pn(r,s,2,f,g-w),Pn(r,s,3,f,g-b)}function yr(r){return(20091*r>>16)+r}function sn(r,s,f,g){var b,w=0,y=a(16);for(b=0;4>b;++b){var A=r[s+0]+r[s+8],L=r[s+0]-r[s+8],F=(35468*r[s+4]>>16)-yr(r[s+12]),W=yr(r[s+4])+(35468*r[s+12]>>16);y[w+0]=A+W,y[w+1]=L+F,y[w+2]=L-F,y[w+3]=A-W,w+=4,s++}for(b=w=0;4>b;++b)A=(r=y[w+0]+4)+y[w+8],L=r-y[w+8],F=(35468*y[w+4]>>16)-yr(y[w+12]),Pn(f,g,0,0,A+(W=yr(y[w+4])+(35468*y[w+12]>>16))),Pn(f,g,1,0,L+F),Pn(f,g,2,0,L-F),Pn(f,g,3,0,A-W),w++,g+=32}function Ga(r,s,f,g){var b=r[s+0]+4,w=35468*r[s+4]>>16,y=yr(r[s+4]),A=35468*r[s+1]>>16;Bi(f,g,0,b+y,r=yr(r[s+1]),A),Bi(f,g,1,b+w,r,A),Bi(f,g,2,b-w,r,A),Bi(f,g,3,b-y,r,A)}function Ms(r,s,f,g,b){sn(r,s,f,g),b&&sn(r,s+16,f,g+4)}function Rs(r,s,f,g){Sr(r,s+0,f,g,1),Sr(r,s+32,f,g+128,1)}function Ts(r,s,f,g){var b;for(r=r[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)Pn(f,g,s,b,r)}function or(r,s,f,g){r[s+0]&&dn(r,s+0,f,g),r[s+16]&&dn(r,s+16,f,g+4),r[s+32]&&dn(r,s+32,f,g+128),r[s+48]&&dn(r,s+48,f,g+128+4)}function Ya(r,s,f,g){var b,w=a(16);for(b=0;4>b;++b){var y=r[s+0+b]+r[s+12+b],A=r[s+4+b]+r[s+8+b],L=r[s+4+b]-r[s+8+b],F=r[s+0+b]-r[s+12+b];w[0+b]=y+A,w[8+b]=y-A,w[4+b]=F+L,w[12+b]=F-L}for(b=0;4>b;++b)y=(r=w[0+4*b]+3)+w[3+4*b],A=w[1+4*b]+w[2+4*b],L=w[1+4*b]-w[2+4*b],F=r-w[3+4*b],f[g+0]=y+A>>3,f[g+16]=F+L>>3,f[g+32]=y-A>>3,f[g+48]=F-L>>3,g+=64}function Mi(r,s,f){var g,b=s-32,w=In,y=255-r[b-1];for(g=0;g<f;++g){var A,L=w,F=y+r[s-1];for(A=0;A<f;++A)r[s+A]=L[F+r[b+A]];s+=32}}function Ri(r,s){Mi(r,s,4)}function ua(r,s){Mi(r,s,8)}function Ds(r,s){Mi(r,s,16)}function qs(r,s){var f;for(f=0;16>f;++f)i(r,s+32*f,r,s-32,16)}function Us(r,s){var f;for(f=16;0<f;--f)o(r,s,r[s-1],16),s+=32}function jr(r,s,f){var g;for(g=0;16>g;++g)o(s,f+32*g,r,16)}function Ja(r,s){var f,g=16;for(f=0;16>f;++f)g+=r[s-1+32*f]+r[s+f-32];jr(g>>5,r,s)}function Br(r,s){var f,g=8;for(f=0;16>f;++f)g+=r[s-1+32*f];jr(g>>4,r,s)}function zs(r,s){var f,g=8;for(f=0;16>f;++f)g+=r[s+f-32];jr(g>>4,r,s)}function ii(r,s){jr(128,r,s)}function Jt(r,s,f){return r+2*s+f+2>>2}function Hs(r,s){var f,g=s-32;for(g=new Uint8Array([Jt(r[g-1],r[g+0],r[g+1]),Jt(r[g+0],r[g+1],r[g+2]),Jt(r[g+1],r[g+2],r[g+3]),Jt(r[g+2],r[g+3],r[g+4])]),f=0;4>f;++f)i(r,s+32*f,g,0,g.length)}function Ws(r,s){var f=r[s-1],g=r[s-1+32],b=r[s-1+64],w=r[s-1+96];_t(r,s+0,16843009*Jt(r[s-1-32],f,g)),_t(r,s+32,16843009*Jt(f,g,b)),_t(r,s+64,16843009*Jt(g,b,w)),_t(r,s+96,16843009*Jt(b,w,w))}function Vs(r,s){var f,g=4;for(f=0;4>f;++f)g+=r[s+f-32]+r[s-1+32*f];for(g>>=3,f=0;4>f;++f)o(r,s+32*f,g,4)}function Gs(r,s){var f=r[s-1+0],g=r[s-1+32],b=r[s-1+64],w=r[s-1-32],y=r[s+0-32],A=r[s+1-32],L=r[s+2-32],F=r[s+3-32];r[s+0+96]=Jt(g,b,r[s-1+96]),r[s+1+96]=r[s+0+64]=Jt(f,g,b),r[s+2+96]=r[s+1+64]=r[s+0+32]=Jt(w,f,g),r[s+3+96]=r[s+2+64]=r[s+1+32]=r[s+0+0]=Jt(y,w,f),r[s+3+64]=r[s+2+32]=r[s+1+0]=Jt(A,y,w),r[s+3+32]=r[s+2+0]=Jt(L,A,y),r[s+3+0]=Jt(F,L,A)}function Ys(r,s){var f=r[s+1-32],g=r[s+2-32],b=r[s+3-32],w=r[s+4-32],y=r[s+5-32],A=r[s+6-32],L=r[s+7-32];r[s+0+0]=Jt(r[s+0-32],f,g),r[s+1+0]=r[s+0+32]=Jt(f,g,b),r[s+2+0]=r[s+1+32]=r[s+0+64]=Jt(g,b,w),r[s+3+0]=r[s+2+32]=r[s+1+64]=r[s+0+96]=Jt(b,w,y),r[s+3+32]=r[s+2+64]=r[s+1+96]=Jt(w,y,A),r[s+3+64]=r[s+2+96]=Jt(y,A,L),r[s+3+96]=Jt(A,L,L)}function xr(r,s){var f=r[s-1+0],g=r[s-1+32],b=r[s-1+64],w=r[s-1-32],y=r[s+0-32],A=r[s+1-32],L=r[s+2-32],F=r[s+3-32];r[s+0+0]=r[s+1+64]=w+y+1>>1,r[s+1+0]=r[s+2+64]=y+A+1>>1,r[s+2+0]=r[s+3+64]=A+L+1>>1,r[s+3+0]=L+F+1>>1,r[s+0+96]=Jt(b,g,f),r[s+0+64]=Jt(g,f,w),r[s+0+32]=r[s+1+96]=Jt(f,w,y),r[s+1+32]=r[s+2+96]=Jt(w,y,A),r[s+2+32]=r[s+3+96]=Jt(y,A,L),r[s+3+32]=Jt(A,L,F)}function _r(r,s){var f=r[s+0-32],g=r[s+1-32],b=r[s+2-32],w=r[s+3-32],y=r[s+4-32],A=r[s+5-32],L=r[s+6-32],F=r[s+7-32];r[s+0+0]=f+g+1>>1,r[s+1+0]=r[s+0+64]=g+b+1>>1,r[s+2+0]=r[s+1+64]=b+w+1>>1,r[s+3+0]=r[s+2+64]=w+y+1>>1,r[s+0+32]=Jt(f,g,b),r[s+1+32]=r[s+0+96]=Jt(g,b,w),r[s+2+32]=r[s+1+96]=Jt(b,w,y),r[s+3+32]=r[s+2+96]=Jt(w,y,A),r[s+3+64]=Jt(y,A,L),r[s+3+96]=Jt(A,L,F)}function Js(r,s){var f=r[s-1+0],g=r[s-1+32],b=r[s-1+64],w=r[s-1+96];r[s+0+0]=f+g+1>>1,r[s+2+0]=r[s+0+32]=g+b+1>>1,r[s+2+32]=r[s+0+64]=b+w+1>>1,r[s+1+0]=Jt(f,g,b),r[s+3+0]=r[s+1+32]=Jt(g,b,w),r[s+3+32]=r[s+1+64]=Jt(b,w,w),r[s+3+64]=r[s+2+64]=r[s+0+96]=r[s+1+96]=r[s+2+96]=r[s+3+96]=w}function Ks(r,s){var f=r[s-1+0],g=r[s-1+32],b=r[s-1+64],w=r[s-1+96],y=r[s-1-32],A=r[s+0-32],L=r[s+1-32],F=r[s+2-32];r[s+0+0]=r[s+2+32]=f+y+1>>1,r[s+0+32]=r[s+2+64]=g+f+1>>1,r[s+0+64]=r[s+2+96]=b+g+1>>1,r[s+0+96]=w+b+1>>1,r[s+3+0]=Jt(A,L,F),r[s+2+0]=Jt(y,A,L),r[s+1+0]=r[s+3+32]=Jt(f,y,A),r[s+1+32]=r[s+3+64]=Jt(g,f,y),r[s+1+64]=r[s+3+96]=Jt(b,g,f),r[s+1+96]=Jt(w,b,g)}function Ti(r,s){var f;for(f=0;8>f;++f)i(r,s+32*f,r,s-32,8)}function fa(r,s){var f;for(f=0;8>f;++f)o(r,s,r[s-1],8),s+=32}function lr(r,s,f){var g;for(g=0;8>g;++g)o(s,f+32*g,r,8)}function Xs(r,s){var f,g=8;for(f=0;8>f;++f)g+=r[s+f-32]+r[s-1+32*f];lr(g>>4,r,s)}function Di(r,s){var f,g=4;for(f=0;8>f;++f)g+=r[s+f-32];lr(g>>3,r,s)}function $s(r,s){var f,g=4;for(f=0;8>f;++f)g+=r[s-1+32*f];lr(g>>3,r,s)}function ha(r,s){lr(128,r,s)}function Mr(r,s,f){var g=r[s-f],b=r[s+0],w=3*(b-g)+Qs[1020+r[s-2*f]-r[s+f]],y=rs[112+(w+4>>3)];r[s-f]=In[255+g+rs[112+(w+3>>3)]],r[s+0]=In[255+b-y]}function ca(r,s,f,g){var b=r[s+0],w=r[s+f];return zn[255+r[s-2*f]-r[s-f]]>g||zn[255+w-b]>g}function ai(r,s,f,g){return 4*zn[255+r[s-f]-r[s+0]]+zn[255+r[s-2*f]-r[s+f]]<=g}function da(r,s,f,g,b){var w=r[s-3*f],y=r[s-2*f],A=r[s-f],L=r[s+0],F=r[s+f],W=r[s+2*f],et=r[s+3*f];return 4*zn[255+A-L]+zn[255+y-F]>g?0:zn[255+r[s-4*f]-w]<=b&&zn[255+w-y]<=b&&zn[255+y-A]<=b&&zn[255+et-W]<=b&&zn[255+W-F]<=b&&zn[255+F-L]<=b}function qi(r,s,f,g){var b=2*g+1;for(g=0;16>g;++g)ai(r,s+g,f,b)&&Mr(r,s+g,f)}function pa(r,s,f,g){var b=2*g+1;for(g=0;16>g;++g)ai(r,s+g*f,1,b)&&Mr(r,s+g*f,1)}function Ui(r,s,f,g){var b;for(b=3;0<b;--b)qi(r,s+=4*f,f,g)}function Ka(r,s,f,g){var b;for(b=3;0<b;--b)pa(r,s+=4,f,g)}function Ar(r,s,f,g,b,w,y,A){for(w=2*w+1;0<b--;){if(da(r,s,f,w,y))if(ca(r,s,f,A))Mr(r,s,f);else{var L=r,F=s,W=f,et=L[F-2*W],C=L[F-W],Y=L[F+0],$=L[F+W],ut=L[F+2*W],Q=27*(pt=Qs[1020+3*(Y-C)+Qs[1020+et-$]])+63>>7,ht=18*pt+63>>7,pt=9*pt+63>>7;L[F-3*W]=In[255+L[F-3*W]+pt],L[F-2*W]=In[255+et+ht],L[F-W]=In[255+C+Q],L[F+0]=In[255+Y-Q],L[F+W]=In[255+$-ht],L[F+2*W]=In[255+ut-pt]}s+=g}}function Nr(r,s,f,g,b,w,y,A){for(w=2*w+1;0<b--;){if(da(r,s,f,w,y))if(ca(r,s,f,A))Mr(r,s,f);else{var L=r,F=s,W=f,et=L[F-W],C=L[F+0],Y=L[F+W],$=rs[112+(4+(ut=3*(C-et))>>3)],ut=rs[112+(ut+3>>3)],Q=$+1>>1;L[F-2*W]=In[255+L[F-2*W]+Q],L[F-W]=In[255+et+ut],L[F+0]=In[255+C-$],L[F+W]=In[255+Y-Q]}s+=g}}function Xa(r,s,f,g,b,w){Ar(r,s,f,1,16,g,b,w)}function $a(r,s,f,g,b,w){Ar(r,s,1,f,16,g,b,w)}function Za(r,s,f,g,b,w){var y;for(y=3;0<y;--y)Nr(r,s+=4*f,f,1,16,g,b,w)}function si(r,s,f,g,b,w){var y;for(y=3;0<y;--y)Nr(r,s+=4,1,f,16,g,b,w)}function Qa(r,s,f,g,b,w,y,A){Ar(r,s,b,1,8,w,y,A),Ar(f,g,b,1,8,w,y,A)}function u(r,s,f,g,b,w,y,A){Ar(r,s,1,b,8,w,y,A),Ar(f,g,1,b,8,w,y,A)}function v(r,s,f,g,b,w,y,A){Nr(r,s+4*b,b,1,8,w,y,A),Nr(f,g+4*b,b,1,8,w,y,A)}function I(r,s,f,g,b,w,y,A){Nr(r,s+4,1,b,8,w,y,A),Nr(f,g+4,1,b,8,w,y,A)}function D(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new be,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function K(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function lt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function mt(){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 Et(){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 B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new mt,this.ab=0,this.gc=c(4,lt),this.Oc=0}function Ct(){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 Xt(r,s,f,g,b,w,y){for(r=r==null?0:r[s+0],s=0;s<y;++s)b[w+s]=r+f[g+s]&255,r=b[w+s]}function te(r,s,f,g,b,w,y){var A;if(r==null)Xt(null,null,f,g,b,w,y);else for(A=0;A<y;++A)b[w+A]=r[s+A]+f[g+A]&255}function de(r,s,f,g,b,w,y){if(r==null)Xt(null,null,f,g,b,w,y);else{var A,L=r[s+0],F=L,W=L;for(A=0;A<y;++A)F=W+(L=r[s+A])-F,W=f[g+A]+(-256&F?0>F?0:255:F)&255,F=L,b[w+A]=W}}function Xe(r,s,f,g){var b=s.width,w=s.o;if(t(r!=null&&s!=null),0>f||0>=g||f+g>w)return null;if(!r.Cc){if(r.ga==null){var y;if(r.ga=new Ct,(y=r.ga==null)||(y=s.width*s.o,t(r.Gb.length==0),r.Gb=a(y),r.Uc=0,r.Gb==null?y=0:(r.mb=r.Gb,r.nb=r.Uc,r.rc=null,y=1),y=!y),!y){y=r.ga;var A=r.Fa,L=r.P,F=r.qc,W=r.mb,et=r.nb,C=L+1,Y=F-1,$=y.l;if(t(A!=null&&W!=null&&s!=null),Hr[0]=null,Hr[1]=Xt,Hr[2]=te,Hr[3]=de,y.ca=W,y.tb=et,y.c=s.width,y.i=s.height,t(0<y.c&&0<y.i),1>=F)s=0;else if(y.$a=3&A[L+0],y.Z=A[L+0]>>2&3,y.Lc=A[L+0]>>4&3,L=A[L+0]>>6&3,0>y.$a||1<y.$a||4<=y.Z||1<y.Lc||L)s=0;else if($.put=Gt,$.ac=nr,$.bc=br,$.ma=y,$.width=s.width,$.height=s.height,$.Da=s.Da,$.v=s.v,$.va=s.va,$.j=s.j,$.o=s.o,y.$a)t:{t(y.$a==1),s=ni();e:for(;;){if(s==null){s=0;break t}if(t(y!=null),y.mc=s,s.c=y.c,s.i=y.i,s.l=y.l,s.l.ma=y,s.l.width=y.c,s.l.height=y.i,s.a=0,ct(s.m,A,C,Y),!ir(y.c,y.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Vn(s.s)?(y.ic=1,A=s.c*s.i,s.Ta=null,s.Ua=0,s.V=a(A),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(y.ic=0,s=ri(s,y.c)),!s))break e;s=1;break t}y.mc=null,s=0}else s=Y>=y.c*y.i;y=!s}if(y)return null;r.ga.Lc!=1?r.Ga=0:g=w-f}t(r.ga!=null),t(f+g<=w);t:{if(s=(A=r.ga).c,w=A.l.o,A.$a==0){if(C=r.rc,Y=r.Vc,$=r.Fa,L=r.P+1+f*s,F=r.mb,W=r.nb+f*s,t(L<=r.P+r.qc),A.Z!=0)for(t(Hr[A.Z]!=null),y=0;y<g;++y)Hr[A.Z](C,Y,$,L,F,W,s),C=F,Y=W,W+=s,L+=s;else for(y=0;y<g;++y)i(F,W,$,L,s),C=F,Y=W,W+=s,L+=s;r.rc=C,r.Vc=Y}else{if(t(A.mc!=null),s=f+g,t((y=A.mc)!=null),t(s<=y.i),y.C>=s)s=1;else if(A.ic||Re(),A.ic){A=y.V,C=y.Ba,Y=y.c;var ut=y.i,Q=($=1,L=y.$/Y,F=y.$%Y,W=y.m,et=y.s,y.$),ht=Y*ut,pt=Y*s,xt=et.wc,bt=Q<pt?an(et,F,L):null;t(Q<=ht),t(s<=ut),t(Vn(et));e:for(;;){for(;!W.h&&Q<pt;){if(F&xt||(bt=an(et,F,L)),t(bt!=null),Z(W),256>(ut=Te(bt.G[0],bt.H[0],W)))A[C+Q]=ut,++Q,++F>=Y&&(F=0,++L<=s&&!(L%16)&&Gn(y,L));else{if(!(280>ut)){$=0;break e}ut=Rn(ut-256,W);var Rt,Pt=Te(bt.G[4],bt.H[4],W);if(Z(W),!(Q>=(Pt=Tn(Y,Pt=Rn(Pt,W)))&&ht-Q>=ut)){$=0;break e}for(Rt=0;Rt<ut;++Rt)A[C+Q+Rt]=A[C+Q+Rt-Pt];for(Q+=ut,F+=ut;F>=Y;)F-=Y,++L<=s&&!(L%16)&&Gn(y,L);Q<pt&&F&xt&&(bt=an(et,F,L))}t(W.h==H(W))}Gn(y,L>s?s:L);break e}!$||W.h&&Q<ht?($=0,y.a=W.h?5:3):y.$=Q,s=$}else s=Yn(y,y.V,y.Ba,y.c,y.i,s,Fi);if(!s){g=0;break t}}f+g>=w&&(r.Cc=1),g=1}if(!g)return null;if(r.Cc&&((g=r.ga)!=null&&(g.mc=null),r.ga=null,0<r.Ga))return alert("todo:WebPDequantizeLevels"),null}return r.nb+f*b}function Ae(r,s,f,g,b,w){for(;0<b--;){var y,A=r,L=s+(f?1:0),F=r,W=s+(f?0:3);for(y=0;y<g;++y){var et=F[W+4*y];et!=255&&(et*=32897,A[L+4*y+0]=A[L+4*y+0]*et>>23,A[L+4*y+1]=A[L+4*y+1]*et>>23,A[L+4*y+2]=A[L+4*y+2]*et>>23)}s+=w}}function _e(r,s,f,g,b){for(;0<g--;){var w;for(w=0;w<f;++w){var y=r[s+2*w+0],A=15&(F=r[s+2*w+1]),L=4369*A,F=(240&F|F>>4)*L>>16;r[s+2*w+0]=(240&y|y>>4)*L>>16&240|(15&y|y<<4)*L>>16>>4&15,r[s+2*w+1]=240&F|A}s+=b}}function Fe(r,s,f,g,b,w,y,A){var L,F,W=255;for(F=0;F<b;++F){for(L=0;L<g;++L){var et=r[s+L];w[y+4*L]=et,W&=et}s+=f,y+=A}return W!=255}function Me(r,s,f,g,b){var w;for(w=0;w<b;++w)f[g+w]=r[s+w]>>8}function Re(){_a=Ae,il=_e,al=Fe,sl=Me}function hn(r,s,f){R[r]=function(g,b,w,y,A,L,F,W,et,C,Y,$,ut,Q,ht,pt,xt){var bt,Rt=xt-1>>1,Pt=A[L+0]|F[W+0]<<16,re=et[C+0]|Y[$+0]<<16;t(g!=null);var Ot=3*Pt+re+131074>>2;for(s(g[b+0],255&Ot,Ot>>16,ut,Q),w!=null&&(Ot=3*re+Pt+131074>>2,s(w[y+0],255&Ot,Ot>>16,ht,pt)),bt=1;bt<=Rt;++bt){var ce=A[L+bt]|F[W+bt]<<16,Qe=et[C+bt]|Y[$+bt]<<16,ie=Pt+ce+re+Qe+524296,jt=ie+2*(ce+re)>>3;Ot=jt+Pt>>1,Pt=(ie=ie+2*(Pt+Qe)>>3)+ce>>1,s(g[b+2*bt-1],255&Ot,Ot>>16,ut,Q+(2*bt-1)*f),s(g[b+2*bt-0],255&Pt,Pt>>16,ut,Q+(2*bt-0)*f),w!=null&&(Ot=ie+re>>1,Pt=jt+Qe>>1,s(w[y+2*bt-1],255&Ot,Ot>>16,ht,pt+(2*bt-1)*f),s(w[y+2*bt+0],255&Pt,Pt>>16,ht,pt+(2*bt+0)*f)),Pt=ce,re=Qe}1&xt||(Ot=3*Pt+re+131074>>2,s(g[b+xt-1],255&Ot,Ot>>16,ut,Q+(xt-1)*f),w!=null&&(Ot=3*re+Pt+131074>>2,s(w[y+xt-1],255&Ot,Ot>>16,ht,pt+(xt-1)*f)))}}function Lr(){Hn[is]=eh,Hn[as]=vl,Hn[cl]=nh,Hn[ss]=bl,Hn[os]=wl,Hn[to]=yl,Hn[dl]=rh,Hn[eo]=vl,Hn[no]=bl,Hn[ls]=wl,Hn[ro]=yl}function ga(r){return r&-16384?0>r?0:255:r>>ih}function oi(r,s){return ga((19077*r>>8)+(26149*s>>8)-14234)}function li(r,s,f){return ga((19077*r>>8)-(6419*s>>8)-(13320*f>>8)+8708)}function Rr(r,s){return ga((19077*r>>8)+(33050*s>>8)-17685)}function ui(r,s,f,g,b){g[b+0]=oi(r,f),g[b+1]=li(r,s,f),g[b+2]=Rr(r,s)}function zi(r,s,f,g,b){g[b+0]=Rr(r,s),g[b+1]=li(r,s,f),g[b+2]=oi(r,f)}function Hi(r,s,f,g,b){var w=li(r,s,f);s=w<<3&224|Rr(r,s)>>3,g[b+0]=248&oi(r,f)|w>>5,g[b+1]=s}function cn(r,s,f,g,b){var w=240&Rr(r,s)|15;g[b+0]=240&oi(r,f)|li(r,s,f)>>4,g[b+1]=w}function fi(r,s,f,g,b){g[b+0]=255,ui(r,s,f,g,b+1)}function hi(r,s,f,g,b){zi(r,s,f,g,b),g[b+3]=255}function ma(r,s,f,g,b){ui(r,s,f,g,b),g[b+3]=255}function ur(r,s,f){R[r]=function(g,b,w,y,A,L,F,W,et){for(var C=W+(-2&et)*f;W!=C;)s(g[b+0],w[y+0],A[L+0],F,W),s(g[b+1],w[y+0],A[L+0],F,W+f),b+=2,++y,++L,W+=2*f;1&et&&s(g[b+0],w[y+0],A[L+0],F,W)}}function wn(r,s,f){return f==0?r==0?s==0?6:5:s==0?4:0:f}function ts(r,s,f,g,b){switch(r>>>30){case 3:Sr(s,f,g,b,0);break;case 2:Ur(s,f,g,b);break;case 1:dn(s,f,g,b)}}function Wi(r,s){var f,g,b=s.M,w=s.Nb,y=r.oc,A=r.pc+40,L=r.oc,F=r.pc+584,W=r.oc,et=r.pc+600;for(f=0;16>f;++f)y[A+32*f-1]=129;for(f=0;8>f;++f)L[F+32*f-1]=129,W[et+32*f-1]=129;for(0<b?y[A-1-32]=L[F-1-32]=W[et-1-32]=129:(o(y,A-32-1,127,21),o(L,F-32-1,127,9),o(W,et-32-1,127,9)),g=0;g<r.za;++g){var C=s.ya[s.aa+g];if(0<g){for(f=-1;16>f;++f)i(y,A+32*f-4,y,A+32*f+12,4);for(f=-1;8>f;++f)i(L,F+32*f-4,L,F+32*f+4,4),i(W,et+32*f-4,W,et+32*f+4,4)}var Y=r.Gd,$=r.Hd+g,ut=C.ad,Q=C.Hc;if(0<b&&(i(y,A-32,Y[$].y,0,16),i(L,F-32,Y[$].f,0,8),i(W,et-32,Y[$].ea,0,8)),C.Za){var ht=y,pt=A-32+16;for(0<b&&(g>=r.za-1?o(ht,pt,Y[$].y[15],4):i(ht,pt,Y[$+1].y,0,4)),f=0;4>f;f++)ht[pt+128+f]=ht[pt+256+f]=ht[pt+384+f]=ht[pt+0+f];for(f=0;16>f;++f,Q<<=2)ht=y,pt=A+_l[f],Kn[C.Ob[f]](ht,pt),ts(Q,ut,16*+f,ht,pt)}else if(ht=wn(g,b,C.Ob[0]),zr[ht](y,A),Q!=0)for(f=0;16>f;++f,Q<<=2)ts(Q,ut,16*+f,y,A+_l[f]);for(f=C.Gc,ht=wn(g,b,C.Dd),Pr[ht](L,F),Pr[ht](W,et),Q=ut,ht=L,pt=F,255&(C=0|f)&&(170&C?Ki(Q,256,ht,pt):hr(Q,256,ht,pt)),C=W,Q=et,255&(f>>=8)&&(170&f?Ki(ut,320,C,Q):hr(ut,320,C,Q)),b<r.Ub-1&&(i(Y[$].y,0,y,A+480,16),i(Y[$].f,0,L,F+224,8),i(Y[$].ea,0,W,et+224,8)),f=8*w*r.B,Y=r.sa,$=r.ta+16*g+16*w*r.R,ut=r.qa,C=r.ra+8*g+f,Q=r.Ha,ht=r.Ia+8*g+f,f=0;16>f;++f)i(Y,$+f*r.R,y,A+32*f,16);for(f=0;8>f;++f)i(ut,C+f*r.B,L,F+32*f,8),i(Q,ht+f*r.B,W,et+32*f,8)}}function es(r,s,f,g,b,w,y,A,L){var F=[0],W=[0],et=0,C=L!=null?L.kd:0,Y=L??new K;if(r==null||12>f)return 7;Y.data=r,Y.w=s,Y.ha=f,s=[s],f=[f],Y.gb=[Y.gb];t:{var $=s,ut=f,Q=Y.gb;if(t(r!=null),t(ut!=null),t(Q!=null),Q[0]=0,12<=ut[0]&&!e(r,$[0],"RIFF")){if(e(r,$[0]+8,"WEBP")){Q=3;break t}var ht=Dt(r,$[0]+4);if(12>ht||4294967286<ht){Q=3;break t}if(C&&ht>ut[0]-8){Q=7;break t}Q[0]=ht,$[0]+=12,ut[0]-=12}Q=0}if(Q!=0)return Q;for(ht=0<Y.gb[0],f=f[0];;){t:{var pt=r;ut=s,Q=f;var xt=F,bt=W,Rt=$=[0];if((Ot=et=[et])[0]=0,8>Q[0])Q=7;else{if(!e(pt,ut[0],"VP8X")){if(Dt(pt,ut[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Pt=Dt(pt,ut[0]+8),re=1+St(pt,ut[0]+12);if(2147483648<=re*(pt=1+St(pt,ut[0]+15))){Q=3;break t}Rt!=null&&(Rt[0]=Pt),xt!=null&&(xt[0]=re),bt!=null&&(bt[0]=pt),ut[0]+=18,Q[0]-=18,Ot[0]=1}Q=0}}if(et=et[0],$=$[0],Q!=0)return Q;if(ut=!!(2&$),!ht&&et)return 3;if(w!=null&&(w[0]=!!(16&$)),y!=null&&(y[0]=ut),A!=null&&(A[0]=0),y=F[0],$=W[0],et&&ut&&L==null){Q=0;break}if(4>f){Q=7;break}if(ht&&et||!ht&&!et&&!e(r,s[0],"ALPH")){f=[f],Y.na=[Y.na],Y.P=[Y.P],Y.Sa=[Y.Sa];t:{Pt=r,Q=s,ht=f;var Ot=Y.gb;xt=Y.na,bt=Y.P,Rt=Y.Sa,re=22,t(Pt!=null),t(ht!=null),pt=Q[0];var ce=ht[0];for(t(xt!=null),t(Rt!=null),xt[0]=null,bt[0]=null,Rt[0]=0;;){if(Q[0]=pt,ht[0]=ce,8>ce){Q=7;break t}var Qe=Dt(Pt,pt+4);if(4294967286<Qe){Q=3;break t}var ie=8+Qe+1&-2;if(re+=ie,0<Ot&&re>Ot){Q=3;break t}if(!e(Pt,pt,"VP8 ")||!e(Pt,pt,"VP8L")){Q=0;break t}if(ce[0]<ie){Q=7;break t}e(Pt,pt,"ALPH")||(xt[0]=Pt,bt[0]=pt+8,Rt[0]=Qe),pt+=ie,ce-=ie}}if(f=f[0],Y.na=Y.na[0],Y.P=Y.P[0],Y.Sa=Y.Sa[0],Q!=0)break}f=[f],Y.Ja=[Y.Ja],Y.xa=[Y.xa];t:if(Ot=r,Q=s,ht=f,xt=Y.gb[0],bt=Y.Ja,Rt=Y.xa,Pt=Q[0],pt=!e(Ot,Pt,"VP8 "),re=!e(Ot,Pt,"VP8L"),t(Ot!=null),t(ht!=null),t(bt!=null),t(Rt!=null),8>ht[0])Q=7;else{if(pt||re){if(Ot=Dt(Ot,Pt+4),12<=xt&&Ot>xt-12){Q=3;break t}if(C&&Ot>ht[0]-8){Q=7;break t}bt[0]=Ot,Q[0]+=8,ht[0]-=8,Rt[0]=re}else Rt[0]=5<=ht[0]&&Ot[Pt+0]==47&&!(Ot[Pt+4]>>5),bt[0]=ht[0];Q=0}if(f=f[0],Y.Ja=Y.Ja[0],Y.xa=Y.xa[0],s=s[0],Q!=0)break;if(4294967286<Y.Ja)return 3;if(A==null||ut||(A[0]=Y.xa?2:1),y=[y],$=[$],Y.xa){if(5>f){Q=7;break}A=y,C=$,ut=w,r==null||5>f?r=0:5<=f&&r[s+0]==47&&!(r[s+4]>>5)?(ht=[0],Ot=[0],xt=[0],ct(bt=new B,r,s,f),wr(bt,ht,Ot,xt)?(A!=null&&(A[0]=ht[0]),C!=null&&(C[0]=Ot[0]),ut!=null&&(ut[0]=xt[0]),r=1):r=0):r=0}else{if(10>f){Q=7;break}A=$,r==null||10>f||!Va(r,s+3,f-3)?r=0:(C=r[s+0]|r[s+1]<<8|r[s+2]<<16,ut=16383&(r[s+7]<<8|r[s+6]),r=16383&(r[s+9]<<8|r[s+8]),1&C||3<(C>>1&7)||!(C>>4&1)||C>>5>=Y.Ja||!ut||!r?r=0:(y&&(y[0]=ut),A&&(A[0]=r),r=1))}if(!r||(y=y[0],$=$[0],et&&(F[0]!=y||W[0]!=$)))return 3;L!=null&&(L[0]=Y,L.offset=s-L.w,t(4294967286>s-L.w),t(L.offset==L.ha-f));break}return Q==0||Q==7&&et&&L==null?(w!=null&&(w[0]|=Y.na!=null&&0<Y.na.length),g!=null&&(g[0]=y),b!=null&&(b[0]=$),0):Q}function Un(r,s,f){var g=s.width,b=s.height,w=0,y=0,A=g,L=b;if(s.Da=r!=null&&0<r.Da,s.Da&&(A=r.cd,L=r.bd,w=r.v,y=r.j,11>f||(w&=-2,y&=-2),0>w||0>y||0>=A||0>=L||w+A>g||y+L>b))return 0;if(s.v=w,s.j=y,s.va=w+A,s.o=y+L,s.U=A,s.T=L,s.da=r!=null&&0<r.da,s.da){if(!Ht(A,L,f=[r.ib],w=[r.hb]))return 0;s.ib=f[0],s.hb=w[0]}return s.ob=r!=null&&r.ob,s.Kb=r==null||!r.Sd,s.da&&(s.ob=s.ib<3*g/4&&s.hb<3*b/4,s.Kb=0),1}function ci(r){if(r==null)return 2;if(11>r.S){var s=r.f.RGBA;s.fb+=(r.height-1)*s.A,s.A=-s.A}else s=r.f.kb,r=r.height,s.O+=(r-1)*s.fa,s.fa=-s.fa,s.N+=(r-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(r-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(r-1)*s.lb,s.lb=-s.lb);return 0}function va(r,s,f,g){if(g==null||0>=r||0>=s)return 2;if(f!=null){if(f.Da){var b=f.cd,w=f.bd,y=-2&f.v,A=-2&f.j;if(0>y||0>A||0>=b||0>=w||y+b>r||A+w>s)return 2;r=b,s=w}if(f.da){if(!Ht(r,s,b=[f.ib],w=[f.hb]))return 2;r=b[0],s=w[0]}}g.width=r,g.height=s;t:{var L=g.width,F=g.height;if(r=g.S,0>=L||0>=F||!(r>=is&&13>r))r=2;else{if(0>=g.Rd&&g.sd==null){y=w=b=s=0;var W=(A=L*Al[r])*F;if(11>r||(w=(F+1)/2*(s=(L+1)/2),r==12&&(y=(b=L)*F)),(F=a(W+2*w+y))==null){r=1;break t}g.sd=F,11>r?((L=g.f.RGBA).eb=F,L.fb=0,L.A=A,L.size=W):((L=g.f.kb).y=F,L.O=0,L.fa=A,L.Fd=W,L.f=F,L.N=0+W,L.Ab=s,L.Cd=w,L.ea=F,L.W=0+W+w,L.Db=s,L.Ed=w,r==12&&(L.F=F,L.J=0+W+2*w),L.Tc=y,L.lb=b)}if(s=1,b=g.S,w=g.width,y=g.height,b>=is&&13>b)if(11>b)r=g.f.RGBA,s&=(A=Math.abs(r.A))*(y-1)+w<=r.size,s&=A>=w*Al[b],s&=r.eb!=null;else{r=g.f.kb,A=(w+1)/2,W=(y+1)/2,L=Math.abs(r.fa),F=Math.abs(r.Ab);var et=Math.abs(r.Db),C=Math.abs(r.lb),Y=C*(y-1)+w;s&=L*(y-1)+w<=r.Fd,s&=F*(W-1)+A<=r.Cd,s=(s&=et*(W-1)+A<=r.Ed)&L>=w&F>=A&et>=A,s&=r.y!=null,s&=r.f!=null,s&=r.ea!=null,b==12&&(s&=C>=w,s&=Y<=r.Tc,s&=r.F!=null)}else s=0;r=s?0:2}}return r!=0||f!=null&&f.fd&&(r=ci(g)),r}var Vi=64,di=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ba=24,yn=32,Nn=8,Gi=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ft("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(r){return r},R.Predictor2=function(r,s,f){return s[f+0]},R.Predictor3=function(r,s,f){return s[f+1]},R.Predictor4=function(r,s,f){return s[f-1]},R.Predictor5=function(r,s,f){return qt(qt(r,s[f+1]),s[f+0])},R.Predictor6=function(r,s,f){return qt(r,s[f-1])},R.Predictor7=function(r,s,f){return qt(r,s[f+0])},R.Predictor8=function(r,s,f){return qt(s[f-1],s[f+0])},R.Predictor9=function(r,s,f){return qt(s[f+0],s[f+1])},R.Predictor10=function(r,s,f){return qt(qt(r,s[f-1]),qt(s[f+0],s[f+1]))},R.Predictor11=function(r,s,f){var g=s[f+0];return 0>=Zt(g>>24&255,r>>24&255,(s=s[f-1])>>24&255)+Zt(g>>16&255,r>>16&255,s>>16&255)+Zt(g>>8&255,r>>8&255,s>>8&255)+Zt(255&g,255&r,255&s)?g:r},R.Predictor12=function(r,s,f){var g=s[f+0];return(ve((r>>24&255)+(g>>24&255)-((s=s[f-1])>>24&255))<<24|ve((r>>16&255)+(g>>16&255)-(s>>16&255))<<16|ve((r>>8&255)+(g>>8&255)-(s>>8&255))<<8|ve((255&r)+(255&g)-(255&s)))>>>0},R.Predictor13=function(r,s,f){var g=s[f-1];return(ue((r=qt(r,s[f+0]))>>24&255,g>>24&255)<<24|ue(r>>16&255,g>>16&255)<<16|ue(r>>8&255,g>>8&255)<<8|ue(255&r,255&g))>>>0};var Tr=R.PredictorAdd0;R.PredictorAdd1=he,Ft("Predictor2","PredictorAdd2"),Ft("Predictor3","PredictorAdd3"),Ft("Predictor4","PredictorAdd4"),Ft("Predictor5","PredictorAdd5"),Ft("Predictor6","PredictorAdd6"),Ft("Predictor7","PredictorAdd7"),Ft("Predictor8","PredictorAdd8"),Ft("Predictor9","PredictorAdd9"),Ft("Predictor10","PredictorAdd10"),Ft("Predictor11","PredictorAdd11"),Ft("Predictor12","PredictorAdd12"),Ft("Predictor13","PredictorAdd13");var Dr=R.PredictorAdd2;Tt("ColorIndexInverseTransform","MapARGB","32b",function(r){return r>>8&255},function(r){return r}),Tt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(r){return r},function(r){return r>>8&255});var Yi,pi=R.ColorIndexInverseTransform,$e=R.MapARGB,Zs=R.VP8LColorIndexInverseTransformAlpha,fr=R.MapAlpha,Jn=R.VP8LPredictorsAdd=[];Jn.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var gi,wa,ya,Ji,mi,vi,qr,Sr,Ur,Ki,dn,hr,ke,Pe,He,Ze,kr,xa,Xi,ns,tl,el,nl,rl,_a,il,al,sl,ol=a(511),ll=a(2041),ul=a(225),fl=a(767),hl=0,Qs=ll,rs=ul,In=fl,zn=ol,is=0,as=1,cl=2,ss=3,os=4,to=5,dl=6,eo=7,no=8,ls=9,ro=10,Uf=[2,3,7],zf=[3,3,11],pl=[280,256,256,256,40],Hf=[0,1,1,1,0],Wf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Vf=[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],Gf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Yf=8,io=[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],ao=[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],Aa=null,Jf=[[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]],Kf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],gl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Xf=[[[[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]]]],$f=[[[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]]],Zf=[[[[255,255,255,255,255,255,255,255,255,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]]]],Qf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zr=[],Kn=[],Pr=[],th=1,ml=2,Hr=[],Hn=[];hn("UpsampleRgbLinePair",ui,3),hn("UpsampleBgrLinePair",zi,3),hn("UpsampleRgbaLinePair",ma,4),hn("UpsampleBgraLinePair",hi,4),hn("UpsampleArgbLinePair",fi,4),hn("UpsampleRgba4444LinePair",cn,2),hn("UpsampleRgb565LinePair",Hi,2);var eh=R.UpsampleRgbLinePair,nh=R.UpsampleBgrLinePair,vl=R.UpsampleRgbaLinePair,bl=R.UpsampleBgraLinePair,wl=R.UpsampleArgbLinePair,yl=R.UpsampleRgba4444LinePair,rh=R.UpsampleRgb565LinePair,us=16,fs=1<<us-1,Na=-227,so=482,ih=6,xl=0,ah=a(256),sh=a(256),oh=a(256),lh=a(256),uh=a(so-Na),fh=a(so-Na);ur("YuvToRgbRow",ui,3),ur("YuvToBgrRow",zi,3),ur("YuvToRgbaRow",ma,4),ur("YuvToBgraRow",hi,4),ur("YuvToArgbRow",fi,4),ur("YuvToRgba4444Row",cn,2),ur("YuvToRgb565Row",Hi,2);var _l=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],hs=[0,2,8],hh=[8,7,6,4,4,2,2,2,1,1,1,1],ch=1;this.WebPDecodeRGBA=function(r,s,f,g,b){var w=as,y=new D,A=new le;y.ba=A,A.S=w,A.width=[A.width],A.height=[A.height];var L=A.width,F=A.height,W=new Vt;if(W==null||r==null)var et=2;else t(W!=null),et=es(r,s,f,W.width,W.height,W.Pd,W.Qd,W.format,null);if(et!=0?L=0:(L!=null&&(L[0]=W.width[0]),F!=null&&(F[0]=W.height[0]),L=1),L){A.width=A.width[0],A.height=A.height[0],g!=null&&(g[0]=A.width),b!=null&&(b[0]=A.height);t:{if(g=new Oi,(b=new K).data=r,b.w=s,b.ha=f,b.kd=1,s=[0],t(b!=null),((r=es(b.data,b.w,b.ha,null,null,null,s,null,b))==0||r==7)&&s[0]&&(r=4),(s=r)==0){if(t(y!=null),g.data=b.data,g.w=b.w+b.offset,g.ha=b.ha-b.offset,g.put=Gt,g.ac=nr,g.bc=br,g.ma=y,b.xa){if((r=ni())==null){y=1;break t}if((function(C,Y){var $=[0],ut=[0],Q=[0];e:for(;;){if(C==null)return 0;if(Y==null)return C.a=2,0;if(C.l=Y,C.a=0,ct(C.m,Y.data,Y.w,Y.ha),!wr(C.m,$,ut,Q)){C.a=3;break e}if(C.xb=ml,Y.width=$[0],Y.height=ut[0],!ir($[0],ut[0],1,C,null))break e;return 1}return t(C.a!=0),0})(r,g)){if(g=(s=va(g.width,g.height,y.Oa,y.ba))==0){e:{g=r;n:for(;;){if(g==null){g=0;break e}if(t(g.s.yc!=null),t(g.s.Ya!=null),t(0<g.s.Wb),t((f=g.l)!=null),t((b=f.ma)!=null),g.xb!=0){if(g.ca=b.ba,g.tb=b.tb,t(g.ca!=null),!Un(b.Oa,f,ss)){g.a=2;break n}if(!ri(g,f.width)||f.da)break n;if((f.da||Yt(g.ca.S))&&Re(),11>g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&Re()),g.Pb&&0<g.s.ua&&g.s.vb.X==null&&!P(g.s.vb,g.s.Wa.Xa)){g.a=1;break n}g.xb=0}if(!Yn(g,g.V,g.Ba,g.c,g.i,f.o,Or))break n;b.Dc=g.Ma,g=1;break e}t(g.a!=0),g=0}g=!g}g&&(s=r.a)}else s=r.a}else{if((r=new Bs)==null){y=1;break t}if(r.Fa=b.na,r.P=b.P,r.qc=b.Sa,sr(r,g)){if((s=va(g.width,g.height,y.Oa,y.ba))==0){if(r.Aa=0,f=y.Oa,t((b=r)!=null),f!=null){if(0<(L=0>(L=f.Md)?0:100<L?255:255*L/100)){for(F=W=0;4>F;++F)12>(et=b.pb[F]).lc&&(et.ia=L*hh[0>et.lc?0:et.lc]>>3),W|=et.ia;W&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=f.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(C,Y){if(C==null)return 0;if(Y==null)return Ke(C,2,"NULL VP8Io parameter in VP8Decode().");if(!C.cb&&!sr(C,Y))return 0;if(t(C.cb),Y.ac==null||Y.ac(Y)){Y.ob&&(C.L=0);var $=hs[C.L];if(C.L==2?(C.yb=0,C.zb=0):(C.yb=Y.v-$>>4,C.zb=Y.j-$>>4,0>C.yb&&(C.yb=0),0>C.zb&&(C.zb=0)),C.Va=Y.o+15+$>>4,C.Hb=Y.va+15+$>>4,C.Hb>C.za&&(C.Hb=C.za),C.Va>C.Ub&&(C.Va=C.Ub),0<C.L){var ut=C.ed;for($=0;4>$;++$){var Q;if(C.Qa.Cb){var ht=C.Qa.Lb[$];C.Qa.Fb||(ht+=ut.Tb)}else ht=ut.Tb;for(Q=0;1>=Q;++Q){var pt=C.gd[$][Q],xt=ht;if(ut.Pc&&(xt+=ut.vd[0],Q&&(xt+=ut.od[0])),0<(xt=0>xt?0:63<xt?63:xt)){var bt=xt;0<ut.wb&&(bt=4<ut.wb?bt>>2:bt>>1)>9-ut.wb&&(bt=9-ut.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 Ke(C,6,"Frame setup failed"),$=C.a;if($=$==0){if($){C.$c=0,0<C.Aa||(C.Ic=ch);e:{$=C.Ic,ut=4*(bt=C.za);var Rt=32*bt,Pt=bt+1,re=0<C.L?bt*(0<C.Aa?2:1):0,Ot=(C.Aa==2?2:1)*bt;if((pt=ut+832+(Q=3*(16*$+hs[C.L])/2*Rt)+(ht=C.Fa!=null&&0<C.Fa.length?C.Kc.c*C.Kc.i:0))!=pt)$=0;else{if(pt>C.Vb){if(C.Vb=0,C.Ec=a(pt),C.Fc=0,C.Ec==null){$=Ke(C,1,"no memory during frame initialization.");break e}C.Vb=pt}pt=C.Ec,xt=C.Fc,C.Ac=pt,C.Bc=xt,xt+=ut,C.Gd=c(Rt,Ha),C.Hd=0,C.rb=c(Pt+1,sa),C.sb=1,C.wa=re?c(re,qn):null,C.Y=0,C.D.Nb=0,C.D.wa=C.wa,C.D.Y=C.Y,0<C.Aa&&(C.D.Y+=bt),t(!0),C.oc=pt,C.pc=xt,xt+=832,C.ya=c(Ot,oa),C.aa=0,C.D.ya=C.ya,C.D.aa=C.aa,C.Aa==2&&(C.D.aa+=bt),C.R=16*bt,C.B=8*bt,bt=(Rt=hs[C.L])*C.R,Rt=Rt/2*C.B,C.sa=pt,C.ta=xt+bt,C.qa=C.sa,C.ra=C.ta+16*$*C.R+Rt,C.Ha=C.qa,C.Ia=C.ra+8*$*C.B+Rt,C.$c=0,xt+=Q,C.mb=ht?pt:null,C.nb=ht?xt:null,t(xt+ht<=C.Fc+C.Vb),la(C),o(C.Ac,C.Bc,0,ut),$=1}}if($){if(Y.ka=0,Y.y=C.sa,Y.O=C.ta,Y.f=C.qa,Y.N=C.ra,Y.ea=C.Ha,Y.Vd=C.Ia,Y.fa=C.R,Y.Rc=C.B,Y.F=null,Y.J=0,!hl){for($=-255;255>=$;++$)ol[255+$]=0>$?-$:$;for($=-1020;1020>=$;++$)ll[1020+$]=-128>$?-128:127<$?127:$;for($=-112;112>=$;++$)ul[112+$]=-16>$?-16:15<$?15:$;for($=-255;510>=$;++$)fl[255+$]=0>$?0:255<$?255:$;hl=1}qr=Ya,Sr=Ms,Ki=Rs,dn=Ts,hr=or,Ur=Ga,ke=Xa,Pe=$a,He=Qa,Ze=u,kr=Za,xa=si,Xi=v,ns=I,tl=qi,el=pa,nl=Ui,rl=Ka,Kn[0]=Vs,Kn[1]=Ri,Kn[2]=Hs,Kn[3]=Ws,Kn[4]=Gs,Kn[5]=xr,Kn[6]=Ys,Kn[7]=_r,Kn[8]=Ks,Kn[9]=Js,zr[0]=Ja,zr[1]=Ds,zr[2]=qs,zr[3]=Us,zr[4]=Br,zr[5]=zs,zr[6]=ii,Pr[0]=Xs,Pr[1]=ua,Pr[2]=Ti,Pr[3]=fa,Pr[4]=$s,Pr[5]=Di,Pr[6]=ha,$=1}else $=0}$&&($=(function(ce,Qe){for(ce.M=0;ce.M<ce.Va;++ce.M){var ie,jt=ce.Jc[ce.M&ce.Xb],Nt=ce.m,We=ce;for(ie=0;ie<We.za;++ie){var ee=Nt,pe=We,Ce=pe.Ac,on=pe.Bc+4*ie,xn=pe.zc,De=pe.ya[pe.aa+ie];if(pe.Qa.Bb?De.$b=gt(ee,pe.Pa.jb[0])?2+gt(ee,pe.Pa.jb[2]):gt(ee,pe.Pa.jb[1]):De.$b=0,pe.kc&&(De.Ad=gt(ee,pe.Bd)),De.Za=!gt(ee,145)+0,De.Za){var pn=De.Ob,_n=0;for(pe=0;4>pe;++pe){var tn,me=xn[0+pe];for(tn=0;4>tn;++tn){me=$f[Ce[on+tn]][me];for(var we=gl[gt(ee,me[0])];0<we;)we=gl[2*we+gt(ee,me[we])];me=-we,Ce[on+tn]=me}i(pn,_n,Ce,on,4),_n+=4,xn[0+pe]=me}}else me=gt(ee,156)?gt(ee,128)?1:3:gt(ee,163)?2:0,De.Ob[0]=me,o(Ce,on,me,4),o(xn,0,me,4);De.Dd=gt(ee,142)?gt(ee,114)?gt(ee,183)?1:3:2:0}if(We.m.Ka)return Ke(ce,7,"Premature end-of-partition0 encountered.");for(;ce.ja<ce.za;++ce.ja){if(We=jt,ee=(Nt=ce).rb[Nt.sb-1],Ce=Nt.rb[Nt.sb+Nt.ja],ie=Nt.ya[Nt.aa+Nt.ja],on=Nt.kc?ie.Ad:0)ee.la=Ce.la=0,ie.Za||(ee.Na=Ce.Na=0),ie.Hc=0,ie.Gc=0,ie.ia=0;else{var qe,ye;if(ee=Ce,Ce=We,on=Nt.Pa.Xc,xn=Nt.ya[Nt.aa+Nt.ja],De=Nt.pb[xn.$b],pe=xn.ad,pn=0,_n=Nt.rb[Nt.sb-1],me=tn=0,o(pe,pn,0,384),xn.Za)var ln=0,Xn=on[3];else{we=a(16);var Ve=ee.Na+_n.Na;if(Ve=Aa(Ce,on[1],Ve,De.Eb,0,we,0),ee.Na=_n.Na=(0<Ve)+0,1<Ve)qr(we,0,pe,pn);else{var Ln=we[0]+3>>3;for(we=0;256>we;we+=16)pe[pn+we]=Ln}ln=1,Xn=on[0]}var Ne=15&ee.la,en=15&_n.la;for(we=0;4>we;++we){var Fn=1&en;for(Ln=ye=0;4>Ln;++Ln)Ne=Ne>>1|(Fn=(Ve=Aa(Ce,Xn,Ve=Fn+(1&Ne),De.Sc,ln,pe,pn))>ln)<<7,ye=ye<<2|(3<Ve?3:1<Ve?2:pe[pn+0]!=0),pn+=16;Ne>>=4,en=en>>1|Fn<<7,tn=(tn<<8|ye)>>>0}for(Xn=Ne,ln=en>>4,qe=0;4>qe;qe+=2){for(ye=0,Ne=ee.la>>4+qe,en=_n.la>>4+qe,we=0;2>we;++we){for(Fn=1&en,Ln=0;2>Ln;++Ln)Ve=Fn+(1&Ne),Ne=Ne>>1|(Fn=0<(Ve=Aa(Ce,on[2],Ve,De.Qc,0,pe,pn)))<<3,ye=ye<<2|(3<Ve?3:1<Ve?2:pe[pn+0]!=0),pn+=16;Ne>>=2,en=en>>1|Fn<<5}me|=ye<<4*qe,Xn|=Ne<<4<<qe,ln|=(240&en)<<qe}ee.la=Xn,_n.la=ln,xn.Hc=tn,xn.Gc=me,xn.ia=43690&me?0:De.ia,on=!(tn|me)}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[ie.$b][ie.Za],Nt.wa[Nt.Y+Nt.ja].La|=!on),We.Ka)return Ke(ce,7,"Premature end-of-file encountered.")}if(la(ce),Nt=Qe,We=1,ie=(jt=ce).D,ee=0<jt.L&&jt.M>=jt.zb&&jt.M<=jt.Va,jt.Aa==0)e:{if(ie.M=jt.M,ie.uc=ee,Wi(jt,ie),We=1,ie=(ye=jt.D).Nb,ee=(me=hs[jt.L])*jt.R,Ce=me/2*jt.B,we=16*ie*jt.R,Ln=8*ie*jt.B,on=jt.sa,xn=jt.ta-ee+we,De=jt.qa,pe=jt.ra-Ce+Ln,pn=jt.Ha,_n=jt.Ia-Ce+Ln,en=(Ne=ye.M)==0,tn=Ne>=jt.Va-1,jt.Aa==2&&Wi(jt,ye),ye.uc)for(Fn=(Ve=jt).D.M,t(Ve.D.uc),ye=Ve.yb;ye<Ve.Hb;++ye){ln=ye,Xn=Fn;var An=(Cn=(un=Ve).D).Nb;qe=un.R;var Cn=Cn.wa[Cn.Y+ln],En=un.sa,Sn=un.ta+16*An*qe+16*ln,On=Cn.dd,Ie=Cn.tc;if(Ie!=0)if(t(3<=Ie),un.L==1)0<ln&&el(En,Sn,qe,Ie+4),Cn.La&&rl(En,Sn,qe,Ie),0<Xn&&tl(En,Sn,qe,Ie+4),Cn.La&&nl(En,Sn,qe,Ie);else{var jn=un.B,$n=un.qa,bi=un.ra+8*An*jn+8*ln,Ir=un.Ha,un=un.Ia+8*An*jn+8*ln;An=Cn.ld,0<ln&&(Pe(En,Sn,qe,Ie+4,On,An),Ze($n,bi,Ir,un,jn,Ie+4,On,An)),Cn.La&&(xa(En,Sn,qe,Ie,On,An),ns($n,bi,Ir,un,jn,Ie,On,An)),0<Xn&&(ke(En,Sn,qe,Ie+4,On,An),He($n,bi,Ir,un,jn,Ie+4,On,An)),Cn.La&&(kr(En,Sn,qe,Ie,On,An),Xi($n,bi,Ir,un,jn,Ie,On,An))}}if(jt.ia&&alert("todo:DitherRow"),Nt.put!=null){if(ye=16*Ne,Ne=16*(Ne+1),en?(Nt.y=jt.sa,Nt.O=jt.ta+we,Nt.f=jt.qa,Nt.N=jt.ra+Ln,Nt.ea=jt.Ha,Nt.W=jt.Ia+Ln):(ye-=me,Nt.y=on,Nt.O=xn,Nt.f=De,Nt.N=pe,Nt.ea=pn,Nt.W=_n),tn||(Ne-=me),Ne>Nt.o&&(Ne=Nt.o),Nt.F=null,Nt.J=null,jt.Fa!=null&&0<jt.Fa.length&&ye<Ne&&(Nt.J=Xe(jt,Nt,ye,Ne-ye),Nt.F=jt.mb,Nt.F==null&&Nt.F.length==0)){We=Ke(jt,3,"Could not decode alpha data.");break e}ye<Nt.j&&(me=Nt.j-ye,ye=Nt.j,t(!(1&me)),Nt.O+=jt.R*me,Nt.N+=jt.B*(me>>1),Nt.W+=jt.B*(me>>1),Nt.F!=null&&(Nt.J+=Nt.width*me)),ye<Ne&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=ye-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=Ne-ye,We=Nt.put(Nt))}ie+1!=jt.Ic||tn||(i(jt.sa,jt.ta-ee,on,xn+16*jt.R,ee),i(jt.qa,jt.ra-Ce,De,pe+8*jt.B,Ce),i(jt.Ha,jt.Ia-Ce,pn,_n+8*jt.B,Ce))}if(!We)return Ke(ce,6,"Output aborted.")}return 1})(C,Y)),Y.bc!=null&&Y.bc(Y),$&=1}return $?(C.cb=0,$):0})(r,g)||(s=r.a)}}else s=r.a}s==0&&y.Oa!=null&&y.Oa.fd&&(s=ci(y.ba))}y=s}w=y!=0?null:11>w?A.f.RGBA.eb:A.f.kb.y}else w=null;return w};var Al=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(R,tt){for(var N="",E=0;E<4;E++)N+=String.fromCharCode(R[tt++]);return N}function m(R,tt){return R[tt+0]|R[tt+1]<<8}function _(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16)>>>0}function k(R,tt){return(R[tt+0]|R[tt+1]<<8|R[tt+2]<<16|R[tt+3]<<24)>>>0}new h;var p=[0],j=[0],O=[],M=new h,S=n,V=(function(R,tt){var N={},E=0,z=!1,U=0,rt=0;if(N.frames=[],!(function(x,B){for(var T=0;T<4;T++)if(x[B+T]!="RIFF".charCodeAt(T))return!0;return!1})(R,tt)){for(k(R,tt+=4),tt+=8;tt<R.length;){var ot=d(R,tt),ft=k(R,tt+=4);tt+=4;var nt=ft+(1&ft);switch(ot){case"VP8 ":case"VP8L":N.frames[E]===void 0&&(N.frames[E]={}),(wt=N.frames[E]).src_off=z?rt:tt-8,wt.src_size=U+ft+8,E++,z&&(z=!1,U=0,rt=0);break;case"VP8X":(wt=N.header={}).feature_flags=R[tt];var ct=tt+4;wt.canvas_width=1+_(R,ct),ct+=3,wt.canvas_height=1+_(R,ct),ct+=3;break;case"ALPH":z=!0,U=nt+8,rt=tt-8;break;case"ANIM":(wt=N.header).bgcolor=k(R,tt),ct=tt+4,wt.loop_count=m(R,ct),ct+=2;break;case"ANMF":var At,wt;(wt=N.frames[E]={}).offset_x=2*_(R,tt),tt+=3,wt.offset_y=2*_(R,tt),tt+=3,wt.width=1+_(R,tt),tt+=3,wt.height=1+_(R,tt),tt+=3,wt.duration=_(R,tt),tt+=3,At=R[tt++],wt.dispose=1&At,wt.blend=At>>1&1}ot!="ANMF"&&(tt+=nt)}return N}})(S,0);V.response=S,V.rgbaoutput=!0,V.dataurl=!1;var G=V.header?V.header:null,q=V.frames?V.frames:null;if(G){G.loop_counter=G.loop_count,p=[G.canvas_height],j=[G.canvas_width];for(var it=0;it<q.length&&q[it].blend!=0;it++);}var vt=q[0],dt=M.WebPDecodeRGBA(S,vt.src_off,vt.src_size,j,p);vt.rgba=dt,vt.imgwidth=j[0],vt.imgheight=p[0];for(var X=0;X<j[0]*p[0]*4;X++)O[X]=dt[X];return this.width=j,this.height=p,this.data=O,this}function Z1(){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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function Q1(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var t,e,i,o,a,c,l,h,d,m=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new h,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new c,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new c,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new _(this),t=this.internal.f2,e=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,c=this.internal.Point,l=this.internal.Rectangle,h=this.internal.Matrix,d=new m}]);var _=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var B=x;Object.defineProperty(this,"pdf",{get:function(){return B}});var T=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return T},set:function(P){T=!!P}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(P){H=!!P}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(P){isNaN(P)||(J=P)}});var Z=0;Object.defineProperty(this,"posY",{get:function(){return Z},set:function(P){isNaN(P)||(Z=P)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(P){var Lt;typeof P=="number"?Lt=[P,P,P,P]:((Lt=new Array(4))[0]=P[0],Lt[1]=P.length>=2?P[1]:Lt[0],Lt[2]=P.length>=3?P[2]:Lt[0],Lt[3]=P.length>=4?P[3]:Lt[1]),d.margin=Lt}});var at=!1;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(P){at=P}});var st=0;Object.defineProperty(this,"lastBreak",{get:function(){return st},set:function(P){st=P}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(P){gt=P}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(P){P instanceof m&&(d=P)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(P){d.path=P}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(P){_t=P}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var Lt;Lt=k(P),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(P){var Lt=k(P);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(P){["butt","round","square"].indexOf(P)!==-1&&(this.ctx.lineCap=P,this.pdf.setLineCap(P))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(P){isNaN(P)||(this.ctx.lineWidth=P,this.pdf.setLineWidth(P))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(P){["bevel","round","miter"].indexOf(P)!==-1&&(this.ctx.lineJoin=P,this.pdf.setLineJoin(P))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(P){isNaN(P)||(this.ctx.miterLimit=P,this.pdf.setMiterLimit(P))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(P){this.ctx.textBaseline=P}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(P){["right","end","center","left","start"].indexOf(P)!==-1&&(this.ctx.textAlign=P)}});var kt=null,St=null,Dt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Dt},set:function(P){kt=null,St=null,Dt=P}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(P){var Lt;if(this.ctx.font=P,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(P))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],yt=Lt[4];Lt[5];var Wt=Lt[6],Ft=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(Ft==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:Ft==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var zt=(function(Tt){var ze,ge,se=[],oe=Tt.trim();if(oe==="")return Bo;if(oe in ju)return[ju[oe]];for(;oe!=="";){switch(ge=null,ze=(oe=Mu(oe)).charAt(0)){case'"':case"'":ge=G1(oe.substring(1),ze);break;default:ge=Y1(oe)}if(ge===null||(se.push(ge[0]),(oe=Mu(ge[1]))!==""&&oe.charAt(0)!==","))return Bo;oe=oe.replace(/^,/,"")}return se})(Wt);if(this.fontFaces){var qt=(function(Tt,ze){var ge=Tt.getFontList(),se=JSON.stringify(ge);if(kt===null||St!==se){var oe=(function(Oe){var Ut=[];return Object.keys(Oe).forEach(function(Se){Oe[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})(ge);kt=(function(Oe){for(var Ut={},Se=0;Se<Oe.length;++Se){var Yt=jo(Oe[Se]),Qt=Yt.family,je=Yt.stretch,le=Yt.style,Vt=Yt.weight;Ut[Qt]=Ut[Qt]||{},Ut[Qt][je]=Ut[Qt][je]||{},Ut[Qt][je][le]=Ut[Qt][je][le]||{},Ut[Qt][je][le][Vt]=Yt}return Ut})(oe.concat(ze)),St=se}return kt})(this.pdf,this.fontFaces),ve=zt.map(function(Tt){return{family:Tt,stretch:"normal",weight:Ht,style:ae}}),ue=(function(Tt,ze,ge){for(var se=(ge=ge||{}).defaultFontFamily||"times",oe=Object.assign({},V1,ge.genericFontFamilies||{}),Oe=null,Ut=null,Se=0;Se<ze.length;++Se)if(oe[(Oe=jo(ze[Se])).family]&&(Oe.family=oe[Oe.family]),Tt.hasOwnProperty(Oe.family)){Ut=Tt[Oe.family];break}if(!(Ut=Ut||Tt[se]))throw new Error("Could not find a font-family for the rule '"+Bu(Oe)+"' and default family '"+se+"'.");if(Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];var je=Jo[Yt],le=je<=Jo.normal?-1:1,Vt=Ou(Qt,Mf,je,le);if(!Vt)throw new Error("Could not find a matching font-stretch value for "+Yt);return Vt})(Oe.stretch,Ut),Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];for(var je=Bf[Yt],le=0;le<je.length;++le)if(Qt[je[le]])return Qt[je[le]];throw new Error("Could not find a matching font-style for "+Yt)})(Oe.style,Ut),!(Ut=(function(Yt,Qt){if(Qt[Yt])return Qt[Yt];if(Yt===400&&Qt[500])return Qt[500];if(Yt===500&&Qt[400])return Qt[400];var je=W1[Yt],le=Ou(Qt,Rf,je,Yt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Yt);return le})(Oe.weight,Ut)))throw new Error("Failed to resolve a font for the rule '"+Bu(Oe)+"'.");return Ut})(qt,ve);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"},Bt=0;Bt<zt.length;Bt++){if(this.pdf.internal.getFont(zt[Bt],Zt,{noFallback:!0,disableWarning:!0})!==void 0){he=zt[Bt];break}if(Zt==="bolditalic"&&this.pdf.internal.getFont(zt[Bt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)he=zt[Bt],Zt="bold";else if(this.pdf.internal.getFont(zt[Bt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){he=zt[Bt],Zt="normal";break}}if(he===""){for(var ne=0;ne<zt.length;ne++)if(fe[zt[ne]]){he=fe[zt[ne]];break}}he=he===""?"Times":he,this.pdf.setFont(he,Zt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(P){this.ctx.globalCompositeOperation=P}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(P){this.ctx.globalAlpha=P}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(P){this.ctx.lineDashOffset=P,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(P){this.ctx.lineDash=P,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(P){this.ctx.ignoreClearRect=!!P}})};_.prototype.setLineDash=function(x){this.lineDash=x},_.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},_.prototype.fill=function(){q.call(this,"fill",!1)},_.prototype.stroke=function(){q.call(this,"stroke",!1)},_.prototype.beginPath=function(){this.path=[{type:"begin"}]},_.prototype.moveTo=function(x,B){if(isNaN(x)||isNaN(B))throw Le.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var T=this.ctx.transform.applyToPoint(new c(x,B));this.path.push({type:"mt",x:T.x,y:T.y}),this.ctx.lastPoint=new c(x,B)},_.prototype.closePath=function(){var x=new c(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&xe(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){x=new c(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(x.x,x.y)},_.prototype.lineTo=function(x,B){if(isNaN(x)||isNaN(B))throw Le.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var T=this.ctx.transform.applyToPoint(new c(x,B));this.path.push({type:"lt",x:T.x,y:T.y}),this.ctx.lastPoint=new c(T.x,T.y)},_.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),q.call(this,null,!0)},_.prototype.quadraticCurveTo=function(x,B,T,H){if(isNaN(T)||isNaN(H)||isNaN(x)||isNaN(B))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 c(T,H)),Z=this.ctx.transform.applyToPoint(new c(x,B));this.path.push({type:"qct",x1:Z.x,y1:Z.y,x:J.x,y:J.y}),this.ctx.lastPoint=new c(J.x,J.y)},_.prototype.bezierCurveTo=function(x,B,T,H,J,Z){if(isNaN(J)||isNaN(Z)||isNaN(x)||isNaN(B)||isNaN(T)||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 c(J,Z)),st=this.ctx.transform.applyToPoint(new c(x,B)),gt=this.ctx.transform.applyToPoint(new c(T,H));this.path.push({type:"bct",x1:st.x,y1:st.y,x2:gt.x,y2:gt.y,x:at.x,y:at.y}),this.ctx.lastPoint=new c(at.x,at.y)},_.prototype.arc=function(x,B,T,H,J,Z){if(isNaN(x)||isNaN(B)||isNaN(T)||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 c(x,B));x=at.x,B=at.y;var st=this.ctx.transform.applyToPoint(new c(0,T)),gt=this.ctx.transform.applyToPoint(new c(0,0));T=Math.sqrt(Math.pow(st.x-gt.x,2)+Math.pow(st.y-gt.y,2))}Math.abs(J-H)>=2*Math.PI&&(H=0,J=2*Math.PI),this.path.push({type:"arc",x,y:B,radius:T,startAngle:H,endAngle:J,counterclockwise:Z})},_.prototype.arcTo=function(x,B,T,H,J){throw new Error("arcTo not implemented.")},_.prototype.rect=function(x,B,T,H){if(isNaN(x)||isNaN(B)||isNaN(T)||isNaN(H))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,B),this.lineTo(x+T,B),this.lineTo(x+T,B+H),this.lineTo(x,B+H),this.lineTo(x,B),this.lineTo(x+T,B),this.lineTo(x,B)},_.prototype.fillRect=function(x,B,T,H){if(isNaN(x)||isNaN(B)||isNaN(T)||isNaN(H))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.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(x,B,T,H),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},_.prototype.strokeRect=function(x,B,T,H){if(isNaN(x)||isNaN(B)||isNaN(T)||isNaN(H))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");j.call(this)||(this.beginPath(),this.rect(x,B,T,H),this.stroke())},_.prototype.clearRect=function(x,B,T,H){if(isNaN(x)||isNaN(B)||isNaN(T)||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(x,B,T,H))},_.prototype.save=function(x){x=typeof x!="boolean"||x;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,T=0;T<this.pdf.internal.getNumberOfPages();T++)this.pdf.setPage(T+1),this.pdf.internal.out("q");if(this.pdf.setPage(B),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new m(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},_.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,T=0;T<this.pdf.internal.getNumberOfPages();T++)this.pdf.setPage(T+1),this.pdf.internal.out("Q");this.pdf.setPage(B),x&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},_.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var k=function(x){var B,T,H,J;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))B=0,T=0,H=0,J=0;else{var Z=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(Z!==null)B=parseInt(Z[1]),T=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(x))!==null)B=parseInt(Z[1]),T=parseInt(Z[2]),H=parseInt(Z[3]),J=parseFloat(Z[4]);else{if(J=1,typeof x=="string"&&x.charAt(0)!=="#"){var at=new Pf(x);x=at.ok?at.toHex():"#000000"}x.length===4?(B=x.substring(1,2),B+=B,T=x.substring(2,3),T+=T,H=x.substring(3,4),H+=H):(B=x.substring(1,3),T=x.substring(3,5),H=x.substring(5,7)),B=parseInt(B,16),T=parseInt(T,16),H=parseInt(H,16)}}return{r:B,g:T,b:H,a:J,style:x}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},j=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};_.prototype.fillText=function(x,B,T,H){if(isNaN(B)||isNaN(T)||typeof x!="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,!p.call(this)){var J=nt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;E.call(this,{text:x,x:B,y:T,scale:Z,angle:J,align:this.textAlign,maxWidth:H})}},_.prototype.strokeText=function(x,B,T,H){if(isNaN(B)||isNaN(T)||typeof x!="string")throw Le.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!j.call(this)){H=isNaN(H)?void 0:H;var J=nt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;E.call(this,{text:x,x:B,y:T,scale:Z,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:H})}},_.prototype.measureText=function(x){if(typeof x!="string")throw Le.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,T=this.pdf.internal.scaleFactor,H=B.internal.getFontSize(),J=B.getStringUnitWidth(x)*H/B.internal.scaleFactor;return new function(Z){var at=(Z=Z||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:J*=Math.round(96*T/72*1e4)/1e4})},_.prototype.scale=function(x,B){if(isNaN(x)||isNaN(B))throw Le.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var T=new h(x,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(T)},_.prototype.rotate=function(x){if(isNaN(x))throw Le.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new h(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(B)},_.prototype.translate=function(x,B){if(isNaN(x)||isNaN(B))throw Le.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var T=new h(1,0,0,1,x,B);this.ctx.transform=this.ctx.transform.multiply(T)},_.prototype.transform=function(x,B,T,H,J,Z){if(isNaN(x)||isNaN(B)||isNaN(T)||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 h(x,B,T,H,J,Z);this.ctx.transform=this.ctx.transform.multiply(at)},_.prototype.setTransform=function(x,B,T,H,J,Z){x=isNaN(x)?1:x,B=isNaN(B)?0:B,T=isNaN(T)?0:T,H=isNaN(H)?1:H,J=isNaN(J)?0:J,Z=isNaN(Z)?0:Z,this.ctx.transform=new h(x,B,T,H,J,Z)};var O=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};_.prototype.drawImage=function(x,B,T,H,J,Z,at,st,gt){var _t=this.pdf.getImageProperties(x),kt=1,St=1,Dt=1,P=1;H!==void 0&&st!==void 0&&(Dt=st/H,P=gt/J,kt=_t.width/H*st/H,St=_t.height/J*gt/J),Z===void 0&&(Z=B,at=T,B=0,T=0),H!==void 0&&st===void 0&&(st=H,gt=J),H===void 0&&st===void 0&&(st=_t.width,gt=_t.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new h,yt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(Z-B*Dt,at-T*P,H*kt,J*St));if(this.autoPaging){for(var Wt,Ft=M.call(this,yt),zt=[],qt=0;qt<Ft.length;qt+=1)zt.indexOf(Ft[qt])===-1&&zt.push(Ft[qt]);G(zt);for(var ve=zt[0],ue=zt[zt.length-1],Zt=ve;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],Bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Tt=Zt===1?0:Bt+(Zt-2)*ne;if(this.ctx.clip_path.length!==0){var ze=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=V(Wt,this.posX+this.margin[3],-Tt+fe+this.ctx.prevPageLastElemOffset),it.call(this,"fill",!0),this.path=ze}var ge=JSON.parse(JSON.stringify(yt));ge=V([ge],this.posX+this.margin[3],-Tt+fe+this.ctx.prevPageLastElemOffset)[0];var se=(Zt>ve||Zt<ue)&&O.call(this);se&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],he,ne,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",ge.x,ge.y,ge.w,ge.h,null,null,ae),se&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(x,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,ae)};var M=function(x,B,T){var H=[];B=B||this.pdf.internal.pageSize.width,T=T||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":H.push(Math.floor((x.y+J)/T)+1);break;case"arc":H.push(Math.floor((x.y+J-x.radius)/T)+1),H.push(Math.floor((x.y+J+x.radius)/T)+1);break;case"qct":var Z=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);H.push(Math.floor((Z.y+J)/T)+1),H.push(Math.floor((Z.y+Z.h+J)/T)+1);break;case"bct":var at=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);H.push(Math.floor((at.y+J)/T)+1),H.push(Math.floor((at.y+at.h+J)/T)+1);break;case"rect":H.push(Math.floor((x.y+J)/T)+1),H.push(Math.floor((x.y+x.h+J)/T)+1)}for(var st=0;st<H.length;st+=1)for(;this.pdf.internal.getNumberOfPages()<H[st];)S.call(this);return H},S=function(){var x=this.fillStyle,B=this.strokeStyle,T=this.font,H=this.lineCap,J=this.lineWidth,Z=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=B,this.font=T,this.lineCap=H,this.lineWidth=J,this.lineJoin=Z},V=function(x,B,T){for(var H=0;H<x.length;H++)switch(x[H].type){case"bct":x[H].x2+=B,x[H].y2+=T;case"qct":x[H].x1+=B,x[H].y1+=T;default:x[H].x+=B,x[H].y+=T}return x},G=function(x){return x.sort(function(B,T){return B-T})},q=function(x,B){var T=this.fillStyle,H=this.strokeStyle,J=this.lineCap,Z=this.lineWidth,at=Math.abs(Z*this.ctx.transform.scaleX),st=this.lineJoin;if(this.autoPaging){for(var gt,_t,kt=JSON.parse(JSON.stringify(this.path)),St=JSON.parse(JSON.stringify(this.path)),Dt=[],P=0;P<St.length;P++)if(St[P].x!==void 0)for(var Lt=M.call(this,St[P]),ae=0;ae<Lt.length;ae+=1)Dt.indexOf(Lt[ae])===-1&&Dt.push(Lt[ae]);for(var Ht=0;Ht<Dt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<Dt[Ht];)S.call(this);G(Dt);for(var yt=Dt[0],Wt=Dt[Dt.length-1],Ft=yt;Ft<Wt+1;Ft++){this.pdf.setPage(Ft),this.fillStyle=T,this.strokeStyle=H,this.lineCap=J,this.lineWidth=at,this.lineJoin=st;var zt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=Ft===1?this.posY+this.margin[0]:this.margin[0],ve=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=Ft===1?0:ve+(Ft-2)*ue;if(this.ctx.clip_path.length!==0){var he=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=V(gt,this.posX+this.margin[3],-Zt+qt+this.ctx.prevPageLastElemOffset),it.call(this,x,!0),this.path=he}if(_t=JSON.parse(JSON.stringify(kt)),this.path=V(_t,this.posX+this.margin[3],-Zt+qt+this.ctx.prevPageLastElemOffset),B===!1||Ft===0){var fe=(Ft>yt||Ft<Wt)&&O.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],zt,ue,null).clip().discardPath()),it.call(this,x,B),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=Z}this.path=kt}else this.lineWidth=at,it.call(this,x,B),this.lineWidth=Z},it=function(x,B){if((x!=="stroke"||B||!j.call(this))&&(x==="stroke"||B||!p.call(this))){for(var T,H,J=[],Z=this.path,at=0;at<Z.length;at++){var st=Z[at];switch(st.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:st,deltas:[],abs:[]});break;case"lt":var gt=J.length;if(Z[at-1]&&!isNaN(Z[at-1].x)&&(T=[st.x-Z[at-1].x,st.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(T),J[gt-1].abs.push(st);break}}break;case"bct":T=[st.x1-Z[at-1].x,st.y1-Z[at-1].y,st.x2-Z[at-1].x,st.y2-Z[at-1].y,st.x-Z[at-1].x,st.y-Z[at-1].y],J[J.length-1].deltas.push(T);break;case"qct":var _t=Z[at-1].x+2/3*(st.x1-Z[at-1].x),kt=Z[at-1].y+2/3*(st.y1-Z[at-1].y),St=st.x+2/3*(st.x1-st.x),Dt=st.y+2/3*(st.y1-st.y),P=st.x,Lt=st.y;T=[_t-Z[at-1].x,kt-Z[at-1].y,St-Z[at-1].x,Dt-Z[at-1].y,P-Z[at-1].x,Lt-Z[at-1].y],J[J.length-1].deltas.push(T);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(st)}}H=B?null:x==="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 Ft=yt[Wt];Ft.type==="arc"?X.call(this,Ft.x,Ft.y,Ft.radius,Ft.startAngle,Ft.endAngle,Ft.counterclockwise,void 0,B,!ae):z.call(this,Ft.x,Ft.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),B&&tt.call(this)}},vt=function(x){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,T=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-T;case"top":return x+B-T;case"hanging":return x+B-2*T;case"middle":return x+B/2-T;default:return x}},dt=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};_.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(B,T){this.colorStops.push([B,T])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},_.prototype.createPattern=function(){return this.createLinearGradient()},_.prototype.createRadialGradient=function(){return this.createLinearGradient()};var X=function(x,B,T,H,J,Z,at,st,gt){for(var _t=ot.call(this,T,H,J,Z),kt=0;kt<_t.length;kt++){var St=_t[kt];kt===0&&(gt?N.call(this,St.x1+x,St.y1+B):z.call(this,St.x1+x,St.y1+B)),rt.call(this,x,B,St.x2,St.y2,St.x3,St.y3,St.x4,St.y4)}st?tt.call(this):R.call(this,at)},R=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},tt=function(){this.pdf.clip(),this.pdf.discardPath()},N=function(x,B){this.pdf.internal.out(e(x)+" "+i(B)+" m")},E=function(x){var B;switch(x.align){case"right":case"end":B="right";break;case"center":B="center";break;default:B="left"}var T,H,J,Z=this.pdf.getTextDimensions(x.text),at=vt.call(this,x.y),st=dt.call(this,at)-Z.h,gt=this.ctx.transform.applyToPoint(new c(x.x,at));if(this.autoPaging){var _t=this.ctx.transform.decompose(),kt=new h;kt=(kt=(kt=kt.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale);for(var St=this.ctx.transform.applyToRectangle(new l(x.x,at,Z.w,Z.h)),Dt=kt.applyToRectangle(new l(x.x,st,Z.w,Z.h)),P=M.call(this,Dt),Lt=[],ae=0;ae<P.length;ae+=1)Lt.indexOf(P[ae])===-1&&Lt.push(P[ae]);G(Lt);for(var Ht=Lt[0],yt=Lt[Lt.length-1],Wt=Ht;Wt<yt+1;Wt++){this.pdf.setPage(Wt);var Ft=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],ve=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)*ve;if(this.ctx.clip_path.length!==0){var fe=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=V(T,this.posX+this.margin[3],-1*he+Ft),it.call(this,"fill",!0),this.path=fe}var Bt=V([JSON.parse(JSON.stringify(Dt))],this.posX+this.margin[3],-he+Ft+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*x.scale),J=this.lineWidth,this.lineWidth=J*x.scale);var ne=this.autoPaging!=="text";if(ne||Bt.y+Bt.h<=qt){if(ne||Bt.y>=Ft&&Bt.x<=ue){var Tt=ne?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||ue-Bt.x)[0],ze=V([JSON.parse(JSON.stringify(St))],this.posX+this.margin[3],-he+Ft+this.ctx.prevPageLastElemOffset)[0],ge=ne&&(Wt>Ht||Wt<yt)&&O.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zt,ve,null).clip().discardPath()),this.pdf.text(Tt,ze.x,ze.y,{angle:x.angle,align:B,renderingMode:x.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else Bt.y<qt&&(this.ctx.prevPageLastElemOffset+=qt-Bt.y);x.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=J)}}else x.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*x.scale),J=this.lineWidth,this.lineWidth=J*x.scale),this.pdf.text(x.text,gt.x+this.posX,gt.y+this.posY,{angle:x.angle,align:B,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=J)},z=function(x,B,T,H){T=T||0,H=H||0,this.pdf.internal.out(e(x+T)+" "+i(B+H)+" l")},U=function(x,B,T){return this.pdf.lines(x,B,T,null,null)},rt=function(x,B,T,H,J,Z,at,st){this.pdf.internal.out([t(o(T+x)),t(a(H+B)),t(o(J+x)),t(a(Z+B)),t(o(at+x)),t(a(st+B)),"c"].join(" "))},ot=function(x,B,T,H){for(var J=2*Math.PI,Z=Math.PI/2;B>T;)B-=J;var at=Math.abs(T-B);at<J&&H&&(at=J-at);for(var st=[],gt=H?-1:1,_t=B;at>1e-5;){var kt=_t+gt*Math.min(at,Z);st.push(ft.call(this,x,_t,kt)),at-=Math.abs(kt-_t),_t=kt}return st},ft=function(x,B,T){var H=(T-B)/2,J=x*Math.cos(H),Z=x*Math.sin(H),at=J,st=-Z,gt=at*at+st*st,_t=gt+at*J+st*Z,kt=4/3*(Math.sqrt(2*gt*_t)-_t)/(at*Z-st*J),St=at-kt*st,Dt=st+kt*at,P=St,Lt=-Dt,ae=H+B,Ht=Math.cos(ae),yt=Math.sin(ae);return{x1:x*Math.cos(B),y1:x*Math.sin(B),x2:St*Ht-Dt*yt,y2:St*yt+Dt*Ht,x3:P*Ht-Lt*yt,y3:P*yt+Lt*Ht,x4:x*Math.cos(T),y4:x*Math.sin(T)}},nt=function(x){return 180*x/Math.PI},ct=function(x,B,T,H,J,Z){var at=x+.5*(T-x),st=B+.5*(H-B),gt=J+.5*(T-J),_t=Z+.5*(H-Z),kt=Math.min(x,J,at,gt),St=Math.max(x,J,at,gt),Dt=Math.min(B,Z,st,_t),P=Math.max(B,Z,st,_t);return new l(kt,Dt,St-kt,P-Dt)},At=function(x,B,T,H,J,Z,at,st){var gt,_t,kt,St,Dt,P,Lt,ae,Ht,yt,Wt,Ft,zt,qt,ve=T-x,ue=H-B,Zt=J-T,he=Z-H,fe=at-J,Bt=st-Z;for(_t=0;_t<41;_t++)Ht=(Lt=(kt=x+(gt=_t/40)*ve)+gt*((Dt=T+gt*Zt)-kt))+gt*(Dt+gt*(J+gt*fe-Dt)-Lt),yt=(ae=(St=B+gt*ue)+gt*((P=H+gt*he)-St))+gt*(P+gt*(Z+gt*Bt-P)-ae),_t==0?(Wt=Ht,Ft=yt,zt=Ht,qt=yt):(Wt=Math.min(Wt,Ht),Ft=Math.min(Ft,yt),zt=Math.max(zt,Ht),qt=Math.max(qt,yt));return new l(Math.round(Wt),Math.round(Ft),Math.round(zt-Wt),Math.round(qt-Ft))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,B,T=(x=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:B}));this.prevLineDash!==T&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=T)}}})(Mt.API),(function(n){var t=function(c){var l,h,d,m,_,k,p,j,O,M;for(h=[],d=0,m=(c+=l="\0\0\0\0".slice(c.length%4||4)).length;m>d;d+=4)(_=(c.charCodeAt(d)<<24)+(c.charCodeAt(d+1)<<16)+(c.charCodeAt(d+2)<<8)+c.charCodeAt(d+3))!==0?(k=(_=((_=((_=((_=(_-(M=_%85))/85)-(O=_%85))/85)-(j=_%85))/85)-(p=_%85))/85)%85,h.push(k+33,p+33,j+33,O+33,M+33)):h.push(122);return(function(S,V){for(var G=V;G>0;G--)S.pop()})(h,l.length),String.fromCharCode.apply(String,h)+"~>"},e=function(c){var l,h,d,m,_,k=String,p="length",j=255,O="charCodeAt",M="slice",S="replace";for(c[M](-2),c=c[M](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),d=[],m=0,_=(c+=l="uuuuu"[M](c[p]%5||5))[p];_>m;m+=5)h=52200625*(c[O](m)-33)+614125*(c[O](m+1)-33)+7225*(c[O](m+2)-33)+85*(c[O](m+3)-33)+(c[O](m+4)-33),d.push(j&h>>24,j&h>>16,j&h>>8,j&h);return(function(V,G){for(var q=G;q>0;q--)V.pop()})(d,l[p]),k.fromCharCode.apply(k,d)},i=function(c){return c.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(c){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((c=c.replace(/\s/g,"")).indexOf(">")!==-1&&(c=c.substr(0,c.indexOf(">"))),c.length%2&&(c+="0"),l.test(c)===!1)return"";for(var h="",d=0;d<c.length;d+=2)h+=String.fromCharCode("0x"+(c[d]+c[d+1]));return h},a=function(c){for(var l=new Uint8Array(c.length),h=c.length;h--;)l[h]=c.charCodeAt(h);return(l=Uo(l)).reduce(function(d,m){return d+String.fromCharCode(m)},"")};n.processDataByFilters=function(c,l){var h=0,d=c||"",m=[];for(typeof(l=l||[])=="string"&&(l=[l]),h=0;h<l.length;h+=1)switch(l[h]){case"ASCII85Decode":case"/ASCII85Decode":d=e(d),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=t(d),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=o(d),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=i(d),m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=a(d),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[h]+'" is not implemented')}return{data:d,reverseChain:m.reverse().join(" ")}}})(Mt.API),(function(n){n.loadFile=function(t,e,i){return(function(o,a,c){a=a!==!1,c=typeof c=="function"?c:function(){};var l=void 0;try{l=(function(h,d,m){var _=new XMLHttpRequest,k=0,p=function(j){var O=j.length,M=[],S=String.fromCharCode;for(k=0;k<O;k+=1)M.push(S(255&j.charCodeAt(k)));return M.join("")};if(_.open("GET",h,!d),_.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(_.onload=function(){_.status===200?m(p(this.responseText)):m(void 0)}),_.send(null),d&&_.status===200)return p(_.responseText)})(o,a,c)}catch{}return l})(t,e,i)},n.allowFsRead=void 0,n.loadImageFile=n.loadFile})(Mt.API),(function(n){function t(){return(Kt.html2canvas?Promise.resolve(Kt.html2canvas):mo(()=>import("./chunk-html2canvas.esm.js"),[],import.meta.url)).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(Kt.DOMPurify?Promise.resolve(Kt.DOMPurify):mo(()=>import("./chunk-purify.es.js"),[],import.meta.url)).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var i=function(l){var h=xe(l);return h==="undefined"?"undefined":h==="string"||l instanceof String?"string":h==="number"||l instanceof Number?"number":h==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":h==="object"?"object":"unknown"},o=function(l,h){var d=document.createElement(l);for(var m in h.className&&(d.className=h.className),h.innerHTML&&h.dompurify&&(d.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)d.style[m]=h.style[m];return d},a=function l(h,d){for(var m=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),_=h.firstChild;_;_=_.nextSibling)d!==!0&&_.nodeType===1&&_.nodeName==="SCRIPT"||m.appendChild(l(_,d));return h.nodeType===1&&(h.nodeName==="CANVAS"?(m.width=h.width,m.height=h.height,m.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(m.value=h.value),m.addEventListener("load",function(){m.scrollTop=h.scrollTop,m.scrollLeft=h.scrollLeft},!0)),m},c=function l(h){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),m=l.convert(Promise.resolve(),d);return(m=m.setProgress(1,l,1,[l])).set(h)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(l,h){return l.__proto__=h||c.prototype,l},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(l,h){return this.then(function(){switch(h=h||(function(d){switch(i(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),h){case"string":return this.then(e).then(function(d){return this.set({src:o("div",{innerHTML:l,dompurify:d})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},c.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},h=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},c.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(h){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,h(this.prop.container,d)}).then(function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(h){var d=this.opt.jsPDF,m=this.opt.fontFaces,_=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,k=Object.assign({async:!0,allowTaint:!0,scale:_,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 k.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;p<m.length;++p){var j=m[p],O=j.src.find(function(M){return M.format==="truetype"});O&&d.addFont(O.url,j.ref.name,j.ref.style)}return k.windowHeight=k.windowHeight||0,k.windowHeight=k.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):k.windowHeight,d.context2d.save(!0),h(this.prop.container,k)}).then(function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(l,h,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,h):this.outputPdf(l,h)},c.prototype.outputPdf=function(l,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,h)})},c.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},c.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(l){if(i(l)!=="object")return this;var h=Object.keys(l||{}).map(function(d){if(d in c.template.prop)return function(){this.prop[d]=l[d]};switch(d){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[d]=l[d]}}},this);return this.then(function(){return this.thenList(h)})},c.prototype.get=function(l,h){return this.then(function(){var d=l in c.template.prop?this.prop[l]:this.opt[l];return h?h(d):d})},c.prototype.setMargin=function(l){return this.then(function(){switch(i(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},c.prototype.setPageSize=function(l){function h(d,m){return Math.floor(d*m/72*96)}return this.then(function(){(l=l||Mt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:h(l.inner.width,l.k),height:h(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},c.prototype.setProgress=function(l,h,d,m){return l!=null&&(this.progress.val=l),h!=null&&(this.progress.state=h),d!=null&&(this.progress.n=d),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(l,h,d,m){return this.setProgress(l?this.progress.val+l:null,h||null,d?this.progress.n+d:null,m?this.progress.stack.concat(m):null)},c.prototype.then=function(l,h){var d=this;return this.thenCore(l,h,function(m,_){return d.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(k){return d.updateProgress(null,m),k}).then(m,_).then(function(k){return d.updateProgress(1),k})})},c.prototype.thenCore=function(l,h,d){d=d||Promise.prototype.then;var m=this;l&&(l=l.bind(m)),h&&(h=h.bind(m));var _=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?m:c.convert(Object.assign({},m),Promise.prototype),k=d.call(_,l,h);return c.convert(k,m.__proto__)},c.prototype.thenExternal=function(l,h){return Promise.prototype.then.call(this,l,h)},c.prototype.thenList=function(l){var h=this;return l.forEach(function(d){h=h.thenCore(d)}),h},c.prototype.catch=function(l){l&&(l=l.bind(this));var h=Promise.prototype.catch.call(this,l);return c.convert(h,this)},c.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},c.prototype.error=function(l){return this.then(function(){throw new Error(l)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,Mt.getPageSize=function(l,h,d){if(xe(l)==="object"){var m=l;l=m.orientation,h=m.unit||h,d=m.format||d}h=h||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var _,k=(""+d).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(h){case"pt":_=1;break;case"mm":_=72/25.4;break;case"cm":_=72/2.54;break;case"in":_=72;break;case"px":_=.75;break;case"pc":case"em":_=12;break;case"ex":_=6;break;default:throw"Invalid unit: "+h}var j,O=0,M=0;if(p.hasOwnProperty(k))O=p[k][1]/_,M=p[k][0]/_;else try{O=d[1],M=d[0]}catch{throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",M>O&&(j=M,M=O,O=j);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",O>M&&(j=M,M=O,O=j)}return{width:M,height:O,unit:h,k:_,orientation:l}},n.html=function(l,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(jo):null;var d=new c(h);return h.worker?d:d.from(l).doCallback()}})(Mt.API),Mt.API.addJS=function(n){var t,e,i=(function(o){for(var a="",c=0;c<o.length;c++){var l=o[c];if(l==="("||l===")"){for(var h=0,d=c-1;d>=0&&o[d]==="\\";d--)h++;a+=h%2==0?"\\"+l:l}else a+=l}return a})(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 ("+i+")"),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,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=e.outline.render().split(/\r\n/),a=0;a<o.length;a++){var c=o[a],l=i.exec(c);if(l!=null){var h=l[1];e.internal.newObjectDeferredBegin(h,!1)}e.internal.write(c)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,m=[];for(a=0;a<d;a++){var _=e.internal.newObject();m.push(_);var k=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+k.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<m.length;a++)e.internal.write("(page_"+(a+1)+")"+m[a]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 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(i,o,a){var c={title:o,options:a,children:[]};return i==null&&(i=this.root),i.children.push(c),c},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(i){i.id=e.internal.newObjectDeferred();for(var o=0;o<i.children.length;o++)this.genIds_r(i.children[o])},e.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},e.outline.renderItems=function(i){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<i.children.length;a++){var c=i.children[a];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(i)),a>0&&this.line("/Prev "+this.makeRef(i.children[a-1])),a<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[a+1])),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1])));var l=this.count=this.count_r({count:0},c);if(l>0&&this.line("/Count "+l),c.options&&c.options.pageNumber){var h=e.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+h.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var d=0;d<i.children.length;d++)this.renderItems(i.children[d])},e.outline.line=function(i){this.ctx.val+=i+`\r
43
+ `},e.outline.makeRef=function(i){return i.id+" 0 R"},e.outline.makeString=function(i){return"("+e.internal.pdfEscape(i)+")"},e.outline.objStart=function(i){this.ctx.val+=`\r
44
+ `+i.id+` 0 obj\r
44
45
  <<\r
45
- `},r.outline.objEnd=function(){this.ctx.val+=`>> \r
46
+ `},e.outline.objEnd=function(){this.ctx.val+=`>> \r
46
47
  endobj\r
47
- `},r.outline.count_r=function(a,u){for(var o=0;o<u.children.length;o++)a.count++,this.count_r(a,u.children[o]);return a.count}}])})(Rt.API),(function(n){var e=[192,193,194,195,196,197,198,199];n.processJPEG=function(r,a,u,o,c,h){var f,g=this.decode.DCT_DECODE,y=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=c||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(f=(function(w){for(var S,p=256*w.charCodeAt(4)+w.charCodeAt(5),O=w.length,F={width:0,height:0,numcomponents:1},q=4;q<O;q+=2){if(q+=p,e.indexOf(w.charCodeAt(q+1))!==-1){S=256*w.charCodeAt(q+5)+w.charCodeAt(q+6),F={width:256*w.charCodeAt(q+7)+w.charCodeAt(q+8),height:S,numcomponents:w.charCodeAt(q+9)};break}p=256*w.charCodeAt(q+2)+w.charCodeAt(q+3)}return F})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:h=this.color_spaces.DEVICE_GRAY;break;case 4:h=this.color_spaces.DEVICE_CMYK;break;case 3:h=this.color_spaces.DEVICE_RGB}y={data:r,width:f.width,height:f.height,colorSpace:h,bitsPerComponent:8,filter:g,index:a,alias:u}}return y}})(Rt.API);var Ci,fo,vu,bu,yu,uc=(function(){var n,e,r;function a(o){var c,h,f,g,y,w,S,p,O,F,q,_,B,Y;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},w=null;;){switch(c=this.readUInt32(),O=(function(){var ot,lt;for(lt=[],ot=0;ot<4;++ot)lt.push(String.fromCharCode(this.data[this.pos++]));return lt}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(c);break;case"fcTL":w&&this.animation.frames.push(w),this.pos+=4,w={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},y=this.readUInt16(),g=this.readUInt16()||100,w.delay=1e3*y/g,w.disposeOp=this.data[this.pos++],w.blendOp=this.data[this.pos++],w.data=[];break;case"IDAT":case"fdAT":for(O==="fdAT"&&(this.pos+=4,c-=4),o=w?.data||this.imgData,_=0;0<=c?_<c:_>c;0<=c?++_:--_)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(f=this.palette.length/3,this.transparency.indexed=this.read(c),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((F=f-this.transparency.indexed.length)>0)for(B=0;0<=F?B<F:B>F;0<=F?++B:--B)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(c)[0];break;case 2:this.transparency.rgb=this.read(c)}break;case"tEXt":S=(q=this.read(c)).indexOf(0),p=String.fromCharCode.apply(String,q.slice(0,S)),this.text[p]=String.fromCharCode.apply(String,q.slice(S+1));break;case"IEND":return w&&this.animation.frames.push(w),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(Y=this.colorType)===4||Y===6,h=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*h,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=c}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(o){var c,h;for(h=[],c=0;0<=o?c<o:c>o;0<=o?++c:--c)h.push(this.data[this.pos++]);return h},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(o){var c=this.pixelBitlength/8,h=new Uint8Array(this.width*this.height*c),f=0,g=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function y(w,S,p,O){var F,q,_,B,Y,ot,lt,wt,tt,z,nt,dt,P,k,W,D,st,it,ct,$,ht,pt=Math.ceil((g.width-w)/p),It=Math.ceil((g.height-S)/O),N=g.width==pt&&g.height==It;for(k=c*pt,dt=N?h:new Uint8Array(k*It),ot=o.length,P=0,q=0;P<It&&f<ot;){switch(o[f++]){case 0:for(B=st=0;st<k;B=st+=1)dt[q++]=o[f++];break;case 1:for(B=it=0;it<k;B=it+=1)F=o[f++],Y=B<c?0:dt[q-c],dt[q++]=(F+Y)%256;break;case 2:for(B=ct=0;ct<k;B=ct+=1)F=o[f++],_=(B-B%c)/c,W=P&&dt[(P-1)*k+_*c+B%c],dt[q++]=(W+F)%256;break;case 3:for(B=$=0;$<k;B=$+=1)F=o[f++],_=(B-B%c)/c,Y=B<c?0:dt[q-c],W=P&&dt[(P-1)*k+_*c+B%c],dt[q++]=(F+Math.floor((Y+W)/2))%256;break;case 4:for(B=ht=0;ht<k;B=ht+=1)F=o[f++],_=(B-B%c)/c,Y=B<c?0:dt[q-c],P===0?W=D=0:(W=dt[(P-1)*k+_*c+B%c],D=_&&dt[(P-1)*k+(_-1)*c+B%c]),lt=Y+W-D,wt=Math.abs(lt-Y),z=Math.abs(lt-W),nt=Math.abs(lt-D),tt=wt<=z&&wt<=nt?Y:z<=nt?W:D,dt[q++]=(F+tt)%256;break;default:throw new Error("Invalid filter algorithm: "+o[f-1])}if(!N){var C=((S+P*O)*g.width+w)*c,M=P*k;for(B=0;B<pt;B+=1){for(var R=0;R<c;R+=1)h[C++]=dt[M++];C+=(p-1)*c}}P++}}return o=Tl(o),g.interlaceMethod==1?(y(0,0,8,8),y(4,0,8,8),y(0,4,4,8),y(2,0,4,4),y(0,2,2,4),y(1,0,2,2),y(0,1,1,2)):y(0,0,1,1),h},a.prototype.decodePalette=function(){var o,c,h,f,g,y,w,S,p;for(h=this.palette,y=this.transparency.indexed||[],g=new Uint8Array((y.length||0)+h.length),f=0,o=0,c=w=0,S=h.length;w<S;c=w+=3)g[f++]=h[c],g[f++]=h[c+1],g[f++]=h[c+2],g[f++]=(p=y[o++])!=null?p:255;return g},a.prototype.copyToImageData=function(o,c){var h,f,g,y,w,S,p,O,F,q,_;if(f=this.colors,F=null,h=this.hasAlphaChannel,this.palette.length&&(F=(_=this._decodedPalette)!=null?_:this._decodedPalette=this.decodePalette(),f=4,h=!0),O=(g=o.data||o).length,w=F||c,y=S=0,f===1)for(;y<O;)p=F?4*c[y/4]:S,q=w[p++],g[y++]=q,g[y++]=q,g[y++]=q,g[y++]=h?w[p++]:255,S=p;else for(;y<O;)p=F?4*c[y/4]:S,g[y++]=w[p++],g[y++]=w[p++],g[y++]=w[p++],g[y++]=h?w[p++]:255,S=p},a.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var u=function(){if(Object.prototype.toString.call(Ht)==="[object Window]"){try{e=Ht.document.createElement("canvas"),r=e.getContext("2d")}catch{return!1}return!0}return!1};return u(),n=function(o){var c;if(u()===!0)return r.width=o.width,r.height=o.height,r.clearRect(0,0,o.width,o.height),r.putImageData(o,0,0),(c=new Image).src=e.toDataURL(),c;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(o){var c,h,f,g,y,w,S,p;if(this.animation){for(p=[],h=y=0,w=(S=this.animation.frames).length;y<w;h=++y)c=S[h],f=o.createImageData(c.width,c.height),g=this.decodePixels(new Uint8Array(c.data)),this.copyToImageData(f,g),c.imageData=f,p.push(c.image=n(f));return p}},a.prototype.renderFrame=function(o,c){var h,f,g;return h=(f=this.animation.frames)[c],g=f[c-1],c===0&&o.clearRect(0,0,this.width,this.height),g?.disposeOp===1?o.clearRect(g.xOffset,g.yOffset,g.width,g.height):g?.disposeOp===2&&o.putImageData(g.imageData,g.xOffset,g.yOffset),h.blendOp===0&&o.clearRect(h.xOffset,h.yOffset,h.width,h.height),o.drawImage(h.image,h.xOffset,h.yOffset)},a.prototype.animate=function(o){var c,h,f,g,y,w,S=this;return h=0,w=this.animation,g=w.numFrames,f=w.frames,y=w.numPlays,(c=function(){var p,O;if(p=h++%g,O=f[p],S.renderFrame(o,p),g>1&&h/g<y)return S.animation._timeout=setTimeout(c,O.delay)})()},a.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},a.prototype.render=function(o){var c,h;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,c=o.getContext("2d"),this.animation?(this.decodeFrames(c),this.animate(c)):(h=c.createImageData(this.width,this.height),this.copyToImageData(h,this.decodePixels()),c.putImageData(h,0,0))},a})();function lc(n){var e=0;if(n[e++]!==71||n[e++]!==73||n[e++]!==70||n[e++]!==56||(n[e++]+1&253)!=56||n[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=n[e++]|n[e++]<<8,a=n[e++]|n[e++]<<8,u=n[e++],o=u>>7,c=1<<(7&u)+1;n[e++],n[e++];var h=null,f=null;o&&(h=e,f=c,e+=3*c);var g=!0,y=[],w=0,S=null,p=0,O=null;for(this.width=r,this.height=a;g&&e<n.length;)switch(n[e++]){case 33:switch(n[e++]){case 255:if(n[e]!==11||n[e+1]==78&&n[e+2]==69&&n[e+3]==84&&n[e+4]==83&&n[e+5]==67&&n[e+6]==65&&n[e+7]==80&&n[e+8]==69&&n[e+9]==50&&n[e+10]==46&&n[e+11]==48&&n[e+12]==3&&n[e+13]==1&&n[e+16]==0)e+=14,O=n[e++]|n[e++]<<8,e++;else for(e+=12;;){if(!((P=n[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;case 249:if(n[e++]!==4||n[e+4]!==0)throw new Error("Invalid graphics extension block.");var F=n[e++];w=n[e++]|n[e++]<<8,S=n[e++],(1&F)==0&&(S=null),p=F>>2&7,e++;break;case 254:for(;;){if(!((P=n[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+n[e-1].toString(16))}break;case 44:var q=n[e++]|n[e++]<<8,_=n[e++]|n[e++]<<8,B=n[e++]|n[e++]<<8,Y=n[e++]|n[e++]<<8,ot=n[e++],lt=ot>>6&1,wt=1<<(7&ot)+1,tt=h,z=f,nt=!1;ot>>7&&(nt=!0,tt=e,z=wt,e+=3*wt);var dt=e;for(e++;;){var P;if(!((P=n[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}y.push({x:q,y:_,width:B,height:Y,has_local_palette:nt,palette_offset:tt,palette_size:z,data_offset:dt,data_length:e-dt,transparent_index:S,interlaced:!!lt,delay:w,disposal:p});break;case 59:g=!1;break;default:throw new Error("Unknown gif block: 0x"+n[e-1].toString(16))}this.numFrames=function(){return y.length},this.loopCount=function(){return O},this.frameInfo=function(k){if(k<0||k>=y.length)throw new Error("Frame index out of range.");return y[k]},this.decodeAndBlitFrameBGRA=function(k,W){var D=this.frameInfo(k),st=D.width*D.height,it=new Uint8Array(st);wu(n,D.data_offset,it,st);var ct=D.palette_offset,$=D.transparent_index;$===null&&($=256);var ht=D.width,pt=r-ht,It=ht,N=4*(D.y*r+D.x),C=4*((D.y+D.height)*r+D.x),M=N,R=4*pt;D.interlaced===!0&&(R+=4*r*7);for(var J=8,Q=0,et=it.length;Q<et;++Q){var rt=it[Q];if(It===0&&(It=ht,(M+=R)>=C&&(R=4*pt+4*r*(J-1),M=N+(ht+pt)*(J<<1),J>>=1)),rt===$)M+=4;else{var At=n[ct+3*rt],Nt=n[ct+3*rt+1],Ft=n[ct+3*rt+2];W[M++]=Ft,W[M++]=Nt,W[M++]=At,W[M++]=255}--It}},this.decodeAndBlitFrameRGBA=function(k,W){var D=this.frameInfo(k),st=D.width*D.height,it=new Uint8Array(st);wu(n,D.data_offset,it,st);var ct=D.palette_offset,$=D.transparent_index;$===null&&($=256);var ht=D.width,pt=r-ht,It=ht,N=4*(D.y*r+D.x),C=4*((D.y+D.height)*r+D.x),M=N,R=4*pt;D.interlaced===!0&&(R+=4*r*7);for(var J=8,Q=0,et=it.length;Q<et;++Q){var rt=it[Q];if(It===0&&(It=ht,(M+=R)>=C&&(R=4*pt+4*r*(J-1),M=N+(ht+pt)*(J<<1),J>>=1)),rt===$)M+=4;else{var At=n[ct+3*rt],Nt=n[ct+3*rt+1],Ft=n[ct+3*rt+2];W[M++]=At,W[M++]=Nt,W[M++]=Ft,W[M++]=255}--It}}}function wu(n,e,r,a){for(var u=n[e++],o=1<<u,c=o+1,h=c+1,f=u+1,g=(1<<f)-1,y=0,w=0,S=0,p=n[e++],O=new Int32Array(4096),F=null;;){for(;y<16&&p!==0;)w|=n[e++]<<y,y+=8,p===1?p=n[e++]:--p;if(y<f)break;var q=w&g;if(w>>=f,y-=f,q!==o){if(q===c)break;for(var _=q<h?q:F,B=0,Y=_;Y>o;)Y=O[Y]>>8,++B;var ot=Y;if(S+B+(_!==q?1:0)>a)return void ve.log("Warning, gif stream longer than expected.");r[S++]=ot;var lt=S+=B;for(_!==q&&(r[S++]=ot),Y=_;B--;)Y=O[Y],r[--lt]=255&Y,Y>>=8;F!==null&&h<4096&&(O[h++]=F<<8|ot,h>=g+1&&f<12&&(++f,g=g<<1|1)),F=q}else h=c+1,g=(1<<(f=u+1))-1,F=null}return S!==a&&ve.log("Warning, gif stream shorter than expected."),r}function ps(n){var e,r,a,u,o,c=Math.floor,h=new Array(64),f=new Array(64),g=new Array(64),y=new Array(64),w=new Array(65535),S=new Array(65535),p=new Array(64),O=new Array(64),F=[],q=0,_=7,B=new Array(64),Y=new Array(64),ot=new Array(64),lt=new Array(256),wt=new Array(2048),tt=[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],z=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],nt=[0,1,2,3,4,5,6,7,8,9,10,11],dt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],st=[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 it(N,C){for(var M=0,R=0,J=new Array,Q=1;Q<=16;Q++){for(var et=1;et<=N[Q];et++)J[C[R]]=[],J[C[R]][0]=M,J[C[R]][1]=Q,R++,M++;M*=2}return J}function ct(N){for(var C=N[0],M=N[1]-1;M>=0;)C&1<<M&&(q|=1<<_),M--,--_<0&&(q==255?($(255),$(0)):$(q),_=7,q=0)}function $(N){F.push(N)}function ht(N){$(N>>8&255),$(255&N)}function pt(N,C,M,R,J){for(var Q,et=J[0],rt=J[240],At=(function(Lt,xt){var Ct,kt,qt,Gt,Qt,te,ie,de,Wt,ee,jt=0;for(Wt=0;Wt<8;++Wt){Ct=Lt[jt],kt=Lt[jt+1],qt=Lt[jt+2],Gt=Lt[jt+3],Qt=Lt[jt+4],te=Lt[jt+5],ie=Lt[jt+6];var Je=Ct+(de=Lt[jt+7]),oe=Ct-de,Sr=kt+ie,ge=kt-ie,Le=qt+te,zr=qt-te,ue=Gt+Qt,Mn=Gt-Qt,Ae=Je+ue,_r=Je-ue,en=Sr+Le,xe=Sr-Le;Lt[jt]=Ae+en,Lt[jt+4]=Ae-en;var Jt=.707106781*(xe+_r);Lt[jt+2]=_r+Jt,Lt[jt+6]=_r-Jt;var le=.382683433*((Ae=Mn+zr)-(xe=ge+oe)),En=.5411961*Ae+le,We=1.306562965*xe+le,Ur=.707106781*(en=zr+ge),Hr=oe+Ur,zt=oe-Ur;Lt[jt+5]=zt+En,Lt[jt+3]=zt-En,Lt[jt+1]=Hr+We,Lt[jt+7]=Hr-We,jt+=8}for(jt=0,Wt=0;Wt<8;++Wt){Ct=Lt[jt],kt=Lt[jt+8],qt=Lt[jt+16],Gt=Lt[jt+24],Qt=Lt[jt+32],te=Lt[jt+40],ie=Lt[jt+48];var Pr=Ct+(de=Lt[jt+56]),Wr=Ct-de,ir=kt+ie,De=kt-ie,Be=qt+te,hr=qt-te,ei=Gt+Qt,rn=Gt-Qt,kr=Pr+ei,Fr=Pr-ei,Ir=ir+Be,Vr=ir-Be;Lt[jt]=kr+Ir,Lt[jt+32]=kr-Ir;var vr=.707106781*(Vr+Fr);Lt[jt+16]=Fr+vr,Lt[jt+48]=Fr-vr;var Gr=.382683433*((kr=rn+hr)-(Vr=De+Wr)),qn=.5411961*kr+Gr,ri=1.306562965*Vr+Gr,ni=.707106781*(Ir=hr+De),ii=Wr+ni,ai=Wr-ni;Lt[jt+40]=ai+qn,Lt[jt+24]=ai-qn,Lt[jt+8]=ii+ri,Lt[jt+56]=ii-ri,jt++}for(Wt=0;Wt<64;++Wt)ee=Lt[Wt]*xt[Wt],p[Wt]=ee>0?ee+.5|0:ee-.5|0;return p})(N,C),Nt=0;Nt<64;++Nt)O[tt[Nt]]=At[Nt];var Ft=O[0]-M;M=O[0],Ft==0?ct(R[0]):(ct(R[S[Q=32767+Ft]]),ct(w[Q]));for(var _t=63;_t>0&&O[_t]==0;)_t--;if(_t==0)return ct(et),M;for(var Ut,ft=1;ft<=_t;){for(var E=ft;O[ft]==0&&ft<=_t;)++ft;var Kt=ft-E;if(Kt>=16){Ut=Kt>>4;for(var Et=1;Et<=Ut;++Et)ct(rt);Kt&=15}Q=32767+O[ft],ct(J[(Kt<<4)+S[Q]]),ct(w[Q]),ft++}return _t!=63&&ct(et),M}function It(N){N=Math.min(Math.max(N,1),100),o!=N&&((function(C){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],R=0;R<64;R++){var J=c((M[R]*C+50)/100);J=Math.min(Math.max(J,1),255),h[tt[R]]=J}for(var Q=[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],et=0;et<64;et++){var rt=c((Q[et]*C+50)/100);rt=Math.min(Math.max(rt,1),255),f[tt[et]]=rt}for(var At=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Nt=0,Ft=0;Ft<8;Ft++)for(var _t=0;_t<8;_t++)g[Nt]=1/(h[tt[Nt]]*At[Ft]*At[_t]*8),y[Nt]=1/(f[tt[Nt]]*At[Ft]*At[_t]*8),Nt++})(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),o=N)}this.encode=function(N,C){C&&It(C),F=new Array,q=0,_=7,ht(65496),ht(65504),ht(16),$(74),$(70),$(73),$(70),$(0),$(1),$(1),$(0),ht(1),ht(1),$(0),$(0),(function(){ht(65499),ht(132),$(0);for(var kt=0;kt<64;kt++)$(h[kt]);$(1);for(var qt=0;qt<64;qt++)$(f[qt])})(),(function(kt,qt){ht(65472),ht(17),$(8),ht(qt),ht(kt),$(3),$(1),$(17),$(0),$(2),$(17),$(1),$(3),$(17),$(1)})(N.width,N.height),(function(){ht(65476),ht(418),$(0);for(var kt=0;kt<16;kt++)$(z[kt+1]);for(var qt=0;qt<=11;qt++)$(nt[qt]);$(16);for(var Gt=0;Gt<16;Gt++)$(dt[Gt+1]);for(var Qt=0;Qt<=161;Qt++)$(P[Qt]);$(1);for(var te=0;te<16;te++)$(k[te+1]);for(var ie=0;ie<=11;ie++)$(W[ie]);$(17);for(var de=0;de<16;de++)$(D[de+1]);for(var Wt=0;Wt<=161;Wt++)$(st[Wt])})(),ht(65498),ht(12),$(3),$(1),$(0),$(2),$(17),$(3),$(17),$(0),$(63),$(0);var M=0,R=0,J=0;q=0,_=7,this.encode.displayName="_encode_";for(var Q,et,rt,At,Nt,Ft,_t,Ut,ft,E=N.data,Kt=N.width,Et=N.height,Lt=4*Kt,xt=0;xt<Et;){for(Q=0;Q<Lt;){for(Nt=Lt*xt+Q,_t=-1,Ut=0,ft=0;ft<64;ft++)Ft=Nt+(Ut=ft>>3)*Lt+(_t=4*(7&ft)),xt+Ut>=Et&&(Ft-=Lt*(xt+1+Ut-Et)),Q+_t>=Lt&&(Ft-=Q+_t-Lt+4),et=E[Ft++],rt=E[Ft++],At=E[Ft++],B[ft]=(wt[et]+wt[rt+256>>0]+wt[At+512>>0]>>16)-128,Y[ft]=(wt[et+768>>0]+wt[rt+1024>>0]+wt[At+1280>>0]>>16)-128,ot[ft]=(wt[et+1280>>0]+wt[rt+1536>>0]+wt[At+1792>>0]>>16)-128;M=pt(B,g,M,e,a),R=pt(Y,y,R,r,u),J=pt(ot,y,J,r,u),Q+=32}xt+=8}if(_>=0){var Ct=[];Ct[1]=_+1,Ct[0]=(1<<_+1)-1,ct(Ct)}return ht(65497),new Uint8Array(F)},n=n||50,(function(){for(var N=String.fromCharCode,C=0;C<256;C++)lt[C]=N(C)})(),e=it(z,nt),r=it(k,W),a=it(dt,P),u=it(D,st),(function(){for(var N=1,C=2,M=1;M<=15;M++){for(var R=N;R<C;R++)S[32767+R]=M,w[32767+R]=[],w[32767+R][1]=M,w[32767+R][0]=R;for(var J=-(C-1);J<=-N;J++)S[32767+J]=M,w[32767+J]=[],w[32767+J][1]=M,w[32767+J][0]=C-1+J;N<<=1,C<<=1}})(),(function(){for(var N=0;N<256;N++)wt[N]=19595*N,wt[N+256>>0]=38470*N,wt[N+512>>0]=7471*N+32768,wt[N+768>>0]=-11059*N,wt[N+1024>>0]=-21709*N,wt[N+1280>>0]=32768*N+8421375,wt[N+1536>>0]=-27439*N,wt[N+1792>>0]=-5329*N})(),It(n)}function qr(n,e){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Lu(n){function e(z){if(!z)throw Error("assert :P")}function r(z,nt,dt){for(var P=0;4>P;P++)if(z[nt+P]!=dt.charCodeAt(P))return!0;return!1}function a(z,nt,dt,P,k){for(var W=0;W<k;W++)z[nt+W]=dt[P+W]}function u(z,nt,dt,P){for(var k=0;k<P;k++)z[nt+k]=dt}function o(z){return new Int32Array(z)}function c(z,nt){for(var dt=[],P=0;P<z;P++)dt.push(new nt);return dt}function h(z,nt){var dt=[];return(function P(k,W,D){for(var st=D[W],it=0;it<st&&(k.push(D.length>W+1?[]:new nt),!(D.length<W+1));it++)P(k[it],W+1,D)})(dt,0,z),dt}var f=function(){var z=this;function nt(t,i){for(var l=1<<i-1>>>0;t&l;)l>>>=1;return l?(t&l-1)+l:t}function dt(t,i,l,d,m){e(!(d%l));do t[i+(d-=l)]=m;while(0<d)}function P(t,i,l,d,m){if(e(2328>=m),512>=m)var b=o(512);else if((b=o(m))==null)return 0;return(function(L,A,x,I,U,K){var Z,G,vt=A,at=1<<x,H=o(16),V=o(16);for(e(U!=0),e(I!=null),e(L!=null),e(0<x),G=0;G<U;++G){if(15<I[G])return 0;++H[I[G]]}if(H[0]==U)return 0;for(V[1]=0,Z=1;15>Z;++Z){if(H[Z]>1<<Z)return 0;V[Z+1]=V[Z]+H[Z]}for(G=0;G<U;++G)Z=I[G],0<I[G]&&(K[V[Z]++]=G);if(V[15]==1)return(I=new k).g=0,I.value=K[0],dt(L,vt,1,at,I),at;var gt,bt=-1,mt=at-1,Bt=0,St=1,Tt=1,Pt=1<<x;for(G=0,Z=1,U=2;Z<=x;++Z,U<<=1){if(St+=Tt<<=1,0>(Tt-=H[Z]))return 0;for(;0<H[Z];--H[Z])(I=new k).g=Z,I.value=K[G++],dt(L,vt+Bt,U,Pt,I),Bt=nt(Bt,Z)}for(Z=x+1,U=2;15>=Z;++Z,U<<=1){if(St+=Tt<<=1,0>(Tt-=H[Z]))return 0;for(;0<H[Z];--H[Z]){if(I=new k,(Bt&mt)!=bt){for(vt+=Pt,gt=1<<(bt=Z)-x;15>bt&&!(0>=(gt-=H[bt]));)++bt,gt<<=1;at+=Pt=1<<(gt=bt-x),L[A+(bt=Bt&mt)].g=gt+x,L[A+bt].value=vt-A-bt}I.g=Z-x,I.value=K[G++],dt(L,vt+(Bt>>x),U,Pt,I),Bt=nt(Bt,Z)}}return St!=2*V[15]-1?0:at})(t,i,l,d,m,b)}function k(){this.value=this.g=0}function W(){this.value=this.g=0}function D(){this.G=c(5,k),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(Ve,W)}function st(t,i,l,d){e(t!=null),e(i!=null),e(2147483648>d),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=i,t.pa=l,t.Jd=i,t.Yc=l+d,t.Zc=4<=d?l+d-4+1:l,Q(t)}function it(t,i){for(var l=0;0<i--;)l|=rt(t,128)<<i;return l}function ct(t,i){var l=it(t,i);return et(t)?-l:l}function $(t,i,l,d){var m,b=0;for(e(t!=null),e(i!=null),e(4294967288>d),t.Sb=d,t.Ra=0,t.u=0,t.h=0,4<d&&(d=4),m=0;m<d;++m)b+=i[l+m]<<8*m;t.Ra=b,t.bb=d,t.oa=i,t.pa=l}function ht(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<wi-8>>>0,++t.bb,t.u-=8;M(t)&&(t.h=1,t.u=0)}function pt(t,i){if(e(0<=i),!t.h&&i<=yi){var l=C(t)&bi[i];return t.u+=i,ht(t),l}return t.h=1,t.u=0}function It(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function C(t){return t.Ra>>>(t.u&wi-1)>>>0}function M(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>wi}function R(t,i){t.u=i,t.h=M(t)}function J(t){t.u>=$i&&(e(t.u>=$i),ht(t))}function Q(t){e(t!=null&&t.oa!=null),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(t!=null&&t.oa!=null),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function et(t){return it(t,1)}function rt(t,i){var l=t.Ca;0>t.b&&Q(t);var d=t.b,m=l*i>>>8,b=(t.I>>>d>m)+0;for(b?(l-=m,t.I-=m+1<<d>>>0):l=m+1,d=l,m=0;256<=d;)m+=8,d>>=8;return d=7^m+or[d],t.b-=d,t.Ca=(l<<d)-1,b}function At(t,i,l){t[i+0]=l>>24&255,t[i+1]=l>>16&255,t[i+2]=l>>8&255,t[i+3]=l>>0&255}function Nt(t,i){return t[i+0]<<0|t[i+1]<<8}function Ft(t,i){return Nt(t,i)|t[i+2]<<16}function _t(t,i){return Nt(t,i)|Nt(t,i+2)<<16}function Ut(t,i){var l=1<<i;return e(t!=null),e(0<i),t.X=o(l),t.X==null?0:(t.Mb=32-i,t.Xa=i,1)}function ft(t,i){e(t!=null),e(i!=null),e(t.Xa==i.Xa),a(i.X,0,t.X,0,1<<i.Xa)}function E(){this.X=[],this.Xa=this.Mb=0}function Kt(t,i,l,d){e(l!=null),e(d!=null);var m=l[0],b=d[0];return m==0&&(m=(t*b+i/2)/i),b==0&&(b=(i*m+t/2)/t),0>=m||0>=b?0:(l[0]=m,d[0]=b,1)}function Et(t,i){return t+(1<<i)-1>>>i}function Lt(t,i){return((4278255360&t)+(4278255360&i)>>>0&4278255360)+((16711935&t)+(16711935&i)>>>0&16711935)>>>0}function xt(t,i){z[i]=function(l,d,m,b,L,A,x){var I;for(I=0;I<L;++I){var U=z[t](A[x+I-1],m,b+I);A[x+I]=Lt(l[d+I],U)}}}function Ct(){this.ud=this.hd=this.jd=0}function kt(t,i){return((4278124286&(t^i))>>>1)+(t&i)>>>0}function qt(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function Gt(t,i){return qt(t+(t-i+.5>>1))}function Qt(t,i,l){return Math.abs(i-l)-Math.abs(t-l)}function te(t,i,l,d,m,b,L){for(d=b[L-1],l=0;l<m;++l)b[L+l]=d=Lt(t[i+l],d)}function ie(t,i,l,d,m){var b;for(b=0;b<l;++b){var L=t[i+b],A=L>>8&255,x=16711935&(x=(x=16711935&L)+((A<<16)+A));d[m+b]=(4278255360&L)+x>>>0}}function de(t,i){i.jd=t>>0&255,i.hd=t>>8&255,i.ud=t>>16&255}function Wt(t,i,l,d,m,b){var L;for(L=0;L<d;++L){var A=i[l+L],x=A>>>8,I=A,U=255&(U=(U=A>>>16)+((t.jd<<24>>24)*(x<<24>>24)>>>5));I=255&(I=(I=I+((t.hd<<24>>24)*(x<<24>>24)>>>5))+((t.ud<<24>>24)*(U<<24>>24)>>>5)),m[b+L]=(4278255360&A)+(U<<16)+I}}function ee(t,i,l,d,m){z[i]=function(b,L,A,x,I,U,K,Z,G){for(x=K;x<Z;++x)for(K=0;K<G;++K)I[U++]=m(A[d(b[L++])])},z[t]=function(b,L,A,x,I,U,K){var Z=8>>b.b,G=b.Ea,vt=b.K[0],at=b.w;if(8>Z)for(b=(1<<b.b)-1,at=(1<<Z)-1;L<A;++L){var H,V=0;for(H=0;H<G;++H)H&b||(V=d(x[I++])),U[K++]=m(vt[V&at]),V>>=Z}else z["VP8LMapColor"+l](x,I,vt,at,U,K,L,A,G)}}function jt(t,i,l,d,m){for(l=i+l;i<l;){var b=t[i++];d[m++]=b>>16&255,d[m++]=b>>8&255,d[m++]=b>>0&255}}function Je(t,i,l,d,m){for(l=i+l;i<l;){var b=t[i++];d[m++]=b>>16&255,d[m++]=b>>8&255,d[m++]=b>>0&255,d[m++]=b>>24&255}}function oe(t,i,l,d,m){for(l=i+l;i<l;){var b=(L=t[i++])>>16&240|L>>12&15,L=L>>0&240|L>>28&15;d[m++]=b,d[m++]=L}}function Sr(t,i,l,d,m){for(l=i+l;i<l;){var b=(L=t[i++])>>16&248|L>>13&7,L=L>>5&224|L>>3&31;d[m++]=b,d[m++]=L}}function ge(t,i,l,d,m){for(l=i+l;i<l;){var b=t[i++];d[m++]=b>>0&255,d[m++]=b>>8&255,d[m++]=b>>16&255}}function Le(t,i,l,d,m,b){if(b==0)for(l=i+l;i<l;)At(d,((b=t[i++])[0]>>24|b[1]>>8&65280|b[2]<<8&16711680|b[3]<<24)>>>0),m+=32;else a(d,m,t,i,l)}function zr(t,i){z[i][0]=z[t+"0"],z[i][1]=z[t+"1"],z[i][2]=z[t+"2"],z[i][3]=z[t+"3"],z[i][4]=z[t+"4"],z[i][5]=z[t+"5"],z[i][6]=z[t+"6"],z[i][7]=z[t+"7"],z[i][8]=z[t+"8"],z[i][9]=z[t+"9"],z[i][10]=z[t+"10"],z[i][11]=z[t+"11"],z[i][12]=z[t+"12"],z[i][13]=z[t+"13"],z[i][14]=z[t+"0"],z[i][15]=z[t+"0"]}function ue(t){return t==Vo||t==Go||t==Xa||t==Jo}function Mn(){this.eb=[],this.size=this.A=this.fb=0}function Ae(){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 _r(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Mn,this.f.kb=new Ae,this.sd=null}function en(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xe(){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 Jt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function le(t,i){var l=t.T,d=i.ba.f.RGBA,m=d.eb,b=d.fb+t.ka*d.A,L=Ar[i.ba.S],A=t.y,x=t.O,I=t.f,U=t.N,K=t.ea,Z=t.W,G=i.cc,vt=i.dc,at=i.Mc,H=i.Nc,V=t.ka,gt=t.ka+t.T,bt=t.U,mt=bt+1>>1;for(V==0?L(A,x,null,null,I,U,K,Z,I,U,K,Z,m,b,null,null,bt):(L(i.ec,i.fc,A,x,G,vt,at,H,I,U,K,Z,m,b-d.A,m,b,bt),++l);V+2<gt;V+=2)G=I,vt=U,at=K,H=Z,U+=t.Rc,Z+=t.Rc,b+=2*d.A,L(A,(x+=2*t.fa)-t.fa,A,x,G,vt,at,H,I,U,K,Z,m,b-d.A,m,b,bt);return x+=t.fa,t.j+gt<t.o?(a(i.ec,i.fc,A,x,bt),a(i.cc,i.dc,I,U,mt),a(i.Mc,i.Nc,K,Z,mt),l--):1&gt||L(A,x,null,null,I,U,K,Z,I,U,K,Z,m,b+d.A,null,null,bt),l}function En(t,i,l){var d=t.F,m=[t.J];if(d!=null){var b=t.U,L=i.ba.S,A=L==Ya||L==Xa;i=i.ba.f.RGBA;var x=[0],I=t.ka;x[0]=t.T,t.Kb&&(I==0?--x[0]:(--I,m[0]-=t.width),t.j+t.ka+t.T==t.o&&(x[0]=t.o-t.j-I));var U=i.eb;I=i.fb+I*i.A,t=ye(d,m[0],t.width,b,x,U,I+(A?0:3),i.A),e(l==x),t&&ue(L)&&Lr(U,I,A,b,x,i.A)}return 0}function We(t){var i=t.ma,l=i.ba.S,d=11>l,m=l==Ga||l==Ja||l==Ya||l==Wo||l==12||ue(l);if(i.memory=null,i.Ib=null,i.Jb=null,i.Nd=null,!Ki(i.Oa,t,m?11:12))return 0;if(m&&ue(l)&&yt(),t.da)alert("todo:use_scaling");else{if(d){if(i.Ib=Jt,t.Kb){if(l=t.U+1>>1,i.memory=o(t.U+2*l),i.memory==null)return 0;i.ec=i.memory,i.fc=0,i.cc=i.ec,i.dc=i.fc+t.U,i.Mc=i.cc,i.Nc=i.dc+l,i.Ib=le,yt()}}else alert("todo:EmitYUV");m&&(i.Jb=En,d&&X())}if(d&&!Ts){for(t=0;256>t;++t)ul[t]=89858*(t-128)+Za>>Ka,hl[t]=-22014*(t-128)+Za,cl[t]=-45773*(t-128),ll[t]=113618*(t-128)+Za>>Ka;for(t=aa;t<Ko;++t)i=76283*(t-16)+Za>>Ka,fl[t-aa]=fr(i,255),dl[t-aa]=fr(i+8>>4,15);Ts=1}return 1}function Ur(t){var i=t.ma,l=t.U,d=t.T;return e(!(1&t.ka)),0>=l||0>=d?0:(l=i.Ib(t,i),i.Jb!=null&&i.Jb(t,i,l),i.Dc+=l,1)}function Hr(t){t.ma.memory=null}function zt(t,i,l,d){return pt(t,8)!=47?0:(i[0]=pt(t,14)+1,l[0]=pt(t,14)+1,d[0]=pt(t,1),pt(t,3)!=0?0:!t.h)}function Pr(t,i){if(4>t)return t+1;var l=t-2>>1;return(2+(1&t)<<l)+pt(i,l)+1}function Wr(t,i){return 120<i?i-120:1<=(l=((l=Yu[i-1])>>4)*t+(8-(15&l)))?l:1;var l}function ir(t,i,l){var d=C(l),m=t[i+=255&d].g-8;return 0<m&&(R(l,l.u+8),d=C(l),i+=t[i].value,i+=d&(1<<m)-1),R(l,l.u+t[i].g),t[i].value}function De(t,i,l){return l.g+=t.g,l.value+=t.value<<i>>>0,e(8>=l.g),t.g}function Be(t,i,l){var d=t.xc;return e((i=d==0?0:t.vc[t.md*(l>>d)+(i>>d)])<t.Wb),t.Ya[i]}function hr(t,i,l,d){var m=t.ab,b=t.c*i,L=t.C;i=L+i;var A=l,x=d;for(d=t.Ta,l=t.Ua;0<m--;){var I=t.gc[m],U=L,K=i,Z=A,G=x,vt=(x=d,A=l,I.Ea);switch(e(U<K),e(K<=I.nc),I.hc){case 2:Ta(Z,G,(K-U)*vt,x,A);break;case 0:var at=U,H=K,V=x,gt=A,bt=(Pt=I).Ea;at==0&&(Uo(Z,G,null,null,1,V,gt),te(Z,G+1,0,0,bt-1,V,gt+1),G+=bt,gt+=bt,++at);for(var mt=1<<Pt.b,Bt=mt-1,St=Et(bt,Pt.b),Tt=Pt.K,Pt=Pt.w+(at>>Pt.b)*St;at<H;){var se=Tt,ce=Pt,ae=1;for(Qi(Z,G,V,gt-bt,1,V,gt);ae<bt;){var re=(ae&~Bt)+mt;re>bt&&(re=bt),(0,vn[se[ce++]>>8&15])(Z,G+ +ae,V,gt+ae-bt,re-ae,V,gt+ae),ae=re}G+=bt,gt+=bt,++at&Bt||(Pt+=St)}K!=I.nc&&a(x,A-vt,x,A+(K-U-1)*vt,vt);break;case 1:for(vt=Z,H=G,bt=(Z=I.Ea)-(gt=Z&~(V=(G=1<<I.b)-1)),at=Et(Z,I.b),mt=I.K,I=I.w+(U>>I.b)*at;U<K;){for(Bt=mt,St=I,Tt=new Ct,Pt=H+gt,se=H+Z;H<Pt;)de(Bt[St++],Tt),Un(Tt,vt,H,G,x,A),H+=G,A+=G;H<se&&(de(Bt[St++],Tt),Un(Tt,vt,H,bt,x,A),H+=bt,A+=bt),++U&V||(I+=at)}break;case 3:if(Z==x&&G==A&&0<I.b){for(H=x,Z=vt=A+(K-U)*vt-(gt=(K-U)*Et(I.Ea,I.b)),G=x,V=A,at=[],gt=(bt=gt)-1;0<=gt;--gt)at[gt]=G[V+gt];for(gt=bt-1;0<=gt;--gt)H[Z+gt]=at[gt];br(I,U,K,x,vt,x,A)}else br(I,U,K,Z,G,x,A)}A=d,x=l}x!=l&&a(d,l,A,x,b)}function ei(t,i){var l=t.V,d=t.Ba+t.c*t.C,m=i-t.C;if(e(i<=t.l.o),e(16>=m),0<m){var b=t.l,L=t.Ta,A=t.Ua,x=b.width;if(hr(t,m,l,d),m=A=[A],e((l=t.C)<(d=i)),e(b.v<b.va),d>b.o&&(d=b.o),l<b.j){var I=b.j-l;l=b.j,m[0]+=I*x}if(l>=d?l=0:(m[0]+=4*b.v,b.ka=l-b.j,b.U=b.va-b.v,b.T=d-l,l=1),l){if(A=A[0],11>(l=t.ca).S){var U=l.f.RGBA,K=(d=l.S,m=b.U,b=b.T,I=U.eb,U.A),Z=b;for(U=U.fb+t.Ma*U.A;0<Z--;){var G=L,vt=A,at=m,H=I,V=U;switch(d){case Va:sr(G,vt,at,H,V);break;case Ga:er(G,vt,at,H,V);break;case Vo:er(G,vt,at,H,V),Lr(H,V,0,at,1,0);break;case Is:sn(G,vt,at,H,V);break;case Ja:Le(G,vt,at,H,V,1);break;case Go:Le(G,vt,at,H,V,1),Lr(H,V,0,at,1,0);break;case Ya:Le(G,vt,at,H,V,0);break;case Xa:Le(G,vt,at,H,V,0),Lr(H,V,1,at,1,0);break;case Wo:bn(G,vt,at,H,V);break;case Jo:bn(G,vt,at,H,V),be(H,V,at,1,0);break;case Cs:on(G,vt,at,H,V);break;default:e(0)}A+=x,U+=K}t.Ma+=b}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=l.height)}}t.C=i,e(t.C<=t.i)}function rn(t){var i;if(0<t.ua)return 0;for(i=0;i<t.Wb;++i){var l=t.Ya[i].G,d=t.Ya[i].H;if(0<l[1][d[1]+0].g||0<l[2][d[2]+0].g||0<l[3][d[3]+0].g)return 0}return 1}function kr(t,i,l,d,m,b){if(t.Z!=0){var L=t.qd,A=t.rd;for(e(Nn[t.Z]!=null);i<l;++i)Nn[t.Z](L,A,d,m,d,m,b),L=d,A=m,m+=b;t.qd=L,t.rd=A}}function Fr(t,i){var l=t.l.ma,d=l.Z==0||l.Z==1?t.l.j:t.C;if(d=t.C<d?d:t.C,e(i<=t.l.o),i>d){var m=t.l.width,b=l.ca,L=l.tb+m*d,A=t.V,x=t.Ba+t.c*d,I=t.gc;e(t.ab==1),e(I[0].hc==3),Ra(I[0],d,i,A,x,b,L),kr(l,d,i,b,L,m)}t.C=t.Ma=i}function Ir(t,i,l,d,m,b,L){var A=t.$/d,x=t.$%d,I=t.m,U=t.s,K=l+t.$,Z=K;m=l+d*m;var G=l+d*b,vt=280+U.ua,at=t.Pb?A:16777216,H=0<U.ua?U.Wa:null,V=U.wc,gt=K<G?Be(U,x,A):null;e(t.C<b),e(G<=m);var bt=!1;t:for(;;){for(;bt||K<G;){var mt=0;if(A>=at){var Bt=K-l;e((at=t).Pb),at.wd=at.m,at.xd=Bt,0<at.s.ua&&ft(at.s.Wa,at.s.vb),at=A+Ku}if(x&V||(gt=Be(U,x,A)),e(gt!=null),gt.Qb&&(i[K]=gt.qb,bt=!0),!bt)if(J(I),gt.jc){mt=I,Bt=i;var St=K,Tt=gt.pd[C(mt)&Ve-1];e(gt.jc),256>Tt.g?(R(mt,mt.u+Tt.g),Bt[St]=Tt.value,mt=0):(R(mt,mt.u+Tt.g-256),e(256<=Tt.value),mt=Tt.value),mt==0&&(bt=!0)}else mt=ir(gt.G[0],gt.H[0],I);if(I.h)break;if(bt||256>mt){if(!bt)if(gt.nd)i[K]=(gt.qb|mt<<8)>>>0;else{if(J(I),bt=ir(gt.G[1],gt.H[1],I),J(I),Bt=ir(gt.G[2],gt.H[2],I),St=ir(gt.G[3],gt.H[3],I),I.h)break;i[K]=(St<<24|bt<<16|mt<<8|Bt)>>>0}if(bt=!1,++K,++x>=d&&(x=0,++A,L!=null&&A<=b&&!(A%16)&&L(t,A),H!=null))for(;Z<K;)mt=i[Z++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt}else if(280>mt){if(mt=Pr(mt-256,I),Bt=ir(gt.G[4],gt.H[4],I),J(I),Bt=Wr(d,Bt=Pr(Bt,I)),I.h)break;if(K-l<Bt||m-K<mt)break t;for(St=0;St<mt;++St)i[K+St]=i[K+St-Bt];for(K+=mt,x+=mt;x>=d;)x-=d,++A,L!=null&&A<=b&&!(A%16)&&L(t,A);if(e(K<=m),x&V&&(gt=Be(U,x,A)),H!=null)for(;Z<K;)mt=i[Z++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt}else{if(!(mt<vt))break t;for(bt=mt-280,e(H!=null);Z<K;)mt=i[Z++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt;mt=K,e(!(bt>>>(Bt=H).Xa)),i[mt]=Bt.X[bt],bt=!0}bt||e(I.h==M(I))}if(t.Pb&&I.h&&K<m)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&ft(t.s.vb,t.s.Wa);else{if(I.h)break t;L?.(t,A>b?b:A),t.a=0,t.$=K-l}return 1}return t.a=3,0}function Vr(t){e(t!=null),t.vc=null,t.yc=null,t.Ya=null;var i=t.Wa;i!=null&&(i.X=null),t.vb=null,e(t!=null)}function vr(){var t=new zo;return t==null?null:(t.a=0,t.xb=Bs,zr("Predictor","VP8LPredictors"),zr("Predictor","VP8LPredictors_C"),zr("PredictorAdd","VP8LPredictorsAdd"),zr("PredictorAdd","VP8LPredictorsAdd_C"),Ta=ie,Un=Wt,sr=jt,er=Je,bn=oe,on=Sr,sn=ge,z.VP8LMapColor32b=Li,z.VP8LMapColor8b=za,t)}function Gr(t,i,l,d,m){var b=1,L=[t],A=[i],x=d.m,I=d.s,U=null,K=0;t:for(;;){if(l)for(;b&&pt(x,1);){var Z=L,G=A,vt=d,at=1,H=vt.m,V=vt.gc[vt.ab],gt=pt(H,2);if(vt.Oc&1<<gt)b=0;else{switch(vt.Oc|=1<<gt,V.hc=gt,V.Ea=Z[0],V.nc=G[0],V.K=[null],++vt.ab,e(4>=vt.ab),gt){case 0:case 1:V.b=pt(H,3)+2,at=Gr(Et(V.Ea,V.b),Et(V.nc,V.b),0,vt,V.K),V.K=V.K[0];break;case 3:var bt,mt=pt(H,8)+1,Bt=16<mt?0:4<mt?1:2<mt?2:3;if(Z[0]=Et(V.Ea,Bt),V.b=Bt,bt=at=Gr(mt,1,0,vt,V.K)){var St,Tt=mt,Pt=V,se=1<<(8>>Pt.b),ce=o(se);if(ce==null)bt=0;else{var ae=Pt.K[0],re=Pt.w;for(ce[0]=Pt.K[0][0],St=1;St<1*Tt;++St)ce[St]=Lt(ae[re+St],ce[St-1]);for(;St<4*se;++St)ce[St]=0;Pt.K[0]=null,Pt.K[0]=ce,bt=1}}at=bt;break;case 2:break;default:e(0)}b=at}}if(L=L[0],A=A[0],b&&pt(x,1)&&!(b=1<=(K=pt(x,4))&&11>=K)){d.a=3;break t}var me;if(me=b)e:{var pe,$t,Ee,ur=d,qe=L,lr=A,he=K,pr=l,gr=ur.m,Ue=ur.s,Ge=[null],nr=1,xr=0,Kr=Xu[he];r:for(;;){if(pr&&pt(gr,1)){var He=pt(gr,3)+2,hn=Et(qe,He),Jn=Et(lr,He),_i=hn*Jn;if(!Gr(hn,Jn,0,ur,Ge))break r;for(Ge=Ge[0],Ue.xc=He,pe=0;pe<_i;++pe){var An=Ge[pe]>>8&65535;Ge[pe]=An,An>=nr&&(nr=An+1)}}if(gr.h)break r;for($t=0;5>$t;++$t){var _e=js[$t];!$t&&0<he&&(_e+=1<<he),xr<_e&&(xr=_e)}var Zo=c(nr*Kr,k),Us=nr,Hs=c(Us,D);if(Hs==null)var Qa=null;else e(65536>=Us),Qa=Hs;var oa=o(xr);if(Qa==null||oa==null||Zo==null){ur.a=1;break r}var to=Zo;for(pe=Ee=0;pe<nr;++pe){var Mr=Qa[pe],Pi=Mr.G,ki=Mr.H,Ws=0,eo=1,Vs=0;for($t=0;5>$t;++$t){_e=js[$t],Pi[$t]=to,ki[$t]=Ee,!$t&&0<he&&(_e+=1<<he);i:{var ro,$o=_e,no=ur,sa=oa,ml=to,vl=Ee,Qo=0,xn=no.m,bl=pt(xn,1);if(u(sa,0,0,$o),bl){var yl=pt(xn,1)+1,wl=pt(xn,1),Gs=pt(xn,wl==0?1:8);sa[Gs]=1,yl==2&&(sa[Gs=pt(xn,8)]=1);var io=1}else{var Js=o(19),Ys=pt(xn,4)+4;if(19<Ys){no.a=3;var ao=0;break i}for(ro=0;ro<Ys;++ro)Js[Ju[ro]]=pt(xn,3);var ts=void 0,ua=void 0,Xs=no,Ll=Js,oo=$o,Ks=sa,es=0,Sn=Xs.m,Zs=8,$s=c(128,k);n:for(;P($s,0,7,Ll,19);){if(pt(Sn,1)){var Nl=2+2*pt(Sn,3);if((ts=2+pt(Sn,Nl))>oo)break n}else ts=oo;for(ua=0;ua<oo&&ts--;){J(Sn);var Qs=$s[0+(127&C(Sn))];R(Sn,Sn.u+Qs.g);var Fi=Qs.value;if(16>Fi)Ks[ua++]=Fi,Fi!=0&&(Zs=Fi);else{var Al=Fi==16,tu=Fi-16,xl=Vu[tu],eu=pt(Sn,Wu[tu])+xl;if(ua+eu>oo)break n;for(var Sl=Al?Zs:0;0<eu--;)Ks[ua++]=Sl}}es=1;break n}es||(Xs.a=3),io=es}(io=io&&!xn.h)&&(Qo=P(ml,vl,8,sa,$o)),io&&Qo!=0?ao=Qo:(no.a=3,ao=0)}if(ao==0)break r;if(eo&&Gu[$t]==1&&(eo=to[Ee].g==0),Ws+=to[Ee].g,Ee+=ao,3>=$t){var la,rs=oa[0];for(la=1;la<_e;++la)oa[la]>rs&&(rs=oa[la]);Vs+=rs}}if(Mr.nd=eo,Mr.Qb=0,eo&&(Mr.qb=(Pi[3][ki[3]+0].value<<24|Pi[1][ki[1]+0].value<<16|Pi[2][ki[2]+0].value)>>>0,Ws==0&&256>Pi[0][ki[0]+0].value&&(Mr.Qb=1,Mr.qb+=Pi[0][ki[0]+0].value<<8)),Mr.jc=!Mr.Qb&&6>Vs,Mr.jc){var so,fn=Mr;for(so=0;so<Ve;++so){var _n=so,Pn=fn.pd[_n],uo=fn.G[0][fn.H[0]+_n];256<=uo.value?(Pn.g=uo.g+256,Pn.value=uo.value):(Pn.g=0,Pn.value=0,_n>>=De(uo,8,Pn),_n>>=De(fn.G[1][fn.H[1]+_n],16,Pn),_n>>=De(fn.G[2][fn.H[2]+_n],0,Pn),De(fn.G[3][fn.H[3]+_n],24,Pn))}}}Ue.vc=Ge,Ue.Wb=nr,Ue.Ya=Qa,Ue.yc=Zo,me=1;break e}me=0}if(!(b=me)){d.a=3;break t}if(0<K){if(I.ua=1<<K,!Ut(I.Wa,K)){d.a=1,b=0;break t}}else I.ua=0;var ns=d,ru=L,_l=A,is=ns.s,as=is.xc;if(ns.c=ru,ns.i=_l,is.md=Et(ru,as),is.wc=as==0?-1:(1<<as)-1,l){d.xb=nl;break t}if((U=o(L*A))==null){d.a=1,b=0;break t}b=(b=Ir(d,U,0,L,A,A,null))&&!x.h;break t}return b?(m!=null?m[0]=U:(e(U==null),e(l)),d.$=0,l||Vr(I)):Vr(I),b}function qn(t,i){var l=t.c*t.i,d=l+i+16*i;return e(t.c<=i),t.V=o(d),t.V==null?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+l+i,1)}function ri(t,i){var l=t.C,d=i-l,m=t.V,b=t.Ba+t.c*l;for(e(i<=t.l.o);0<d;){var L=16<d?16:d,A=t.l.ma,x=t.l.width,I=x*L,U=A.ca,K=A.tb+x*l,Z=t.Ta,G=t.Ua;hr(t,L,m,b),Ie(Z,G,U,K,I),kr(A,l,l+L,U,K,x),d-=L,m+=L*t.c,l+=L}e(l==i),t.C=t.Ma=i}function ni(){this.ub=this.yd=this.td=this.Rb=0}function ii(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ai(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function ya(){this.Yb=(function(){var t=[];return(function i(l,d,m){for(var b=m[d],L=0;L<b&&(l.push(m.length>d+1?[]:0),!(m.length<d+1));L++)i(l[L],d+1,m)})(t,0,[3,11]),t})()}function bo(){this.jb=o(3),this.Wc=h([4,8],ya),this.Xc=h([4,17],ya)}function yo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function oi(){this.ld=this.La=this.dd=this.tc=0}function wa(){this.Na=this.la=0}function wo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Bi(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Lo(){this.uc=this.M=this.Nb=0,this.wa=Array(new oi),this.Y=0,this.ya=Array(new Bi),this.aa=0,this.l=new si}function La(){this.y=o(16),this.f=o(8),this.ea=o(8)}function No(){this.cb=this.a=0,this.sc="",this.m=new It,this.Od=new ni,this.Kc=new ii,this.ed=new yo,this.Qa=new ai,this.Ic=this.$c=this.Aa=0,this.D=new Lo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,It),this.ia=0,this.pb=c(4,wo),this.Pa=new bo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new La),this.Hd=0,this.rb=Array(new wa),this.sb=0,this.wa=Array(new oi),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 Bi),this.L=this.aa=0,this.gd=h([4,2],oi),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 si(){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 Ao(){var t=new No;return t!=null&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ia||(ia=xa)),t}function ke(t,i,l){return t.a==0&&(t.a=i,t.sc=l,t.cb=0),0}function Na(t,i,l){return 3<=l&&t[i+0]==157&&t[i+1]==1&&t[i+2]==42}function Aa(t,i){if(t==null)return 0;if(t.a=0,t.sc="OK",i==null)return ke(t,2,"null VP8Io passed to VP8GetHeaders()");var l=i.data,d=i.w,m=i.ha;if(4>m)return ke(t,7,"Truncated header.");var b=l[d+0]|l[d+1]<<8|l[d+2]<<16,L=t.Od;if(L.Rb=!(1&b),L.td=b>>1&7,L.yd=b>>4&1,L.ub=b>>5,3<L.td)return ke(t,3,"Incorrect keyframe parameters.");if(!L.yd)return ke(t,4,"Frame not displayable.");d+=3,m-=3;var A=t.Kc;if(L.Rb){if(7>m)return ke(t,7,"cannot parse picture header");if(!Na(l,d,m))return ke(t,3,"Bad code word");A.c=16383&(l[d+4]<<8|l[d+3]),A.Td=l[d+4]>>6,A.i=16383&(l[d+6]<<8|l[d+5]),A.Ud=l[d+6]>>6,d+=7,m-=7,t.za=A.c+15>>4,t.Ub=A.i+15>>4,i.width=A.c,i.height=A.i,i.Da=0,i.j=0,i.v=0,i.va=i.width,i.o=i.height,i.da=0,i.ib=i.width,i.hb=i.height,i.U=i.width,i.T=i.height,u((b=t.Pa).jb,0,255,b.jb.length),e((b=t.Qa)!=null),b.Cb=0,b.Bb=0,b.Fb=1,u(b.Zb,0,0,b.Zb.length),u(b.Lb,0,0,b.Lb)}if(L.ub>m)return ke(t,7,"bad partition length");st(b=t.m,l,d,L.ub),d+=L.ub,m-=L.ub,L.Rb&&(A.Ld=et(b),A.Kd=et(b)),A=t.Qa;var x,I=t.Pa;if(e(b!=null),e(A!=null),A.Cb=et(b),A.Cb){if(A.Bb=et(b),et(b)){for(A.Fb=et(b),x=0;4>x;++x)A.Zb[x]=et(b)?ct(b,7):0;for(x=0;4>x;++x)A.Lb[x]=et(b)?ct(b,6):0}if(A.Bb)for(x=0;3>x;++x)I.jb[x]=et(b)?it(b,8):255}else A.Bb=0;if(b.Ka)return ke(t,3,"cannot parse segment header");if((A=t.ed).zd=et(b),A.Tb=it(b,6),A.wb=it(b,3),A.Pc=et(b),A.Pc&&et(b)){for(I=0;4>I;++I)et(b)&&(A.vd[I]=ct(b,6));for(I=0;4>I;++I)et(b)&&(A.od[I]=ct(b,6))}if(t.L=A.Tb==0?0:A.zd?1:2,b.Ka)return ke(t,3,"cannot parse filter header");var U=m;if(m=x=d,d=x+U,A=U,t.Xb=(1<<it(t.m,2))-1,U<3*(I=t.Xb))l=7;else{for(x+=3*I,A-=3*I,U=0;U<I;++U){var K=l[m+0]|l[m+1]<<8|l[m+2]<<16;K>A&&(K=A),st(t.Jc[+U],l,x,K),x+=K,A-=K,m+=3}st(t.Jc[+I],l,x,A),l=x<d?0:5}if(l!=0)return ke(t,l,"cannot parse partitions");for(l=it(x=t.m,7),m=et(x)?ct(x,4):0,d=et(x)?ct(x,4):0,A=et(x)?ct(x,4):0,I=et(x)?ct(x,4):0,x=et(x)?ct(x,4):0,U=t.Qa,K=0;4>K;++K){if(U.Cb){var Z=U.Zb[K];U.Fb||(Z+=l)}else{if(0<K){t.pb[K]=t.pb[0];continue}Z=l}var G=t.pb[K];G.Sc[0]=Yo[fr(Z+m,127)],G.Sc[1]=Xo[fr(Z+0,127)],G.Eb[0]=2*Yo[fr(Z+d,127)],G.Eb[1]=101581*Xo[fr(Z+A,127)]>>16,8>G.Eb[1]&&(G.Eb[1]=8),G.Qc[0]=Yo[fr(Z+I,117)],G.Qc[1]=Xo[fr(Z+x,127)],G.lc=Z+x}if(!L.Rb)return ke(t,4,"Not a key frame.");for(et(b),L=t.Pa,l=0;4>l;++l){for(m=0;8>m;++m)for(d=0;3>d;++d)for(A=0;11>A;++A)I=rt(b,el[l][m][d][A])?it(b,8):Qu[l][m][d][A],L.Wc[l][m].Yb[d][A]=I;for(m=0;17>m;++m)L.Xc[l][m]=L.Wc[l][rl[m]]}return t.kc=et(b),t.kc&&(t.Bd=it(b,8)),t.cb=1}function xa(t,i,l,d,m,b,L){var A=i[m].Yb[l];for(l=0;16>m;++m){if(!rt(t,A[l+0]))return m;for(;!rt(t,A[l+1]);)if(A=i[++m].Yb[0],l=0,m==16)return 16;var x=i[m+1].Yb;if(rt(t,A[l+2])){var I=t,U=0;if(rt(I,(Z=A)[(K=l)+3]))if(rt(I,Z[K+6])){for(A=0,K=2*(U=rt(I,Z[K+8]))+(Z=rt(I,Z[K+9+U])),U=0,Z=Zu[K];Z[A];++A)U+=U+rt(I,Z[A]);U+=3+(8<<K)}else rt(I,Z[K+7])?(U=7+2*rt(I,165),U+=rt(I,145)):U=5+rt(I,159);else U=rt(I,Z[K+4])?3+rt(I,Z[K+5]):2;A=x[2]}else U=1,A=x[1];x=L+$u[m],0>(I=t).b&&Q(I);var K,Z=I.b,G=(K=I.Ca>>1)-(I.I>>Z)>>31;--I.b,I.Ca+=G,I.Ca|=1,I.I-=(K+1&G)<<Z,b[x]=((U^G)-G)*d[(0<m)+0]}return 16}function Mi(t){var i=t.rb[t.sb-1];i.la=0,i.Na=0,u(t.zc,0,0,t.zc.length),t.ja=0}function xo(t,i){if(t==null)return 0;if(i==null)return ke(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Aa(t,i))return 0;if(e(t.cb),i.ac==null||i.ac(i)){i.ob&&(t.L=0);var l=$a[t.L];if(t.L==2?(t.yb=0,t.zb=0):(t.yb=i.v-l>>4,t.zb=i.j-l>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=i.o+15+l>>4,t.Hb=i.va+15+l>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var d=t.ed;for(l=0;4>l;++l){var m;if(t.Qa.Cb){var b=t.Qa.Lb[l];t.Qa.Fb||(b+=d.Tb)}else b=d.Tb;for(m=0;1>=m;++m){var L=t.gd[l][m],A=b;if(d.Pc&&(A+=d.vd[0],m&&(A+=d.od[0])),0<(A=0>A?0:63<A?63:A)){var x=A;0<d.wb&&(x=4<d.wb?x>>2:x>>1)>9-d.wb&&(x=9-d.wb),1>x&&(x=1),L.dd=x,L.tc=2*A+x,L.ld=40<=A?2:15<=A?1:0}else L.tc=0;L.La=m}}}l=0}else ke(t,6,"Frame setup failed"),l=t.a;if(l=l==0){if(l){t.$c=0,0<t.Aa||(t.Ic=gl);t:{l=t.Ic,d=4*(x=t.za);var I=32*x,U=x+1,K=0<t.L?x*(0<t.Aa?2:1):0,Z=(t.Aa==2?2:1)*x;if((L=d+832+(m=3*(16*l+$a[t.L])/2*I)+(b=t.Fa!=null&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=L)l=0;else{if(L>t.Vb){if(t.Vb=0,t.Ec=o(L),t.Fc=0,t.Ec==null){l=ke(t,1,"no memory during frame initialization.");break t}t.Vb=L}L=t.Ec,A=t.Fc,t.Ac=L,t.Bc=A,A+=d,t.Gd=c(I,La),t.Hd=0,t.rb=c(U+1,wa),t.sb=1,t.wa=K?c(K,oi):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=x),e(!0),t.oc=L,t.pc=A,A+=832,t.ya=c(Z,Bi),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,t.Aa==2&&(t.D.aa+=x),t.R=16*x,t.B=8*x,x=(I=$a[t.L])*t.R,I=I/2*t.B,t.sa=L,t.ta=A+x,t.qa=t.sa,t.ra=t.ta+16*l*t.R+I,t.Ha=t.qa,t.Ia=t.ra+8*l*t.B+I,t.$c=0,A+=m,t.mb=b?L:null,t.nb=b?A:null,e(A+b<=t.Fc+t.Vb),Mi(t),u(t.Ac,t.Bc,0,d),l=1}}if(l){if(i.ka=0,i.y=t.sa,i.O=t.ta,i.f=t.qa,i.N=t.ra,i.ea=t.Ha,i.Vd=t.Ia,i.fa=t.R,i.Rc=t.B,i.F=null,i.J=0,!Ha){for(l=-255;255>=l;++l)Te[255+l]=0>l?-l:l;for(l=-1020;1020>=l;++l)ln[1020+l]=-128>l?-128:127<l?127:l;for(l=-112;112>=l;++l)na[112+l]=-16>l?-16:15<l?15:l;for(l=-255;510>=l;++l)Si[255+l]=0>l?0:255<l?255:l;Ha=1}Ni=Po,un=So,ta=_a,rr=_o,yr=Pa,Fe=Sa,Ai=zi,Ua=Rn,ea=Ro,Hn=Ui,Wn=To,yn=di,Vn=Hi,xi=Ea,Gn=Ma,wn=Yr,ra=an,wr=Do,Br[0]=Jr,Br[1]=ko,Br[2]=jo,Br[3]=Oo,Br[4]=Ia,Br[5]=hi,Br[6]=Ca,Br[7]=Di,Br[8]=Mo,Br[9]=Bo,Ln[0]=ka,Ln[1]=Io,Ln[2]=nn,Ln[3]=li,Ln[4]=Ye,Ln[5]=Co,Ln[6]=Fa,cn[0]=pn,cn[1]=Fo,cn[2]=Eo,cn[3]=Ti,cn[4]=Tn,cn[5]=qo,cn[6]=Ri,l=1}else l=0}l&&(l=(function(G,vt){for(G.M=0;G.M<G.Va;++G.M){var at,H=G.Jc[G.M&G.Xb],V=G.m,gt=G;for(at=0;at<gt.za;++at){var bt=V,mt=gt,Bt=mt.Ac,St=mt.Bc+4*at,Tt=mt.zc,Pt=mt.ya[mt.aa+at];if(mt.Qa.Bb?Pt.$b=rt(bt,mt.Pa.jb[0])?2+rt(bt,mt.Pa.jb[2]):rt(bt,mt.Pa.jb[1]):Pt.$b=0,mt.kc&&(Pt.Ad=rt(bt,mt.Bd)),Pt.Za=!rt(bt,145)+0,Pt.Za){var se=Pt.Ob,ce=0;for(mt=0;4>mt;++mt){var ae,re=Tt[0+mt];for(ae=0;4>ae;++ae){re=tl[Bt[St+ae]][re];for(var me=Os[rt(bt,re[0])];0<me;)me=Os[2*me+rt(bt,re[me])];re=-me,Bt[St+ae]=re}a(se,ce,Bt,St,4),ce+=4,Tt[0+mt]=re}}else re=rt(bt,156)?rt(bt,128)?1:3:rt(bt,163)?2:0,Pt.Ob[0]=re,u(Bt,St,re,4),u(Tt,0,re,4);Pt.Dd=rt(bt,142)?rt(bt,114)?rt(bt,183)?1:3:2:0}if(gt.m.Ka)return ke(G,7,"Premature end-of-partition0 encountered.");for(;G.ja<G.za;++G.ja){if(gt=H,bt=(V=G).rb[V.sb-1],Bt=V.rb[V.sb+V.ja],at=V.ya[V.aa+V.ja],St=V.kc?at.Ad:0)bt.la=Bt.la=0,at.Za||(bt.Na=Bt.Na=0),at.Hc=0,at.Gc=0,at.ia=0;else{var pe,$t;if(bt=Bt,Bt=gt,St=V.Pa.Xc,Tt=V.ya[V.aa+V.ja],Pt=V.pb[Tt.$b],mt=Tt.ad,se=0,ce=V.rb[V.sb-1],re=ae=0,u(mt,se,0,384),Tt.Za)var Ee=0,ur=St[3];else{me=o(16);var qe=bt.Na+ce.Na;if(qe=ia(Bt,St[1],qe,Pt.Eb,0,me,0),bt.Na=ce.Na=(0<qe)+0,1<qe)Ni(me,0,mt,se);else{var lr=me[0]+3>>3;for(me=0;256>me;me+=16)mt[se+me]=lr}Ee=1,ur=St[0]}var he=15&bt.la,pr=15&ce.la;for(me=0;4>me;++me){var gr=1&pr;for(lr=$t=0;4>lr;++lr)he=he>>1|(gr=(qe=ia(Bt,ur,qe=gr+(1&he),Pt.Sc,Ee,mt,se))>Ee)<<7,$t=$t<<2|(3<qe?3:1<qe?2:mt[se+0]!=0),se+=16;he>>=4,pr=pr>>1|gr<<7,ae=(ae<<8|$t)>>>0}for(ur=he,Ee=pr>>4,pe=0;4>pe;pe+=2){for($t=0,he=bt.la>>4+pe,pr=ce.la>>4+pe,me=0;2>me;++me){for(gr=1&pr,lr=0;2>lr;++lr)qe=gr+(1&he),he=he>>1|(gr=0<(qe=ia(Bt,St[2],qe,Pt.Qc,0,mt,se)))<<3,$t=$t<<2|(3<qe?3:1<qe?2:mt[se+0]!=0),se+=16;he>>=2,pr=pr>>1|gr<<5}re|=$t<<4*pe,ur|=he<<4<<pe,Ee|=(240&pr)<<pe}bt.la=ur,ce.la=Ee,Tt.Hc=ae,Tt.Gc=re,Tt.ia=43690&re?0:Pt.ia,St=!(ae|re)}if(0<V.L&&(V.wa[V.Y+V.ja]=V.gd[at.$b][at.Za],V.wa[V.Y+V.ja].La|=!St),gt.Ka)return ke(G,7,"Premature end-of-file encountered.")}if(Mi(G),V=vt,gt=1,at=(H=G).D,bt=0<H.L&&H.M>=H.zb&&H.M<=H.Va,H.Aa==0)t:{if(at.M=H.M,at.uc=bt,Xi(H,at),gt=1,at=($t=H.D).Nb,bt=(re=$a[H.L])*H.R,Bt=re/2*H.B,me=16*at*H.R,lr=8*at*H.B,St=H.sa,Tt=H.ta-bt+me,Pt=H.qa,mt=H.ra-Bt+lr,se=H.Ha,ce=H.Ia-Bt+lr,pr=(he=$t.M)==0,ae=he>=H.Va-1,H.Aa==2&&Xi(H,$t),$t.uc)for(gr=(qe=H).D.M,e(qe.D.uc),$t=qe.yb;$t<qe.Hb;++$t){Ee=$t,ur=gr;var Ue=(Ge=(_e=qe).D).Nb;pe=_e.R;var Ge=Ge.wa[Ge.Y+Ee],nr=_e.sa,xr=_e.ta+16*Ue*pe+16*Ee,Kr=Ge.dd,He=Ge.tc;if(He!=0)if(e(3<=He),_e.L==1)0<Ee&&wn(nr,xr,pe,He+4),Ge.La&&wr(nr,xr,pe,He),0<ur&&Gn(nr,xr,pe,He+4),Ge.La&&ra(nr,xr,pe,He);else{var hn=_e.B,Jn=_e.qa,_i=_e.ra+8*Ue*hn+8*Ee,An=_e.Ha,_e=_e.Ia+8*Ue*hn+8*Ee;Ue=Ge.ld,0<Ee&&(Ua(nr,xr,pe,He+4,Kr,Ue),Hn(Jn,_i,An,_e,hn,He+4,Kr,Ue)),Ge.La&&(yn(nr,xr,pe,He,Kr,Ue),xi(Jn,_i,An,_e,hn,He,Kr,Ue)),0<ur&&(Ai(nr,xr,pe,He+4,Kr,Ue),ea(Jn,_i,An,_e,hn,He+4,Kr,Ue)),Ge.La&&(Wn(nr,xr,pe,He,Kr,Ue),Vn(Jn,_i,An,_e,hn,He,Kr,Ue))}}if(H.ia&&alert("todo:DitherRow"),V.put!=null){if($t=16*he,he=16*(he+1),pr?(V.y=H.sa,V.O=H.ta+me,V.f=H.qa,V.N=H.ra+lr,V.ea=H.Ha,V.W=H.Ia+lr):($t-=re,V.y=St,V.O=Tt,V.f=Pt,V.N=mt,V.ea=se,V.W=ce),ae||(he-=re),he>V.o&&(he=V.o),V.F=null,V.J=null,H.Fa!=null&&0<H.Fa.length&&$t<he&&(V.J=Ji(H,V,$t,he-$t),V.F=H.mb,V.F==null&&V.F.length==0)){gt=ke(H,3,"Could not decode alpha data.");break t}$t<V.j&&(re=V.j-$t,$t=V.j,e(!(1&re)),V.O+=H.R*re,V.N+=H.B*(re>>1),V.W+=H.B*(re>>1),V.F!=null&&(V.J+=V.width*re)),$t<he&&(V.O+=V.v,V.N+=V.v>>1,V.W+=V.v>>1,V.F!=null&&(V.J+=V.v),V.ka=$t-V.j,V.U=V.va-V.v,V.T=he-$t,gt=V.put(V))}at+1!=H.Ic||ae||(a(H.sa,H.ta-bt,St,Tt+16*H.R,bt),a(H.qa,H.ra-Bt,Pt,mt+8*H.B,Bt),a(H.Ha,H.Ia-Bt,se,ce+8*H.B,Bt))}if(!gt)return ke(G,6,"Output aborted.")}return 1})(t,i)),i.bc!=null&&i.bc(i),l&=1}return l?(t.cb=0,l):0}function Cr(t,i,l,d,m){m=t[i+l+32*d]+(m>>3),t[i+l+32*d]=-256&m?0>m?0:255:m}function ui(t,i,l,d,m,b){Cr(t,i,0,l,d+m),Cr(t,i,1,l,d+b),Cr(t,i,2,l,d-b),Cr(t,i,3,l,d-m)}function ar(t){return(20091*t>>16)+t}function Ei(t,i,l,d){var m,b=0,L=o(16);for(m=0;4>m;++m){var A=t[i+0]+t[i+8],x=t[i+0]-t[i+8],I=(35468*t[i+4]>>16)-ar(t[i+12]),U=ar(t[i+4])+(35468*t[i+12]>>16);L[b+0]=A+U,L[b+1]=x+I,L[b+2]=x-I,L[b+3]=A-U,b+=4,i++}for(m=b=0;4>m;++m)A=(t=L[b+0]+4)+L[b+8],x=t-L[b+8],I=(35468*L[b+4]>>16)-ar(L[b+12]),Cr(l,d,0,0,A+(U=ar(L[b+4])+(35468*L[b+12]>>16))),Cr(l,d,1,0,x+I),Cr(l,d,2,0,x-I),Cr(l,d,3,0,A-U),b++,d+=32}function Sa(t,i,l,d){var m=t[i+0]+4,b=35468*t[i+4]>>16,L=ar(t[i+4]),A=35468*t[i+1]>>16;ui(l,d,0,m+L,t=ar(t[i+1]),A),ui(l,d,1,m+b,t,A),ui(l,d,2,m-b,t,A),ui(l,d,3,m-L,t,A)}function So(t,i,l,d,m){Ei(t,i,l,d),m&&Ei(t,i+16,l,d+4)}function _a(t,i,l,d){un(t,i+0,l,d,1),un(t,i+32,l,d+128,1)}function _o(t,i,l,d){var m;for(t=t[i+0]+4,m=0;4>m;++m)for(i=0;4>i;++i)Cr(l,d,i,m,t)}function Pa(t,i,l,d){t[i+0]&&rr(t,i+0,l,d),t[i+16]&&rr(t,i+16,l,d+4),t[i+32]&&rr(t,i+32,l,d+128),t[i+48]&&rr(t,i+48,l,d+128+4)}function Po(t,i,l,d){var m,b=o(16);for(m=0;4>m;++m){var L=t[i+0+m]+t[i+12+m],A=t[i+4+m]+t[i+8+m],x=t[i+4+m]-t[i+8+m],I=t[i+0+m]-t[i+12+m];b[0+m]=L+A,b[8+m]=L-A,b[4+m]=I+x,b[12+m]=I-x}for(m=0;4>m;++m)L=(t=b[0+4*m]+3)+b[3+4*m],A=b[1+4*m]+b[2+4*m],x=b[1+4*m]-b[2+4*m],I=t-b[3+4*m],l[d+0]=L+A>>3,l[d+16]=I+x>>3,l[d+32]=L-A>>3,l[d+48]=I-x>>3,d+=64}function qi(t,i,l){var d,m=i-32,b=dr,L=255-t[m-1];for(d=0;d<l;++d){var A,x=b,I=L+t[i-1];for(A=0;A<l;++A)t[i+A]=x[I+t[m+A]];i+=32}}function ko(t,i){qi(t,i,4)}function Fo(t,i){qi(t,i,8)}function Io(t,i){qi(t,i,16)}function nn(t,i){var l;for(l=0;16>l;++l)a(t,i+32*l,t,i-32,16)}function li(t,i){var l;for(l=16;0<l;--l)u(t,i,t[i-1],16),i+=32}function ci(t,i,l){var d;for(d=0;16>d;++d)u(i,l+32*d,t,16)}function ka(t,i){var l,d=16;for(l=0;16>l;++l)d+=t[i-1+32*l]+t[i+l-32];ci(d>>5,t,i)}function Ye(t,i){var l,d=8;for(l=0;16>l;++l)d+=t[i-1+32*l];ci(d>>4,t,i)}function Co(t,i){var l,d=8;for(l=0;16>l;++l)d+=t[i+l-32];ci(d>>4,t,i)}function Fa(t,i){ci(128,t,i)}function Vt(t,i,l){return t+2*i+l+2>>2}function jo(t,i){var l,d=i-32;for(d=new Uint8Array([Vt(t[d-1],t[d+0],t[d+1]),Vt(t[d+0],t[d+1],t[d+2]),Vt(t[d+1],t[d+2],t[d+3]),Vt(t[d+2],t[d+3],t[d+4])]),l=0;4>l;++l)a(t,i+32*l,d,0,d.length)}function Oo(t,i){var l=t[i-1],d=t[i-1+32],m=t[i-1+64],b=t[i-1+96];At(t,i+0,16843009*Vt(t[i-1-32],l,d)),At(t,i+32,16843009*Vt(l,d,m)),At(t,i+64,16843009*Vt(d,m,b)),At(t,i+96,16843009*Vt(m,b,b))}function Jr(t,i){var l,d=4;for(l=0;4>l;++l)d+=t[i+l-32]+t[i-1+32*l];for(d>>=3,l=0;4>l;++l)u(t,i+32*l,d,4)}function Ia(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1-32],L=t[i+0-32],A=t[i+1-32],x=t[i+2-32],I=t[i+3-32];t[i+0+96]=Vt(d,m,t[i-1+96]),t[i+1+96]=t[i+0+64]=Vt(l,d,m),t[i+2+96]=t[i+1+64]=t[i+0+32]=Vt(b,l,d),t[i+3+96]=t[i+2+64]=t[i+1+32]=t[i+0+0]=Vt(L,b,l),t[i+3+64]=t[i+2+32]=t[i+1+0]=Vt(A,L,b),t[i+3+32]=t[i+2+0]=Vt(x,A,L),t[i+3+0]=Vt(I,x,A)}function Ca(t,i){var l=t[i+1-32],d=t[i+2-32],m=t[i+3-32],b=t[i+4-32],L=t[i+5-32],A=t[i+6-32],x=t[i+7-32];t[i+0+0]=Vt(t[i+0-32],l,d),t[i+1+0]=t[i+0+32]=Vt(l,d,m),t[i+2+0]=t[i+1+32]=t[i+0+64]=Vt(d,m,b),t[i+3+0]=t[i+2+32]=t[i+1+64]=t[i+0+96]=Vt(m,b,L),t[i+3+32]=t[i+2+64]=t[i+1+96]=Vt(b,L,A),t[i+3+64]=t[i+2+96]=Vt(L,A,x),t[i+3+96]=Vt(A,x,x)}function hi(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1-32],L=t[i+0-32],A=t[i+1-32],x=t[i+2-32],I=t[i+3-32];t[i+0+0]=t[i+1+64]=b+L+1>>1,t[i+1+0]=t[i+2+64]=L+A+1>>1,t[i+2+0]=t[i+3+64]=A+x+1>>1,t[i+3+0]=x+I+1>>1,t[i+0+96]=Vt(m,d,l),t[i+0+64]=Vt(d,l,b),t[i+0+32]=t[i+1+96]=Vt(l,b,L),t[i+1+32]=t[i+2+96]=Vt(b,L,A),t[i+2+32]=t[i+3+96]=Vt(L,A,x),t[i+3+32]=Vt(A,x,I)}function Di(t,i){var l=t[i+0-32],d=t[i+1-32],m=t[i+2-32],b=t[i+3-32],L=t[i+4-32],A=t[i+5-32],x=t[i+6-32],I=t[i+7-32];t[i+0+0]=l+d+1>>1,t[i+1+0]=t[i+0+64]=d+m+1>>1,t[i+2+0]=t[i+1+64]=m+b+1>>1,t[i+3+0]=t[i+2+64]=b+L+1>>1,t[i+0+32]=Vt(l,d,m),t[i+1+32]=t[i+0+96]=Vt(d,m,b),t[i+2+32]=t[i+1+96]=Vt(m,b,L),t[i+3+32]=t[i+2+96]=Vt(b,L,A),t[i+3+64]=Vt(L,A,x),t[i+3+96]=Vt(A,x,I)}function Bo(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1+96];t[i+0+0]=l+d+1>>1,t[i+2+0]=t[i+0+32]=d+m+1>>1,t[i+2+32]=t[i+0+64]=m+b+1>>1,t[i+1+0]=Vt(l,d,m),t[i+3+0]=t[i+1+32]=Vt(d,m,b),t[i+3+32]=t[i+1+64]=Vt(m,b,b),t[i+3+64]=t[i+2+64]=t[i+0+96]=t[i+1+96]=t[i+2+96]=t[i+3+96]=b}function Mo(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],b=t[i-1+96],L=t[i-1-32],A=t[i+0-32],x=t[i+1-32],I=t[i+2-32];t[i+0+0]=t[i+2+32]=l+L+1>>1,t[i+0+32]=t[i+2+64]=d+l+1>>1,t[i+0+64]=t[i+2+96]=m+d+1>>1,t[i+0+96]=b+m+1>>1,t[i+3+0]=Vt(A,x,I),t[i+2+0]=Vt(L,A,x),t[i+1+0]=t[i+3+32]=Vt(l,L,A),t[i+1+32]=t[i+3+64]=Vt(d,l,L),t[i+1+64]=t[i+3+96]=Vt(m,d,l),t[i+1+96]=Vt(b,m,d)}function Eo(t,i){var l;for(l=0;8>l;++l)a(t,i+32*l,t,i-32,8)}function Ti(t,i){var l;for(l=0;8>l;++l)u(t,i,t[i-1],8),i+=32}function Dn(t,i,l){var d;for(d=0;8>d;++d)u(i,l+32*d,t,8)}function pn(t,i){var l,d=8;for(l=0;8>l;++l)d+=t[i+l-32]+t[i-1+32*l];Dn(d>>4,t,i)}function qo(t,i){var l,d=4;for(l=0;8>l;++l)d+=t[i+l-32];Dn(d>>3,t,i)}function Tn(t,i){var l,d=4;for(l=0;8>l;++l)d+=t[i-1+32*l];Dn(d>>3,t,i)}function Ri(t,i){Dn(128,t,i)}function fi(t,i,l){var d=t[i-l],m=t[i+0],b=3*(m-d)+Ho[1020+t[i-2*l]-t[i+l]],L=Wa[112+(b+4>>3)];t[i-l]=dr[255+d+Wa[112+(b+3>>3)]],t[i+0]=dr[255+m-L]}function ja(t,i,l,d){var m=t[i+0],b=t[i+l];return Nr[255+t[i-2*l]-t[i-l]]>d||Nr[255+b-m]>d}function Oa(t,i,l,d){return 4*Nr[255+t[i-l]-t[i+0]]+Nr[255+t[i-2*l]-t[i+l]]<=d}function Ba(t,i,l,d,m){var b=t[i-3*l],L=t[i-2*l],A=t[i-l],x=t[i+0],I=t[i+l],U=t[i+2*l],K=t[i+3*l];return 4*Nr[255+A-x]+Nr[255+L-I]>d?0:Nr[255+t[i-4*l]-b]<=m&&Nr[255+b-L]<=m&&Nr[255+L-A]<=m&&Nr[255+K-U]<=m&&Nr[255+U-I]<=m&&Nr[255+I-x]<=m}function Ma(t,i,l,d){var m=2*d+1;for(d=0;16>d;++d)Oa(t,i+d,l,m)&&fi(t,i+d,l)}function Yr(t,i,l,d){var m=2*d+1;for(d=0;16>d;++d)Oa(t,i+d*l,1,m)&&fi(t,i+d*l,1)}function an(t,i,l,d){var m;for(m=3;0<m;--m)Ma(t,i+=4*l,l,d)}function Do(t,i,l,d){var m;for(m=3;0<m;--m)Yr(t,i+=4,l,d)}function gn(t,i,l,d,m,b,L,A){for(b=2*b+1;0<m--;){if(Ba(t,i,l,b,L))if(ja(t,i,l,A))fi(t,i,l);else{var x=t,I=i,U=l,K=x[I-2*U],Z=x[I-U],G=x[I+0],vt=x[I+U],at=x[I+2*U],H=27*(gt=Ho[1020+3*(G-Z)+Ho[1020+K-vt]])+63>>7,V=18*gt+63>>7,gt=9*gt+63>>7;x[I-3*U]=dr[255+x[I-3*U]+gt],x[I-2*U]=dr[255+K+V],x[I-U]=dr[255+Z+H],x[I+0]=dr[255+G-H],x[I+U]=dr[255+vt-V],x[I+2*U]=dr[255+at-gt]}i+=d}}function jr(t,i,l,d,m,b,L,A){for(b=2*b+1;0<m--;){if(Ba(t,i,l,b,L))if(ja(t,i,l,A))fi(t,i,l);else{var x=t,I=i,U=l,K=x[I-U],Z=x[I+0],G=x[I+U],vt=Wa[112+((at=3*(Z-K))+4>>3)],at=Wa[112+(at+3>>3)],H=vt+1>>1;x[I-2*U]=dr[255+x[I-2*U]+H],x[I-U]=dr[255+K+at],x[I+0]=dr[255+Z-vt],x[I+U]=dr[255+G-H]}i+=d}}function zi(t,i,l,d,m,b){gn(t,i,l,1,16,d,m,b)}function Rn(t,i,l,d,m,b){gn(t,i,1,l,16,d,m,b)}function To(t,i,l,d,m,b){var L;for(L=3;0<L;--L)jr(t,i+=4*l,l,1,16,d,m,b)}function di(t,i,l,d,m,b){var L;for(L=3;0<L;--L)jr(t,i+=4,1,l,16,d,m,b)}function Ro(t,i,l,d,m,b,L,A){gn(t,i,m,1,8,b,L,A),gn(l,d,m,1,8,b,L,A)}function Ui(t,i,l,d,m,b,L,A){gn(t,i,1,m,8,b,L,A),gn(l,d,1,m,8,b,L,A)}function Hi(t,i,l,d,m,b,L,A){jr(t,i+4*m,m,1,8,b,L,A),jr(l,d+4*m,m,1,8,b,L,A)}function Ea(t,i,l,d,m,b,L,A){jr(t,i+4,1,m,8,b,L,A),jr(l,d+4,1,m,8,b,L,A)}function pi(){this.ba=new _r,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xe,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Wi(){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 Vi(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function qa(){this.ua=0,this.Wa=new E,this.vb=new E,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new D,this.yc=new k}function zo(){this.xb=this.a=0,this.l=new si,this.ca=new _r,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new qa,this.ab=0,this.gc=c(4,Vi),this.Oc=0}function gi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new si,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function zn(t,i,l,d,m,b,L){for(t=t==null?0:t[i+0],i=0;i<L;++i)m[b+i]=t+l[d+i]&255,t=m[b+i]}function Gi(t,i,l,d,m,b,L){var A;if(t==null)zn(null,null,l,d,m,b,L);else for(A=0;A<L;++A)m[b+A]=t[i+A]+l[d+A]&255}function mn(t,i,l,d,m,b,L){if(t==null)zn(null,null,l,d,m,b,L);else{var A,x=t[i+0],I=x,U=x;for(A=0;A<L;++A)I=U+(x=t[i+A])-I,U=l[d+A]+(-256&I?0>I?0:255:I)&255,I=x,m[b+A]=U}}function Ji(t,i,l,d){var m=i.width,b=i.o;if(e(t!=null&&i!=null),0>l||0>=d||l+d>b)return null;if(!t.Cc){if(t.ga==null){var L;if(t.ga=new gi,(L=t.ga==null)||(L=i.width*i.o,e(t.Gb.length==0),t.Gb=o(L),t.Uc=0,t.Gb==null?L=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,L=1),L=!L),!L){L=t.ga;var A=t.Fa,x=t.P,I=t.qc,U=t.mb,K=t.nb,Z=x+1,G=I-1,vt=L.l;if(e(A!=null&&U!=null&&i!=null),Nn[0]=null,Nn[1]=zn,Nn[2]=Gi,Nn[3]=mn,L.ca=U,L.tb=K,L.c=i.width,L.i=i.height,e(0<L.c&&0<L.i),1>=I)i=0;else if(L.$a=A[x+0]>>0&3,L.Z=A[x+0]>>2&3,L.Lc=A[x+0]>>4&3,x=A[x+0]>>6&3,0>L.$a||1<L.$a||4<=L.Z||1<L.Lc||x)i=0;else if(vt.put=Ur,vt.ac=We,vt.bc=Hr,vt.ma=L,vt.width=i.width,vt.height=i.height,vt.Da=i.Da,vt.v=i.v,vt.va=i.va,vt.j=i.j,vt.o=i.o,L.$a)t:{e(L.$a==1),i=vr();e:for(;;){if(i==null){i=0;break t}if(e(L!=null),L.mc=i,i.c=L.c,i.i=L.i,i.l=L.l,i.l.ma=L,i.l.width=L.c,i.l.height=L.i,i.a=0,$(i.m,A,Z,G),!Gr(L.c,L.i,1,i,null)||(i.ab==1&&i.gc[0].hc==3&&rn(i.s)?(L.ic=1,A=i.c*i.i,i.Ta=null,i.Ua=0,i.V=o(A),i.Ba=0,i.V==null?(i.a=1,i=0):i=1):(L.ic=0,i=qn(i,L.c)),!i))break e;i=1;break t}L.mc=null,i=0}else i=G>=L.c*L.i;L=!i}if(L)return null;t.ga.Lc!=1?t.Ga=0:d=b-l}e(t.ga!=null),e(l+d<=b);t:{if(i=(A=t.ga).c,b=A.l.o,A.$a==0){if(Z=t.rc,G=t.Vc,vt=t.Fa,x=t.P+1+l*i,I=t.mb,U=t.nb+l*i,e(x<=t.P+t.qc),A.Z!=0)for(e(Nn[A.Z]!=null),L=0;L<d;++L)Nn[A.Z](Z,G,vt,x,I,U,i),Z=I,G=U,U+=i,x+=i;else for(L=0;L<d;++L)a(I,U,vt,x,i),Z=I,G=U,U+=i,x+=i;t.rc=Z,t.Vc=G}else{if(e(A.mc!=null),i=l+d,e((L=A.mc)!=null),e(i<=L.i),L.C>=i)i=1;else if(A.ic||X(),A.ic){A=L.V,Z=L.Ba,G=L.c;var at=L.i,H=(vt=1,x=L.$/G,I=L.$%G,U=L.m,K=L.s,L.$),V=G*at,gt=G*i,bt=K.wc,mt=H<gt?Be(K,I,x):null;e(H<=V),e(i<=at),e(rn(K));e:for(;;){for(;!U.h&&H<gt;){if(I&bt||(mt=Be(K,I,x)),e(mt!=null),J(U),256>(at=ir(mt.G[0],mt.H[0],U)))A[Z+H]=at,++H,++I>=G&&(I=0,++x<=i&&!(x%16)&&Fr(L,x));else{if(!(280>at)){vt=0;break e}at=Pr(at-256,U);var Bt,St=ir(mt.G[4],mt.H[4],U);if(J(U),!(H>=(St=Wr(G,St=Pr(St,U)))&&V-H>=at)){vt=0;break e}for(Bt=0;Bt<at;++Bt)A[Z+H+Bt]=A[Z+H+Bt-St];for(H+=at,I+=at;I>=G;)I-=G,++x<=i&&!(x%16)&&Fr(L,x);H<gt&&I&bt&&(mt=Be(K,I,x))}e(U.h==M(U))}Fr(L,x>i?i:x);break e}!vt||U.h&&H<V?(vt=0,L.a=U.h?5:3):L.$=H,i=vt}else i=Ir(L,L.V,L.Ba,L.c,L.i,i,ri);if(!i){d=0;break t}}l+d>=b&&(t.Cc=1),d=1}if(!d)return null;if(t.Cc&&((d=t.ga)!=null&&(d.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+l*m}function s(t,i,l,d,m,b){for(;0<m--;){var L,A=t,x=i+(l?1:0),I=t,U=i+(l?0:3);for(L=0;L<d;++L){var K=I[U+4*L];K!=255&&(K*=32897,A[x+4*L+0]=A[x+4*L+0]*K>>23,A[x+4*L+1]=A[x+4*L+1]*K>>23,A[x+4*L+2]=A[x+4*L+2]*K>>23)}i+=b}}function v(t,i,l,d,m){for(;0<d--;){var b;for(b=0;b<l;++b){var L=t[i+2*b+0],A=15&(I=t[i+2*b+1]),x=4369*A,I=(240&I|I>>4)*x>>16;t[i+2*b+0]=(240&L|L>>4)*x>>16&240|(15&L|L<<4)*x>>16>>4&15,t[i+2*b+1]=240&I|A}i+=m}}function j(t,i,l,d,m,b,L,A){var x,I,U=255;for(I=0;I<m;++I){for(x=0;x<d;++x){var K=t[i+x];b[L+4*x]=K,U&=K}i+=l,L+=A}return U!=255}function T(t,i,l,d,m){var b;for(b=0;b<m;++b)l[d+b]=t[i+b]>>8}function X(){Lr=s,be=v,ye=j,Ie=T}function ut(t,i,l){z[t]=function(d,m,b,L,A,x,I,U,K,Z,G,vt,at,H,V,gt,bt){var mt,Bt=bt-1>>1,St=A[x+0]|I[U+0]<<16,Tt=K[Z+0]|G[vt+0]<<16;e(d!=null);var Pt=3*St+Tt+131074>>2;for(i(d[m+0],255&Pt,Pt>>16,at,H),b!=null&&(Pt=3*Tt+St+131074>>2,i(b[L+0],255&Pt,Pt>>16,V,gt)),mt=1;mt<=Bt;++mt){var se=A[x+mt]|I[U+mt]<<16,ce=K[Z+mt]|G[vt+mt]<<16,ae=St+se+Tt+ce+524296,re=ae+2*(se+Tt)>>3;Pt=re+St>>1,St=(ae=ae+2*(St+ce)>>3)+se>>1,i(d[m+2*mt-1],255&Pt,Pt>>16,at,H+(2*mt-1)*l),i(d[m+2*mt-0],255&St,St>>16,at,H+(2*mt-0)*l),b!=null&&(Pt=ae+Tt>>1,St=re+ce>>1,i(b[L+2*mt-1],255&Pt,Pt>>16,V,gt+(2*mt-1)*l),i(b[L+2*mt+0],255&St,St>>16,V,gt+(2*mt+0)*l)),St=se,Tt=ce}1&bt||(Pt=3*St+Tt+131074>>2,i(d[m+bt-1],255&Pt,Pt>>16,at,H+(bt-1)*l),b!=null&&(Pt=3*Tt+St+131074>>2,i(b[L+bt-1],255&Pt,Pt>>16,V,gt+(bt-1)*l)))}}function yt(){Ar[Va]=il,Ar[Ga]=Ms,Ar[Is]=al,Ar[Ja]=Es,Ar[Ya]=qs,Ar[Wo]=Ds,Ar[Cs]=ol,Ar[Vo]=Ms,Ar[Go]=Es,Ar[Xa]=qs,Ar[Jo]=Ds}function Ot(t){return t&-16384?0>t?0:255:t>>sl}function Dt(t,i){return Ot((19077*t>>8)+(26149*i>>8)-14234)}function Zt(t,i,l){return Ot((19077*t>>8)-(6419*i>>8)-(13320*l>>8)+8708)}function Yt(t,i){return Ot((19077*t>>8)+(33050*i>>8)-17685)}function ne(t,i,l,d,m){d[m+0]=Dt(t,l),d[m+1]=Zt(t,i,l),d[m+2]=Yt(t,i)}function Ne(t,i,l,d,m){d[m+0]=Yt(t,i),d[m+1]=Zt(t,i,l),d[m+2]=Dt(t,l)}function Se(t,i,l,d,m){var b=Zt(t,i,l);i=b<<3&224|Yt(t,i)>>3,d[m+0]=248&Dt(t,l)|b>>5,d[m+1]=i}function Me(t,i,l,d,m){var b=240&Yt(t,i)|15;d[m+0]=240&Dt(t,l)|Zt(t,i,l)>>4,d[m+1]=b}function Xe(t,i,l,d,m){d[m+0]=255,ne(t,i,l,d,m+1)}function ze(t,i,l,d,m){Ne(t,i,l,d,m),d[m+3]=255}function Or(t,i,l,d,m){ne(t,i,l,d,m),d[m+3]=255}function fr(t,i){return 0>t?0:t>i?i:t}function Xr(t,i,l){z[t]=function(d,m,b,L,A,x,I,U,K){for(var Z=U+(-2&K)*l;U!=Z;)i(d[m+0],b[L+0],A[x+0],I,U),i(d[m+1],b[L+0],A[x+0],I,U+l),m+=2,++L,++x,U+=2*l;1&K&&i(d[m+0],b[L+0],A[x+0],I,U)}}function Da(t,i,l){return l==0?t==0?i==0?6:5:i==0?4:0:l}function Yi(t,i,l,d,m){switch(t>>>30){case 3:un(i,l,d,m,0);break;case 2:Fe(i,l,d,m);break;case 1:rr(i,l,d,m)}}function Xi(t,i){var l,d,m=i.M,b=i.Nb,L=t.oc,A=t.pc+40,x=t.oc,I=t.pc+584,U=t.oc,K=t.pc+600;for(l=0;16>l;++l)L[A+32*l-1]=129;for(l=0;8>l;++l)x[I+32*l-1]=129,U[K+32*l-1]=129;for(0<m?L[A-1-32]=x[I-1-32]=U[K-1-32]=129:(u(L,A-32-1,127,21),u(x,I-32-1,127,9),u(U,K-32-1,127,9)),d=0;d<t.za;++d){var Z=i.ya[i.aa+d];if(0<d){for(l=-1;16>l;++l)a(L,A+32*l-4,L,A+32*l+12,4);for(l=-1;8>l;++l)a(x,I+32*l-4,x,I+32*l+4,4),a(U,K+32*l-4,U,K+32*l+4,4)}var G=t.Gd,vt=t.Hd+d,at=Z.ad,H=Z.Hc;if(0<m&&(a(L,A-32,G[vt].y,0,16),a(x,I-32,G[vt].f,0,8),a(U,K-32,G[vt].ea,0,8)),Z.Za){var V=L,gt=A-32+16;for(0<m&&(d>=t.za-1?u(V,gt,G[vt].y[15],4):a(V,gt,G[vt+1].y,0,4)),l=0;4>l;l++)V[gt+128+l]=V[gt+256+l]=V[gt+384+l]=V[gt+0+l];for(l=0;16>l;++l,H<<=2)V=L,gt=A+Rs[l],Br[Z.Ob[l]](V,gt),Yi(H,at,16*+l,V,gt)}else if(V=Da(d,m,Z.Ob[0]),Ln[V](L,A),H!=0)for(l=0;16>l;++l,H<<=2)Yi(H,at,16*+l,L,A+Rs[l]);for(l=Z.Gc,V=Da(d,m,Z.Dd),cn[V](x,I),cn[V](U,K),H=at,V=x,gt=I,255&(Z=l>>0)&&(170&Z?ta(H,256,V,gt):yr(H,256,V,gt)),Z=U,H=K,255&(l>>=8)&&(170&l?ta(at,320,Z,H):yr(at,320,Z,H)),m<t.Ub-1&&(a(G[vt].y,0,L,A+480,16),a(G[vt].f,0,x,I+224,8),a(G[vt].ea,0,U,K+224,8)),l=8*b*t.B,G=t.sa,vt=t.ta+16*d+16*b*t.R,at=t.qa,Z=t.ra+8*d+l,H=t.Ha,V=t.Ia+8*d+l,l=0;16>l;++l)a(G,vt+l*t.R,L,A+32*l,16);for(l=0;8>l;++l)a(at,Z+l*t.B,x,I+32*l,8),a(H,V+l*t.B,U,K+32*l,8)}}function mi(t,i,l,d,m,b,L,A,x){var I=[0],U=[0],K=0,Z=x!=null?x.kd:0,G=x??new Wi;if(t==null||12>l)return 7;G.data=t,G.w=i,G.ha=l,i=[i],l=[l],G.gb=[G.gb];t:{var vt=i,at=l,H=G.gb;if(e(t!=null),e(at!=null),e(H!=null),H[0]=0,12<=at[0]&&!r(t,vt[0],"RIFF")){if(r(t,vt[0]+8,"WEBP")){H=3;break t}var V=_t(t,vt[0]+4);if(12>V||4294967286<V){H=3;break t}if(Z&&V>at[0]-8){H=7;break t}H[0]=V,vt[0]+=12,at[0]-=12}H=0}if(H!=0)return H;for(V=0<G.gb[0],l=l[0];;){t:{var gt=t;at=i,H=l;var bt=I,mt=U,Bt=vt=[0];if((Pt=K=[K])[0]=0,8>H[0])H=7;else{if(!r(gt,at[0],"VP8X")){if(_t(gt,at[0]+4)!=10){H=3;break t}if(18>H[0]){H=7;break t}var St=_t(gt,at[0]+8),Tt=1+Ft(gt,at[0]+12);if(2147483648<=Tt*(gt=1+Ft(gt,at[0]+15))){H=3;break t}Bt!=null&&(Bt[0]=St),bt!=null&&(bt[0]=Tt),mt!=null&&(mt[0]=gt),at[0]+=18,H[0]-=18,Pt[0]=1}H=0}}if(K=K[0],vt=vt[0],H!=0)return H;if(at=!!(2&vt),!V&&K)return 3;if(b!=null&&(b[0]=!!(16&vt)),L!=null&&(L[0]=at),A!=null&&(A[0]=0),L=I[0],vt=U[0],K&&at&&x==null){H=0;break}if(4>l){H=7;break}if(V&&K||!V&&!K&&!r(t,i[0],"ALPH")){l=[l],G.na=[G.na],G.P=[G.P],G.Sa=[G.Sa];t:{St=t,H=i,V=l;var Pt=G.gb;bt=G.na,mt=G.P,Bt=G.Sa,Tt=22,e(St!=null),e(V!=null),gt=H[0];var se=V[0];for(e(bt!=null),e(Bt!=null),bt[0]=null,mt[0]=null,Bt[0]=0;;){if(H[0]=gt,V[0]=se,8>se){H=7;break t}var ce=_t(St,gt+4);if(4294967286<ce){H=3;break t}var ae=8+ce+1&-2;if(Tt+=ae,0<Pt&&Tt>Pt){H=3;break t}if(!r(St,gt,"VP8 ")||!r(St,gt,"VP8L")){H=0;break t}if(se[0]<ae){H=7;break t}r(St,gt,"ALPH")||(bt[0]=St,mt[0]=gt+8,Bt[0]=ce),gt+=ae,se-=ae}}if(l=l[0],G.na=G.na[0],G.P=G.P[0],G.Sa=G.Sa[0],H!=0)break}l=[l],G.Ja=[G.Ja],G.xa=[G.xa];t:if(Pt=t,H=i,V=l,bt=G.gb[0],mt=G.Ja,Bt=G.xa,St=H[0],gt=!r(Pt,St,"VP8 "),Tt=!r(Pt,St,"VP8L"),e(Pt!=null),e(V!=null),e(mt!=null),e(Bt!=null),8>V[0])H=7;else{if(gt||Tt){if(Pt=_t(Pt,St+4),12<=bt&&Pt>bt-12){H=3;break t}if(Z&&Pt>V[0]-8){H=7;break t}mt[0]=Pt,H[0]+=8,V[0]-=8,Bt[0]=Tt}else Bt[0]=5<=V[0]&&Pt[St+0]==47&&!(Pt[St+4]>>5),mt[0]=V[0];H=0}if(l=l[0],G.Ja=G.Ja[0],G.xa=G.xa[0],i=i[0],H!=0)break;if(4294967286<G.Ja)return 3;if(A==null||at||(A[0]=G.xa?2:1),L=[L],vt=[vt],G.xa){if(5>l){H=7;break}A=L,Z=vt,at=b,t==null||5>l?t=0:5<=l&&t[i+0]==47&&!(t[i+4]>>5)?(V=[0],Pt=[0],bt=[0],$(mt=new N,t,i,l),zt(mt,V,Pt,bt)?(A!=null&&(A[0]=V[0]),Z!=null&&(Z[0]=Pt[0]),at!=null&&(at[0]=bt[0]),t=1):t=0):t=0}else{if(10>l){H=7;break}A=vt,t==null||10>l||!Na(t,i+3,l-3)?t=0:(Z=t[i+0]|t[i+1]<<8|t[i+2]<<16,at=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&Z||3<(Z>>1&7)||!(Z>>4&1)||Z>>5>=G.Ja||!at||!t?t=0:(L&&(L[0]=at),A&&(A[0]=t),t=1))}if(!t||(L=L[0],vt=vt[0],K&&(I[0]!=L||U[0]!=vt)))return 3;x!=null&&(x[0]=G,x.offset=i-x.w,e(4294967286>i-x.w),e(x.offset==x.ha-l));break}return H==0||H==7&&K&&x==null?(b!=null&&(b[0]|=G.na!=null&&0<G.na.length),d!=null&&(d[0]=L),m!=null&&(m[0]=vt),0):H}function Ki(t,i,l){var d=i.width,m=i.height,b=0,L=0,A=d,x=m;if(i.Da=t!=null&&0<t.Da,i.Da&&(A=t.cd,x=t.bd,b=t.v,L=t.j,11>l||(b&=-2,L&=-2),0>b||0>L||0>=A||0>=x||b+A>d||L+x>m))return 0;if(i.v=b,i.j=L,i.va=b+A,i.o=L+x,i.U=A,i.T=x,i.da=t!=null&&0<t.da,i.da){if(!Kt(A,x,l=[t.ib],b=[t.hb]))return 0;i.ib=l[0],i.hb=b[0]}return i.ob=t!=null&&t.ob,i.Kb=t==null||!t.Sd,i.da&&(i.ob=i.ib<3*d/4&&i.hb<3*m/4,i.Kb=0),1}function Zi(t){if(t==null)return 2;if(11>t.S){var i=t.f.RGBA;i.fb+=(t.height-1)*i.A,i.A=-i.A}else i=t.f.kb,t=t.height,i.O+=(t-1)*i.fa,i.fa=-i.fa,i.N+=(t-1>>1)*i.Ab,i.Ab=-i.Ab,i.W+=(t-1>>1)*i.Db,i.Db=-i.Db,i.F!=null&&(i.J+=(t-1)*i.lb,i.lb=-i.lb);return 0}function vi(t,i,l,d){if(d==null||0>=t||0>=i)return 2;if(l!=null){if(l.Da){var m=l.cd,b=l.bd,L=-2&l.v,A=-2&l.j;if(0>L||0>A||0>=m||0>=b||L+m>t||A+b>i)return 2;t=m,i=b}if(l.da){if(!Kt(t,i,m=[l.ib],b=[l.hb]))return 2;t=m[0],i=b[0]}}d.width=t,d.height=i;t:{var x=d.width,I=d.height;if(t=d.S,0>=x||0>=I||!(t>=Va&&13>t))t=2;else{if(0>=d.Rd&&d.sd==null){L=b=m=i=0;var U=(A=x*zs[t])*I;if(11>t||(b=(I+1)/2*(i=(x+1)/2),t==12&&(L=(m=x)*I)),(I=o(U+2*b+L))==null){t=1;break t}d.sd=I,11>t?((x=d.f.RGBA).eb=I,x.fb=0,x.A=A,x.size=U):((x=d.f.kb).y=I,x.O=0,x.fa=A,x.Fd=U,x.f=I,x.N=0+U,x.Ab=i,x.Cd=b,x.ea=I,x.W=0+U+b,x.Db=i,x.Ed=b,t==12&&(x.F=I,x.J=0+U+2*b),x.Tc=L,x.lb=m)}if(i=1,m=d.S,b=d.width,L=d.height,m>=Va&&13>m)if(11>m)t=d.f.RGBA,i&=(A=Math.abs(t.A))*(L-1)+b<=t.size,i&=A>=b*zs[m],i&=t.eb!=null;else{t=d.f.kb,A=(b+1)/2,U=(L+1)/2,x=Math.abs(t.fa),I=Math.abs(t.Ab);var K=Math.abs(t.Db),Z=Math.abs(t.lb),G=Z*(L-1)+b;i&=x*(L-1)+b<=t.Fd,i&=I*(U-1)+A<=t.Cd,i=(i&=K*(U-1)+A<=t.Ed)&x>=b&I>=A&K>=A,i&=t.y!=null,i&=t.f!=null,i&=t.ea!=null,m==12&&(i&=Z>=b,i&=G<=t.Tc,i&=t.F!=null)}else i=0;t=i?0:2}}return t!=0||l!=null&&l.fd&&(t=Zi(d)),t}var Ve=64,bi=[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],yi=24,wi=32,$i=8,or=[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];xt("Predictor0","PredictorAdd0"),z.Predictor0=function(){return 4278190080},z.Predictor1=function(t){return t},z.Predictor2=function(t,i,l){return i[l+0]},z.Predictor3=function(t,i,l){return i[l+1]},z.Predictor4=function(t,i,l){return i[l-1]},z.Predictor5=function(t,i,l){return kt(kt(t,i[l+1]),i[l+0])},z.Predictor6=function(t,i,l){return kt(t,i[l-1])},z.Predictor7=function(t,i,l){return kt(t,i[l+0])},z.Predictor8=function(t,i,l){return kt(i[l-1],i[l+0])},z.Predictor9=function(t,i,l){return kt(i[l+0],i[l+1])},z.Predictor10=function(t,i,l){return kt(kt(t,i[l-1]),kt(i[l+0],i[l+1]))},z.Predictor11=function(t,i,l){var d=i[l+0];return 0>=Qt(d>>24&255,t>>24&255,(i=i[l-1])>>24&255)+Qt(d>>16&255,t>>16&255,i>>16&255)+Qt(d>>8&255,t>>8&255,i>>8&255)+Qt(255&d,255&t,255&i)?d:t},z.Predictor12=function(t,i,l){var d=i[l+0];return(qt((t>>24&255)+(d>>24&255)-((i=i[l-1])>>24&255))<<24|qt((t>>16&255)+(d>>16&255)-(i>>16&255))<<16|qt((t>>8&255)+(d>>8&255)-(i>>8&255))<<8|qt((255&t)+(255&d)-(255&i)))>>>0},z.Predictor13=function(t,i,l){var d=i[l-1];return(Gt((t=kt(t,i[l+0]))>>24&255,d>>24&255)<<24|Gt(t>>16&255,d>>16&255)<<16|Gt(t>>8&255,d>>8&255)<<8|Gt(t>>0&255,d>>0&255))>>>0};var Uo=z.PredictorAdd0;z.PredictorAdd1=te,xt("Predictor2","PredictorAdd2"),xt("Predictor3","PredictorAdd3"),xt("Predictor4","PredictorAdd4"),xt("Predictor5","PredictorAdd5"),xt("Predictor6","PredictorAdd6"),xt("Predictor7","PredictorAdd7"),xt("Predictor8","PredictorAdd8"),xt("Predictor9","PredictorAdd9"),xt("Predictor10","PredictorAdd10"),xt("Predictor11","PredictorAdd11"),xt("Predictor12","PredictorAdd12"),xt("Predictor13","PredictorAdd13");var Qi=z.PredictorAdd2;ee("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),ee("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Ta,br=z.ColorIndexInverseTransform,Li=z.MapARGB,Ra=z.VP8LColorIndexInverseTransformAlpha,za=z.MapAlpha,vn=z.VP8LPredictorsAdd=[];vn.length=16,(z.VP8LPredictors=[]).length=16,(z.VP8LPredictorsAdd_C=[]).length=16,(z.VP8LPredictors_C=[]).length=16;var Un,sr,er,bn,on,sn,Ni,un,Fe,ta,rr,yr,Ai,Ua,ea,Hn,Wn,yn,Vn,xi,Gn,wn,ra,wr,Lr,be,ye,Ie,Te=o(511),ln=o(2041),na=o(225),Si=o(767),Ha=0,Ho=ln,Wa=na,dr=Si,Nr=Te,Va=0,Ga=1,Is=2,Ja=3,Ya=4,Wo=5,Cs=6,Vo=7,Go=8,Xa=9,Jo=10,Wu=[2,3,7],Vu=[3,3,11],js=[280,256,256,256,40],Gu=[0,1,1,1,0],Ju=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Yu=[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],Xu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ku=8,Yo=[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],Xo=[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],ia=null,Zu=[[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]],$u=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Os=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Qu=[[[[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]]]],tl=[[[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]]],el=[[[[255,255,255,255,255,255,255,255,255,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]]]],rl=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ln=[],Br=[],cn=[],nl=1,Bs=2,Nn=[],Ar=[];ut("UpsampleRgbLinePair",ne,3),ut("UpsampleBgrLinePair",Ne,3),ut("UpsampleRgbaLinePair",Or,4),ut("UpsampleBgraLinePair",ze,4),ut("UpsampleArgbLinePair",Xe,4),ut("UpsampleRgba4444LinePair",Me,2),ut("UpsampleRgb565LinePair",Se,2);var il=z.UpsampleRgbLinePair,al=z.UpsampleBgrLinePair,Ms=z.UpsampleRgbaLinePair,Es=z.UpsampleBgraLinePair,qs=z.UpsampleArgbLinePair,Ds=z.UpsampleRgba4444LinePair,ol=z.UpsampleRgb565LinePair,Ka=16,Za=1<<Ka-1,aa=-227,Ko=482,sl=6,Ts=0,ul=o(256),ll=o(256),cl=o(256),hl=o(256),fl=o(Ko-aa),dl=o(Ko-aa);Xr("YuvToRgbRow",ne,3),Xr("YuvToBgrRow",Ne,3),Xr("YuvToRgbaRow",Or,4),Xr("YuvToBgraRow",ze,4),Xr("YuvToArgbRow",Xe,4),Xr("YuvToRgba4444Row",Me,2),Xr("YuvToRgb565Row",Se,2);var Rs=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],$a=[0,2,8],pl=[8,7,6,4,4,2,2,2,1,1,1,1],gl=1;this.WebPDecodeRGBA=function(t,i,l,d,m){var b=Ga,L=new pi,A=new _r;L.ba=A,A.S=b,A.width=[A.width],A.height=[A.height];var x=A.width,I=A.height,U=new en;if(U==null||t==null)var K=2;else e(U!=null),K=mi(t,i,l,U.width,U.height,U.Pd,U.Qd,U.format,null);if(K!=0?x=0:(x!=null&&(x[0]=U.width[0]),I!=null&&(I[0]=U.height[0]),x=1),x){A.width=A.width[0],A.height=A.height[0],d!=null&&(d[0]=A.width),m!=null&&(m[0]=A.height);t:{if(d=new si,(m=new Wi).data=t,m.w=i,m.ha=l,m.kd=1,i=[0],e(m!=null),((t=mi(m.data,m.w,m.ha,null,null,null,i,null,m))==0||t==7)&&i[0]&&(t=4),(i=t)==0){if(e(L!=null),d.data=m.data,d.w=m.w+m.offset,d.ha=m.ha-m.offset,d.put=Ur,d.ac=We,d.bc=Hr,d.ma=L,m.xa){if((t=vr())==null){L=1;break t}if((function(Z,G){var vt=[0],at=[0],H=[0];e:for(;;){if(Z==null)return 0;if(G==null)return Z.a=2,0;if(Z.l=G,Z.a=0,$(Z.m,G.data,G.w,G.ha),!zt(Z.m,vt,at,H)){Z.a=3;break e}if(Z.xb=Bs,G.width=vt[0],G.height=at[0],!Gr(vt[0],at[0],1,Z,null))break e;return 1}return e(Z.a!=0),0})(t,d)){if(d=(i=vi(d.width,d.height,L.Oa,L.ba))==0){e:{d=t;r:for(;;){if(d==null){d=0;break e}if(e(d.s.yc!=null),e(d.s.Ya!=null),e(0<d.s.Wb),e((l=d.l)!=null),e((m=l.ma)!=null),d.xb!=0){if(d.ca=m.ba,d.tb=m.tb,e(d.ca!=null),!Ki(m.Oa,l,Ja)){d.a=2;break r}if(!qn(d,l.width)||l.da)break r;if((l.da||ue(d.ca.S))&&X(),11>d.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),d.ca.f.kb.F!=null&&X()),d.Pb&&0<d.s.ua&&d.s.vb.X==null&&!Ut(d.s.vb,d.s.Wa.Xa)){d.a=1;break r}d.xb=0}if(!Ir(d,d.V,d.Ba,d.c,d.i,l.o,ei))break r;m.Dc=d.Ma,d=1;break e}e(d.a!=0),d=0}d=!d}d&&(i=t.a)}else i=t.a}else{if((t=new Ao)==null){L=1;break t}if(t.Fa=m.na,t.P=m.P,t.qc=m.Sa,Aa(t,d)){if((i=vi(d.width,d.height,L.Oa,L.ba))==0){if(t.Aa=0,l=L.Oa,e((m=t)!=null),l!=null){if(0<(x=0>(x=l.Md)?0:100<x?255:255*x/100)){for(I=U=0;4>I;++I)12>(K=m.pb[I]).lc&&(K.ia=x*pl[0>K.lc?0:K.lc]>>3),U|=K.ia;U&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=l.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}xo(t,d)||(i=t.a)}}else i=t.a}i==0&&L.Oa!=null&&L.Oa.fd&&(i=Zi(L.ba))}L=i}b=L!=0?null:11>b?A.f.RGBA.eb:A.f.kb.y}else b=null;return b};var zs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(z,nt){for(var dt="",P=0;P<4;P++)dt+=String.fromCharCode(z[nt++]);return dt}function y(z,nt){return(z[nt+0]<<0|z[nt+1]<<8|z[nt+2]<<16)>>>0}function w(z,nt){return(z[nt+0]<<0|z[nt+1]<<8|z[nt+2]<<16|z[nt+3]<<24)>>>0}new f;var S=[0],p=[0],O=[],F=new f,q=n,_=(function(z,nt){var dt={},P=0,k=!1,W=0,D=0;if(dt.frames=[],!(function(C,M,R,J){for(var Q=0;Q<J;Q++)if(C[M+Q]!=R.charCodeAt(Q))return!0;return!1})(z,nt,"RIFF",4)){var st,it;for(w(z,nt+=4),nt+=8;nt<z.length;){var ct=g(z,nt),$=w(z,nt+=4);nt+=4;var ht=$+(1&$);switch(ct){case"VP8 ":case"VP8L":dt.frames[P]===void 0&&(dt.frames[P]={}),(N=dt.frames[P]).src_off=k?D:nt-8,N.src_size=W+$+8,P++,k&&(k=!1,W=0,D=0);break;case"VP8X":(N=dt.header={}).feature_flags=z[nt];var pt=nt+4;N.canvas_width=1+y(z,pt),pt+=3,N.canvas_height=1+y(z,pt),pt+=3;break;case"ALPH":k=!0,W=ht+8,D=nt-8;break;case"ANIM":(N=dt.header).bgcolor=w(z,nt),pt=nt+4,N.loop_count=(st=z)[(it=pt)+0]<<0|st[it+1]<<8,pt+=2;break;case"ANMF":var It,N;(N=dt.frames[P]={}).offset_x=2*y(z,nt),nt+=3,N.offset_y=2*y(z,nt),nt+=3,N.width=1+y(z,nt),nt+=3,N.height=1+y(z,nt),nt+=3,N.duration=y(z,nt),nt+=3,It=z[nt++],N.dispose=1&It,N.blend=It>>1&1}ct!="ANMF"&&(nt+=ht)}return dt}})(q,0);_.response=q,_.rgbaoutput=!0,_.dataurl=!1;var B=_.header?_.header:null,Y=_.frames?_.frames:null;if(B){B.loop_counter=B.loop_count,S=[B.canvas_height],p=[B.canvas_width];for(var ot=0;ot<Y.length&&Y[ot].blend!=0;ot++);}var lt=Y[0],wt=F.WebPDecodeRGBA(q,lt.src_off,lt.src_size,p,S);lt.rgba=wt,lt.imgwidth=p[0],lt.imgheight=S[0];for(var tt=0;tt<p[0]*S[0]*4;tt++)O[tt]=wt[tt];return this.width=p,this.height=S,this.data=O,this}(function(n){var e=function(){return typeof ws=="function"},r=function(S,p,O,F){var q=4,_=c;switch(F){case n.image_compression.FAST:q=1,_=o;break;case n.image_compression.MEDIUM:q=6,_=h;break;case n.image_compression.SLOW:q=9,_=f}S=a(S,p,O,_);var B=ws(S,{level:q});return n.__addimage__.arrayBufferToBinaryString(B)},a=function(S,p,O,F){for(var q,_,B,Y=S.length/p,ot=new Uint8Array(S.length+Y),lt=y(),wt=0;wt<Y;wt+=1){if(B=wt*p,q=S.subarray(B,B+p),F)ot.set(F(q,O,_),B+wt);else{for(var tt,z=lt.length,nt=[];tt<z;tt+=1)nt[tt]=lt[tt](q,O,_);var dt=w(nt.concat());ot.set(nt[dt],B+wt)}_=q}return ot},u=function(S){var p=Array.apply([],S);return p.unshift(0),p},o=function(S,p){var O,F=[],q=S.length;F[0]=1;for(var _=0;_<q;_+=1)O=S[_-p]||0,F[_+1]=S[_]-O+256&255;return F},c=function(S,p,O){var F,q=[],_=S.length;q[0]=2;for(var B=0;B<_;B+=1)F=O&&O[B]||0,q[B+1]=S[B]-F+256&255;return q},h=function(S,p,O){var F,q,_=[],B=S.length;_[0]=3;for(var Y=0;Y<B;Y+=1)F=S[Y-p]||0,q=O&&O[Y]||0,_[Y+1]=S[Y]+256-(F+q>>>1)&255;return _},f=function(S,p,O){var F,q,_,B,Y=[],ot=S.length;Y[0]=4;for(var lt=0;lt<ot;lt+=1)F=S[lt-p]||0,q=O&&O[lt]||0,_=O&&O[lt-p]||0,B=g(F,q,_),Y[lt+1]=S[lt]-B+256&255;return Y},g=function(S,p,O){if(S===p&&p===O)return S;var F=Math.abs(p-O),q=Math.abs(S-O),_=Math.abs(S+p-O-O);return F<=q&&F<=_?S:q<=_?p:O},y=function(){return[u,o,c,h,f]},w=function(S){var p=S.map((function(O){return O.reduce((function(F,q){return F+Math.abs(q)}),0)}));return p.indexOf(Math.min.apply(null,p))};n.processPNG=function(S,p,O,F){var q,_,B,Y,ot,lt,wt,tt,z,nt,dt,P,k,W,D,st=this.decode.FLATE_DECODE,it="";if(this.__addimage__.isArrayBuffer(S)&&(S=new Uint8Array(S)),this.__addimage__.isArrayBufferView(S)){if(S=(B=new uc(S)).imgData,_=B.bits,q=B.colorSpace,ot=B.colors,[4,6].indexOf(B.colorType)!==-1){if(B.bits===8){z=(tt=B.pixelBitlength==32?new Uint32Array(B.decodePixels().buffer):B.pixelBitlength==16?new Uint16Array(B.decodePixels().buffer):new Uint8Array(B.decodePixels().buffer)).length,dt=new Uint8Array(z*B.colors),nt=new Uint8Array(z);var ct,$=B.pixelBitlength-B.bits;for(W=0,D=0;W<z;W++){for(k=tt[W],ct=0;ct<$;)dt[D++]=k>>>ct&255,ct+=B.bits;nt[W]=k>>>ct&255}}if(B.bits===16){z=(tt=new Uint32Array(B.decodePixels().buffer)).length,dt=new Uint8Array(z*(32/B.pixelBitlength)*B.colors),nt=new Uint8Array(z*(32/B.pixelBitlength)),P=B.colors>1,W=0,D=0;for(var ht=0;W<z;)k=tt[W++],dt[D++]=k>>>0&255,P&&(dt[D++]=k>>>16&255,k=tt[W++],dt[D++]=k>>>0&255),nt[ht++]=k>>>16&255;_=8}F!==n.image_compression.NONE&&e()?(S=r(dt,B.width*B.colors,B.colors,F),wt=r(nt,B.width,1,F)):(S=dt,wt=nt,st=void 0)}if(B.colorType===3&&(q=this.color_spaces.INDEXED,lt=B.palette,B.transparency.indexed)){var pt=B.transparency.indexed,It=0;for(W=0,z=pt.length;W<z;++W)It+=pt[W];if((It/=255)===z-1&&pt.indexOf(0)!==-1)Y=[pt.indexOf(0)];else if(It!==z){for(tt=B.decodePixels(),nt=new Uint8Array(tt.length),W=0,z=tt.length;W<z;W++)nt[W]=pt[tt[W]];wt=r(nt,B.width,1)}}var N=(function(C){var M;switch(C){case n.image_compression.FAST:M=11;break;case n.image_compression.MEDIUM:M=13;break;case n.image_compression.SLOW:M=14;break;default:M=12}return M})(F);return st===this.decode.FLATE_DECODE&&(it="/Predictor "+N+" "),it+="/Colors "+ot+" /BitsPerComponent "+_+" /Columns "+B.width,(this.__addimage__.isArrayBuffer(S)||this.__addimage__.isArrayBufferView(S))&&(S=this.__addimage__.arrayBufferToBinaryString(S)),(wt&&this.__addimage__.isArrayBuffer(wt)||this.__addimage__.isArrayBufferView(wt))&&(wt=this.__addimage__.arrayBufferToBinaryString(wt)),{alias:O,data:S,index:p,filter:st,decodeParameters:it,transparency:Y,palette:lt,sMask:wt,predictor:N,width:B.width,height:B.height,bitsPerComponent:_,colorSpace:q}}}})(Rt.API),(function(n){n.processGIF89A=function(e,r,a,u){var o=new lc(e),c=o.width,h=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var g={data:f,width:c,height:h},y=new ps(100).encode(g,100);return n.processJPEG.call(this,y,r,a,u)},n.processGIF87A=n.processGIF89A})(Rt.API),qr.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var e=0;e<n;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:u,green:a,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},qr.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[n]()}catch(r){ve.log("bit decode error:"+r)}},qr.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),r=e%4;for(n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,u=0;u<e;u++)for(var o=this.datav.getUint8(this.pos++,!0),c=a*this.width*4+8*u*4,h=0;h<8&&8*u+h<this.width;h++){var f=this.palette[o>>7-h&1];this.data[c+4*h]=f.blue,this.data[c+4*h+1]=f.green,this.data[c+4*h+2]=f.red,this.data[c+4*h+3]=255}r!==0&&(this.pos+=4-r)}},qr.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,u=0;u<n;u++){var o=this.datav.getUint8(this.pos++,!0),c=a*this.width*4+2*u*4,h=o>>4,f=15&o,g=this.palette[h];if(this.data[c]=g.blue,this.data[c+1]=g.green,this.data[c+2]=g.red,this.data[c+3]=255,2*u+1>=this.width)break;g=this.palette[f],this.data[c+4]=g.blue,this.data[c+4+1]=g.green,this.data[c+4+2]=g.red,this.data[c+4+3]=255}e!==0&&(this.pos+=4-e)}},qr.prototype.bit8=function(){for(var n=this.width%4,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 u=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*a;if(u<this.palette.length){var c=this.palette[u];this.data[o]=c.red,this.data[o+1]=c.green,this.data[o+2]=c.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}n!==0&&(this.pos+=4-n)}},qr.prototype.bit15=function(){for(var n=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,u=0;u<this.width;u++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(o&e)/e*255|0,h=(o>>5&e)/e*255|0,f=(o>>10&e)/e*255|0,g=o>>15?255:0,y=a*this.width*4+4*u;this.data[y]=f,this.data[y+1]=h,this.data[y+2]=c,this.data[y+3]=g}this.pos+=n}},qr.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var u=this.bottom_up?a:this.height-1-a,o=0;o<this.width;o++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(c&e)/e*255|0,f=(c>>5&r)/r*255|0,g=(c>>11)/e*255|0,y=u*this.width*4+4*o;this.data[y]=g,this.data[y+1]=f,this.data[y+2]=h,this.data[y+3]=255}this.pos+=n}},qr.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=e*this.width*4+4*r;this.data[c]=o,this.data[c+1]=u,this.data[c+2]=a,this.data[c+3]=255}this.pos+=this.width%4}},qr.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),h=e*this.width*4+4*r;this.data[h]=o,this.data[h+1]=u,this.data[h+2]=a,this.data[h+3]=c}},qr.prototype.getData=function(){return this.data},(function(n){n.processBMP=function(e,r,a,u){var o=new qr(e,!1),c=o.width,h=o.height,f={data:o.getData(),width:c,height:h},g=new ps(100).encode(f,100);return n.processJPEG.call(this,g,r,a,u)}})(Rt.API),Lu.prototype.getData=function(){return this.data},(function(n){n.processWEBP=function(e,r,a,u){var o=new Lu(e),c=o.width,h=o.height,f={data:o.getData(),width:c,height:h},g=new ps(100).encode(f,100);return n.processJPEG.call(this,g,r,a,u)}})(Rt.API),Rt.API.processRGBA=function(n,e,r){for(var a=n.data,u=a.length,o=new Uint8Array(u/4*3),c=new Uint8Array(u/4),h=0,f=0,g=0;g<u;g+=4){var y=a[g],w=a[g+1],S=a[g+2],p=a[g+3];o[h++]=y,o[h++]=w,o[h++]=S,c[f++]=p}var O=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:O,index:e,alias:r,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},Ci=Rt.API,fo=Ci.getCharWidthsArray=function(n,e){var r,a,u=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),c=e.charSpace||this.internal.getCharSpace(),h=e.widths?e.widths:u.metadata.Unicode.widths,f=h.fof?h.fof:1,g=e.kerning?e.kerning:u.metadata.Unicode.kerning,y=g.fof?g.fof:1,w=e.doKerning!==!1,S=0,p=n.length,O=0,F=h[0]||f,q=[];for(r=0;r<p;r++)a=n.charCodeAt(r),typeof u.metadata.widthOfString=="function"?q.push((u.metadata.widthOfGlyph(u.metadata.characterToGlyph(a))+c*(1e3/o)||0)/1e3):(S=w&&fe(g[a])==="object"&&!isNaN(parseInt(g[a][O],10))?g[a][O]/y:0,q.push((h[a]||F)/f+S)),O=a;return q},vu=Ci.getStringUnitWidth=function(n,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),u=e.charSpace||this.internal.getCharSpace();return Ci.processArabic&&(n=Ci.processArabic(n)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(n,r,u)/r:fo.apply(this,arguments).reduce((function(o,c){return o+c}),0)},bu=function(n,e,r,a){for(var u=[],o=0,c=n.length,h=0;o!==c&&h+e[o]<r;)h+=e[o],o++;u.push(n.slice(0,o));var f=o;for(h=0;o!==c;)h+e[o]>a&&(u.push(n.slice(f,o)),h=0,f=o),h+=e[o],o++;return f!==o&&u.push(n.slice(f,o)),u},yu=function(n,e,r){r||(r={});var a,u,o,c,h,f,g,y=[],w=[y],S=r.textIndent||0,p=0,O=0,F=n.split(" "),q=fo.apply(this,[" ",r])[0];if(f=r.lineIndent===-1?F[0].length+2:r.lineIndent||0){var _=Array(f).join(" "),B=[];F.map((function(ot){(ot=ot.split(/\s*\n/)).length>1?B=B.concat(ot.map((function(lt,wt){return(wt&&lt.length?`
48
- `:"")+lt}))):B.push(ot[0])})),F=B,f=vu.apply(this,[_,r])}for(o=0,c=F.length;o<c;o++){var Y=0;if(a=F[o],f&&a[0]==`
49
- `&&(a=a.substr(1),Y=1),S+p+(O=(u=fo.apply(this,[a,r])).reduce((function(ot,lt){return ot+lt}),0))>e||Y){if(O>e){for(h=bu.apply(this,[a,u,e-(S+p),e]),y.push(h.shift()),y=[h.pop()];h.length;)w.push([h.shift()]);O=u.slice(a.length-(y[0]?y[0].length:0)).reduce((function(ot,lt){return ot+lt}),0)}else y=[a];w.push(y),S=O+f,p=q}else y.push(a),S+=p+O,p=q}return g=f?function(ot,lt){return(lt?_:"")+ot.join(" ")}:function(ot){return ot.join(" ")},w.map(g)},Ci.splitTextToSize=function(n,e,r){var a,u=(r=r||{}).fontSize||this.internal.getFontSize(),o=(function(y){if(y.widths&&y.kerning)return{widths:y.widths,kerning:y.kerning};var w=this.internal.getFont(y.fontName,y.fontStyle);return w.metadata.Unicode?{widths:w.metadata.Unicode.widths||{0:1},kerning:w.metadata.Unicode.kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);a=Array.isArray(n)?n:String(n).split(/\r?\n/);var c=1*this.internal.scaleFactor*e/u;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/u:0,o.lineIndent=r.lineIndent;var h,f,g=[];for(h=0,f=a.length;h<f;h++)g=g.concat(yu.apply(this,[a[h],c,o]));return g},(function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",r={},a={},u=0;u<e.length;u++)r[e[u]]="0123456789abcdef"[u],a["0123456789abcdef"[u]]=e[u];var o=function(w){return"0x"+parseInt(w,10).toString(16)},c=n.__fontmetrics__.compress=function(w){var S,p,O,F,q=["{"];for(var _ in w){if(S=w[_],isNaN(parseInt(_,10))?p="'"+_+"'":(_=parseInt(_,10),p=(p=o(_).slice(2)).slice(0,-1)+a[p.slice(-1)]),typeof S=="number")S<0?(O=o(S).slice(3),F="-"):(O=o(S).slice(2),F=""),O=F+O.slice(0,-1)+a[O.slice(-1)];else{if(fe(S)!=="object")throw new Error("Don't know what to do with value type "+fe(S)+".");O=c(S)}q.push(p+O)}return q.push("}"),q.join("")},h=n.__fontmetrics__.uncompress=function(w){if(typeof w!="string")throw new Error("Invalid argument passed to uncompress.");for(var S,p,O,F,q={},_=1,B=q,Y=[],ot="",lt="",wt=w.length-1,tt=1;tt<wt;tt+=1)(F=w[tt])=="'"?S?(O=S.join(""),S=void 0):S=[]:S?S.push(F):F=="{"?(Y.push([B,O]),B={},O=void 0):F=="}"?((p=Y.pop())[0][p[1]]=B,O=void 0,B=p[0]):F=="-"?_=-1:O===void 0?r.hasOwnProperty(F)?(ot+=r[F],O=parseInt(ot,16)*_,_=1,ot=""):ot+=F:r.hasOwnProperty(F)?(lt+=r[F],B[O]=parseInt(lt,16)*_,_=1,O=void 0,lt=""):lt+=F;return q},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},y={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'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":h("{'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:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'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:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'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":h("{'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:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'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":h("{'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":h("{'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(w){var S=w.font,p=y.Unicode[S.postScriptName];p&&(S.metadata.Unicode={},S.metadata.Unicode.widths=p.widths,S.metadata.Unicode.kerning=p.kerning);var O=g.Unicode[S.postScriptName];O&&(S.metadata.Unicode.encoding=O,S.encoding=O.codePages[0])}])})(Rt.API),(function(n){var e=function(r){for(var a=r.length,u=new Uint8Array(a),o=0;o<a;o++)u[o]=r.charCodeAt(o);return u};n.API.events.push(["addFont",function(r){var a=void 0,u=r.font,o=r.instance;if(!u.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");if(typeof(a=o.existsFileInVFS(u.postScriptName)===!1?o.loadFile(u.postScriptName):o.getFileFromVFS(u.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");(function(c,h){h=/^\x00\x01\x00\x00/.test(h)?e(h):e(fa(h)),c.metadata=n.API.TTFFont.open(h),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(u,a)}}])})(Rt),(function(n){function e(){return(Ht.canvg?Promise.resolve(Ht.canvg):gs(()=>import("./chunk-index.es.js"),__vite__mapDeps([0,1,2]),import.meta.url)).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}Rt.API.addSvgAsImage=function(r,a,u,o,c,h,f,g){if(isNaN(a)||isNaN(u))throw ve.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(c))throw ve.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var y=document.createElement("canvas");y.width=o,y.height=c;var w=y.getContext("2d");w.fillStyle="#fff",w.fillRect(0,0,y.width,y.height);var S={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return e().then((function(O){return O.fromString(w,r,S)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(O){return O.render(S)})).then((function(){p.addImage(y.toDataURL("image/jpeg",1),a,u,o,c,f,g)}))}})(),Rt.API.putTotalPages=function(n){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var u=0;u<this.internal.pages[a].length;u++)this.internal.pages[a][u]=this.internal.pages[a][u].replace(e,r);return this},Rt.API.viewerPreferences=function(n,e){var r;n=n||{},e=e||!1;var a,u,o,c={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},h=Object.keys(c),f=[],g=0,y=0,w=0;function S(O,F){var q,_=!1;for(q=0;q<O.length;q+=1)O[q]===F&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,n==="reset"||e===!0){var p=h.length;for(w=0;w<p;w+=1)r[h[w]].value=r[h[w]].defaultValue,r[h[w]].explicitSet=!1}if(fe(n)==="object"){for(u in n)if(o=n[u],S(h,u)&&o!==void 0){if(r[u].type==="boolean"&&typeof o=="boolean")r[u].value=o;else if(r[u].type==="name"&&S(r[u].valueSet,o))r[u].value=o;else if(r[u].type==="integer"&&Number.isInteger(o))r[u].value=o;else if(r[u].type==="array"){for(g=0;g<o.length;g+=1)if(a=!0,o[g].length===1&&typeof o[g][0]=="number")f.push(String(o[g]-1));else if(o[g].length>1){for(y=0;y<o[g].length;y+=1)typeof o[g][y]!="number"&&(a=!1);a===!0&&f.push([o[g][0]-1,o[g][1]-1].join(" "))}r[u].value="["+f.join(" ")+"]"}else r[u].value=r[u].defaultValue;r[u].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var O,F=[];for(O in r)r[O].explicitSet===!0&&(r[O].type==="name"?F.push("/"+O+" /"+r[O].value):F.push("/"+O+" "+r[O].value));F.length!==0&&this.internal.write(`/ViewerPreferences
48
+ `},e.outline.count_r=function(i,o){for(var a=0;a<o.children.length;a++)i.count++,this.count_r(i,o.children[a]);return i.count}}])})(Mt.API),(function(n){var t=[192,193,194,195,196,197,198,199];n.processJPEG=function(e,i,o,a,c,l){var h,d=this.decode.DCT_DECODE,m=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=c||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,h=(function(_){for(var k,p=256*_.charCodeAt(4)+_.charCodeAt(5),j=_.length,O={width:0,height:0,numcomponents:1},M=4;M<j;M+=2){if(M+=p,t.indexOf(_.charCodeAt(M+1))!==-1){k=256*_.charCodeAt(M+5)+_.charCodeAt(M+6),O={width:256*_.charCodeAt(M+7)+_.charCodeAt(M+8),height:k,numcomponents:_.charCodeAt(M+9)};break}p=256*_.charCodeAt(M+2)+_.charCodeAt(M+3)}return O})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),h.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}m={data:e,width:h.width,height:h.height,colorSpace:l,bitsPerComponent:8,filter:d,index:i,alias:o}}return m}})(Mt.API),Mt.API.processPNG=function(n,t,e,i){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var o,a=I1(n,{checkCrc:!0}),c=a.width,l=a.height,h=a.channels,d=a.palette,m=a.depth;o=d&&h===1?(function(X){for(var R=X.width,tt=X.height,N=X.data,E=X.palette,z=X.depth,U=!1,rt=[],ot=[],ft=void 0,nt=!1,ct=0,At=0;At<E.length;At++){var wt=ql(E[At],4),x=wt[0],B=wt[1],T=wt[2],H=wt[3];rt.push(x,B,T),H!=null&&(H===0?(ct++,ot.length<1&&ot.push(At)):H<255&&(nt=!0))}if(nt||ct>1){U=!0,ot=void 0;var J=R*tt;ft=new Uint8Array(J);for(var Z=new DataView(N.buffer),at=0;at<J;at++){var st=Mo(Z,at,z),gt=ql(E[st],4)[3];ft[at]=gt}}else ct===0&&(ot=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:N,alphaBytes:ft,needSMask:U,palette:rt,mask:ot}})(a):h===2||h===4?(function(X){for(var R=X.data,tt=X.width,N=X.height,E=X.channels,z=X.depth,U=E===2?"DeviceGray":"DeviceRGB",rt=E-1,ot=tt*N,ft=rt,nt=ot*ft,ct=1*ot,At=Math.ceil(nt*z/8),wt=Math.ceil(ct*z/8),x=new Uint8Array(At),B=new Uint8Array(wt),T=new DataView(R.buffer),H=new DataView(x.buffer),J=new DataView(B.buffer),Z=!1,at=0;at<ot;at++){for(var st=at*E,gt=0;gt<ft;gt++)Vu(H,Mo(T,st+gt,z),at*ft+gt,z);var _t=Mo(T,st+ft,z);_t<(1<<z)-1&&(Z=!0),Vu(J,_t,1*at,z)}return{colorSpace:U,colorsPerPixel:rt,sMaskBitsPerComponent:Z?z:void 0,colorBytes:x,alphaBytes:B,needSMask:Z}})(a):(function(X){var R=X.data,tt=X.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:tt,colorsPerPixel:tt==="DeviceGray"?1:3,colorBytes:R instanceof Uint16Array?(function(N){for(var E=N.length,z=new Uint8Array(2*E),U=new DataView(z.buffer,z.byteOffset,z.byteLength),rt=0;rt<E;rt++)U.setUint16(2*rt,N[rt],!1);return z})(R):R,needSMask:!1}})(a);var _,k,p,j=o,O=j.colorSpace,M=j.colorsPerPixel,S=j.sMaskBitsPerComponent,V=j.colorBytes,G=j.alphaBytes,q=j.needSMask,it=j.palette,vt=j.mask,dt=null;return i!==Mt.API.image_compression.NONE&&typeof Uo=="function"?(dt=(function(X){var R;switch(X){case Mt.API.image_compression.FAST:R=11;break;case Mt.API.image_compression.MEDIUM:R=13;break;case Mt.API.image_compression.SLOW:R=14;break;default:R=12}return R})(i),_=this.decode.FLATE_DECODE,k="/Predictor ".concat(dt," /Colors ").concat(M," /BitsPerComponent ").concat(m," /Columns ").concat(c),n=qu(V,Math.ceil(c*M*m/8),M,m,i),q&&(p=qu(G,Math.ceil(c*S/8),1,S,i))):(_=void 0,k=void 0,n=V,q&&(p=G)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:n,index:t,filter:_,decodeParameters:k,transparency:vt,palette:it,sMask:p,predictor:dt,width:c,height:l,bitsPerComponent:m,sMaskBitsPerComponent:S,colorSpace:O}}},(function(n){n.processGIF89A=function(t,e,i,o){var a=new $1(t),c=a.width,l=a.height,h=[];a.decodeAndBlitFrameRGBA(0,h);var d={data:h,width:c,height:l},m=new Ro(100).encode(d,100);return n.processJPEG.call(this,m,e,i,o)},n.processGIF87A=n.processGIF89A})(Mt.API),Zn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var 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),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:i,blue:e,quad:a}}}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 i=this.bottom_up?n:this.height-1-n,o=0;o<t;o++)for(var a=this.datav.getUint8(this.pos++,!0),c=i*this.width*4+8*o*4,l=0;l<8&&8*o+l<this.width;l++){var h=this.palette[a>>7-l&1];this.data[c+4*l]=h.blue,this.data[c+4*l+1]=h.green,this.data[c+4*l+2]=h.red,this.data[c+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 i=this.bottom_up?e:this.height-1-e,o=0;o<n;o++){var a=this.datav.getUint8(this.pos++,!0),c=i*this.width*4+2*o*4,l=a>>4,h=15&a,d=this.palette[l];if(this.data[c]=d.blue,this.data[c+1]=d.green,this.data[c+2]=d.red,this.data[c+3]=255,2*o+1>=this.width)break;d=this.palette[h],this.data[c+4]=d.blue,this.data[c+4+1]=d.green,this.data[c+4+2]=d.red,this.data[c+4+3]=255}t!==0&&(this.pos+=4-t)}},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,i=0;i<this.width;i++){var o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*i;if(o<this.palette.length){var c=this.palette[o];this.data[a]=c.red,this.data[a+1]=c.green,this.data[a+2]=c.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}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 i=this.bottom_up?e:this.height-1-e,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(a&t)/t*255|0,l=(a>>5&t)/t*255|0,h=(a>>10&t)/t*255|0,d=a>>15?255:0,m=i*this.width*4+4*o;this.data[m]=h,this.data[m+1]=l,this.data[m+2]=c,this.data[m+3]=d}this.pos+=n}},Zn.prototype.bit16=function(){for(var n=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var o=this.bottom_up?i:this.height-1-i,a=0;a<this.width;a++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(c&t)/t*255|0,h=(c>>5&e)/e*255|0,d=(c>>11)/t*255|0,m=o*this.width*4+4*a;this.data[m]=d,this.data[m+1]=h,this.data[m+2]=l,this.data[m+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 i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),c=t*this.width*4+4*e;this.data[c]=a,this.data[c+1]=o,this.data[c+2]=i,this.data[c+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 i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*e;this.data[l]=a,this.data[l+1]=o,this.data[l+2]=i,this.data[l+3]=c}},Zn.prototype.getData=function(){return this.data},(function(n){n.processBMP=function(t,e,i,o){var a=new Zn(t,!1),c=a.width,l=a.height,h={data:a.getData(),width:c,height:l},d=new Ro(100).encode(h,100);return n.processJPEG.call(this,d,e,i,o)}})(Mt.API),Yu.prototype.getData=function(){return this.data},(function(n){n.processWEBP=function(t,e,i,o){var a=new Yu(t),c=a.width,l=a.height,h={data:a.getData(),width:c,height:l},d=new Ro(100).encode(h,100);return n.processJPEG.call(this,d,e,i,o)}})(Mt.API),Mt.API.processRGBA=function(n,t,e){for(var i=n.data,o=i.length,a=new Uint8Array(o/4*3),c=new Uint8Array(o/4),l=0,h=0,d=0;d<o;d+=4){var m=i[d],_=i[d+1],k=i[d+2],p=i[d+3];a[l++]=m,a[l++]=_,a[l++]=k,c[h++]=p}var j=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:j,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},Mt.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},ta=Mt.API,Ss=ta.getCharWidthsArray=function(n,t){var e,i,o=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),c=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:o.metadata.Unicode.widths,h=l.fof?l.fof:1,d=t.kerning?t.kerning:o.metadata.Unicode.kerning,m=d.fof?d.fof:1,_=t.doKerning!==!1,k=0,p=n.length,j=0,O=l[0]||h,M=[];for(e=0;e<p;e++)i=n.charCodeAt(e),typeof o.metadata.widthOfString=="function"?M.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+c*(1e3/a)||0)/1e3):(k=_&&xe(d[i])==="object"&&!isNaN(parseInt(d[i][j],10))?d[i][j]/m:0,M.push((l[i]||O)/h+k)),j=i;return M},Ru=ta.getStringUnitWidth=function(n,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),i=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return ta.processArabic&&(n=ta.processArabic(n)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(n,e,o)/e:Ss.apply(this,arguments).reduce(function(a,c){return a+c},0)},Tu=function(n,t,e,i){for(var o=[],a=0,c=n.length,l=0;a!==c&&l+t[a]<e;)l+=t[a],a++;o.push(n.slice(0,a));var h=a;for(l=0;a!==c;)l+t[a]>i&&(o.push(n.slice(h,a)),l=0,h=a),l+=t[a],a++;return h!==a&&o.push(n.slice(h,a)),o},Du=function(n,t,e){e||(e={});var i,o,a,c,l,h,d,m=[],_=[m],k=e.textIndent||0,p=0,j=0,O=n.split(" "),M=Ss.apply(this,[" ",e])[0];if(h=e.lineIndent===-1?O[0].length+2:e.lineIndent||0){var S=Array(h).join(" "),V=[];O.map(function(q){(q=q.split(/\s*\n/)).length>1?V=V.concat(q.map(function(it,vt){return(vt&&it.length?`
49
+ `:"")+it})):V.push(q[0])}),O=V,h=Ru.apply(this,[S,e])}for(a=0,c=O.length;a<c;a++){var G=0;if(i=O[a],h&&i[0]==`
50
+ `&&(i=i.substr(1),G=1),k+p+(j=(o=Ss.apply(this,[i,e])).reduce(function(q,it){return q+it},0))>t||G){if(j>t){for(l=Tu.apply(this,[i,o,t-(k+p),t]),m.push(l.shift()),m=[l.pop()];l.length;)_.push([l.shift()]);j=o.slice(i.length-(m[0]?m[0].length:0)).reduce(function(q,it){return q+it},0)}else m=[i];_.push(m),k=j+h,p=M}else m.push(i),k+=p+j,p=M}return d=h?function(q,it){return(it?S:"")+q.join(" ")}:function(q){return q.join(" ")},_.map(d)},ta.splitTextToSize=function(n,t,e){var i,o=(e=e||{}).fontSize||this.internal.getFontSize(),a=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var _=this.internal.getFont(m.fontName,m.fontStyle),k="Unicode";return _.metadata[k]?{widths:_.metadata[k].widths||{0:1},kerning:_.metadata[k].kerning||{}}:{font:_.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);i=Array.isArray(n)?n:String(n).split(/\r?\n/);var c=1*this.internal.scaleFactor*t/o;a.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/o:0,a.lineIndent=e.lineIndent;var l,h,d=[];for(l=0,h=i.length;l<h;l++)d=d.concat(Du.apply(this,[i[l],c,a]));return d},(function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var t="0123456789abcdef",e="klmnopqrstuvwxyz",i={},o={},a=0;a<16;a++)i[e[a]]=t[a],o[t[a]]=e[a];var c=function(k){return"0x"+parseInt(k,10).toString(16)},l=n.__fontmetrics__.compress=function(k){var p,j,O,M,S=["{"];for(var V in k){if(p=k[V],isNaN(parseInt(V,10))?j="'"+V+"'":(V=parseInt(V,10),j=(j=c(V).slice(2)).slice(0,-1)+o[j.slice(-1)]),typeof p=="number")p<0?(O=c(p).slice(3),M="-"):(O=c(p).slice(2),M=""),O=M+O.slice(0,-1)+o[O.slice(-1)];else{if(xe(p)!=="object")throw new Error("Don't know what to do with value type "+xe(p)+".");O=l(p)}S.push(j+O)}return S.push("}"),S.join("")},h=n.__fontmetrics__.uncompress=function(k){if(typeof k!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,j,O,M,S={},V=1,G=S,q=[],it="",vt="",dt=k.length-1,X=1;X<dt;X+=1)(M=k[X])=="'"?p?(O=p.join(""),p=void 0):p=[]:p?p.push(M):M=="{"?(q.push([G,O]),G={},O=void 0):M=="}"?((j=q.pop())[0][j[1]]=G,O=void 0,G=j[0]):M=="-"?V=-1:O===void 0?i.hasOwnProperty(M)?(it+=i[M],O=parseInt(it,16)*V,V=1,it=""):it+=M:i.hasOwnProperty(M)?(vt+=i[M],G[O]=parseInt(vt,16)*V,V=1,O=void 0,vt=""):vt+=M;return S},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},_={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'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":h("{'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:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'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:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'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":h("{'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:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'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":h("{'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":h("{'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(k){var p=k.font,j=_.Unicode[p.postScriptName];j&&(p.metadata.Unicode={},p.metadata.Unicode.widths=j.widths,p.metadata.Unicode.kerning=j.kerning);var O=m.Unicode[p.postScriptName];O&&(p.metadata.Unicode.encoding=O,p.encoding=O.codePages[0])}])})(Mt.API),(function(n){var t=function(e){for(var i=e.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=e.charCodeAt(a);return o};n.API.events.push(["addFont",function(e){var i=void 0,o=e.font,a=e.instance;if(!o.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if(typeof(i=a.existsFileInVFS(o.postScriptName)===!1?a.loadFile(o.postScriptName):a.getFileFromVFS(o.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");(function(c,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(Ps(l)),c.metadata=n.API.TTFFont.open(l),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(o,i)}}])})(Mt),Mt.API.addSvgAsImage=function(n,t,e,i,o,a,c,l){if(isNaN(t)||isNaN(e))throw Le.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw Le.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var d=h.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,h.width,h.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},_=this;return(Kt.canvg?Promise.resolve(Kt.canvg):mo(()=>import("./chunk-index.es.js"),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(k){return Promise.reject(new Error("Could not load canvg: "+k))}).then(function(k){return k.default?k.default:k}).then(function(k){return k.fromString(d,n,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(k){return k.render(m)}).then(function(){_.addImage(h.toDataURL("image/jpeg",1),t,e,i,o,c,l)})},Mt.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 i=1;i<=this.internal.getNumberOfPages();i++)for(var o=0;o<this.internal.pages[i].length;o++)this.internal.pages[i][o]=this.internal.pages[i][o].replace(t,e);return this},Mt.API.viewerPreferences=function(n,t){var e;n=n||{},t=t||!1;var i,o,a,c={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(c),h=[],d=0,m=0,_=0;function k(j,O){var M,S=!1;for(M=0;M<j.length;M+=1)j[M]===O&&(S=!0);return S}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,n==="reset"||t===!0){var p=l.length;for(_=0;_<p;_+=1)e[l[_]].value=e[l[_]].defaultValue,e[l[_]].explicitSet=!1}if(xe(n)==="object"){for(o in n)if(a=n[o],k(l,o)&&a!==void 0){if(e[o].type==="boolean"&&typeof a=="boolean")e[o].value=a;else if(e[o].type==="name"&&k(e[o].valueSet,a))e[o].value=a;else if(e[o].type==="integer"&&Number.isInteger(a))e[o].value=a;else if(e[o].type==="array"){for(d=0;d<a.length;d+=1)if(i=!0,a[d].length===1&&typeof a[d][0]=="number")h.push(String(a[d]-1));else if(a[d].length>1){for(m=0;m<a[d].length;m+=1)typeof a[d][m]!="number"&&(i=!1);i===!0&&h.push([a[d][0]-1,a[d][1]-1].join(" "))}e[o].value="["+h.join(" ")+"]"}else e[o].value=e[o].defaultValue;e[o].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var j,O=[];for(j in e)e[j].explicitSet===!0&&(e[j].type==="name"?O.push("/"+j+" /"+e[j].value):O.push("/"+j+" "+e[j].value));O.length!==0&&this.internal.write(`/ViewerPreferences
50
51
  <<
51
- `+F.join(`
52
+ `+O.join(`
52
53
  `)+`
53
- >>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(n){var e=function(){var a='<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>',u=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(a)),c=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),h=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),g=o.length+c.length+h.length+u.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+g+" >>"),this.internal.write("stream"),this.internal.write(u+o+c+h+f),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(a,u){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:a,namespaceuri:u||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}})(Rt.API),(function(n){var e=n.API,r=e.pdfEscape16=function(o,c){for(var h,f=c.metadata.Unicode.widths,g=["","0","00","000","0000"],y=[""],w=0,S=o.length;w<S;++w){if(h=c.metadata.characterToGlyph(o.charCodeAt(w)),c.metadata.glyIdsUsed.push(h),c.metadata.toUnicode[h]=o.charCodeAt(w),f.indexOf(h)==-1&&(f.push(h),f.push([parseInt(c.metadata.widthOfGlyph(h),10)])),h=="0")return y.join("");h=h.toString(16),y.push(g[4-h.length],h)}return y.join("")},a=function(o){var c,h,f,g,y,w,S;for(y=`/CIDInit /ProcSet findresource begin
54
+ >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},Mt.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",Q1),this.internal.events.subscribe("postPutResources",Z1)),this},(function(n){var t=n.API,e=t.pdfEscape16=function(a,c){for(var l,h=c.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],_=0,k=a.length;_<k;++_){if(l=c.metadata.characterToGlyph(a.charCodeAt(_)),c.metadata.glyIdsUsed.push(l),c.metadata.toUnicode[l]=a.charCodeAt(_),h.indexOf(l)==-1&&(h.push(l),h.push([parseInt(c.metadata.widthOfGlyph(l),10)])),l=="0")return m.join("");l=l.toString(16),m.push(d[4-l.length],l)}return m.join("")},i=function(a){var c,l,h,d,m,_,k;for(m=`/CIDInit /ProcSet findresource begin
54
55
  12 dict begin
55
56
  begincmap
56
57
  /CIDSystemInfo <<
@@ -62,17 +63,17 @@ begincmap
62
63
  /CMapType 2 def
63
64
  1 begincodespacerange
64
65
  <0000><ffff>
65
- endcodespacerange`,f=[],w=0,S=(h=Object.keys(o).sort((function(p,O){return p-O}))).length;w<S;w++)c=h[w],f.length>=100&&(y+=`
66
- `+f.length+` beginbfchar
67
- `+f.join(`
66
+ endcodespacerange`,h=[],_=0,k=(l=Object.keys(a).sort(function(p,j){return p-j})).length;_<k;_++)c=l[_],h.length>=100&&(m+=`
67
+ `+h.length+` beginbfchar
68
+ `+h.join(`
68
69
  `)+`
69
- endbfchar`,f=[]),o[c]!==void 0&&o[c]!==null&&typeof o[c].toString=="function"&&(g=("0000"+o[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),f.push("<"+c+"><"+g+">"));return f.length&&(y+=`
70
- `+f.length+` beginbfchar
71
- `+f.join(`
70
+ endbfchar`,h=[]),a[c]!==void 0&&a[c]!==null&&typeof a[c].toString=="function"&&(d=("0000"+a[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),h.push("<"+c+"><"+d+">"));return h.length&&(m+=`
71
+ `+h.length+` beginbfchar
72
+ `+h.join(`
72
73
  `)+`
73
74
  endbfchar
74
- `),y+=`endcmap
75
+ `),m+`endcmap
75
76
  CMapName currentdict /CMap defineresource pop
76
77
  end
77
- end`};e.events.push(["putFont",function(o){(function(c){var h=c.font,f=c.out,g=c.newObject,y=c.putStream;if(h.metadata instanceof n.API.TTFFont&&h.encoding==="Identity-H"){for(var w=h.metadata.Unicode.widths,S=h.metadata.subset.encode(h.metadata.glyIdsUsed,1),p="",O=0;O<S.length;O++)p+=String.fromCharCode(S[O]);var F=g();y({data:p,addLength1:!0,objectId:F}),f("endobj");var q=g();y({data:a(h.metadata.toUnicode),addLength1:!0,objectId:q}),f("endobj");var _=g();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+Oi(h.fontName)),f("/FontFile2 "+F+" 0 R"),f("/FontBBox "+n.API.PDFObject.convert(h.metadata.bbox)),f("/Flags "+h.metadata.flags),f("/StemV "+h.metadata.stemV),f("/ItalicAngle "+h.metadata.italicAngle),f("/Ascent "+h.metadata.ascender),f("/Descent "+h.metadata.decender),f("/CapHeight "+h.metadata.capHeight),f(">>"),f("endobj");var B=g();f("<<"),f("/Type /Font"),f("/BaseFont /"+Oi(h.fontName)),f("/FontDescriptor "+_+" 0 R"),f("/W "+n.API.PDFObject.convert(w)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+h.encoding+")"),f(">>"),f(">>"),f("endobj"),h.objectNumber=g(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+q+" 0 R"),f("/BaseFont /"+Oi(h.fontName)),f("/Encoding /"+h.encoding),f("/DescendantFonts ["+B+" 0 R]"),f(">>"),f("endobj"),h.isAlreadyPutted=!0}})(o)}]),e.events.push(["putFont",function(o){(function(c){var h=c.font,f=c.out,g=c.newObject,y=c.putStream;if(h.metadata instanceof n.API.TTFFont&&h.encoding==="WinAnsiEncoding"){for(var w=h.metadata.rawData,S="",p=0;p<w.length;p++)S+=String.fromCharCode(w[p]);var O=g();y({data:S,addLength1:!0,objectId:O}),f("endobj");var F=g();y({data:a(h.metadata.toUnicode),addLength1:!0,objectId:F}),f("endobj");var q=g();f("<<"),f("/Descent "+h.metadata.decender),f("/CapHeight "+h.metadata.capHeight),f("/StemV "+h.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+O+" 0 R"),f("/Flags 96"),f("/FontBBox "+n.API.PDFObject.convert(h.metadata.bbox)),f("/FontName /"+Oi(h.fontName)),f("/ItalicAngle "+h.metadata.italicAngle),f("/Ascent "+h.metadata.ascender),f(">>"),f("endobj"),h.objectNumber=g();for(var _=0;_<h.metadata.hmtx.widths.length;_++)h.metadata.hmtx.widths[_]=parseInt(h.metadata.hmtx.widths[_]*(1e3/h.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+F+" 0 R/BaseFont/"+Oi(h.fontName)+"/FontDescriptor "+q+" 0 R/Encoding/"+h.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(h.metadata.hmtx.widths)+">>"),f("endobj"),h.isAlreadyPutted=!0}})(o)}]);var u=function(o){var c,h=o.text||"",f=o.x,g=o.y,y=o.options||{},w=o.mutex||{},S=w.pdfEscape,p=w.activeFontKey,O=w.fonts,F=p,q="",_=0,B="",Y=O[F].encoding;if(O[F].encoding!=="Identity-H")return{text:h,x:f,y:g,options:y,mutex:w};for(B=h,F=p,Array.isArray(h)&&(B=h[0]),_=0;_<B.length;_+=1)O[F].metadata.hasOwnProperty("cmap")&&(c=O[F].metadata.cmap.unicode.codeMap[B[_].charCodeAt(0)]),c||B[_].charCodeAt(0)<256&&O[F].metadata.hasOwnProperty("Unicode")?q+=B[_]:q+="";var ot="";return parseInt(F.slice(1))<14||Y==="WinAnsiEncoding"?ot=S(q,F).split("").map((function(lt){return lt.charCodeAt(0).toString(16)})).join(""):Y==="Identity-H"&&(ot=r(q,O[F])),w.isHex=!0,{text:ot,x:f,y:g,options:y,mutex:w}};e.events.push(["postProcessText",function(o){var c=o.text||"",h=[],f={text:c,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(c)){var g=0;for(g=0;g<c.length;g+=1)Array.isArray(c[g])&&c[g].length===3?h.push([u(Object.assign({},f,{text:c[g][0]})).text,c[g][1],c[g][2]]):h.push(u(Object.assign({},f,{text:c[g]})).text);o.text=h}else o.text=u(Object.assign({},f,{text:c})).text}])})(Rt),(function(n){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0},n.addFileToVFS=function(r,a){return e.call(this),this.internal.vFS[r]=a,this},n.getFileFromVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(Rt.API),(function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(a){var u,o,c,h,f,g,y,w=e,S=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],O={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},F={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},q=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=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)$/),B=!1,Y=0;this.__bidiEngine__={};var ot=function(P){var k=P.charCodeAt(),W=k>>8,D=F[W];return D!==void 0?w[256*D+(255&k)]:W===252||W===253?"AL":_.test(W)?"L":W===8?"R":"N"},lt=function(P){for(var k,W=0;W<P.length;W++){if((k=ot(P.charAt(W)))==="L")return!1;if(k==="R")return!0}return!1},wt=function(P,k,W,D){var st,it,ct,$,ht=k[D];switch(ht){case"L":case"R":B=!1;break;case"N":case"AN":break;case"EN":B&&(ht="AN");break;case"AL":B=!0,ht="R";break;case"WS":ht="N";break;case"CS":D<1||D+1>=k.length||(st=W[D-1])!=="EN"&&st!=="AN"||(it=k[D+1])!=="EN"&&it!=="AN"?ht="N":B&&(it="AN"),ht=it===st?it:"N";break;case"ES":ht=(st=D>0?W[D-1]:"B")==="EN"&&D+1<k.length&&k[D+1]==="EN"?"EN":"N";break;case"ET":if(D>0&&W[D-1]==="EN"){ht="EN";break}if(B){ht="N";break}for(ct=D+1,$=k.length;ct<$&&k[ct]==="ET";)ct++;ht=ct<$&&k[ct]==="EN"?"EN":"N";break;case"NSM":if(c&&!h){for($=k.length,ct=D+1;ct<$&&k[ct]==="NSM";)ct++;if(ct<$){var pt=P[D],It=pt>=1425&&pt<=2303||pt===64286;if(st=k[ct],It&&(st==="R"||st==="AL")){ht="R";break}}}ht=D<1||(st=k[D-1])==="B"?"N":W[D-1];break;case"B":B=!1,u=!0,ht=Y;break;case"S":o=!0,ht="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":B=!1;break;case"BN":ht="N"}return ht},tt=function(P,k,W){var D=P.split("");return W&&z(D,W,{hiLevel:Y}),D.reverse(),k&&k.reverse(),D.join("")},z=function(P,k,W){var D,st,it,ct,$,ht=-1,pt=P.length,It=0,N=[],C=Y?p:S,M=[];for(B=!1,u=!1,o=!1,st=0;st<pt;st++)M[st]=ot(P[st]);for(it=0;it<pt;it++){if($=It,N[it]=wt(P,M,N,it),D=240&(It=C[$][O[N[it]]]),It&=15,k[it]=ct=C[It][5],D>0)if(D===16){for(st=ht;st<it;st++)k[st]=1;ht=-1}else ht=-1;if(C[It][6])ht===-1&&(ht=it);else if(ht>-1){for(st=ht;st<it;st++)k[st]=ct;ht=-1}M[it]==="B"&&(k[it]=0),W.hiLevel|=ct}o&&(function(R,J,Q){for(var et=0;et<Q;et++)if(R[et]==="S"){J[et]=Y;for(var rt=et-1;rt>=0&&R[rt]==="WS";rt--)J[rt]=Y}})(M,k,pt)},nt=function(P,k,W,D,st){if(!(st.hiLevel<P)){if(P===1&&Y===1&&!u)return k.reverse(),void(W&&W.reverse());for(var it,ct,$,ht,pt=k.length,It=0;It<pt;){if(D[It]>=P){for($=It+1;$<pt&&D[$]>=P;)$++;for(ht=It,ct=$-1;ht<ct;ht++,ct--)it=k[ht],k[ht]=k[ct],k[ct]=it,W&&(it=W[ht],W[ht]=W[ct],W[ct]=it);It=$}It++}}},dt=function(P,k,W){var D=P.split(""),st={hiLevel:Y};return W||(W=[]),z(D,W,st),(function(it,ct,$){if($.hiLevel!==0&&y)for(var ht,pt=0;pt<it.length;pt++)ct[pt]===1&&(ht=q.indexOf(it[pt]))>=0&&(it[pt]=q[ht+1])})(D,W,st),nt(2,D,k,W,st),nt(1,D,k,W,st),D.join("")};return this.__bidiEngine__.doBidiReorder=function(P,k,W){if((function(st,it){if(it)for(var ct=0;ct<st.length;ct++)it[ct]=ct;h===void 0&&(h=lt(st)),g===void 0&&(g=lt(st))})(P,k),c||!f||g)if(c&&f&&h^g)Y=h?1:0,P=tt(P,k,W);else if(!c&&f&&g)Y=h?1:0,P=dt(P,k,W),P=tt(P,k);else if(!c||h||f||g){if(c&&!f&&h^g)P=tt(P,k),h?(Y=0,P=dt(P,k,W)):(Y=1,P=dt(P,k,W),P=tt(P,k));else if(c&&h&&!f&&g)Y=1,P=dt(P,k,W),P=tt(P,k);else if(!c&&!f&&h^g){var D=y;h?(Y=1,P=dt(P,k,W),Y=0,y=!1,P=dt(P,k,W),y=D):(Y=0,P=dt(P,k,W),P=tt(P,k),Y=1,y=!1,P=dt(P,k,W),y=D,P=tt(P,k))}}else Y=0,P=dt(P,k,W);else Y=h?1:0,P=dt(P,k,W);return P},this.__bidiEngine__.setOptions=function(P){P&&(c=P.isInputVisual,f=P.isOutputVisual,h=P.isInputRtl,g=P.isOutputRtl,y=P.isSymmetricSwapping)},this.__bidiEngine__.setOptions(a),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(a){var u=a.text,o=(a.x,a.y,a.options||{}),c=(a.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,r.setOptions(o),Object.prototype.toString.call(u)==="[object Array]"){var h=0;for(c=[],h=0;h<u.length;h+=1)Object.prototype.toString.call(u[h])==="[object Array]"?c.push([r.doBidiReorder(u[h][0]),u[h][1],u[h][2]]):c.push([r.doBidiReorder(u[h])]);a.text=c}else a.text=r.doBidiReorder(u);r.setOptions({isInputVisual:!0})}])})(Rt),Rt.API.TTFFont=(function(){function n(e){var r;if(this.rawData=e,r=this.contents=new Bn(e),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new xc(this),this.registerTTF()}return n.open=function(e){return new n(e)},n.prototype.parse=function(){return this.directory=new cc(this.contents),this.head=new fc(this),this.name=new vc(this),this.cmap=new Uu(this),this.toUnicode={},this.hhea=new dc(this),this.maxp=new bc(this),this.hmtx=new yc(this),this.post=new gc(this),this.os2=new pc(this),this.loca=new Ac(this),this.glyf=new wc(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 e,r,a,u,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var c,h,f,g;for(g=[],c=0,h=(f=this.bbox).length;c<h;c++)e=f[c],g.push(Math.round(e*this.scaleFactor));return g}).call(this),this.stemV=0,this.post.exists?(a=255&(u=this.post.italic_angle),(32768&(r=u>>16))!=0&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+a)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},n.prototype.characterToGlyph=function(e){var r;return((r=this.cmap.unicode)!=null?r.codeMap[e]:void 0)||0},n.prototype.widthOfGlyph=function(e){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*r},n.prototype.widthOfString=function(e,r,a){var u,o,c,h;for(c=0,o=0,h=(e=""+e).length;0<=h?o<h:o>h;o=0<=h?++o:--o)u=e.charCodeAt(o),c+=this.widthOfGlyph(this.characterToGlyph(u))+a*(1e3/r)||0;return c*(r/1e3)},n.prototype.lineHeight=function(e,r){var a;return r==null&&(r=!1),a=r?this.lineGap:0,(this.ascender+a-this.decender)/1e3*e},n})();var Rr,Bn=(function(){function n(e){this.data=e??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(e){return this.data[this.pos++]=e},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},n.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},n.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},n.prototype.readString=function(e){var r,a;for(a=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)a[r]=String.fromCharCode(this.readByte());return a.join("")},n.prototype.writeString=function(e){var r,a,u;for(u=[],r=0,a=e.length;0<=a?r<a:r>a;r=0<=a?++r:--r)u.push(this.writeByte(e.charCodeAt(r)));return u},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(e){return this.writeInt16(e)},n.prototype.readLongLong=function(){var e,r,a,u,o,c,h,f;return e=this.readByte(),r=this.readByte(),a=this.readByte(),u=this.readByte(),o=this.readByte(),c=this.readByte(),h=this.readByte(),f=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^r)+1099511627776*(255^a)+4294967296*(255^u)+16777216*(255^o)+65536*(255^c)+256*(255^h)+(255^f)+1):72057594037927940*e+281474976710656*r+1099511627776*a+4294967296*u+16777216*o+65536*c+256*h+f},n.prototype.writeLongLong=function(e){var r,a;return r=Math.floor(e/4294967296),a=4294967295&e,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(e){return this.writeInt32(e)},n.prototype.read=function(e){var r,a;for(r=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)r.push(this.readByte());return r},n.prototype.write=function(e){var r,a,u,o;for(o=[],a=0,u=e.length;a<u;a++)r=e[a],o.push(this.writeByte(r));return o},n})(),cc=(function(){var n;function e(r){var a,u,o;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},u=0,o=this.tableCount;0<=o?u<o:u>o;u=0<=o?++u:--u)a={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[a.tag]=a}return e.prototype.encode=function(r){var a,u,o,c,h,f,g,y,w,S,p,O,F;for(F in p=Object.keys(r).length,f=Math.log(2),w=16*Math.floor(Math.log(p)/f),c=Math.floor(w/f),y=16*p-w,(u=new Bn).writeInt(this.scalarType),u.writeShort(p),u.writeShort(w),u.writeShort(c),u.writeShort(y),o=16*p,g=u.pos+o,h=null,O=[],r)for(S=r[F],u.writeString(F),u.writeInt(n(S)),u.writeInt(g),u.writeInt(S.length),O=O.concat(S),F==="head"&&(h=g),g+=S.length;g%4;)O.push(0),g++;return u.write(O),a=2981146554-n(u.data),u.pos=h+8,u.writeUInt32(a),u.data},n=function(r){var a,u,o,c;for(r=Hu.call(r);r.length%4;)r.push(0);for(o=new Bn(r),u=0,a=0,c=r.length;a<c;a=a+=4)u+=o.readUInt32();return 4294967295&u},e})(),hc={}.hasOwnProperty,tn=function(n,e){for(var r in e)hc.call(e,r)&&(n[r]=e[r]);function a(){this.constructor=n}return a.prototype=e.prototype,n.prototype=new a,n.__super__=e.prototype,n};Rr=(function(){function n(e){var r;this.file=e,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return 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 fc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="head",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},e.prototype.encode=function(r){var a;return(a=new Bn).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(r),a.writeShort(this.glyphDataFormat),a.data},e})(),Nu=(function(){function n(e,r){var a,u,o,c,h,f,g,y,w,S,p,O,F,q,_,B,Y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=r+e.readInt(),w=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(f=0;f<256;++f)this.codeMap[f]=e.readByte();break;case 4:for(p=e.readUInt16(),S=p/2,e.pos+=6,o=(function(){var ot,lt;for(lt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)lt.push(e.readUInt16());return lt})(),e.pos+=2,F=(function(){var ot,lt;for(lt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)lt.push(e.readUInt16());return lt})(),g=(function(){var ot,lt;for(lt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)lt.push(e.readUInt16());return lt})(),y=(function(){var ot,lt;for(lt=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)lt.push(e.readUInt16());return lt})(),u=(this.length-e.pos+this.offset)/2,h=(function(){var ot,lt;for(lt=[],f=ot=0;0<=u?ot<u:ot>u;f=0<=u?++ot:--ot)lt.push(e.readUInt16());return lt})(),f=_=0,Y=o.length;_<Y;f=++_)for(q=o[f],a=B=O=F[f];O<=q?B<=q:B>=q;a=O<=q?++B:--B)y[f]===0?c=a+g[f]:(c=h[y[f]/2+(a-O)-(S-f)]||0)!==0&&(c+=g[f]),this.codeMap[a]=65535&c}e.pos=w}return n.encode=function(e,r){var a,u,o,c,h,f,g,y,w,S,p,O,F,q,_,B,Y,ot,lt,wt,tt,z,nt,dt,P,k,W,D,st,it,ct,$,ht,pt,It,N,C,M,R,J,Q,et,rt,At,Nt,Ft;switch(D=new Bn,c=Object.keys(e).sort((function(_t,Ut){return _t-Ut})),r){case"macroman":for(F=0,q=(function(){var _t=[];for(O=0;O<256;++O)_t.push(0);return _t})(),B={0:0},o={},st=0,ht=c.length;st<ht;st++)B[rt=e[u=c[st]]]==null&&(B[rt]=++F),o[u]={old:e[u],new:B[e[u]]},q[u]=B[e[u]];return D.writeUInt16(1),D.writeUInt16(0),D.writeUInt32(12),D.writeUInt16(0),D.writeUInt16(262),D.writeUInt16(0),D.write(q),{charMap:o,subtable:D.data,maxGlyphID:F+1};case"unicode":for(k=[],w=[],Y=0,B={},a={},_=g=null,it=0,pt=c.length;it<pt;it++)B[lt=e[u=c[it]]]==null&&(B[lt]=++Y),a[u]={old:lt,new:B[lt]},h=B[lt]-u,_!=null&&h===g||(_&&w.push(_),k.push(u),g=h),_=u;for(_&&w.push(_),w.push(65535),k.push(65535),dt=2*(nt=k.length),z=2*Math.pow(Math.log(nt)/Math.LN2,2),S=Math.log(z/2)/Math.LN2,tt=2*nt-z,f=[],wt=[],p=[],O=ct=0,It=k.length;ct<It;O=++ct){if(P=k[O],y=w[O],P===65535){f.push(0),wt.push(0);break}if(P-(W=a[P].new)>=32768)for(f.push(0),wt.push(2*(p.length+nt-O)),u=$=P;P<=y?$<=y:$>=y;u=P<=y?++$:--$)p.push(a[u].new);else f.push(W-P),wt.push(0)}for(D.writeUInt16(3),D.writeUInt16(1),D.writeUInt32(12),D.writeUInt16(4),D.writeUInt16(16+8*nt+2*p.length),D.writeUInt16(0),D.writeUInt16(dt),D.writeUInt16(z),D.writeUInt16(S),D.writeUInt16(tt),Q=0,N=w.length;Q<N;Q++)u=w[Q],D.writeUInt16(u);for(D.writeUInt16(0),et=0,C=k.length;et<C;et++)u=k[et],D.writeUInt16(u);for(At=0,M=f.length;At<M;At++)h=f[At],D.writeUInt16(h);for(Nt=0,R=wt.length;Nt<R;Nt++)ot=wt[Nt],D.writeUInt16(ot);for(Ft=0,J=p.length;Ft<J;Ft++)F=p[Ft],D.writeUInt16(F);return{charMap:a,subtable:D.data,maxGlyphID:Y+1}}},n})(),Uu=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="cmap",e.prototype.parse=function(r){var a,u,o;for(r.pos=this.offset,this.version=r.readUInt16(),o=r.readUInt16(),this.tables=[],this.unicode=null,u=0;0<=o?u<o:u>o;u=0<=o?++u:--u)a=new Nu(r,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},e.encode=function(r,a){var u,o;return a==null&&(a="macroman"),u=Nu.encode(r,a),(o=new Bn).writeUInt16(0),o.writeUInt16(1),u.table=o.data.concat(u.subtable),u},e})(),dc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="hhea",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},e})(),pc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="OS/2",e.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=(function(){var a,u;for(u=[],a=0;a<10;++a)u.push(r.readByte());return u})(),this.charRange=(function(){var a,u;for(u=[],a=0;a<4;++a)u.push(r.readInt());return u})(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=(function(){var a,u;for(u=[],a=0;a<2;a=++a)u.push(r.readInt());return u})(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},e})(),gc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="post",e.prototype.parse=function(r){var a,u,o;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var c;for(u=r.readUInt16(),this.glyphNameIndex=[],c=0;0<=u?c<u:c>u;c=0<=u?++c:--c)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],o=[];r.pos<this.offset+this.length;)a=r.readByte(),o.push(this.names.push(r.readString(a)));return o;case 151552:return u=r.readUInt16(),this.offsets=r.read(u);case 196608:break;case 262144:return this.map=(function(){var h,f,g;for(g=[],c=h=0,f=this.file.maxp.numGlyphs;0<=f?h<f:h>f;c=0<=f?++h:--h)g.push(r.readUInt32());return g}).call(this)}},e})(),mc=function(n,e){this.raw=n,this.length=n.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},vc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="name",e.prototype.parse=function(r){var a,u,o,c,h,f,g,y,w,S,p;for(r.pos=this.offset,r.readShort(),a=r.readShort(),f=r.readShort(),u=[],c=0;0<=a?c<a:c>a;c=0<=a?++c:--c)u.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+f+r.readShort()});for(g={},c=w=0,S=u.length;w<S;c=++w)o=u[c],r.pos=o.offset,y=r.readString(o.length),h=new mc(y,o),g[p=o.nameID]==null&&(g[p]=[]),g[o.nameID].push(h);this.strings=g,this.copyright=g[0],this.fontFamily=g[1],this.fontSubfamily=g[2],this.uniqueSubfamily=g[3],this.fontName=g[4],this.version=g[5];try{this.postscriptName=g[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=g[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=g[7],this.manufacturer=g[8],this.designer=g[9],this.description=g[10],this.vendorUrl=g[11],this.designerUrl=g[12],this.license=g[13],this.licenseUrl=g[14],this.preferredFamily=g[15],this.preferredSubfamily=g[17],this.compatibleFull=g[18],this.sampleText=g[19]},e})(),bc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="maxp",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},e})(),yc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="hmtx",e.prototype.parse=function(r){var a,u,o,c,h,f,g;for(r.pos=this.offset,this.metrics=[],a=0,f=this.file.hhea.numberOfMetrics;0<=f?a<f:a>f;a=0<=f?++a:--a)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var y,w;for(w=[],a=y=0;0<=o?y<o:y>o;a=0<=o?++y:--y)w.push(r.readInt16());return w})(),this.widths=(function(){var y,w,S,p;for(p=[],y=0,w=(S=this.metrics).length;y<w;y++)c=S[y],p.push(c.advance);return p}).call(this),u=this.widths[this.widths.length-1],g=[],a=h=0;0<=o?h<o:h>o;a=0<=o?++h:--h)g.push(this.widths.push(u));return g},e.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},e})(),Hu=[].slice,wc=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(r){var a,u,o,c,h,f,g,y,w,S;return r in this.cache?this.cache[r]:(c=this.file.loca,a=this.file.contents,u=c.indexOf(r),(o=c.lengthOf(r))===0?this.cache[r]=null:(a.pos=this.offset+u,h=(f=new Bn(a.read(o))).readShort(),y=f.readShort(),S=f.readShort(),g=f.readShort(),w=f.readShort(),this.cache[r]=h===-1?new Nc(f,y,S,g,w):new Lc(f,h,y,S,g,w),this.cache[r]))},e.prototype.encode=function(r,a,u){var o,c,h,f,g;for(h=[],c=[],f=0,g=a.length;f<g;f++)o=r[a[f]],c.push(h.length),o&&(h=h.concat(o.encode(u)));return c.push(h.length),{table:h,offsets:c}},e})(),Lc=(function(){function n(e,r,a,u,o,c){this.raw=e,this.numberOfContours=r,this.xMin=a,this.yMin=u,this.xMax=o,this.yMax=c,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n})(),Nc=(function(){function n(e,r,a,u,o){var c,h;for(this.raw=e,this.xMin=r,this.yMin=a,this.xMax=u,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;h=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&h;)c.pos+=1&h?4:2,128&h?c.pos+=8:64&h?c.pos+=4:8&h&&(c.pos+=2)}return n.prototype.encode=function(){var e,r,a;for(r=new Bn(Hu.call(this.raw.data)),e=0,a=this.glyphIDs.length;e<a;++e)r.pos=this.glyphOffsets[e];return r.data},n})(),Ac=(function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="loca",e.prototype.parse=function(r){var a,u;return r.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?(function(){var o,c;for(c=[],u=0,o=this.length;u<o;u+=2)c.push(2*r.readUInt16());return c}).call(this):(function(){var o,c;for(c=[],u=0,o=this.length;u<o;u+=4)c.push(r.readUInt32());return c}).call(this)},e.prototype.indexOf=function(r){return this.offsets[r]},e.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},e.prototype.encode=function(r,a){for(var u=new Uint32Array(this.offsets.length),o=0,c=0,h=0;h<u.length;++h)if(u[h]=o,c<a.length&&a[c]==h){++c,u[h]=o;var f=this.offsets[h],g=this.offsets[h+1]-f;g>0&&(o+=g)}for(var y=new Array(4*u.length),w=0;w<u.length;++w)y[4*w+3]=255&u[w],y[4*w+2]=(65280&u[w])>>8,y[4*w+1]=(16711680&u[w])>>16,y[4*w]=(4278190080&u[w])>>24;return y},e})(),xc=(function(){function n(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var e,r,a,u,o;for(r in u=this.font.cmap.tables[0].codeMap,e={},o=this.subset)a=o[r],e[r]=u[a];return e},n.prototype.glyphsFor=function(e){var r,a,u,o,c,h,f;for(u={},c=0,h=e.length;c<h;c++)u[o=e[c]]=this.font.glyf.glyphFor(o);for(o in r=[],u)(a=u[o])!=null&&a.compound&&r.push.apply(r,a.glyphIDs);if(r.length>0)for(o in f=this.glyphsFor(r))a=f[o],u[o]=a;return u},n.prototype.encode=function(e,r){var a,u,o,c,h,f,g,y,w,S,p,O,F,q,_;for(u in a=Uu.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(e),p={0:0},_=a.charMap)p[(f=_[u]).old]=f.new;for(O in S=a.maxGlyphID,c)O in p||(p[O]=S++);return y=(function(B){var Y,ot;for(Y in ot={},B)ot[B[Y]]=Y;return ot})(p),w=Object.keys(y).sort((function(B,Y){return B-Y})),F=(function(){var B,Y,ot;for(ot=[],B=0,Y=w.length;B<Y;B++)h=w[B],ot.push(y[h]);return ot})(),o=this.font.glyf.encode(c,F,p),g=this.font.loca.encode(o.offsets,F),q={cmap:this.font.cmap.raw(),glyf:o.table,loca:g,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(q["OS/2"]=this.font.os2.raw()),this.font.directory.encode(q)},n})();Rt.API.PDFObject=(function(){var n;function e(){}return n=function(r,a){return(Array(a+1).join("0")+r).slice(-a)},e.convert=function(r){var a,u,o,c;if(Array.isArray(r))return"["+(function(){var h,f,g;for(g=[],h=0,f=r.length;h<f;h++)a=r[h],g.push(e.convert(a));return g})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r?.isString)return"("+r+")";if(r instanceof Date)return"(D:"+n(r.getUTCFullYear(),4)+n(r.getUTCMonth(),2)+n(r.getUTCDate(),2)+n(r.getUTCHours(),2)+n(r.getUTCMinutes(),2)+n(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(u in o=["<<"],r)c=r[u],o.push("/"+u+" "+e.convert(c));return o.push(">>"),o.join(`
78
- `)}return""+r},e})();const _c=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:rc,AcroFormAppearance:Mt,AcroFormButton:Re,AcroFormCheckBox:ga,AcroFormChoiceField:Kn,AcroFormComboBox:$n,AcroFormEditBox:da,AcroFormListBox:Zn,AcroFormPasswordField:ma,AcroFormPushButton:pa,AcroFormRadioButton:Qn,AcroFormTextField:jn,GState:ba,ShadingPattern:In,TilingPattern:Xn,default:Rt,jsPDF:Rt},Symbol.toStringTag,{value:"Module"}));export{fe as _,_c as j};
78
+ end`};t.events.push(["putFont",function(a){(function(c){var l=c.font,h=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="Identity-H"){for(var _=l.metadata.Unicode.widths,k=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",j=0;j<k.length;j++)p+=String.fromCharCode(k[j]);var O=d();m({data:p,addLength1:!0,objectId:O}),h("endobj");var M=d();m({data:i(l.metadata.toUnicode),addLength1:!0,objectId:M}),h("endobj");var S=d();h("<<"),h("/Type /FontDescriptor"),h("/FontName /"+na(l.fontName)),h("/FontFile2 "+O+" 0 R"),h("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),h("/Flags "+l.metadata.flags),h("/StemV "+l.metadata.stemV),h("/ItalicAngle "+l.metadata.italicAngle),h("/Ascent "+l.metadata.ascender),h("/Descent "+l.metadata.decender),h("/CapHeight "+l.metadata.capHeight),h(">>"),h("endobj");var V=d();h("<<"),h("/Type /Font"),h("/BaseFont /"+na(l.fontName)),h("/FontDescriptor "+S+" 0 R"),h("/W "+n.API.PDFObject.convert(_)),h("/CIDToGIDMap /Identity"),h("/DW 1000"),h("/Subtype /CIDFontType2"),h("/CIDSystemInfo"),h("<<"),h("/Supplement 0"),h("/Registry (Adobe)"),h("/Ordering ("+l.encoding+")"),h(">>"),h(">>"),h("endobj"),l.objectNumber=d(),h("<<"),h("/Type /Font"),h("/Subtype /Type0"),h("/ToUnicode "+M+" 0 R"),h("/BaseFont /"+na(l.fontName)),h("/Encoding /"+l.encoding),h("/DescendantFonts ["+V+" 0 R]"),h(">>"),h("endobj"),l.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(c){var l=c.font,h=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var _=l.metadata.rawData,k="",p=0;p<_.length;p++)k+=String.fromCharCode(_[p]);var j=d();m({data:k,addLength1:!0,objectId:j}),h("endobj");var O=d();m({data:i(l.metadata.toUnicode),addLength1:!0,objectId:O}),h("endobj");var M=d();h("<<"),h("/Descent "+l.metadata.decender),h("/CapHeight "+l.metadata.capHeight),h("/StemV "+l.metadata.stemV),h("/Type /FontDescriptor"),h("/FontFile2 "+j+" 0 R"),h("/Flags 96"),h("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),h("/FontName /"+na(l.fontName)),h("/ItalicAngle "+l.metadata.italicAngle),h("/Ascent "+l.metadata.ascender),h(">>"),h("endobj"),l.objectNumber=d();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));h("<</Subtype/TrueType/Type/Font/ToUnicode "+O+" 0 R/BaseFont/"+na(l.fontName)+"/FontDescriptor "+M+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),h("endobj"),l.isAlreadyPutted=!0}})(a)}]);var o=function(a){var c,l=a.text||"",h=a.x,d=a.y,m=a.options||{},_=a.mutex||{},k=_.pdfEscape,p=_.activeFontKey,j=_.fonts,O=p,M="",S=0,V="",G=j[O].encoding;if(j[O].encoding!=="Identity-H")return{text:l,x:h,y:d,options:m,mutex:_};for(V=l,O=p,Array.isArray(l)&&(V=l[0]),S=0;S<V.length;S+=1)j[O].metadata.hasOwnProperty("cmap")&&(c=j[O].metadata.cmap.unicode.codeMap[V[S].charCodeAt(0)]),c||V[S].charCodeAt(0)<256&&j[O].metadata.hasOwnProperty("Unicode")?M+=V[S]:M+="";var q="";return parseInt(O.slice(1))<14||G==="WinAnsiEncoding"?q=k(M,O).split("").map(function(it){return it.charCodeAt(0).toString(16)}).join(""):G==="Identity-H"&&(q=e(M,j[O])),_.isHex=!0,{text:q,x:h,y:d,options:m,mutex:_}};t.events.push(["postProcessText",function(a){var c=a.text||"",l=[],h={text:c,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(c)){var d=0;for(d=0;d<c.length;d+=1)Array.isArray(c[d])&&c[d].length===3?l.push([o(Object.assign({},h,{text:c[d][0]})).text,c[d][1],c[d][2]]):l.push(o(Object.assign({},h,{text:c[d]})).text);a.text=l}else a.text=o(Object.assign({},h,{text:c})).text}])})(Mt),(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,i){return t.call(this),this.internal.vFS[e]=i,this},n.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(Mt.API),(function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(i){var o,a,c,l,h,d,m,_=t,k=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],j={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},O={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},M=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],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)$/),V=!1,G=0;this.__bidiEngine__={};var q=function(N){var E=N.charCodeAt(),z=E>>8,U=O[z];return U!==void 0?_[256*U+(255&E)]:z===252||z===253?"AL":S.test(z)?"L":z===8?"R":"N"},it=function(N){for(var E,z=0;z<N.length;z++){if((E=q(N.charAt(z)))==="L")return!1;if(E==="R")return!0}return!1},vt=function(N,E,z,U){var rt,ot,ft,nt,ct=E[U];switch(ct){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":V=!1;break;case"N":case"AN":break;case"EN":V&&(ct="AN");break;case"AL":V=!0,ct="R";break;case"WS":case"BN":ct="N";break;case"CS":U<1||U+1>=E.length||(rt=z[U-1])!=="EN"&&rt!=="AN"||(ot=E[U+1])!=="EN"&&ot!=="AN"?ct="N":V&&(ot="AN"),ct=ot===rt?ot:"N";break;case"ES":ct=(rt=U>0?z[U-1]:"B")==="EN"&&U+1<E.length&&E[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&z[U-1]==="EN"){ct="EN";break}if(V){ct="N";break}for(ft=U+1,nt=E.length;ft<nt&&E[ft]==="ET";)ft++;ct=ft<nt&&E[ft]==="EN"?"EN":"N";break;case"NSM":if(c&&!l){for(nt=E.length,ft=U+1;ft<nt&&E[ft]==="NSM";)ft++;if(ft<nt){var At=N[U],wt=At>=1425&&At<=2303||At===64286;if(rt=E[ft],wt&&(rt==="R"||rt==="AL")){ct="R";break}}}ct=U<1||(rt=E[U-1])==="B"?"N":z[U-1];break;case"B":V=!1,o=!0,ct=G;break;case"S":a=!0,ct="N"}return ct},dt=function(N,E,z){var U=N.split("");return z&&X(U,z,{hiLevel:G}),U.reverse(),E&&E.reverse(),U.join("")},X=function(N,E,z){var U,rt,ot,ft,nt,ct=-1,At=N.length,wt=0,x=[],B=G?p:k,T=[];for(V=!1,o=!1,a=!1,rt=0;rt<At;rt++)T[rt]=q(N[rt]);for(ot=0;ot<At;ot++){if(nt=wt,x[ot]=vt(N,T,x,ot),U=240&(wt=B[nt][j[x[ot]]]),wt&=15,E[ot]=ft=B[wt][5],U>0)if(U===16){for(rt=ct;rt<ot;rt++)E[rt]=1;ct=-1}else ct=-1;if(B[wt][6])ct===-1&&(ct=ot);else if(ct>-1){for(rt=ct;rt<ot;rt++)E[rt]=ft;ct=-1}T[ot]==="B"&&(E[ot]=0),z.hiLevel|=ft}a&&(function(H,J,Z){for(var at=0;at<Z;at++)if(H[at]==="S"){J[at]=G;for(var st=at-1;st>=0&&H[st]==="WS";st--)J[st]=G}})(T,E,At)},R=function(N,E,z,U,rt){if(!(rt.hiLevel<N)){if(N===1&&G===1&&!o)return E.reverse(),void(z&&z.reverse());for(var ot,ft,nt,ct,At=E.length,wt=0;wt<At;){if(U[wt]>=N){for(nt=wt+1;nt<At&&U[nt]>=N;)nt++;for(ct=wt,ft=nt-1;ct<ft;ct++,ft--)ot=E[ct],E[ct]=E[ft],E[ft]=ot,z&&(ot=z[ct],z[ct]=z[ft],z[ft]=ot);wt=nt}wt++}}},tt=function(N,E,z){var U=N.split(""),rt={hiLevel:G};return z||(z=[]),X(U,z,rt),(function(ot,ft,nt){if(nt.hiLevel!==0&&m)for(var ct,At=0;At<ot.length;At++)ft[At]===1&&(ct=M.indexOf(ot[At]))>=0&&(ot[At]=M[ct+1])})(U,z,rt),R(2,U,E,z,rt),R(1,U,E,z,rt),U.join("")};return this.__bidiEngine__.doBidiReorder=function(N,E,z){if((function(rt,ot){if(ot)for(var ft=0;ft<rt.length;ft++)ot[ft]=ft;l===void 0&&(l=it(rt)),d===void 0&&(d=it(rt))})(N,E),c||!h||d)if(c&&h&&l^d)G=l?1:0,N=dt(N,E,z);else if(!c&&h&&d)G=l?1:0,N=tt(N,E,z),N=dt(N,E);else if(!c||l||h||d){if(c&&!h&&l^d)N=dt(N,E),l?(G=0,N=tt(N,E,z)):(G=1,N=tt(N,E,z),N=dt(N,E));else if(c&&l&&!h&&d)G=1,N=tt(N,E,z),N=dt(N,E);else if(!c&&!h&&l^d){var U=m;l?(G=1,N=tt(N,E,z),G=0,m=!1,N=tt(N,E,z),m=U):(G=0,N=tt(N,E,z),N=dt(N,E),G=1,m=!1,N=tt(N,E,z),m=U,N=dt(N,E))}}else G=0,N=tt(N,E,z);else G=l?1:0,N=tt(N,E,z);return N},this.__bidiEngine__.setOptions=function(N){N&&(c=N.isInputVisual,h=N.isOutputVisual,l=N.isInputRtl,d=N.isOutputRtl,m=N.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(i){var o=i.text;i.x,i.y;var a=i.options||{};i.mutex,a.lang;var c=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,e.setOptions(a),Object.prototype.toString.call(o)==="[object Array]"){var l=0;for(c=[],l=0;l<o.length;l+=1)Object.prototype.toString.call(o[l])==="[object Array]"?c.push([e.doBidiReorder(o[l][0]),o[l][1],o[l][2]]):c.push([e.doBidiReorder(o[l])]);i.text=c}else i.text=e.doBidiReorder(o);e.setOptions({isInputVisual:!0})}])})(Mt),Mt.API.TTFFont=(function(){function n(t){var e;if(this.rawData=t,e=this.contents=new Qr(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new p2(this),this.registerTTF()}return n.open=function(t){return new n(t)},n.prototype.parse=function(){return this.directory=new t2(this.contents),this.head=new n2(this),this.name=new o2(this),this.cmap=new Df(this),this.toUnicode={},this.hhea=new r2(this),this.maxp=new l2(this),this.hmtx=new u2(this),this.post=new a2(this),this.os2=new i2(this),this.loca=new d2(this),this.glyf=new f2(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,i,o,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var c,l,h,d;for(d=[],c=0,l=(h=this.bbox).length;c<l;c++)t=h[c],d.push(Math.round(t*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(i=255&(o=this.post.italic_angle),32768&(e=o>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+i)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},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,i){var o,a,c,l;for(c=0,a=0,l=(t=""+t).length;0<=l?a<l:a>l;a=0<=l?++a:--a)o=t.charCodeAt(a),c+=this.widthOfGlyph(this.characterToGlyph(o))+i*(1e3/e)||0;return c*(e/1e3)},n.prototype.lineHeight=function(t,e){var i;return e==null&&(e=!1),i=e?this.lineGap:0,(this.ascender+i-this.decender)/1e3*t},n})();var er,Qr=(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,i;for(i=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)i[e]=String.fromCharCode(this.readByte());return i.join("")},n.prototype.writeString=function(t){var e,i,o;for(o=[],e=0,i=t.length;0<=i?e<i:e>i;e=0<=i?++e:--e)o.push(this.writeByte(t.charCodeAt(e)));return o},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(t){return this.writeInt16(t)},n.prototype.readLongLong=function(){var t,e,i,o,a,c,l,h;return t=this.readByte(),e=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),c=this.readByte(),l=this.readByte(),h=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^i)+4294967296*(255^o)+16777216*(255^a)+65536*(255^c)+256*(255^l)+(255^h)+1):72057594037927940*t+281474976710656*e+1099511627776*i+4294967296*o+16777216*a+65536*c+256*l+h},n.prototype.writeLongLong=function(t){var e,i;return e=Math.floor(t/4294967296),i=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(t){return this.writeInt32(t)},n.prototype.read=function(t){var e,i;for(e=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)e.push(this.readByte());return e},n.prototype.write=function(t){var e,i,o,a;for(a=[],i=0,o=t.length;i<o;i++)e=t[i],a.push(this.writeByte(e));return a},n})(),t2=(function(){var n;function t(e){var i,o,a;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},o=0,a=this.tableCount;0<=a?o<a:o>a;o=0<=a?++o:--o)i={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[i.tag]=i}return t.prototype.encode=function(e){var i,o,a,c,l,h,d,m,_,k,p,j,O;for(O in p=Object.keys(e).length,h=Math.log(2),_=16*Math.floor(Math.log(p)/h),c=Math.floor(_/h),m=16*p-_,(o=new Qr).writeInt(this.scalarType),o.writeShort(p),o.writeShort(_),o.writeShort(c),o.writeShort(m),a=16*p,d=o.pos+a,l=null,j=[],e)for(k=e[O],o.writeString(O),o.writeInt(n(k)),o.writeInt(d),o.writeInt(k.length),j=j.concat(k),O==="head"&&(l=d),d+=k.length;d%4;)j.push(0),d++;return o.write(j),i=2981146554-n(o.data),o.pos=l+8,o.writeUInt32(i),o.data},n=function(e){var i,o,a,c;for(e=qf.call(e);e.length%4;)e.push(0);for(a=new Qr(e),o=0,i=0,c=e.length;i<c;i=i+=4)o+=a.readUInt32();return 4294967295&o},t})(),e2={}.hasOwnProperty,mr=function(n,t){for(var e in t)e2.call(t,e)&&(n[e]=t[e]);function i(){this.constructor=n}return i.prototype=t.prototype,n.prototype=new i,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 n2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(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 Qr).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})(),Ju=(function(){function n(t,e){var i,o,a,c,l,h,d,m,_,k,p,j,O,M,S,V,G;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),_=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(h=0;h<256;++h)this.codeMap[h]=t.readByte();break;case 4:for(p=t.readUInt16(),k=p/2,t.pos+=6,a=(function(){var q,it;for(it=[],h=q=0;0<=k?q<k:q>k;h=0<=k?++q:--q)it.push(t.readUInt16());return it})(),t.pos+=2,O=(function(){var q,it;for(it=[],h=q=0;0<=k?q<k:q>k;h=0<=k?++q:--q)it.push(t.readUInt16());return it})(),d=(function(){var q,it;for(it=[],h=q=0;0<=k?q<k:q>k;h=0<=k?++q:--q)it.push(t.readUInt16());return it})(),m=(function(){var q,it;for(it=[],h=q=0;0<=k?q<k:q>k;h=0<=k?++q:--q)it.push(t.readUInt16());return it})(),o=(this.length-t.pos+this.offset)/2,l=(function(){var q,it;for(it=[],h=q=0;0<=o?q<o:q>o;h=0<=o?++q:--q)it.push(t.readUInt16());return it})(),h=S=0,G=a.length;S<G;h=++S)for(M=a[h],i=V=j=O[h];j<=M?V<=M:V>=M;i=j<=M?++V:--V)m[h]===0?c=i+d[h]:(c=l[m[h]/2+(i-j)-(k-h)]||0)!==0&&(c+=d[h]),this.codeMap[i]=65535&c}t.pos=_}return n.encode=function(t,e){var i,o,a,c,l,h,d,m,_,k,p,j,O,M,S,V,G,q,it,vt,dt,X,R,tt,N,E,z,U,rt,ot,ft,nt,ct,At,wt,x,B,T,H,J,Z,at,st,gt,_t,kt;switch(U=new Qr,c=Object.keys(t).sort(function(St,Dt){return St-Dt}),e){case"macroman":for(O=0,M=(function(){var St=[];for(j=0;j<256;++j)St.push(0);return St})(),V={0:0},a={},rt=0,ct=c.length;rt<ct;rt++)V[st=t[o=c[rt]]]==null&&(V[st]=++O),a[o]={old:t[o],new:V[t[o]]},M[o]=V[t[o]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(M),{charMap:a,subtable:U.data,maxGlyphID:O+1};case"unicode":for(E=[],_=[],G=0,V={},i={},S=d=null,ot=0,At=c.length;ot<At;ot++)V[it=t[o=c[ot]]]==null&&(V[it]=++G),i[o]={old:it,new:V[it]},l=V[it]-o,S!=null&&l===d||(S&&_.push(S),E.push(o),d=l),S=o;for(S&&_.push(S),_.push(65535),E.push(65535),tt=2*(R=E.length),X=2*Math.pow(Math.log(R)/Math.LN2,2),k=Math.log(X/2)/Math.LN2,dt=2*R-X,h=[],vt=[],p=[],j=ft=0,wt=E.length;ft<wt;j=++ft){if(N=E[j],m=_[j],N===65535){h.push(0),vt.push(0);break}if(N-(z=i[N].new)>=32768)for(h.push(0),vt.push(2*(p.length+R-j)),o=nt=N;N<=m?nt<=m:nt>=m;o=N<=m?++nt:--nt)p.push(i[o].new);else h.push(z-N),vt.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*R+2*p.length),U.writeUInt16(0),U.writeUInt16(tt),U.writeUInt16(X),U.writeUInt16(k),U.writeUInt16(dt),Z=0,x=_.length;Z<x;Z++)o=_[Z],U.writeUInt16(o);for(U.writeUInt16(0),at=0,B=E.length;at<B;at++)o=E[at],U.writeUInt16(o);for(gt=0,T=h.length;gt<T;gt++)l=h[gt],U.writeUInt16(l);for(_t=0,H=vt.length;_t<H;_t++)q=vt[_t],U.writeUInt16(q);for(kt=0,J=p.length;kt<J;kt++)O=p[kt],U.writeUInt16(O);return{charMap:i,subtable:U.data,maxGlyphID:G+1}}},n})(),Df=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,er),n.prototype.tag="cmap",n.prototype.parse=function(t){var e,i,o;for(t.pos=this.offset,this.version=t.readUInt16(),o=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=o?i<o:i>o;i=0<=o?++i:--i)e=new Ju(t,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},n.encode=function(t,e){var i,o;return e==null&&(e="macroman"),i=Ju.encode(t,e),(o=new Qr).writeUInt16(0),o.writeUInt16(1),i.table=o.data.concat(i.subtable),i},n})(),r2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(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})(),i2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(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,i;for(i=[],e=0;e<10;++e)i.push(t.readByte());return i})(),this.charRange=(function(){var e,i;for(i=[],e=0;e<4;++e)i.push(t.readInt());return i})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var e,i;for(i=[],e=0;e<2;e=++e)i.push(t.readInt());return i})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},n})(),a2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,er),n.prototype.tag="post",n.prototype.parse=function(t){var e,i,o;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(i=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=i?a<i:a>i;a=0<=i?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],o=[];t.pos<this.offset+this.length;)e=t.readByte(),o.push(this.names.push(t.readString(e)));return o;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);case 262144:return this.map=(function(){var c,l,h;for(h=[],a=c=0,l=this.file.maxp.numGlyphs;0<=l?c<l:c>l;a=0<=l?++c:--c)h.push(t.readUInt32());return h}).call(this)}},n})(),s2=function(n,t){this.raw=n,this.length=n.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},o2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,er),n.prototype.tag="name",n.prototype.parse=function(t){var e,i,o,a,c,l,h,d,m,_,k;for(t.pos=this.offset,t.readShort(),e=t.readShort(),l=t.readShort(),i=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(h={},a=m=0,_=i.length;m<_;a=++m)o=i[a],t.pos=o.offset,d=t.readString(o.length),c=new s2(d,o),h[k=o.nameID]==null&&(h[k]=[]),h[o.nameID].push(c);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},n})(),l2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(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 mr(n,er),n.prototype.tag="hmtx",n.prototype.parse=function(t){var e,i,o,a,c,l,h;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(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,m;for(m=[],e=d=0;0<=o?d<o:d>o;e=0<=o?++d:--d)m.push(t.readInt16());return m})(),this.widths=(function(){var d,m,_,k;for(k=[],d=0,m=(_=this.metrics).length;d<m;d++)a=_[d],k.push(a.advance);return k}).call(this),i=this.widths[this.widths.length-1],h=[],e=c=0;0<=o?c<o:c>o;e=0<=o?++c:--c)h.push(this.widths.push(i));return h},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})(),qf=[].slice,f2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,er),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(t){var e,i,o,a,c,l,h,d,m,_;return t in this.cache?this.cache[t]:(a=this.file.loca,e=this.file.contents,i=a.indexOf(t),(o=a.lengthOf(t))===0?this.cache[t]=null:(e.pos=this.offset+i,c=(l=new Qr(e.read(o))).readShort(),d=l.readShort(),_=l.readShort(),h=l.readShort(),m=l.readShort(),this.cache[t]=c===-1?new c2(l,d,_,h,m):new h2(l,c,d,_,h,m),this.cache[t]))},n.prototype.encode=function(t,e,i){var o,a,c,l,h;for(c=[],a=[],l=0,h=e.length;l<h;l++)o=t[e[l]],a.push(c.length),o&&(c=c.concat(o.encode(i)));return a.push(c.length),{table:c,offsets:a}},n})(),h2=(function(){function n(t,e,i,o,a,c){this.raw=t,this.numberOfContours=e,this.xMin=i,this.yMin=o,this.xMax=a,this.yMax=c,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n})(),c2=(function(){function n(t,e,i,o,a){var c,l;for(this.raw=t,this.xMin=e,this.yMin=i,this.xMax=o,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;l=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&l;)c.pos+=1&l?4:2,128&l?c.pos+=8:64&l?c.pos+=4:8&l&&(c.pos+=2)}return n.prototype.encode=function(){var t,e,i;for(e=new Qr(qf.call(this.raw.data)),t=0,i=this.glyphIDs.length;t<i;++t)e.pos=this.glyphOffsets[t];return e.data},n})(),d2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return mr(n,er),n.prototype.tag="loca",n.prototype.parse=function(t){var e,i;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var o,a;for(a=[],i=0,o=this.length;i<o;i+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var o,a;for(a=[],i=0,o=this.length;i<o;i+=4)a.push(t.readUInt32());return a}).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 i=new Uint32Array(this.offsets.length),o=0,a=0,c=0;c<i.length;++c)if(i[c]=o,a<e.length&&e[a]==c){++a,i[c]=o;var l=this.offsets[c],h=this.offsets[c+1]-l;h>0&&(o+=h)}for(var d=new Array(4*i.length),m=0;m<i.length;++m)d[4*m+3]=255&i[m],d[4*m+2]=(65280&i[m])>>8,d[4*m+1]=(16711680&i[m])>>16,d[4*m]=(4278190080&i[m])>>24;return d},n})(),p2=(function(){function n(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var t,e,i,o,a;for(e in o=this.font.cmap.tables[0].codeMap,t={},a=this.subset)i=a[e],t[e]=o[i];return t},n.prototype.glyphsFor=function(t){var e,i,o,a,c,l,h;for(o={},c=0,l=t.length;c<l;c++)o[a=t[c]]=this.font.glyf.glyphFor(a);for(a in e=[],o)(i=o[a])!=null&&i.compound&&e.push.apply(e,i.glyphIDs);if(e.length>0)for(a in h=this.glyphsFor(e))i=h[a],o[a]=i;return o},n.prototype.encode=function(t,e){var i,o,a,c,l,h,d,m,_,k,p,j,O,M,S;for(o in i=Df.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(t),p={0:0},S=i.charMap)p[(h=S[o]).old]=h.new;for(j in k=i.maxGlyphID,c)j in p||(p[j]=k++);return m=(function(V){var G,q;for(G in q={},V)q[V[G]]=G;return q})(p),_=Object.keys(m).sort(function(V,G){return V-G}),O=(function(){var V,G,q;for(q=[],V=0,G=_.length;V<G;V++)l=_[V],q.push(m[l]);return q})(),a=this.font.glyf.encode(c,O,p),d=this.font.loca.encode(a.offsets,O),M={cmap:this.font.cmap.raw(),glyf:a.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(M["OS/2"]=this.font.os2.raw()),this.font.directory.encode(M)},n})();Mt.API.PDFObject=(function(){var n;function t(){}return n=function(e,i){return(Array(i+1).join("0")+e).slice(-i)},t.convert=function(e){var i,o,a,c;if(Array.isArray(e))return"["+(function(){var l,h,d;for(d=[],l=0,h=e.length;l<h;l++)i=e[l],d.push(t.convert(i));return d})().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(o in a=["<<"],e)c=e[o],a.push("/"+o+" "+t.convert(c));return a.push(">>"),a.join(`
79
+ `)}return""+e},t})();const m2=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:H1,AcroFormAppearance:It,AcroFormButton:nn,AcroFormCheckBox:ja,AcroFormChoiceField:xi,AcroFormComboBox:Ai,AcroFormEditBox:Ea,AcroFormListBox:_i,AcroFormPasswordField:Ba,AcroFormPushButton:Oa,AcroFormRadioButton:Ni,AcroFormTextField:Zr,GState:Ra,ShadingPattern:Xr,TilingPattern:yi,default:Mt,jsPDF:Mt},Symbol.toStringTag,{value:"Module"}));export{xe as _,m2 as j};