Files
ccdi/doc/纪检初核系统-离线演示包/mb-proto2/lazy-lib-dl-906655530ecd54e72602.js
2026-01-27 17:09:32 +08:00

169 lines
417 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
try{let pr=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},$i=new pr.Error().stack;$i&&(pr._sentryDebugIds=pr._sentryDebugIds||{},pr._sentryDebugIds[$i]="83dca642-8fa0-41e0-8c40-8a400c7c0532",pr._sentryDebugIdIdentifier="sentry-dbid-83dca642-8fa0-41e0-8c40-8a400c7c0532")}catch(pr){}{let pr=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};pr.SENTRY_RELEASE={id:"22.14.4"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[976],{77109:(pr,$i,Tn)=>{Tn.r($i),Tn.d($i,{BwsImgCmp:()=>on,JsPdf:()=>Yt,zip:()=>Sc});var _u={},dc=function(e,t,n,i,o){var r=new Worker(_u[t]||(_u[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return r.onmessage=function(s){var u=s.data,c=u.$e$;if(c){var m=new Error(c[0]);m.code=c[1],m.stack=c[2],o(m,null)}else o(null,u)},r.postMessage(n,i),r},pe=Uint8Array,ln=Uint16Array,ta=Int32Array,ui=new pe([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]),li=new pe([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]),ea=new pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Su=function(e,t){for(var n=new ln(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new ta(n[30]),i=1;i<30;++i)for(var r=n[i];r<n[i+1];++r)o[r]=r-n[i]<<5|i;return{b:n,r:o}},Pu=Su(ui,2),ss=Pu.b,Ta=Pu.r;ss[28]=258,Ta[258]=28;for(var ku=Su(li,0),Iu=ku.b,us=ku.r,na=new ln(32768),Se=0;Se<32768;++Se){var Sr=(Se&43690)>>1|(Se&21845)<<1;Sr=(Sr&52428)>>2|(Sr&13107)<<2,Sr=(Sr&61680)>>4|(Sr&3855)<<4,na[Se]=((Sr&65280)>>8|(Sr&255)<<8)>>1}for(var Pn=function(e,t,n){for(var i=e.length,o=0,r=new ln(t);o<i;++o)e[o]&&++r[e[o]-1];var s=new ln(t);for(o=1;o<t;++o)s[o]=s[o-1]+r[o-1]<<1;var u;if(n){u=new ln(1<<t);var c=15-t;for(o=0;o<i;++o)if(e[o])for(var m=o<<4|e[o],d=t-e[o],p=s[e[o]-1]++<<d,g=p|(1<<d)-1;p<=g;++p)u[na[p]>>c]=m}else for(u=new ln(i),o=0;o<i;++o)e[o]&&(u[o]=na[s[e[o]-1]++]>>15-e[o]);return u},gr=new pe(288),Se=0;Se<144;++Se)gr[Se]=8;for(var Se=144;Se<256;++Se)gr[Se]=9;for(var Se=256;Se<280;++Se)gr[Se]=7;for(var Se=280;Se<288;++Se)gr[Se]=8;for(var ci=new pe(32),Se=0;Se<32;++Se)ci[Se]=5;var Fu=Pn(gr,9,0),Cu=Pn(gr,9,1),Eu=Pn(ci,5,0),ju=Pn(ci,5,1),Ra=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},kn=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},qa=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},ra=function(e){return(e+7)/8|0},Pr=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new pe(e.subarray(t,n))},e1={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Ou=["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"],ue=function(e,t,n){var i=new Error(t||Ou[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,ue),!n)throw i;return i},Ua=function(e,t,n,i){var o=e.length,r=i?i.length:0;if(!o||t.f&&!t.l)return n||new pe(0);var s=!n,u=s||t.i!=2,c=t.i;s&&(n=new pe(o*3));var m=function(bt){var St=n.length;if(bt>St){var Ft=new pe(Math.max(St*2,bt));Ft.set(n),n=Ft}},d=t.f||0,p=t.p||0,g=t.b||0,f=t.l,w=t.d,N=t.m,C=t.n,y=o*8;do{if(!f){d=kn(e,p,1);var M=kn(e,p+1,3);if(p+=3,M)if(M==1)f=Cu,w=ju,N=9,C=5;else if(M==2){var W=kn(e,p,31)+257,Q=kn(e,p+10,15)+4,x=W+kn(e,p+5,31)+1;p+=14;for(var k=new pe(x),H=new pe(19),A=0;A<Q;++A)H[ea[A]]=kn(e,p+A*3,7);p+=Q*3;for(var L=Ra(H),B=(1<<L)-1,F=Pn(H,L,1),A=0;A<x;){var Y=F[kn(e,p,B)];p+=Y&15;var z=Y>>4;if(z<16)k[A++]=z;else{var E=0,I=0;for(z==16?(I=3+kn(e,p,3),p+=2,E=k[A-1]):z==17?(I=3+kn(e,p,7),p+=3):z==18&&(I=11+kn(e,p,127),p+=7);I--;)k[A++]=E}}var X=k.subarray(0,W),J=k.subarray(W);N=Ra(X),C=Ra(J),f=Pn(X,N,1),w=Pn(J,C,1)}else ue(1);else{var z=ra(p)+4,G=e[z-4]|e[z-3]<<8,$=z+G;if($>o){c&&ue(0);break}u&&m(g+G),n.set(e.subarray(z,$),g),t.b=g+=G,t.p=p=$*8,t.f=d;continue}if(p>y){c&&ue(0);break}}u&&m(g+131072);for(var tt=(1<<N)-1,gt=(1<<C)-1,_=p;;_=p){var E=f[qa(e,p)&tt],R=E>>4;if(p+=E&15,p>y){c&&ue(0);break}if(E||ue(2),R<256)n[g++]=R;else if(R==256){_=p,f=null;break}else{var q=R-254;if(R>264){var A=R-257,U=ui[A];q=kn(e,p,(1<<U)-1)+ss[A],p+=U}var et=w[qa(e,p)&gt],st=et>>4;et||ue(3),p+=et&15;var J=Iu[st];if(st>3){var U=li[st];J+=qa(e,p)&(1<<U)-1,p+=U}if(p>y){c&&ue(0);break}u&&m(g+131072);var lt=g+q;if(g<J){var ut=r-J,wt=Math.min(J,lt);for(ut+g<0&&ue(3);g<wt;++g)n[g]=i[ut+g]}for(;g<lt;++g)n[g]=n[g-J]}}t.l=f,t.p=_,t.b=g,t.f=d,f&&(d=1,t.m=N,t.d=w,t.n=C)}while(!d);return g!=n.length&&s?Pr(n,0,g):n.subarray(0,g)},$n=function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},fi=function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},za=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var o=n.length,r=n.slice();if(!o)return{t:hs,l:0};if(o==1){var s=new pe(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function($,W){return $.f-W.f}),n.push({s:-1,f:25001});var u=n[0],c=n[1],m=0,d=1,p=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};d!=o-1;)u=n[n[m].f<n[p].f?m++:p++],c=n[m!=d&&n[m].f<n[p].f?m++:p++],n[d++]={s:-1,f:u.f+c.f,l:u,r:c};for(var g=r[0].s,i=1;i<o;++i)r[i].s>g&&(g=r[i].s);var f=new ln(g+1),w=Ha(n[d-1],f,0);if(w>t){var i=0,N=0,C=w-t,y=1<<C;for(r.sort(function(W,Q){return f[Q.s]-f[W.s]||W.f-Q.f});i<o;++i){var M=r[i].s;if(f[M]>t)N+=y-(1<<w-f[M]),f[M]=t;else break}for(N>>=C;N>0;){var z=r[i].s;f[z]<t?N-=1<<t-f[z]++-1:++i}for(;i>=0&&N;--i){var G=r[i].s;f[G]==t&&(--f[G],++N)}w=t}return{t:new pe(f),l:w}},Ha=function(e,t,n){return e.s==-1?Math.max(Ha(e.l,t,n+1),Ha(e.r,t,n+1)):t[e.s]=n},ls=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ln(++t),i=0,o=e[0],r=1,s=function(c){n[i++]=c},u=1;u<=t;++u)if(e[u]==o&&u!=t)++r;else{if(!o&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(o),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(o);r=1,o=e[u]}return{c:n.subarray(0,i),n:t}},hi=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},cs=function(e,t,n){var i=n.length,o=ra(t+2);e[o]=i&255,e[o+1]=i>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var r=0;r<i;++r)e[o+r+4]=n[r];return(o+4+i)*8},fs=function(e,t,n,i,o,r,s,u,c,m,d){$n(t,d++,n),++o[256];for(var p=za(o,15),g=p.t,f=p.l,w=za(r,15),N=w.t,C=w.l,y=ls(g),M=y.c,z=y.n,G=ls(N),$=G.c,W=G.n,Q=new ln(19),x=0;x<M.length;++x)++Q[M[x]&31];for(var x=0;x<$.length;++x)++Q[$[x]&31];for(var k=za(Q,7),H=k.t,A=k.l,L=19;L>4&&!H[ea[L-1]];--L);var B=m+5<<3,F=hi(o,gr)+hi(r,ci)+s,Y=hi(o,g)+hi(r,N)+s+14+3*L+hi(Q,H)+2*Q[16]+3*Q[17]+7*Q[18];if(c>=0&&B<=F&&B<=Y)return cs(t,d,e.subarray(c,c+m));var E,I,X,J;if($n(t,d,1+(Y<F)),d+=2,Y<F){E=Pn(g,f,0),I=g,X=Pn(N,C,0),J=N;var tt=Pn(H,A,0);$n(t,d,z-257),$n(t,d+5,W-1),$n(t,d+10,L-4),d+=14;for(var x=0;x<L;++x)$n(t,d+3*x,H[ea[x]]);d+=3*L;for(var gt=[M,$],_=0;_<2;++_)for(var R=gt[_],x=0;x<R.length;++x){var q=R[x]&31;$n(t,d,tt[q]),d+=H[q],q>15&&($n(t,d,R[x]>>5&127),d+=R[x]>>12)}}else E=Fu,I=gr,X=Eu,J=ci;for(var x=0;x<u;++x){var U=i[x];if(U>255){var q=U>>18&31;fi(t,d,E[q+257]),d+=I[q+257],q>7&&($n(t,d,U>>23&31),d+=ui[q]);var et=U&31;fi(t,d,X[et]),d+=J[et],et>3&&(fi(t,d,U>>5&8191),d+=li[et])}else fi(t,d,E[U]),d+=I[U]}return fi(t,d,E[256]),d+I[256]},Mu=new ta([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),hs=new pe(0),Bu=function(e,t,n,i,o,r){var s=r.z||e.length,u=new pe(i+s+5*(1+Math.ceil(s/7e3))+o),c=u.subarray(i,u.length-o),m=r.l,d=(r.r||0)&7;if(t){d&&(c[0]=r.r>>3);for(var p=Mu[t-1],g=p>>13,f=p&8191,w=(1<<n)-1,N=r.p||new ln(32768),C=r.h||new ln(w+1),y=Math.ceil(n/3),M=2*y,z=function(qt){return(e[qt]^e[qt+1]<<y^e[qt+2]<<M)&w},G=new ta(25e3),$=new ln(288),W=new ln(32),Q=0,x=0,k=r.i||0,H=0,A=r.w||0,L=0;k+2<s;++k){var B=z(k),F=k&32767,Y=C[B];if(N[F]=Y,C[B]=F,A<=k){var E=s-k;if((Q>7e3||H>24576)&&(E>423||!m)){d=fs(e,c,0,G,$,W,x,H,L,k-L,d),H=Q=x=0,L=k;for(var I=0;I<286;++I)$[I]=0;for(var I=0;I<30;++I)W[I]=0}var X=2,J=0,tt=f,gt=F-Y&32767;if(E>2&&B==z(k-gt))for(var _=Math.min(g,E)-1,R=Math.min(32767,k),q=Math.min(258,E);gt<=R&&--tt&&F!=Y;){if(e[k+X]==e[k+X-gt]){for(var U=0;U<q&&e[k+U]==e[k+U-gt];++U);if(U>X){if(X=U,J=gt,U>_)break;for(var et=Math.min(gt,U-2),st=0,I=0;I<et;++I){var lt=k-gt+I&32767,ut=N[lt],wt=lt-ut&32767;wt>st&&(st=wt,Y=lt)}}}F=Y,Y=N[F],gt+=F-Y&32767}if(J){G[H++]=268435456|Ta[X]<<18|us[J];var bt=Ta[X]&31,St=us[J]&31;x+=ui[bt]+li[St],++$[257+bt],++W[St],A=k+X,++Q}else G[H++]=e[k],++$[e[k]]}}for(k=Math.max(k,A);k<s;++k)G[H++]=e[k],++$[e[k]];d=fs(e,c,m,G,$,W,x,H,L,k-L,d),m||(r.r=d&7|c[d/8|0]<<3,d-=7,r.h=C,r.p=N,r.i=k,r.w=A)}else{for(var k=r.w||0;k<s+m;k+=65535){var Ft=k+65535;Ft>=s&&(c[d/8|0]=m,Ft=s),d=cs(c,d+1,e.subarray(k,Ft))}r.i=s}return Pr(u,0,i+ra(d)+o)},Du=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e}(),Wa=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Du[n&255^t[i]]^n>>>8;e=n},d:function(){return~e}}},ds=function(){var e=1,t=0;return{p:function(n){for(var i=e,o=t,r=n.length|0,s=0;s!=r;){for(var u=Math.min(s+2655,r);s<u;++s)o+=i+=n[s];i=(i&65535)+15*(i>>16),o=(o&65535)+15*(o>>16)}e=i,t=o},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Ga=function(e,t,n,i,o){if(!o&&(o={l:1},t.dictionary)){var r=t.dictionary.subarray(-32768),s=new pe(r.length+e.length);s.set(r),s.set(e,r.length),e=s,o.w=r.length}return Bu(e,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,i,o)},Va=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},Tu=function(e,t,n){for(var i=e(),o=e.toString(),r=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<i.length;++s){var u=i[s],c=r[s];if(typeof u=="function"){t+=";"+c+"=";var m=u.toString();if(u.prototype)if(m.indexOf("[native code]")!=-1){var d=m.indexOf(" ",8)+1;t+=m.slice(d,m.indexOf("(",d))}else{t+=m;for(var p in u.prototype)t+=";"+c+".prototype."+p+"="+u.prototype[p].toString()}else t+=m}else n[c]=u}return t},Ya=[],pc=function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},Ru=function(e,t,n,i){if(!Ya[n]){for(var o="",r={},s=e.length-1,u=0;u<s;++u)o=Tu(e[u],o,r);Ya[n]={c:Tu(e[s],o,r),e:r}}var c=Va({},Ya[n].e);return dc(Ya[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,pc(c),i)},ps=function(){return[pe,ln,ta,ui,li,ea,ss,Iu,Cu,ju,na,Ou,Pn,Ra,kn,qa,ra,Pr,ue,Ua,ia,kr,vs]},gs=function(){return[pe,ln,ta,ui,li,ea,Ta,us,Fu,gr,Eu,ci,na,Mu,hs,Pn,$n,fi,za,Ha,ls,hi,cs,fs,ra,Pr,Bu,Ga,Qa,kr]},gc=function(){return[qu,Hu,ke,Wa,Du]},vc=function(){return[Uu,zu]},mc=function(){return[Wu,ke,ds]},bc=function(){return[Gu]},kr=function(e){return postMessage(e,[e.buffer])},vs=function(e){return e&&{out:e.size&&new pe(e.size),dictionary:e.dictionary}},di=function(e,t,n,i,o,r){var s=Ru(n,i,o,function(u,c){s.terminate(),r(u,c)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},n1=function(e){return e.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(t){t.data.length?(e.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):e.flush()}},r1=function(e,t,n,i,o,r,s){var u,c=Ru(e,i,o,function(m,d){m?(c.terminate(),t.ondata.call(t,m)):Array.isArray(d)?d.length==1?(t.queuedSize-=d[0],t.ondrain&&t.ondrain(d[0])):(d[1]&&c.terminate(),t.ondata.call(t,m,d[0],d[1])):s(d)});c.postMessage(n),t.queuedSize=0,t.push=function(m,d){t.ondata||ue(5),u&&t.ondata(ue(4,0,1),null,!!d),t.queuedSize+=m.length,c.postMessage([m,u=d],[m.buffer])},t.terminate=function(){c.terminate()},r&&(t.flush=function(){c.postMessage([])})},Rn=function(e,t){return e[t]|e[t+1]<<8},Ke=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},ms=function(e,t){return Ke(e,t)+Ke(e,t+4)*4294967296},ke=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},qu=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&ke(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}},Uu=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&ue(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},zu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Hu=function(e){return 10+(e.filename?e.filename.length+1:0)},Wu=function(e,t){var n=t.level,i=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=i<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var o=ds();o.p(t.dictionary),ke(e,2,o.d())}},Gu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&ue(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&ue(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function i1(e,t){return typeof e=="function"&&(t=e,e={}),this.ondata=t,e}var a1=null,o1=null;function yc(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ue(7),di(e,t,[gs],function(i){return kr(Qa(i.data[0],i.data[1]))},0,n)}function Qa(e,t){return Ga(e,t||{},0,0)}var s1=null,u1=null;function Vu(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ue(7),di(e,t,[ps],function(i){return kr(ia(i.data[0],vs(i.data[1])))},1,n)}function ia(e,t){return Ua(e,{i:2},t&&t.out,t&&t.dictionary)}var l1=null,c1=null;function f1(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ue(7),di(e,t,[gs,gc,function(){return[Yu]}],function(i){return kr(Yu(i.data[0],i.data[1]))},2,n)}function Yu(e,t){t||(t={});var n=Wa(),i=e.length;n.p(e);var o=Ga(e,t,Hu(t),8),r=o.length;return qu(o,t),ke(o,r-8,n.d()),ke(o,r-4,i),o}var h1=null,d1=null;function wc(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ue(7),di(e,t,[ps,vc,function(){return[bs]}],function(i){return kr(bs(i.data[0],i.data[1]))},3,n)}function bs(e,t){var n=Uu(e);return n+8>e.length&&ue(6,"invalid gzip data"),Ua(e.subarray(n,-8),{i:2},t&&t.out||new pe(zu(e)),t&&t.dictionary)}var p1=null,g1=null;function v1(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ue(7),di(e,t,[gs,mc,function(){return[aa]}],function(i){return kr(aa(i.data[0],i.data[1]))},4,n)}function aa(e,t){t||(t={});var n=ds();n.p(e);var i=Ga(e,t,t.dictionary?6:2,4);return Wu(i,t),ke(i,i.length-4,n.d()),i}var m1=null,b1=null;function Ac(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ue(7),di(e,t,[ps,bc,function(){return[Ja]}],function(i){return kr(Ja(i.data[0],vs(i.data[1])))},5,n)}function Ja(e,t){return Ua(e.subarray(Gu(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var y1=null,w1=null;function A1(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ue(7),e[0]==31&&e[1]==139&&e[2]==8?wc(e,t,n):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Vu(e,t,n):Ac(e,t,n)}function x1(e,t){return e[0]==31&&e[1]==139&&e[2]==8?bs(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?ia(e,t):Ja(e,t)}var ys=function(e,t,n,i){for(var o in e){var r=e[o],s=t+o,u=i;Array.isArray(r)&&(u=Va(i,r[1]),r=r[0]),r instanceof pe?n[s]=[r,u]:(n[s+="/"]=[new pe(0),u],ys(r,s,n,i))}},Qu=typeof TextEncoder<"u"&&new TextEncoder,ws=typeof TextDecoder<"u"&&new TextDecoder,xc=0;try{ws.decode(hs,{stream:!0}),xc=1}catch(e){}var Lc=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return{s:t,r:Pr(e,n-1)};o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}},L1=null,N1=null;function Za(e,t){if(t){for(var n=new pe(e.length),i=0;i<e.length;++i)n[i]=e.charCodeAt(i);return n}if(Qu)return Qu.encode(e);for(var o=e.length,r=new pe(e.length+(e.length>>1)),s=0,u=function(d){r[s++]=d},i=0;i<o;++i){if(s+5>r.length){var c=new pe(s+8+(o-i<<1));c.set(r),r=c}var m=e.charCodeAt(i);m<128||t?u(m):m<2048?(u(192|m>>6),u(128|m&63)):m>55295&&m<57344?(m=65536+(m&1047552)|e.charCodeAt(++i)&1023,u(240|m>>18),u(128|m>>12&63),u(128|m>>6&63),u(128|m&63)):(u(224|m>>12),u(128|m>>6&63),u(128|m&63))}return Pr(r,0,s)}function Nc(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}else{if(ws)return ws.decode(e);var o=Lc(e),r=o.s,n=o.r;return n.length&&ue(8),r}}var _1=function(e){return e==1?3:e<6?2:e==9?1:0},Ju=function(e,t){return t+30+Rn(e,t+26)+Rn(e,t+28)},Zu=function(e,t,n){var i=Rn(e,t+28),o=Nc(e.subarray(t+46,t+46+i),!(Rn(e,t+8)&2048)),r=t+46+i,s=Ke(e,t+20),u=n&&s==4294967295?_c(e,r):[s,Ke(e,t+24),Ke(e,t+42)],c=u[0],m=u[1],d=u[2];return[Rn(e,t+10),c,m,o,r+Rn(e,t+30)+Rn(e,t+32),d]},_c=function(e,t){for(;Rn(e,t)!=1;t+=4+Rn(e,t+2));return[ms(e,t+12),ms(e,t+4),ms(e,t+20)]},oa=function(e){var t=0;if(e)for(var n in e){var i=e[n].length;i>65535&&ue(9),t+=i+4}return t},Xa=function(e,t,n,i,o,r,s,u){var c=i.length,m=n.extra,d=u&&u.length,p=oa(m);ke(e,t,s!=null?33639248:67324752),t+=4,s!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(r<0&&8),e[t++]=o&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var g=new Date(n.mtime==null?Date.now():n.mtime),f=g.getFullYear()-1980;if((f<0||f>119)&&ue(10),ke(e,t,f<<25|g.getMonth()+1<<21|g.getDate()<<16|g.getHours()<<11|g.getMinutes()<<5|g.getSeconds()>>1),t+=4,r!=-1&&(ke(e,t,n.crc),ke(e,t+4,r<0?-r-2:r),ke(e,t+8,n.size)),ke(e,t+12,c),ke(e,t+14,p),t+=16,s!=null&&(ke(e,t,d),ke(e,t+6,n.attrs),ke(e,t+10,s),t+=14),e.set(i,t),t+=c,p)for(var w in m){var N=m[w],C=N.length;ke(e,t,+w),ke(e,t+2,C),e.set(N,t+4),t+=4+C}return d&&(e.set(u,t),t+=d),t},Xu=function(e,t,n,i,o){ke(e,t,101010256),ke(e,t+8,n),ke(e,t+10,n),ke(e,t+12,i),ke(e,t+16,o)},S1=null,P1=null,k1=null,I1=null;function Sc(e,t,n){n||(n=t,t={}),typeof n!="function"&&ue(7);var i={};ys(e,"",i,t);var o=Object.keys(i),r=o.length,s=0,u=0,c=r,m=new Array(r),d=[],p=function(){for(var C=0;C<d.length;++C)d[C]()},g=function(C,y){Ka(function(){n(C,y)})};Ka(function(){g=n});var f=function(){var C=new pe(u+22),y=s,M=u-s;u=0;for(var z=0;z<c;++z){var G=m[z];try{var $=G.c.length;Xa(C,u,G,G.f,G.u,$);var W=30+G.f.length+oa(G.extra),Q=u+W;C.set(G.c,Q),Xa(C,s,G,G.f,G.u,$,u,G.m),s+=16+W+(G.m?G.m.length:0),u=Q+$}catch(x){return g(x,null)}}Xu(C,s,m.length,M,y),g(null,C)};r||f();for(var w=function(C){var y=o[C],M=i[y],z=M[0],G=M[1],$=Wa(),W=z.length;$.p(z);var Q=Za(y),x=Q.length,k=G.comment,H=k&&Za(k),A=H&&H.length,L=oa(G.extra),B=G.level==0?0:8,F=function(Y,E){if(Y)p(),g(Y,null);else{var I=E.length;m[C]=Va(G,{size:W,crc:$.d(),c:E,f:Q,m:H,u:x!=y.length||H&&k.length!=A,compression:B}),s+=30+x+L+I,u+=76+2*(x+L)+(A||0)+I,--r||f()}};if(x>65535&&F(ue(11,0,1),null),!B)F(null,z);else if(W<16e4)try{F(null,Qa(z,G))}catch(Y){F(Y,null)}else d.push(yc(z,G,F))},N=0;N<c;++N)w(N);return p}function F1(e,t){t||(t={});var n={},i=[];ys(e,"",n,t);var o=0,r=0;for(var s in n){var u=n[s],c=u[0],m=u[1],d=m.level==0?0:8,p=Za(s),g=p.length,f=m.comment,w=f&&Za(f),N=w&&w.length,C=oa(m.extra);g>65535&&ue(11);var y=d?Qa(c,m):c,M=y.length,z=Wa();z.p(c),i.push(Va(m,{size:c.length,crc:z.d(),c:y,f:p,m:w,u:g!=s.length||w&&f.length!=N,o,compression:d})),o+=30+g+C+M,r+=76+2*(g+C)+(N||0)+M}for(var G=new pe(r+22),$=o,W=r-o,Q=0;Q<i.length;++Q){var p=i[Q];Xa(G,p.o,p,p.f,p.u,p.c.length);var x=30+p.f.length+oa(p.extra);G.set(p.c,p.o+x),Xa(G,o,p,p.f,p.u,p.c.length,p.o,p.m),o+=16+x+(p.m?p.m.length:0)}return Xu(G,o,i.length,W,$),G}var C1=null,E1=null,j1=null,O1=null,Ka=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function M1(e,t,n){n||(n=t,t={}),typeof n!="function"&&ue(7);var i=[],o=function(){for(var C=0;C<i.length;++C)i[C]()},r={},s=function(C,y){Ka(function(){n(C,y)})};Ka(function(){s=n});for(var u=e.length-22;Ke(e,u)!=101010256;--u)if(!u||e.length-u>65558)return s(ue(13,0,1),null),o;var c=Rn(e,u+8);if(c){var m=c,d=Ke(e,u+16),p=d==4294967295||m==65535;if(p){var g=Ke(e,u-12);p=Ke(e,g)==101075792,p&&(m=c=Ke(e,g+32),d=Ke(e,g+48))}for(var f=t&&t.filter,w=function(C){var y=Zu(e,d,p),M=y[0],z=y[1],G=y[2],$=y[3],W=y[4],Q=y[5],x=Ju(e,Q);d=W;var k=function(A,L){A?(o(),s(A,null)):(L&&(r[$]=L),--c||s(null,r))};if(!f||f({name:$,size:z,originalSize:G,compression:M}))if(!M)k(null,Pr(e,x,x+z));else if(M==8){var H=e.subarray(x,x+z);if(G<524288||z>.8*G)try{k(null,ia(H,{out:new pe(G)}))}catch(A){k(A,null)}else i.push(Vu(H,{size:G},k))}else k(ue(14,"unknown compression type "+M,1),null);else k(null,null)},N=0;N<m;++N)w(N)}else s(null,{});return o}function B1(e,t){for(var n={},i=e.length-22;Ke(e,i)!=101010256;--i)(!i||e.length-i>65558)&&ue(13);var o=Rn(e,i+8);if(!o)return{};var r=Ke(e,i+16),s=r==4294967295||o==65535;if(s){var u=Ke(e,i-12);s=Ke(e,u)==101075792,s&&(o=Ke(e,u+32),r=Ke(e,u+48))}for(var c=t&&t.filter,m=0;m<o;++m){var d=Zu(e,r,s),p=d[0],g=d[1],f=d[2],w=d[3],N=d[4],C=d[5],y=Ju(e,C);r=N,(!c||c({name:w,size:g,originalSize:f,compression:p}))&&(p?p==8?n[w]=ia(e.subarray(y,y+g),{out:new pe(f)}):ue(14,"unknown compression type "+p):n[w]=Pr(e,y,y+g))}return n}var Ae=Tn(91834);/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var Jt=function(){return typeof window<"u"?window:typeof Tn.g<"u"?Tn.g:typeof self<"u"?self:this}();function As(){Jt.console&&typeof Jt.console.log=="function"&&Jt.console.log.apply(Jt.console,arguments)}var xe={log:As,warn:function(e){Jt.console&&(typeof Jt.console.warn=="function"?Jt.console.warn.apply(Jt.console,arguments):As.call(null,arguments))},error:function(e){Jt.console&&(typeof Jt.console.error=="function"?Jt.console.error.apply(Jt.console,arguments):As(e))}};function xs(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){Vr(i.response,t,n)},i.onerror=function(){xe.error("could not download file")},i.send()}function Ku(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function $a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var sa,Ls,Vr=Jt.saveAs||((typeof window>"u"?"undefined":(0,Ae.A)(window))!=="object"||window!==Jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=Jt.URL||Jt.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?Ku(o.href)?xs(e,t,n):$a(o,o.target="_blank"):$a(o)):(o.href=i.createObjectURL(e),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){$a(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(Ku(e))xs(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){$a(i)})}else navigator.msSaveOrOpenBlob(function(o,r){return r===void 0?r={autoBom:!1}:(0,Ae.A)(r)!=="object"&&(xe.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(e,n),t)}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof e=="string")return xs(e,t,n);var o=e.type==="application/octet-stream",r=/constructor/i.test(Jt.HTMLElement)||Jt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&r)&&(typeof FileReader>"u"?"undefined":(0,Ae.A)(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var d=u.result;d=s?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=d:location=d,i=null},u.readAsDataURL(e)}else{var c=Jt.URL||Jt.webkitURL,m=c.createObjectURL(e);i?i.location=m:location.href=m,i=null,setTimeout(function(){c.revokeObjectURL(m)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function $u(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],i=0;i<n.length;i++){var o=n[i].re,r=n[i].process,s=o.exec(e);s&&(t=r(s),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 u=this.r.toString(16),c=this.g.toString(16),m=this.b.toString(16);return u.length==1&&(u="0"+u),c.length==1&&(c="0"+c),m.length==1&&(m="0"+m),"#"+u+c+m}}/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function Ns(e,t){var n=e[0],i=e[1],o=e[2],r=e[3];n=en(n,i,o,r,t[0],7,-680876936),r=en(r,n,i,o,t[1],12,-389564586),o=en(o,r,n,i,t[2],17,606105819),i=en(i,o,r,n,t[3],22,-1044525330),n=en(n,i,o,r,t[4],7,-176418897),r=en(r,n,i,o,t[5],12,1200080426),o=en(o,r,n,i,t[6],17,-1473231341),i=en(i,o,r,n,t[7],22,-45705983),n=en(n,i,o,r,t[8],7,1770035416),r=en(r,n,i,o,t[9],12,-1958414417),o=en(o,r,n,i,t[10],17,-42063),i=en(i,o,r,n,t[11],22,-1990404162),n=en(n,i,o,r,t[12],7,1804603682),r=en(r,n,i,o,t[13],12,-40341101),o=en(o,r,n,i,t[14],17,-1502002290),n=nn(n,i=en(i,o,r,n,t[15],22,1236535329),o,r,t[1],5,-165796510),r=nn(r,n,i,o,t[6],9,-1069501632),o=nn(o,r,n,i,t[11],14,643717713),i=nn(i,o,r,n,t[0],20,-373897302),n=nn(n,i,o,r,t[5],5,-701558691),r=nn(r,n,i,o,t[10],9,38016083),o=nn(o,r,n,i,t[15],14,-660478335),i=nn(i,o,r,n,t[4],20,-405537848),n=nn(n,i,o,r,t[9],5,568446438),r=nn(r,n,i,o,t[14],9,-1019803690),o=nn(o,r,n,i,t[3],14,-187363961),i=nn(i,o,r,n,t[8],20,1163531501),n=nn(n,i,o,r,t[13],5,-1444681467),r=nn(r,n,i,o,t[2],9,-51403784),o=nn(o,r,n,i,t[7],14,1735328473),n=rn(n,i=nn(i,o,r,n,t[12],20,-1926607734),o,r,t[5],4,-378558),r=rn(r,n,i,o,t[8],11,-2022574463),o=rn(o,r,n,i,t[11],16,1839030562),i=rn(i,o,r,n,t[14],23,-35309556),n=rn(n,i,o,r,t[1],4,-1530992060),r=rn(r,n,i,o,t[4],11,1272893353),o=rn(o,r,n,i,t[7],16,-155497632),i=rn(i,o,r,n,t[10],23,-1094730640),n=rn(n,i,o,r,t[13],4,681279174),r=rn(r,n,i,o,t[0],11,-358537222),o=rn(o,r,n,i,t[3],16,-722521979),i=rn(i,o,r,n,t[6],23,76029189),n=rn(n,i,o,r,t[9],4,-640364487),r=rn(r,n,i,o,t[12],11,-421815835),o=rn(o,r,n,i,t[15],16,530742520),n=an(n,i=rn(i,o,r,n,t[2],23,-995338651),o,r,t[0],6,-198630844),r=an(r,n,i,o,t[7],10,1126891415),o=an(o,r,n,i,t[14],15,-1416354905),i=an(i,o,r,n,t[5],21,-57434055),n=an(n,i,o,r,t[12],6,1700485571),r=an(r,n,i,o,t[3],10,-1894986606),o=an(o,r,n,i,t[10],15,-1051523),i=an(i,o,r,n,t[1],21,-2054922799),n=an(n,i,o,r,t[8],6,1873313359),r=an(r,n,i,o,t[15],10,-30611744),o=an(o,r,n,i,t[6],15,-1560198380),i=an(i,o,r,n,t[13],21,1309151649),n=an(n,i,o,r,t[4],6,-145523070),r=an(r,n,i,o,t[11],10,-1120210379),o=an(o,r,n,i,t[2],15,718787259),i=an(i,o,r,n,t[9],21,-343485551),e[0]=Ir(n,e[0]),e[1]=Ir(i,e[1]),e[2]=Ir(o,e[2]),e[3]=Ir(r,e[3])}function to(e,t,n,i,o,r){return t=Ir(Ir(t,e),Ir(i,r)),Ir(t<<o|t>>>32-o,n)}function en(e,t,n,i,o,r,s){return to(t&n|~t&i,e,t,o,r,s)}function nn(e,t,n,i,o,r,s){return to(t&i|n&~i,e,t,o,r,s)}function rn(e,t,n,i,o,r,s){return to(t^n^i,e,t,o,r,s)}function an(e,t,n,i,o,r,s){return to(n^(t|~i),e,t,o,r,s)}function tl(e){var t,n=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Ns(i,Pc(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(Ns(i,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,Ns(i,o),i}function Pc(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}sa=Jt.atob.bind(Jt),Ls=Jt.btoa.bind(Jt);var el="0123456789abcdef".split("");function kc(e){for(var t="",n=0;n<4;n++)t+=el[e>>8*n+4&15]+el[e>>8*n&15];return t}function Ic(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function _s(e){return tl(e).map(Ic).join("")}var Fc=function(e){for(var t=0;t<e.length;t++)e[t]=kc(e[t]);return e.join("")}(tl("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ir(e,t){if(Fc){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function Ss(e,t){var n,i,o,r;if(e!==n){for(var s=(o=e,r=1+(256/e.length>>0),new Array(r+1).join(o)),u=[],c=0;c<256;c++)u[c]=c;var m=0;for(c=0;c<256;c++){var d=u[c];m=(m+d+s.charCodeAt(c))%256,u[c]=u[m],u[m]=d}n=e,i=u}else u=i;var p=t.length,g=0,f=0,w="";for(c=0;c<p;c++)f=(f+(d=u[g=(g+1)%256]))%256,u[g]=u[f],u[f]=d,s=u[(u[g]+u[f])%256],w+=String.fromCharCode(t.charCodeAt(c)^s);return w}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var nl={print:4,modify:8,copy:16,"annot-forms":32};function pi(e,t,n,i){this.v=1,this.r=2;var o=192;e.forEach(function(u){if(nl.perm!==void 0)throw new Error("Invalid permission: "+u);o+=nl[u]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var r=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,s),this.P=-(1+(255^o)),this.encryptionKey=_s(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Ss(this.encryptionKey,this.padding)}function gi(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,i=0;i<n;i++){var o=e.charCodeAt(i);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?t+="#"+("0"+o.toString(16)).slice(-2):t+=e[i]}return t}function rl(e){if((0,Ae.A)(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,i,o){if(o=o||!1,typeof n!="string"||typeof i!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var r=Math.random().toString(35);return t[n][r]=[i,!!o],r},this.unsubscribe=function(n){for(var i in t)if(t[i][n])return delete t[i][n],Object.keys(t[i]).length===0&&delete t[i],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var r in t[n]){var s=t[n][r];try{s[0].apply(e,i)}catch(u){Jt.console&&xe.error("jsPDF PubSub Error",u.message,u)}s[1]&&o.push(r)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function eo(e){if(!(this instanceof eo))return new eo(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function il(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Yr(e,t,n,i,o){if(!(this instanceof Yr))return new Yr(e,t,n,i,o);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,il.call(this,i,o)}function vi(e,t,n,i,o){if(!(this instanceof vi))return new vi(e,t,n,i,o);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,il.call(this,i,o)}function Yt(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],o=arguments[2],r=arguments[3],s=[],u=1,c=16,m="S",d=null;(0,Ae.A)(e=e||{})==="object"&&(n=e.orientation,i=e.unit||i,o=e.format||o,r=e.compress||e.compressPdf||r,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),u=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),m=e.defaultPathOperation||"S"),s=e.filters||(r===!0?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,g={},f={internal:{},__private__:{}};f.__private__.PubSub=rl;var w="1.3",N=f.__private__.getPdfVersion=function(){return w};f.__private__.setPdfVersion=function(h){w=h};var C={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]};f.__private__.getPageFormats=function(){return C};var y=f.__private__.getPageFormat=function(h){return C[h]};o=o||"a4";var M={COMPAT:"compat",ADVANCED:"advanced"},z=M.COMPAT;function G(){this.saveGraphicsState(),K(new Qt(Ct,0,0,-Ct,0,Or()*Ct).toString()+" cm"),this.setFontSize(this.getFontSize()/Ct),m="n",z=M.ADVANCED}function $(){this.restoreGraphicsState(),m="S",z=M.COMPAT}var W=f.__private__.combineFontStyleAndFontWeight=function(h,P){if(h=="bold"&&P=="normal"||h=="bold"&&P==400||h=="normal"&&P=="italic"||h=="bold"&&P=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return P&&(h=P==400||P==="normal"?h==="italic"?"italic":"normal":P!=700&&P!=="bold"||h!=="normal"?(P==700?"bold":P)+""+h:"bold"),h};f.advancedAPI=function(h){var P=z===M.COMPAT;return P&&G.call(this),typeof h!="function"||(h(this),P&&$.call(this)),this},f.compatAPI=function(h){var P=z===M.ADVANCED;return P&&$.call(this),typeof h!="function"||(h(this),P&&G.call(this)),this},f.isAdvancedAPI=function(){return z===M.ADVANCED};var Q,x=function(h){if(z!==M.ADVANCED)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},k=f.roundToPrecision=f.__private__.roundToPrecision=function(h,P){var Z=t||P;if(isNaN(h)||isNaN(Z))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(Z).replace(/0+$/,"")};Q=f.hpf=f.__private__.hpf=typeof c=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return k(h,c)}:c==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return k(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return k(h,16)};var H=f.f2=f.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return k(h,2)},A=f.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return k(h,3)},L=f.scale=f.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return z===M.COMPAT?h*Ct:z===M.ADVANCED?h:void 0},B=function(h){return z===M.COMPAT?Or()-h:z===M.ADVANCED?h:void 0},F=function(h){return L(B(h))};f.__private__.setPrecision=f.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(t=parseInt(h,10))};var Y,E="00000000000000000000000000000000",I=f.__private__.getFileId=function(){return E},X=f.__private__.setFileId=function(h){return E=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():E.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(sn=new pi(d.userPermissions,d.userPassword,d.ownerPassword,E)),E};f.setFileId=function(h){return X(h),this},f.getFileId=function(){return I()};var J=f.__private__.convertDateToPDFDate=function(h){var P=h.getTimezoneOffset(),Z=P<0?"+":"-",nt=Math.floor(Math.abs(P/60)),ct=Math.abs(P%60),vt=[Z,q(nt),"'",q(ct),"'"].join("");return["D:",h.getFullYear(),q(h.getMonth()+1),q(h.getDate()),q(h.getHours()),q(h.getMinutes()),q(h.getSeconds()),vt].join("")},tt=f.__private__.convertPDFDateToDate=function(h){var P=parseInt(h.substr(2,4),10),Z=parseInt(h.substr(6,2),10)-1,nt=parseInt(h.substr(8,2),10),ct=parseInt(h.substr(10,2),10),vt=parseInt(h.substr(12,2),10),Nt=parseInt(h.substr(14,2),10);return new Date(P,Z,nt,ct,vt,Nt,0)},gt=f.__private__.setCreationDate=function(h){var P;if(h===void 0&&(h=new Date),h instanceof Date)P=J(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");P=h}return Y=P},_=f.__private__.getCreationDate=function(h){var P=Y;return h==="jsDate"&&(P=tt(Y)),P};f.setCreationDate=function(h){return gt(h),this},f.getCreationDate=function(h){return _(h)};var R,q=f.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},U=f.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},et=0,st=[],lt=[],ut=0,wt=[],bt=[],St=!1,Ft=lt,qt=function(){et=0,ut=0,lt=[],st=[],wt=[],vr=qe(),Gn=qe()};f.__private__.setCustomOutputDestination=function(h){St=!0,Ft=h};var dt=function(h){St||(Ft=h)};f.__private__.resetCustomOutputDestination=function(){St=!1,Ft=lt};var K=f.__private__.out=function(h){return h=h.toString(),ut+=h.length+1,Ft.push(h),Ft},Tt=f.__private__.write=function(h){return K(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},It=f.__private__.getArrayBuffer=function(h){for(var P=h.length,Z=new ArrayBuffer(P),nt=new Uint8Array(Z);P--;)nt[P]=h.charCodeAt(P);return Z},xt=[["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]];f.__private__.getStandardFonts=function(){return xt};var _t=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(h){return _t=z===M.ADVANCED?h/Ct:h,this};var Pt,kt=f.__private__.getFontSize=f.getFontSize=function(){return z===M.COMPAT?_t:_t*Ct},jt=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(h){return jt=h,this},f.__private__.getR2L=f.getR2L=function(){return jt};var Bt,Ut=f.__private__.setZoomMode=function(h){var P=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Pt=h;else if(isNaN(h)){if(P.indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');Pt=h}else Pt=parseInt(h,10)};f.__private__.getZoomMode=function(){return Pt};var Zt,ie=f.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');Bt=h};f.__private__.getPageMode=function(){return Bt};var Xt=f.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');Zt=h};f.__private__.getLayoutMode=function(){return Zt},f.__private__.setDisplayMode=f.setDisplayMode=function(h,P,Z){return Ut(h),Xt(P),ie(Z),this};var zt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(h){if(Object.keys(zt).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zt[h]},f.__private__.getDocumentProperties=function(){return zt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(h){for(var P in zt)zt.hasOwnProperty(P)&&h[P]&&(zt[P]=h[P]);return this},f.__private__.setDocumentProperty=function(h,P){if(Object.keys(zt).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zt[h]=P};var Wt,Ct,ge,ne,Ce,se={},be={},In=[],le={},ir={},ye={},An={},Ye=null,he=0,Vt=[],ae=new rl(f),ar=e.hotfixes||[],Pe={},Qe={},or=[],Qt=function h(P,Z,nt,ct,vt,Nt){if(!(this instanceof h))return new h(P,Z,nt,ct,vt,Nt);isNaN(P)&&(P=1),isNaN(Z)&&(Z=0),isNaN(nt)&&(nt=0),isNaN(ct)&&(ct=1),isNaN(vt)&&(vt=0),isNaN(Nt)&&(Nt=0),this._matrix=[P,Z,nt,ct,vt,Nt]};Object.defineProperty(Qt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Qt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Qt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Qt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Qt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Qt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Qt.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Qt.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Qt.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Qt.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Qt.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Qt.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Qt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Qt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Qt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Qt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Qt.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Q).join(h)},Qt.prototype.multiply=function(h){var P=h.sx*this.sx+h.shy*this.shx,Z=h.sx*this.shy+h.shy*this.sy,nt=h.shx*this.sx+h.sy*this.shx,ct=h.shx*this.shy+h.sy*this.sy,vt=h.tx*this.sx+h.ty*this.shx+this.tx,Nt=h.tx*this.shy+h.ty*this.sy+this.ty;return new Qt(P,Z,nt,ct,vt,Nt)},Qt.prototype.decompose=function(){var h=this.sx,P=this.shy,Z=this.shx,nt=this.sy,ct=this.tx,vt=this.ty,Nt=Math.sqrt(h*h+P*P),Mt=(h/=Nt)*Z+(P/=Nt)*nt;Z-=h*Mt,nt-=P*Mt;var Ht=Math.sqrt(Z*Z+nt*nt);return Mt/=Ht,h*(nt/=Ht)<P*(Z/=Ht)&&(h=-h,P=-P,Mt=-Mt,Nt=-Nt),{scale:new Qt(Nt,0,0,Ht,0,0),translate:new Qt(1,0,0,1,ct,vt),rotate:new Qt(h,P,-P,h,0,0),skew:new Qt(1,0,Mt,1,0,0)}},Qt.prototype.toString=function(h){return this.join(" ")},Qt.prototype.inversed=function(){var h=this.sx,P=this.shy,Z=this.shx,nt=this.sy,ct=this.tx,vt=this.ty,Nt=1/(h*nt-P*Z),Mt=nt*Nt,Ht=-P*Nt,ee=-Z*Nt,te=h*Nt;return new Qt(Mt,Ht,ee,te,-Mt*ct-ee*vt,-Ht*ct-te*vt)},Qt.prototype.applyToPoint=function(h){var P=h.x*this.sx+h.y*this.shx+this.tx,Z=h.x*this.shy+h.y*this.sy+this.ty;return new Di(P,Z)},Qt.prototype.applyToRectangle=function(h){var P=this.applyToPoint(h),Z=this.applyToPoint(new Di(h.x+h.w,h.y+h.h));return new ba(P.x,P.y,Z.x-P.x,Z.y-P.y)},Qt.prototype.clone=function(){var h=this.sx,P=this.shy,Z=this.shx,nt=this.sy,ct=this.tx,vt=this.ty;return new Qt(h,P,Z,nt,ct,vt)},f.Matrix=Qt;var Wn=f.matrixMult=function(h,P){return P.multiply(h)},sr=new Qt(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=sr;var gn=function(h,P){if(!ir[h]){var Z=(P instanceof Yr?"Sh":"P")+(Object.keys(le).length+1).toString(10);P.id=Z,ir[h]=Z,le[Z]=P,ae.publish("addPattern",P)}};f.ShadingPattern=Yr,f.TilingPattern=vi,f.addShadingPattern=function(h,P){return x("addShadingPattern()"),gn(h,P),this},f.beginTilingPattern=function(h){x("beginTilingPattern()"),Mo(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},f.endTilingPattern=function(h,P){x("endTilingPattern()"),P.stream=bt[R].join("\n"),gn(h,P),ae.publish("endTilingPattern",P),or.pop().restore()};var We=f.__private__.newObject=function(){var h=qe();return xn(h,!0),h},qe=f.__private__.newObjectDeferred=function(){return et++,st[et]=function(){return ut},et},xn=function(h,P){return P=typeof P=="boolean"&&P,st[h]=ut,P&&K(h+" 0 obj"),h},Ni=f.__private__.newAdditionalObject=function(){var h={objId:qe(),content:""};return wt.push(h),h},vr=qe(),Gn=qe(),Vn=f.__private__.decodeColorString=function(h){var P=h.split(" ");if(P.length!==2||P[1]!=="g"&&P[1]!=="G")P.length===5&&(P[4]==="k"||P[4]==="K")&&(P=[(1-P[0])*(1-P[3]),(1-P[1])*(1-P[3]),(1-P[2])*(1-P[3]),"r"]);else{var Z=parseFloat(P[0]);P=[Z,Z,Z,"r"]}for(var nt="#",ct=0;ct<3;ct++)nt+=("0"+Math.floor(255*parseFloat(P[ct])).toString(16)).slice(-2);return nt},Yn=f.__private__.encodeColorString=function(h){var P;typeof h=="string"&&(h={ch1:h});var Z=h.ch1,nt=h.ch2,ct=h.ch3,vt=h.ch4,Nt=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Z=="string"&&Z.charAt(0)!=="#"){var Mt=new $u(Z);if(Mt.ok)Z=Mt.toHex();else if(!/^\d*\.?\d*$/.test(Z))throw new Error('Invalid color "'+Z+'" passed to jsPDF.encodeColorString.')}if(typeof Z=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Z)&&(Z="#"+Z[1]+Z[1]+Z[2]+Z[2]+Z[3]+Z[3]),typeof Z=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Z)){var Ht=parseInt(Z.substr(1),16);Z=Ht>>16&255,nt=Ht>>8&255,ct=255&Ht}if(nt===void 0||vt===void 0&&Z===nt&&nt===ct)if(typeof Z=="string")P=Z+" "+Nt[0];else switch(h.precision){case 2:P=H(Z/255)+" "+Nt[0];break;case 3:default:P=A(Z/255)+" "+Nt[0]}else if(vt===void 0||(0,Ae.A)(vt)==="object"){if(vt&&!isNaN(vt.a)&&vt.a===0)return P=["1.","1.","1.",Nt[1]].join(" ");if(typeof Z=="string")P=[Z,nt,ct,Nt[1]].join(" ");else switch(h.precision){case 2:P=[H(Z/255),H(nt/255),H(ct/255),Nt[1]].join(" ");break;default:case 3:P=[A(Z/255),A(nt/255),A(ct/255),Nt[1]].join(" ")}}else if(typeof Z=="string")P=[Z,nt,ct,vt,Nt[2]].join(" ");else switch(h.precision){case 2:P=[H(Z),H(nt),H(ct),H(vt),Nt[2]].join(" ");break;case 3:default:P=[A(Z),A(nt),A(ct),A(vt),Nt[2]].join(" ")}return P},ur=f.__private__.getFilters=function(){return s},Fn=f.__private__.putStream=function(h){var P=(h=h||{}).data||"",Z=h.filters||ur(),nt=h.alreadyAppliedFilters||[],ct=h.addLength1||!1,vt=P.length,Nt=h.objectId,Mt=function(un){return un};if(d!==null&&Nt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Mt=sn.encryptor(Nt,0));var Ht={};Z===!0&&(Z=["FlateEncode"]);var ee=h.additionalKeyValues||[],te=(Ht=Yt.API.processDataByFilters!==void 0?Yt.API.processDataByFilters(P,Z):{data:P,reverseChain:[]}).reverseChain+(Array.isArray(nt)?nt.join(" "):nt.toString());if(Ht.data.length!==0&&(ee.push({key:"Length",value:Ht.data.length}),ct===!0&&ee.push({key:"Length1",value:vt})),te.length!=0)if(te.split("/").length-1==1)ee.push({key:"Filter",value:te});else{ee.push({key:"Filter",value:"["+te+"]"});for(var ce=0;ce<ee.length;ce+=1)if(ee[ce].key==="DecodeParms"){for(var Ie=[],Ee=0;Ee<Ht.reverseChain.split("/").length-1;Ee+=1)Ie.push("null");Ie.push(ee[ce].value),ee[ce].value="["+Ie.join(" ")+"]"}}K("<<");for(var Ue=0;Ue<ee.length;Ue++)K("/"+ee[Ue].key+" "+ee[Ue].value);K(">>"),Ht.data.length!==0&&(K("stream"),K(Mt(Ht.data)),K("endstream"))},lr=f.__private__.putPage=function(h){var P=h.number,Z=h.data,nt=h.objId,ct=h.contentsObjId;xn(nt,!0),K("<</Type /Page"),K("/Parent "+h.rootDictionaryObjId+" 0 R"),K("/Resources "+h.resourceDictionaryObjId+" 0 R"),K("/MediaBox ["+parseFloat(Q(h.mediaBox.bottomLeftX))+" "+parseFloat(Q(h.mediaBox.bottomLeftY))+" "+Q(h.mediaBox.topRightX)+" "+Q(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&K("/CropBox ["+Q(h.cropBox.bottomLeftX)+" "+Q(h.cropBox.bottomLeftY)+" "+Q(h.cropBox.topRightX)+" "+Q(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&K("/BleedBox ["+Q(h.bleedBox.bottomLeftX)+" "+Q(h.bleedBox.bottomLeftY)+" "+Q(h.bleedBox.topRightX)+" "+Q(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&K("/TrimBox ["+Q(h.trimBox.bottomLeftX)+" "+Q(h.trimBox.bottomLeftY)+" "+Q(h.trimBox.topRightX)+" "+Q(h.trimBox.topRightY)+"]"),h.artBox!==null&&K("/ArtBox ["+Q(h.artBox.bottomLeftX)+" "+Q(h.artBox.bottomLeftY)+" "+Q(h.artBox.topRightX)+" "+Q(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&K("/UserUnit "+h.userUnit),ae.publish("putPage",{objId:nt,pageContext:Vt[P],pageNumber:P,page:Z}),K("/Contents "+ct+" 0 R"),K(">>"),K("endobj");var vt=Z.join("\n");return z===M.ADVANCED&&(vt+="\nQ"),xn(ct,!0),Fn({data:vt,filters:ur(),objectId:ct}),K("endobj"),nt},Xr=f.__private__.putPages=function(){var h,P,Z=[];for(h=1;h<=he;h++)Vt[h].objId=qe(),Vt[h].contentsObjId=qe();for(h=1;h<=he;h++)Z.push(lr({number:h,data:bt[h],objId:Vt[h].objId,contentsObjId:Vt[h].contentsObjId,mediaBox:Vt[h].mediaBox,cropBox:Vt[h].cropBox,bleedBox:Vt[h].bleedBox,trimBox:Vt[h].trimBox,artBox:Vt[h].artBox,userUnit:Vt[h].userUnit,rootDictionaryObjId:vr,resourceDictionaryObjId:Gn}));xn(vr,!0),K("<</Type /Pages");var nt="/Kids [";for(P=0;P<he;P++)nt+=Z[P]+" 0 R ";K(nt+"]"),K("/Count "+he),K(">>"),K("endobj"),ae.publish("postPutPages")},_i=function(h){ae.publish("putFont",{font:h,out:K,newObject:We,putStream:Fn}),h.isAlreadyPutted!==!0&&(h.objectNumber=We(),K("<<"),K("/Type /Font"),K("/BaseFont /"+gi(h.postScriptName)),K("/Subtype /Type1"),typeof h.encoding=="string"&&K("/Encoding /"+h.encoding),K("/FirstChar 32"),K("/LastChar 255"),K(">>"),K("endobj"))},Si=function(){for(var h in se)se.hasOwnProperty(h)&&(p===!1||p===!0&&g.hasOwnProperty(h))&&_i(se[h])},Pi=function(h){h.objectNumber=We();var P=[];P.push({key:"Type",value:"/XObject"}),P.push({key:"Subtype",value:"/Form"}),P.push({key:"BBox",value:"["+[Q(h.x),Q(h.y),Q(h.x+h.width),Q(h.y+h.height)].join(" ")+"]"}),P.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var Z=h.pages[1].join("\n");Fn({data:Z,additionalKeyValues:P,objectId:h.objectNumber}),K("endobj")},ki=function(){for(var h in Pe)Pe.hasOwnProperty(h)&&Pi(Pe[h])},mo=function(h,P){var Z,nt=[],ct=1/(P-1);for(Z=0;Z<1;Z+=ct)nt.push(Z);if(nt.push(1),h[0].offset!=0){var vt={offset:0,color:h[0].color};h.unshift(vt)}if(h[h.length-1].offset!=1){var Nt={offset:1,color:h[h.length-1].color};h.push(Nt)}for(var Mt="",Ht=0,ee=0;ee<nt.length;ee++){for(Z=nt[ee];Z>h[Ht+1].offset;)Ht++;var te=h[Ht].offset,ce=(Z-te)/(h[Ht+1].offset-te),Ie=h[Ht].color,Ee=h[Ht+1].color;Mt+=U(Math.round((1-ce)*Ie[0]+ce*Ee[0]).toString(16))+U(Math.round((1-ce)*Ie[1]+ce*Ee[1]).toString(16))+U(Math.round((1-ce)*Ie[2]+ce*Ee[2]).toString(16))}return Mt.trim()},Ds=function(h,P){P||(P=21);var Z=We(),nt=mo(h.colors,P),ct=[];ct.push({key:"FunctionType",value:"0"}),ct.push({key:"Domain",value:"[0.0 1.0]"}),ct.push({key:"Size",value:"["+P+"]"}),ct.push({key:"BitsPerSample",value:"8"}),ct.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ct.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Fn({data:nt,additionalKeyValues:ct,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Z}),K("endobj"),h.objectNumber=We(),K("<< /ShadingType "+h.type),K("/ColorSpace /DeviceRGB");var vt="/Coords ["+Q(parseFloat(h.coords[0]))+" "+Q(parseFloat(h.coords[1]))+" ";h.type===2?vt+=Q(parseFloat(h.coords[2]))+" "+Q(parseFloat(h.coords[3])):vt+=Q(parseFloat(h.coords[2]))+" "+Q(parseFloat(h.coords[3]))+" "+Q(parseFloat(h.coords[4]))+" "+Q(parseFloat(h.coords[5])),K(vt+="]"),h.matrix&&K("/Matrix ["+h.matrix.toString()+"]"),K("/Function "+Z+" 0 R"),K("/Extend [true true]"),K(">>"),K("endobj")},Ts=function(h,P){var Z=qe(),nt=We();P.push({resourcesOid:Z,objectOid:nt}),h.objectNumber=nt;var ct=[];ct.push({key:"Type",value:"/Pattern"}),ct.push({key:"PatternType",value:"1"}),ct.push({key:"PaintType",value:"1"}),ct.push({key:"TilingType",value:"1"}),ct.push({key:"BBox",value:"["+h.boundingBox.map(Q).join(" ")+"]"}),ct.push({key:"XStep",value:Q(h.xStep)}),ct.push({key:"YStep",value:Q(h.yStep)}),ct.push({key:"Resources",value:Z+" 0 R"}),h.matrix&&ct.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Fn({data:h.stream,additionalKeyValues:ct,objectId:h.objectNumber}),K("endobj")},Ii=function(h){var P;for(P in le)le.hasOwnProperty(P)&&(le[P]instanceof Yr?Ds(le[P]):le[P]instanceof vi&&Ts(le[P],h))},bo=function(h){for(var P in h.objectNumber=We(),K("<<"),h)switch(P){case"opacity":K("/ca "+H(h[P]));break;case"stroke-opacity":K("/CA "+H(h[P]))}K(">>"),K("endobj")},Rs=function(){var h;for(h in ye)ye.hasOwnProperty(h)&&bo(ye[h])},ua=function(){for(var h in K("/XObject <<"),Pe)Pe.hasOwnProperty(h)&&Pe[h].objectNumber>=0&&K("/"+h+" "+Pe[h].objectNumber+" 0 R");ae.publish("putXobjectDict"),K(">>")},qs=function(){sn.oid=We(),K("<<"),K("/Filter /Standard"),K("/V "+sn.v),K("/R "+sn.r),K("/U <"+sn.toHexString(sn.U)+">"),K("/O <"+sn.toHexString(sn.O)+">"),K("/P "+sn.P),K(">>"),K("endobj")},yo=function(){for(var h in K("/Font <<"),se)se.hasOwnProperty(h)&&(p===!1||p===!0&&g.hasOwnProperty(h))&&K("/"+h+" "+se[h].objectNumber+" 0 R");K(">>")},Us=function(){if(Object.keys(le).length>0){for(var h in K("/Shading <<"),le)le.hasOwnProperty(h)&&le[h]instanceof Yr&&le[h].objectNumber>=0&&K("/"+h+" "+le[h].objectNumber+" 0 R");ae.publish("putShadingPatternDict"),K(">>")}},Fi=function(h){if(Object.keys(le).length>0){for(var P in K("/Pattern <<"),le)le.hasOwnProperty(P)&&le[P]instanceof f.TilingPattern&&le[P].objectNumber>=0&&le[P].objectNumber<h&&K("/"+P+" "+le[P].objectNumber+" 0 R");ae.publish("putTilingPatternDict"),K(">>")}},zs=function(){if(Object.keys(ye).length>0){var h;for(h in K("/ExtGState <<"),ye)ye.hasOwnProperty(h)&&ye[h].objectNumber>=0&&K("/"+h+" "+ye[h].objectNumber+" 0 R");ae.publish("putGStateDict"),K(">>")}},De=function(h){xn(h.resourcesOid,!0),K("<<"),K("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),yo(),Us(),Fi(h.objectOid),zs(),ua(),K(">>"),K("endobj")},wo=function(){var h=[];Si(),Rs(),ki(),Ii(h),ae.publish("putResources"),h.forEach(De),De({resourcesOid:Gn,objectOid:Number.MAX_SAFE_INTEGER}),ae.publish("postPutResources")},Ao=function(){ae.publish("putAdditionalObjects");for(var h=0;h<wt.length;h++){var P=wt[h];xn(P.objId,!0),K(P.content),K("endobj")}ae.publish("postPutAdditionalObjects")},xo=function(h){be[h.fontName]=be[h.fontName]||{},be[h.fontName][h.fontStyle]=h.id},la=function(h,P,Z,nt,ct){var vt={id:"F"+(Object.keys(se).length+1).toString(10),postScriptName:h,fontName:P,fontStyle:Z,encoding:nt,isStandardFont:ct||!1,metadata:{}};return ae.publish("addFont",{font:vt,instance:this}),se[vt.id]=vt,xo(vt),vt.id},Hs=function(h){for(var P=0,Z=xt.length;P<Z;P++){var nt=la.call(this,h[P][0],h[P][1],h[P][2],xt[P][3],!0);p===!1&&(g[nt]=!0);var ct=h[P][0].split("-");xo({id:nt,fontName:ct[0],fontStyle:ct[1]||""})}ae.publish("addFonts",{fonts:se,dictionary:be})},Qn=function(h){return h.foo=function(){try{return h.apply(this,arguments)}catch(nt){var P=nt.stack||"";~P.indexOf(" at ")&&(P=P.split(" at ")[1]);var Z="Error in function "+P.split("\n")[0].split("<")[0]+": "+nt.message;if(!Jt.console)throw new Error(Z);Jt.console.error(Z,nt),Jt.alert&&alert(Z)}},h.foo.bar=h,h.foo},Ci=function(h,P){var Z,nt,ct,vt,Nt,Mt,Ht,ee,te;if(ct=(P=P||{}).sourceEncoding||"Unicode",Nt=P.outputEncoding,(P.autoencode||Nt)&&se[Wt].metadata&&se[Wt].metadata[ct]&&se[Wt].metadata[ct].encoding&&(vt=se[Wt].metadata[ct].encoding,!Nt&&se[Wt].encoding&&(Nt=se[Wt].encoding),!Nt&&vt.codePages&&(Nt=vt.codePages[0]),typeof Nt=="string"&&(Nt=vt[Nt]),Nt)){for(Ht=!1,Mt=[],Z=0,nt=h.length;Z<nt;Z++)(ee=Nt[h.charCodeAt(Z)])?Mt.push(String.fromCharCode(ee)):Mt.push(h[Z]),Mt[Z].charCodeAt(0)>>8&&(Ht=!0);h=Mt.join("")}for(Z=h.length;Ht===void 0&&Z!==0;)h.charCodeAt(Z-1)>>8&&(Ht=!0),Z--;if(!Ht)return h;for(Mt=P.noBOM?[]:[254,255],Z=0,nt=h.length;Z<nt;Z++){if((te=(ee=h.charCodeAt(Z))>>8)>>8)throw new Error("Character at position "+Z+" of string '"+h+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Mt.push(te),Mt.push(ee-(te<<8))}return String.fromCharCode.apply(void 0,Mt)},vn=f.__private__.pdfEscape=f.pdfEscape=function(h,P){return Ci(h,P).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ca=f.__private__.beginPage=function(h){bt[++he]=[],Vt[he]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},No(he),dt(bt[R])},Lo=function(h,P){var Z,nt,ct;switch(n=P||n,typeof h=="string"&&(Z=y(h.toLowerCase()),Array.isArray(Z)&&(nt=Z[0],ct=Z[1])),Array.isArray(h)&&(nt=h[0]*Ct,ct=h[1]*Ct),isNaN(nt)&&(nt=o[0],ct=o[1]),(nt>14400||ct>14400)&&(xe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),nt=Math.min(14400,nt),ct=Math.min(14400,ct)),o=[nt,ct],n.substr(0,1)){case"l":ct>nt&&(o=[ct,nt]);break;case"p":nt>ct&&(o=[ct,nt])}ca(o),Fo(pa),K(Jn),va!==0&&K(va+" J"),ma!==0&&K(ma+" j"),ae.publish("addPage",{pageNumber:he})},Ws=function(h){h>0&&h<=he&&(bt.splice(h,1),Vt.splice(h,1),he--,R>he&&(R=he),this.setPage(R))},No=function(h){h>0&&h<=he&&(R=h)},Gs=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return bt.length-1},_o=function(h,P,Z){var nt,ct=void 0;return Z=Z||{},h=h!==void 0?h:se[Wt].fontName,P=P!==void 0?P:se[Wt].fontStyle,nt=h.toLowerCase(),be[nt]!==void 0&&be[nt][P]!==void 0?ct=be[nt][P]:be[h]!==void 0&&be[h][P]!==void 0?ct=be[h][P]:Z.disableWarning===!1&&xe.warn("Unable to look up font label for font '"+h+"', '"+P+"'. Refer to getFontList() for available fonts."),ct||Z.noFallback||(ct=be.times[P])==null&&(ct=be.times.normal),ct},Vs=f.__private__.putInfo=function(){var h=We(),P=function(nt){return nt};for(var Z in d!==null&&(P=sn.encryptor(h,0)),K("<<"),K("/Producer ("+vn(P("jsPDF "+Yt.version))+")"),zt)zt.hasOwnProperty(Z)&&zt[Z]&&K("/"+Z.substr(0,1).toUpperCase()+Z.substr(1)+" ("+vn(P(zt[Z]))+")");K("/CreationDate ("+vn(P(Y))+")"),K(">>"),K("endobj")},fa=f.__private__.putCatalog=function(h){var P=(h=h||{}).rootDictionaryObjId||vr;switch(We(),K("<<"),K("/Type /Catalog"),K("/Pages "+P+" 0 R"),Pt||(Pt="fullwidth"),Pt){case"fullwidth":K("/OpenAction [3 0 R /FitH null]");break;case"fullheight":K("/OpenAction [3 0 R /FitV null]");break;case"fullpage":K("/OpenAction [3 0 R /Fit]");break;case"original":K("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Z=""+Pt;Z.substr(Z.length-1)==="%"&&(Pt=parseInt(Pt)/100),typeof Pt=="number"&&K("/OpenAction [3 0 R /XYZ null null "+H(Pt)+"]")}switch(Zt||(Zt="continuous"),Zt){case"continuous":K("/PageLayout /OneColumn");break;case"single":K("/PageLayout /SinglePage");break;case"two":case"twoleft":K("/PageLayout /TwoColumnLeft");break;case"tworight":K("/PageLayout /TwoColumnRight")}Bt&&K("/PageMode /"+Bt),ae.publish("putCatalog"),K(">>"),K("endobj")},Ys=f.__private__.putTrailer=function(){K("trailer"),K("<<"),K("/Size "+(et+1)),K("/Root "+et+" 0 R"),K("/Info "+(et-1)+" 0 R"),d!==null&&K("/Encrypt "+sn.oid+" 0 R"),K("/ID [ <"+E+"> <"+E+"> ]"),K(">>")},Qs=f.__private__.putHeader=function(){K("%PDF-"+w),K("%\xBA\xDF\xAC\xE0")},Js=f.__private__.putXRef=function(){var h="0000000000";K("xref"),K("0 "+(et+1)),K("0000000000 65535 f ");for(var P=1;P<=et;P++)typeof st[P]=="function"?K((h+st[P]()).slice(-10)+" 00000 n "):st[P]!==void 0?K((h+st[P]).slice(-10)+" 00000 n "):K("0000000000 00000 n ")},mr=f.__private__.buildDocument=function(){qt(),dt(lt),ae.publish("buildDocument"),Qs(),Xr(),Ao(),wo(),d!==null&&qs(),Vs(),fa();var h=ut;return Js(),Ys(),K("startxref"),K(""+h),K("%%EOF"),dt(bt[R]),lt.join("\n")},Ei=f.__private__.getBlob=function(h){return new Blob([It(h)],{type:"application/pdf"})},ji=f.output=f.__private__.output=Qn(function(h,P){switch(typeof(P=P||{})=="string"?P={filename:P}:P.filename=P.filename||"generated.pdf",h){case void 0:return mr();case"save":f.save(P.filename);break;case"arraybuffer":return It(mr());case"blob":return Ei(mr());case"bloburi":case"bloburl":if(Jt.URL!==void 0&&typeof Jt.URL.createObjectURL=="function")return Jt.URL&&Jt.URL.createObjectURL(Ei(mr()))||void 0;xe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Z="",nt=mr();try{Z=Ls(nt)}catch(Ee){Z=Ls(unescape(encodeURIComponent(nt)))}return"data:application/pdf;filename="+P.filename+";base64,"+Z;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var ct="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",vt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';P.pdfObjectUrl&&(ct=P.pdfObjectUrl,vt="");var Nt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ct+'"'+vt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(P)+");<\/script></body></html>",Mt=Jt.open();return Mt!==null&&Mt.document.write(Nt),Mt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var Ht='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(P.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+P.filename+'" width="500px" height="400px" /></body></html>',ee=Jt.open();if(ee!==null){ee.document.write(Ht);var te=this;ee.document.documentElement.querySelector("#pdfViewer").onload=function(){ee.document.title=P.filename,ee.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(te.output("bloburl"))}}return ee}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Jt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ce='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",P)+'"></iframe></body></html>',Ie=Jt.open();if(Ie!==null&&(Ie.document.write(ce),Ie.document.title=P.filename),Ie||typeof safari>"u")return Ie;break;case"datauri":case"dataurl":return Jt.document.location.href=this.output("datauristring",P);default:return null}}),So=function(h){return Array.isArray(ar)===!0&&ar.indexOf(h)>-1};switch(i){case"pt":Ct=1;break;case"mm":Ct=72/25.4;break;case"cm":Ct=72/2.54;break;case"in":Ct=72;break;case"px":Ct=So("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ct=12;break;case"ex":Ct=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);Ct=i}var sn=null;gt(),X();var Zs=function(h){return d!==null?sn.encryptor(h,0):function(P){return P}},Po=f.__private__.getPageInfo=f.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Vt[h].objId,pageNumber:h,pageContext:Vt[h]}},Kt=f.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var P in Vt)if(Vt[P].objId===h)break;return Po(P)},Xs=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:Vt[R].objId,pageNumber:R,pageContext:Vt[R]}};f.addPage=function(){return Lo.apply(this,arguments),this},f.setPage=function(){return No.apply(this,arguments),dt.call(this,bt[R]),this},f.insertPage=function(h){return this.addPage(),this.movePage(R,h),this},f.movePage=function(h,P){var Z,nt;if(h>P){Z=bt[h],nt=Vt[h];for(var ct=h;ct>P;ct--)bt[ct]=bt[ct-1],Vt[ct]=Vt[ct-1];bt[P]=Z,Vt[P]=nt,this.setPage(P)}else if(h<P){Z=bt[h],nt=Vt[h];for(var vt=h;vt<P;vt++)bt[vt]=bt[vt+1],Vt[vt]=Vt[vt+1];bt[P]=Z,Vt[P]=nt,this.setPage(P)}return this},f.deletePage=function(){return Ws.apply(this,arguments),this},f.__private__.text=f.text=function(h,P,Z,nt,ct){var vt,Nt,Mt,Ht,ee,te,ce,Ie,Ee,Ue=(nt=nt||{}).scope||this;if(typeof h=="number"&&typeof P=="number"&&(typeof Z=="string"||Array.isArray(Z))){var un=Z;Z=P,P=h,h=un}if(arguments[3]instanceof Qt?(x("The transform parameter of text() with a Matrix value"),Ee=ct):(Mt=arguments[4],Ht=arguments[5],(0,Ae.A)(ce=arguments[3])==="object"&&ce!==null||(typeof Mt=="string"&&(Ht=Mt,Mt=null),typeof ce=="string"&&(Ht=ce,ce=null),typeof ce=="number"&&(Mt=ce,ce=null),nt={flags:ce,angle:Mt,align:Ht})),isNaN(P)||isNaN(Z)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return Ue;var Je="",Zn=!1,Ln=typeof nt.lineHeightFactor=="number"?nt.lineHeightFactor:$r,hr=Ue.internal.scaleFactor;function Bo(Ne){return Ne=Ne.split(" ").join(Array(nt.TabLen||9).join(" ")),vn(Ne,ce)}function xa(Ne){for(var _e,Re=Ne.concat(),Ge=[],xr=Re.length;xr--;)typeof(_e=Re.shift())=="string"?Ge.push(_e):Array.isArray(Ne)&&(_e.length===1||_e[1]===void 0&&_e[2]===void 0)?Ge.push(_e[0]):Ge.push([_e[0],_e[1],_e[2]]);return Ge}function La(Ne,_e){var Re;if(typeof Ne=="string")Re=_e(Ne)[0];else if(Array.isArray(Ne)){for(var Ge,xr,Ca=Ne.concat(),Qi=[],Uo=Ca.length;Uo--;)typeof(Ge=Ca.shift())=="string"?Qi.push(_e(Ge)[0]):Array.isArray(Ge)&&typeof Ge[0]=="string"&&(xr=_e(Ge[0],Ge[1],Ge[2]),Qi.push([xr[0],xr[1],xr[2]]));Re=Qi}return Re}var Ri=!1,Na=!0;if(typeof h=="string")Ri=!0;else if(Array.isArray(h)){var _a=h.concat();Nt=[];for(var qi,$e=_a.length;$e--;)(typeof(qi=_a.shift())!="string"||Array.isArray(qi)&&typeof qi[0]!="string")&&(Na=!1);Ri=Na}if(Ri===!1)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var Ui=_t/Ue.internal.scaleFactor,zi=Ui*(Ln-1);switch(nt.baseline){case"bottom":Z-=zi;break;case"top":Z+=Ui-zi;break;case"hanging":Z+=Ui-2*zi;break;case"middle":Z+=Ui/2-zi}if((te=nt.maxWidth||0)>0&&(typeof h=="string"?h=Ue.splitTextToSize(h,te):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Ne,_e){return Ne.concat(Ue.splitTextToSize(_e,te))},[]))),vt={text:h,x:P,y:Z,options:nt,mutex:{pdfEscape:vn,activeFontKey:Wt,fonts:se,activeFontSize:_t}},ae.publish("preProcessText",vt),h=vt.text,Mt=(nt=vt.options).angle,!(Ee instanceof Qt)&&Mt&&typeof Mt=="number"){Mt*=Math.PI/180,nt.rotationDirection===0&&(Mt=-Mt),z===M.ADVANCED&&(Mt=-Mt);var Hi=Math.cos(Mt),Sa=Math.sin(Mt);Ee=new Qt(Hi,Sa,-Sa,Hi,0,0)}else Mt&&Mt instanceof Qt&&(Ee=Mt);z!==M.ADVANCED||Ee||(Ee=sr),(ee=nt.charSpace||Bi)!==void 0&&(Je+=Q(L(ee))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),(Ie=nt.horizontalScale)!==void 0&&(Je+=Q(100*Ie)+" Tz\n"),nt.lang;var mn=-1,su=nt.renderingMode!==void 0?nt.renderingMode:nt.stroke,Pa=Ue.internal.getCurrentPageInfo().pageContext;switch(su){case 0:case!1:case"fill":mn=0;break;case 1:case!0:case"stroke":mn=1;break;case 2:case"fillThenStroke":mn=2;break;case 3:case"invisible":mn=3;break;case 4:case"fillAndAddForClipping":mn=4;break;case 5:case"strokeAndAddPathForClipping":mn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mn=6;break;case 7:case"addToPathForClipping":mn=7}var Do=Pa.usedRenderingMode!==void 0?Pa.usedRenderingMode:-1;mn!==-1?Je+=mn+" Tr\n":Do!==-1&&(Je+="0 Tr\n"),mn!==-1&&(Pa.usedRenderingMode=mn),Ht=nt.align||"left";var Cn,Wi=_t*Ln,To=Ue.internal.pageSize.getWidth(),Ro=se[Wt];ee=nt.charSpace||Bi,te=nt.maxWidth||0,ce=Object.assign({autoencode:!0,noBOM:!0},nt.flags);var Mr=[],ni=function(Ne){return Ue.getStringUnitWidth(Ne,{font:Ro,charSpace:ee,fontSize:_t,doKerning:!1})*_t/hr};if(Object.prototype.toString.call(h)==="[object Array]"){var bn;Nt=xa(h),Ht!=="left"&&(Cn=Nt.map(ni));var cn,Br=0;if(Ht==="right"){P-=Cn[0],h=[],$e=Nt.length;for(var yr=0;yr<$e;yr++)yr===0?(cn=fr(P),bn=br(Z)):(cn=L(Br-Cn[yr]),bn=-Wi),h.push([Nt[yr],cn,bn]),Br=Cn[yr]}else if(Ht==="center"){P-=Cn[0]/2,h=[],$e=Nt.length;for(var wr=0;wr<$e;wr++)wr===0?(cn=fr(P),bn=br(Z)):(cn=L((Br-Cn[wr])/2),bn=-Wi),h.push([Nt[wr],cn,bn]),Br=Cn[wr]}else if(Ht==="left"){h=[],$e=Nt.length;for(var Gi=0;Gi<$e;Gi++)h.push(Nt[Gi])}else if(Ht==="justify"&&Ro.encoding==="Identity-H"){h=[],$e=Nt.length,te=te!==0?te:To;for(var Ar=0,Te=0;Te<$e;Te++)if(bn=Te===0?br(Z):-Wi,cn=Te===0?fr(P):Ar,Te<$e-1){var ka=L((te-Cn[Te])/(Nt[Te].split(" ").length-1)),fn=Nt[Te].split(" ");h.push([fn[0]+" ",cn,bn]),Ar=0;for(var En=1;En<fn.length;En++){var Vi=(ni(fn[En-1]+" "+fn[En])-ni(fn[En]))*hr+ka;En==fn.length-1?h.push([fn[En],Vi,0]):h.push([fn[En]+" ",Vi,0]),Ar-=Vi}}else h.push([Nt[Te],cn,bn]);h.push(["",Ar,0])}else{if(Ht!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],$e=Nt.length,te=te!==0?te:To,Te=0;Te<$e;Te++)bn=Te===0?br(Z):-Wi,cn=Te===0?fr(P):0,Te<$e-1?Mr.push(Q(L((te-Cn[Te])/(Nt[Te].split(" ").length-1)))):Mr.push(0),h.push([Nt[Te],cn,bn])}}var qo=typeof nt.R2L=="boolean"?nt.R2L:jt;qo===!0&&(h=La(h,function(Ne,_e,Re){return[Ne.split("").reverse().join(""),_e,Re]})),vt={text:h,x:P,y:Z,options:nt,mutex:{pdfEscape:vn,activeFontKey:Wt,fonts:se,activeFontSize:_t}},ae.publish("postProcessText",vt),h=vt.text,Zn=vt.mutex.isHex||!1;var Ia=se[Wt].encoding;Ia!=="WinAnsiEncoding"&&Ia!=="StandardEncoding"||(h=La(h,function(Ne,_e,Re){return[Bo(Ne),_e,Re]})),Nt=xa(h),h=[];for(var ri,ii,Dr,ai=0,Yi=1,oi=Array.isArray(Nt[0])?Yi:ai,Tr="",Fa=function(Ne,_e,Re){var Ge="";return Re instanceof Qt?(Re=typeof nt.angle=="number"?Wn(Re,new Qt(1,0,0,1,Ne,_e)):Wn(new Qt(1,0,0,1,Ne,_e),Re),z===M.ADVANCED&&(Re=Wn(new Qt(1,0,0,-1,0,0),Re)),Ge=Re.join(" ")+" Tm\n"):Ge=Q(Ne)+" "+Q(_e)+" Td\n",Ge},jn=0;jn<Nt.length;jn++){switch(Tr="",oi){case Yi:Dr=(Zn?"<":"(")+Nt[jn][0]+(Zn?">":")"),ri=parseFloat(Nt[jn][1]),ii=parseFloat(Nt[jn][2]);break;case ai:Dr=(Zn?"<":"(")+Nt[jn]+(Zn?">":")"),ri=fr(P),ii=br(Z)}Mr!==void 0&&Mr[jn]!==void 0&&(Tr=Mr[jn]+" Tw\n"),jn===0?h.push(Tr+Fa(ri,ii,Ee)+Dr):oi===ai?h.push(Tr+Dr):oi===Yi&&h.push(Tr+Fa(ri,ii,Ee)+Dr)}h=oi===ai?h.join(" Tj\nT* "):h.join(" Tj\n"),h+=" Tj\n";var On="BT\n/";return On+=Wt+" "+_t+" Tf\n",On+=Q(_t*Ln)+" TL\n",On+=ti+"\n",On+=Je,On+=h,K(On+="ET"),g[Wt]=!0,Ue};var Ks=f.__private__.clip=f.clip=function(h){return K(h==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return Ks("evenodd")},f.__private__.discardPath=f.discardPath=function(){return K("n"),this};var cr=f.__private__.isValidStyle=function(h){var P=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(P=!0),P};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(h){return cr(h)&&(m=h),this};var ko=f.__private__.getStyle=f.getStyle=function(h){var P=m;switch(h){case"D":case"S":P="S";break;case"F":P="f";break;case"FD":case"DF":P="B";break;case"f":case"f*":case"B":case"B*":P=h}return P},Io=f.close=function(){return K("h"),this};f.stroke=function(){return K("S"),this},f.fill=function(h){return Oi("f",h),this},f.fillEvenOdd=function(h){return Oi("f*",h),this},f.fillStroke=function(h){return Oi("B",h),this},f.fillStrokeEvenOdd=function(h){return Oi("B*",h),this};var Oi=function(h,P){(0,Ae.A)(P)==="object"?tu(P,h):K(h)},ha=function(h){h===null||z===M.ADVANCED&&h===void 0||(h=ko(h),K(h))};function $s(h,P,Z,nt,ct){var vt=new vi(P||this.boundingBox,Z||this.xStep,nt||this.yStep,this.gState,ct||this.matrix);vt.stream=this.stream;var Nt=h+"$$"+this.cloneIndex+++"$$";return gn(Nt,vt),vt}var tu=function(h,P){var Z=ir[h.key],nt=le[Z];if(nt instanceof Yr)K("q"),K(eu(P)),nt.gState&&f.setGState(nt.gState),K(h.matrix.toString()+" cm"),K("/"+Z+" sh"),K("Q");else if(nt instanceof vi){var ct=new Qt(1,0,0,-1,0,Or());h.matrix&&(ct=ct.multiply(h.matrix||sr),Z=$s.call(nt,h.key,h.boundingBox,h.xStep,h.yStep,ct).id),K("q"),K("/Pattern cs"),K("/"+Z+" scn"),nt.gState&&f.setGState(nt.gState),K(P),K("Q")}},eu=function(h){switch(h){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"}},da=f.moveTo=function(h,P){return K(Q(L(h))+" "+Q(F(P))+" m"),this},Kr=f.lineTo=function(h,P){return K(Q(L(h))+" "+Q(F(P))+" l"),this},Er=f.curveTo=function(h,P,Z,nt,ct,vt){return K([Q(L(h)),Q(F(P)),Q(L(Z)),Q(F(nt)),Q(L(ct)),Q(F(vt)),"c"].join(" ")),this};f.__private__.line=f.line=function(h,P,Z,nt,ct){if(isNaN(h)||isNaN(P)||isNaN(Z)||isNaN(nt)||!cr(ct))throw new Error("Invalid arguments passed to jsPDF.line");return z===M.COMPAT?this.lines([[Z-h,nt-P]],h,P,[1,1],ct||"S"):this.lines([[Z-h,nt-P]],h,P,[1,1]).stroke()},f.__private__.lines=f.lines=function(h,P,Z,nt,ct,vt){var Nt,Mt,Ht,ee,te,ce,Ie,Ee,Ue,un,Je,Zn;if(typeof h=="number"&&(Zn=Z,Z=P,P=h,h=Zn),nt=nt||[1,1],vt=vt||!1,isNaN(P)||isNaN(Z)||!Array.isArray(h)||!Array.isArray(nt)||!cr(ct)||typeof vt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(da(P,Z),Nt=nt[0],Mt=nt[1],ee=h.length,un=P,Je=Z,Ht=0;Ht<ee;Ht++)(te=h[Ht]).length===2?(un=te[0]*Nt+un,Je=te[1]*Mt+Je,Kr(un,Je)):(ce=te[0]*Nt+un,Ie=te[1]*Mt+Je,Ee=te[2]*Nt+un,Ue=te[3]*Mt+Je,un=te[4]*Nt+un,Je=te[5]*Mt+Je,Er(ce,Ie,Ee,Ue,un,Je));return vt&&Io(),ha(ct),this},f.path=function(h){for(var P=0;P<h.length;P++){var Z=h[P],nt=Z.c;switch(Z.op){case"m":da(nt[0],nt[1]);break;case"l":Kr(nt[0],nt[1]);break;case"c":Er.apply(this,nt);break;case"h":Io()}}return this},f.__private__.rect=f.rect=function(h,P,Z,nt,ct){if(isNaN(h)||isNaN(P)||isNaN(Z)||isNaN(nt)||!cr(ct))throw new Error("Invalid arguments passed to jsPDF.rect");return z===M.COMPAT&&(nt=-nt),K([Q(L(h)),Q(F(P)),Q(L(Z)),Q(L(nt)),"re"].join(" ")),ha(ct),this},f.__private__.triangle=f.triangle=function(h,P,Z,nt,ct,vt,Nt){if(isNaN(h)||isNaN(P)||isNaN(Z)||isNaN(nt)||isNaN(ct)||isNaN(vt)||!cr(Nt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Z-h,nt-P],[ct-Z,vt-nt],[h-ct,P-vt]],h,P,[1,1],Nt,!0),this},f.__private__.roundedRect=f.roundedRect=function(h,P,Z,nt,ct,vt,Nt){if(isNaN(h)||isNaN(P)||isNaN(Z)||isNaN(nt)||isNaN(ct)||isNaN(vt)||!cr(Nt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Mt=4/3*(Math.SQRT2-1);return ct=Math.min(ct,.5*Z),vt=Math.min(vt,.5*nt),this.lines([[Z-2*ct,0],[ct*Mt,0,ct,vt-vt*Mt,ct,vt],[0,nt-2*vt],[0,vt*Mt,-ct*Mt,vt,-ct,vt],[2*ct-Z,0],[-ct*Mt,0,-ct,-vt*Mt,-ct,-vt],[0,2*vt-nt],[0,-vt*Mt,ct*Mt,-vt,ct,-vt]],h+ct,P,[1,1],Nt,!0),this},f.__private__.ellipse=f.ellipse=function(h,P,Z,nt,ct){if(isNaN(h)||isNaN(P)||isNaN(Z)||isNaN(nt)||!cr(ct))throw new Error("Invalid arguments passed to jsPDF.ellipse");var vt=4/3*(Math.SQRT2-1)*Z,Nt=4/3*(Math.SQRT2-1)*nt;return da(h+Z,P),Er(h+Z,P-Nt,h+vt,P-nt,h,P-nt),Er(h-vt,P-nt,h-Z,P-Nt,h-Z,P),Er(h-Z,P+Nt,h-vt,P+nt,h,P+nt),Er(h+vt,P+nt,h+Z,P+Nt,h+Z,P),ha(ct),this},f.__private__.circle=f.circle=function(h,P,Z,nt){if(isNaN(h)||isNaN(P)||isNaN(Z)||!cr(nt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,P,Z,Z,nt)},f.setFont=function(h,P,Z){return Z&&(P=W(P,Z)),Wt=_o(h,P,{disableWarning:!1}),this};var nu=f.__private__.getFont=f.getFont=function(){return se[_o.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var h,P,Z={};for(h in be)if(be.hasOwnProperty(h))for(P in Z[h]=[],be[h])be[h].hasOwnProperty(P)&&Z[h].push(P);return Z},f.addFont=function(h,P,Z,nt,ct){var vt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&vt.indexOf(arguments[3])!==-1?ct=arguments[3]:arguments[3]&&vt.indexOf(arguments[3])==-1&&(Z=W(Z,nt)),ct=ct||"Identity-H",la.call(this,h,P,Z,ct)};var $r,pa=e.lineWidth||.200025,Mi=f.__private__.getLineWidth=f.getLineWidth=function(){return pa},Fo=f.__private__.setLineWidth=f.setLineWidth=function(h){return pa=h,K(Q(L(h))+" w"),this};f.__private__.setLineDash=Yt.API.setLineDash=Yt.API.setLineDashPattern=function(h,P){if(h=h||[],P=P||0,isNaN(P)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(Z){return Q(L(Z))}).join(" "),P=Q(L(P)),K("["+h+"] "+P+" d"),this};var Co=f.__private__.getLineHeight=f.getLineHeight=function(){return _t*$r};f.__private__.getLineHeight=f.getLineHeight=function(){return _t*$r};var Eo=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&($r=h),this},jo=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return $r};Eo(e.lineHeight);var fr=f.__private__.getHorizontalCoordinate=function(h){return L(h)},br=f.__private__.getVerticalCoordinate=function(h){return z===M.ADVANCED?h:Vt[R].mediaBox.topRightY-Vt[R].mediaBox.bottomLeftY-L(h)},ru=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(h){return Q(fr(h))},jr=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(h){return Q(br(h))},Jn=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return Vn(Jn)},f.__private__.setStrokeColor=f.setDrawColor=function(h,P,Z,nt){return Jn=Yn({ch1:h,ch2:P,ch3:Z,ch4:nt,pdfColorType:"draw",precision:2}),K(Jn),this};var ga=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return Vn(ga)},f.__private__.setFillColor=f.setFillColor=function(h,P,Z,nt){return ga=Yn({ch1:h,ch2:P,ch3:Z,ch4:nt,pdfColorType:"fill",precision:2}),K(ga),this};var ti=e.textColor||"0 g",iu=f.__private__.getTextColor=f.getTextColor=function(){return Vn(ti)};f.__private__.setTextColor=f.setTextColor=function(h,P,Z,nt){return ti=Yn({ch1:h,ch2:P,ch3:Z,ch4:nt,pdfColorType:"text",precision:3}),this};var Bi=e.charSpace,au=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Bi||0)};f.__private__.setCharSpace=f.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Bi=h,this};var va=0;f.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},f.__private__.setLineCap=f.setLineCap=function(h){var P=f.CapJoinStyles[h];if(P===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return va=P,K(P+" J"),this};var ma=0;f.__private__.setLineJoin=f.setLineJoin=function(h){var P=f.CapJoinStyles[h];if(P===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ma=P,K(P+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return K(Q(L(h))+" M"),this},f.GState=eo,f.setGState=function(h){(h=typeof h=="string"?ye[An[h]]:Oo(null,h)).equals(Ye)||(K("/"+h.id+" gs"),Ye=h)};var Oo=function(h,P){if(!h||!An[h]){var Z=!1;for(var nt in ye)if(ye.hasOwnProperty(nt)&&ye[nt].equals(P)){Z=!0;break}if(Z)P=ye[nt];else{var ct="GS"+(Object.keys(ye).length+1).toString(10);ye[ct]=P,P.id=ct}return h&&(An[h]=P.id),ae.publish("addGState",P),P}};f.addGState=function(h,P){return Oo(h,P),this},f.saveGraphicsState=function(){return K("q"),In.push({key:Wt,size:_t,color:ti}),this},f.restoreGraphicsState=function(){K("Q");var h=In.pop();return Wt=h.key,_t=h.size,ti=h.color,Ye=null,this},f.setCurrentTransformationMatrix=function(h){return K(h.toString()+" cm"),this},f.comment=function(h){return K("#"+h),this};var Di=function(h,P){var Z=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Z},set:function(vt){isNaN(vt)||(Z=parseFloat(vt))}});var nt=P||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return nt},set:function(vt){isNaN(vt)||(nt=parseFloat(vt))}});var ct="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ct},set:function(vt){ct=vt.toString()}}),this},ba=function(h,P,Z,nt){Di.call(this,h,P),this.type="rect";var ct=Z||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ct},set:function(Nt){isNaN(Nt)||(ct=parseFloat(Nt))}});var vt=nt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return vt},set:function(Nt){isNaN(Nt)||(vt=parseFloat(Nt))}}),this},ya=function(){this.page=he,this.currentPage=R,this.pages=bt.slice(0),this.pagesContext=Vt.slice(0),this.x=ge,this.y=ne,this.matrix=Ce,this.width=ei(R),this.height=Or(R),this.outputDestination=Ft,this.id="",this.objectNumber=-1};ya.prototype.restore=function(){he=this.page,R=this.currentPage,Vt=this.pagesContext,bt=this.pages,ge=this.x,ne=this.y,Ce=this.matrix,wa(R,this.width),Aa(R,this.height),Ft=this.outputDestination};var Mo=function(h,P,Z,nt,ct){or.push(new ya),he=R=0,bt=[],ge=h,ne=P,Ce=ct,ca([Z,nt])},ou=function(h){if(Qe[h])or.pop().restore();else{var P=new ya,Z="Xo"+(Object.keys(Pe).length+1).toString(10);P.id=Z,Qe[h]=Z,Pe[Z]=P,ae.publish("addFormObject",P),or.pop().restore()}};for(var Ti in f.beginFormObject=function(h,P,Z,nt,ct){return Mo(h,P,Z,nt,ct),this},f.endFormObject=function(h){return ou(h),this},f.doFormObject=function(h,P){var Z=Pe[Qe[h]];return K("q"),K(P.toString()+" cm"),K("/"+Z.id+" Do"),K("Q"),this},f.getFormObject=function(h){var P=Pe[Qe[h]];return{x:P.x,y:P.y,width:P.width,height:P.height,matrix:P.matrix}},f.save=function(h,P){return h=h||"generated.pdf",(P=P||{}).returnPromise=P.returnPromise||!1,P.returnPromise===!1?(Vr(Ei(mr()),h),typeof Vr.unload=="function"&&Jt.setTimeout&&setTimeout(Vr.unload,911),this):new Promise(function(Z,nt){try{var ct=Vr(Ei(mr()),h);typeof Vr.unload=="function"&&Jt.setTimeout&&setTimeout(Vr.unload,911),Z(ct)}catch(vt){nt(vt.message)}})},Yt.API)Yt.API.hasOwnProperty(Ti)&&(Ti==="events"&&Yt.API.events.length?function(h,P){var Z,nt,ct;for(ct=P.length-1;ct!==-1;ct--)Z=P[ct][0],nt=P[ct][1],h.subscribe.apply(h,[Z].concat(typeof nt=="function"?[nt]:nt))}(ae,Yt.API.events):f[Ti]=Yt.API[Ti]);var ei=f.getPageWidth=function(h){return(Vt[h=h||R].mediaBox.topRightX-Vt[h].mediaBox.bottomLeftX)/Ct},wa=f.setPageWidth=function(h,P){Vt[h].mediaBox.topRightX=P*Ct+Vt[h].mediaBox.bottomLeftX},Or=f.getPageHeight=function(h){return(Vt[h=h||R].mediaBox.topRightY-Vt[h].mediaBox.bottomLeftY)/Ct},Aa=f.setPageHeight=function(h,P){Vt[h].mediaBox.topRightY=P*Ct+Vt[h].mediaBox.bottomLeftY};return f.internal={pdfEscape:vn,getStyle:ko,getFont:nu,getFontSize:kt,getCharSpace:au,getTextColor:iu,getLineHeight:Co,getLineHeightFactor:jo,getLineWidth:Mi,write:Tt,getHorizontalCoordinate:fr,getVerticalCoordinate:br,getCoordinateString:ru,getVerticalCoordinateString:jr,collections:{},newObject:We,newAdditionalObject:Ni,newObjectDeferred:qe,newObjectDeferredBegin:xn,getFilters:ur,putStream:Fn,events:ae,scaleFactor:Ct,pageSize:{getWidth:function(){return ei(R)},setWidth:function(h){wa(R,h)},getHeight:function(){return Or(R)},setHeight:function(h){Aa(R,h)}},encryptionOptions:d,encryption:sn,getEncryptor:Zs,output:ji,getNumberOfPages:Gs,pages:bt,out:K,f2:H,f3:A,getPageInfo:Po,getPageInfoByObjId:Kt,getCurrentPageInfo:Xs,getPDFVersion:N,Point:Di,Rectangle:ba,Matrix:Qt,hasHotfix:So},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return ei(R)},set:function(h){wa(R,h)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Or(R)},set:function(h){Aa(R,h)},enumerable:!0,configurable:!0}),Hs.call(f,xt),Wt="F1",Lo(o,n),ae.publish("initialized"),f}pi.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},pi.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},pi.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},pi.prototype.processOwnerPassword=function(e,t){return Ss(_s(t).substr(0,5),e)},pi.prototype.encryptor=function(e,t){var n=_s(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(i){return Ss(n,i)}},eo.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||(0,Ae.A)(e)!==(0,Ae.A)(this))return!1;var i=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&i--;return i===0},Yt.API={events:[]},Yt.version="2.5.2";var Fe=Yt.API,Ps=1,Qr=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},mi=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},$t=function(e){return e.toFixed(2)},Fr=function(e){return e.toFixed(5)};Fe.__acroform__={};var dn=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},al=function(e){return e*Ps},tr=function(e){var t=new sl,n=Rt.internal.getHeight(e)||0,i=Rt.internal.getWidth(e)||0;return t.BBox=[0,0,Number($t(i)),Number($t(n))],t},Cc=Fe.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},Ec=Fe.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},jc=Fe.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<t)==0?0:1},Oe=Fe.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return jc(e,t-1)},Me=Fe.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Cc(e,t-1)},Be=Fe.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ec(e,t-1)},Oc=Fe.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,i=t.internal.getVerticalCoordinate,o=e[0],r=e[1],s=e[2],u=e[3],c={};return c.lowerLeft_X=n(o)||0,c.lowerLeft_Y=i(r+u)||0,c.upperRight_X=n(o+s)||0,c.upperRight_Y=i(r)||0,[Number($t(c.lowerLeft_X)),Number($t(c.lowerLeft_Y)),Number($t(c.upperRight_X)),Number($t(c.upperRight_Y))]},Mc=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,i=ks(e,n),o=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+o+" "+$t(i.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC");var r=tr(e);return r.scope=e.scope,r.stream=t.join("\n"),r}},ks=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,i={text:"",fontSize:""},o=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");o=e.multiline?o.map(function(A){return A.split("\n")}):o.map(function(A){return[A]});var r=n,s=Rt.internal.getHeight(e)||0;s=s<0?-s:s;var u=Rt.internal.getWidth(e)||0;u=u<0?-u:u;var c=function(A,L,B){if(A+1<o.length){var F=L+" "+o[A+1][0];return no(F,e,B).width<=u-4}return!1};r++;t:for(;r>0;){t="",r--;var m,d,p=no("3",e,r).height,g=e.multiline?s-r:(s-p)/2,f=g+=2,w=0,N=0,C=0;if(r<=0){t="(...) Tj\n",t+="% Width of Text: "+no(t,e,r=12).width+", FieldWidth:"+u+"\n";break}for(var y="",M=0,z=0;z<o.length;z++)if(o.hasOwnProperty(z)){var G=!1;if(o[z].length!==1&&C!==o[z].length-1){if((p+2)*(M+2)+2>s)continue t;y+=o[z][C],G=!0,N=z,z--}else{y=(y+=o[z][C]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var $=parseInt(z),W=c($,y,r),Q=z>=o.length-1;if(W&&!Q){y+=" ",C=0;continue}if(W||Q){if(Q)N=$;else if(e.multiline&&(p+2)*(M+2)+2>s)continue t}else{if(!e.multiline||(p+2)*(M+2)+2>s)continue t;N=$}}for(var x="",k=w;k<=N;k++){var H=o[k];if(e.multiline){if(k===N){x+=H[C]+" ",C=(C+1)%H.length;continue}if(k===w){x+=H[H.length-1]+" ";continue}}x+=H[0]+" "}switch(x=x.substr(x.length-1)==" "?x.substr(0,x.length-1):x,d=no(x,e,r).width,e.textAlign){case"right":m=u-d-2;break;case"center":m=(u-d)/2;break;case"left":default:m=2}t+=$t(m)+" "+$t(f)+" Td\n",t+="("+Qr(x)+") Tj\n",t+=-$t(m)+" 0 Td\n",f=-(r+2),d=0,w=G?N:N+1,M++,y=""}break}return i.text=t,i.fontSize=r,i},no=function(e,t,n){var i=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},Bc={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Dc=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(i){return i.type===n.type&&i.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},Tc=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=n,o=e[n];t.internal.newObjectDeferredBegin(o.objId,!0),(0,Ae.A)(o)==="object"&&typeof o.putStream=="function"&&o.putStream(),delete e[i]}},Rc=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(qn.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Bc)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ps=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new ul,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var i=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var o in i)if(i.hasOwnProperty(o)){var r=i[o];r.objId=void 0,r.hasAnnotation&&Dc(r,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(i,o){var r=!i;for(var s 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(s)){var u=i[s],c=[],m=u.Rect;if(u.Rect&&(u.Rect=Oc(u.Rect,o)),o.internal.newObjectDeferredBegin(u.objId,!0),u.DA=Rt.createDefaultAppearanceStream(u),(0,Ae.A)(u)==="object"&&typeof u.getKeyValueListForStream=="function"&&(c=u.getKeyValueListForStream()),u.Rect=m,u.hasAppearanceStream&&!u.appearanceStreamContent){var d=Mc(u);c.push({key:"AP",value:"<</N "+d+">>"}),o.internal.acroformPlugin.xForms.push(d)}if(u.appearanceStreamContent){var p="";for(var g in u.appearanceStreamContent)if(u.appearanceStreamContent.hasOwnProperty(g)){var f=u.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var s in f)if(f.hasOwnProperty(s)){var w=f[s];typeof w=="function"&&(w=w.call(o,u)),p+="/"+s+" "+w+" ",o.internal.acroformPlugin.xForms.indexOf(w)>=0||o.internal.acroformPlugin.xForms.push(w)}}else typeof(w=f)=="function"&&(w=w.call(o,u)),p+="/"+s+" "+w,o.internal.acroformPlugin.xForms.indexOf(w)>=0||o.internal.acroformPlugin.xForms.push(w);p+=">>"}c.push({key:"AP",value:"<<\n"+p+">>"})}o.internal.putStream({additionalKeyValues:c,objectId:u.objId}),o.internal.out("endobj")}r&&Tc(o.internal.acroformPlugin.xForms,o)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},ol=Fe.__acroform__.arrayToPdfArray=function(e,t,n){var i=function(s){return s};if(Array.isArray(e)){for(var o="[",r=0;r<e.length;r++)switch(r!==0&&(o+=" "),(0,Ae.A)(e[r])){case"boolean":case"number":case"object":o+=e[r].toString();break;case"string":e[r].substr(0,1)!=="/"?(t!==void 0&&n&&(i=n.internal.getEncryptor(t)),o+="("+Qr(i(e[r].toString()))+")"):o+=e[r].toString()}return o+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Is=function(e,t,n){var i=function(o){return o};return t!==void 0&&n&&(i=n.internal.getEncryptor(t)),(e=e||"").toString(),e="("+Qr(i(e))+")"},er=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};er.prototype.toString=function(){return this.objId+" 0 R"},er.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},er.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(r){return r!="content"&&r!="appearanceStreamContent"&&r!="scope"&&r!="objId"&&r.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var i=t[n],o=this[i];o&&(Array.isArray(o)?e.push({key:i,value:ol(o,this.objId,this.scope)}):o instanceof er?(o.scope=this.scope,e.push({key:i,value:o.objId+" 0 R"})):typeof o!="function"&&e.push({key:i,value:o}))}return e};var sl=function(){er.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};dn(sl,er);var ul=function(){er.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(i){return i};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Qr(n(e))+")"}},set:function(n){e=n}})};dn(ul,er);var qn=function e(){er.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Oe(t,3)},set:function(y){y?this.F=Me(t,3):this.F=Be(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');n=y}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(y){i=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(y){i[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(y){i[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(y){i[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(y){i[3]=y}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof ao)return;r="FieldObject"+e.FieldNum++}var y=function(M){return M};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Qr(y(r))+")"},set:function(y){r=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(y){r=y}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var u="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return u},set:function(y){u=y}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(y){c=y}});var m=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return m===void 0?50/Ps:m},set:function(y){m=y}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(y){d=y}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof ao||this instanceof Jr))return Is(p,this.objId,this.scope)},set:function(y){y=y.toString(),p=y}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Ve?g:Is(g,this.objId,this.scope)},set:function(y){y=y.toString(),g=this instanceof Ve?y:y.substr(0,1)==="("?mi(y.substr(1,y.length-2)):mi(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ve?mi(g.substr(1,g.length-1)):g},set:function(y){y=y.toString(),g=this instanceof Ve?"/"+y:y}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Ve?f:Is(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=this instanceof Ve?y:y.substr(0,1)==="("?mi(y.substr(1,y.length-2)):mi(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ve?mi(f.substr(1,f.length-1)):f},set:function(y){y=y.toString(),f=this instanceof Ve?"/"+y:y}}),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 w,N=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return N},set:function(y){y=!!y,N=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(y){w=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,1)},set:function(y){y?this.Ff=Me(this.Ff,1):this.Ff=Be(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,2)},set:function(y){y?this.Ff=Me(this.Ff,2):this.Ff=Be(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,3)},set:function(y){y?this.Ff=Me(this.Ff,3):this.Ff=Be(this.Ff,3)}});var C=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(C!==null)return C},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');C=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(C){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:C=2;break;case"center":case 1:C=1;break;case"left":case 0:default:C=0}}})};dn(qn,er);var bi=function(){qn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ol(t,this.objId,this.scope)},set:function(n){var i,o;o=[],typeof(i=n)=="string"&&(o=function(r,s,u){u||(u=1);for(var c,m=[];c=s.exec(r);)m.push(c[u]);return m}(i,/\((.*?)\)/g)),t=o}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,i){for(i=i||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),i!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,18)},set:function(n){n?this.Ff=Me(this.Ff,18):this.Ff=Be(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Me(this.Ff,19):this.Ff=Be(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,20)},set:function(n){n?(this.Ff=Me(this.Ff,20),t.sort()):this.Ff=Be(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,22)},set:function(n){n?this.Ff=Me(this.Ff,22):this.Ff=Be(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,23)},set:function(n){n?this.Ff=Me(this.Ff,23):this.Ff=Be(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,27)},set:function(n){n?this.Ff=Me(this.Ff,27):this.Ff=Be(this.Ff,27)}}),this.hasAppearanceStream=!1};dn(bi,qn);var yi=function(){bi.call(this),this.fontName="helvetica",this.combo=!1};dn(yi,bi);var wi=function(){yi.call(this),this.combo=!0};dn(wi,yi);var ro=function(){wi.call(this),this.edit=!0};dn(ro,wi);var Ve=function(){qn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,15)},set:function(n){n?this.Ff=Me(this.Ff,15):this.Ff=Be(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,16)},set:function(n){n?this.Ff=Me(this.Ff,16):this.Ff=Be(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,17)},set:function(n){n?this.Ff=Me(this.Ff,17):this.Ff=Be(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,26)},set:function(n){n?this.Ff=Me(this.Ff,26):this.Ff=Be(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(r){return r};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var i,o=[];for(i in o.push("<<"),t)o.push("/"+i+" ("+Qr(n(t[i]))+")");return o.push(">>"),o.join("\n")}},set:function(n){(0,Ae.A)(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}})};dn(Ve,qn);var io=function(){Ve.call(this),this.pushButton=!0};dn(io,Ve);var Ai=function(){Ve.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};dn(Ai,Ve);var ao=function(){var e,t;qn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(o){e=o}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(o){t=o}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var o=function(u){return u};this.scope&&(o=this.scope.internal.getEncryptor(this.objId));var r,s=[];for(r in s.push("<<"),i)s.push("/"+r+" ("+Qr(o(i[r]))+")");return s.push(">>"),s.join("\n")},set:function(o){(0,Ae.A)(o)==="object"&&(i=o)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(o){typeof o=="string"&&(i.CA=o)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(o){n=o}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(o){n="/"+o}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Rt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};dn(ao,qn),Ai.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Ai.prototype.createOption=function(e){var t=new ao;return t.Parent=this,t.optionName=e,this.Kids.push(t),qc.call(this.scope,t),t};var oo=function(){Ve.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Rt.CheckBox.createAppearanceStream()};dn(oo,Ve);var Jr=function(){qn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,13)},set:function(t){t?this.Ff=Me(this.Ff,13):this.Ff=Be(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,21)},set:function(t){t?this.Ff=Me(this.Ff,21):this.Ff=Be(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,23)},set:function(t){t?this.Ff=Me(this.Ff,23):this.Ff=Be(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,24)},set:function(t){t?this.Ff=Me(this.Ff,24):this.Ff=Be(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,25)},set:function(t){t?this.Ff=Me(this.Ff,25):this.Ff=Be(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,26)},set:function(t){t?this.Ff=Me(this.Ff,26):this.Ff=Be(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};dn(Jr,qn);var so=function(){Jr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Oe(this.Ff,14)},set:function(e){e?this.Ff=Me(this.Ff,14):this.Ff=Be(this.Ff,14)}}),this.password=!0};dn(so,Jr);var Rt={CheckBox:{createAppearanceStream:function(){return{N:{On:Rt.CheckBox.YesNormal},D:{On:Rt.CheckBox.YesPushDown,Off:Rt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=tr(e);t.scope=e.scope;var n=[],i=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),r=ks(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+$t(Rt.internal.getWidth(e))+" "+$t(Rt.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+$t(r.fontSize)+" Tf "+o),n.push("BT"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=tr(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=[],r=Rt.internal.getHeight(e),s=Rt.internal.getWidth(e),u=ks(e,e.caption);return o.push("1 g"),o.push("0 0 "+$t(s)+" "+$t(r)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+$t(s-1)+" "+$t(r-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+$t(u.fontSize)+" Tf "+i),o.push(u.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=tr(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+$t(Rt.internal.getWidth(e))+" "+$t(Rt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Rt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Rt.RadioButton.Circle.YesNormal,t.D[e]=Rt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=tr(e);t.scope=e.scope;var n=[],i=Rt.internal.getWidth(e)<=Rt.internal.getHeight(e)?Rt.internal.getWidth(e)/4:Rt.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var o=Rt.internal.Bezier_C,r=Number((i*o).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Fr(Rt.internal.getWidth(e)/2)+" "+Fr(Rt.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+r+" "+r+" "+i+" 0 "+i+" c"),n.push("-"+r+" "+i+" -"+i+" "+r+" -"+i+" 0 c"),n.push("-"+i+" -"+r+" -"+r+" -"+i+" 0 -"+i+" c"),n.push(r+" -"+i+" "+i+" -"+r+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=tr(e);t.scope=e.scope;var n=[],i=Rt.internal.getWidth(e)<=Rt.internal.getHeight(e)?Rt.internal.getWidth(e)/4:Rt.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var o=Number((2*i).toFixed(5)),r=Number((o*Rt.internal.Bezier_C).toFixed(5)),s=Number((i*Rt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Fr(Rt.internal.getWidth(e)/2)+" "+Fr(Rt.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+r+" "+r+" "+o+" 0 "+o+" c"),n.push("-"+r+" "+o+" -"+o+" "+r+" -"+o+" 0 c"),n.push("-"+o+" -"+r+" -"+r+" -"+o+" 0 -"+o+" c"),n.push(r+" -"+o+" "+o+" -"+r+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Fr(Rt.internal.getWidth(e)/2)+" "+Fr(Rt.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=tr(e);t.scope=e.scope;var n=[],i=Rt.internal.getWidth(e)<=Rt.internal.getHeight(e)?Rt.internal.getWidth(e)/4:Rt.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var o=Number((2*i).toFixed(5)),r=Number((o*Rt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Fr(Rt.internal.getWidth(e)/2)+" "+Fr(Rt.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+r+" "+r+" "+o+" 0 "+o+" c"),n.push("-"+r+" "+o+" -"+o+" "+r+" -"+o+" 0 c"),n.push("-"+o+" -"+r+" -"+r+" -"+o+" 0 -"+o+" c"),n.push(r+" -"+o+" "+o+" -"+r+" "+o+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Rt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Rt.RadioButton.Cross.YesNormal,t.D[e]=Rt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=tr(e);t.scope=e.scope;var n=[],i=Rt.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+$t(Rt.internal.getWidth(e)-2)+" "+$t(Rt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push($t(i.x1.x)+" "+$t(i.x1.y)+" m"),n.push($t(i.x2.x)+" "+$t(i.x2.y)+" l"),n.push($t(i.x4.x)+" "+$t(i.x4.y)+" m"),n.push($t(i.x3.x)+" "+$t(i.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=tr(e);t.scope=e.scope;var n=Rt.internal.calculateCross(e),i=[];return i.push("0.749023 g"),i.push("0 0 "+$t(Rt.internal.getWidth(e))+" "+$t(Rt.internal.getHeight(e))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+$t(Rt.internal.getWidth(e)-2)+" "+$t(Rt.internal.getHeight(e)-2)+" re"),i.push("W"),i.push("n"),i.push($t(n.x1.x)+" "+$t(n.x1.y)+" m"),i.push($t(n.x2.x)+" "+$t(n.x2.y)+" l"),i.push($t(n.x4.x)+" "+$t(n.x4.y)+" m"),i.push($t(n.x3.x)+" "+$t(n.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=tr(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+$t(Rt.internal.getWidth(e))+" "+$t(Rt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Rt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Rt.internal.getWidth(e),n=Rt.internal.getHeight(e),i=Math.min(t,n);return{x1:{x:(t-i)/2,y:(n-i)/2+i},x2:{x:(t-i)/2+i,y:(n-i)/2},x3:{x:(t-i)/2,y:(n-i)/2},x4:{x:(t-i)/2+i,y:(n-i)/2+i}}}},Rt.internal.getWidth=function(e){var t=0;return(0,Ae.A)(e)==="object"&&(t=al(e.Rect[2])),t},Rt.internal.getHeight=function(e){var t=0;return(0,Ae.A)(e)==="object"&&(t=al(e.Rect[3])),t};var qc=Fe.addField=function(e){if(Rc(this,e),!(e instanceof qn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Fe.AcroFormChoiceField=bi,Fe.AcroFormListBox=yi,Fe.AcroFormComboBox=wi,Fe.AcroFormEditBox=ro,Fe.AcroFormButton=Ve,Fe.AcroFormPushButton=io,Fe.AcroFormRadioButton=Ai,Fe.AcroFormCheckBox=oo,Fe.AcroFormTextField=Jr,Fe.AcroFormPasswordField=so,Fe.AcroFormAppearance=Rt,Fe.AcroForm={ChoiceField:bi,ListBox:yi,ComboBox:wi,EditBox:ro,Button:Ve,PushButton:io,RadioButton:Ai,CheckBox:oo,TextField:Jr,PasswordField:so,Appearance:Rt},Yt.AcroForm={ChoiceField:bi,ListBox:yi,ComboBox:wi,EditBox:ro,Button:Ve,PushButton:io,RadioButton:Ai,CheckBox:oo,TextField:Jr,PasswordField:so,Appearance:Rt};var D1=Yt.AcroForm;function ll(e){return e.reduce(function(t,n,i){return t[n]=i,t},{})}(function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(A,L){var B,F,Y,E,I,X=t;if((L=L||t)==="RGBA"||A.data!==void 0&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(W(A))for(I in n)for(Y=n[I],B=0;B<Y.length;B+=1){for(E=!0,F=0;F<Y[B].length;F+=1)if(Y[B][F]!==void 0&&Y[B][F]!==A[F]){E=!1;break}if(E===!0){X=I;break}}else for(I in n)for(Y=n[I],B=0;B<Y.length;B+=1){for(E=!0,F=0;F<Y[B].length;F+=1)if(Y[B][F]!==void 0&&Y[B][F]!==A.charCodeAt(F)){E=!1;break}if(E===!0){X=I;break}}return X===t&&L!==t&&(X=L),X},o=function A(L){for(var B=this.internal.write,F=this.internal.putStream,Y=(0,this.internal.getFilters)();Y.indexOf("FlateEncode")!==-1;)Y.splice(Y.indexOf("FlateEncode"),1);L.objectId=this.internal.newObject();var E=[];if(E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Image"}),E.push({key:"Width",value:L.width}),E.push({key:"Height",value:L.height}),L.colorSpace===C.INDEXED?E.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(L.palette.length/3-1)+" "+("sMask"in L&&L.sMask!==void 0?L.objectId+2:L.objectId+1)+" 0 R]"}):(E.push({key:"ColorSpace",value:"/"+L.colorSpace}),L.colorSpace===C.DEVICE_CMYK&&E.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),E.push({key:"BitsPerComponent",value:L.bitsPerComponent}),"decodeParameters"in L&&L.decodeParameters!==void 0&&E.push({key:"DecodeParms",value:"<<"+L.decodeParameters+">>"}),"transparency"in L&&Array.isArray(L.transparency)){for(var I="",X=0,J=L.transparency.length;X<J;X++)I+=L.transparency[X]+" "+L.transparency[X]+" ";E.push({key:"Mask",value:"["+I+"]"})}L.sMask!==void 0&&E.push({key:"SMask",value:L.objectId+1+" 0 R"});var tt=L.filter!==void 0?["/"+L.filter]:void 0;if(F({data:L.data,additionalKeyValues:E,alreadyAppliedFilters:tt,objectId:L.objectId}),B("endobj"),"sMask"in L&&L.sMask!==void 0){var gt="/Predictor "+L.predictor+" /Colors 1 /BitsPerComponent "+L.bitsPerComponent+" /Columns "+L.width,_={width:L.width,height:L.height,colorSpace:"DeviceGray",bitsPerComponent:L.bitsPerComponent,decodeParameters:gt,data:L.sMask};"filter"in L&&(_.filter=L.filter),A.call(this,_)}if(L.colorSpace===C.INDEXED){var R=this.internal.newObject();F({data:x(new Uint8Array(L.palette)),objectId:R}),B("endobj")}},r=function(){var A=this.internal.collections.addImage_images;for(var L in A)o.call(this,A[L])},s=function(){var A,L=this.internal.collections.addImage_images,B=this.internal.write;for(var F in L)B("/I"+(A=L[F]).index,A.objectId,"0","R")},u=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",r),this.internal.events.subscribe("putXobjectDict",s))},c=function(){var A=this.internal.collections.addImage_images;return u.call(this),A},m=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(A){return typeof e["process"+A.toUpperCase()]=="function"},p=function(A){return(0,Ae.A)(A)==="object"&&A.nodeType===1},g=function(A,L){if(A.nodeName==="IMG"&&A.hasAttribute("src")){var B=""+A.getAttribute("src");if(B.indexOf("data:image/")===0)return sa(unescape(B).split("base64,").pop());var F=e.loadFile(B,!0);if(F!==void 0)return F}if(A.nodeName==="CANVAS"){if(A.width===0||A.height===0)throw new Error("Given canvas must have data. Canvas width: "+A.width+", height: "+A.height);var Y;switch(L){case"PNG":Y="image/png";break;case"WEBP":Y="image/webp";break;case"JPEG":case"JPG":default:Y="image/jpeg"}return sa(A.toDataURL(Y,1).split("base64,").pop())}},f=function(A){var L=this.internal.collections.addImage_images;if(L){for(var B in L)if(A===L[B].alias)return L[B]}},w=function(A,L,B){return A||L||(A=-96,L=-96),A<0&&(A=-1*B.width*72/A/this.internal.scaleFactor),L<0&&(L=-1*B.height*72/L/this.internal.scaleFactor),A===0&&(A=L*B.width/B.height),L===0&&(L=A*B.height/B.width),[A,L]},N=function(A,L,B,F,Y,E){var I=w.call(this,B,F,Y),X=this.internal.getCoordinateString,J=this.internal.getVerticalCoordinateString,tt=c.call(this);if(B=I[0],F=I[1],tt[Y.index]=Y,E){E*=Math.PI/180;var gt=Math.cos(E),_=Math.sin(E),R=function(U){return U.toFixed(4)},q=[R(gt),R(_),R(-1*_),R(gt),0,0,"cm"]}this.internal.write("q"),E?(this.internal.write([1,"0","0",1,X(A),J(L+F),"cm"].join(" ")),this.internal.write(q.join(" ")),this.internal.write([X(B),"0","0",X(F),"0","0","cm"].join(" "))):this.internal.write([X(B),"0","0",X(F),X(A),J(L+F),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Y.index+" Do"),this.internal.write("Q")},C=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},M=e.__addimage__.sHashCode=function(A){var L,B,F=0;if(typeof A=="string")for(B=A.length,L=0;L<B;L++)F=(F<<5)-F+A.charCodeAt(L),F|=0;else if(W(A))for(B=A.byteLength/2,L=0;L<B;L++)F=(F<<5)-F+A[L],F|=0;return F},z=e.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var L=!0;return A.length===0&&(L=!1),A.length%4!=0&&(L=!1),/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))===!1&&(L=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))===!1&&(L=!1),L},G=e.__addimage__.extractImageFromDataUrl=function(A){var L=(A=A||"").split("base64,"),B=null;if(L.length===2){var F=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(L[0]);Array.isArray(F)&&(B={mimeType:F[1],charset:F[2],data:L[1]})}return B},$=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(A){return $()&&A instanceof ArrayBuffer};var W=e.__addimage__.isArrayBufferView=function(A){return $()&&typeof Uint32Array<"u"&&(A instanceof Int8Array||A instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)},Q=e.__addimage__.binaryStringToUint8Array=function(A){for(var L=A.length,B=new Uint8Array(L),F=0;F<L;F++)B[F]=A.charCodeAt(F);return B},x=e.__addimage__.arrayBufferToBinaryString=function(A){for(var L="",B=W(A)?A:new Uint8Array(A),F=0;F<B.length;F+=8192)L+=String.fromCharCode.apply(null,B.subarray(F,F+8192));return L};e.addImage=function(){var A,L,B,F,Y,E,I,X,J;if(typeof arguments[1]=="number"?(L=t,B=arguments[1],F=arguments[2],Y=arguments[3],E=arguments[4],I=arguments[5],X=arguments[6],J=arguments[7]):(L=arguments[1],B=arguments[2],F=arguments[3],Y=arguments[4],E=arguments[5],I=arguments[6],X=arguments[7],J=arguments[8]),(0,Ae.A)(A=arguments[0])==="object"&&!p(A)&&"imageData"in A){var tt=A;A=tt.imageData,L=tt.format||L||t,B=tt.x||B||0,F=tt.y||F||0,Y=tt.w||tt.width||Y,E=tt.h||tt.height||E,I=tt.alias||I,X=tt.compression||X,J=tt.rotation||tt.angle||J}var gt=this.internal.getFilters();if(X===void 0&&gt.indexOf("FlateEncode")!==-1&&(X="SLOW"),isNaN(B)||isNaN(F))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var _=k.call(this,A,L,I,X);return N.call(this,B,F,Y,E,_,J),this};var k=function(A,L,B,F){var Y,E,I;if(typeof A=="string"&&i(A)===t){A=unescape(A);var X=H(A,!1);(X!==""||(X=e.loadFile(A,!0))!==void 0)&&(A=X)}if(p(A)&&(A=g(A,L)),L=i(A,L),!d(L))throw new Error("addImage does not support files of type '"+L+"', please ensure that a plugin for '"+L+"' support is added.");if(((I=B)==null||I.length===0)&&(B=function(J){return typeof J=="string"||W(J)?M(J):W(J.data)?M(J.data):null}(A)),(Y=f.call(this,B))||($()&&(A instanceof Uint8Array||L==="RGBA"||(E=A,A=Q(A))),Y=this["process"+L.toUpperCase()](A,m.call(this),B,function(J){return J&&typeof J=="string"&&(J=J.toUpperCase()),J in e.image_compression?J:y.NONE}(F),E)),!Y)throw new Error("An unknown error occurred whilst processing the image.");return Y},H=e.__addimage__.convertBase64ToBinaryString=function(A,L){var B;L=typeof L!="boolean"||L;var F,Y="";if(typeof A=="string"){F=(B=G(A))!==null?B.data:A;try{Y=sa(F)}catch(E){if(L)throw z(F)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+E.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Y};e.getImageProperties=function(A){var L,B,F="";if(p(A)&&(A=g(A)),typeof A=="string"&&i(A)===t&&((F=H(A,!1))===""&&(F=e.loadFile(A)||""),A=F),B=i(A),!d(B))throw new Error("addImage does not support files of type '"+B+"', please ensure that a plugin for '"+B+"' support is added.");if(!$()||A instanceof Uint8Array||(A=Q(A)),!(L=this["process"+B.toUpperCase()](A)))throw new Error("An unknown error occurred whilst processing the image");return L.fileType=B,L}})(Yt.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Yt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var i,o,r,s=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(n.objId),m=n.pageContext.annotations,d=!1,p=0;p<m.length&&!d;p++)switch((i=m[p]).type){case"link":(t(i.options.url)||t(i.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var g=0;g<m.length;g++){i=m[g];var f=this.internal.pdfEscape,w=this.internal.getEncryptor(n.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var N=this.internal.newAdditionalObject(),C=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(N.objId),M=i.title||"Note";r="<</Type /Annot /Subtype /Text "+(o="/Rect ["+s(i.bounds.x)+" "+u(i.bounds.y+i.bounds.h)+" "+s(i.bounds.x+i.bounds.w)+" "+u(i.bounds.y)+"] ")+"/Contents ("+f(y(i.contents))+")",r+=" /Popup "+C.objId+" 0 R",r+=" /P "+c.objId+" 0 R",r+=" /T ("+f(y(M))+") >>",N.content=r;var z=N.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(o="/Rect ["+s(i.bounds.x+30)+" "+u(i.bounds.y+i.bounds.h)+" "+s(i.bounds.x+i.bounds.w+30)+" "+u(i.bounds.y)+"] ")+" /Parent "+z,i.open&&(r+=" /Open true"),r+=" >>",C.content=r,this.internal.write(N.objId,"0 R",C.objId,"0 R");break;case"freetext":o="/Rect ["+s(i.bounds.x)+" "+u(i.bounds.y)+" "+s(i.bounds.x+i.bounds.w)+" "+u(i.bounds.y+i.bounds.h)+"] ";var G=i.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+o+"/Contents ("+f(w(i.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+G+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(i.options.name){var $=this.annotations._nameMap[i.options.name];i.options.pageNumber=$.page,i.options.top=$.y}else i.options.top||(i.options.top=0);if(o="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",r="",i.options.url)r="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /A <</S /URI /URI ("+f(w(i.options.url))+") >>";else if(i.options.pageNumber)switch(r="<</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":r+=" /Fit]";break;case"FitH":r+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,r+=" /FitV "+i.options.left+"]";break;case"XYZ":default:var W=u(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),r+=" /XYZ "+i.options.left+" "+W+" "+i.options.zoom+"]"}r!=""&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var i=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":i.pageContext.annotations.push(n)}},e.link=function(n,i,o,r,s){var u=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,m=this.internal.getVerticalCoordinateString;u.pageContext.annotations.push({finalBounds:{x:c(n),y:m(i),w:c(n+o),h:m(i+r)},options:s,type:"link"})},e.textWithLink=function(n,i,o,r){var s,u,c=this.getTextWidth(n),m=this.internal.getLineHeight()/this.internal.scaleFactor;if(r.maxWidth!==void 0){u=r.maxWidth;var d=this.splitTextToSize(n,u).length;s=Math.ceil(m*d)}else u=c,s=m;return this.text(n,i,o,r),o+=.2*m,r.align==="center"&&(i-=c/2),r.align==="right"&&(i-=c),this.link(i,o-m,u,s,r),c},e.getTextWidth=function(n){var i=this.internal.getFontSize();return this.getStringUnitWidth(n)*i/this.internal.scaleFactor}}(Yt.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var r=e.__arabicParser__.isInArabicSubstitutionA=function(N){return t[N.charCodeAt(0)]!==void 0},s=e.__arabicParser__.isArabicLetter=function(N){return typeof N=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(N)},u=e.__arabicParser__.isArabicEndLetter=function(N){return s(N)&&r(N)&&t[N.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(N){return s(N)&&o.indexOf(N.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(N){return s(N)&&r(N)&&t[N.charCodeAt(0)].length>=1};var m=e.__arabicParser__.arabicLetterHasFinalForm=function(N){return s(N)&&r(N)&&t[N.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(N){return s(N)&&r(N)&&t[N.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(N){return s(N)&&r(N)&&t[N.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(N){var C=0,y=n,M="",z=0;for(C=0;C<N.length;C+=1)y[N.charCodeAt(C)]!==void 0?(z++,typeof(y=y[N.charCodeAt(C)])=="number"&&(M+=String.fromCharCode(y),y=n,z=0),C===N.length-1&&(y=n,M+=N.charAt(C-(z-1)),C-=z-1,z=0)):(y=n,M+=N.charAt(C-z),C-=z,z=0);return M};e.__arabicParser__.isArabicDiacritic=function(N){return N!==void 0&&i[N.charCodeAt(0)]!==void 0};var g=e.__arabicParser__.getCorrectForm=function(N,C,y){return s(N)?r(N)===!1?-1:!m(N)||!s(C)&&!s(y)||!s(y)&&u(C)||u(N)&&!s(C)||u(N)&&c(C)||u(N)&&u(C)?0:d(N)&&s(C)&&!u(C)&&s(y)&&m(y)?3:u(N)||!s(y)?1:2:-1},f=function(N){var C=0,y=0,M=0,z="",G="",$="",W=(N=N||"").split("\\s+"),Q=[];for(C=0;C<W.length;C+=1){for(Q.push(""),y=0;y<W[C].length;y+=1)z=W[C][y],G=W[C][y-1],$=W[C][y+1],s(z)?(M=g(z,G,$),Q[C]+=M!==-1?String.fromCharCode(t[z.charCodeAt(0)][M]):z):Q[C]+=z;Q[C]=p(Q[C])}return Q.join(" ")},w=e.__arabicParser__.processArabic=e.processArabic=function(){var N,C=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(C)){var M=0;for(y=[],M=0;M<C.length;M+=1)Array.isArray(C[M])?y.push([f(C[M][0]),C[M][1],C[M][2]]):y.push([f(C[M])]);N=y}else N=f(C);return typeof arguments[0]=="string"?N:(arguments[0].text=N,arguments[0])};e.events.push(["preProcessText",w])}(Yt.API),Yt.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default: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")})}return this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(u){n=u}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(u){i=isNaN(u)||Number.isInteger(u)===!1||u<0?150:u,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var o=300;Object.defineProperty(this,"height",{get:function(){return o},set:function(u){o=isNaN(u)||Number.isInteger(u)===!1||u<0?300:u,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=o+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(u){r=u}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(u){s=u}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,i){var o;if((n=n||"2d")!=="2d")return null;for(o in i)this.pdf.context2d.hasOwnProperty(o)&&(this.pdf.context2d[o]=i[o]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Yt.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(N){c=N}});var m=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return m},set:function(N){m=N}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(N){d=N}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(N){p=N}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(N){g=N}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(N){f=N}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(N){w=N}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(c){return i.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,m){i.call(this);var d=(m=m||{}).fontSize||this.getFontSize(),p=m.font||this.getFont(),g=m.scaleFactor||this.internal.scaleFactor,f=0,w=0,N=0,C=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var y=m.maxWidth;y>0?typeof c=="string"?c=this.splitTextToSize(c,y):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(z,G){return z.concat(C.splitTextToSize(G,y))},[])):c=Array.isArray(c)?c:[c];for(var M=0;M<c.length;M++)f<(N=this.getStringUnitWidth(c[M],{font:p})*d)&&(f=N);return f!==0&&(w=c.length),{w:f/=g,h:Math.max((w*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/g,0)}},e.cellAddPage=function(){i.call(this),this.addPage();var c=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new r(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var c;c=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var m=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,p=this.internal.__cell__.margins||t,g=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return m.lineNumber!==void 0&&(m.lineNumber===c.lineNumber?(c.x=(m.x||0)+(m.width||0),c.y=m.y||0):m.y+m.height+c.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=p.top,f&&g&&(this.printHeaderRow(c.lineNumber,!0),c.y+=g[0].height)):c.y=m.y+m.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,n===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-d,c.y+d,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+d,{align:"center",baseline:"top",maxWidth:c.width-d-d}):this.text(c.text,c.x+d,c.y+d,{align:"left",baseline:"top",maxWidth:c.width-d-d})),this.internal.__cell__.lastCell=c,this};e.table=function(c,m,d,p,g){if(i.call(this),!d)throw new Error("No data for PDF table.");var f,w,N,C,y=[],M=[],z=[],G={},$={},W=[],Q=[],x=(g=g||{}).autoSize||!1,k=g.printHeaders!==!1,H=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,A=g.margins||Object.assign({width:this.getPageWidth()},t),L=typeof g.padding=="number"?g.padding:3,B=g.headerBackgroundColor||"#c8c8c8",F=g.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=A,this.internal.__cell__.table_font_size=H,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=B,this.internal.__cell__.headerTextColor=F,this.setFontSize(H),p==null)M=y=Object.keys(d[0]),z=y.map(function(){return"left"});else if(Array.isArray(p)&&(0,Ae.A)(p[0])==="object")for(y=p.map(function(tt){return tt.name}),M=p.map(function(tt){return tt.prompt||tt.name||""}),z=p.map(function(tt){return tt.align||"left"}),f=0;f<p.length;f+=1)$[p[f].name]=p[f].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(M=y=p,z=y.map(function(){return"left"}));if(x||Array.isArray(p)&&typeof p[0]=="string")for(f=0;f<y.length;f+=1){for(G[C=y[f]]=d.map(function(tt){return tt[C]}),this.setFont(void 0,"bold"),W.push(this.getTextDimensions(M[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=G[C],this.setFont(void 0,"normal"),N=0;N<w.length;N+=1)W.push(this.getTextDimensions(w[N],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);$[C]=Math.max.apply(null,W)+L+L,W=[]}if(k){var Y={};for(f=0;f<y.length;f+=1)Y[y[f]]={},Y[y[f]].text=M[f],Y[y[f]].align=z[f];var E=u.call(this,Y,$);Q=y.map(function(tt){return new r(c,m,$[tt],E,Y[tt].text,void 0,Y[tt].align)}),this.setTableHeaderRow(Q),this.printHeaderRow(1,!1)}var I=p.reduce(function(tt,gt){return tt[gt.name]=gt.align,tt},{});for(f=0;f<d.length;f+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:f,data:d[f]},this);var X=u.call(this,d[f],$);for(N=0;N<y.length;N+=1){var J=d[f][y[N]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:f,col:N,data:J},this),s.call(this,new r(c,m,$[y[N]],X,J,f+2,I[y[N]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=m,this};var u=function(c,m){var d=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(c).map(function(f){var w=c[f];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,m[f]-d-d)},this).map(function(f){return this.getLineHeightFactor()*f.length*p/g+d+d},this).reduce(function(f,w){return Math.max(f,w)},0)};e.setTableHeaderRow=function(c){i.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,m){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){d=this.internal.__cell__.tableHeaderRow[f].clone(),m&&(d.y=this.internal.__cell__.margins.top||0,g.push(d)),d.lineNumber=c;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,d),this.setTextColor(w)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),n=!1}}(Yt.API);var cl={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},fl=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Fs=ll(fl),hl=[100,200,300,400,500,600,700,800,900],Uc=ll(hl);function Cs(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(r){return cl[r=r||"normal"]?r:"normal"}(e.style),i=function(r){if(!r)return 400;if(typeof r=="number")return r>=100&&r<=900&&r%100==0?r:400;if(/^\d00$/.test(r))return parseInt(r);switch(r){case"bold":return 700;case"normal":default:return 400}}(e.weight),o=function(r){return typeof Fs[r=r||"normal"]=="number"?r:"normal"}(e.stretch);return{family:t,style:n,weight:i,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,n,i].join(" ")}}}function dl(e,t,n,i){var o;for(o=n;o>=0&&o<t.length;o+=i)if(e[t[o]])return e[t[o]];for(o=n;o>=0&&o<t.length;o-=i)if(e[t[o]])return e[t[o]]}var zc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},pl={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function gl(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Hc(e,t,n){for(var i=(n=n||{}).defaultFontFamily||"times",o=Object.assign({},zc,n.genericFontFamilies||{}),r=null,s=null,u=0;u<t.length;++u)if(o[(r=Cs(t[u])).family]&&(r.family=o[r.family]),e.hasOwnProperty(r.family)){s=e[r.family];break}if(!(s=s||e[i]))throw new Error("Could not find a font-family for the rule '"+gl(r)+"' and default family '"+i+"'.");if(s=function(c,m){if(m[c])return m[c];var d=Fs[c],p=d<=Fs.normal?-1:1,g=dl(m,fl,d,p);if(!g)throw new Error("Could not find a matching font-stretch value for "+c);return g}(r.stretch,s),s=function(c,m){if(m[c])return m[c];for(var d=cl[c],p=0;p<d.length;++p)if(m[d[p]])return m[d[p]];throw new Error("Could not find a matching font-style for "+c)}(r.style,s),!(s=function(c,m){if(m[c])return m[c];if(c===400&&m[500])return m[500];if(c===500&&m[400])return m[400];var d=Uc[c],p=dl(m,hl,d,c<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+c);return p}(r.weight,s)))throw new Error("Failed to resolve a font for the rule '"+gl(r)+"'.");return s}function vl(e){return e.trimLeft()}function Wc(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Gc(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var uo,ml,bl,Es=["times"];(function(e){var t,n,i,o,r,s,u,c,m,d=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||!1,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||!1,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new c,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new s,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new s,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,s=this.internal.Point,u=this.internal.Rectangle,c=this.internal.Matrix,m=new d}]);var p=function(_){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=_;Object.defineProperty(this,"pdf",{get:function(){return R}});var q=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return q},set:function(dt){q=!!dt}});var U=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return U},set:function(dt){U=!!dt}});var et=0;Object.defineProperty(this,"posX",{get:function(){return et},set:function(dt){isNaN(dt)||(et=dt)}});var st=0;Object.defineProperty(this,"posY",{get:function(){return st},set:function(dt){isNaN(dt)||(st=dt)}}),Object.defineProperty(this,"margin",{get:function(){return m.margin},set:function(dt){var K;typeof dt=="number"?K=[dt,dt,dt,dt]:((K=new Array(4))[0]=dt[0],K[1]=dt.length>=2?dt[1]:K[0],K[2]=dt.length>=3?dt[2]:K[0],K[3]=dt.length>=4?dt[3]:K[1]),m.margin=K}});var lt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return lt},set:function(dt){lt=dt}});var ut=0;Object.defineProperty(this,"lastBreak",{get:function(){return ut},set:function(dt){ut=dt}});var wt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wt},set:function(dt){wt=dt}}),Object.defineProperty(this,"ctx",{get:function(){return m},set:function(dt){dt instanceof d&&(m=dt)}}),Object.defineProperty(this,"path",{get:function(){return m.path},set:function(dt){m.path=dt}});var bt=[];Object.defineProperty(this,"ctxStack",{get:function(){return bt},set:function(dt){bt=dt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(dt){var K;K=g(dt),this.ctx.fillStyle=K.style,this.ctx.isFillTransparent=K.a===0,this.ctx.fillOpacity=K.a,this.pdf.setFillColor(K.r,K.g,K.b,{a:K.a}),this.pdf.setTextColor(K.r,K.g,K.b,{a:K.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(dt){var K=g(dt);this.ctx.strokeStyle=K.style,this.ctx.isStrokeTransparent=K.a===0,this.ctx.strokeOpacity=K.a,K.a===0?this.pdf.setDrawColor(255,255,255):(K.a,this.pdf.setDrawColor(K.r,K.g,K.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(dt){["butt","round","square"].indexOf(dt)!==-1&&(this.ctx.lineCap=dt,this.pdf.setLineCap(dt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(dt){isNaN(dt)||(this.ctx.lineWidth=dt,this.pdf.setLineWidth(dt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(dt){["bevel","round","miter"].indexOf(dt)!==-1&&(this.ctx.lineJoin=dt,this.pdf.setLineJoin(dt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(dt){isNaN(dt)||(this.ctx.miterLimit=dt,this.pdf.setMiterLimit(dt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(dt){this.ctx.textBaseline=dt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(dt){["right","end","center","left","start"].indexOf(dt)!==-1&&(this.ctx.textAlign=dt)}});var St=null;function Ft(dt,K){if(St===null){var Tt=function(It){var xt=[];return Object.keys(It).forEach(function(_t){It[_t].forEach(function(Pt){var kt=null;switch(Pt){case"bold":kt={family:_t,weight:"bold"};break;case"italic":kt={family:_t,style:"italic"};break;case"bolditalic":kt={family:_t,weight:"bold",style:"italic"};break;case"":case"normal":kt={family:_t}}kt!==null&&(kt.ref={name:_t,style:Pt},xt.push(kt))})}),xt}(dt.getFontList());St=function(It){for(var xt={},_t=0;_t<It.length;++_t){var Pt=Cs(It[_t]),kt=Pt.family,jt=Pt.stretch,Bt=Pt.style,Ut=Pt.weight;xt[kt]=xt[kt]||{},xt[kt][jt]=xt[kt][jt]||{},xt[kt][jt][Bt]=xt[kt][jt][Bt]||{},xt[kt][jt][Bt][Ut]=Pt}return xt}(Tt.concat(K))}return St}var qt=null;Object.defineProperty(this,"fontFaces",{get:function(){return qt},set:function(dt){St=null,qt=dt}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(dt){var K;if(this.ctx.font=dt,(K=/^\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(dt))!==null){var Tt=K[1],It=(K[2],K[3]),xt=K[4],_t=(K[5],K[6]),Pt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(xt)[2];xt=Math.floor(Pt==="px"?parseFloat(xt)*this.pdf.internal.scaleFactor:Pt==="em"?parseFloat(xt)*this.pdf.getFontSize():parseFloat(xt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(xt);var kt=function(zt){var Wt,Ct,ge=[],ne=zt.trim();if(ne==="")return Es;if(ne in pl)return[pl[ne]];for(;ne!=="";){switch(Ct=null,Wt=(ne=vl(ne)).charAt(0)){case'"':case"'":Ct=Wc(ne.substring(1),Wt);break;default:Ct=Gc(ne)}if(Ct===null||(ge.push(Ct[0]),(ne=vl(Ct[1]))!==""&&ne.charAt(0)!==","))return Es;ne=ne.replace(/^,/,"")}return ge}(_t);if(this.fontFaces){var jt=Hc(Ft(this.pdf,this.fontFaces),kt.map(function(zt){return{family:zt,stretch:"normal",weight:It,style:Tt}}));this.pdf.setFont(jt.ref.name,jt.ref.style)}else{var Bt="";(It==="bold"||parseInt(It,10)>=700||Tt==="bold")&&(Bt="bold"),Tt==="italic"&&(Bt+="italic"),Bt.length===0&&(Bt="normal");for(var Ut="",Zt={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],Bt,{noFallback:!0,disableWarning:!0})!==void 0){Ut=kt[ie];break}if(Bt==="bolditalic"&&this.pdf.internal.getFont(kt[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ut=kt[ie],Bt="bold";else if(this.pdf.internal.getFont(kt[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ut=kt[ie],Bt="normal";break}}if(Ut===""){for(var Xt=0;Xt<kt.length;Xt++)if(Zt[kt[Xt]]){Ut=Zt[kt[Xt]];break}}Ut=Ut===""?"Times":Ut,this.pdf.setFont(Ut,Bt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(dt){this.ctx.globalCompositeOperation=dt}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(dt){this.ctx.globalAlpha=dt}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(dt){this.ctx.lineDashOffset=dt,gt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(dt){this.ctx.lineDash=dt,gt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(dt){this.ctx.ignoreClearRect=!!dt}})};p.prototype.setLineDash=function(_){this.lineDash=_},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){G.call(this,"fill",!1)},p.prototype.stroke=function(){G.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(_,R){if(isNaN(_)||isNaN(R))throw xe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var q=this.ctx.transform.applyToPoint(new s(_,R));this.path.push({type:"mt",x:q.x,y:q.y}),this.ctx.lastPoint=new s(_,R)},p.prototype.closePath=function(){var _=new s(0,0),R=0;for(R=this.path.length-1;R!==-1;R--)if(this.path[R].type==="begin"&&(0,Ae.A)(this.path[R+1])==="object"&&typeof this.path[R+1].x=="number"){_=new s(this.path[R+1].x,this.path[R+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(_.x,_.y)},p.prototype.lineTo=function(_,R){if(isNaN(_)||isNaN(R))throw xe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var q=this.ctx.transform.applyToPoint(new s(_,R));this.path.push({type:"lt",x:q.x,y:q.y}),this.ctx.lastPoint=new s(q.x,q.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),G.call(this,null,!0)},p.prototype.quadraticCurveTo=function(_,R,q,U){if(isNaN(q)||isNaN(U)||isNaN(_)||isNaN(R))throw xe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var et=this.ctx.transform.applyToPoint(new s(q,U)),st=this.ctx.transform.applyToPoint(new s(_,R));this.path.push({type:"qct",x1:st.x,y1:st.y,x:et.x,y:et.y}),this.ctx.lastPoint=new s(et.x,et.y)},p.prototype.bezierCurveTo=function(_,R,q,U,et,st){if(isNaN(et)||isNaN(st)||isNaN(_)||isNaN(R)||isNaN(q)||isNaN(U))throw xe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var lt=this.ctx.transform.applyToPoint(new s(et,st)),ut=this.ctx.transform.applyToPoint(new s(_,R)),wt=this.ctx.transform.applyToPoint(new s(q,U));this.path.push({type:"bct",x1:ut.x,y1:ut.y,x2:wt.x,y2:wt.y,x:lt.x,y:lt.y}),this.ctx.lastPoint=new s(lt.x,lt.y)},p.prototype.arc=function(_,R,q,U,et,st){if(isNaN(_)||isNaN(R)||isNaN(q)||isNaN(U)||isNaN(et))throw xe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(st=!!st,!this.ctx.transform.isIdentity){var lt=this.ctx.transform.applyToPoint(new s(_,R));_=lt.x,R=lt.y;var ut=this.ctx.transform.applyToPoint(new s(0,q)),wt=this.ctx.transform.applyToPoint(new s(0,0));q=Math.sqrt(Math.pow(ut.x-wt.x,2)+Math.pow(ut.y-wt.y,2))}Math.abs(et-U)>=2*Math.PI&&(U=0,et=2*Math.PI),this.path.push({type:"arc",x:_,y:R,radius:q,startAngle:U,endAngle:et,counterclockwise:st})},p.prototype.arcTo=function(_,R,q,U,et){throw new Error("arcTo not implemented.")},p.prototype.rect=function(_,R,q,U){if(isNaN(_)||isNaN(R)||isNaN(q)||isNaN(U))throw xe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,R),this.lineTo(_+q,R),this.lineTo(_+q,R+U),this.lineTo(_,R+U),this.lineTo(_,R),this.lineTo(_+q,R),this.lineTo(_,R)},p.prototype.fillRect=function(_,R,q,U){if(isNaN(_)||isNaN(R)||isNaN(q)||isNaN(U))throw xe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var et={};this.lineCap!=="butt"&&(et.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(et.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,R,q,U),this.fill(),et.hasOwnProperty("lineCap")&&(this.lineCap=et.lineCap),et.hasOwnProperty("lineJoin")&&(this.lineJoin=et.lineJoin)}},p.prototype.strokeRect=function(_,R,q,U){if(isNaN(_)||isNaN(R)||isNaN(q)||isNaN(U))throw xe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(_,R,q,U),this.stroke())},p.prototype.clearRect=function(_,R,q,U){if(isNaN(_)||isNaN(R)||isNaN(q)||isNaN(U))throw xe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,R,q,U))},p.prototype.save=function(_){_=typeof _!="boolean"||_;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("q");if(this.pdf.setPage(R),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var U=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=U}},p.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("Q");this.pdf.setPage(R),_&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(_){var R,q,U,et;if(_.isCanvasGradient===!0&&(_=_.getColor()),!_)return{r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))R=0,q=0,U=0,et=0;else{var st=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(st!==null)R=parseInt(st[1]),q=parseInt(st[2]),U=parseInt(st[3]),et=1;else if((st=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)R=parseInt(st[1]),q=parseInt(st[2]),U=parseInt(st[3]),et=parseFloat(st[4]);else{if(et=1,typeof _=="string"&&_.charAt(0)!=="#"){var lt=new $u(_);_=lt.ok?lt.toHex():"#000000"}_.length===4?(R=_.substring(1,2),R+=R,q=_.substring(2,3),q+=q,U=_.substring(3,4),U+=U):(R=_.substring(1,3),q=_.substring(3,5),U=_.substring(5,7)),R=parseInt(R,16),q=parseInt(q,16),U=parseInt(U,16)}}return{r:R,g:q,b:U,a:et,style:_}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(_,R,q,U){if(isNaN(R)||isNaN(q)||typeof _!="string")throw xe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(U=isNaN(U)?void 0:U,!f.call(this)){var et=X(this.ctx.transform.rotation),st=this.ctx.transform.scaleX;L.call(this,{text:_,x:R,y:q,scale:st,angle:et,align:this.textAlign,maxWidth:U})}},p.prototype.strokeText=function(_,R,q,U){if(isNaN(R)||isNaN(q)||typeof _!="string")throw xe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){U=isNaN(U)?void 0:U;var et=X(this.ctx.transform.rotation),st=this.ctx.transform.scaleX;L.call(this,{text:_,x:R,y:q,scale:st,renderingMode:"stroke",angle:et,align:this.textAlign,maxWidth:U})}},p.prototype.measureText=function(_){if(typeof _!="string")throw xe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var R=this.pdf,q=this.pdf.internal.scaleFactor,U=R.internal.getFontSize(),et=R.getStringUnitWidth(_)*U/R.internal.scaleFactor,st=function(lt){var ut=(lt=lt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ut}}),this};return new st({width:et*=Math.round(96*q/72*1e4)/1e4})},p.prototype.scale=function(_,R){if(isNaN(_)||isNaN(R))throw xe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var q=new c(_,0,0,R,0,0);this.ctx.transform=this.ctx.transform.multiply(q)},p.prototype.rotate=function(_){if(isNaN(_))throw xe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var R=new c(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(R)},p.prototype.translate=function(_,R){if(isNaN(_)||isNaN(R))throw xe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var q=new c(1,0,0,1,_,R);this.ctx.transform=this.ctx.transform.multiply(q)},p.prototype.transform=function(_,R,q,U,et,st){if(isNaN(_)||isNaN(R)||isNaN(q)||isNaN(U)||isNaN(et)||isNaN(st))throw xe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var lt=new c(_,R,q,U,et,st);this.ctx.transform=this.ctx.transform.multiply(lt)},p.prototype.setTransform=function(_,R,q,U,et,st){_=isNaN(_)?1:_,R=isNaN(R)?0:R,q=isNaN(q)?0:q,U=isNaN(U)?1:U,et=isNaN(et)?0:et,st=isNaN(st)?0:st,this.ctx.transform=new c(_,R,q,U,et,st)};var N=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(_,R,q,U,et,st,lt,ut,wt){var bt=this.pdf.getImageProperties(_),St=1,Ft=1,qt=1,dt=1;U!==void 0&&ut!==void 0&&(qt=ut/U,dt=wt/et,St=bt.width/U*ut/U,Ft=bt.height/et*wt/et),st===void 0&&(st=R,lt=q,R=0,q=0),U!==void 0&&ut===void 0&&(ut=U,wt=et),U===void 0&&ut===void 0&&(ut=bt.width,wt=bt.height);for(var K,Tt=this.ctx.transform.decompose(),It=X(Tt.rotate.shx),xt=new c,_t=(xt=(xt=(xt=xt.multiply(Tt.translate)).multiply(Tt.skew)).multiply(Tt.scale)).applyToRectangle(new u(st-R*qt,lt-q*dt,U*St,et*Ft)),Pt=C.call(this,_t),kt=[],jt=0;jt<Pt.length;jt+=1)kt.indexOf(Pt[jt])===-1&&kt.push(Pt[jt]);if(z(kt),this.autoPaging)for(var Bt=kt[0],Ut=kt[kt.length-1],Zt=Bt;Zt<Ut+1;Zt++){this.pdf.setPage(Zt);var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Xt=Zt===1?this.posY+this.margin[0]:this.margin[0],zt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Wt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ct=Zt===1?0:zt+(Zt-2)*Wt;if(this.ctx.clip_path.length!==0){var ge=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(K,this.posX+this.margin[3],-Ct+Xt+this.ctx.prevPageLastElemOffset),$.call(this,"fill",!0),this.path=ge}var ne=JSON.parse(JSON.stringify(_t));ne=M([ne],this.posX+this.margin[3],-Ct+Xt+this.ctx.prevPageLastElemOffset)[0];var Ce=(Zt>Bt||Zt<Ut)&&N.call(this);Ce&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,Wt,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",ne.x,ne.y,ne.w,ne.h,null,null,It),Ce&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(_,"JPEG",_t.x,_t.y,_t.w,_t.h,null,null,It)};var C=function(_,R,q){var U=[];R=R||this.pdf.internal.pageSize.width,q=q||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var et=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case"mt":case"lt":U.push(Math.floor((_.y+et)/q)+1);break;case"arc":U.push(Math.floor((_.y+et-_.radius)/q)+1),U.push(Math.floor((_.y+et+_.radius)/q)+1);break;case"qct":var st=J(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);U.push(Math.floor((st.y+et)/q)+1),U.push(Math.floor((st.y+st.h+et)/q)+1);break;case"bct":var lt=tt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);U.push(Math.floor((lt.y+et)/q)+1),U.push(Math.floor((lt.y+lt.h+et)/q)+1);break;case"rect":U.push(Math.floor((_.y+et)/q)+1),U.push(Math.floor((_.y+_.h+et)/q)+1)}for(var ut=0;ut<U.length;ut+=1)for(;this.pdf.internal.getNumberOfPages()<U[ut];)y.call(this);return U},y=function(){var _=this.fillStyle,R=this.strokeStyle,q=this.font,U=this.lineCap,et=this.lineWidth,st=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=R,this.font=q,this.lineCap=U,this.lineWidth=et,this.lineJoin=st},M=function(_,R,q){for(var U=0;U<_.length;U++)switch(_[U].type){case"bct":_[U].x2+=R,_[U].y2+=q;case"qct":_[U].x1+=R,_[U].y1+=q;case"mt":case"lt":case"arc":default:_[U].x+=R,_[U].y+=q}return _},z=function(_){return _.sort(function(R,q){return R-q})},G=function(_,R){for(var q,U,et=this.fillStyle,st=this.strokeStyle,lt=this.lineCap,ut=this.lineWidth,wt=Math.abs(ut*this.ctx.transform.scaleX),bt=this.lineJoin,St=JSON.parse(JSON.stringify(this.path)),Ft=JSON.parse(JSON.stringify(this.path)),qt=[],dt=0;dt<Ft.length;dt++)if(Ft[dt].x!==void 0)for(var K=C.call(this,Ft[dt]),Tt=0;Tt<K.length;Tt+=1)qt.indexOf(K[Tt])===-1&&qt.push(K[Tt]);for(var It=0;It<qt.length;It++)for(;this.pdf.internal.getNumberOfPages()<qt[It];)y.call(this);if(z(qt),this.autoPaging)for(var xt=qt[0],_t=qt[qt.length-1],Pt=xt;Pt<_t+1;Pt++){this.pdf.setPage(Pt),this.fillStyle=et,this.strokeStyle=st,this.lineCap=lt,this.lineWidth=wt,this.lineJoin=bt;var kt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],jt=Pt===1?this.posY+this.margin[0]:this.margin[0],Bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zt=Pt===1?0:Bt+(Pt-2)*Ut;if(this.ctx.clip_path.length!==0){var ie=this.path;q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(q,this.posX+this.margin[3],-Zt+jt+this.ctx.prevPageLastElemOffset),$.call(this,_,!0),this.path=ie}if(U=JSON.parse(JSON.stringify(St)),this.path=M(U,this.posX+this.margin[3],-Zt+jt+this.ctx.prevPageLastElemOffset),R===!1||Pt===0){var Xt=(Pt>xt||Pt<_t)&&N.call(this);Xt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],kt,Ut,null).clip().discardPath()),$.call(this,_,R),Xt&&this.pdf.restoreGraphicsState()}this.lineWidth=ut}else this.lineWidth=wt,$.call(this,_,R),this.lineWidth=ut;this.path=St},$=function(_,R){if((_!=="stroke"||R||!w.call(this))&&(_==="stroke"||R||!f.call(this))){for(var q,U,et=[],st=this.path,lt=0;lt<st.length;lt++){var ut=st[lt];switch(ut.type){case"begin":et.push({begin:!0});break;case"close":et.push({close:!0});break;case"mt":et.push({start:ut,deltas:[],abs:[]});break;case"lt":var wt=et.length;if(st[lt-1]&&!isNaN(st[lt-1].x)&&(q=[ut.x-st[lt-1].x,ut.y-st[lt-1].y],wt>0)){for(;wt>=0;wt--)if(et[wt-1].close!==!0&&et[wt-1].begin!==!0){et[wt-1].deltas.push(q),et[wt-1].abs.push(ut);break}}break;case"bct":q=[ut.x1-st[lt-1].x,ut.y1-st[lt-1].y,ut.x2-st[lt-1].x,ut.y2-st[lt-1].y,ut.x-st[lt-1].x,ut.y-st[lt-1].y],et[et.length-1].deltas.push(q);break;case"qct":var bt=st[lt-1].x+2/3*(ut.x1-st[lt-1].x),St=st[lt-1].y+2/3*(ut.y1-st[lt-1].y),Ft=ut.x+2/3*(ut.x1-ut.x),qt=ut.y+2/3*(ut.y1-ut.y),dt=ut.x,K=ut.y;q=[bt-st[lt-1].x,St-st[lt-1].y,Ft-st[lt-1].x,qt-st[lt-1].y,dt-st[lt-1].x,K-st[lt-1].y],et[et.length-1].deltas.push(q);break;case"arc":et.push({deltas:[],abs:[],arc:!0}),Array.isArray(et[et.length-1].abs)&&et[et.length-1].abs.push(ut)}}U=R?null:_==="stroke"?"stroke":"fill";for(var Tt=!1,It=0;It<et.length;It++)if(et[It].arc)for(var xt=et[It].abs,_t=0;_t<xt.length;_t++){var Pt=xt[_t];Pt.type==="arc"?x.call(this,Pt.x,Pt.y,Pt.radius,Pt.startAngle,Pt.endAngle,Pt.counterclockwise,void 0,R,!Tt):B.call(this,Pt.x,Pt.y),Tt=!0}else if(et[It].close===!0)this.pdf.internal.out("h"),Tt=!1;else if(et[It].begin!==!0){var kt=et[It].start.x,jt=et[It].start.y;F.call(this,et[It].deltas,kt,jt),Tt=!0}U&&k.call(this,U),R&&H.call(this)}},W=function(_){var R=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,q=R*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _-q;case"top":return _+R-q;case"hanging":return _+R-2*q;case"middle":return _+R/2-q;case"ideographic":return _;case"alphabetic":default:return _}},Q=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(R,q){this.colorStops.push([R,q])},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=!0,_},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var x=function(_,R,q,U,et,st,lt,ut,wt){for(var bt=E.call(this,q,U,et,st),St=0;St<bt.length;St++){var Ft=bt[St];St===0&&(wt?A.call(this,Ft.x1+_,Ft.y1+R):B.call(this,Ft.x1+_,Ft.y1+R)),Y.call(this,_,R,Ft.x2,Ft.y2,Ft.x3,Ft.y3,Ft.x4,Ft.y4)}ut?H.call(this):k.call(this,lt)},k=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},H=function(){this.pdf.clip(),this.pdf.discardPath()},A=function(_,R){this.pdf.internal.out(n(_)+" "+i(R)+" m")},L=function(_){var R;switch(_.align){case"right":case"end":R="right";break;case"center":R="center";break;case"left":case"start":default:R="left"}var q=this.pdf.getTextDimensions(_.text),U=W.call(this,_.y),et=Q.call(this,U)-q.h,st=this.ctx.transform.applyToPoint(new s(_.x,U)),lt=this.ctx.transform.decompose(),ut=new c;ut=(ut=(ut=ut.multiply(lt.translate)).multiply(lt.skew)).multiply(lt.scale);for(var wt,bt,St,Ft=this.ctx.transform.applyToRectangle(new u(_.x,U,q.w,q.h)),qt=ut.applyToRectangle(new u(_.x,et,q.w,q.h)),dt=C.call(this,qt),K=[],Tt=0;Tt<dt.length;Tt+=1)K.indexOf(dt[Tt])===-1&&K.push(dt[Tt]);if(z(K),this.autoPaging)for(var It=K[0],xt=K[K.length-1],_t=It;_t<xt+1;_t++){this.pdf.setPage(_t);var Pt=_t===1?this.posY+this.margin[0]:this.margin[0],kt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],jt=this.pdf.internal.pageSize.height-this.margin[2],Bt=jt-this.margin[0],Ut=this.pdf.internal.pageSize.width-this.margin[1],Zt=Ut-this.margin[3],ie=_t===1?0:kt+(_t-2)*Bt;if(this.ctx.clip_path.length!==0){var Xt=this.path;wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(wt,this.posX+this.margin[3],-1*ie+Pt),$.call(this,"fill",!0),this.path=Xt}var zt=M([JSON.parse(JSON.stringify(qt))],this.posX+this.margin[3],-ie+Pt+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(bt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(bt*_.scale),St=this.lineWidth,this.lineWidth=St*_.scale);var Wt=this.autoPaging!=="text";if(Wt||zt.y+zt.h<=jt){if(Wt||zt.y>=Pt&&zt.x<=Ut){var Ct=Wt?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||Ut-zt.x)[0],ge=M([JSON.parse(JSON.stringify(Ft))],this.posX+this.margin[3],-ie+Pt+this.ctx.prevPageLastElemOffset)[0],ne=Wt&&(_t>It||_t<xt)&&N.call(this);ne&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zt,Bt,null).clip().discardPath()),this.pdf.text(Ct,ge.x,ge.y,{angle:_.angle,align:R,renderingMode:_.renderingMode}),ne&&this.pdf.restoreGraphicsState()}}else zt.y<jt&&(this.ctx.prevPageLastElemOffset+=jt-zt.y);_.scale>=.01&&(this.pdf.setFontSize(bt),this.lineWidth=St)}else _.scale>=.01&&(bt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(bt*_.scale),St=this.lineWidth,this.lineWidth=St*_.scale),this.pdf.text(_.text,st.x+this.posX,st.y+this.posY,{angle:_.angle,align:R,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(bt),this.lineWidth=St)},B=function(_,R,q,U){q=q||0,U=U||0,this.pdf.internal.out(n(_+q)+" "+i(R+U)+" l")},F=function(_,R,q){return this.pdf.lines(_,R,q,null,null)},Y=function(_,R,q,U,et,st,lt,ut){this.pdf.internal.out([t(o(q+_)),t(r(U+R)),t(o(et+_)),t(r(st+R)),t(o(lt+_)),t(r(ut+R)),"c"].join(" "))},E=function(_,R,q,U){for(var et=2*Math.PI,st=Math.PI/2;R>q;)R-=et;var lt=Math.abs(q-R);lt<et&&U&&(lt=et-lt);for(var ut=[],wt=U?-1:1,bt=R;lt>1e-5;){var St=bt+wt*Math.min(lt,st);ut.push(I.call(this,_,bt,St)),lt-=Math.abs(St-bt),bt=St}return ut},I=function(_,R,q){var U=(q-R)/2,et=_*Math.cos(U),st=_*Math.sin(U),lt=et,ut=-st,wt=lt*lt+ut*ut,bt=wt+lt*et+ut*st,St=4/3*(Math.sqrt(2*wt*bt)-bt)/(lt*st-ut*et),Ft=lt-St*ut,qt=ut+St*lt,dt=Ft,K=-qt,Tt=U+R,It=Math.cos(Tt),xt=Math.sin(Tt);return{x1:_*Math.cos(R),y1:_*Math.sin(R),x2:Ft*It-qt*xt,y2:Ft*xt+qt*It,x3:dt*It-K*xt,y3:dt*xt+K*It,x4:_*Math.cos(q),y4:_*Math.sin(q)}},X=function(_){return 180*_/Math.PI},J=function(_,R,q,U,et,st){var lt=_+.5*(q-_),ut=R+.5*(U-R),wt=et+.5*(q-et),bt=st+.5*(U-st),St=Math.min(_,et,lt,wt),Ft=Math.max(_,et,lt,wt),qt=Math.min(R,st,ut,bt),dt=Math.max(R,st,ut,bt);return new u(St,qt,Ft-St,dt-qt)},tt=function(_,R,q,U,et,st,lt,ut){var wt,bt,St,Ft,qt,dt,K,Tt,It,xt,_t,Pt,kt,jt,Bt=q-_,Ut=U-R,Zt=et-q,ie=st-U,Xt=lt-et,zt=ut-st;for(bt=0;bt<41;bt++)It=(K=(St=_+(wt=bt/40)*Bt)+wt*((qt=q+wt*Zt)-St))+wt*(qt+wt*(et+wt*Xt-qt)-K),xt=(Tt=(Ft=R+wt*Ut)+wt*((dt=U+wt*ie)-Ft))+wt*(dt+wt*(st+wt*zt-dt)-Tt),bt==0?(_t=It,Pt=xt,kt=It,jt=xt):(_t=Math.min(_t,It),Pt=Math.min(Pt,xt),kt=Math.max(kt,It),jt=Math.max(jt,xt));return new u(Math.round(_t),Math.round(Pt),Math.round(kt-_t),Math.round(jt-Pt))},gt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,R,q=(_=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:R}));this.prevLineDash!==q&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=q)}}})(Yt.API),function(e){var t=function(r){var s,u,c,m,d,p,g,f,w,N;for(/[^\x00-\xFF]/.test(r),u=[],c=0,m=(r+=s="\0\0\0\0".slice(r.length%4||4)).length;m>c;c+=4)(d=(r.charCodeAt(c)<<24)+(r.charCodeAt(c+1)<<16)+(r.charCodeAt(c+2)<<8)+r.charCodeAt(c+3))!==0?(p=(d=((d=((d=((d=(d-(N=d%85))/85)-(w=d%85))/85)-(f=d%85))/85)-(g=d%85))/85)%85,u.push(p+33,g+33,f+33,w+33,N+33)):u.push(122);return function(C,y){for(var M=y;M>0;M--)C.pop()}(u,s.length),String.fromCharCode.apply(String,u)+"~>"},n=function(r){var s,u,c,m,d,p=String,g="length",f=255,w="charCodeAt",N="slice",C="replace";for(r[N](-2),r=r[N](0,-2)[C](/\s/g,"")[C]("z","!!!!!"),c=[],m=0,d=(r+=s="uuuuu"[N](r[g]%5||5))[g];d>m;m+=5)u=52200625*(r[w](m)-33)+614125*(r[w](m+1)-33)+7225*(r[w](m+2)-33)+85*(r[w](m+3)-33)+(r[w](m+4)-33),c.push(f&u>>24,f&u>>16,f&u>>8,f&u);return function(y,M){for(var z=M;z>0;z--)y.pop()}(c,s[g]),p.fromCharCode.apply(p,c)},i=function(r){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((r=r.replace(/\s/g,"")).indexOf(">")!==-1&&(r=r.substr(0,r.indexOf(">"))),r.length%2&&(r+="0"),s.test(r)===!1)return"";for(var u="",c=0;c<r.length;c+=2)u+=String.fromCharCode("0x"+(r[c]+r[c+1]));return u},o=function(r){for(var s=new Uint8Array(r.length),u=r.length;u--;)s[u]=r.charCodeAt(u);return r=(s=aa(s)).reduce(function(c,m){return c+String.fromCharCode(m)},"")};e.processDataByFilters=function(r,s){var u=0,c=r||"",m=[];for(typeof(s=s||[])=="string"&&(s=[s]),u=0;u<s.length;u+=1)switch(s[u]){case"ASCII85Decode":case"/ASCII85Decode":c=n(c),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=c.split("").map(function(d){return("0"+d.charCodeAt().toString(16)).slice(-2)}).join("")+">",m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=o(c),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[u]+'" is not implemented')}return{data:c,reverseChain:m.reverse().join(" ")}}}(Yt.API),function(e){e.loadFile=function(t,n,i){return function(o,r,s){r=r!==!1,s=typeof s=="function"?s:function(){};var u=void 0;try{u=function(c,m,d){var p=new XMLHttpRequest,g=0,f=function(w){var N=w.length,C=[],y=String.fromCharCode;for(g=0;g<N;g+=1)C.push(y(255&w.charCodeAt(g)));return C.join("")};if(p.open("GET",c,!m),p.overrideMimeType("text/plain; charset=x-user-defined"),m===!1&&(p.onload=function(){p.status===200?d(f(this.responseText)):d(void 0)}),p.send(null),m&&p.status===200)return f(p.responseText)}(o,r,s)}catch(c){}return u}(t,n,i)},e.loadImageFile=e.loadFile}(Yt.API),function(e){function t(){return(Jt.html2canvas?Promise.resolve(Jt.html2canvas):Promise.resolve().then(Tn.t.bind(Tn,9820,23))).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(Jt.DOMPurify?Promise.resolve(Jt.DOMPurify):Promise.resolve().then(Tn.t.bind(Tn,94994,23))).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var i=function(s){var u=(0,Ae.A)(s);return u==="undefined"?"undefined":u==="string"||s instanceof String?"string":u==="number"||s instanceof Number?"number":u==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":u==="object"?"object":"unknown"},o=function(s,u){var c=document.createElement(s);for(var m in u.className&&(c.className=u.className),u.innerHTML&&u.dompurify&&(c.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)c.style[m]=u.style[m];return c},r=function s(u){var c=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),m=s.convert(Promise.resolve(),c);return m=(m=m.setProgress(1,s,1,[s])).set(u)};(r.prototype=Object.create(Promise.prototype)).constructor=r,r.convert=function(s,u){return s.__proto__=u||r.prototype,s},r.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"}},r.prototype.from=function(s,u){return this.then(function(){switch(u=u||function(c){switch(i(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(n).then(function(c){return this.set({src:o("div",{innerHTML:s,dompurify:c})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},r.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},r.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},u=function c(m,d){for(var p=m.nodeType===3?document.createTextNode(m.nodeValue):m.cloneNode(!1),g=m.firstChild;g;g=g.nextSibling)d!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||p.appendChild(c(g,d));return m.nodeType===1&&(m.nodeName==="CANVAS"?(p.width=m.width,p.height=m.height,p.getContext("2d").drawImage(m,0,0)):m.nodeName!=="TEXTAREA"&&m.nodeName!=="SELECT"||(p.value=m.value),p.addEventListener("load",function(){p.scrollTop=m.scrollTop,p.scrollLeft=m.scrollLeft},!0)),p}(this.prop.src,this.opt.html2canvas.javascriptEnabled);u.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=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:s}),this.prop.container.appendChild(u),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},r.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(u){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,u(this.prop.container,c)}).then(function(u){(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},r.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(u){var c=this.opt.jsPDF,m=this.opt.fontFaces,d=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,p=Object.assign({async:!0,allowTaint:!0,scale:d,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 p.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=m,m)for(var g=0;g<m.length;++g){var f=m[g],w=f.src.find(function(N){return N.format==="truetype"});w&&c.addFont(w.url,f.ref.name,f.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,c.context2d.save(!0),u(this.prop.container,p)}).then(function(u){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},r.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},r.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},r.prototype.output=function(s,u,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(s,u):this.outputPdf(s,u)},r.prototype.outputPdf=function(s,u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,u)})},r.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},r.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},r.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},r.prototype.set=function(s){if(i(s)!=="object")return this;var u=Object.keys(s||{}).map(function(c){if(c in r.template.prop)return function(){this.prop[c]=s[c]};switch(c){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[c]=s[c]}}},this);return this.then(function(){return this.thenList(u)})},r.prototype.get=function(s,u){return this.then(function(){var c=s in r.template.prop?this.prop[s]:this.opt[s];return u?u(c):c})},r.prototype.setMargin=function(s){return this.then(function(){switch(i(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},r.prototype.setPageSize=function(s){function u(c,m){return Math.floor(c*m/72*96)}return this.then(function(){(s=s||Yt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:u(s.inner.width,s.k),height:u(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},r.prototype.setProgress=function(s,u,c,m){return s!=null&&(this.progress.val=s),u!=null&&(this.progress.state=u),c!=null&&(this.progress.n=c),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},r.prototype.updateProgress=function(s,u,c,m){return this.setProgress(s?this.progress.val+s:null,u||null,c?this.progress.n+c:null,m?this.progress.stack.concat(m):null)},r.prototype.then=function(s,u){var c=this;return this.thenCore(s,u,function(m,d){return c.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(p){return c.updateProgress(null,m),p}).then(m,d).then(function(p){return c.updateProgress(1),p})})},r.prototype.thenCore=function(s,u,c){c=c||Promise.prototype.then,s&&(s=s.bind(this)),u&&(u=u.bind(this));var m=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:r.convert(Object.assign({},this),Promise.prototype),d=c.call(m,s,u);return r.convert(d,this.__proto__)},r.prototype.thenExternal=function(s,u){return Promise.prototype.then.call(this,s,u)},r.prototype.thenList=function(s){var u=this;return s.forEach(function(c){u=u.thenCore(c)}),u},r.prototype.catch=function(s){s&&(s=s.bind(this));var u=Promise.prototype.catch.call(this,s);return r.convert(u,this)},r.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},r.prototype.error=function(s){return this.then(function(){throw new Error(s)})},r.prototype.using=r.prototype.set,r.prototype.saveAs=r.prototype.save,r.prototype.export=r.prototype.output,r.prototype.run=r.prototype.then,Yt.getPageSize=function(s,u,c){if((0,Ae.A)(s)==="object"){var m=s;s=m.orientation,u=m.unit||u,c=m.format||c}u=u||"mm",c=c||"a4",s=(""+(s||"P")).toLowerCase();var d,p=(""+c).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(u){case"pt":d=1;break;case"mm":d=72/25.4;break;case"cm":d=72/2.54;break;case"in":d=72;break;case"px":d=.75;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+u}var f,w=0,N=0;if(g.hasOwnProperty(p))w=g[p][1]/d,N=g[p][0]/d;else try{w=c[1],N=c[0]}catch(C){throw new Error("Invalid format: "+c)}if(s==="p"||s==="portrait")s="p",N>w&&(f=N,N=w,w=f);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",w>N&&(f=N,N=w,w=f)}return{width:N,height:w,unit:u,k:d,orientation:s}},e.html=function(s,u){(u=u||{}).callback=u.callback||function(){},u.html2canvas=u.html2canvas||{},u.html2canvas.canvas=u.html2canvas.canvas||this.canvas,u.jsPDF=u.jsPDF||this,u.fontFaces=u.fontFaces?u.fontFaces.map(Cs):null;var c=new r(u);return u.worker?c:c.from(s).doCallback()}}(Yt.API),Yt.API.addJS=function(e){return bl=e,this.internal.events.subscribe("postPutResources",function(){uo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(uo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ml=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+bl+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){uo!==void 0&&ml!==void 0&&this.internal.out("/Names <</JavaScript "+uo+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=n.outline.render().split(/\r\n/),r=0;r<o.length;r++){var s=o[r],u=i.exec(s);if(u!=null){var c=u[1];n.internal.newObjectDeferredBegin(c,!1)}n.internal.write(s)}if(this.outline.createNamedDestinations){var m=this.internal.pages.length,d=[];for(r=0;r<m;r++){var p=n.internal.newObject();d.push(p);var g=n.internal.getPageInfo(r+1);n.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var f=n.internal.newObject();for(n.internal.write("<< /Names [ "),r=0;r<d.length;r++)n.internal.write("(page_"+(r+1)+")"+d[r]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+f+" 0 R"),n.internal.write(">>","endobj")}}]),e.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 "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(i,o,r){var s={title:o,options:r,children:[]};return i==null&&(i=this.root),i.children.push(s),s},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(i){i.id=n.internal.newObjectDeferred();for(var o=0;o<i.children.length;o++)this.genIds_r(i.children[o])},n.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},n.outline.renderItems=function(i){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<i.children.length;r++){var s=i.children[r];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(i)),r>0&&this.line("/Prev "+this.makeRef(i.children[r-1])),r<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[r+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var u=this.count=this.count_r({count:0},s);if(u>0&&this.line("/Count "+u),s.options&&s.options.pageNumber){var c=n.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var m=0;m<i.children.length;m++)this.renderItems(i.children[m])},n.outline.line=function(i){this.ctx.val+=i+"\r\n"},n.outline.makeRef=function(i){return i.id+" 0 R"},n.outline.makeString=function(i){return"("+n.internal.pdfEscape(i)+")"},n.outline.objStart=function(i){this.ctx.val+="\r\n"+i.id+" 0 obj\r\n<<\r\n"},n.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},n.outline.count_r=function(i,o){for(var r=0;r<o.children.length;r++)i.count++,this.count_r(i,o.children[r]);return i.count}}])}(Yt.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,i,o,r,s,u){var c,m=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=s||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(c=function(p){for(var g,f=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,N={width:0,height:0,numcomponents:1},C=4;C<w;C+=2){if(C+=f,t.indexOf(p.charCodeAt(C+1))!==-1){g=256*p.charCodeAt(C+5)+p.charCodeAt(C+6),N={width:256*p.charCodeAt(C+7)+p.charCodeAt(C+8),height:g,numcomponents:p.charCodeAt(C+9)};break}f=256*p.charCodeAt(C+2)+p.charCodeAt(C+3)}return N}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:u=this.color_spaces.DEVICE_GRAY;break;case 4:u=this.color_spaces.DEVICE_CMYK;break;case 3:u=this.color_spaces.DEVICE_RGB}d={data:n,width:c.width,height:c.height,colorSpace:u,bitsPerComponent:8,filter:m,index:i,alias:o}}return d}}(Yt.API);var xi,lo,yl,wl,Al,Vc=function(){var e,t,n;function i(r){var s,u,c,m,d,p,g,f,w,N,C,y,M,z;for(this.data=r,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(s=this.readUInt32(),w=(function(){var G,$;for($=[],G=0;G<4;++G)$.push(String.fromCharCode(this.data[this.pos++]));return $}).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(s);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},d=this.readUInt16(),m=this.readUInt16()||100,p.delay=1e3*d/m,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(w==="fdAT"&&(this.pos+=4,s-=4),r=(p!=null?p.data:void 0)||this.imgData,y=0;0<=s?y<s:y>s;0<=s?++y:--y)r.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(c=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>c)throw new Error("More transparent colors than palette size");if((N=c-this.transparency.indexed.length)>0)for(M=0;0<=N?M<N:M>N;0<=N?++M:--M)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":g=(C=this.read(s)).indexOf(0),f=String.fromCharCode.apply(String,C.slice(0,g)),this.text[f]=String.fromCharCode.apply(String,C.slice(g+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(z=this.colorType)===4||z===6,u=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*u,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+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(r){var s,u;for(u=[],s=0;0<=r?s<r:s>r;0<=r?++s:--s)u.push(this.data[this.pos++]);return u},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(r){var s=this.pixelBitlength/8,u=new Uint8Array(this.width*this.height*s),c=0,m=this;if(r==null&&(r=this.imgData),r.length===0)return new Uint8Array(0);function d(p,g,f,w){var N,C,y,M,z,G,$,W,Q,x,k,H,A,L,B,F,Y,E,I,X,J,tt=Math.ceil((m.width-p)/f),gt=Math.ceil((m.height-g)/w),_=m.width==tt&&m.height==gt;for(L=s*tt,H=_?u:new Uint8Array(L*gt),G=r.length,A=0,C=0;A<gt&&c<G;){switch(r[c++]){case 0:for(M=Y=0;Y<L;M=Y+=1)H[C++]=r[c++];break;case 1:for(M=E=0;E<L;M=E+=1)N=r[c++],z=M<s?0:H[C-s],H[C++]=(N+z)%256;break;case 2:for(M=I=0;I<L;M=I+=1)N=r[c++],y=(M-M%s)/s,B=A&&H[(A-1)*L+y*s+M%s],H[C++]=(B+N)%256;break;case 3:for(M=X=0;X<L;M=X+=1)N=r[c++],y=(M-M%s)/s,z=M<s?0:H[C-s],B=A&&H[(A-1)*L+y*s+M%s],H[C++]=(N+Math.floor((z+B)/2))%256;break;case 4:for(M=J=0;J<L;M=J+=1)N=r[c++],y=(M-M%s)/s,z=M<s?0:H[C-s],A===0?B=F=0:(B=H[(A-1)*L+y*s+M%s],F=y&&H[(A-1)*L+(y-1)*s+M%s]),$=z+B-F,W=Math.abs($-z),x=Math.abs($-B),k=Math.abs($-F),Q=W<=x&&W<=k?z:x<=k?B:F,H[C++]=(N+Q)%256;break;default:throw new Error("Invalid filter algorithm: "+r[c-1])}if(!_){var R=((g+A*w)*m.width+p)*s,q=A*L;for(M=0;M<tt;M+=1){for(var U=0;U<s;U+=1)u[R++]=H[q++];R+=(f-1)*s}}A++}}return r=Ja(r),m.interlaceMethod==1?(d(0,0,8,8),d(4,0,8,8),d(0,4,4,8),d(2,0,4,4),d(0,2,2,4),d(1,0,2,2),d(0,1,1,2)):d(0,0,1,1),u},i.prototype.decodePalette=function(){var r,s,u,c,m,d,p,g,f;for(u=this.palette,d=this.transparency.indexed||[],m=new Uint8Array((d.length||0)+u.length),c=0,r=0,s=p=0,g=u.length;p<g;s=p+=3)m[c++]=u[s],m[c++]=u[s+1],m[c++]=u[s+2],m[c++]=(f=d[r++])!=null?f:255;return m},i.prototype.copyToImageData=function(r,s){var u,c,m,d,p,g,f,w,N,C,y;if(c=this.colors,N=null,u=this.hasAlphaChannel,this.palette.length&&(N=(y=this._decodedPalette)!=null?y:this._decodedPalette=this.decodePalette(),c=4,u=!0),w=(m=r.data||r).length,p=N||s,d=g=0,c===1)for(;d<w;)f=N?4*s[d/4]:g,C=p[f++],m[d++]=C,m[d++]=C,m[d++]=C,m[d++]=u?p[f++]:255,g=f;else for(;d<w;)f=N?4*s[d/4]:g,m[d++]=p[f++],m[d++]=p[f++],m[d++]=p[f++],m[d++]=u?p[f++]:255,g=f},i.prototype.decode=function(){var r;return r=new Uint8Array(this.width*this.height*4),this.copyToImageData(r,this.decodePixels()),r};var o=function(){if(Object.prototype.toString.call(Jt)==="[object Window]"){try{t=Jt.document.createElement("canvas"),n=t.getContext("2d")}catch(r){return!1}return!0}return!1};return o(),e=function(r){var s;if(o()===!0)return n.width=r.width,n.height=r.height,n.clearRect(0,0,r.width,r.height),n.putImageData(r,0,0),(s=new Image).src=t.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(r){var s,u,c,m,d,p,g,f;if(this.animation){for(f=[],u=d=0,p=(g=this.animation.frames).length;d<p;u=++d)s=g[u],c=r.createImageData(s.width,s.height),m=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(c,m),s.imageData=c,f.push(s.image=e(c));return f}},i.prototype.renderFrame=function(r,s){var u,c,m;return u=(c=this.animation.frames)[s],m=c[s-1],s===0&&r.clearRect(0,0,this.width,this.height),(m!=null?m.disposeOp:void 0)===1?r.clearRect(m.xOffset,m.yOffset,m.width,m.height):(m!=null?m.disposeOp:void 0)===2&&r.putImageData(m.imageData,m.xOffset,m.yOffset),u.blendOp===0&&r.clearRect(u.xOffset,u.yOffset,u.width,u.height),r.drawImage(u.image,u.xOffset,u.yOffset)},i.prototype.animate=function(r){var s,u,c,m,d,p,g=this;return u=0,p=this.animation,m=p.numFrames,c=p.frames,d=p.numPlays,(s=function(){var f,w;if(f=u++%m,w=c[f],g.renderFrame(r,f),m>1&&u/m<d)return g.animation._timeout=setTimeout(s,w.delay)})()},i.prototype.stopAnimation=function(){var r;return clearTimeout((r=this.animation)!=null?r._timeout:void 0)},i.prototype.render=function(r){var s,u;return r._png&&r._png.stopAnimation(),r._png=this,r.width=this.width,r.height=this.height,s=r.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(u=s.createImageData(this.width,this.height),this.copyToImageData(u,this.decodePixels()),s.putImageData(u,0,0))},i}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function Yc(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,o=e[t++],r=o>>7,s=1<<(7&o)+1;e[t++],e[t++];var u=null,c=null;r&&(u=t,c=s,t+=3*s);var m=!0,d=[],p=0,g=null,f=0,w=null;for(this.width=n,this.height=i;m&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,w=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((A=e[t++])>=0))throw Error("Invalid block size");if(A===0)break;t+=A}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var N=e[t++];p=e[t++]|e[t++]<<8,g=e[t++],(1&N)==0&&(g=null),f=N>>2&7,t++;break;case 254:for(;;){if(!((A=e[t++])>=0))throw Error("Invalid block size");if(A===0)break;t+=A}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var C=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,M=e[t++]|e[t++]<<8,z=e[t++]|e[t++]<<8,G=e[t++],$=G>>6&1,W=1<<(7&G)+1,Q=u,x=c,k=!1;G>>7&&(k=!0,Q=t,x=W,t+=3*W);var H=t;for(t++;;){var A;if(!((A=e[t++])>=0))throw Error("Invalid block size");if(A===0)break;t+=A}d.push({x:C,y,width:M,height:z,has_local_palette:k,palette_offset:Q,palette_size:x,data_offset:H,data_length:t-H,transparent_index:g,interlaced:!!$,delay:p,disposal:f});break;case 59:m=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return w},this.frameInfo=function(L){if(L<0||L>=d.length)throw new Error("Frame index out of range.");return d[L]},this.decodeAndBlitFrameBGRA=function(L,B){var F=this.frameInfo(L),Y=F.width*F.height,E=new Uint8Array(Y);xl(e,F.data_offset,E,Y);var I=F.palette_offset,X=F.transparent_index;X===null&&(X=256);var J=F.width,tt=n-J,gt=J,_=4*(F.y*n+F.x),R=4*((F.y+F.height)*n+F.x),q=_,U=4*tt;F.interlaced===!0&&(U+=4*n*7);for(var et=8,st=0,lt=E.length;st<lt;++st){var ut=E[st];if(gt===0&&(gt=J,(q+=U)>=R&&(U=4*tt+4*n*(et-1),q=_+(J+tt)*(et<<1),et>>=1)),ut===X)q+=4;else{var wt=e[I+3*ut],bt=e[I+3*ut+1],St=e[I+3*ut+2];B[q++]=St,B[q++]=bt,B[q++]=wt,B[q++]=255}--gt}},this.decodeAndBlitFrameRGBA=function(L,B){var F=this.frameInfo(L),Y=F.width*F.height,E=new Uint8Array(Y);xl(e,F.data_offset,E,Y);var I=F.palette_offset,X=F.transparent_index;X===null&&(X=256);var J=F.width,tt=n-J,gt=J,_=4*(F.y*n+F.x),R=4*((F.y+F.height)*n+F.x),q=_,U=4*tt;F.interlaced===!0&&(U+=4*n*7);for(var et=8,st=0,lt=E.length;st<lt;++st){var ut=E[st];if(gt===0&&(gt=J,(q+=U)>=R&&(U=4*tt+4*n*(et-1),q=_+(J+tt)*(et<<1),et>>=1)),ut===X)q+=4;else{var wt=e[I+3*ut],bt=e[I+3*ut+1],St=e[I+3*ut+2];B[q++]=wt,B[q++]=bt,B[q++]=St,B[q++]=255}--gt}}}function xl(e,t,n,i){for(var o=e[t++],r=1<<o,s=r+1,u=s+1,c=o+1,m=(1<<c)-1,d=0,p=0,g=0,f=e[t++],w=new Int32Array(4096),N=null;;){for(;d<16&&f!==0;)p|=e[t++]<<d,d+=8,f===1?f=e[t++]:--f;if(d<c)break;var C=p&m;if(p>>=c,d-=c,C!==r){if(C===s)break;for(var y=C<u?C:N,M=0,z=y;z>r;)z=w[z]>>8,++M;var G=z;if(g+M+(y!==C?1:0)>i)return void xe.log("Warning, gif stream longer than expected.");n[g++]=G;var $=g+=M;for(y!==C&&(n[g++]=G),z=y;M--;)z=w[z],n[--$]=255&z,z>>=8;N!==null&&u<4096&&(w[u++]=N<<8|G,u>=m+1&&c<12&&(++c,m=m<<1|1)),N=C}else u=s+1,m=(1<<(c=o+1))-1,N=null}return g!==i&&xe.log("Warning, gif stream shorter than expected."),n}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function js(e){var t,n,i,o,r,s=Math.floor,u=new Array(64),c=new Array(64),m=new Array(64),d=new Array(64),p=new Array(65535),g=new Array(65535),f=new Array(64),w=new Array(64),N=[],C=0,y=7,M=new Array(64),z=new Array(64),G=new Array(64),$=new Array(256),W=new Array(2048),Q=[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],k=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],A=[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],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],B=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Y=[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 E(_,R){for(var q=0,U=0,et=new Array,st=1;st<=16;st++){for(var lt=1;lt<=_[st];lt++)et[R[U]]=[],et[R[U]][0]=q,et[R[U]][1]=st,U++,q++;q*=2}return et}function I(_){for(var R=_[0],q=_[1]-1;q>=0;)R&1<<q&&(C|=1<<y),q--,--y<0&&(C==255?(X(255),X(0)):X(C),y=7,C=0)}function X(_){N.push(_)}function J(_){X(_>>8&255),X(255&_)}function tt(_,R,q,U,et){for(var st,lt=et[0],ut=et[240],wt=function(xt,_t){var Pt,kt,jt,Bt,Ut,Zt,ie,Xt,zt,Wt,Ct=0;for(zt=0;zt<8;++zt){Pt=xt[Ct],kt=xt[Ct+1],jt=xt[Ct+2],Bt=xt[Ct+3],Ut=xt[Ct+4],Zt=xt[Ct+5],ie=xt[Ct+6];var ge=Pt+(Xt=xt[Ct+7]),ne=Pt-Xt,Ce=kt+ie,se=kt-ie,be=jt+Zt,In=jt-Zt,le=Bt+Ut,ir=Bt-Ut,ye=ge+le,An=ge-le,Ye=Ce+be,he=Ce-be;xt[Ct]=ye+Ye,xt[Ct+4]=ye-Ye;var Vt=.707106781*(he+An);xt[Ct+2]=An+Vt,xt[Ct+6]=An-Vt;var ae=.382683433*((ye=ir+In)-(he=se+ne)),ar=.5411961*ye+ae,Pe=1.306562965*he+ae,Qe=.707106781*(Ye=In+se),or=ne+Qe,Qt=ne-Qe;xt[Ct+5]=Qt+ar,xt[Ct+3]=Qt-ar,xt[Ct+1]=or+Pe,xt[Ct+7]=or-Pe,Ct+=8}for(Ct=0,zt=0;zt<8;++zt){Pt=xt[Ct],kt=xt[Ct+8],jt=xt[Ct+16],Bt=xt[Ct+24],Ut=xt[Ct+32],Zt=xt[Ct+40],ie=xt[Ct+48];var Wn=Pt+(Xt=xt[Ct+56]),sr=Pt-Xt,gn=kt+ie,We=kt-ie,qe=jt+Zt,xn=jt-Zt,Ni=Bt+Ut,vr=Bt-Ut,Gn=Wn+Ni,Vn=Wn-Ni,Yn=gn+qe,ur=gn-qe;xt[Ct]=Gn+Yn,xt[Ct+32]=Gn-Yn;var Fn=.707106781*(ur+Vn);xt[Ct+16]=Vn+Fn,xt[Ct+48]=Vn-Fn;var lr=.382683433*((Gn=vr+xn)-(ur=We+sr)),Xr=.5411961*Gn+lr,_i=1.306562965*ur+lr,Si=.707106781*(Yn=xn+We),Pi=sr+Si,ki=sr-Si;xt[Ct+40]=ki+Xr,xt[Ct+24]=ki-Xr,xt[Ct+8]=Pi+_i,xt[Ct+56]=Pi-_i,Ct++}for(zt=0;zt<64;++zt)Wt=xt[zt]*_t[zt],f[zt]=Wt>0?Wt+.5|0:Wt-.5|0;return f}(_,R),bt=0;bt<64;++bt)w[Q[bt]]=wt[bt];var St=w[0]-q;q=w[0],St==0?I(U[0]):(I(U[g[st=32767+St]]),I(p[st]));for(var Ft=63;Ft>0&&w[Ft]==0;)Ft--;if(Ft==0)return I(lt),q;for(var qt,dt=1;dt<=Ft;){for(var K=dt;w[dt]==0&&dt<=Ft;)++dt;var Tt=dt-K;if(Tt>=16){qt=Tt>>4;for(var It=1;It<=qt;++It)I(ut);Tt&=15}st=32767+w[dt],I(et[(Tt<<4)+g[st]]),I(p[st]),dt++}return Ft!=63&&I(lt),q}function gt(_){_=Math.min(Math.max(_,1),100),r!=_&&(function(R){for(var q=[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],U=0;U<64;U++){var et=s((q[U]*R+50)/100);et=Math.min(Math.max(et,1),255),u[Q[U]]=et}for(var st=[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],lt=0;lt<64;lt++){var ut=s((st[lt]*R+50)/100);ut=Math.min(Math.max(ut,1),255),c[Q[lt]]=ut}for(var wt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],bt=0,St=0;St<8;St++)for(var Ft=0;Ft<8;Ft++)m[bt]=1/(u[Q[bt]]*wt[St]*wt[Ft]*8),d[bt]=1/(c[Q[bt]]*wt[St]*wt[Ft]*8),bt++}(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),r=_)}this.encode=function(_,R){R&&gt(R),N=new Array,C=0,y=7,J(65496),J(65504),J(16),X(74),X(70),X(73),X(70),X(0),X(1),X(1),X(0),J(1),J(1),X(0),X(0),function(){J(65499),J(132),X(0);for(var kt=0;kt<64;kt++)X(u[kt]);X(1);for(var jt=0;jt<64;jt++)X(c[jt])}(),function(kt,jt){J(65472),J(17),X(8),J(jt),J(kt),X(3),X(1),X(17),X(0),X(2),X(17),X(1),X(3),X(17),X(1)}(_.width,_.height),function(){J(65476),J(418),X(0);for(var kt=0;kt<16;kt++)X(x[kt+1]);for(var jt=0;jt<=11;jt++)X(k[jt]);X(16);for(var Bt=0;Bt<16;Bt++)X(H[Bt+1]);for(var Ut=0;Ut<=161;Ut++)X(A[Ut]);X(1);for(var Zt=0;Zt<16;Zt++)X(L[Zt+1]);for(var ie=0;ie<=11;ie++)X(B[ie]);X(17);for(var Xt=0;Xt<16;Xt++)X(F[Xt+1]);for(var zt=0;zt<=161;zt++)X(Y[zt])}(),J(65498),J(12),X(3),X(1),X(0),X(2),X(17),X(3),X(17),X(0),X(63),X(0);var q=0,U=0,et=0;C=0,y=7,this.encode.displayName="_encode_";for(var st,lt,ut,wt,bt,St,Ft,qt,dt,K=_.data,Tt=_.width,It=_.height,xt=4*Tt,_t=0;_t<It;){for(st=0;st<xt;){for(bt=xt*_t+st,Ft=-1,qt=0,dt=0;dt<64;dt++)St=bt+(qt=dt>>3)*xt+(Ft=4*(7&dt)),_t+qt>=It&&(St-=xt*(_t+1+qt-It)),st+Ft>=xt&&(St-=st+Ft-xt+4),lt=K[St++],ut=K[St++],wt=K[St++],M[dt]=(W[lt]+W[ut+256>>0]+W[wt+512>>0]>>16)-128,z[dt]=(W[lt+768>>0]+W[ut+1024>>0]+W[wt+1280>>0]>>16)-128,G[dt]=(W[lt+1280>>0]+W[ut+1536>>0]+W[wt+1792>>0]>>16)-128;q=tt(M,m,q,t,i),U=tt(z,d,U,n,o),et=tt(G,d,et,n,o),st+=32}_t+=8}if(y>=0){var Pt=[];Pt[1]=y+1,Pt[0]=(1<<y+1)-1,I(Pt)}return J(65497),new Uint8Array(N)},e=e||50,function(){for(var _=String.fromCharCode,R=0;R<256;R++)$[R]=_(R)}(),t=E(x,k),n=E(L,B),i=E(H,A),o=E(F,Y),function(){for(var _=1,R=2,q=1;q<=15;q++){for(var U=_;U<R;U++)g[32767+U]=q,p[32767+U]=[],p[32767+U][1]=q,p[32767+U][0]=U;for(var et=-(R-1);et<=-_;et++)g[32767+et]=q,p[32767+et]=[],p[32767+et][1]=q,p[32767+et][0]=R-1+et;_<<=1,R<<=1}}(),function(){for(var _=0;_<256;_++)W[_]=19595*_,W[_+256>>0]=38470*_,W[_+512>>0]=7471*_+32768,W[_+768>>0]=-11059*_,W[_+1024>>0]=-21709*_,W[_+1280>>0]=32768*_+8421375,W[_+1536>>0]=-27439*_,W[_+1792>>0]=-5329*_}(),gt(e)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Un(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ll(e){function t(x){if(!x)throw Error("assert :P")}function n(x,k,H){for(var A=0;4>A;A++)if(x[k+A]!=H.charCodeAt(A))return!0;return!1}function i(x,k,H,A,L){for(var B=0;B<L;B++)x[k+B]=H[A+B]}function o(x,k,H,A){for(var L=0;L<A;L++)x[k+L]=H}function r(x){return new Int32Array(x)}function s(x,k){for(var H=[],A=0;A<x;A++)H.push(new k);return H}function u(x,k){var H=[];return function A(L,B,F){for(var Y=F[B],E=0;E<Y&&(L.push(F.length>B+1?[]:new k),!(F.length<B+1));E++)A(L[E],B+1,F)}(H,0,x),H}var c=function(){var x=this;function k(a,l){for(var v=1<<l-1>>>0;a&v;)v>>>=1;return v?(a&v-1)+v:a}function H(a,l,v,b,S){t(!(b%v));do a[l+(b-=v)]=S;while(0<b)}function A(a,l,v,b,S){if(t(2328>=S),512>=S)var j=r(512);else if((j=r(S))==null)return 0;return function(O,D,T,V,rt,ft){var ht,ot,At=D,pt=1<<T,it=r(16),at=r(16);for(t(rt!=0),t(V!=null),t(O!=null),t(0<T),ot=0;ot<rt;++ot){if(15<V[ot])return 0;++it[V[ot]]}if(it[0]==rt)return 0;for(at[1]=0,ht=1;15>ht;++ht){if(it[ht]>1<<ht)return 0;at[ht+1]=at[ht]+it[ht]}for(ot=0;ot<rt;++ot)ht=V[ot],0<V[ot]&&(ft[at[ht]++]=ot);if(at[15]==1)return(V=new L).g=0,V.value=ft[0],H(O,At,1,pt,V),pt;var mt,Lt=-1,yt=pt-1,Dt=0,Et=1,Gt=1,Ot=1<<T;for(ot=0,ht=1,rt=2;ht<=T;++ht,rt<<=1){if(Et+=Gt<<=1,0>(Gt-=it[ht]))return 0;for(;0<it[ht];--it[ht])(V=new L).g=ht,V.value=ft[ot++],H(O,At+Dt,rt,Ot,V),Dt=k(Dt,ht)}for(ht=T+1,rt=2;15>=ht;++ht,rt<<=1){if(Et+=Gt<<=1,0>(Gt-=it[ht]))return 0;for(;0<it[ht];--it[ht]){if(V=new L,(Dt&yt)!=Lt){for(At+=Ot,mt=1<<(Lt=ht)-T;15>Lt&&!(0>=(mt-=it[Lt]));)++Lt,mt<<=1;pt+=Ot=1<<(mt=Lt-T),O[D+(Lt=Dt&yt)].g=mt+T,O[D+Lt].value=At-D-Lt}V.g=ht-T,V.value=ft[ot++],H(O,At+(Dt>>T),rt,Ot,V),Dt=k(Dt,ht)}}return Et!=2*at[15]-1?0:pt}(a,l,v,b,S,j)}function L(){this.value=this.g=0}function B(){this.value=this.g=0}function F(){this.G=s(5,L),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s($e,B)}function Y(a,l,v,b){t(a!=null),t(l!=null),t(2147483648>b),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=l,a.pa=v,a.Jd=l,a.Yc=v+b,a.Zc=4<=b?v+b-4+1:v,st(a)}function E(a,l){for(var v=0;0<l--;)v|=ut(a,128)<<l;return v}function I(a,l){var v=E(a,l);return lt(a)?-v:v}function X(a,l,v,b){var S,j=0;for(t(a!=null),t(l!=null),t(4294967288>b),a.Sb=b,a.Ra=0,a.u=0,a.h=0,4<b&&(b=4),S=0;S<b;++S)j+=l[v+S]<<8*S;a.Ra=j,a.bb=b,a.oa=l,a.pa=v}function J(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<Hi-8>>>0,++a.bb,a.u-=8;q(a)&&(a.h=1,a.u=0)}function tt(a,l){if(t(0<=l),!a.h&&l<=zi){var v=R(a)&Ui[l];return a.u+=l,J(a),v}return a.h=1,a.u=0}function gt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function R(a){return a.Ra>>>(a.u&Hi-1)>>>0}function q(a){return t(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>Hi}function U(a,l){a.u=l,a.h=q(a)}function et(a){a.u>=Sa&&(t(a.u>=Sa),J(a))}function st(a){t(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(t(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function lt(a){return E(a,1)}function ut(a,l){var v=a.Ca;0>a.b&&st(a);var b=a.b,S=v*l>>>8,j=(a.I>>>b>S)+0;for(j?(v-=S,a.I-=S+1<<b>>>0):v=S+1,b=v,S=0;256<=b;)S+=8,b>>=8;return b=7^S+mn[b],a.b-=b,a.Ca=(v<<b)-1,j}function wt(a,l,v){a[l+0]=v>>24&255,a[l+1]=v>>16&255,a[l+2]=v>>8&255,a[l+3]=v>>0&255}function bt(a,l){return a[l+0]<<0|a[l+1]<<8}function St(a,l){return bt(a,l)|a[l+2]<<16}function Ft(a,l){return bt(a,l)|bt(a,l+2)<<16}function qt(a,l){var v=1<<l;return t(a!=null),t(0<l),a.X=r(v),a.X==null?0:(a.Mb=32-l,a.Xa=l,1)}function dt(a,l){t(a!=null),t(l!=null),t(a.Xa==l.Xa),i(l.X,0,a.X,0,1<<l.Xa)}function K(){this.X=[],this.Xa=this.Mb=0}function Tt(a,l,v,b){t(v!=null),t(b!=null);var S=v[0],j=b[0];return S==0&&(S=(a*j+l/2)/l),j==0&&(j=(l*S+a/2)/a),0>=S||0>=j?0:(v[0]=S,b[0]=j,1)}function It(a,l){return a+(1<<l)-1>>>l}function xt(a,l){return((4278255360&a)+(4278255360&l)>>>0&4278255360)+((16711935&a)+(16711935&l)>>>0&16711935)>>>0}function _t(a,l){x[l]=function(v,b,S,j,O,D,T){var V;for(V=0;V<O;++V){var rt=x[a](D[T+V-1],S,j+V);D[T+V]=xt(v[b+V],rt)}}}function Pt(){this.ud=this.hd=this.jd=0}function kt(a,l){return((4278124286&(a^l))>>>1)+(a&l)>>>0}function jt(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function Bt(a,l){return jt(a+(a-l+.5>>1))}function Ut(a,l,v){return Math.abs(l-v)-Math.abs(a-v)}function Zt(a,l,v,b,S,j,O){for(b=j[O-1],v=0;v<S;++v)j[O+v]=b=xt(a[l+v],b)}function ie(a,l,v,b,S){var j;for(j=0;j<v;++j){var O=a[l+j],D=O>>8&255,T=16711935&(T=(T=16711935&O)+((D<<16)+D));b[S+j]=(4278255360&O)+T>>>0}}function Xt(a,l){l.jd=a>>0&255,l.hd=a>>8&255,l.ud=a>>16&255}function zt(a,l,v,b,S,j){var O;for(O=0;O<b;++O){var D=l[v+O],T=D>>>8,V=D,rt=255&(rt=(rt=D>>>16)+((a.jd<<24>>24)*(T<<24>>24)>>>5));V=255&(V=(V=V+((a.hd<<24>>24)*(T<<24>>24)>>>5))+((a.ud<<24>>24)*(rt<<24>>24)>>>5)),S[j+O]=(4278255360&D)+(rt<<16)+V}}function Wt(a,l,v,b,S){x[l]=function(j,O,D,T,V,rt,ft,ht,ot){for(T=ft;T<ht;++T)for(ft=0;ft<ot;++ft)V[rt++]=S(D[b(j[O++])])},x[a]=function(j,O,D,T,V,rt,ft){var ht=8>>j.b,ot=j.Ea,At=j.K[0],pt=j.w;if(8>ht)for(j=(1<<j.b)-1,pt=(1<<ht)-1;O<D;++O){var it,at=0;for(it=0;it<ot;++it)it&j||(at=b(T[V++])),rt[ft++]=S(At[at&pt]),at>>=ht}else x["VP8LMapColor"+v](T,V,At,pt,rt,ft,O,D,ot)}}function Ct(a,l,v,b,S){for(v=l+v;l<v;){var j=a[l++];b[S++]=j>>16&255,b[S++]=j>>8&255,b[S++]=j>>0&255}}function ge(a,l,v,b,S){for(v=l+v;l<v;){var j=a[l++];b[S++]=j>>16&255,b[S++]=j>>8&255,b[S++]=j>>0&255,b[S++]=j>>24&255}}function ne(a,l,v,b,S){for(v=l+v;l<v;){var j=(O=a[l++])>>16&240|O>>12&15,O=O>>0&240|O>>28&15;b[S++]=j,b[S++]=O}}function Ce(a,l,v,b,S){for(v=l+v;l<v;){var j=(O=a[l++])>>16&248|O>>13&7,O=O>>5&224|O>>3&31;b[S++]=j,b[S++]=O}}function se(a,l,v,b,S){for(v=l+v;l<v;){var j=a[l++];b[S++]=j>>0&255,b[S++]=j>>8&255,b[S++]=j>>16&255}}function be(a,l,v,b,S,j){if(j==0)for(v=l+v;l<v;)wt(b,((j=a[l++])[0]>>24|j[1]>>8&65280|j[2]<<8&16711680|j[3]<<24)>>>0),S+=32;else i(b,S,a,l,v)}function In(a,l){x[l][0]=x[a+"0"],x[l][1]=x[a+"1"],x[l][2]=x[a+"2"],x[l][3]=x[a+"3"],x[l][4]=x[a+"4"],x[l][5]=x[a+"5"],x[l][6]=x[a+"6"],x[l][7]=x[a+"7"],x[l][8]=x[a+"8"],x[l][9]=x[a+"9"],x[l][10]=x[a+"10"],x[l][11]=x[a+"11"],x[l][12]=x[a+"12"],x[l][13]=x[a+"13"],x[l][14]=x[a+"0"],x[l][15]=x[a+"0"]}function le(a){return a==cu||a==fu||a==Yo||a==hu}function ir(){this.eb=[],this.size=this.A=this.fb=0}function ye(){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 An(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ir,this.f.kb=new ye,this.sd=null}function Ye(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function he(){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 Vt(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function ae(a,l){var v=a.T,b=l.ba.f.RGBA,S=b.eb,j=b.fb+a.ka*b.A,O=Bn[l.ba.S],D=a.y,T=a.O,V=a.f,rt=a.N,ft=a.ea,ht=a.W,ot=l.cc,At=l.dc,pt=l.Mc,it=l.Nc,at=a.ka,mt=a.ka+a.T,Lt=a.U,yt=Lt+1>>1;for(at==0?O(D,T,null,null,V,rt,ft,ht,V,rt,ft,ht,S,j,null,null,Lt):(O(l.ec,l.fc,D,T,ot,At,pt,it,V,rt,ft,ht,S,j-b.A,S,j,Lt),++v);at+2<mt;at+=2)ot=V,At=rt,pt=ft,it=ht,rt+=a.Rc,ht+=a.Rc,j+=2*b.A,O(D,(T+=2*a.fa)-a.fa,D,T,ot,At,pt,it,V,rt,ft,ht,S,j-b.A,S,j,Lt);return T+=a.fa,a.j+mt<a.o?(i(l.ec,l.fc,D,T,Lt),i(l.cc,l.dc,V,rt,yt),i(l.Mc,l.Nc,ft,ht,yt),v--):1&mt||O(D,T,null,null,V,rt,ft,ht,V,rt,ft,ht,S,j+b.A,null,null,Lt),v}function ar(a,l,v){var b=a.F,S=[a.J];if(b!=null){var j=a.U,O=l.ba.S,D=O==Vo||O==Yo;l=l.ba.f.RGBA;var T=[0],V=a.ka;T[0]=a.T,a.Kb&&(V==0?--T[0]:(--V,S[0]-=a.width),a.j+a.ka+a.T==a.o&&(T[0]=a.o-a.j-V));var rt=l.eb;V=l.fb+V*l.A,a=_e(b,S[0],a.width,j,T,rt,V+(D?0:3),l.A),t(v==T),a&&le(O)&&On(rt,V,D,j,T,l.A)}return 0}function Pe(a){var l=a.ma,v=l.ba.S,b=11>v,S=v==Wo||v==Go||v==Vo||v==lu||v==12||le(v);if(l.memory=null,l.Ib=null,l.Jb=null,l.Nd=null,!Na(l.Oa,a,S?11:12))return 0;if(S&&le(v)&&Nt(),a.da)alert("todo:use_scaling");else{if(b){if(l.Ib=Vt,a.Kb){if(v=a.U+1>>1,l.memory=r(a.U+2*v),l.memory==null)return 0;l.ec=l.memory,l.fc=0,l.cc=l.ec,l.dc=l.fc+a.U,l.Mc=l.cc,l.Nc=l.dc+v,l.Ib=ae,Nt()}}else alert("todo:EmitYUV");S&&(l.Jb=ar,b&&ct())}if(b&&!Jl){for(a=0;256>a;++a)Bf[a]=89858*(a-128)+Jo>>Qo,Rf[a]=-22014*(a-128)+Jo,Tf[a]=-45773*(a-128),Df[a]=113618*(a-128)+Jo>>Qo;for(a=ja;a<gu;++a)l=76283*(a-16)+Jo>>Qo,qf[a-ja]=Ln(l,255),Uf[a-ja]=Ln(l+8>>4,15);Jl=1}return 1}function Qe(a){var l=a.ma,v=a.U,b=a.T;return t(!(1&a.ka)),0>=v||0>=b?0:(v=l.Ib(a,l),l.Jb!=null&&l.Jb(a,l,v),l.Dc+=v,1)}function or(a){a.ma.memory=null}function Qt(a,l,v,b){return tt(a,8)!=47?0:(l[0]=tt(a,14)+1,v[0]=tt(a,14)+1,b[0]=tt(a,1),tt(a,3)!=0?0:!a.h)}function Wn(a,l){if(4>a)return a+1;var v=a-2>>1;return(2+(1&a)<<v)+tt(l,v)+1}function sr(a,l){return 120<l?l-120:1<=(v=((v=xf[l-1])>>4)*a+(8-(15&v)))?v:1;var v}function gn(a,l,v){var b=R(v),S=a[l+=255&b].g-8;return 0<S&&(U(v,v.u+8),b=R(v),l+=a[l].value,l+=b&(1<<S)-1),U(v,v.u+a[l].g),a[l].value}function We(a,l,v){return v.g+=a.g,v.value+=a.value<<l>>>0,t(8>=v.g),a.g}function qe(a,l,v){var b=a.xc;return t((l=b==0?0:a.vc[a.md*(v>>b)+(l>>b)])<a.Wb),a.Ya[l]}function xn(a,l,v,b){var S=a.ab,j=a.c*l,O=a.C;l=O+l;var D=v,T=b;for(b=a.Ta,v=a.Ua;0<S--;){var V=a.gc[S],rt=O,ft=l,ht=D,ot=T,At=(T=b,D=v,V.Ea);switch(t(rt<ft),t(ft<=V.nc),V.hc){case 2:Do(ht,ot,(ft-rt)*At,T,D);break;case 0:var pt=rt,it=ft,at=T,mt=D,Lt=(Ot=V).Ea;pt==0&&(su(ht,ot,null,null,1,at,mt),Zt(ht,ot+1,0,0,Lt-1,at,mt+1),ot+=Lt,mt+=Lt,++pt);for(var yt=1<<Ot.b,Dt=yt-1,Et=It(Lt,Ot.b),Gt=Ot.K,Ot=Ot.w+(pt>>Ot.b)*Et;pt<it;){var de=Gt,ve=Ot,fe=1;for(Pa(ht,ot,at,mt-Lt,1,at,mt);fe<Lt;){var oe=(fe&~Dt)+yt;oe>Lt&&(oe=Lt),(0,Mr[de[ve++]>>8&15])(ht,ot+ +fe,at,mt+fe-Lt,oe-fe,at,mt+fe),fe=oe}ot+=Lt,mt+=Lt,++pt&Dt||(Ot+=Et)}ft!=V.nc&&i(T,D-At,T,D+(ft-rt-1)*At,At);break;case 1:for(At=ht,it=ot,Lt=(ht=V.Ea)-(mt=ht&~(at=(ot=1<<V.b)-1)),pt=It(ht,V.b),yt=V.K,V=V.w+(rt>>V.b)*pt;rt<ft;){for(Dt=yt,Et=V,Gt=new Pt,Ot=it+mt,de=it+ht;it<Ot;)Xt(Dt[Et++],Gt),ni(Gt,At,it,ot,T,D),it+=ot,D+=ot;it<de&&(Xt(Dt[Et++],Gt),ni(Gt,At,it,Lt,T,D),it+=Lt,D+=Lt),++rt&at||(V+=pt)}break;case 3:if(ht==T&&ot==D&&0<V.b){for(it=T,ht=At=D+(ft-rt)*At-(mt=(ft-rt)*It(V.Ea,V.b)),ot=T,at=D,pt=[],mt=(Lt=mt)-1;0<=mt;--mt)pt[mt]=ot[at+mt];for(mt=Lt-1;0<=mt;--mt)it[ht+mt]=pt[mt];Cn(V,rt,ft,T,At,T,D)}else Cn(V,rt,ft,ht,ot,T,D)}D=b,T=v}T!=v&&i(b,v,D,T,j)}function Ni(a,l){var v=a.V,b=a.Ba+a.c*a.C,S=l-a.C;if(t(l<=a.l.o),t(16>=S),0<S){var j=a.l,O=a.Ta,D=a.Ua,T=j.width;if(xn(a,S,v,b),S=D=[D],t((v=a.C)<(b=l)),t(j.v<j.va),b>j.o&&(b=j.o),v<j.j){var V=j.j-v;v=j.j,S[0]+=V*T}if(v>=b?v=0:(S[0]+=4*j.v,j.ka=v-j.j,j.U=j.va-j.v,j.T=b-v,v=1),v){if(D=D[0],11>(v=a.ca).S){var rt=v.f.RGBA,ft=(b=v.S,S=j.U,j=j.T,V=rt.eb,rt.A),ht=j;for(rt=rt.fb+a.Ma*rt.A;0<ht--;){var ot=O,At=D,pt=S,it=V,at=rt;switch(b){case Ho:bn(ot,At,pt,it,at);break;case Wo:cn(ot,At,pt,it,at);break;case cu:cn(ot,At,pt,it,at),On(it,at,0,pt,1,0);break;case Rl:wr(ot,At,pt,it,at);break;case Go:be(ot,At,pt,it,at,1);break;case fu:be(ot,At,pt,it,at,1),On(it,at,0,pt,1,0);break;case Vo:be(ot,At,pt,it,at,0);break;case Yo:be(ot,At,pt,it,at,0),On(it,at,1,pt,1,0);break;case lu:Br(ot,At,pt,it,at);break;case hu:Br(ot,At,pt,it,at),Ne(it,at,pt,1,0);break;case ql:yr(ot,At,pt,it,at);break;default:t(0)}D+=T,rt+=ft}a.Ma+=j}else alert("todo:EmitRescaledRowsYUVA");t(a.Ma<=v.height)}}a.C=l,t(a.C<=a.i)}function vr(a){var l;if(0<a.ua)return 0;for(l=0;l<a.Wb;++l){var v=a.Ya[l].G,b=a.Ya[l].H;if(0<v[1][b[1]+0].g||0<v[2][b[2]+0].g||0<v[3][b[3]+0].g)return 0}return 1}function Gn(a,l,v,b,S,j){if(a.Z!=0){var O=a.qd,D=a.rd;for(t(qr[a.Z]!=null);l<v;++l)qr[a.Z](O,D,b,S,b,S,j),O=b,D=S,S+=j;a.qd=O,a.rd=D}}function Vn(a,l){var v=a.l.ma,b=v.Z==0||v.Z==1?a.l.j:a.C;if(b=a.C<b?b:a.C,t(l<=a.l.o),l>b){var S=a.l.width,j=v.ca,O=v.tb+S*b,D=a.V,T=a.Ba+a.c*b,V=a.gc;t(a.ab==1),t(V[0].hc==3),To(V[0],b,l,D,T,j,O),Gn(v,b,l,j,O,S)}a.C=a.Ma=l}function Yn(a,l,v,b,S,j,O){var D=a.$/b,T=a.$%b,V=a.m,rt=a.s,ft=v+a.$,ht=ft;S=v+b*S;var ot=v+b*j,At=280+rt.ua,pt=a.Pb?D:16777216,it=0<rt.ua?rt.Wa:null,at=rt.wc,mt=ft<ot?qe(rt,T,D):null;t(a.C<j),t(ot<=S);var Lt=!1;t:for(;;){for(;Lt||ft<ot;){var yt=0;if(D>=pt){var Dt=ft-v;t((pt=a).Pb),pt.wd=pt.m,pt.xd=Dt,0<pt.s.ua&&dt(pt.s.Wa,pt.s.vb),pt=D+Nf}if(T&at||(mt=qe(rt,T,D)),t(mt!=null),mt.Qb&&(l[ft]=mt.qb,Lt=!0),!Lt)if(et(V),mt.jc){yt=V,Dt=l;var Et=ft,Gt=mt.pd[R(yt)&$e-1];t(mt.jc),256>Gt.g?(U(yt,yt.u+Gt.g),Dt[Et]=Gt.value,yt=0):(U(yt,yt.u+Gt.g-256),t(256<=Gt.value),yt=Gt.value),yt==0&&(Lt=!0)}else yt=gn(mt.G[0],mt.H[0],V);if(V.h)break;if(Lt||256>yt){if(!Lt)if(mt.nd)l[ft]=(mt.qb|yt<<8)>>>0;else{if(et(V),Lt=gn(mt.G[1],mt.H[1],V),et(V),Dt=gn(mt.G[2],mt.H[2],V),Et=gn(mt.G[3],mt.H[3],V),V.h)break;l[ft]=(Et<<24|Lt<<16|yt<<8|Dt)>>>0}if(Lt=!1,++ft,++T>=b&&(T=0,++D,O!=null&&D<=j&&!(D%16)&&O(a,D),it!=null))for(;ht<ft;)yt=l[ht++],it.X[(506832829*yt&4294967295)>>>it.Mb]=yt}else if(280>yt){if(yt=Wn(yt-256,V),Dt=gn(mt.G[4],mt.H[4],V),et(V),Dt=sr(b,Dt=Wn(Dt,V)),V.h)break;if(ft-v<Dt||S-ft<yt)break t;for(Et=0;Et<yt;++Et)l[ft+Et]=l[ft+Et-Dt];for(ft+=yt,T+=yt;T>=b;)T-=b,++D,O!=null&&D<=j&&!(D%16)&&O(a,D);if(t(ft<=S),T&at&&(mt=qe(rt,T,D)),it!=null)for(;ht<ft;)yt=l[ht++],it.X[(506832829*yt&4294967295)>>>it.Mb]=yt}else{if(!(yt<At))break t;for(Lt=yt-280,t(it!=null);ht<ft;)yt=l[ht++],it.X[(506832829*yt&4294967295)>>>it.Mb]=yt;yt=ft,t(!(Lt>>>(Dt=it).Xa)),l[yt]=Dt.X[Lt],Lt=!0}Lt||t(V.h==q(V))}if(a.Pb&&V.h&&ft<S)t(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&dt(a.s.vb,a.s.Wa);else{if(V.h)break t;O!=null&&O(a,D>j?j:D),a.a=0,a.$=ft-v}return 1}return a.a=3,0}function ur(a){t(a!=null),a.vc=null,a.yc=null,a.Ya=null;var l=a.Wa;l!=null&&(l.X=null),a.vb=null,t(a!=null)}function Fn(){var a=new ou;return a==null?null:(a.a=0,a.xb=Hl,In("Predictor","VP8LPredictors"),In("Predictor","VP8LPredictors_C"),In("PredictorAdd","VP8LPredictorsAdd"),In("PredictorAdd","VP8LPredictorsAdd_C"),Do=ie,ni=zt,bn=Ct,cn=ge,Br=ne,yr=Ce,wr=se,x.VP8LMapColor32b=Wi,x.VP8LMapColor8b=Ro,a)}function lr(a,l,v,b,S){var j=1,O=[a],D=[l],T=b.m,V=b.s,rt=null,ft=0;t:for(;;){if(v)for(;j&&tt(T,1);){var ht=O,ot=D,At=b,pt=1,it=At.m,at=At.gc[At.ab],mt=tt(it,2);if(At.Oc&1<<mt)j=0;else{switch(At.Oc|=1<<mt,at.hc=mt,at.Ea=ht[0],at.nc=ot[0],at.K=[null],++At.ab,t(4>=At.ab),mt){case 0:case 1:at.b=tt(it,3)+2,pt=lr(It(at.Ea,at.b),It(at.nc,at.b),0,At,at.K),at.K=at.K[0];break;case 3:var Lt,yt=tt(it,8)+1,Dt=16<yt?0:4<yt?1:2<yt?2:3;if(ht[0]=It(at.Ea,Dt),at.b=Dt,Lt=pt=lr(yt,1,0,At,at.K)){var Et,Gt=yt,Ot=at,de=1<<(8>>Ot.b),ve=r(de);if(ve==null)Lt=0;else{var fe=Ot.K[0],oe=Ot.w;for(ve[0]=Ot.K[0][0],Et=1;Et<1*Gt;++Et)ve[Et]=xt(fe[oe+Et],ve[Et-1]);for(;Et<4*de;++Et)ve[Et]=0;Ot.K[0]=null,Ot.K[0]=ve,Lt=1}}pt=Lt;break;case 2:break;default:t(0)}j=pt}}if(O=O[0],D=D[0],j&&tt(T,1)&&!(j=1<=(ft=tt(T,4))&&11>=ft)){b.a=3;break t}var Le;if(Le=j)e:{var we,re,ze,yn=b,He=O,wn=D,me=ft,_n=v,Sn=yn.m,Ze=yn.s,tn=[null],hn=1,Dn=0,dr=Lf[me];n:for(;;){if(_n&&tt(Sn,1)){var Xe=tt(Sn,3)+2,Nr=It(He,Xe),si=It(wn,Xe),Ji=Nr*si;if(!lr(Nr,si,0,yn,tn))break n;for(tn=tn[0],Ze.xc=Xe,we=0;we<Ji;++we){var Ur=tn[we]>>8&65535;tn[we]=Ur,Ur>=hn&&(hn=Ur+1)}}if(Sn.h)break n;for(re=0;5>re;++re){var je=Ul[re];!re&&0<me&&(je+=1<<me),Dn<je&&(Dn=je)}var vu=s(hn*dr,L),Kl=hn,$l=s(Kl,F);if($l==null)var Xo=null;else t(65536>=Kl),Xo=$l;var Oa=r(Dn);if(Xo==null||Oa==null||vu==null){yn.a=1;break n}var Ko=vu;for(we=ze=0;we<hn;++we){var Kn=Xo[we],Zi=Kn.G,Xi=Kn.H,tc=0,$o=1,ec=0;for(re=0;5>re;++re){je=Ul[re],Zi[re]=Ko,Xi[re]=ze,!re&&0<me&&(je+=1<<me);i:{var ts,mu=je,es=yn,Ma=Oa,Wf=Ko,Gf=ze,bu=0,zr=es.m,Vf=tt(zr,1);if(o(Ma,0,0,mu),Vf){var Yf=tt(zr,1)+1,Qf=tt(zr,1),nc=tt(zr,Qf==0?1:8);Ma[nc]=1,Yf==2&&(Ma[nc=tt(zr,8)]=1);var ns=1}else{var rc=r(19),ic=tt(zr,4)+4;if(19<ic){es.a=3;var rs=0;break i}for(ts=0;ts<ic;++ts)rc[Af[ts]]=tt(zr,3);var yu=void 0,Ba=void 0,ac=es,Jf=rc,is=mu,oc=Ma,wu=0,Hr=ac.m,sc=8,uc=s(128,L);r:for(;A(uc,0,7,Jf,19);){if(tt(Hr,1)){var Zf=2+2*tt(Hr,3);if((yu=2+tt(Hr,Zf))>is)break r}else yu=is;for(Ba=0;Ba<is&&yu--;){et(Hr);var lc=uc[0+(127&R(Hr))];U(Hr,Hr.u+lc.g);var Ki=lc.value;if(16>Ki)oc[Ba++]=Ki,Ki!=0&&(sc=Ki);else{var Xf=Ki==16,cc=Ki-16,Kf=yf[cc],fc=tt(Hr,bf[cc])+Kf;if(Ba+fc>is)break r;for(var $f=Xf?sc:0;0<fc--;)oc[Ba++]=$f}}wu=1;break r}wu||(ac.a=3),ns=wu}(ns=ns&&!zr.h)&&(bu=A(Wf,Gf,8,Ma,mu)),ns&&bu!=0?rs=bu:(es.a=3,rs=0)}if(rs==0)break n;if($o&&wf[re]==1&&($o=Ko[ze].g==0),tc+=Ko[ze].g,ze+=rs,3>=re){var Da,Au=Oa[0];for(Da=1;Da<je;++Da)Oa[Da]>Au&&(Au=Oa[Da]);ec+=Au}}if(Kn.nd=$o,Kn.Qb=0,$o&&(Kn.qb=(Zi[3][Xi[3]+0].value<<24|Zi[1][Xi[1]+0].value<<16|Zi[2][Xi[2]+0].value)>>>0,tc==0&&256>Zi[0][Xi[0]+0].value&&(Kn.Qb=1,Kn.qb+=Zi[0][Xi[0]+0].value<<8)),Kn.jc=!Kn.Qb&&6>ec,Kn.jc){var as,_r=Kn;for(as=0;as<$e;++as){var Wr=as,Gr=_r.pd[Wr],os=_r.G[0][_r.H[0]+Wr];256<=os.value?(Gr.g=os.g+256,Gr.value=os.value):(Gr.g=0,Gr.value=0,Wr>>=We(os,8,Gr),Wr>>=We(_r.G[1][_r.H[1]+Wr],16,Gr),Wr>>=We(_r.G[2][_r.H[2]+Wr],0,Gr),We(_r.G[3][_r.H[3]+Wr],24,Gr))}}}Ze.vc=tn,Ze.Wb=hn,Ze.Ya=Xo,Ze.yc=vu,Le=1;break e}Le=0}if(!(j=Le)){b.a=3;break t}if(0<ft){if(V.ua=1<<ft,!qt(V.Wa,ft)){b.a=1,j=0;break t}}else V.ua=0;var xu=b,hc=O,t1=D,Lu=xu.s,Nu=Lu.xc;if(xu.c=hc,xu.i=t1,Lu.md=It(hc,Nu),Lu.wc=Nu==0?-1:(1<<Nu)-1,v){b.xb=Cf;break t}if((rt=r(O*D))==null){b.a=1,j=0;break t}j=(j=Yn(b,rt,0,O,D,D,null))&&!T.h;break t}return j?(S!=null?S[0]=rt:(t(rt==null),t(v)),b.$=0,v||ur(V)):ur(V),j}function Xr(a,l){var v=a.c*a.i,b=v+l+16*l;return t(a.c<=l),a.V=r(b),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+v+l,1)}function _i(a,l){var v=a.C,b=l-v,S=a.V,j=a.Ba+a.c*v;for(t(l<=a.l.o);0<b;){var O=16<b?16:b,D=a.l.ma,T=a.l.width,V=T*O,rt=D.ca,ft=D.tb+T*v,ht=a.Ta,ot=a.Ua;xn(a,O,S,j),Re(ht,ot,rt,ft,V),Gn(D,v,v+O,rt,ft,T),b-=O,S+=O*a.c,v+=O}t(v==l),a.C=a.Ma=l}function Si(){this.ub=this.yd=this.td=this.Rb=0}function Pi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ki(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function mo(){this.Yb=function(){var a=[];return function l(v,b,S){for(var j=S[b],O=0;O<j&&(v.push(S.length>b+1?[]:0),!(S.length<b+1));O++)l(v[O],b+1,S)}(a,0,[3,11]),a}()}function Ds(){this.jb=r(3),this.Wc=u([4,8],mo),this.Xc=u([4,17],mo)}function Ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function Ii(){this.ld=this.La=this.dd=this.tc=0}function bo(){this.Na=this.la=0}function Rs(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ua(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function qs(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ii),this.Y=0,this.ya=Array(new ua),this.aa=0,this.l=new Fi}function yo(){this.y=r(16),this.f=r(8),this.ea=r(8)}function Us(){this.cb=this.a=0,this.sc="",this.m=new gt,this.Od=new Si,this.Kc=new Pi,this.ed=new Ts,this.Qa=new ki,this.Ic=this.$c=this.Aa=0,this.D=new qs,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,gt),this.ia=0,this.pb=s(4,Rs),this.Pa=new Ds,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new yo),this.Hd=0,this.rb=Array(new bo),this.sb=0,this.wa=Array(new Ii),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 ua),this.L=this.aa=0,this.gd=u([4,2],Ii),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 Fi(){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 zs(){var a=new Us;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,Ea||(Ea=xo)),a}function De(a,l,v){return a.a==0&&(a.a=l,a.sc=v,a.cb=0),0}function wo(a,l,v){return 3<=v&&a[l+0]==157&&a[l+1]==1&&a[l+2]==42}function Ao(a,l){if(a==null)return 0;if(a.a=0,a.sc="OK",l==null)return De(a,2,"null VP8Io passed to VP8GetHeaders()");var v=l.data,b=l.w,S=l.ha;if(4>S)return De(a,7,"Truncated header.");var j=v[b+0]|v[b+1]<<8|v[b+2]<<16,O=a.Od;if(O.Rb=!(1&j),O.td=j>>1&7,O.yd=j>>4&1,O.ub=j>>5,3<O.td)return De(a,3,"Incorrect keyframe parameters.");if(!O.yd)return De(a,4,"Frame not displayable.");b+=3,S-=3;var D=a.Kc;if(O.Rb){if(7>S)return De(a,7,"cannot parse picture header");if(!wo(v,b,S))return De(a,3,"Bad code word");D.c=16383&(v[b+4]<<8|v[b+3]),D.Td=v[b+4]>>6,D.i=16383&(v[b+6]<<8|v[b+5]),D.Ud=v[b+6]>>6,b+=7,S-=7,a.za=D.c+15>>4,a.Ub=D.i+15>>4,l.width=D.c,l.height=D.i,l.Da=0,l.j=0,l.v=0,l.va=l.width,l.o=l.height,l.da=0,l.ib=l.width,l.hb=l.height,l.U=l.width,l.T=l.height,o((j=a.Pa).jb,0,255,j.jb.length),t((j=a.Qa)!=null),j.Cb=0,j.Bb=0,j.Fb=1,o(j.Zb,0,0,j.Zb.length),o(j.Lb,0,0,j.Lb)}if(O.ub>S)return De(a,7,"bad partition length");Y(j=a.m,v,b,O.ub),b+=O.ub,S-=O.ub,O.Rb&&(D.Ld=lt(j),D.Kd=lt(j)),D=a.Qa;var T,V=a.Pa;if(t(j!=null),t(D!=null),D.Cb=lt(j),D.Cb){if(D.Bb=lt(j),lt(j)){for(D.Fb=lt(j),T=0;4>T;++T)D.Zb[T]=lt(j)?I(j,7):0;for(T=0;4>T;++T)D.Lb[T]=lt(j)?I(j,6):0}if(D.Bb)for(T=0;3>T;++T)V.jb[T]=lt(j)?E(j,8):255}else D.Bb=0;if(j.Ka)return De(a,3,"cannot parse segment header");if((D=a.ed).zd=lt(j),D.Tb=E(j,6),D.wb=E(j,3),D.Pc=lt(j),D.Pc&&lt(j)){for(V=0;4>V;++V)lt(j)&&(D.vd[V]=I(j,6));for(V=0;4>V;++V)lt(j)&&(D.od[V]=I(j,6))}if(a.L=D.Tb==0?0:D.zd?1:2,j.Ka)return De(a,3,"cannot parse filter header");var rt=S;if(S=T=b,b=T+rt,D=rt,a.Xb=(1<<E(a.m,2))-1,rt<3*(V=a.Xb))v=7;else{for(T+=3*V,D-=3*V,rt=0;rt<V;++rt){var ft=v[S+0]|v[S+1]<<8|v[S+2]<<16;ft>D&&(ft=D),Y(a.Jc[+rt],v,T,ft),T+=ft,D-=ft,S+=3}Y(a.Jc[+V],v,T,D),v=T<b?0:5}if(v!=0)return De(a,v,"cannot parse partitions");for(v=E(T=a.m,7),S=lt(T)?I(T,4):0,b=lt(T)?I(T,4):0,D=lt(T)?I(T,4):0,V=lt(T)?I(T,4):0,T=lt(T)?I(T,4):0,rt=a.Qa,ft=0;4>ft;++ft){if(rt.Cb){var ht=rt.Zb[ft];rt.Fb||(ht+=v)}else{if(0<ft){a.pb[ft]=a.pb[0];continue}ht=v}var ot=a.pb[ft];ot.Sc[0]=du[Ln(ht+S,127)],ot.Sc[1]=pu[Ln(ht+0,127)],ot.Eb[0]=2*du[Ln(ht+b,127)],ot.Eb[1]=101581*pu[Ln(ht+D,127)]>>16,8>ot.Eb[1]&&(ot.Eb[1]=8),ot.Qc[0]=du[Ln(ht+V,117)],ot.Qc[1]=pu[Ln(ht+T,127)],ot.lc=ht+T}if(!O.Rb)return De(a,4,"Not a key frame.");for(lt(j),O=a.Pa,v=0;4>v;++v){for(S=0;8>S;++S)for(b=0;3>b;++b)for(D=0;11>D;++D)V=ut(j,If[v][S][b][D])?E(j,8):Pf[v][S][b][D],O.Wc[v][S].Yb[b][D]=V;for(S=0;17>S;++S)O.Xc[v][S]=O.Wc[v][Ff[S]]}return a.kc=lt(j),a.kc&&(a.Bd=E(j,8)),a.cb=1}function xo(a,l,v,b,S,j,O){var D=l[S].Yb[v];for(v=0;16>S;++S){if(!ut(a,D[v+0]))return S;for(;!ut(a,D[v+1]);)if(D=l[++S].Yb[0],v=0,S==16)return 16;var T=l[S+1].Yb;if(ut(a,D[v+2])){var V=a,rt=0;if(ut(V,(ht=D)[(ft=v)+3]))if(ut(V,ht[ft+6])){for(D=0,ft=2*(rt=ut(V,ht[ft+8]))+(ht=ut(V,ht[ft+9+rt])),rt=0,ht=_f[ft];ht[D];++D)rt+=rt+ut(V,ht[D]);rt+=3+(8<<ft)}else ut(V,ht[ft+7])?(rt=7+2*ut(V,165),rt+=ut(V,145)):rt=5+ut(V,159);else rt=ut(V,ht[ft+4])?3+ut(V,ht[ft+5]):2;D=T[2]}else rt=1,D=T[1];T=O+Sf[S],0>(V=a).b&&st(V);var ft,ht=V.b,ot=(ft=V.Ca>>1)-(V.I>>ht)>>31;--V.b,V.Ca+=ot,V.Ca|=1,V.I-=(ft+1&ot)<<ht,j[T]=((rt^ot)-ot)*b[(0<S)+0]}return 16}function la(a){var l=a.rb[a.sb-1];l.la=0,l.Na=0,o(a.zc,0,0,a.zc.length),a.ja=0}function Hs(a,l){if(a==null)return 0;if(l==null)return De(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!Ao(a,l))return 0;if(t(a.cb),l.ac==null||l.ac(l)){l.ob&&(a.L=0);var v=Zo[a.L];if(a.L==2?(a.yb=0,a.zb=0):(a.yb=l.v-v>>4,a.zb=l.j-v>>4,0>a.yb&&(a.yb=0),0>a.zb&&(a.zb=0)),a.Va=l.o+15+v>>4,a.Hb=l.va+15+v>>4,a.Hb>a.za&&(a.Hb=a.za),a.Va>a.Ub&&(a.Va=a.Ub),0<a.L){var b=a.ed;for(v=0;4>v;++v){var S;if(a.Qa.Cb){var j=a.Qa.Lb[v];a.Qa.Fb||(j+=b.Tb)}else j=b.Tb;for(S=0;1>=S;++S){var O=a.gd[v][S],D=j;if(b.Pc&&(D+=b.vd[0],S&&(D+=b.od[0])),0<(D=0>D?0:63<D?63:D)){var T=D;0<b.wb&&(T=4<b.wb?T>>2:T>>1)>9-b.wb&&(T=9-b.wb),1>T&&(T=1),O.dd=T,O.tc=2*D+T,O.ld=40<=D?2:15<=D?1:0}else O.tc=0;O.La=S}}}v=0}else De(a,6,"Frame setup failed"),v=a.a;if(v=v==0){if(v){a.$c=0,0<a.Aa||(a.Ic=Hf);t:{v=a.Ic,b=4*(T=a.za);var V=32*T,rt=T+1,ft=0<a.L?T*(0<a.Aa?2:1):0,ht=(a.Aa==2?2:1)*T;if((O=b+832+(S=3*(16*v+Zo[a.L])/2*V)+(j=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=O)v=0;else{if(O>a.Vb){if(a.Vb=0,a.Ec=r(O),a.Fc=0,a.Ec==null){v=De(a,1,"no memory during frame initialization.");break t}a.Vb=O}O=a.Ec,D=a.Fc,a.Ac=O,a.Bc=D,D+=b,a.Gd=s(V,yo),a.Hd=0,a.rb=s(rt+1,bo),a.sb=1,a.wa=ft?s(ft,Ii):null,a.Y=0,a.D.Nb=0,a.D.wa=a.wa,a.D.Y=a.Y,0<a.Aa&&(a.D.Y+=T),t(!0),a.oc=O,a.pc=D,D+=832,a.ya=s(ht,ua),a.aa=0,a.D.ya=a.ya,a.D.aa=a.aa,a.Aa==2&&(a.D.aa+=T),a.R=16*T,a.B=8*T,T=(V=Zo[a.L])*a.R,V=V/2*a.B,a.sa=O,a.ta=D+T,a.qa=a.sa,a.ra=a.ta+16*v*a.R+V,a.Ha=a.qa,a.Ia=a.ra+8*v*a.B+V,a.$c=0,D+=S,a.mb=j?O:null,a.nb=j?D:null,t(D+j<=a.Fc+a.Vb),la(a),o(a.Ac,a.Bc,0,b),v=1}}if(v){if(l.ka=0,l.y=a.sa,l.O=a.ta,l.f=a.qa,l.N=a.ra,l.ea=a.Ha,l.Vd=a.Ia,l.fa=a.R,l.Rc=a.B,l.F=null,l.J=0,!Uo){for(v=-255;255>=v;++v)Ge[255+v]=0>v?-v:v;for(v=-1020;1020>=v;++v)xr[1020+v]=-128>v?-128:127<v?127:v;for(v=-112;112>=v;++v)Ca[112+v]=-16>v?-16:15<v?15:v;for(v=-255;510>=v;++v)Qi[255+v]=0>v?0:255<v?255:v;Uo=1}Gi=Vs,Ar=Ws,ka=No,fn=Gs,En=_o,Te=Lo,Vi=ga,qo=ti,Ia=au,ri=va,ii=iu,Dr=Bi,ai=ma,Yi=Oo,oi=jo,Tr=fr,Fa=br,jn=ru,Xn[0]=cr,Xn[1]=Ys,Xn[2]=Xs,Xn[3]=Ks,Xn[4]=ko,Xn[5]=Oi,Xn[6]=Io,Xn[7]=ha,Xn[8]=tu,Xn[9]=$s,Rr[0]=So,Rr[1]=Js,Rr[2]=mr,Rr[3]=Ei,Rr[4]=sn,Rr[5]=Zs,Rr[6]=Po,Lr[0]=Er,Lr[1]=Qs,Lr[2]=eu,Lr[3]=da,Lr[4]=$r,Lr[5]=nu,Lr[6]=pa,v=1}else v=0}v&&(v=function(ot,At){for(ot.M=0;ot.M<ot.Va;++ot.M){var pt,it=ot.Jc[ot.M&ot.Xb],at=ot.m,mt=ot;for(pt=0;pt<mt.za;++pt){var Lt=at,yt=mt,Dt=yt.Ac,Et=yt.Bc+4*pt,Gt=yt.zc,Ot=yt.ya[yt.aa+pt];if(yt.Qa.Bb?Ot.$b=ut(Lt,yt.Pa.jb[0])?2+ut(Lt,yt.Pa.jb[2]):ut(Lt,yt.Pa.jb[1]):Ot.$b=0,yt.kc&&(Ot.Ad=ut(Lt,yt.Bd)),Ot.Za=!ut(Lt,145)+0,Ot.Za){var de=Ot.Ob,ve=0;for(yt=0;4>yt;++yt){var fe,oe=Gt[0+yt];for(fe=0;4>fe;++fe){oe=kf[Dt[Et+fe]][oe];for(var Le=zl[ut(Lt,oe[0])];0<Le;)Le=zl[2*Le+ut(Lt,oe[Le])];oe=-Le,Dt[Et+fe]=oe}i(de,ve,Dt,Et,4),ve+=4,Gt[0+yt]=oe}}else oe=ut(Lt,156)?ut(Lt,128)?1:3:ut(Lt,163)?2:0,Ot.Ob[0]=oe,o(Dt,Et,oe,4),o(Gt,0,oe,4);Ot.Dd=ut(Lt,142)?ut(Lt,114)?ut(Lt,183)?1:3:2:0}if(mt.m.Ka)return De(ot,7,"Premature end-of-partition0 encountered.");for(;ot.ja<ot.za;++ot.ja){if(mt=it,Lt=(at=ot).rb[at.sb-1],Dt=at.rb[at.sb+at.ja],pt=at.ya[at.aa+at.ja],Et=at.kc?pt.Ad:0)Lt.la=Dt.la=0,pt.Za||(Lt.Na=Dt.Na=0),pt.Hc=0,pt.Gc=0,pt.ia=0;else{var we,re;if(Lt=Dt,Dt=mt,Et=at.Pa.Xc,Gt=at.ya[at.aa+at.ja],Ot=at.pb[Gt.$b],yt=Gt.ad,de=0,ve=at.rb[at.sb-1],oe=fe=0,o(yt,de,0,384),Gt.Za)var ze=0,yn=Et[3];else{Le=r(16);var He=Lt.Na+ve.Na;if(He=Ea(Dt,Et[1],He,Ot.Eb,0,Le,0),Lt.Na=ve.Na=(0<He)+0,1<He)Gi(Le,0,yt,de);else{var wn=Le[0]+3>>3;for(Le=0;256>Le;Le+=16)yt[de+Le]=wn}ze=1,yn=Et[0]}var me=15&Lt.la,_n=15&ve.la;for(Le=0;4>Le;++Le){var Sn=1&_n;for(wn=re=0;4>wn;++wn)me=me>>1|(Sn=(He=Ea(Dt,yn,He=Sn+(1&me),Ot.Sc,ze,yt,de))>ze)<<7,re=re<<2|(3<He?3:1<He?2:yt[de+0]!=0),de+=16;me>>=4,_n=_n>>1|Sn<<7,fe=(fe<<8|re)>>>0}for(yn=me,ze=_n>>4,we=0;4>we;we+=2){for(re=0,me=Lt.la>>4+we,_n=ve.la>>4+we,Le=0;2>Le;++Le){for(Sn=1&_n,wn=0;2>wn;++wn)He=Sn+(1&me),me=me>>1|(Sn=0<(He=Ea(Dt,Et[2],He,Ot.Qc,0,yt,de)))<<3,re=re<<2|(3<He?3:1<He?2:yt[de+0]!=0),de+=16;me>>=2,_n=_n>>1|Sn<<5}oe|=re<<4*we,yn|=me<<4<<we,ze|=(240&_n)<<we}Lt.la=yn,ve.la=ze,Gt.Hc=fe,Gt.Gc=oe,Gt.ia=43690&oe?0:Ot.ia,Et=!(fe|oe)}if(0<at.L&&(at.wa[at.Y+at.ja]=at.gd[pt.$b][pt.Za],at.wa[at.Y+at.ja].La|=!Et),mt.Ka)return De(ot,7,"Premature end-of-file encountered.")}if(la(ot),at=At,mt=1,pt=(it=ot).D,Lt=0<it.L&&it.M>=it.zb&&it.M<=it.Va,it.Aa==0)t:{if(pt.M=it.M,pt.uc=Lt,La(it,pt),mt=1,pt=(re=it.D).Nb,Lt=(oe=Zo[it.L])*it.R,Dt=oe/2*it.B,Le=16*pt*it.R,wn=8*pt*it.B,Et=it.sa,Gt=it.ta-Lt+Le,Ot=it.qa,yt=it.ra-Dt+wn,de=it.Ha,ve=it.Ia-Dt+wn,_n=(me=re.M)==0,fe=me>=it.Va-1,it.Aa==2&&La(it,re),re.uc)for(Sn=(He=it).D.M,t(He.D.uc),re=He.yb;re<He.Hb;++re){ze=re,yn=Sn;var Ze=(tn=(je=He).D).Nb;we=je.R;var tn=tn.wa[tn.Y+ze],hn=je.sa,Dn=je.ta+16*Ze*we+16*ze,dr=tn.dd,Xe=tn.tc;if(Xe!=0)if(t(3<=Xe),je.L==1)0<ze&&Tr(hn,Dn,we,Xe+4),tn.La&&jn(hn,Dn,we,Xe),0<yn&&oi(hn,Dn,we,Xe+4),tn.La&&Fa(hn,Dn,we,Xe);else{var Nr=je.B,si=je.qa,Ji=je.ra+8*Ze*Nr+8*ze,Ur=je.Ha,je=je.Ia+8*Ze*Nr+8*ze;Ze=tn.ld,0<ze&&(qo(hn,Dn,we,Xe+4,dr,Ze),ri(si,Ji,Ur,je,Nr,Xe+4,dr,Ze)),tn.La&&(Dr(hn,Dn,we,Xe,dr,Ze),Yi(si,Ji,Ur,je,Nr,Xe,dr,Ze)),0<yn&&(Vi(hn,Dn,we,Xe+4,dr,Ze),Ia(si,Ji,Ur,je,Nr,Xe+4,dr,Ze)),tn.La&&(ii(hn,Dn,we,Xe,dr,Ze),ai(si,Ji,Ur,je,Nr,Xe,dr,Ze))}}if(it.ia&&alert("todo:DitherRow"),at.put!=null){if(re=16*me,me=16*(me+1),_n?(at.y=it.sa,at.O=it.ta+Le,at.f=it.qa,at.N=it.ra+wn,at.ea=it.Ha,at.W=it.Ia+wn):(re-=oe,at.y=Et,at.O=Gt,at.f=Ot,at.N=yt,at.ea=de,at.W=ve),fe||(me-=oe),me>at.o&&(me=at.o),at.F=null,at.J=null,it.Fa!=null&&0<it.Fa.length&&re<me&&(at.J=Aa(it,at,re,me-re),at.F=it.mb,at.F==null&&at.F.length==0)){mt=De(it,3,"Could not decode alpha data.");break t}re<at.j&&(oe=at.j-re,re=at.j,t(!(1&oe)),at.O+=it.R*oe,at.N+=it.B*(oe>>1),at.W+=it.B*(oe>>1),at.F!=null&&(at.J+=at.width*oe)),re<me&&(at.O+=at.v,at.N+=at.v>>1,at.W+=at.v>>1,at.F!=null&&(at.J+=at.v),at.ka=re-at.j,at.U=at.va-at.v,at.T=me-re,mt=at.put(at))}pt+1!=it.Ic||fe||(i(it.sa,it.ta-Lt,Et,Gt+16*it.R,Lt),i(it.qa,it.ra-Dt,Ot,yt+8*it.B,Dt),i(it.Ha,it.Ia-Dt,de,ve+8*it.B,Dt))}if(!mt)return De(ot,6,"Output aborted.")}return 1}(a,l)),l.bc!=null&&l.bc(l),v&=1}return v?(a.cb=0,v):0}function Qn(a,l,v,b,S){S=a[l+v+32*b]+(S>>3),a[l+v+32*b]=-256&S?0>S?0:255:S}function Ci(a,l,v,b,S,j){Qn(a,l,0,v,b+S),Qn(a,l,1,v,b+j),Qn(a,l,2,v,b-j),Qn(a,l,3,v,b-S)}function vn(a){return(20091*a>>16)+a}function ca(a,l,v,b){var S,j=0,O=r(16);for(S=0;4>S;++S){var D=a[l+0]+a[l+8],T=a[l+0]-a[l+8],V=(35468*a[l+4]>>16)-vn(a[l+12]),rt=vn(a[l+4])+(35468*a[l+12]>>16);O[j+0]=D+rt,O[j+1]=T+V,O[j+2]=T-V,O[j+3]=D-rt,j+=4,l++}for(S=j=0;4>S;++S)D=(a=O[j+0]+4)+O[j+8],T=a-O[j+8],V=(35468*O[j+4]>>16)-vn(O[j+12]),Qn(v,b,0,0,D+(rt=vn(O[j+4])+(35468*O[j+12]>>16))),Qn(v,b,1,0,T+V),Qn(v,b,2,0,T-V),Qn(v,b,3,0,D-rt),j++,b+=32}function Lo(a,l,v,b){var S=a[l+0]+4,j=35468*a[l+4]>>16,O=vn(a[l+4]),D=35468*a[l+1]>>16;Ci(v,b,0,S+O,a=vn(a[l+1]),D),Ci(v,b,1,S+j,a,D),Ci(v,b,2,S-j,a,D),Ci(v,b,3,S-O,a,D)}function Ws(a,l,v,b,S){ca(a,l,v,b),S&&ca(a,l+16,v,b+4)}function No(a,l,v,b){Ar(a,l+0,v,b,1),Ar(a,l+32,v,b+128,1)}function Gs(a,l,v,b){var S;for(a=a[l+0]+4,S=0;4>S;++S)for(l=0;4>l;++l)Qn(v,b,l,S,a)}function _o(a,l,v,b){a[l+0]&&fn(a,l+0,v,b),a[l+16]&&fn(a,l+16,v,b+4),a[l+32]&&fn(a,l+32,v,b+128),a[l+48]&&fn(a,l+48,v,b+128+4)}function Vs(a,l,v,b){var S,j=r(16);for(S=0;4>S;++S){var O=a[l+0+S]+a[l+12+S],D=a[l+4+S]+a[l+8+S],T=a[l+4+S]-a[l+8+S],V=a[l+0+S]-a[l+12+S];j[0+S]=O+D,j[8+S]=O-D,j[4+S]=V+T,j[12+S]=V-T}for(S=0;4>S;++S)O=(a=j[0+4*S]+3)+j[3+4*S],D=j[1+4*S]+j[2+4*S],T=j[1+4*S]-j[2+4*S],V=a-j[3+4*S],v[b+0]=O+D>>3,v[b+16]=V+T>>3,v[b+32]=O-D>>3,v[b+48]=V-T>>3,b+=64}function fa(a,l,v){var b,S=l-32,j=Nn,O=255-a[S-1];for(b=0;b<v;++b){var D,T=j,V=O+a[l-1];for(D=0;D<v;++D)a[l+D]=T[V+a[S+D]];l+=32}}function Ys(a,l){fa(a,l,4)}function Qs(a,l){fa(a,l,8)}function Js(a,l){fa(a,l,16)}function mr(a,l){var v;for(v=0;16>v;++v)i(a,l+32*v,a,l-32,16)}function Ei(a,l){var v;for(v=16;0<v;--v)o(a,l,a[l-1],16),l+=32}function ji(a,l,v){var b;for(b=0;16>b;++b)o(l,v+32*b,a,16)}function So(a,l){var v,b=16;for(v=0;16>v;++v)b+=a[l-1+32*v]+a[l+v-32];ji(b>>5,a,l)}function sn(a,l){var v,b=8;for(v=0;16>v;++v)b+=a[l-1+32*v];ji(b>>4,a,l)}function Zs(a,l){var v,b=8;for(v=0;16>v;++v)b+=a[l+v-32];ji(b>>4,a,l)}function Po(a,l){ji(128,a,l)}function Kt(a,l,v){return a+2*l+v+2>>2}function Xs(a,l){var v,b=l-32;for(b=new Uint8Array([Kt(a[b-1],a[b+0],a[b+1]),Kt(a[b+0],a[b+1],a[b+2]),Kt(a[b+1],a[b+2],a[b+3]),Kt(a[b+2],a[b+3],a[b+4])]),v=0;4>v;++v)i(a,l+32*v,b,0,b.length)}function Ks(a,l){var v=a[l-1],b=a[l-1+32],S=a[l-1+64],j=a[l-1+96];wt(a,l+0,16843009*Kt(a[l-1-32],v,b)),wt(a,l+32,16843009*Kt(v,b,S)),wt(a,l+64,16843009*Kt(b,S,j)),wt(a,l+96,16843009*Kt(S,j,j))}function cr(a,l){var v,b=4;for(v=0;4>v;++v)b+=a[l+v-32]+a[l-1+32*v];for(b>>=3,v=0;4>v;++v)o(a,l+32*v,b,4)}function ko(a,l){var v=a[l-1+0],b=a[l-1+32],S=a[l-1+64],j=a[l-1-32],O=a[l+0-32],D=a[l+1-32],T=a[l+2-32],V=a[l+3-32];a[l+0+96]=Kt(b,S,a[l-1+96]),a[l+1+96]=a[l+0+64]=Kt(v,b,S),a[l+2+96]=a[l+1+64]=a[l+0+32]=Kt(j,v,b),a[l+3+96]=a[l+2+64]=a[l+1+32]=a[l+0+0]=Kt(O,j,v),a[l+3+64]=a[l+2+32]=a[l+1+0]=Kt(D,O,j),a[l+3+32]=a[l+2+0]=Kt(T,D,O),a[l+3+0]=Kt(V,T,D)}function Io(a,l){var v=a[l+1-32],b=a[l+2-32],S=a[l+3-32],j=a[l+4-32],O=a[l+5-32],D=a[l+6-32],T=a[l+7-32];a[l+0+0]=Kt(a[l+0-32],v,b),a[l+1+0]=a[l+0+32]=Kt(v,b,S),a[l+2+0]=a[l+1+32]=a[l+0+64]=Kt(b,S,j),a[l+3+0]=a[l+2+32]=a[l+1+64]=a[l+0+96]=Kt(S,j,O),a[l+3+32]=a[l+2+64]=a[l+1+96]=Kt(j,O,D),a[l+3+64]=a[l+2+96]=Kt(O,D,T),a[l+3+96]=Kt(D,T,T)}function Oi(a,l){var v=a[l-1+0],b=a[l-1+32],S=a[l-1+64],j=a[l-1-32],O=a[l+0-32],D=a[l+1-32],T=a[l+2-32],V=a[l+3-32];a[l+0+0]=a[l+1+64]=j+O+1>>1,a[l+1+0]=a[l+2+64]=O+D+1>>1,a[l+2+0]=a[l+3+64]=D+T+1>>1,a[l+3+0]=T+V+1>>1,a[l+0+96]=Kt(S,b,v),a[l+0+64]=Kt(b,v,j),a[l+0+32]=a[l+1+96]=Kt(v,j,O),a[l+1+32]=a[l+2+96]=Kt(j,O,D),a[l+2+32]=a[l+3+96]=Kt(O,D,T),a[l+3+32]=Kt(D,T,V)}function ha(a,l){var v=a[l+0-32],b=a[l+1-32],S=a[l+2-32],j=a[l+3-32],O=a[l+4-32],D=a[l+5-32],T=a[l+6-32],V=a[l+7-32];a[l+0+0]=v+b+1>>1,a[l+1+0]=a[l+0+64]=b+S+1>>1,a[l+2+0]=a[l+1+64]=S+j+1>>1,a[l+3+0]=a[l+2+64]=j+O+1>>1,a[l+0+32]=Kt(v,b,S),a[l+1+32]=a[l+0+96]=Kt(b,S,j),a[l+2+32]=a[l+1+96]=Kt(S,j,O),a[l+3+32]=a[l+2+96]=Kt(j,O,D),a[l+3+64]=Kt(O,D,T),a[l+3+96]=Kt(D,T,V)}function $s(a,l){var v=a[l-1+0],b=a[l-1+32],S=a[l-1+64],j=a[l-1+96];a[l+0+0]=v+b+1>>1,a[l+2+0]=a[l+0+32]=b+S+1>>1,a[l+2+32]=a[l+0+64]=S+j+1>>1,a[l+1+0]=Kt(v,b,S),a[l+3+0]=a[l+1+32]=Kt(b,S,j),a[l+3+32]=a[l+1+64]=Kt(S,j,j),a[l+3+64]=a[l+2+64]=a[l+0+96]=a[l+1+96]=a[l+2+96]=a[l+3+96]=j}function tu(a,l){var v=a[l-1+0],b=a[l-1+32],S=a[l-1+64],j=a[l-1+96],O=a[l-1-32],D=a[l+0-32],T=a[l+1-32],V=a[l+2-32];a[l+0+0]=a[l+2+32]=v+O+1>>1,a[l+0+32]=a[l+2+64]=b+v+1>>1,a[l+0+64]=a[l+2+96]=S+b+1>>1,a[l+0+96]=j+S+1>>1,a[l+3+0]=Kt(D,T,V),a[l+2+0]=Kt(O,D,T),a[l+1+0]=a[l+3+32]=Kt(v,O,D),a[l+1+32]=a[l+3+64]=Kt(b,v,O),a[l+1+64]=a[l+3+96]=Kt(S,b,v),a[l+1+96]=Kt(j,S,b)}function eu(a,l){var v;for(v=0;8>v;++v)i(a,l+32*v,a,l-32,8)}function da(a,l){var v;for(v=0;8>v;++v)o(a,l,a[l-1],8),l+=32}function Kr(a,l,v){var b;for(b=0;8>b;++b)o(l,v+32*b,a,8)}function Er(a,l){var v,b=8;for(v=0;8>v;++v)b+=a[l+v-32]+a[l-1+32*v];Kr(b>>4,a,l)}function nu(a,l){var v,b=4;for(v=0;8>v;++v)b+=a[l+v-32];Kr(b>>3,a,l)}function $r(a,l){var v,b=4;for(v=0;8>v;++v)b+=a[l-1+32*v];Kr(b>>3,a,l)}function pa(a,l){Kr(128,a,l)}function Mi(a,l,v){var b=a[l-v],S=a[l+0],j=3*(S-b)+uu[1020+a[l-2*v]-a[l+v]],O=zo[112+(j+4>>3)];a[l-v]=Nn[255+b+zo[112+(j+3>>3)]],a[l+0]=Nn[255+S-O]}function Fo(a,l,v,b){var S=a[l+0],j=a[l+v];return Mn[255+a[l-2*v]-a[l-v]]>b||Mn[255+j-S]>b}function Co(a,l,v,b){return 4*Mn[255+a[l-v]-a[l+0]]+Mn[255+a[l-2*v]-a[l+v]]<=b}function Eo(a,l,v,b,S){var j=a[l-3*v],O=a[l-2*v],D=a[l-v],T=a[l+0],V=a[l+v],rt=a[l+2*v],ft=a[l+3*v];return 4*Mn[255+D-T]+Mn[255+O-V]>b?0:Mn[255+a[l-4*v]-j]<=S&&Mn[255+j-O]<=S&&Mn[255+O-D]<=S&&Mn[255+ft-rt]<=S&&Mn[255+rt-V]<=S&&Mn[255+V-T]<=S}function jo(a,l,v,b){var S=2*b+1;for(b=0;16>b;++b)Co(a,l+b,v,S)&&Mi(a,l+b,v)}function fr(a,l,v,b){var S=2*b+1;for(b=0;16>b;++b)Co(a,l+b*v,1,S)&&Mi(a,l+b*v,1)}function br(a,l,v,b){var S;for(S=3;0<S;--S)jo(a,l+=4*v,v,b)}function ru(a,l,v,b){var S;for(S=3;0<S;--S)fr(a,l+=4,v,b)}function jr(a,l,v,b,S,j,O,D){for(j=2*j+1;0<S--;){if(Eo(a,l,v,j,O))if(Fo(a,l,v,D))Mi(a,l,v);else{var T=a,V=l,rt=v,ft=T[V-2*rt],ht=T[V-rt],ot=T[V+0],At=T[V+rt],pt=T[V+2*rt],it=27*(mt=uu[1020+3*(ot-ht)+uu[1020+ft-At]])+63>>7,at=18*mt+63>>7,mt=9*mt+63>>7;T[V-3*rt]=Nn[255+T[V-3*rt]+mt],T[V-2*rt]=Nn[255+ft+at],T[V-rt]=Nn[255+ht+it],T[V+0]=Nn[255+ot-it],T[V+rt]=Nn[255+At-at],T[V+2*rt]=Nn[255+pt-mt]}l+=b}}function Jn(a,l,v,b,S,j,O,D){for(j=2*j+1;0<S--;){if(Eo(a,l,v,j,O))if(Fo(a,l,v,D))Mi(a,l,v);else{var T=a,V=l,rt=v,ft=T[V-rt],ht=T[V+0],ot=T[V+rt],At=zo[112+((pt=3*(ht-ft))+4>>3)],pt=zo[112+(pt+3>>3)],it=At+1>>1;T[V-2*rt]=Nn[255+T[V-2*rt]+it],T[V-rt]=Nn[255+ft+pt],T[V+0]=Nn[255+ht-At],T[V+rt]=Nn[255+ot-it]}l+=b}}function ga(a,l,v,b,S,j){jr(a,l,v,1,16,b,S,j)}function ti(a,l,v,b,S,j){jr(a,l,1,v,16,b,S,j)}function iu(a,l,v,b,S,j){var O;for(O=3;0<O;--O)Jn(a,l+=4*v,v,1,16,b,S,j)}function Bi(a,l,v,b,S,j){var O;for(O=3;0<O;--O)Jn(a,l+=4,1,v,16,b,S,j)}function au(a,l,v,b,S,j,O,D){jr(a,l,S,1,8,j,O,D),jr(v,b,S,1,8,j,O,D)}function va(a,l,v,b,S,j,O,D){jr(a,l,1,S,8,j,O,D),jr(v,b,1,S,8,j,O,D)}function ma(a,l,v,b,S,j,O,D){Jn(a,l+4*S,S,1,8,j,O,D),Jn(v,b+4*S,S,1,8,j,O,D)}function Oo(a,l,v,b,S,j,O,D){Jn(a,l+4,1,S,8,j,O,D),Jn(v,b+4,1,S,8,j,O,D)}function Di(){this.ba=new An,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new he,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ba(){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 ya(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Mo(){this.ua=0,this.Wa=new K,this.vb=new K,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new F,this.yc=new L}function ou(){this.xb=this.a=0,this.l=new Fi,this.ca=new An,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _,this.Pb=0,this.wd=new _,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Mo,this.ab=0,this.gc=s(4,ya),this.Oc=0}function Ti(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Fi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ei(a,l,v,b,S,j,O){for(a=a==null?0:a[l+0],l=0;l<O;++l)S[j+l]=a+v[b+l]&255,a=S[j+l]}function wa(a,l,v,b,S,j,O){var D;if(a==null)ei(null,null,v,b,S,j,O);else for(D=0;D<O;++D)S[j+D]=a[l+D]+v[b+D]&255}function Or(a,l,v,b,S,j,O){if(a==null)ei(null,null,v,b,S,j,O);else{var D,T=a[l+0],V=T,rt=T;for(D=0;D<O;++D)V=rt+(T=a[l+D])-V,rt=v[b+D]+(-256&V?0>V?0:255:V)&255,V=T,S[j+D]=rt}}function Aa(a,l,v,b){var S=l.width,j=l.o;if(t(a!=null&&l!=null),0>v||0>=b||v+b>j)return null;if(!a.Cc){if(a.ga==null){var O;if(a.ga=new Ti,(O=a.ga==null)||(O=l.width*l.o,t(a.Gb.length==0),a.Gb=r(O),a.Uc=0,a.Gb==null?O=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,O=1),O=!O),!O){O=a.ga;var D=a.Fa,T=a.P,V=a.qc,rt=a.mb,ft=a.nb,ht=T+1,ot=V-1,At=O.l;if(t(D!=null&&rt!=null&&l!=null),qr[0]=null,qr[1]=ei,qr[2]=wa,qr[3]=Or,O.ca=rt,O.tb=ft,O.c=l.width,O.i=l.height,t(0<O.c&&0<O.i),1>=V)l=0;else if(O.$a=D[T+0]>>0&3,O.Z=D[T+0]>>2&3,O.Lc=D[T+0]>>4&3,T=D[T+0]>>6&3,0>O.$a||1<O.$a||4<=O.Z||1<O.Lc||T)l=0;else if(At.put=Qe,At.ac=Pe,At.bc=or,At.ma=O,At.width=l.width,At.height=l.height,At.Da=l.Da,At.v=l.v,At.va=l.va,At.j=l.j,At.o=l.o,O.$a)t:{t(O.$a==1),l=Fn();e:for(;;){if(l==null){l=0;break t}if(t(O!=null),O.mc=l,l.c=O.c,l.i=O.i,l.l=O.l,l.l.ma=O,l.l.width=O.c,l.l.height=O.i,l.a=0,X(l.m,D,ht,ot),!lr(O.c,O.i,1,l,null)||(l.ab==1&&l.gc[0].hc==3&&vr(l.s)?(O.ic=1,D=l.c*l.i,l.Ta=null,l.Ua=0,l.V=r(D),l.Ba=0,l.V==null?(l.a=1,l=0):l=1):(O.ic=0,l=Xr(l,O.c)),!l))break e;l=1;break t}O.mc=null,l=0}else l=ot>=O.c*O.i;O=!l}if(O)return null;a.ga.Lc!=1?a.Ga=0:b=j-v}t(a.ga!=null),t(v+b<=j);t:{if(l=(D=a.ga).c,j=D.l.o,D.$a==0){if(ht=a.rc,ot=a.Vc,At=a.Fa,T=a.P+1+v*l,V=a.mb,rt=a.nb+v*l,t(T<=a.P+a.qc),D.Z!=0)for(t(qr[D.Z]!=null),O=0;O<b;++O)qr[D.Z](ht,ot,At,T,V,rt,l),ht=V,ot=rt,rt+=l,T+=l;else for(O=0;O<b;++O)i(V,rt,At,T,l),ht=V,ot=rt,rt+=l,T+=l;a.rc=ht,a.Vc=ot}else{if(t(D.mc!=null),l=v+b,t((O=D.mc)!=null),t(l<=O.i),O.C>=l)l=1;else if(D.ic||ct(),D.ic){D=O.V,ht=O.Ba,ot=O.c;var pt=O.i,it=(At=1,T=O.$/ot,V=O.$%ot,rt=O.m,ft=O.s,O.$),at=ot*pt,mt=ot*l,Lt=ft.wc,yt=it<mt?qe(ft,V,T):null;t(it<=at),t(l<=pt),t(vr(ft));e:for(;;){for(;!rt.h&&it<mt;){if(V&Lt||(yt=qe(ft,V,T)),t(yt!=null),et(rt),256>(pt=gn(yt.G[0],yt.H[0],rt)))D[ht+it]=pt,++it,++V>=ot&&(V=0,++T<=l&&!(T%16)&&Vn(O,T));else{if(!(280>pt)){At=0;break e}pt=Wn(pt-256,rt);var Dt,Et=gn(yt.G[4],yt.H[4],rt);if(et(rt),!(it>=(Et=sr(ot,Et=Wn(Et,rt)))&&at-it>=pt)){At=0;break e}for(Dt=0;Dt<pt;++Dt)D[ht+it+Dt]=D[ht+it+Dt-Et];for(it+=pt,V+=pt;V>=ot;)V-=ot,++T<=l&&!(T%16)&&Vn(O,T);it<mt&&V&Lt&&(yt=qe(ft,V,T))}t(rt.h==q(rt))}Vn(O,T>l?l:T);break e}!At||rt.h&&it<at?(At=0,O.a=rt.h?5:3):O.$=it,l=At}else l=Yn(O,O.V,O.Ba,O.c,O.i,l,_i);if(!l){b=0;break t}}v+b>=j&&(a.Cc=1),b=1}if(!b)return null;if(a.Cc&&((b=a.ga)!=null&&(b.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+v*S}function h(a,l,v,b,S,j){for(;0<S--;){var O,D=a,T=l+(v?1:0),V=a,rt=l+(v?0:3);for(O=0;O<b;++O){var ft=V[rt+4*O];ft!=255&&(ft*=32897,D[T+4*O+0]=D[T+4*O+0]*ft>>23,D[T+4*O+1]=D[T+4*O+1]*ft>>23,D[T+4*O+2]=D[T+4*O+2]*ft>>23)}l+=j}}function P(a,l,v,b,S){for(;0<b--;){var j;for(j=0;j<v;++j){var O=a[l+2*j+0],D=15&(V=a[l+2*j+1]),T=4369*D,V=(240&V|V>>4)*T>>16;a[l+2*j+0]=(240&O|O>>4)*T>>16&240|(15&O|O<<4)*T>>16>>4&15,a[l+2*j+1]=240&V|D}l+=S}}function Z(a,l,v,b,S,j,O,D){var T,V,rt=255;for(V=0;V<S;++V){for(T=0;T<b;++T){var ft=a[l+T];j[O+4*T]=ft,rt&=ft}l+=v,O+=D}return rt!=255}function nt(a,l,v,b,S){var j;for(j=0;j<S;++j)v[b+j]=a[l+j]>>8}function ct(){On=h,Ne=P,_e=Z,Re=nt}function vt(a,l,v){x[a]=function(b,S,j,O,D,T,V,rt,ft,ht,ot,At,pt,it,at,mt,Lt){var yt,Dt=Lt-1>>1,Et=D[T+0]|V[rt+0]<<16,Gt=ft[ht+0]|ot[At+0]<<16;t(b!=null);var Ot=3*Et+Gt+131074>>2;for(l(b[S+0],255&Ot,Ot>>16,pt,it),j!=null&&(Ot=3*Gt+Et+131074>>2,l(j[O+0],255&Ot,Ot>>16,at,mt)),yt=1;yt<=Dt;++yt){var de=D[T+yt]|V[rt+yt]<<16,ve=ft[ht+yt]|ot[At+yt]<<16,fe=Et+de+Gt+ve+524296,oe=fe+2*(de+Gt)>>3;Ot=oe+Et>>1,Et=(fe=fe+2*(Et+ve)>>3)+de>>1,l(b[S+2*yt-1],255&Ot,Ot>>16,pt,it+(2*yt-1)*v),l(b[S+2*yt-0],255&Et,Et>>16,pt,it+(2*yt-0)*v),j!=null&&(Ot=fe+Gt>>1,Et=oe+ve>>1,l(j[O+2*yt-1],255&Ot,Ot>>16,at,mt+(2*yt-1)*v),l(j[O+2*yt+0],255&Et,Et>>16,at,mt+(2*yt+0)*v)),Et=de,Gt=ve}1&Lt||(Ot=3*Et+Gt+131074>>2,l(b[S+Lt-1],255&Ot,Ot>>16,pt,it+(Lt-1)*v),j!=null&&(Ot=3*Gt+Et+131074>>2,l(j[O+Lt-1],255&Ot,Ot>>16,at,mt+(Lt-1)*v)))}}function Nt(){Bn[Ho]=Ef,Bn[Wo]=Wl,Bn[Rl]=jf,Bn[Go]=Gl,Bn[Vo]=Vl,Bn[lu]=Yl,Bn[ql]=Of,Bn[cu]=Wl,Bn[fu]=Gl,Bn[Yo]=Vl,Bn[hu]=Yl}function Mt(a){return a&~Mf?0>a?0:255:a>>Ql}function Ht(a,l){return Mt((19077*a>>8)+(26149*l>>8)-14234)}function ee(a,l,v){return Mt((19077*a>>8)-(6419*l>>8)-(13320*v>>8)+8708)}function te(a,l){return Mt((19077*a>>8)+(33050*l>>8)-17685)}function ce(a,l,v,b,S){b[S+0]=Ht(a,v),b[S+1]=ee(a,l,v),b[S+2]=te(a,l)}function Ie(a,l,v,b,S){b[S+0]=te(a,l),b[S+1]=ee(a,l,v),b[S+2]=Ht(a,v)}function Ee(a,l,v,b,S){var j=ee(a,l,v);l=j<<3&224|te(a,l)>>3,b[S+0]=248&Ht(a,v)|j>>5,b[S+1]=l}function Ue(a,l,v,b,S){var j=240&te(a,l)|15;b[S+0]=240&Ht(a,v)|ee(a,l,v)>>4,b[S+1]=j}function un(a,l,v,b,S){b[S+0]=255,ce(a,l,v,b,S+1)}function Je(a,l,v,b,S){Ie(a,l,v,b,S),b[S+3]=255}function Zn(a,l,v,b,S){ce(a,l,v,b,S),b[S+3]=255}function Ln(a,l){return 0>a?0:a>l?l:a}function hr(a,l,v){x[a]=function(b,S,j,O,D,T,V,rt,ft){for(var ht=rt+(-2&ft)*v;rt!=ht;)l(b[S+0],j[O+0],D[T+0],V,rt),l(b[S+1],j[O+0],D[T+0],V,rt+v),S+=2,++O,++T,rt+=2*v;1&ft&&l(b[S+0],j[O+0],D[T+0],V,rt)}}function Bo(a,l,v){return v==0?a==0?l==0?6:5:l==0?4:0:v}function xa(a,l,v,b,S){switch(a>>>30){case 3:Ar(l,v,b,S,0);break;case 2:Te(l,v,b,S);break;case 1:fn(l,v,b,S)}}function La(a,l){var v,b,S=l.M,j=l.Nb,O=a.oc,D=a.pc+40,T=a.oc,V=a.pc+584,rt=a.oc,ft=a.pc+600;for(v=0;16>v;++v)O[D+32*v-1]=129;for(v=0;8>v;++v)T[V+32*v-1]=129,rt[ft+32*v-1]=129;for(0<S?O[D-1-32]=T[V-1-32]=rt[ft-1-32]=129:(o(O,D-32-1,127,21),o(T,V-32-1,127,9),o(rt,ft-32-1,127,9)),b=0;b<a.za;++b){var ht=l.ya[l.aa+b];if(0<b){for(v=-1;16>v;++v)i(O,D+32*v-4,O,D+32*v+12,4);for(v=-1;8>v;++v)i(T,V+32*v-4,T,V+32*v+4,4),i(rt,ft+32*v-4,rt,ft+32*v+4,4)}var ot=a.Gd,At=a.Hd+b,pt=ht.ad,it=ht.Hc;if(0<S&&(i(O,D-32,ot[At].y,0,16),i(T,V-32,ot[At].f,0,8),i(rt,ft-32,ot[At].ea,0,8)),ht.Za){var at=O,mt=D-32+16;for(0<S&&(b>=a.za-1?o(at,mt,ot[At].y[15],4):i(at,mt,ot[At+1].y,0,4)),v=0;4>v;v++)at[mt+128+v]=at[mt+256+v]=at[mt+384+v]=at[mt+0+v];for(v=0;16>v;++v,it<<=2)at=O,mt=D+Zl[v],Xn[ht.Ob[v]](at,mt),xa(it,pt,16*+v,at,mt)}else if(at=Bo(b,S,ht.Ob[0]),Rr[at](O,D),it!=0)for(v=0;16>v;++v,it<<=2)xa(it,pt,16*+v,O,D+Zl[v]);for(v=ht.Gc,at=Bo(b,S,ht.Dd),Lr[at](T,V),Lr[at](rt,ft),it=pt,at=T,mt=V,255&(ht=v>>0)&&(170&ht?ka(it,256,at,mt):En(it,256,at,mt)),ht=rt,it=ft,255&(v>>=8)&&(170&v?ka(pt,320,ht,it):En(pt,320,ht,it)),S<a.Ub-1&&(i(ot[At].y,0,O,D+480,16),i(ot[At].f,0,T,V+224,8),i(ot[At].ea,0,rt,ft+224,8)),v=8*j*a.B,ot=a.sa,At=a.ta+16*b+16*j*a.R,pt=a.qa,ht=a.ra+8*b+v,it=a.Ha,at=a.Ia+8*b+v,v=0;16>v;++v)i(ot,At+v*a.R,O,D+32*v,16);for(v=0;8>v;++v)i(pt,ht+v*a.B,T,V+32*v,8),i(it,at+v*a.B,rt,ft+32*v,8)}}function Ri(a,l,v,b,S,j,O,D,T){var V=[0],rt=[0],ft=0,ht=T!=null?T.kd:0,ot=T!=null?T:new ba;if(a==null||12>v)return 7;ot.data=a,ot.w=l,ot.ha=v,l=[l],v=[v],ot.gb=[ot.gb];t:{var At=l,pt=v,it=ot.gb;if(t(a!=null),t(pt!=null),t(it!=null),it[0]=0,12<=pt[0]&&!n(a,At[0],"RIFF")){if(n(a,At[0]+8,"WEBP")){it=3;break t}var at=Ft(a,At[0]+4);if(12>at||4294967286<at){it=3;break t}if(ht&&at>pt[0]-8){it=7;break t}it[0]=at,At[0]+=12,pt[0]-=12}it=0}if(it!=0)return it;for(at=0<ot.gb[0],v=v[0];;){t:{var mt=a;pt=l,it=v;var Lt=V,yt=rt,Dt=At=[0];if((Ot=ft=[ft])[0]=0,8>it[0])it=7;else{if(!n(mt,pt[0],"VP8X")){if(Ft(mt,pt[0]+4)!=10){it=3;break t}if(18>it[0]){it=7;break t}var Et=Ft(mt,pt[0]+8),Gt=1+St(mt,pt[0]+12);if(2147483648<=Gt*(mt=1+St(mt,pt[0]+15))){it=3;break t}Dt!=null&&(Dt[0]=Et),Lt!=null&&(Lt[0]=Gt),yt!=null&&(yt[0]=mt),pt[0]+=18,it[0]-=18,Ot[0]=1}it=0}}if(ft=ft[0],At=At[0],it!=0)return it;if(pt=!!(2&At),!at&&ft)return 3;if(j!=null&&(j[0]=!!(16&At)),O!=null&&(O[0]=pt),D!=null&&(D[0]=0),O=V[0],At=rt[0],ft&&pt&&T==null){it=0;break}if(4>v){it=7;break}if(at&&ft||!at&&!ft&&!n(a,l[0],"ALPH")){v=[v],ot.na=[ot.na],ot.P=[ot.P],ot.Sa=[ot.Sa];t:{Et=a,it=l,at=v;var Ot=ot.gb;Lt=ot.na,yt=ot.P,Dt=ot.Sa,Gt=22,t(Et!=null),t(at!=null),mt=it[0];var de=at[0];for(t(Lt!=null),t(Dt!=null),Lt[0]=null,yt[0]=null,Dt[0]=0;;){if(it[0]=mt,at[0]=de,8>de){it=7;break t}var ve=Ft(Et,mt+4);if(4294967286<ve){it=3;break t}var fe=8+ve+1&-2;if(Gt+=fe,0<Ot&&Gt>Ot){it=3;break t}if(!n(Et,mt,"VP8 ")||!n(Et,mt,"VP8L")){it=0;break t}if(de[0]<fe){it=7;break t}n(Et,mt,"ALPH")||(Lt[0]=Et,yt[0]=mt+8,Dt[0]=ve),mt+=fe,de-=fe}}if(v=v[0],ot.na=ot.na[0],ot.P=ot.P[0],ot.Sa=ot.Sa[0],it!=0)break}v=[v],ot.Ja=[ot.Ja],ot.xa=[ot.xa];t:if(Ot=a,it=l,at=v,Lt=ot.gb[0],yt=ot.Ja,Dt=ot.xa,Et=it[0],mt=!n(Ot,Et,"VP8 "),Gt=!n(Ot,Et,"VP8L"),t(Ot!=null),t(at!=null),t(yt!=null),t(Dt!=null),8>at[0])it=7;else{if(mt||Gt){if(Ot=Ft(Ot,Et+4),12<=Lt&&Ot>Lt-12){it=3;break t}if(ht&&Ot>at[0]-8){it=7;break t}yt[0]=Ot,it[0]+=8,at[0]-=8,Dt[0]=Gt}else Dt[0]=5<=at[0]&&Ot[Et+0]==47&&!(Ot[Et+4]>>5),yt[0]=at[0];it=0}if(v=v[0],ot.Ja=ot.Ja[0],ot.xa=ot.xa[0],l=l[0],it!=0)break;if(4294967286<ot.Ja)return 3;if(D==null||pt||(D[0]=ot.xa?2:1),O=[O],At=[At],ot.xa){if(5>v){it=7;break}D=O,ht=At,pt=j,a==null||5>v?a=0:5<=v&&a[l+0]==47&&!(a[l+4]>>5)?(at=[0],Ot=[0],Lt=[0],X(yt=new _,a,l,v),Qt(yt,at,Ot,Lt)?(D!=null&&(D[0]=at[0]),ht!=null&&(ht[0]=Ot[0]),pt!=null&&(pt[0]=Lt[0]),a=1):a=0):a=0}else{if(10>v){it=7;break}D=At,a==null||10>v||!wo(a,l+3,v-3)?a=0:(ht=a[l+0]|a[l+1]<<8|a[l+2]<<16,pt=16383&(a[l+7]<<8|a[l+6]),a=16383&(a[l+9]<<8|a[l+8]),1&ht||3<(ht>>1&7)||!(ht>>4&1)||ht>>5>=ot.Ja||!pt||!a?a=0:(O&&(O[0]=pt),D&&(D[0]=a),a=1))}if(!a||(O=O[0],At=At[0],ft&&(V[0]!=O||rt[0]!=At)))return 3;T!=null&&(T[0]=ot,T.offset=l-T.w,t(4294967286>l-T.w),t(T.offset==T.ha-v));break}return it==0||it==7&&ft&&T==null?(j!=null&&(j[0]|=ot.na!=null&&0<ot.na.length),b!=null&&(b[0]=O),S!=null&&(S[0]=At),0):it}function Na(a,l,v){var b=l.width,S=l.height,j=0,O=0,D=b,T=S;if(l.Da=a!=null&&0<a.Da,l.Da&&(D=a.cd,T=a.bd,j=a.v,O=a.j,11>v||(j&=-2,O&=-2),0>j||0>O||0>=D||0>=T||j+D>b||O+T>S))return 0;if(l.v=j,l.j=O,l.va=j+D,l.o=O+T,l.U=D,l.T=T,l.da=a!=null&&0<a.da,l.da){if(!Tt(D,T,v=[a.ib],j=[a.hb]))return 0;l.ib=v[0],l.hb=j[0]}return l.ob=a!=null&&a.ob,l.Kb=a==null||!a.Sd,l.da&&(l.ob=l.ib<3*b/4&&l.hb<3*S/4,l.Kb=0),1}function _a(a){if(a==null)return 2;if(11>a.S){var l=a.f.RGBA;l.fb+=(a.height-1)*l.A,l.A=-l.A}else l=a.f.kb,a=a.height,l.O+=(a-1)*l.fa,l.fa=-l.fa,l.N+=(a-1>>1)*l.Ab,l.Ab=-l.Ab,l.W+=(a-1>>1)*l.Db,l.Db=-l.Db,l.F!=null&&(l.J+=(a-1)*l.lb,l.lb=-l.lb);return 0}function qi(a,l,v,b){if(b==null||0>=a||0>=l)return 2;if(v!=null){if(v.Da){var S=v.cd,j=v.bd,O=-2&v.v,D=-2&v.j;if(0>O||0>D||0>=S||0>=j||O+S>a||D+j>l)return 2;a=S,l=j}if(v.da){if(!Tt(a,l,S=[v.ib],j=[v.hb]))return 2;a=S[0],l=j[0]}}b.width=a,b.height=l;t:{var T=b.width,V=b.height;if(a=b.S,0>=T||0>=V||!(a>=Ho&&13>a))a=2;else{if(0>=b.Rd&&b.sd==null){O=j=S=l=0;var rt=(D=T*Xl[a])*V;if(11>a||(j=(V+1)/2*(l=(T+1)/2),a==12&&(O=(S=T)*V)),(V=r(rt+2*j+O))==null){a=1;break t}b.sd=V,11>a?((T=b.f.RGBA).eb=V,T.fb=0,T.A=D,T.size=rt):((T=b.f.kb).y=V,T.O=0,T.fa=D,T.Fd=rt,T.f=V,T.N=0+rt,T.Ab=l,T.Cd=j,T.ea=V,T.W=0+rt+j,T.Db=l,T.Ed=j,a==12&&(T.F=V,T.J=0+rt+2*j),T.Tc=O,T.lb=S)}if(l=1,S=b.S,j=b.width,O=b.height,S>=Ho&&13>S)if(11>S)a=b.f.RGBA,l&=(D=Math.abs(a.A))*(O-1)+j<=a.size,l&=D>=j*Xl[S],l&=a.eb!=null;else{a=b.f.kb,D=(j+1)/2,rt=(O+1)/2,T=Math.abs(a.fa),V=Math.abs(a.Ab);var ft=Math.abs(a.Db),ht=Math.abs(a.lb),ot=ht*(O-1)+j;l&=T*(O-1)+j<=a.Fd,l&=V*(rt-1)+D<=a.Cd,l=(l&=ft*(rt-1)+D<=a.Ed)&T>=j&V>=D&ft>=D,l&=a.y!=null,l&=a.f!=null,l&=a.ea!=null,S==12&&(l&=ht>=j,l&=ot<=a.Tc,l&=a.F!=null)}else l=0;a=l?0:2}}return a!=0||v!=null&&v.fd&&(a=_a(b)),a}var $e=64,Ui=[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],zi=24,Hi=32,Sa=8,mn=[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];_t("Predictor0","PredictorAdd0"),x.Predictor0=function(){return 4278190080},x.Predictor1=function(a){return a},x.Predictor2=function(a,l,v){return l[v+0]},x.Predictor3=function(a,l,v){return l[v+1]},x.Predictor4=function(a,l,v){return l[v-1]},x.Predictor5=function(a,l,v){return kt(kt(a,l[v+1]),l[v+0])},x.Predictor6=function(a,l,v){return kt(a,l[v-1])},x.Predictor7=function(a,l,v){return kt(a,l[v+0])},x.Predictor8=function(a,l,v){return kt(l[v-1],l[v+0])},x.Predictor9=function(a,l,v){return kt(l[v+0],l[v+1])},x.Predictor10=function(a,l,v){return kt(kt(a,l[v-1]),kt(l[v+0],l[v+1]))},x.Predictor11=function(a,l,v){var b=l[v+0];return 0>=Ut(b>>24&255,a>>24&255,(l=l[v-1])>>24&255)+Ut(b>>16&255,a>>16&255,l>>16&255)+Ut(b>>8&255,a>>8&255,l>>8&255)+Ut(255&b,255&a,255&l)?b:a},x.Predictor12=function(a,l,v){var b=l[v+0];return(jt((a>>24&255)+(b>>24&255)-((l=l[v-1])>>24&255))<<24|jt((a>>16&255)+(b>>16&255)-(l>>16&255))<<16|jt((a>>8&255)+(b>>8&255)-(l>>8&255))<<8|jt((255&a)+(255&b)-(255&l)))>>>0},x.Predictor13=function(a,l,v){var b=l[v-1];return(Bt((a=kt(a,l[v+0]))>>24&255,b>>24&255)<<24|Bt(a>>16&255,b>>16&255)<<16|Bt(a>>8&255,b>>8&255)<<8|Bt(a>>0&255,b>>0&255))>>>0};var su=x.PredictorAdd0;x.PredictorAdd1=Zt,_t("Predictor2","PredictorAdd2"),_t("Predictor3","PredictorAdd3"),_t("Predictor4","PredictorAdd4"),_t("Predictor5","PredictorAdd5"),_t("Predictor6","PredictorAdd6"),_t("Predictor7","PredictorAdd7"),_t("Predictor8","PredictorAdd8"),_t("Predictor9","PredictorAdd9"),_t("Predictor10","PredictorAdd10"),_t("Predictor11","PredictorAdd11"),_t("Predictor12","PredictorAdd12"),_t("Predictor13","PredictorAdd13");var Pa=x.PredictorAdd2;Wt("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),Wt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var Do,Cn=x.ColorIndexInverseTransform,Wi=x.MapARGB,To=x.VP8LColorIndexInverseTransformAlpha,Ro=x.MapAlpha,Mr=x.VP8LPredictorsAdd=[];Mr.length=16,(x.VP8LPredictors=[]).length=16,(x.VP8LPredictorsAdd_C=[]).length=16,(x.VP8LPredictors_C=[]).length=16;var ni,bn,cn,Br,yr,wr,Gi,Ar,Te,ka,fn,En,Vi,qo,Ia,ri,ii,Dr,ai,Yi,oi,Tr,Fa,jn,On,Ne,_e,Re,Ge=r(511),xr=r(2041),Ca=r(225),Qi=r(767),Uo=0,uu=xr,zo=Ca,Nn=Qi,Mn=Ge,Ho=0,Wo=1,Rl=2,Go=3,Vo=4,lu=5,ql=6,cu=7,fu=8,Yo=9,hu=10,bf=[2,3,7],yf=[3,3,11],Ul=[280,256,256,256,40],wf=[0,1,1,1,0],Af=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],xf=[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],Lf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Nf=8,du=[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],pu=[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],Ea=null,_f=[[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]],Sf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],zl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Pf=[[[[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]]]],kf=[[[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]]],If=[[[[255,255,255,255,255,255,255,255,255,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]]]],Ff=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Rr=[],Xn=[],Lr=[],Cf=1,Hl=2,qr=[],Bn=[];vt("UpsampleRgbLinePair",ce,3),vt("UpsampleBgrLinePair",Ie,3),vt("UpsampleRgbaLinePair",Zn,4),vt("UpsampleBgraLinePair",Je,4),vt("UpsampleArgbLinePair",un,4),vt("UpsampleRgba4444LinePair",Ue,2),vt("UpsampleRgb565LinePair",Ee,2);var Ef=x.UpsampleRgbLinePair,jf=x.UpsampleBgrLinePair,Wl=x.UpsampleRgbaLinePair,Gl=x.UpsampleBgraLinePair,Vl=x.UpsampleArgbLinePair,Yl=x.UpsampleRgba4444LinePair,Of=x.UpsampleRgb565LinePair,Qo=16,Jo=1<<Qo-1,ja=-227,gu=482,Ql=6,Mf=(256<<Ql)-1,Jl=0,Bf=r(256),Df=r(256),Tf=r(256),Rf=r(256),qf=r(gu-ja),Uf=r(gu-ja);hr("YuvToRgbRow",ce,3),hr("YuvToBgrRow",Ie,3),hr("YuvToRgbaRow",Zn,4),hr("YuvToBgraRow",Je,4),hr("YuvToArgbRow",un,4),hr("YuvToRgba4444Row",Ue,2),hr("YuvToRgb565Row",Ee,2);var Zl=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Zo=[0,2,8],zf=[8,7,6,4,4,2,2,2,1,1,1,1],Hf=1;this.WebPDecodeRGBA=function(a,l,v,b,S){var j=Wo,O=new Di,D=new An;O.ba=D,D.S=j,D.width=[D.width],D.height=[D.height];var T=D.width,V=D.height,rt=new Ye;if(rt==null||a==null)var ft=2;else t(rt!=null),ft=Ri(a,l,v,rt.width,rt.height,rt.Pd,rt.Qd,rt.format,null);if(ft!=0?T=0:(T!=null&&(T[0]=rt.width[0]),V!=null&&(V[0]=rt.height[0]),T=1),T){D.width=D.width[0],D.height=D.height[0],b!=null&&(b[0]=D.width),S!=null&&(S[0]=D.height);t:{if(b=new Fi,(S=new ba).data=a,S.w=l,S.ha=v,S.kd=1,l=[0],t(S!=null),((a=Ri(S.data,S.w,S.ha,null,null,null,l,null,S))==0||a==7)&&l[0]&&(a=4),(l=a)==0){if(t(O!=null),b.data=S.data,b.w=S.w+S.offset,b.ha=S.ha-S.offset,b.put=Qe,b.ac=Pe,b.bc=or,b.ma=O,S.xa){if((a=Fn())==null){O=1;break t}if(function(ht,ot){var At=[0],pt=[0],it=[0];e:for(;;){if(ht==null)return 0;if(ot==null)return ht.a=2,0;if(ht.l=ot,ht.a=0,X(ht.m,ot.data,ot.w,ot.ha),!Qt(ht.m,At,pt,it)){ht.a=3;break e}if(ht.xb=Hl,ot.width=At[0],ot.height=pt[0],!lr(At[0],pt[0],1,ht,null))break e;return 1}return t(ht.a!=0),0}(a,b)){if(b=(l=qi(b.width,b.height,O.Oa,O.ba))==0){e:{b=a;n:for(;;){if(b==null){b=0;break e}if(t(b.s.yc!=null),t(b.s.Ya!=null),t(0<b.s.Wb),t((v=b.l)!=null),t((S=v.ma)!=null),b.xb!=0){if(b.ca=S.ba,b.tb=S.tb,t(b.ca!=null),!Na(S.Oa,v,Go)){b.a=2;break n}if(!Xr(b,v.width)||v.da)break n;if((v.da||le(b.ca.S))&&ct(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&ct()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!qt(b.s.vb,b.s.Wa.Xa)){b.a=1;break n}b.xb=0}if(!Yn(b,b.V,b.Ba,b.c,b.i,v.o,Ni))break n;S.Dc=b.Ma,b=1;break e}t(b.a!=0),b=0}b=!b}b&&(l=a.a)}else l=a.a}else{if((a=new zs)==null){O=1;break t}if(a.Fa=S.na,a.P=S.P,a.qc=S.Sa,Ao(a,b)){if((l=qi(b.width,b.height,O.Oa,O.ba))==0){if(a.Aa=0,v=O.Oa,t((S=a)!=null),v!=null){if(0<(T=0>(T=v.Md)?0:100<T?255:255*T/100)){for(V=rt=0;4>V;++V)12>(ft=S.pb[V]).lc&&(ft.ia=T*zf[0>ft.lc?0:ft.lc]>>3),rt|=ft.ia;rt&&(alert("todo:VP8InitRandom"),S.ia=1)}S.Ga=v.Id,100<S.Ga?S.Ga=100:0>S.Ga&&(S.Ga=0)}Hs(a,b)||(l=a.a)}}else l=a.a}l==0&&O.Oa!=null&&O.Oa.fd&&(l=_a(O.ba))}O=l}j=O!=0?null:11>j?D.f.RGBA.eb:D.f.kb.y}else j=null;return j};var Xl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function m(x,k){for(var H="",A=0;A<4;A++)H+=String.fromCharCode(x[k++]);return H}function d(x,k){return(x[k+0]<<0|x[k+1]<<8|x[k+2]<<16)>>>0}function p(x,k){return(x[k+0]<<0|x[k+1]<<8|x[k+2]<<16|x[k+3]<<24)>>>0}new c;var g=[0],f=[0],w=[],N=new c,C=e,y=function(x,k){var H={},A=0,L=!1,B=0,F=0;if(H.frames=[],!function(R,q,U,et){for(var st=0;st<et;st++)if(R[q+st]!=U.charCodeAt(st))return!0;return!1}(x,k,"RIFF",4)){var Y,E;for(p(x,k+=4),k+=8;k<x.length;){var I=m(x,k),X=p(x,k+=4);k+=4;var J=X+(1&X);switch(I){case"VP8 ":case"VP8L":H.frames[A]===void 0&&(H.frames[A]={}),(_=H.frames[A]).src_off=L?F:k-8,_.src_size=B+X+8,A++,L&&(L=!1,B=0,F=0);break;case"VP8X":(_=H.header={}).feature_flags=x[k];var tt=k+4;_.canvas_width=1+d(x,tt),tt+=3,_.canvas_height=1+d(x,tt),tt+=3;break;case"ALPH":L=!0,B=J+8,F=k-8;break;case"ANIM":(_=H.header).bgcolor=p(x,k),tt=k+4,_.loop_count=(Y=x)[(E=tt)+0]<<0|Y[E+1]<<8,tt+=2;break;case"ANMF":var gt,_;(_=H.frames[A]={}).offset_x=2*d(x,k),k+=3,_.offset_y=2*d(x,k),k+=3,_.width=1+d(x,k),k+=3,_.height=1+d(x,k),k+=3,_.duration=d(x,k),k+=3,gt=x[k++],_.dispose=1&gt,_.blend=gt>>1&1}I!="ANMF"&&(k+=J)}return H}}(C,0);y.response=C,y.rgbaoutput=!0,y.dataurl=!1;var M=y.header?y.header:null,z=y.frames?y.frames:null;if(M){M.loop_counter=M.loop_count,g=[M.canvas_height],f=[M.canvas_width];for(var G=0;G<z.length&&z[G].blend!=0;G++);}var $=z[0],W=N.WebPDecodeRGBA(C,$.src_off,$.src_size,f,g);$.rgba=W,$.imgwidth=f[0],$.imgheight=g[0];for(var Q=0;Q<f[0]*g[0]*4;Q++)w[Q]=W[Q];return this.width=f,this.height=g,this.data=w,this}(function(e){var t=function(){return typeof aa=="function"},n=function(g,f,w,N){var C=4,y=s;switch(N){case e.image_compression.FAST:C=1,y=r;break;case e.image_compression.MEDIUM:C=6,y=u;break;case e.image_compression.SLOW:C=9,y=c}g=i(g,f,w,y);var M=aa(g,{level:C});return e.__addimage__.arrayBufferToBinaryString(M)},i=function(g,f,w,N){for(var C,y,M,z=g.length/f,G=new Uint8Array(g.length+z),$=d(),W=0;W<z;W+=1){if(M=W*f,C=g.subarray(M,M+f),N)G.set(N(C,w,y),M+W);else{for(var Q,x=$.length,k=[];Q<x;Q+=1)k[Q]=$[Q](C,w,y);var H=p(k.concat());G.set(k[H],M+W)}y=C}return G},o=function(g){var f=Array.apply([],g);return f.unshift(0),f},r=function(g,f){var w,N=[],C=g.length;N[0]=1;for(var y=0;y<C;y+=1)w=g[y-f]||0,N[y+1]=g[y]-w+256&255;return N},s=function(g,f,w){var N,C=[],y=g.length;C[0]=2;for(var M=0;M<y;M+=1)N=w&&w[M]||0,C[M+1]=g[M]-N+256&255;return C},u=function(g,f,w){var N,C,y=[],M=g.length;y[0]=3;for(var z=0;z<M;z+=1)N=g[z-f]||0,C=w&&w[z]||0,y[z+1]=g[z]+256-(N+C>>>1)&255;return y},c=function(g,f,w){var N,C,y,M,z=[],G=g.length;z[0]=4;for(var $=0;$<G;$+=1)N=g[$-f]||0,C=w&&w[$]||0,y=w&&w[$-f]||0,M=m(N,C,y),z[$+1]=g[$]-M+256&255;return z},m=function(g,f,w){if(g===f&&f===w)return g;var N=Math.abs(f-w),C=Math.abs(g-w),y=Math.abs(g+f-w-w);return N<=C&&N<=y?g:C<=y?f:w},d=function(){return[o,r,s,u,c]},p=function(g){var f=g.map(function(w){return w.reduce(function(N,C){return N+Math.abs(C)},0)});return f.indexOf(Math.min.apply(null,f))};e.processPNG=function(g,f,w,N){var C,y,M,z,G,$,W,Q,x,k,H,A,L,B,F,Y=this.decode.FLATE_DECODE,E="";if(this.__addimage__.isArrayBuffer(g)&&(g=new Uint8Array(g)),this.__addimage__.isArrayBufferView(g)){if(g=(M=new Vc(g)).imgData,y=M.bits,C=M.colorSpace,G=M.colors,[4,6].indexOf(M.colorType)!==-1){if(M.bits===8){x=(Q=M.pixelBitlength==32?new Uint32Array(M.decodePixels().buffer):M.pixelBitlength==16?new Uint16Array(M.decodePixels().buffer):new Uint8Array(M.decodePixels().buffer)).length,H=new Uint8Array(x*M.colors),k=new Uint8Array(x);var I,X=M.pixelBitlength-M.bits;for(B=0,F=0;B<x;B++){for(L=Q[B],I=0;I<X;)H[F++]=L>>>I&255,I+=M.bits;k[B]=L>>>I&255}}if(M.bits===16){x=(Q=new Uint32Array(M.decodePixels().buffer)).length,H=new Uint8Array(x*(32/M.pixelBitlength)*M.colors),k=new Uint8Array(x*(32/M.pixelBitlength)),A=M.colors>1,B=0,F=0;for(var J=0;B<x;)L=Q[B++],H[F++]=L>>>0&255,A&&(H[F++]=L>>>16&255,L=Q[B++],H[F++]=L>>>0&255),k[J++]=L>>>16&255;y=8}N!==e.image_compression.NONE&&t()?(g=n(H,M.width*M.colors,M.colors,N),W=n(k,M.width,1,N)):(g=H,W=k,Y=void 0)}if(M.colorType===3&&(C=this.color_spaces.INDEXED,$=M.palette,M.transparency.indexed)){var tt=M.transparency.indexed,gt=0;for(B=0,x=tt.length;B<x;++B)gt+=tt[B];if((gt/=255)===x-1&&tt.indexOf(0)!==-1)z=[tt.indexOf(0)];else if(gt!==x){for(Q=M.decodePixels(),k=new Uint8Array(Q.length),B=0,x=Q.length;B<x;B++)k[B]=tt[Q[B]];W=n(k,M.width,1)}}var _=function(R){var q;switch(R){case e.image_compression.FAST:q=11;break;case e.image_compression.MEDIUM:q=13;break;case e.image_compression.SLOW:q=14;break;default:q=12}return q}(N);return Y===this.decode.FLATE_DECODE&&(E="/Predictor "+_+" "),E+="/Colors "+G+" /BitsPerComponent "+y+" /Columns "+M.width,(this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),(W&&this.__addimage__.isArrayBuffer(W)||this.__addimage__.isArrayBufferView(W))&&(W=this.__addimage__.arrayBufferToBinaryString(W)),{alias:w,data:g,index:f,filter:Y,decodeParameters:E,transparency:z,palette:$,sMask:W,predictor:_,width:M.width,height:M.height,bitsPerComponent:y,colorSpace:C}}}})(Yt.API),function(e){e.processGIF89A=function(t,n,i,o){var r=new Yc(t),s=r.width,u=r.height,c=[];r.decodeAndBlitFrameRGBA(0,c);var m={data:c,width:s,height:u},d=new js(100).encode(m,100);return e.processJPEG.call(this,d,n,i,o)},e.processGIF87A=e.processGIF89A}(Yt.API),Un.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:i,blue:n,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Un.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){xe.log("bit decode error:"+n)}},Un.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+8*o*4,u=0;u<8&&8*o+u<this.width;u++){var c=this.palette[r>>7-u&1];this.data[s+4*u]=c.blue,this.data[s+4*u+1]=c.green,this.data[s+4*u+2]=c.red,this.data[s+4*u+3]=255}n!==0&&(this.pos+=4-n)}},Un.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<e;o++){var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+2*o*4,u=r>>4,c=15&r,m=this.palette[u];if(this.data[s]=m.blue,this.data[s+1]=m.green,this.data[s+2]=m.red,this.data[s+3]=255,2*o+1>=this.width)break;m=this.palette[c],this.data[s+4]=m.blue,this.data[s+4+1]=m.green,this.data[s+4+2]=m.red,this.data[s+4+3]=255}t!==0&&(this.pos+=4-t)}},Un.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var o=this.datav.getUint8(this.pos++,!0),r=n*this.width*4+4*i;if(o<this.palette.length){var s=this.palette[o];this.data[r]=s.red,this.data[r+1]=s.green,this.data[r+2]=s.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}e!==0&&(this.pos+=4-e)}},Un.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(r&t)/t*255|0,u=(r>>5&t)/t*255|0,c=(r>>10&t)/t*255|0,m=r>>15?255:0,d=i*this.width*4+4*o;this.data[d]=c,this.data[d+1]=u,this.data[d+2]=s,this.data[d+3]=m}this.pos+=e}},Un.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var o=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var u=(s&t)/t*255|0,c=(s>>5&n)/n*255|0,m=(s>>11)/t*255|0,d=o*this.width*4+4*r;this.data[d]=m,this.data[d+1]=c,this.data[d+2]=u,this.data[d+3]=255}this.pos+=e}},Un.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=r,this.data[s+1]=o,this.data[s+2]=i,this.data[s+3]=255}this.pos+=this.width%4}},Un.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),u=t*this.width*4+4*n;this.data[u]=r,this.data[u+1]=o,this.data[u+2]=i,this.data[u+3]=s}},Un.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,i,o){var r=new Un(t,!1),s=r.width,u=r.height,c={data:r.getData(),width:s,height:u},m=new js(100).encode(c,100);return e.processJPEG.call(this,m,n,i,o)}}(Yt.API),Ll.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,i,o){var r=new Ll(t,!1),s=r.width,u=r.height,c={data:r.getData(),width:s,height:u},m=new js(100).encode(c,100);return e.processJPEG.call(this,m,n,i,o)}}(Yt.API),Yt.API.processRGBA=function(e,t,n){for(var i=e.data,o=i.length,r=new Uint8Array(o/4*3),s=new Uint8Array(o/4),u=0,c=0,m=0;m<o;m+=4){var d=i[m],p=i[m+1],g=i[m+2],f=i[m+3];r[u++]=d,r[u++]=p,r[u++]=g,s[c++]=f}var w=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:w,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Yt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},xi=Yt.API,lo=xi.getCharWidthsArray=function(e,t){var n,i,o=(t=t||{}).font||this.internal.getFont(),r=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),u=t.widths?t.widths:o.metadata.Unicode.widths,c=u.fof?u.fof:1,m=t.kerning?t.kerning:o.metadata.Unicode.kerning,d=m.fof?m.fof:1,p=t.doKerning!==!1,g=0,f=e.length,w=0,N=u[0]||c,C=[];for(n=0;n<f;n++)i=e.charCodeAt(n),typeof o.metadata.widthOfString=="function"?C.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/r)||0)/1e3):(g=p&&(0,Ae.A)(m[i])==="object"&&!isNaN(parseInt(m[i][w],10))?m[i][w]/d:0,C.push((u[i]||N)/c+g)),w=i;return C},yl=xi.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),i=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return xi.processArabic&&(e=xi.processArabic(e)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(e,n,o)/n:lo.apply(this,arguments).reduce(function(r,s){return r+s},0)},wl=function(e,t,n,i){for(var o=[],r=0,s=e.length,u=0;r!==s&&u+t[r]<n;)u+=t[r],r++;o.push(e.slice(0,r));var c=r;for(u=0;r!==s;)u+t[r]>i&&(o.push(e.slice(c,r)),u=0,c=r),u+=t[r],r++;return c!==r&&o.push(e.slice(c,r)),o},Al=function(e,t,n){n||(n={});var i,o,r,s,u,c,m,d=[],p=[d],g=n.textIndent||0,f=0,w=0,N=e.split(" "),C=lo.apply(this,[" ",n])[0];if(c=n.lineIndent===-1?N[0].length+2:n.lineIndent||0){var y=Array(c).join(" "),M=[];N.map(function(G){(G=G.split(/\s*\n/)).length>1?M=M.concat(G.map(function($,W){return(W&&$.length?"\n":"")+$})):M.push(G[0])}),N=M,c=yl.apply(this,[y,n])}for(r=0,s=N.length;r<s;r++){var z=0;if(i=N[r],c&&i[0]=="\n"&&(i=i.substr(1),z=1),g+f+(w=(o=lo.apply(this,[i,n])).reduce(function(G,$){return G+$},0))>t||z){if(w>t){for(u=wl.apply(this,[i,o,t-(g+f),t]),d.push(u.shift()),d=[u.pop()];u.length;)p.push([u.shift()]);w=o.slice(i.length-(d[0]?d[0].length:0)).reduce(function(G,$){return G+$},0)}else d=[i];p.push(d),g=w+c,f=C}else d.push(i),g+=f+w,f=C}return m=c?function(G,$){return($?y:"")+G.join(" ")}:function(G){return G.join(" ")},p.map(m)},xi.splitTextToSize=function(e,t,n){var i,o=(n=n||{}).fontSize||this.internal.getFontSize(),r=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var p=this.internal.getFont(d.fontName,d.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);i=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/o;r.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,r.lineIndent=n.lineIndent;var u,c,m=[];for(u=0,c=i.length;u<c;u++)m=m.concat(Al.apply(this,[i[u],s,r]));return m},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},i={},o=0;o<t.length;o++)n[t[o]]="0123456789abcdef"[o],i["0123456789abcdef"[o]]=t[o];var r=function(p){return"0x"+parseInt(p,10).toString(16)},s=e.__fontmetrics__.compress=function(p){var g,f,w,N,C=["{"];for(var y in p){if(g=p[y],isNaN(parseInt(y,10))?f="'"+y+"'":(y=parseInt(y,10),f=(f=r(y).slice(2)).slice(0,-1)+i[f.slice(-1)]),typeof g=="number")g<0?(w=r(g).slice(3),N="-"):(w=r(g).slice(2),N=""),w=N+w.slice(0,-1)+i[w.slice(-1)];else{if((0,Ae.A)(g)!=="object")throw new Error("Don't know what to do with value type "+(0,Ae.A)(g)+".");w=s(g)}C.push(f+w)}return C.push("}"),C.join("")},u=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,f,w,N,C={},y=1,M=C,z=[],G="",$="",W=p.length-1,Q=1;Q<W;Q+=1)(N=p[Q])=="'"?g?(w=g.join(""),g=void 0):g=[]:g?g.push(N):N=="{"?(z.push([M,w]),M={},w=void 0):N=="}"?((f=z.pop())[0][f[1]]=M,w=void 0,M=f[0]):N=="-"?y=-1:w===void 0?n.hasOwnProperty(N)?(G+=n[N],w=parseInt(G,16)*y,y=1,G=""):G+=N:n.hasOwnProperty(N)?($+=n[N],M[w]=parseInt($,16)*y,y=1,w=void 0,$=""):$+=N;return C},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},d={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":u("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":u("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":u("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(p){var g=p.font,f=d.Unicode[g.postScriptName];f&&(g.metadata.Unicode={},g.metadata.Unicode.widths=f.widths,g.metadata.Unicode.kerning=f.kerning);var w=m.Unicode[g.postScriptName];w&&(g.metadata.Unicode.encoding=w,g.encoding=w.codePages[0])}])}(Yt.API),function(e){var t=function(n){for(var i=n.length,o=new Uint8Array(i),r=0;r<i;r++)o[r]=n.charCodeAt(r);return o};e.API.events.push(["addFont",function(n){var i=void 0,o=n.font,r=n.instance;if(!o.isStandardFont){if(r===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if(typeof(i=r.existsFileInVFS(o.postScriptName)===!1?r.loadFile(o.postScriptName):r.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(s,u){u=/^\x00\x01\x00\x00/.test(u)?t(u):t(sa(u)),s.metadata=e.API.TTFFont.open(u),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(o,i)}}])}(Yt),function(e){function t(){return(Jt.canvg?Promise.resolve(Jt.canvg):Promise.resolve().then(Tn.t.bind(Tn,16700,23))).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Yt.API.addSvgAsImage=function(n,i,o,r,s,u,c,m){if(isNaN(i)||isNaN(o))throw xe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(s))throw xe.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var d=document.createElement("canvas");d.width=r,d.height=s;var p=d.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,d.width,d.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return t().then(function(w){return w.fromString(p,n,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(g)}).then(function(){f.addImage(d.toDataURL("image/jpeg",1),i,o,r,s,c,m)})}}(),Yt.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var o=0;o<this.internal.pages[i].length;o++)this.internal.pages[i][o]=this.internal.pages[i][o].replace(t,n);return this},Yt.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var i,o,r,s={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}},u=Object.keys(s),c=[],m=0,d=0,p=0;function g(w,N){var C,y=!1;for(C=0;C<w.length;C+=1)w[C]===N&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=u.length;for(p=0;p<f;p+=1)n[u[p]].value=n[u[p]].defaultValue,n[u[p]].explicitSet=!1}if((0,Ae.A)(e)==="object"){for(o in e)if(r=e[o],g(u,o)&&r!==void 0){if(n[o].type==="boolean"&&typeof r=="boolean")n[o].value=r;else if(n[o].type==="name"&&g(n[o].valueSet,r))n[o].value=r;else if(n[o].type==="integer"&&Number.isInteger(r))n[o].value=r;else if(n[o].type==="array"){for(m=0;m<r.length;m+=1)if(i=!0,r[m].length===1&&typeof r[m][0]=="number")c.push(String(r[m]-1));else if(r[m].length>1){for(d=0;d<r[m].length;d+=1)typeof r[m][d]!="number"&&(i=!1);i===!0&&c.push([r[m][0]-1,r[m][1]-1].join(" "))}n[o].value="["+c.join(" ")+"]"}else n[o].value=n[o].defaultValue;n[o].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,N=[];for(w in n)n[w].explicitSet===!0&&(n[w].type==="name"?N.push("/"+w+" /"+n[w].value):N.push("/"+w+" "+n[w].value));N.length!==0&&this.internal.write("/ViewerPreferences\n<<\n"+N.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var i='<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>',o=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(i)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),u=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),c=unescape(encodeURIComponent("</x:xmpmeta>")),m=r.length+s.length+u.length+o.length+c.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+m+" >>"),this.internal.write("stream"),this.internal.write(o+r+s+u+c),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(i,o){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:i,namespaceuri:o||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(Yt.API),function(e){var t=e.API,n=t.pdfEscape16=function(r,s){for(var u,c=s.metadata.Unicode.widths,m=["","0","00","000","0000"],d=[""],p=0,g=r.length;p<g;++p){if(u=s.metadata.characterToGlyph(r.charCodeAt(p)),s.metadata.glyIdsUsed.push(u),s.metadata.toUnicode[u]=r.charCodeAt(p),c.indexOf(u)==-1&&(c.push(u),c.push([parseInt(s.metadata.widthOfGlyph(u),10)])),u=="0")return d.join("");u=u.toString(16),d.push(m[4-u.length],u)}return d.join("")},i=function(r){var s,u,c,m,d,p,g;for(d="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",c=[],p=0,g=(u=Object.keys(r).sort(function(f,w){return f-w})).length;p<g;p++)s=u[p],c.length>=100&&(d+="\n"+c.length+" beginbfchar\n"+c.join("\n")+"\nendbfchar",c=[]),r[s]!==void 0&&r[s]!==null&&typeof r[s].toString=="function"&&(m=("0000"+r[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),c.push("<"+s+"><"+m+">"));return c.length&&(d+="\n"+c.length+" beginbfchar\n"+c.join("\n")+"\nendbfchar\n"),d+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(r){(function(s){var u=s.font,c=s.out,m=s.newObject,d=s.putStream;if(u.metadata instanceof e.API.TTFFont&&u.encoding==="Identity-H"){for(var p=u.metadata.Unicode.widths,g=u.metadata.subset.encode(u.metadata.glyIdsUsed,1),f="",w=0;w<g.length;w++)f+=String.fromCharCode(g[w]);var N=m();d({data:f,addLength1:!0,objectId:N}),c("endobj");var C=m();d({data:i(u.metadata.toUnicode),addLength1:!0,objectId:C}),c("endobj");var y=m();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+gi(u.fontName)),c("/FontFile2 "+N+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(u.metadata.bbox)),c("/Flags "+u.metadata.flags),c("/StemV "+u.metadata.stemV),c("/ItalicAngle "+u.metadata.italicAngle),c("/Ascent "+u.metadata.ascender),c("/Descent "+u.metadata.decender),c("/CapHeight "+u.metadata.capHeight),c(">>"),c("endobj");var M=m();c("<<"),c("/Type /Font"),c("/BaseFont /"+gi(u.fontName)),c("/FontDescriptor "+y+" 0 R"),c("/W "+e.API.PDFObject.convert(p)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+u.encoding+")"),c(">>"),c(">>"),c("endobj"),u.objectNumber=m(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+C+" 0 R"),c("/BaseFont /"+gi(u.fontName)),c("/Encoding /"+u.encoding),c("/DescendantFonts ["+M+" 0 R]"),c(">>"),c("endobj"),u.isAlreadyPutted=!0}})(r)}]),t.events.push(["putFont",function(r){(function(s){var u=s.font,c=s.out,m=s.newObject,d=s.putStream;if(u.metadata instanceof e.API.TTFFont&&u.encoding==="WinAnsiEncoding"){for(var p=u.metadata.rawData,g="",f=0;f<p.length;f++)g+=String.fromCharCode(p[f]);var w=m();d({data:g,addLength1:!0,objectId:w}),c("endobj");var N=m();d({data:i(u.metadata.toUnicode),addLength1:!0,objectId:N}),c("endobj");var C=m();c("<<"),c("/Descent "+u.metadata.decender),c("/CapHeight "+u.metadata.capHeight),c("/StemV "+u.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+w+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(u.metadata.bbox)),c("/FontName /"+gi(u.fontName)),c("/ItalicAngle "+u.metadata.italicAngle),c("/Ascent "+u.metadata.ascender),c(">>"),c("endobj"),u.objectNumber=m();for(var y=0;y<u.metadata.hmtx.widths.length;y++)u.metadata.hmtx.widths[y]=parseInt(u.metadata.hmtx.widths[y]*(1e3/u.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+N+" 0 R/BaseFont/"+gi(u.fontName)+"/FontDescriptor "+C+" 0 R/Encoding/"+u.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(u.metadata.hmtx.widths)+">>"),c("endobj"),u.isAlreadyPutted=!0}})(r)}]);var o=function(r){var s,u=r.text||"",c=r.x,m=r.y,d=r.options||{},p=r.mutex||{},g=p.pdfEscape,f=p.activeFontKey,w=p.fonts,N=f,C="",y=0,M="",z=w[N].encoding;if(w[N].encoding!=="Identity-H")return{text:u,x:c,y:m,options:d,mutex:p};for(M=u,N=f,Array.isArray(u)&&(M=u[0]),y=0;y<M.length;y+=1)w[N].metadata.hasOwnProperty("cmap")&&(s=w[N].metadata.cmap.unicode.codeMap[M[y].charCodeAt(0)]),s||M[y].charCodeAt(0)<256&&w[N].metadata.hasOwnProperty("Unicode")?C+=M[y]:C+="";var G="";return parseInt(N.slice(1))<14||z==="WinAnsiEncoding"?G=g(C,N).split("").map(function($){return $.charCodeAt(0).toString(16)}).join(""):z==="Identity-H"&&(G=n(C,w[N])),p.isHex=!0,{text:G,x:c,y:m,options:d,mutex:p}};t.events.push(["postProcessText",function(r){var s=r.text||"",u=[],c={text:s,x:r.x,y:r.y,options:r.options,mutex:r.mutex};if(Array.isArray(s)){var m=0;for(m=0;m<s.length;m+=1)Array.isArray(s[m])&&s[m].length===3?u.push([o(Object.assign({},c,{text:s[m][0]})).text,s[m][1],s[m][2]]):u.push(o(Object.assign({},c,{text:s[m]})).text);r.text=u}else r.text=o(Object.assign({},c,{text:s})).text}])}(Yt),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,i){return t.call(this),this.internal.vFS[n]=i,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Yt.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(i){var o,r,s,u,c,m,d,p=t,g=[[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]],f=[[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]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},N={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},C=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],y=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)$/),M=!1,z=0;this.__bidiEngine__={};var G=function(A){var L=A.charCodeAt(),B=L>>8,F=N[B];return F!==void 0?p[256*F+(255&L)]:B===252||B===253?"AL":y.test(B)?"L":B===8?"R":"N"},$=function(A){for(var L,B=0;B<A.length;B++){if((L=G(A.charAt(B)))==="L")return!1;if(L==="R")return!0}return!1},W=function(A,L,B,F){var Y,E,I,X,J=L[F];switch(J){case"L":case"R":M=!1;break;case"N":case"AN":break;case"EN":M&&(J="AN");break;case"AL":M=!0,J="R";break;case"WS":J="N";break;case"CS":F<1||F+1>=L.length||(Y=B[F-1])!=="EN"&&Y!=="AN"||(E=L[F+1])!=="EN"&&E!=="AN"?J="N":M&&(E="AN"),J=E===Y?E:"N";break;case"ES":J=(Y=F>0?B[F-1]:"B")==="EN"&&F+1<L.length&&L[F+1]==="EN"?"EN":"N";break;case"ET":if(F>0&&B[F-1]==="EN"){J="EN";break}if(M){J="N";break}for(I=F+1,X=L.length;I<X&&L[I]==="ET";)I++;J=I<X&&L[I]==="EN"?"EN":"N";break;case"NSM":if(s&&!u){for(X=L.length,I=F+1;I<X&&L[I]==="NSM";)I++;if(I<X){var tt=A[F],gt=tt>=1425&&tt<=2303||tt===64286;if(Y=L[I],gt&&(Y==="R"||Y==="AL")){J="R";break}}}J=F<1||(Y=L[F-1])==="B"?"N":B[F-1];break;case"B":M=!1,o=!0,J=z;break;case"S":r=!0,J="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":M=!1;break;case"BN":J="N"}return J},Q=function(A,L,B){var F=A.split("");return B&&x(F,B,{hiLevel:z}),F.reverse(),L&&L.reverse(),F.join("")},x=function(A,L,B){var F,Y,E,I,X,J=-1,tt=A.length,gt=0,_=[],R=z?f:g,q=[];for(M=!1,o=!1,r=!1,Y=0;Y<tt;Y++)q[Y]=G(A[Y]);for(E=0;E<tt;E++){if(X=gt,_[E]=W(A,q,_,E),F=240&(gt=R[X][w[_[E]]]),gt&=15,L[E]=I=R[gt][5],F>0)if(F===16){for(Y=J;Y<E;Y++)L[Y]=1;J=-1}else J=-1;if(R[gt][6])J===-1&&(J=E);else if(J>-1){for(Y=J;Y<E;Y++)L[Y]=I;J=-1}q[E]==="B"&&(L[E]=0),B.hiLevel|=I}r&&function(U,et,st){for(var lt=0;lt<st;lt++)if(U[lt]==="S"){et[lt]=z;for(var ut=lt-1;ut>=0&&U[ut]==="WS";ut--)et[ut]=z}}(q,L,tt)},k=function(A,L,B,F,Y){if(!(Y.hiLevel<A)){if(A===1&&z===1&&!o)return L.reverse(),void(B&&B.reverse());for(var E,I,X,J,tt=L.length,gt=0;gt<tt;){if(F[gt]>=A){for(X=gt+1;X<tt&&F[X]>=A;)X++;for(J=gt,I=X-1;J<I;J++,I--)E=L[J],L[J]=L[I],L[I]=E,B&&(E=B[J],B[J]=B[I],B[I]=E);gt=X}gt++}}},H=function(A,L,B){var F=A.split(""),Y={hiLevel:z};return B||(B=[]),x(F,B,Y),function(E,I,X){if(X.hiLevel!==0&&d)for(var J,tt=0;tt<E.length;tt++)I[tt]===1&&(J=C.indexOf(E[tt]))>=0&&(E[tt]=C[J+1])}(F,B,Y),k(2,F,L,B,Y),k(1,F,L,B,Y),F.join("")};return this.__bidiEngine__.doBidiReorder=function(A,L,B){if(function(Y,E){if(E)for(var I=0;I<Y.length;I++)E[I]=I;u===void 0&&(u=$(Y)),m===void 0&&(m=$(Y))}(A,L),s||!c||m)if(s&&c&&u^m)z=u?1:0,A=Q(A,L,B);else if(!s&&c&&m)z=u?1:0,A=H(A,L,B),A=Q(A,L);else if(!s||u||c||m){if(s&&!c&&u^m)A=Q(A,L),u?(z=0,A=H(A,L,B)):(z=1,A=H(A,L,B),A=Q(A,L));else if(s&&u&&!c&&m)z=1,A=H(A,L,B),A=Q(A,L);else if(!s&&!c&&u^m){var F=d;u?(z=1,A=H(A,L,B),z=0,d=!1,A=H(A,L,B),d=F):(z=0,A=H(A,L,B),A=Q(A,L),z=1,d=!1,A=H(A,L,B),d=F,A=Q(A,L))}}else z=0,A=H(A,L,B);else z=u?1:0,A=H(A,L,B);return A},this.__bidiEngine__.setOptions=function(A){A&&(s=A.isInputVisual,c=A.isOutputVisual,u=A.isInputRtl,m=A.isOutputRtl,d=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(i){var o=i.text,r=(i.x,i.y,i.options||{}),s=(i.mutex,r.lang,[]);if(r.isInputVisual=typeof r.isInputVisual!="boolean"||r.isInputVisual,n.setOptions(r),Object.prototype.toString.call(o)==="[object Array]"){var u=0;for(s=[],u=0;u<o.length;u+=1)Object.prototype.toString.call(o[u])==="[object Array]"?s.push([n.doBidiReorder(o[u][0]),o[u][1],o[u][2]]):s.push([n.doBidiReorder(o[u])]);i.text=s}else i.text=n.doBidiReorder(o);n.setOptions({isInputVisual:!0})}])}(Yt),Yt.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new Cr(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new lf(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Qc(this.contents),this.head=new Zc(this),this.name=new ef(this),this.cmap=new _l(this),this.toUnicode={},this.hhea=new Xc(this),this.maxp=new nf(this),this.hmtx=new rf(this),this.post=new $c(this),this.os2=new Kc(this),this.loca=new uf(this),this.glyf=new af(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,i,o,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,u,c,m;for(m=[],s=0,u=(c=this.bbox).length;s<u;s++)t=c[s],m.push(Math.round(t*this.scaleFactor));return m}).call(this),this.stemV=0,this.post.exists?(i=255&(o=this.post.italic_angle),(32768&(n=o>>16))!=0&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+i)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(r=this.familyClass)===1||r===2||r===3||r===4||r===5||r===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,i){var o,r,s,u;for(s=0,r=0,u=(t=""+t).length;0<=u?r<u:r>u;r=0<=u?++r:--r)o=t.charCodeAt(r),s+=this.widthOfGlyph(this.characterToGlyph(o))+i*(1e3/n)||0;return s*(n/1e3)},e.prototype.lineHeight=function(t,n){var i;return n==null&&(n=!1),i=n?this.lineGap:0,(this.ascender+i-this.decender)/1e3*t},e}();var zn,Cr=function(){function e(t){this.data=t!=null?t:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,i;for(i=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)i[n]=String.fromCharCode(this.readByte());return i.join("")},e.prototype.writeString=function(t){var n,i,o;for(o=[],n=0,i=t.length;0<=i?n<i:n>i;n=0<=i?++n:--n)o.push(this.writeByte(t.charCodeAt(n)));return o},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,i,o,r,s,u,c;return t=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),r=this.readByte(),s=this.readByte(),u=this.readByte(),c=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^i)+4294967296*(255^o)+16777216*(255^r)+65536*(255^s)+256*(255^u)+(255^c)+1):72057594037927940*t+281474976710656*n+1099511627776*i+4294967296*o+16777216*r+65536*s+256*u+c},e.prototype.writeLongLong=function(t){var n,i;return n=Math.floor(t/4294967296),i=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,i;for(n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push(this.readByte());return n},e.prototype.write=function(t){var n,i,o,r;for(r=[],i=0,o=t.length;i<o;i++)n=t[i],r.push(this.writeByte(n));return r},e}(),Qc=function(){var e;function t(n){var i,o,r;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},o=0,r=this.tableCount;0<=r?o<r:o>r;o=0<=r?++o:--o)i={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[i.tag]=i}return t.prototype.encode=function(n){var i,o,r,s,u,c,m,d,p,g,f,w,N;for(N in f=Object.keys(n).length,c=Math.log(2),p=16*Math.floor(Math.log(f)/c),s=Math.floor(p/c),d=16*f-p,(o=new Cr).writeInt(this.scalarType),o.writeShort(f),o.writeShort(p),o.writeShort(s),o.writeShort(d),r=16*f,m=o.pos+r,u=null,w=[],n)for(g=n[N],o.writeString(N),o.writeInt(e(g)),o.writeInt(m),o.writeInt(g.length),w=w.concat(g),N==="head"&&(u=m),m+=g.length;m%4;)w.push(0),m++;return o.write(w),i=2981146554-e(o.data),o.pos=u+8,o.writeUInt32(i),o.data},e=function(n){var i,o,r,s;for(n=Sl.call(n);n.length%4;)n.push(0);for(r=new Cr(n),o=0,i=0,s=n.length;i<s;i=i+=4)o+=r.readUInt32();return 4294967295&o},t}(),Jc={}.hasOwnProperty,nr=function(e,t){for(var n in t)Jc.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};zn=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var Zc=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="head",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},t.prototype.encode=function(n){var i;return(i=new Cr).writeInt(this.version),i.writeInt(this.revision),i.writeInt(this.checkSumAdjustment),i.writeInt(this.magicNumber),i.writeShort(this.flags),i.writeShort(this.unitsPerEm),i.writeLongLong(this.created),i.writeLongLong(this.modified),i.writeShort(this.xMin),i.writeShort(this.yMin),i.writeShort(this.xMax),i.writeShort(this.yMax),i.writeShort(this.macStyle),i.writeShort(this.lowestRecPPEM),i.writeShort(this.fontDirectionHint),i.writeShort(n),i.writeShort(this.glyphDataFormat),i.data},t}(),Nl=function(){function e(t,n){var i,o,r,s,u,c,m,d,p,g,f,w,N,C,y,M,z;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),p=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(c=0;c<256;++c)this.codeMap[c]=t.readByte();break;case 4:for(f=t.readUInt16(),g=f/2,t.pos+=6,r=function(){var G,$;for($=[],c=G=0;0<=g?G<g:G>g;c=0<=g?++G:--G)$.push(t.readUInt16());return $}(),t.pos+=2,N=function(){var G,$;for($=[],c=G=0;0<=g?G<g:G>g;c=0<=g?++G:--G)$.push(t.readUInt16());return $}(),m=function(){var G,$;for($=[],c=G=0;0<=g?G<g:G>g;c=0<=g?++G:--G)$.push(t.readUInt16());return $}(),d=function(){var G,$;for($=[],c=G=0;0<=g?G<g:G>g;c=0<=g?++G:--G)$.push(t.readUInt16());return $}(),o=(this.length-t.pos+this.offset)/2,u=function(){var G,$;for($=[],c=G=0;0<=o?G<o:G>o;c=0<=o?++G:--G)$.push(t.readUInt16());return $}(),c=y=0,z=r.length;y<z;c=++y)for(C=r[c],i=M=w=N[c];w<=C?M<=C:M>=C;i=w<=C?++M:--M)d[c]===0?s=i+m[c]:(s=u[d[c]/2+(i-w)-(g-c)]||0)!==0&&(s+=m[c]),this.codeMap[i]=65535&s}t.pos=p}return e.encode=function(t,n){var i,o,r,s,u,c,m,d,p,g,f,w,N,C,y,M,z,G,$,W,Q,x,k,H,A,L,B,F,Y,E,I,X,J,tt,gt,_,R,q,U,et,st,lt,ut,wt,bt,St;switch(F=new Cr,s=Object.keys(t).sort(function(Ft,qt){return Ft-qt}),n){case"macroman":for(N=0,C=function(){var Ft=[];for(w=0;w<256;++w)Ft.push(0);return Ft}(),M={0:0},r={},Y=0,J=s.length;Y<J;Y++)M[ut=t[o=s[Y]]]==null&&(M[ut]=++N),r[o]={old:t[o],new:M[t[o]]},C[o]=M[t[o]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(C),{charMap:r,subtable:F.data,maxGlyphID:N+1};case"unicode":for(L=[],p=[],z=0,M={},i={},y=m=null,E=0,tt=s.length;E<tt;E++)M[$=t[o=s[E]]]==null&&(M[$]=++z),i[o]={old:$,new:M[$]},u=M[$]-o,y!=null&&u===m||(y&&p.push(y),L.push(o),m=u),y=o;for(y&&p.push(y),p.push(65535),L.push(65535),H=2*(k=L.length),x=2*Math.pow(Math.log(k)/Math.LN2,2),g=Math.log(x/2)/Math.LN2,Q=2*k-x,c=[],W=[],f=[],w=I=0,gt=L.length;I<gt;w=++I){if(A=L[w],d=p[w],A===65535){c.push(0),W.push(0);break}if(A-(B=i[A].new)>=32768)for(c.push(0),W.push(2*(f.length+k-w)),o=X=A;A<=d?X<=d:X>=d;o=A<=d?++X:--X)f.push(i[o].new);else c.push(B-A),W.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*k+2*f.length),F.writeUInt16(0),F.writeUInt16(H),F.writeUInt16(x),F.writeUInt16(g),F.writeUInt16(Q),st=0,_=p.length;st<_;st++)o=p[st],F.writeUInt16(o);for(F.writeUInt16(0),lt=0,R=L.length;lt<R;lt++)o=L[lt],F.writeUInt16(o);for(wt=0,q=c.length;wt<q;wt++)u=c[wt],F.writeUInt16(u);for(bt=0,U=W.length;bt<U;bt++)G=W[bt],F.writeUInt16(G);for(St=0,et=f.length;St<et;St++)N=f[St],F.writeUInt16(N);return{charMap:i,subtable:F.data,maxGlyphID:z+1}}},e}(),_l=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="cmap",t.prototype.parse=function(n){var i,o,r;for(n.pos=this.offset,this.version=n.readUInt16(),r=n.readUInt16(),this.tables=[],this.unicode=null,o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)i=new Nl(n,this.offset),this.tables.push(i),i.isUnicode&&this.unicode==null&&(this.unicode=i);return!0},t.encode=function(n,i){var o,r;return i==null&&(i="macroman"),o=Nl.encode(n,i),(r=new Cr).writeUInt16(0),r.writeUInt16(1),o.table=r.data.concat(o.subtable),o},t}(),Xc=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t}(),Kc=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var i,o;for(o=[],i=0;i<10;++i)o.push(n.readByte());return o}(),this.charRange=function(){var i,o;for(o=[],i=0;i<4;++i)o.push(n.readInt());return o}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var i,o;for(o=[],i=0;i<2;i=++i)o.push(n.readInt());return o}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t}(),$c=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="post",t.prototype.parse=function(n){var i,o,r;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:break;case 131072:var s;for(o=n.readUInt16(),this.glyphNameIndex=[],s=0;0<=o?s<o:s>o;s=0<=o?++s:--s)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],r=[];n.pos<this.offset+this.length;)i=n.readByte(),r.push(this.names.push(n.readString(i)));return r;case 151552:return o=n.readUInt16(),this.offsets=n.read(o);case 196608:break;case 262144:return this.map=(function(){var u,c,m;for(m=[],s=u=0,c=this.file.maxp.numGlyphs;0<=c?u<c:u>c;s=0<=c?++u:--u)m.push(n.readUInt32());return m}).call(this)}},t}(),tf=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},ef=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="name",t.prototype.parse=function(n){var i,o,r,s,u,c,m,d,p,g,f;for(n.pos=this.offset,n.readShort(),i=n.readShort(),c=n.readShort(),o=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)o.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+c+n.readShort()});for(m={},s=p=0,g=o.length;p<g;s=++p)r=o[s],n.pos=r.offset,d=n.readString(r.length),u=new tf(d,r),m[f=r.nameID]==null&&(m[f]=[]),m[r.nameID].push(u);this.strings=m,this.copyright=m[0],this.fontFamily=m[1],this.fontSubfamily=m[2],this.uniqueSubfamily=m[3],this.fontName=m[4],this.version=m[5];try{this.postscriptName=m[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(w){this.postscriptName=m[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=m[7],this.manufacturer=m[8],this.designer=m[9],this.description=m[10],this.vendorUrl=m[11],this.designerUrl=m[12],this.license=m[13],this.licenseUrl=m[14],this.preferredFamily=m[15],this.preferredSubfamily=m[17],this.compatibleFull=m[18],this.sampleText=m[19]},t}(),nf=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="maxp",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},t}(),rf=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="hmtx",t.prototype.parse=function(n){var i,o,r,s,u,c,m;for(n.pos=this.offset,this.metrics=[],i=0,c=this.file.hhea.numberOfMetrics;0<=c?i<c:i>c;i=0<=c?++i:--i)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var d,p;for(p=[],i=d=0;0<=r?d<r:d>r;i=0<=r?++d:--d)p.push(n.readInt16());return p}(),this.widths=(function(){var d,p,g,f;for(f=[],d=0,p=(g=this.metrics).length;d<p;d++)s=g[d],f.push(s.advance);return f}).call(this),o=this.widths[this.widths.length-1],m=[],i=u=0;0<=r?u<r:u>r;i=0<=r?++u:--u)m.push(this.widths.push(o));return m},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t}(),Sl=[].slice,af=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var i,o,r,s,u,c,m,d,p,g;return n in this.cache?this.cache[n]:(s=this.file.loca,i=this.file.contents,o=s.indexOf(n),(r=s.lengthOf(n))===0?this.cache[n]=null:(i.pos=this.offset+o,u=(c=new Cr(i.read(r))).readShort(),d=c.readShort(),g=c.readShort(),m=c.readShort(),p=c.readShort(),this.cache[n]=u===-1?new sf(c,d,g,m,p):new of(c,u,d,g,m,p),this.cache[n]))},t.prototype.encode=function(n,i,o){var r,s,u,c,m;for(u=[],s=[],c=0,m=i.length;c<m;c++)r=n[i[c]],s.push(u.length),r&&(u=u.concat(r.encode(o)));return s.push(u.length),{table:u,offsets:s}},t}(),of=function(){function e(t,n,i,o,r,s){this.raw=t,this.numberOfContours=n,this.xMin=i,this.yMin=o,this.xMax=r,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),sf=function(){function e(t,n,i,o,r){var s,u;for(this.raw=t,this.xMin=n,this.yMin=i,this.xMax=o,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;u=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&u;)s.pos+=1&u?4:2,128&u?s.pos+=8:64&u?s.pos+=4:8&u&&(s.pos+=2)}return e.prototype.encode=function(){var t,n,i;for(n=new Cr(Sl.call(this.raw.data)),t=0,i=this.glyphIDs.length;t<i;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),uf=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,zn),t.prototype.tag="loca",t.prototype.parse=function(n){var i,o;return n.pos=this.offset,i=this.file.head.indexToLocFormat,this.offsets=i===0?(function(){var r,s;for(s=[],o=0,r=this.length;o<r;o+=2)s.push(2*n.readUInt16());return s}).call(this):(function(){var r,s;for(s=[],o=0,r=this.length;o<r;o+=4)s.push(n.readUInt32());return s}).call(this)},t.prototype.indexOf=function(n){return this.offsets[n]},t.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},t.prototype.encode=function(n,i){for(var o=new Uint32Array(this.offsets.length),r=0,s=0,u=0;u<o.length;++u)if(o[u]=r,s<i.length&&i[s]==u){++s,o[u]=r;var c=this.offsets[u],m=this.offsets[u+1]-c;m>0&&(r+=m)}for(var d=new Array(4*o.length),p=0;p<o.length;++p)d[4*p+3]=255&o[p],d[4*p+2]=(65280&o[p])>>8,d[4*p+1]=(16711680&o[p])>>16,d[4*p]=(4278190080&o[p])>>24;return d},t}(),lf=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,i,o,r;for(n in o=this.font.cmap.tables[0].codeMap,t={},r=this.subset)i=r[n],t[n]=o[i];return t},e.prototype.glyphsFor=function(t){var n,i,o,r,s,u,c;for(o={},s=0,u=t.length;s<u;s++)o[r=t[s]]=this.font.glyf.glyphFor(r);for(r in n=[],o)(i=o[r])!=null&&i.compound&&n.push.apply(n,i.glyphIDs);if(n.length>0)for(r in c=this.glyphsFor(n))i=c[r],o[r]=i;return o},e.prototype.encode=function(t,n){var i,o,r,s,u,c,m,d,p,g,f,w,N,C,y;for(o in i=_l.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),f={0:0},y=i.charMap)f[(c=y[o]).old]=c.new;for(w in g=i.maxGlyphID,s)w in f||(f[w]=g++);return d=function(M){var z,G;for(z in G={},M)G[M[z]]=z;return G}(f),p=Object.keys(d).sort(function(M,z){return M-z}),N=function(){var M,z,G;for(G=[],M=0,z=p.length;M<z;M++)u=p[M],G.push(d[u]);return G}(),r=this.font.glyf.encode(s,N,f),m=this.font.loca.encode(r.offsets,N),C={cmap:this.font.cmap.raw(),glyf:r.table,loca:m,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(C["OS/2"]=this.font.os2.raw()),this.font.directory.encode(C)},e}();Yt.API.PDFObject=function(){var e;function t(){}return e=function(n,i){return(Array(i+1).join("0")+n).slice(-i)},t.convert=function(n){var i,o,r,s;if(Array.isArray(n))return"["+function(){var u,c,m;for(m=[],u=0,c=n.length;u<c;u++)i=n[u],m.push(t.convert(i));return m}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(o in r=["<<"],n)s=n[o],r.push("/"+o+" "+t.convert(s));return r.push(">>"),r.join("\n")}return""+n},t}();const T1=null;function cf(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in e)){var o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(e)}function Pl(e,t){return new Promise(function(n,i){let o;return ff(e).then(function(r){try{return o=r,n(new Blob([t.slice(0,2),o,t.slice(2)],{type:"image/jpeg"}))}catch(s){return i(s)}},i)})}const ff=e=>new Promise((t,n)=>{const i=new FileReader;i.addEventListener("load",o=>{let{target:{result:r}}=o;const s=new DataView(r);let u=0;if(s.getUint16(u)!==65496)return n("not a valid JPEG");for(u+=2;;){const c=s.getUint16(u);if(c===65498)break;const m=s.getUint16(u+2);if(c===65505&&s.getUint32(u+4)===1165519206){const d=u+10;let p;switch(s.getUint16(d)){case 18761:p=!0;break;case 19789:p=!1;break;default:return n("TIFF header contains invalid endian")}if(s.getUint16(d+2,p)!==42)return n("TIFF header contains invalid version");const g=s.getUint32(d+4,p),f=d+g+2+12*s.getUint16(d+g,p);for(let w=d+g+2;w<f;w+=12)if(s.getUint16(w,p)==274){if(s.getUint16(w+2,p)!==3)return n("Orientation data type is invalid");if(s.getUint32(w+4,p)!==1)return n("Orientation data count is invalid");s.setUint16(w+8,1,p);break}return t(r.slice(u,u+2+m))}u+=2+m}return t(new Blob)}),i.readAsArrayBuffer(e)});var co={},hf={get exports(){return co},set exports(e){co=e}};(function(e){var t,n,i={};hf.exports=i,i.parse=function(o,r){for(var s=i.bin.readUshort,u=i.bin.readUint,c=0,m={},d=new Uint8Array(o),p=d.length-4;u(d,p)!=101010256;)p--;c=p,c+=4;var g=s(d,c+=4);s(d,c+=2);var f=u(d,c+=2),w=u(d,c+=4);c+=4,c=w;for(var N=0;N<g;N++){u(d,c),c+=4,c+=4,c+=4,u(d,c+=4),f=u(d,c+=4);var C=u(d,c+=4),y=s(d,c+=4),M=s(d,c+2),z=s(d,c+4);c+=6;var G=u(d,c+=8);c+=4,c+=y+M+z,i._readLocal(d,G,m,f,C,r)}return m},i._readLocal=function(o,r,s,u,c,m){var d=i.bin.readUshort,p=i.bin.readUint;p(o,r),d(o,r+=4),d(o,r+=2);var g=d(o,r+=2);p(o,r+=2),p(o,r+=4),r+=4;var f=d(o,r+=8),w=d(o,r+=2);r+=2;var N=i.bin.readUTF8(o,r,f);if(r+=f,r+=w,m)s[N]={size:c,csize:u};else{var C=new Uint8Array(o.buffer,r);if(g==0)s[N]=new Uint8Array(C.buffer.slice(r,r+u));else{if(g!=8)throw"unknown compression method: "+g;var y=new Uint8Array(c);i.inflateRaw(C,y),s[N]=y}}},i.inflateRaw=function(o,r){return i.F.inflate(o,r)},i.inflate=function(o,r){return o[0],o[1],i.inflateRaw(new Uint8Array(o.buffer,o.byteOffset+2,o.length-6),r)},i.deflate=function(o,r){r==null&&(r={level:6});var s=0,u=new Uint8Array(50+Math.floor(1.1*o.length));u[s]=120,u[s+1]=156,s+=2,s=i.F.deflateRaw(o,u,s,r.level);var c=i.adler(o,0,o.length);return u[s+0]=c>>>24&255,u[s+1]=c>>>16&255,u[s+2]=c>>>8&255,u[s+3]=c>>>0&255,new Uint8Array(u.buffer,0,s+4)},i.deflateRaw=function(o,r){r==null&&(r={level:6});var s=new Uint8Array(50+Math.floor(1.1*o.length)),u=i.F.deflateRaw(o,s,u,r.level);return new Uint8Array(s.buffer,0,u)},i.encode=function(o,r){r==null&&(r=!1);var s=0,u=i.bin.writeUint,c=i.bin.writeUshort,m={};for(var d in o){var p=!i._noNeed(d)&&!r,g=o[d],f=i.crc.crc(g,0,g.length);m[d]={cpr:p,usize:g.length,crc:f,file:p?i.deflateRaw(g):g}}for(var d in m)s+=m[d].file.length+30+46+2*i.bin.sizeUTF8(d);s+=22;var w=new Uint8Array(s),N=0,C=[];for(var d in m){var y=m[d];C.push(N),N=i._writeHeader(w,N,d,y,0)}var M=0,z=N;for(var d in m)y=m[d],C.push(N),N=i._writeHeader(w,N,d,y,1,C[M++]);var G=N-z;return u(w,N,101010256),N+=4,c(w,N+=4,M),c(w,N+=2,M),u(w,N+=2,G),u(w,N+=4,z),N+=4,N+=2,w.buffer},i._noNeed=function(o){var r=o.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(r)!=-1},i._writeHeader=function(o,r,s,u,c,m){var d=i.bin.writeUint,p=i.bin.writeUshort,g=u.file;return d(o,r,c==0?67324752:33639248),r+=4,c==1&&(r+=2),p(o,r,20),p(o,r+=2,0),p(o,r+=2,u.cpr?8:0),d(o,r+=2,0),d(o,r+=4,u.crc),d(o,r+=4,g.length),d(o,r+=4,u.usize),p(o,r+=4,i.bin.sizeUTF8(s)),p(o,r+=2,0),r+=2,c==1&&(r+=2,r+=2,d(o,r+=6,m),r+=4),r+=i.bin.writeUTF8(o,r,s),c==0&&(o.set(g,r),r+=g.length),r},i.crc={table:function(){for(var o=new Uint32Array(256),r=0;r<256;r++){for(var s=r,u=0;u<8;u++)1&s?s=3988292384^s>>>1:s>>>=1;o[r]=s}return o}(),update:function(o,r,s,u){for(var c=0;c<u;c++)o=i.crc.table[255&(o^r[s+c])]^o>>>8;return o},crc:function(o,r,s){return 4294967295^i.crc.update(4294967295,o,r,s)}},i.adler=function(o,r,s){for(var u=1,c=0,m=r,d=r+s;m<d;){for(var p=Math.min(m+5552,d);m<p;)c+=u+=o[m++];u%=65521,c%=65521}return c<<16|u},i.bin={readUshort:function(o,r){return o[r]|o[r+1]<<8},writeUshort:function(o,r,s){o[r]=255&s,o[r+1]=s>>8&255},readUint:function(o,r){return 16777216*o[r+3]+(o[r+2]<<16|o[r+1]<<8|o[r])},writeUint:function(o,r,s){o[r]=255&s,o[r+1]=s>>8&255,o[r+2]=s>>16&255,o[r+3]=s>>24&255},readASCII:function(o,r,s){for(var u="",c=0;c<s;c++)u+=String.fromCharCode(o[r+c]);return u},writeASCII:function(o,r,s){for(var u=0;u<s.length;u++)o[r+u]=s.charCodeAt(u)},pad:function(o){return o.length<2?"0"+o:o},readUTF8:function(o,r,s){for(var u,c="",m=0;m<s;m++)c+="%"+i.bin.pad(o[r+m].toString(16));try{u=decodeURIComponent(c)}catch(d){return i.bin.readASCII(o,r,s)}return u},writeUTF8:function(o,r,s){for(var u=s.length,c=0,m=0;m<u;m++){var d=s.charCodeAt(m);if((4294967168&d)==0)o[r+c]=d,c++;else if((4294965248&d)==0)o[r+c]=192|d>>6,o[r+c+1]=128|d>>0&63,c+=2;else if((4294901760&d)==0)o[r+c]=224|d>>12,o[r+c+1]=128|d>>6&63,o[r+c+2]=128|d>>0&63,c+=3;else{if((4292870144&d)!=0)throw"e";o[r+c]=240|d>>18,o[r+c+1]=128|d>>12&63,o[r+c+2]=128|d>>6&63,o[r+c+3]=128|d>>0&63,c+=4}}return c},sizeUTF8:function(o){for(var r=o.length,s=0,u=0;u<r;u++){var c=o.charCodeAt(u);if((4294967168&c)==0)s++;else if((4294965248&c)==0)s+=2;else if((4294901760&c)==0)s+=3;else{if((4292870144&c)!=0)throw"e";s+=4}}return s}},i.F={},i.F.deflateRaw=function(o,r,s,u){var c=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][u],m=i.F.U,d=i.F._goodIndex;i.F._hash;var p=i.F._putsE,g=0,f=s<<3,w=0,N=o.length;if(u==0){for(;g<N;)p(r,f,g+(A=Math.min(65535,N-g))==N?1:0),f=i.F._copyExact(o,g,A,r,f+8),g+=A;return f>>>3}var C=m.lits,y=m.strt,M=m.prev,z=0,G=0,$=0,W=0,Q=0,x=0;for(N>2&&(y[x=i.F._hash(o,0)]=0),g=0;g<N;g++){if(Q=x,g+1<N-2){x=i.F._hash(o,g+1);var k=g+1&32767;M[k]=y[x],y[x]=k}if(w<=g){(z>14e3||G>26697)&&N-g>100&&(w<g&&(C[z]=g-w,z+=2,w=g),f=i.F._writeBlock(g==N-1||w==N?1:0,C,z,W,o,$,g-$,r,f),z=G=W=0,$=g);var H=0;g<N-2&&(H=i.F._bestMatch(o,g,M,Q,Math.min(c[2],N-g),c[3]));var A=H>>>16,L=65535&H;if(H!=0){L=65535&H;var B=d(A=H>>>16,m.of0);m.lhst[257+B]++;var F=d(L,m.df0);m.dhst[F]++,W+=m.exb[B]+m.dxb[F],C[z]=A<<23|g-w,C[z+1]=L<<16|B<<8|F,z+=2,w=g+A}else m.lhst[o[g]]++;G++}}for($==g&&o.length!=0||(w<g&&(C[z]=g-w,z+=2,w=g),f=i.F._writeBlock(1,C,z,W,o,$,g-$,r,f),z=0,G=0,z=G=W=0,$=g);(7&f)!=0;)f++;return f>>>3},i.F._bestMatch=function(o,r,s,u,c,m){var d=32767&r,p=s[d],g=d-p+32768&32767;if(p==d||u!=i.F._hash(o,r-g))return 0;for(var f=0,w=0,N=Math.min(32767,r);g<=N&&--m!=0&&p!=d;){if(f==0||o[r+f]==o[r+f-g]){var C=i.F._howLong(o,r,g);if(C>f){if(w=g,(f=C)>=c)break;g+2<C&&(C=g+2);for(var y=0,M=0;M<C-2;M++){var z=r-g+M+32768&32767,G=z-s[z]+32768&32767;G>y&&(y=G,p=z)}}}g+=(d=p)-(p=s[d])+32768&32767}return f<<16|w},i.F._howLong=function(o,r,s){if(o[r]!=o[r-s]||o[r+1]!=o[r+1-s]||o[r+2]!=o[r+2-s])return 0;var u=r,c=Math.min(o.length,r+258);for(r+=3;r<c&&o[r]==o[r-s];)r++;return r-u},i.F._hash=function(o,r){return(o[r]<<8|o[r+1])+(o[r+2]<<4)&65535},i.saved=0,i.F._writeBlock=function(o,r,s,u,c,m,d,p,g){var f,w,N,C,y,M,z,G,$,W=i.F.U,Q=i.F._putsF,x=i.F._putsE;W.lhst[256]++,w=(f=i.F.getTrees())[0],N=f[1],C=f[2],y=f[3],M=f[4],z=f[5],G=f[6],$=f[7];var k=32+((g+3&7)==0?0:8-(g+3&7))+(d<<3),H=u+i.F.contSize(W.fltree,W.lhst)+i.F.contSize(W.fdtree,W.dhst),A=u+i.F.contSize(W.ltree,W.lhst)+i.F.contSize(W.dtree,W.dhst);A+=14+3*z+i.F.contSize(W.itree,W.ihst)+(2*W.ihst[16]+3*W.ihst[17]+7*W.ihst[18]);for(var L=0;L<286;L++)W.lhst[L]=0;for(L=0;L<30;L++)W.dhst[L]=0;for(L=0;L<19;L++)W.ihst[L]=0;var B=k<H&&k<A?0:H<A?1:2;if(Q(p,g,o),Q(p,g+1,B),g+=3,B==0){for(;(7&g)!=0;)g++;g=i.F._copyExact(c,m,d,p,g)}else{var F,Y;if(B==1&&(F=W.fltree,Y=W.fdtree),B==2){i.F.makeCodes(W.ltree,w),i.F.revCodes(W.ltree,w),i.F.makeCodes(W.dtree,N),i.F.revCodes(W.dtree,N),i.F.makeCodes(W.itree,C),i.F.revCodes(W.itree,C),F=W.ltree,Y=W.dtree,x(p,g,y-257),x(p,g+=5,M-1),x(p,g+=5,z-4),g+=4;for(var E=0;E<z;E++)x(p,g+3*E,W.itree[1+(W.ordr[E]<<1)]);g+=3*z,g=i.F._codeTiny(G,W.itree,p,g),g=i.F._codeTiny($,W.itree,p,g)}for(var I=m,X=0;X<s;X+=2){for(var J=r[X],tt=J>>>23,gt=I+(8388607&J);I<gt;)g=i.F._writeLit(c[I++],F,p,g);if(tt!=0){var _=r[X+1],R=_>>16,q=_>>8&255,U=255&_;x(p,g=i.F._writeLit(257+q,F,p,g),tt-W.of0[q]),g+=W.exb[q],Q(p,g=i.F._writeLit(U,Y,p,g),R-W.df0[U]),g+=W.dxb[U],I+=tt}}g=i.F._writeLit(256,F,p,g)}return g},i.F._copyExact=function(o,r,s,u,c){var m=c>>>3;return u[m]=s,u[m+1]=s>>>8,u[m+2]=255-u[m],u[m+3]=255-u[m+1],m+=4,u.set(new Uint8Array(o.buffer,r,s),m),c+(s+4<<3)},i.F.getTrees=function(){for(var o=i.F.U,r=i.F._hufTree(o.lhst,o.ltree,15),s=i.F._hufTree(o.dhst,o.dtree,15),u=[],c=i.F._lenCodes(o.ltree,u),m=[],d=i.F._lenCodes(o.dtree,m),p=0;p<u.length;p+=2)o.ihst[u[p]]++;for(p=0;p<m.length;p+=2)o.ihst[m[p]]++;for(var g=i.F._hufTree(o.ihst,o.itree,7),f=19;f>4&&o.itree[1+(o.ordr[f-1]<<1)]==0;)f--;return[r,s,g,c,d,f,u,m]},i.F.getSecond=function(o){for(var r=[],s=0;s<o.length;s+=2)r.push(o[s+1]);return r},i.F.nonZero=function(o){for(var r="",s=0;s<o.length;s+=2)o[s+1]!=0&&(r+=(s>>1)+",");return r},i.F.contSize=function(o,r){for(var s=0,u=0;u<r.length;u++)s+=r[u]*o[1+(u<<1)];return s},i.F._codeTiny=function(o,r,s,u){for(var c=0;c<o.length;c+=2){var m=o[c],d=o[c+1];u=i.F._writeLit(m,r,s,u);var p=m==16?2:m==17?3:7;m>15&&(i.F._putsE(s,u,d,p),u+=p)}return u},i.F._lenCodes=function(o,r){for(var s=o.length;s!=2&&o[s-1]==0;)s-=2;for(var u=0;u<s;u+=2){var c=o[u+1],m=u+3<s?o[u+3]:-1,d=u+5<s?o[u+5]:-1,p=u==0?-1:o[u-1];if(c==0&&m==c&&d==c){for(var g=u+5;g+2<s&&o[g+2]==c;)g+=2;(f=Math.min(g+1-u>>>1,138))<11?r.push(17,f-3):r.push(18,f-11),u+=2*f-2}else if(c==p&&m==c&&d==c){for(g=u+5;g+2<s&&o[g+2]==c;)g+=2;var f=Math.min(g+1-u>>>1,6);r.push(16,f-3),u+=2*f-2}else r.push(c,0)}return s>>>1},i.F._hufTree=function(o,r,s){var u=[],c=o.length,m=r.length,d=0;for(d=0;d<m;d+=2)r[d]=0,r[d+1]=0;for(d=0;d<c;d++)o[d]!=0&&u.push({lit:d,f:o[d]});var p=u.length,g=u.slice(0);if(p==0)return 0;if(p==1){var f=u[0].lit;return g=f==0?1:0,r[1+(f<<1)]=1,r[1+(g<<1)]=1,1}u.sort(function(G,$){return G.f-$.f});var w=u[0],N=u[1],C=0,y=1,M=2;for(u[0]={lit:-1,f:w.f+N.f,l:w,r:N,d:0};y!=p-1;)w=C!=y&&(M==p||u[C].f<u[M].f)?u[C++]:u[M++],N=C!=y&&(M==p||u[C].f<u[M].f)?u[C++]:u[M++],u[y++]={lit:-1,f:w.f+N.f,l:w,r:N};var z=i.F.setDepth(u[y-1],0);for(z>s&&(i.F.restrictDepth(g,s,z),z=s),d=0;d<p;d++)r[1+(g[d].lit<<1)]=g[d].d;return z},i.F.setDepth=function(o,r){return o.lit!=-1?(o.d=r,r):Math.max(i.F.setDepth(o.l,r+1),i.F.setDepth(o.r,r+1))},i.F.restrictDepth=function(o,r,s){var u=0,c=1<<s-r,m=0;for(o.sort(function(p,g){return g.d==p.d?p.f-g.f:g.d-p.d}),u=0;u<o.length&&o[u].d>r;u++){var d=o[u].d;o[u].d=r,m+=c-(1<<s-d)}for(m>>>=s-r;m>0;)(d=o[u].d)<r?(o[u].d++,m-=1<<r-d-1):u++;for(;u>=0;u--)o[u].d==r&&m<0&&(o[u].d--,m++);m!=0&&console.log("debt left")},i.F._goodIndex=function(o,r){var s=0;return r[16|s]<=o&&(s|=16),r[8|s]<=o&&(s|=8),r[4|s]<=o&&(s|=4),r[2|s]<=o&&(s|=2),r[1|s]<=o&&(s|=1),s},i.F._writeLit=function(o,r,s,u){return i.F._putsF(s,u,r[o<<1]),u+r[1+(o<<1)]},i.F.inflate=function(o,r){var s=Uint8Array;if(o[0]==3&&o[1]==0)return r||new s(0);var u=i.F,c=u._bitsF,m=u._bitsE,d=u._decodeTiny,p=u.makeCodes,g=u.codes2map,f=u._get17,w=u.U,N=r==null;N&&(r=new s(o.length>>>2<<3));for(var C,y,M=0,z=0,G=0,$=0,W=0,Q=0,x=0,k=0,H=0;M==0;)if(M=c(o,H,1),z=c(o,H+1,2),H+=3,z!=0){if(N&&(r=i.F._check(r,k+(1<<17))),z==1&&(C=w.flmap,y=w.fdmap,Q=511,x=31),z==2){G=m(o,H,5)+257,$=m(o,H+5,5)+1,W=m(o,H+10,4)+4,H+=14;for(var A=0;A<38;A+=2)w.itree[A]=0,w.itree[A+1]=0;var L=1;for(A=0;A<W;A++){var B=m(o,H+3*A,3);w.itree[1+(w.ordr[A]<<1)]=B,B>L&&(L=B)}H+=3*W,p(w.itree,L),g(w.itree,L,w.imap),C=w.lmap,y=w.dmap,H=d(w.imap,(1<<L)-1,G+$,o,H,w.ttree);var F=u._copyOut(w.ttree,0,G,w.ltree);Q=(1<<F)-1;var Y=u._copyOut(w.ttree,G,$,w.dtree);x=(1<<Y)-1,p(w.ltree,F),g(w.ltree,F,C),p(w.dtree,Y),g(w.dtree,Y,y)}for(;;){var E=C[f(o,H)&Q];H+=15&E;var I=E>>>4;if(!(I>>>8))r[k++]=I;else{if(I==256)break;var X=k+I-254;if(I>264){var J=w.ldef[I-257];X=k+(J>>>3)+m(o,H,7&J),H+=7&J}var tt=y[f(o,H)&x];H+=15&tt;var gt=tt>>>4,_=w.ddef[gt],R=(_>>>4)+c(o,H,15&_);for(H+=15&_,N&&(r=i.F._check(r,k+(1<<17)));k<X;)r[k]=r[k++-R],r[k]=r[k++-R],r[k]=r[k++-R],r[k]=r[k++-R];k=X}}}else{(7&H)!=0&&(H+=8-(7&H));var q=4+(H>>>3),U=o[q-4]|o[q-3]<<8;N&&(r=i.F._check(r,k+U)),r.set(new s(o.buffer,o.byteOffset+q,U),k),H=q+U<<3,k+=U}return r.length==k?r:r.slice(0,k)},i.F._check=function(o,r){var s=o.length;if(r<=s)return o;var u=new Uint8Array(Math.max(s<<1,r));return u.set(o,0),u},i.F._decodeTiny=function(o,r,s,u,c,m){for(var d=i.F._bitsE,p=i.F._get17,g=0;g<s;){var f=o[p(u,c)&r];c+=15&f;var w=f>>>4;if(w<=15)m[g]=w,g++;else{var N=0,C=0;w==16?(C=3+d(u,c,2),c+=2,N=m[g-1]):w==17?(C=3+d(u,c,3),c+=3):w==18&&(C=11+d(u,c,7),c+=7);for(var y=g+C;g<y;)m[g]=N,g++}}return c},i.F._copyOut=function(o,r,s,u){for(var c=0,m=0,d=u.length>>>1;m<s;){var p=o[m+r];u[m<<1]=0,u[1+(m<<1)]=p,p>c&&(c=p),m++}for(;m<d;)u[m<<1]=0,u[1+(m<<1)]=0,m++;return c},i.F.makeCodes=function(o,r){for(var s,u,c,m,d=i.F.U,p=o.length,g=d.bl_count,f=0;f<=r;f++)g[f]=0;for(f=1;f<p;f+=2)g[o[f]]++;var w=d.next_code;for(s=0,g[0]=0,u=1;u<=r;u++)s=s+g[u-1]<<1,w[u]=s;for(c=0;c<p;c+=2)(m=o[c+1])!=0&&(o[c]=w[m],w[m]++)},i.F.codes2map=function(o,r,s){for(var u=o.length,c=i.F.U.rev15,m=0;m<u;m+=2)if(o[m+1]!=0)for(var d=m>>1,p=o[m+1],g=d<<4|p,f=r-p,w=o[m]<<f,N=w+(1<<f);w!=N;)s[c[w]>>>15-r]=g,w++},i.F.revCodes=function(o,r){for(var s=i.F.U.rev15,u=15-r,c=0;c<o.length;c+=2){var m=o[c]<<r-o[c+1];o[c]=s[m]>>>u}},i.F._putsE=function(o,r,s){s<<=7&r;var u=r>>>3;o[u]|=s,o[u+1]|=s>>>8},i.F._putsF=function(o,r,s){s<<=7&r;var u=r>>>3;o[u]|=s,o[u+1]|=s>>>8,o[u+2]|=s>>>16},i.F._bitsE=function(o,r,s){return(o[r>>>3]|o[1+(r>>>3)]<<8)>>>(7&r)&(1<<s)-1},i.F._bitsF=function(o,r,s){return(o[r>>>3]|o[1+(r>>>3)]<<8|o[2+(r>>>3)]<<16)>>>(7&r)&(1<<s)-1},i.F._get17=function(o,r){return(o[r>>>3]|o[1+(r>>>3)]<<8|o[2+(r>>>3)]<<16)>>>(7&r)},i.F._get25=function(o,r){return(o[r>>>3]|o[1+(r>>>3)]<<8|o[2+(r>>>3)]<<16|o[3+(r>>>3)]<<24)>>>(7&r)},i.F.U=(t=Uint16Array,n=Uint32Array,{next_code:new t(16),bl_count:new t(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[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,999,999,999],exb:[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],ldef:new t(32),df0:[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,65535,65535],dxb:[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],ddef:new n(32),flmap:new t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new n(286),dhst:new n(30),ihst:new n(19),lits:new n(15e3),strt:new t(65536),prev:new t(32768)}),function(){for(var o=i.F.U,r=0;r<32768;r++){var s=r;s=(4278255360&(s=(4042322160&(s=(3435973836&(s=(2863311530&s)>>>1|(1431655765&s)<<1))>>>2|(858993459&s)<<2))>>>4|(252645135&s)<<4))>>>8|(16711935&s)<<8,o.rev15[r]=(s>>>16|s<<16)>>>17}function u(c,m,d){for(;m--!=0;)c.push(0,d)}for(r=0;r<32;r++)o.ldef[r]=o.of0[r]<<3|o.exb[r],o.ddef[r]=o.df0[r]<<4|o.dxb[r];u(o.fltree,144,8),u(o.fltree,112,9),u(o.fltree,24,7),u(o.fltree,8,8),i.F.makeCodes(o.fltree,9),i.F.codes2map(o.fltree,9,o.flmap),i.F.revCodes(o.fltree,9),u(o.fdtree,32,5),i.F.makeCodes(o.fdtree,5),i.F.codes2map(o.fdtree,5,o.fdmap),i.F.revCodes(o.fdtree,5),u(o.itree,19,0),u(o.ltree,286,0),u(o.dtree,30,0),u(o.ttree,320,0)}()})();var df=cf({__proto__:null,default:co},[co]);const Hn=function(){var e={nextZero(d,p){for(;d[p]!=0;)p++;return p},readUshort:(d,p)=>d[p]<<8|d[p+1],writeUshort(d,p,g){d[p]=g>>8&255,d[p+1]=255&g},readUint:(d,p)=>16777216*d[p]+(d[p+1]<<16|d[p+2]<<8|d[p+3]),writeUint(d,p,g){d[p]=g>>24&255,d[p+1]=g>>16&255,d[p+2]=g>>8&255,d[p+3]=255&g},readASCII(d,p,g){let f="";for(let w=0;w<g;w++)f+=String.fromCharCode(d[p+w]);return f},writeASCII(d,p,g){for(let f=0;f<g.length;f++)d[p+f]=g.charCodeAt(f)},readBytes(d,p,g){const f=[];for(let w=0;w<g;w++)f.push(d[p+w]);return f},pad:d=>d.length<2?"0"+d:d,readUTF8(d,p,g){let f,w="";for(let N=0;N<g;N++)w+="%"+e.pad(d[p+N].toString(16));try{f=decodeURIComponent(w)}catch(N){return e.readASCII(d,p,g)}return f}};function t(d,p,g,f){const w=p*g,N=r(f),C=Math.ceil(p*N/8),y=new Uint8Array(4*w),M=new Uint32Array(y.buffer),{ctype:z}=f,{depth:G}=f,$=e.readUshort;if(z==6){const J=w<<2;if(G==8)for(var W=0;W<J;W+=4)y[W]=d[W],y[W+1]=d[W+1],y[W+2]=d[W+2],y[W+3]=d[W+3];if(G==16)for(W=0;W<J;W++)y[W]=d[W<<1]}else if(z==2){const J=f.tabs.tRNS;if(J==null){if(G==8)for(W=0;W<w;W++){var Q=3*W;M[W]=255<<24|d[Q+2]<<16|d[Q+1]<<8|d[Q]}if(G==16)for(W=0;W<w;W++)Q=6*W,M[W]=255<<24|d[Q+4]<<16|d[Q+2]<<8|d[Q]}else{var x=J[0];const tt=J[1],gt=J[2];if(G==8)for(W=0;W<w;W++){var k=W<<2;Q=3*W,M[W]=255<<24|d[Q+2]<<16|d[Q+1]<<8|d[Q],d[Q]==x&&d[Q+1]==tt&&d[Q+2]==gt&&(y[k+3]=0)}if(G==16)for(W=0;W<w;W++)k=W<<2,Q=6*W,M[W]=255<<24|d[Q+4]<<16|d[Q+2]<<8|d[Q],$(d,Q)==x&&$(d,Q+2)==tt&&$(d,Q+4)==gt&&(y[k+3]=0)}}else if(z==3){const J=f.tabs.PLTE,tt=f.tabs.tRNS,gt=tt?tt.length:0;if(G==1)for(var H=0;H<g;H++){var A=H*C,L=H*p;for(W=0;W<p;W++){k=L+W<<2;var B=3*(F=d[A+(W>>3)]>>7-((7&W)<<0)&1);y[k]=J[B],y[k+1]=J[B+1],y[k+2]=J[B+2],y[k+3]=F<gt?tt[F]:255}}if(G==2)for(H=0;H<g;H++)for(A=H*C,L=H*p,W=0;W<p;W++)k=L+W<<2,B=3*(F=d[A+(W>>2)]>>6-((3&W)<<1)&3),y[k]=J[B],y[k+1]=J[B+1],y[k+2]=J[B+2],y[k+3]=F<gt?tt[F]:255;if(G==4)for(H=0;H<g;H++)for(A=H*C,L=H*p,W=0;W<p;W++)k=L+W<<2,B=3*(F=d[A+(W>>1)]>>4-((1&W)<<2)&15),y[k]=J[B],y[k+1]=J[B+1],y[k+2]=J[B+2],y[k+3]=F<gt?tt[F]:255;if(G==8)for(W=0;W<w;W++){var F;k=W<<2,B=3*(F=d[W]),y[k]=J[B],y[k+1]=J[B+1],y[k+2]=J[B+2],y[k+3]=F<gt?tt[F]:255}}else if(z==4){if(G==8)for(W=0;W<w;W++){k=W<<2;var Y=d[E=W<<1];y[k]=Y,y[k+1]=Y,y[k+2]=Y,y[k+3]=d[E+1]}if(G==16)for(W=0;W<w;W++){var E;k=W<<2,Y=d[E=W<<2],y[k]=Y,y[k+1]=Y,y[k+2]=Y,y[k+3]=d[E+2]}}else if(z==0)for(x=f.tabs.tRNS?f.tabs.tRNS:-1,H=0;H<g;H++){const J=H*C,tt=H*p;if(G==1)for(var I=0;I<p;I++){var X=(Y=255*(d[J+(I>>>3)]>>>7-(7&I)&1))==255*x?0:255;M[tt+I]=X<<24|Y<<16|Y<<8|Y}else if(G==2)for(I=0;I<p;I++)X=(Y=85*(d[J+(I>>>2)]>>>6-((3&I)<<1)&3))==85*x?0:255,M[tt+I]=X<<24|Y<<16|Y<<8|Y;else if(G==4)for(I=0;I<p;I++)X=(Y=17*(d[J+(I>>>1)]>>>4-((1&I)<<2)&15))==17*x?0:255,M[tt+I]=X<<24|Y<<16|Y<<8|Y;else if(G==8)for(I=0;I<p;I++)X=(Y=d[J+I])==x?0:255,M[tt+I]=X<<24|Y<<16|Y<<8|Y;else if(G==16)for(I=0;I<p;I++)Y=d[J+(I<<1)],X=$(d,J+(I<<1))==x?0:255,M[tt+I]=X<<24|Y<<16|Y<<8|Y}return y}function n(d,p,g,f){const w=r(d),N=Math.ceil(g*w/8),C=new Uint8Array((N+1+d.interlace)*f);return p=d.tabs.CgBI?o(p,C):i(p,C),d.interlace==0?p=s(p,d,0,g,f):d.interlace==1&&(p=function(M,z){const G=z.width,$=z.height,W=r(z),Q=W>>3,x=Math.ceil(G*W/8),k=new Uint8Array($*x);let H=0;const A=[0,0,4,0,2,0,1],L=[0,4,0,2,0,1,0],B=[8,8,8,4,4,2,2],F=[8,8,4,4,2,2,1];let Y=0;for(;Y<7;){const I=B[Y],X=F[Y];let J=0,tt=0,gt=A[Y];for(;gt<$;)gt+=I,tt++;let _=L[Y];for(;_<G;)_+=X,J++;const R=Math.ceil(J*W/8);s(M,z,H,J,tt);let q=0,U=A[Y];for(;U<$;){let et=L[Y],st=H+q*R<<3;for(;et<G;){var E;if(W==1&&(E=(E=M[st>>3])>>7-(7&st)&1,k[U*x+(et>>3)]|=E<<7-((7&et)<<0)),W==2&&(E=(E=M[st>>3])>>6-(7&st)&3,k[U*x+(et>>2)]|=E<<6-((3&et)<<1)),W==4&&(E=(E=M[st>>3])>>4-(7&st)&15,k[U*x+(et>>1)]|=E<<4-((1&et)<<2)),W>=8){const lt=U*x+et*Q;for(let ut=0;ut<Q;ut++)k[lt+ut]=M[(st>>3)+ut]}st+=W,et+=X}q++,U+=I}J*tt!=0&&(H+=tt*(1+R)),Y+=1}return k}(p,d)),p}function i(d,p){return o(new Uint8Array(d.buffer,2,d.length-6),p)}var o=function(){const d={H:{}};return d.H.N=function(p,g){const f=Uint8Array;let w,N,C=0,y=0,M=0,z=0,G=0,$=0,W=0,Q=0,x=0;if(p[0]==3&&p[1]==0)return g||new f(0);const k=d.H,H=k.b,A=k.e,L=k.R,B=k.n,F=k.A,Y=k.Z,E=k.m,I=g==null;for(I&&(g=new f(p.length>>>2<<5));C==0;)if(C=H(p,x,1),y=H(p,x+1,2),x+=3,y!=0){if(I&&(g=d.H.W(g,Q+(1<<17))),y==1&&(w=E.J,N=E.h,$=511,W=31),y==2){M=A(p,x,5)+257,z=A(p,x+5,5)+1,G=A(p,x+10,4)+4,x+=14;let J=1;for(var X=0;X<38;X+=2)E.Q[X]=0,E.Q[X+1]=0;for(X=0;X<G;X++){const _=A(p,x+3*X,3);E.Q[1+(E.X[X]<<1)]=_,_>J&&(J=_)}x+=3*G,B(E.Q,J),F(E.Q,J,E.u),w=E.w,N=E.d,x=L(E.u,(1<<J)-1,M+z,p,x,E.v);const tt=k.V(E.v,0,M,E.C);$=(1<<tt)-1;const gt=k.V(E.v,M,z,E.D);W=(1<<gt)-1,B(E.C,tt),F(E.C,tt,w),B(E.D,gt),F(E.D,gt,N)}for(;;){const J=w[Y(p,x)&$];x+=15&J;const tt=J>>>4;if(!(tt>>>8))g[Q++]=tt;else{if(tt==256)break;{let gt=Q+tt-254;if(tt>264){const et=E.q[tt-257];gt=Q+(et>>>3)+A(p,x,7&et),x+=7&et}const _=N[Y(p,x)&W];x+=15&_;const R=_>>>4,q=E.c[R],U=(q>>>4)+H(p,x,15&q);for(x+=15&q;Q<gt;)g[Q]=g[Q++-U],g[Q]=g[Q++-U],g[Q]=g[Q++-U],g[Q]=g[Q++-U];Q=gt}}}}else{(7&x)!=0&&(x+=8-(7&x));const J=4+(x>>>3),tt=p[J-4]|p[J-3]<<8;I&&(g=d.H.W(g,Q+tt)),g.set(new f(p.buffer,p.byteOffset+J,tt),Q),x=J+tt<<3,Q+=tt}return g.length==Q?g:g.slice(0,Q)},d.H.W=function(p,g){const f=p.length;if(g<=f)return p;const w=new Uint8Array(f<<1);return w.set(p,0),w},d.H.R=function(p,g,f,w,N,C){const y=d.H.e,M=d.H.Z;let z=0;for(;z<f;){const G=p[M(w,N)&g];N+=15&G;const $=G>>>4;if($<=15)C[z]=$,z++;else{let W=0,Q=0;$==16?(Q=3+y(w,N,2),N+=2,W=C[z-1]):$==17?(Q=3+y(w,N,3),N+=3):$==18&&(Q=11+y(w,N,7),N+=7);const x=z+Q;for(;z<x;)C[z]=W,z++}}return N},d.H.V=function(p,g,f,w){let N=0,C=0;const y=w.length>>>1;for(;C<f;){const M=p[C+g];w[C<<1]=0,w[1+(C<<1)]=M,M>N&&(N=M),C++}for(;C<y;)w[C<<1]=0,w[1+(C<<1)]=0,C++;return N},d.H.n=function(p,g){const f=d.H.m,w=p.length;let N,C,y,M;const z=f.j;for(var G=0;G<=g;G++)z[G]=0;for(G=1;G<w;G+=2)z[p[G]]++;const $=f.K;for(N=0,z[0]=0,C=1;C<=g;C++)N=N+z[C-1]<<1,$[C]=N;for(y=0;y<w;y+=2)M=p[y+1],M!=0&&(p[y]=$[M],$[M]++)},d.H.A=function(p,g,f){const w=p.length,N=d.H.m.r;for(let C=0;C<w;C+=2)if(p[C+1]!=0){const y=C>>1,M=p[C+1],z=y<<4|M,G=g-M;let $=p[C]<<G;const W=$+(1<<G);for(;$!=W;)f[N[$]>>>15-g]=z,$++}},d.H.l=function(p,g){const f=d.H.m.r,w=15-g;for(let N=0;N<p.length;N+=2){const C=p[N]<<g-p[N+1];p[N]=f[C]>>>w}},d.H.M=function(p,g,f){f<<=7&g;const w=g>>>3;p[w]|=f,p[w+1]|=f>>>8},d.H.I=function(p,g,f){f<<=7&g;const w=g>>>3;p[w]|=f,p[w+1]|=f>>>8,p[w+2]|=f>>>16},d.H.e=function(p,g,f){return(p[g>>>3]|p[1+(g>>>3)]<<8)>>>(7&g)&(1<<f)-1},d.H.b=function(p,g,f){return(p[g>>>3]|p[1+(g>>>3)]<<8|p[2+(g>>>3)]<<16)>>>(7&g)&(1<<f)-1},d.H.Z=function(p,g){return(p[g>>>3]|p[1+(g>>>3)]<<8|p[2+(g>>>3)]<<16)>>>(7&g)},d.H.i=function(p,g){return(p[g>>>3]|p[1+(g>>>3)]<<8|p[2+(g>>>3)]<<16|p[3+(g>>>3)]<<24)>>>(7&g)},d.H.m=function(){const p=Uint16Array,g=Uint32Array;return{K:new p(16),j:new p(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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],q:new p(32),p:[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,65535,65535],z:[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],c:new g(32),J:new p(512),_:[],h:new p(32),$:[],w:new p(32768),C:[],v:[],d:new p(32768),D:[],u:new p(512),Q:[],r:new p(32768),s:new g(286),Y:new g(30),a:new g(19),t:new g(15e3),k:new p(65536),g:new p(32768)}}(),function(){const p=d.H.m;for(var g=0;g<32768;g++){let w=g;w=(2863311530&w)>>>1|(1431655765&w)<<1,w=(3435973836&w)>>>2|(858993459&w)<<2,w=(4042322160&w)>>>4|(252645135&w)<<4,w=(4278255360&w)>>>8|(16711935&w)<<8,p.r[g]=(w>>>16|w<<16)>>>17}function f(w,N,C){for(;N--!=0;)w.push(0,C)}for(g=0;g<32;g++)p.q[g]=p.S[g]<<3|p.T[g],p.c[g]=p.p[g]<<4|p.z[g];f(p._,144,8),f(p._,112,9),f(p._,24,7),f(p._,8,8),d.H.n(p._,9),d.H.A(p._,9,p.J),d.H.l(p._,9),f(p.$,32,5),d.H.n(p.$,5),d.H.A(p.$,5,p.h),d.H.l(p.$,5),f(p.Q,19,0),f(p.C,286,0),f(p.D,30,0),f(p.v,320,0)}(),d.H.N}();function r(d){return[1,null,3,1,2,null,4][d.ctype]*d.depth}function s(d,p,g,f,w){let N=r(p);const C=Math.ceil(f*N/8);let y,M;N=Math.ceil(N/8);let z=d[g],G=0;if(z>1&&(d[g]=[0,0,1][z-2]),z==3)for(G=N;G<C;G++)d[G+1]=d[G+1]+(d[G+1-N]>>>1)&255;for(let $=0;$<w;$++)if(y=g+$*C,M=y+$+1,z=d[M-1],G=0,z==0)for(;G<C;G++)d[y+G]=d[M+G];else if(z==1){for(;G<N;G++)d[y+G]=d[M+G];for(;G<C;G++)d[y+G]=d[M+G]+d[y+G-N]}else if(z==2)for(;G<C;G++)d[y+G]=d[M+G]+d[y+G-C];else if(z==3){for(;G<N;G++)d[y+G]=d[M+G]+(d[y+G-C]>>>1);for(;G<C;G++)d[y+G]=d[M+G]+(d[y+G-C]+d[y+G-N]>>>1)}else{for(;G<N;G++)d[y+G]=d[M+G]+u(0,d[y+G-C],0);for(;G<C;G++)d[y+G]=d[M+G]+u(d[y+G-N],d[y+G-C],d[y+G-N-C])}return d}function u(d,p,g){const f=d+p-g,w=f-d,N=f-p,C=f-g;return w*w<=N*N&&w*w<=C*C?d:N*N<=C*C?p:g}function c(d,p,g){g.width=e.readUint(d,p),p+=4,g.height=e.readUint(d,p),p+=4,g.depth=d[p],p++,g.ctype=d[p],p++,g.compress=d[p],p++,g.filter=d[p],p++,g.interlace=d[p],p++}function m(d,p,g,f,w,N,C,y,M){const z=Math.min(p,w),G=Math.min(g,N);let $=0,W=0;for(let Y=0;Y<G;Y++)for(let E=0;E<z;E++)if(C>=0&&y>=0?($=Y*p+E<<2,W=(y+Y)*w+C+E<<2):($=(-y+Y)*p-C+E<<2,W=Y*w+E<<2),M==0)f[W]=d[$],f[W+1]=d[$+1],f[W+2]=d[$+2],f[W+3]=d[$+3];else if(M==1){var Q=d[$+3]*.00392156862745098,x=d[$]*Q,k=d[$+1]*Q,H=d[$+2]*Q,A=f[W+3]*(1/255),L=f[W]*A,B=f[W+1]*A,F=f[W+2]*A;const I=1-Q,X=Q+A*I,J=X==0?0:1/X;f[W+3]=255*X,f[W+0]=(x+L*I)*J,f[W+1]=(k+B*I)*J,f[W+2]=(H+F*I)*J}else if(M==2)Q=d[$+3],x=d[$],k=d[$+1],H=d[$+2],A=f[W+3],L=f[W],B=f[W+1],F=f[W+2],Q==A&&x==L&&k==B&&H==F?(f[W]=0,f[W+1]=0,f[W+2]=0,f[W+3]=0):(f[W]=x,f[W+1]=k,f[W+2]=H,f[W+3]=Q);else if(M==3){if(Q=d[$+3],x=d[$],k=d[$+1],H=d[$+2],A=f[W+3],L=f[W],B=f[W+1],F=f[W+2],Q==A&&x==L&&k==B&&H==F)continue;if(Q<220&&A>20)return!1}return!0}return{decode:function(p){const g=new Uint8Array(p);let f=8;const w=e,N=w.readUshort,C=w.readUint,y={tabs:{},frames:[]},M=new Uint8Array(g.length);let z,G=0,$=0;const W=[137,80,78,71,13,10,26,10];for(var Q=0;Q<8;Q++)if(g[Q]!=W[Q])throw"The input is not a PNG file!";for(;f<g.length;){const Y=w.readUint(g,f);f+=4;const E=w.readASCII(g,f,4);if(f+=4,E=="IHDR")c(g,f,y);else if(E=="iCCP"){for(var x=f;g[x]!=0;)x++;w.readASCII(g,f,x-f),g[x+1];const I=g.slice(x+2,f+Y);let X=null;try{X=i(I)}catch(J){X=o(I)}y.tabs[E]=X}else if(E=="CgBI")y.tabs[E]=g.slice(f,f+4);else if(E=="IDAT"){for(Q=0;Q<Y;Q++)M[G+Q]=g[f+Q];G+=Y}else if(E=="acTL")y.tabs[E]={num_frames:C(g,f),num_plays:C(g,f+4)},z=new Uint8Array(g.length);else if(E=="fcTL"){$!=0&&((F=y.frames[y.frames.length-1]).data=n(y,z.slice(0,$),F.rect.width,F.rect.height),$=0);const I={x:C(g,f+12),y:C(g,f+16),width:C(g,f+4),height:C(g,f+8)};let X=N(g,f+22);X=N(g,f+20)/(X==0?100:X);const J={rect:I,delay:Math.round(1e3*X),dispose:g[f+24],blend:g[f+25]};y.frames.push(J)}else if(E=="fdAT"){for(Q=0;Q<Y-4;Q++)z[$+Q]=g[f+Q+4];$+=Y-4}else if(E=="pHYs")y.tabs[E]=[w.readUint(g,f),w.readUint(g,f+4),g[f+8]];else if(E=="cHRM")for(y.tabs[E]=[],Q=0;Q<8;Q++)y.tabs[E].push(w.readUint(g,f+4*Q));else if(E=="tEXt"||E=="zTXt"){y.tabs[E]==null&&(y.tabs[E]={});var k=w.nextZero(g,f),H=w.readASCII(g,f,k-f),A=f+Y-k-1;if(E=="tEXt")B=w.readASCII(g,k+1,A);else{var L=i(g.slice(k+2,k+2+A));B=w.readUTF8(L,0,L.length)}y.tabs[E][H]=B}else if(E=="iTXt"){y.tabs[E]==null&&(y.tabs[E]={}),k=0,x=f,k=w.nextZero(g,x),H=w.readASCII(g,x,k-x);const I=g[x=k+1];var B;g[x+1],x+=2,k=w.nextZero(g,x),w.readASCII(g,x,k-x),x=k+1,k=w.nextZero(g,x),w.readUTF8(g,x,k-x),A=Y-((x=k+1)-f),I==0?B=w.readUTF8(g,x,A):(L=i(g.slice(x,x+A)),B=w.readUTF8(L,0,L.length)),y.tabs[E][H]=B}else if(E=="PLTE")y.tabs[E]=w.readBytes(g,f,Y);else if(E=="hIST"){const I=y.tabs.PLTE.length/3;for(y.tabs[E]=[],Q=0;Q<I;Q++)y.tabs[E].push(N(g,f+2*Q))}else if(E=="tRNS")y.ctype==3?y.tabs[E]=w.readBytes(g,f,Y):y.ctype==0?y.tabs[E]=N(g,f):y.ctype==2&&(y.tabs[E]=[N(g,f),N(g,f+2),N(g,f+4)]);else if(E=="gAMA")y.tabs[E]=w.readUint(g,f)/1e5;else if(E=="sRGB")y.tabs[E]=g[f];else if(E=="bKGD")y.ctype==0||y.ctype==4?y.tabs[E]=[N(g,f)]:y.ctype==2||y.ctype==6?y.tabs[E]=[N(g,f),N(g,f+2),N(g,f+4)]:y.ctype==3&&(y.tabs[E]=g[f]);else if(E=="IEND")break;f+=Y,w.readUint(g,f),f+=4}var F;return $!=0&&((F=y.frames[y.frames.length-1]).data=n(y,z.slice(0,$),F.rect.width,F.rect.height)),y.data=n(y,M,y.width,y.height),delete y.compress,delete y.interlace,delete y.filter,y},toRGBA8:function(p){const g=p.width,f=p.height;if(p.tabs.acTL==null)return[t(p.data,g,f,p).buffer];const w=[];p.frames[0].data==null&&(p.frames[0].data=p.data);const N=g*f*4,C=new Uint8Array(N),y=new Uint8Array(N),M=new Uint8Array(N);for(let G=0;G<p.frames.length;G++){const $=p.frames[G],W=$.rect.x,Q=$.rect.y,x=$.rect.width,k=$.rect.height,H=t($.data,x,k,p);if(G!=0)for(var z=0;z<N;z++)M[z]=C[z];if($.blend==0?m(H,x,k,C,g,f,W,Q,0):$.blend==1&&m(H,x,k,C,g,f,W,Q,1),w.push(C.buffer.slice(0)),$.dispose!=0){if($.dispose==1)m(y,x,k,C,g,f,W,Q,0);else if($.dispose==2)for(z=0;z<N;z++)C[z]=M[z]}}return w},_paeth:u,_copyTile:m,_bin:e}}();(function(){const{_copyTile:e}=Hn,{_bin:t}=Hn,n=Hn._paeth;var i={table:function(){const x=new Uint32Array(256);for(let k=0;k<256;k++){let H=k;for(let A=0;A<8;A++)1&H?H=3988292384^H>>>1:H>>>=1;x[k]=H}return x}(),update(x,k,H,A){for(let L=0;L<A;L++)x=i.table[255&(x^k[H+L])]^x>>>8;return x},crc:(x,k,H)=>4294967295^i.update(4294967295,x,k,H)};function o(x,k,H,A){k[H]+=x[0]*A>>4,k[H+1]+=x[1]*A>>4,k[H+2]+=x[2]*A>>4,k[H+3]+=x[3]*A>>4}function r(x){return Math.max(0,Math.min(255,x))}function s(x,k){const H=x[0]-k[0],A=x[1]-k[1],L=x[2]-k[2],B=x[3]-k[3];return H*H+A*A+L*L+B*B}function u(x,k,H,A,L,B,F){F==null&&(F=1);const Y=A.length,E=[];for(var I=0;I<Y;I++){const U=A[I];E.push([U>>>0&255,U>>>8&255,U>>>16&255,U>>>24&255])}for(I=0;I<Y;I++){let U=4294967295;for(var X=0,J=0;J<Y;J++){var tt=s(E[I],E[J]);J!=I&&tt<U&&(U=tt,X=J)}}const gt=new Uint32Array(L.buffer),_=new Int16Array(k*H*4),R=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(I=0;I<R.length;I++)R[I]=255*((R[I]+.5)/16-.5);for(let U=0;U<H;U++)for(let et=0;et<k;et++){var q;I=4*(U*k+et),F!=2?q=[r(x[I]+_[I]),r(x[I+1]+_[I+1]),r(x[I+2]+_[I+2]),r(x[I+3]+_[I+3])]:(tt=R[4*(3&U)+(3&et)],q=[r(x[I]+tt),r(x[I+1]+tt),r(x[I+2]+tt),r(x[I+3]+tt)]),X=0;let st=16777215;for(J=0;J<Y;J++){const wt=s(q,E[J]);wt<st&&(st=wt,X=J)}const lt=E[X],ut=[q[0]-lt[0],q[1]-lt[1],q[2]-lt[2],q[3]-lt[3]];F==1&&(et!=k-1&&o(ut,_,I+4,7),U!=H-1&&(et!=0&&o(ut,_,I+4*k-4,3),o(ut,_,I+4*k,5),et!=k-1&&o(ut,_,I+4*k+4,1))),B[I>>2]=X,gt[I>>2]=A[X]}}function c(x,k,H,A,L){L==null&&(L={});const{crc:B}=i,F=t.writeUint,Y=t.writeUshort,E=t.writeASCII;let I=8;const X=x.frames.length>1;let J,tt=!1,gt=33+(X?20:0);if(L.sRGB!=null&&(gt+=13),L.pHYs!=null&&(gt+=21),L.iCCP!=null&&(J=pako.deflate(L.iCCP),gt+=21+J.length+4),x.ctype==3){for(var _=x.plte.length,R=0;R<_;R++)x.plte[R]>>>24!=255&&(tt=!0);gt+=8+3*_+4+(tt?8+1*_+4:0)}for(var q=0;q<x.frames.length;q++)X&&(gt+=38),gt+=(lt=x.frames[q]).cimg.length+12,q!=0&&(gt+=4);gt+=12;const U=new Uint8Array(gt),et=[137,80,78,71,13,10,26,10];for(R=0;R<8;R++)U[R]=et[R];if(F(U,I,13),I+=4,E(U,I,"IHDR"),I+=4,F(U,I,k),I+=4,F(U,I,H),I+=4,U[I]=x.depth,I++,U[I]=x.ctype,I++,U[I]=0,I++,U[I]=0,I++,U[I]=0,I++,F(U,I,B(U,I-17,17)),I+=4,L.sRGB!=null&&(F(U,I,1),I+=4,E(U,I,"sRGB"),I+=4,U[I]=L.sRGB,I++,F(U,I,B(U,I-5,5)),I+=4),L.iCCP!=null){const ut=13+J.length;F(U,I,ut),I+=4,E(U,I,"iCCP"),I+=4,E(U,I,"ICC profile"),I+=11,I+=2,U.set(J,I),I+=J.length,F(U,I,B(U,I-(ut+4),ut+4)),I+=4}if(L.pHYs!=null&&(F(U,I,9),I+=4,E(U,I,"pHYs"),I+=4,F(U,I,L.pHYs[0]),I+=4,F(U,I,L.pHYs[1]),I+=4,U[I]=L.pHYs[2],I++,F(U,I,B(U,I-13,13)),I+=4),X&&(F(U,I,8),I+=4,E(U,I,"acTL"),I+=4,F(U,I,x.frames.length),I+=4,F(U,I,L.loop!=null?L.loop:0),I+=4,F(U,I,B(U,I-12,12)),I+=4),x.ctype==3){for(F(U,I,3*(_=x.plte.length)),I+=4,E(U,I,"PLTE"),I+=4,R=0;R<_;R++){const ut=3*R,wt=x.plte[R],bt=255&wt,St=wt>>>8&255,Ft=wt>>>16&255;U[I+ut+0]=bt,U[I+ut+1]=St,U[I+ut+2]=Ft}if(I+=3*_,F(U,I,B(U,I-3*_-4,3*_+4)),I+=4,tt){for(F(U,I,_),I+=4,E(U,I,"tRNS"),I+=4,R=0;R<_;R++)U[I+R]=x.plte[R]>>>24&255;I+=_,F(U,I,B(U,I-_-4,_+4)),I+=4}}let st=0;for(q=0;q<x.frames.length;q++){var lt=x.frames[q];X&&(F(U,I,26),I+=4,E(U,I,"fcTL"),I+=4,F(U,I,st++),I+=4,F(U,I,lt.rect.width),I+=4,F(U,I,lt.rect.height),I+=4,F(U,I,lt.rect.x),I+=4,F(U,I,lt.rect.y),I+=4,Y(U,I,A[q]),I+=2,Y(U,I,1e3),I+=2,U[I]=lt.dispose,I++,U[I]=lt.blend,I++,F(U,I,B(U,I-30,30)),I+=4);const ut=lt.cimg;F(U,I,(_=ut.length)+(q==0?0:4)),I+=4;const wt=I;E(U,I,q==0?"IDAT":"fdAT"),I+=4,q!=0&&(F(U,I,st++),I+=4),U.set(ut,I),I+=_,F(U,I,B(U,wt,I-wt)),I+=4}return F(U,I,0),I+=4,E(U,I,"IEND"),I+=4,F(U,I,B(U,I-4,4)),I+=4,U.buffer}function m(x,k,H){for(let A=0;A<x.frames.length;A++){const L=x.frames[A];L.rect.width;const B=L.rect.height,F=new Uint8Array(B*L.bpl+B);L.cimg=f(L.img,B,L.bpp,L.bpl,F,k,H)}}function d(x,k,H,A,L){const B=L[0],F=L[1],Y=L[2],E=L[3],I=L[4],X=L[5];let J=6,tt=8,gt=255;for(var _=0;_<x.length;_++){const K=new Uint8Array(x[_]);for(var R=K.length,q=0;q<R;q+=4)gt&=K[q+3]}const U=gt!=255,et=function(Tt,It,xt,_t,Pt,kt){const jt=[];for(var Bt=0;Bt<Tt.length;Bt++){const Wt=new Uint8Array(Tt[Bt]),Ct=new Uint32Array(Wt.buffer);var Ut;let ge=0,ne=0,Ce=It,se=xt,be=_t?1:0;if(Bt!=0){const In=kt||_t||Bt==1||jt[Bt-2].dispose!=0?1:2;let le=0,ir=1e9;for(let ye=0;ye<In;ye++){var Zt=new Uint8Array(Tt[Bt-1-ye]);const An=new Uint32Array(Tt[Bt-1-ye]);let Ye=It,he=xt,Vt=-1,ae=-1;for(let Pe=0;Pe<xt;Pe++)for(let Qe=0;Qe<It;Qe++)Ct[Xt=Pe*It+Qe]!=An[Xt]&&(Qe<Ye&&(Ye=Qe),Qe>Vt&&(Vt=Qe),Pe<he&&(he=Pe),Pe>ae&&(ae=Pe));Vt==-1&&(Ye=he=Vt=ae=0),Pt&&((1&Ye)==1&&Ye--,(1&he)==1&&he--);const ar=(Vt-Ye+1)*(ae-he+1);ar<ir&&(ir=ar,le=ye,ge=Ye,ne=he,Ce=Vt-Ye+1,se=ae-he+1)}Zt=new Uint8Array(Tt[Bt-1-le]),le==1&&(jt[Bt-1].dispose=2),Ut=new Uint8Array(Ce*se*4),e(Zt,It,xt,Ut,Ce,se,-ge,-ne,0),be=e(Wt,It,xt,Ut,Ce,se,-ge,-ne,3)?1:0,be==1?g(Wt,It,xt,Ut,{x:ge,y:ne,width:Ce,height:se}):e(Wt,It,xt,Ut,Ce,se,-ge,-ne,0)}else Ut=Wt.slice(0);jt.push({rect:{x:ge,y:ne,width:Ce,height:se},img:Ut,blend:be,dispose:0})}if(_t)for(Bt=0;Bt<jt.length;Bt++){if((zt=jt[Bt]).blend==1)continue;const Wt=zt.rect,Ct=jt[Bt-1].rect,ge=Math.min(Wt.x,Ct.x),ne=Math.min(Wt.y,Ct.y),Ce={x:ge,y:ne,width:Math.max(Wt.x+Wt.width,Ct.x+Ct.width)-ge,height:Math.max(Wt.y+Wt.height,Ct.y+Ct.height)-ne};jt[Bt-1].dispose=1,Bt-1!=0&&p(Tt,It,xt,jt,Bt-1,Ce,Pt),p(Tt,It,xt,jt,Bt,Ce,Pt)}let ie=0;if(Tt.length!=1)for(var Xt=0;Xt<jt.length;Xt++){var zt;ie+=(zt=jt[Xt]).rect.width*zt.rect.height}return jt}(x,k,H,B,F,Y),st={},lt=[],ut=[];if(A!=0){const K=[];for(q=0;q<et.length;q++)K.push(et[q].img.buffer);const Tt=function(Pt){let kt=0;for(var jt=0;jt<Pt.length;jt++)kt+=Pt[jt].byteLength;const Bt=new Uint8Array(kt);let Ut=0;for(jt=0;jt<Pt.length;jt++){const Zt=new Uint8Array(Pt[jt]),ie=Zt.length;for(let Xt=0;Xt<ie;Xt+=4){let zt=Zt[Xt],Wt=Zt[Xt+1],Ct=Zt[Xt+2];const ge=Zt[Xt+3];ge==0&&(zt=Wt=Ct=0),Bt[Ut+Xt]=zt,Bt[Ut+Xt+1]=Wt,Bt[Ut+Xt+2]=Ct,Bt[Ut+Xt+3]=ge}Ut+=ie}return Bt.buffer}(K),It=N(Tt,A);for(q=0;q<It.plte.length;q++)lt.push(It.plte[q].est.rgba);let xt=0;for(q=0;q<et.length;q++){const _t=(bt=et[q]).img.length;var wt=new Uint8Array(It.inds.buffer,xt>>2,_t>>2);ut.push(wt);const Pt=new Uint8Array(It.abuf,xt,_t);X&&u(bt.img,bt.rect.width,bt.rect.height,lt,Pt,wt),bt.img.set(Pt),xt+=_t}}else for(_=0;_<et.length;_++){var bt=et[_];const K=new Uint32Array(bt.img.buffer);var St=bt.rect.width;for(R=K.length,wt=new Uint8Array(R),ut.push(wt),q=0;q<R;q++){const Tt=K[q];if(q!=0&&Tt==K[q-1])wt[q]=wt[q-1];else if(q>St&&Tt==K[q-St])wt[q]=wt[q-St];else{let It=st[Tt];if(It==null&&(st[Tt]=It=lt.length,lt.push(Tt),lt.length>=300))break;wt[q]=It}}}const Ft=lt.length;for(Ft<=256&&I==0&&(tt=Ft<=2?1:Ft<=4?2:Ft<=16?4:8,tt=Math.max(tt,E)),_=0;_<et.length;_++){(bt=et[_]).rect.x,bt.rect.y,St=bt.rect.width;const K=bt.rect.height;let Tt=bt.img;new Uint32Array(Tt.buffer);let It=4*St,xt=4;if(Ft<=256&&I==0){It=Math.ceil(tt*St/8);var qt=new Uint8Array(It*K);const _t=ut[_];for(let Pt=0;Pt<K;Pt++){q=Pt*It;const kt=Pt*St;if(tt==8)for(var dt=0;dt<St;dt++)qt[q+dt]=_t[kt+dt];else if(tt==4)for(dt=0;dt<St;dt++)qt[q+(dt>>1)]|=_t[kt+dt]<<4-4*(1&dt);else if(tt==2)for(dt=0;dt<St;dt++)qt[q+(dt>>2)]|=_t[kt+dt]<<6-2*(3&dt);else if(tt==1)for(dt=0;dt<St;dt++)qt[q+(dt>>3)]|=_t[kt+dt]<<7-1*(7&dt)}Tt=qt,J=3,xt=1}else if(U==0&&et.length==1){qt=new Uint8Array(St*K*3);const _t=St*K;for(q=0;q<_t;q++){const Pt=3*q,kt=4*q;qt[Pt]=Tt[kt],qt[Pt+1]=Tt[kt+1],qt[Pt+2]=Tt[kt+2]}Tt=qt,J=2,xt=3,It=3*St}bt.img=Tt,bt.bpl=It,bt.bpp=xt}return{ctype:J,depth:tt,plte:lt,frames:et}}function p(x,k,H,A,L,B,F){const Y=Uint8Array,E=Uint32Array,I=new Y(x[L-1]),X=new E(x[L-1]),J=L+1<x.length?new Y(x[L+1]):null,tt=new Y(x[L]),gt=new E(tt.buffer);let _=k,R=H,q=-1,U=-1;for(let st=0;st<B.height;st++)for(let lt=0;lt<B.width;lt++){const ut=B.x+lt,wt=B.y+st,bt=wt*k+ut,St=gt[bt];St==0||A[L-1].dispose==0&&X[bt]==St&&(J==null||J[4*bt+3]!=0)||(ut<_&&(_=ut),ut>q&&(q=ut),wt<R&&(R=wt),wt>U&&(U=wt))}q==-1&&(_=R=q=U=0),F&&((1&_)==1&&_--,(1&R)==1&&R--),B={x:_,y:R,width:q-_+1,height:U-R+1};const et=A[L];et.rect=B,et.blend=1,et.img=new Uint8Array(B.width*B.height*4),A[L-1].dispose==0?(e(I,k,H,et.img,B.width,B.height,-B.x,-B.y,0),g(tt,k,H,et.img,B)):e(tt,k,H,et.img,B.width,B.height,-B.x,-B.y,0)}function g(x,k,H,A,L){e(x,k,H,A,L.width,L.height,-L.x,-L.y,2)}function f(x,k,H,A,L,B,F){const Y=[];let E,I=[0,1,2,3,4];B!=-1?I=[B]:(k*A>5e5||H==1)&&(I=[0]),F&&(E={level:0});const X=df;for(var J=0;J<I.length;J++){for(let _=0;_<k;_++)w(L,x,_,A,H,I[J]);Y.push(X.deflate(L,E))}let tt,gt=1e9;for(J=0;J<Y.length;J++)Y[J].length<gt&&(tt=J,gt=Y[J].length);return Y[tt]}function w(x,k,H,A,L,B){const F=H*A;let Y=F+H;if(x[Y]=B,Y++,B==0)if(A<500)for(var E=0;E<A;E++)x[Y+E]=k[F+E];else x.set(new Uint8Array(k.buffer,F,A),Y);else if(B==1){for(E=0;E<L;E++)x[Y+E]=k[F+E];for(E=L;E<A;E++)x[Y+E]=k[F+E]-k[F+E-L]+256&255}else if(H==0){for(E=0;E<L;E++)x[Y+E]=k[F+E];if(B==2)for(E=L;E<A;E++)x[Y+E]=k[F+E];if(B==3)for(E=L;E<A;E++)x[Y+E]=k[F+E]-(k[F+E-L]>>1)+256&255;if(B==4)for(E=L;E<A;E++)x[Y+E]=k[F+E]-n(k[F+E-L],0,0)+256&255}else{if(B==2)for(E=0;E<A;E++)x[Y+E]=k[F+E]+256-k[F+E-A]&255;if(B==3){for(E=0;E<L;E++)x[Y+E]=k[F+E]+256-(k[F+E-A]>>1)&255;for(E=L;E<A;E++)x[Y+E]=k[F+E]+256-(k[F+E-A]+k[F+E-L]>>1)&255}if(B==4){for(E=0;E<L;E++)x[Y+E]=k[F+E]+256-n(0,k[F+E-A],0)&255;for(E=L;E<A;E++)x[Y+E]=k[F+E]+256-n(k[F+E-L],k[F+E-A],k[F+E-L-A])&255}}}function N(x,k){const H=new Uint8Array(x),A=H.slice(0),L=new Uint32Array(A.buffer),B=C(A,k),F=B[0],Y=B[1],E=H.length,I=new Uint8Array(E>>2);let X;if(H.length<2e7)for(var J=0;J<E;J+=4)X=y(F,tt=H[J]*(1/255),gt=H[J+1]*(1/255),_=H[J+2]*(1/255),R=H[J+3]*(1/255)),I[J>>2]=X.ind,L[J>>2]=X.est.rgba;else for(J=0;J<E;J+=4){var tt=H[J]*.00392156862745098,gt=H[J+1]*(1/255),_=H[J+2]*(1/255),R=H[J+3]*(1/255);for(X=F;X.left;)X=M(X.est,tt,gt,_,R)<=0?X.left:X.right;I[J>>2]=X.ind,L[J>>2]=X.est.rgba}return{abuf:A.buffer,inds:I,plte:Y}}function C(x,k,H){H==null&&(H=1e-4);const A=new Uint32Array(x.buffer),L={i0:0,i1:x.length,bst:null,est:null,tdst:0,left:null,right:null};L.bst=$(x,L.i0,L.i1),L.est=W(L.bst);const B=[L];for(;B.length<k;){let Y=0,E=0;for(var F=0;F<B.length;F++)B[F].est.L>Y&&(Y=B[F].est.L,E=F);if(Y<H)break;const I=B[E],X=z(x,A,I.i0,I.i1,I.est.e,I.est.eMq255);if(I.i0>=X||I.i1<=X){I.est.L=0;continue}const J={i0:I.i0,i1:X,bst:null,est:null,tdst:0,left:null,right:null};J.bst=$(x,J.i0,J.i1),J.est=W(J.bst);const tt={i0:X,i1:I.i1,bst:null,est:null,tdst:0,left:null,right:null};for(tt.bst={R:[],m:[],N:I.bst.N-J.bst.N},F=0;F<16;F++)tt.bst.R[F]=I.bst.R[F]-J.bst.R[F];for(F=0;F<4;F++)tt.bst.m[F]=I.bst.m[F]-J.bst.m[F];tt.est=W(tt.bst),I.left=J,I.right=tt,B[E]=J,B.push(tt)}for(B.sort((Y,E)=>E.bst.N-Y.bst.N),F=0;F<B.length;F++)B[F].ind=F;return[L,B]}function y(x,k,H,A,L){if(x.left==null)return x.tdst=function(J,tt,gt,_,R){const q=tt-J[0],U=gt-J[1],et=_-J[2],st=R-J[3];return q*q+U*U+et*et+st*st}(x.est.q,k,H,A,L),x;const B=M(x.est,k,H,A,L);let F=x.left,Y=x.right;B>0&&(F=x.right,Y=x.left);const E=y(F,k,H,A,L);if(E.tdst<=B*B)return E;const I=y(Y,k,H,A,L);return I.tdst<E.tdst?I:E}function M(x,k,H,A,L){const{e:B}=x;return B[0]*k+B[1]*H+B[2]*A+B[3]*L-x.eMq}function z(x,k,H,A,L,B){for(A-=4;H<A;){for(;G(x,H,L)<=B;)H+=4;for(;G(x,A,L)>B;)A-=4;if(H>=A)break;const F=k[H>>2];k[H>>2]=k[A>>2],k[A>>2]=F,H+=4,A-=4}for(;G(x,H,L)>B;)H-=4;return H+4}function G(x,k,H){return x[k]*H[0]+x[k+1]*H[1]+x[k+2]*H[2]+x[k+3]*H[3]}function $(x,k,H){const A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],L=[0,0,0,0],B=H-k>>2;for(let F=k;F<H;F+=4){const Y=x[F]*.00392156862745098,E=x[F+1]*(1/255),I=x[F+2]*(1/255),X=x[F+3]*(1/255);L[0]+=Y,L[1]+=E,L[2]+=I,L[3]+=X,A[0]+=Y*Y,A[1]+=Y*E,A[2]+=Y*I,A[3]+=Y*X,A[5]+=E*E,A[6]+=E*I,A[7]+=E*X,A[10]+=I*I,A[11]+=I*X,A[15]+=X*X}return A[4]=A[1],A[8]=A[2],A[9]=A[6],A[12]=A[3],A[13]=A[7],A[14]=A[11],{R:A,m:L,N:B}}function W(x){const{R:k}=x,{m:H}=x,{N:A}=x,L=H[0],B=H[1],F=H[2],Y=H[3],E=A==0?0:1/A,I=[k[0]-L*L*E,k[1]-L*B*E,k[2]-L*F*E,k[3]-L*Y*E,k[4]-B*L*E,k[5]-B*B*E,k[6]-B*F*E,k[7]-B*Y*E,k[8]-F*L*E,k[9]-F*B*E,k[10]-F*F*E,k[11]-F*Y*E,k[12]-Y*L*E,k[13]-Y*B*E,k[14]-Y*F*E,k[15]-Y*Y*E],X=I,J=Q;let tt=[Math.random(),Math.random(),Math.random(),Math.random()],gt=0,_=0;if(A!=0)for(let q=0;q<16&&(tt=J.multVec(X,tt),_=Math.sqrt(J.dot(tt,tt)),tt=J.sml(1/_,tt),!(q!=0&&Math.abs(_-gt)<1e-9));q++)gt=_;const R=[L*E,B*E,F*E,Y*E];return{Cov:I,q:R,e:tt,L:gt,eMq255:J.dot(J.sml(255,R),tt),eMq:J.dot(tt,R),rgba:(Math.round(255*R[3])<<24|Math.round(255*R[2])<<16|Math.round(255*R[1])<<8|Math.round(255*R[0])<<0)>>>0}}var Q={multVec:(x,k)=>[x[0]*k[0]+x[1]*k[1]+x[2]*k[2]+x[3]*k[3],x[4]*k[0]+x[5]*k[1]+x[6]*k[2]+x[7]*k[3],x[8]*k[0]+x[9]*k[1]+x[10]*k[2]+x[11]*k[3],x[12]*k[0]+x[13]*k[1]+x[14]*k[2]+x[15]*k[3]],dot:(x,k)=>x[0]*k[0]+x[1]*k[1]+x[2]*k[2]+x[3]*k[3],sml:(x,k)=>[x*k[0],x*k[1],x*k[2],x*k[3]]};Hn.encode=function(k,H,A,L,B,F,Y){L==null&&(L=0),Y==null&&(Y=!1);const E=d(k,H,A,L,[!1,!1,!1,0,Y,!1]);return m(E,-1),c(E,H,A,B,F)},Hn.encodeLL=function(k,H,A,L,B,F,Y,E){const I={ctype:0+(L==1?0:2)+(B==0?0:4),depth:F,frames:[]},X=(L+B)*F,J=X*H;for(let tt=0;tt<k.length;tt++)I.frames.push({rect:{x:0,y:0,width:H,height:A},img:new Uint8Array(k[tt]),blend:0,dispose:1,bpp:Math.ceil(X/8),bpl:Math.ceil(J/8)});return m(I,0,!0),c(I,H,A,Y,E)},Hn.encode.compress=d,Hn.encode.dither=u,Hn.quantize=N,Hn.quantize.getKDtree=C,Hn.quantize.getNearest=y})();const kl={toArrayBuffer(e,t){const n=e.width,i=e.height,o=n<<2,r=e.getContext("2d").getImageData(0,0,n,i),s=new Uint32Array(r.data.buffer),u=(32*n+31)/32<<2,c=u*i,m=122+c,d=new ArrayBuffer(m),p=new DataView(d),g=1<<20;let f,w,N,C,y=g,M=0,z=0,G=0;function $(x){p.setUint16(z,x,!0),z+=2}function W(x){p.setUint32(z,x,!0),z+=4}function Q(x){z+=x}$(19778),W(m),Q(4),W(122),W(108),W(n),W(-i>>>0),$(1),$(32),W(3),W(c),W(2835),W(2835),Q(8),W(16711680),W(65280),W(255),W(4278190080),W(1466527264),function x(){for(;M<i&&y>0;){for(C=122+M*u,f=0;f<o;)y--,w=s[G++],N=w>>>24,p.setUint32(C+f,w<<8|N),f+=4;M++}G<s.length?(y=g,setTimeout(x,kl._dly)):t(d)}()},toBlob(e,t){this.toArrayBuffer(e,n=>{t(new Blob([n],{type:"image/bmp"}))})},_dly:9};var pn={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},pf={[pn.CHROME]:16384,[pn.FIREFOX]:11180,[pn.DESKTOP_SAFARI]:16384,[pn.IE]:8192,[pn.IOS]:4096,[pn.ETC]:8192};const Os=typeof window<"u",Il=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,fo=Os&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),gf=(Os||Il)&&(fo&&fo.getOriginalSymbol(window,"File")||typeof File<"u"&&File),Fl=(Os||Il)&&(fo&&fo.getOriginalSymbol(window,"FileReader")||typeof FileReader<"u"&&FileReader);function Ms(e,t,n){return n===void 0&&(n=Date.now()),new Promise(i=>{const o=e.split(","),r=o[0].match(/:(.*?);/)[1],s=globalThis.atob(o[1]);let u=s.length;const c=new Uint8Array(u);for(;u--;)c[u]=s.charCodeAt(u);const m=new Blob([c],{type:r});m.name=t,m.lastModified=n,i(m)})}function Cl(e){return new Promise((t,n)=>{const i=new Fl;i.onload=()=>t(i.result),i.onerror=o=>n(o),i.readAsDataURL(e)})}function El(e){return new Promise((t,n)=>{const i=new Image;i.onload=()=>t(i),i.onerror=o=>n(o),i.src=e})}function Zr(){if(Zr.cachedResult!==void 0)return Zr.cachedResult;let e=pn.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=pn.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=pn.IOS:/Safari/i.test(t)?e=pn.DESKTOP_SAFARI:/Firefox/i.test(t)?e=pn.FIREFOX:(/MSIE/i.test(t)||document.documentMode)&&(e=pn.IE),Zr.cachedResult=e,Zr.cachedResult}function jl(e,t){const n=Zr(),i=pf[n];let o=e,r=t,s=o*r;const u=o>r?r/o:o/r;for(;s>i*i;){const c=(i+o)/2,m=(i+r)/2;c<m?(r=m,o=m*u):(r=c*u,o=c),s=o*r}return{width:o,height:r}}function ho(e,t){let n,i;try{if(n=new OffscreenCanvas(e,t),i=n.getContext("2d"),i===null)throw new Error("getContext of OffscreenCanvas returns null")}catch(o){n=document.createElement("canvas"),i=n.getContext("2d")}return n.width=e,n.height=t,[n,i]}function Ol(e,t){const{width:n,height:i}=jl(e.width,e.height),[o,r]=ho(n,i);return t&&/jpe?g/.test(t)&&(r.fillStyle="white",r.fillRect(0,0,o.width,o.height)),r.drawImage(e,0,0,o.width,o.height),o}function po(){return po.cachedResult!==void 0||(po.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof document<"u"&&"ontouchend"in document),po.cachedResult}function go(e,t){return t===void 0&&(t={}),new Promise(function(n,i){let o,r;var s=function(){try{return r=Ol(o,t.fileType||e.type),n([o,r])}catch(c){return i(c)}},u=function(c){try{var m=function(d){try{throw d}catch(p){return i(p)}};try{let d;return Cl(e).then(function(p){try{return d=p,El(d).then(function(g){try{return o=g,function(){try{return s()}catch(f){return i(f)}}()}catch(f){return m(f)}},m)}catch(g){return m(g)}},m)}catch(d){m(d)}}catch(d){return i(d)}};try{if(po()||[pn.DESKTOP_SAFARI,pn.MOBILE_SAFARI].includes(Zr()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(c){try{return o=c,s()}catch(m){return u()}},u)}catch(c){u()}})}function vo(e,t,n,i,o){return o===void 0&&(o=1),new Promise(function(r,s){let u;if(t==="image/png"){let p,g,f;return p=e.getContext("2d"),{data:g}=p.getImageData(0,0,e.width,e.height),f=Hn.encode([g.buffer],e.width,e.height,4096*o),u=new Blob([f],{type:t}),u.name=n,u.lastModified=i,c.call(this)}{let p=function(){return c.call(this)};var m=p;if(t==="image/bmp")return new Promise(g=>kl.toBlob(e,g)).then((function(g){try{return u=g,u.name=n,u.lastModified=i,p.call(this)}catch(f){return s(f)}}).bind(this),s);{let g=function(){return p.call(this)};var d=g;if(typeof OffscreenCanvas=="function"&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:o}).then((function(f){try{return u=f,u.name=n,u.lastModified=i,g.call(this)}catch(w){return s(w)}}).bind(this),s);{let f;return f=e.toDataURL(t,o),Ms(f,n,i).then((function(w){try{return u=w,g.call(this)}catch(N){return s(N)}}).bind(this),s)}}}function c(){return r(u)}})}function rr(e){e.width=0,e.height=0}function Li(){return new Promise(function(e,t){let n,i,o,r,s;return Li.cachedResult!==void 0?e(Li.cachedResult):(n="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",Ms("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(u){try{return i=u,go(i).then(function(c){try{return o=c[1],vo(o,i.type,i.name,i.lastModified).then(function(m){try{return r=m,rr(o),go(r).then(function(d){try{return s=d[0],Li.cachedResult=s.width===1&&s.height===2,e(Li.cachedResult)}catch(p){return t(p)}},t)}catch(d){return t(d)}},t)}catch(m){return t(m)}},t)}catch(c){return t(c)}},t))})}function Ml(e){return new Promise((t,n)=>{const i=new Fl;i.onload=o=>{const r=new DataView(o.target.result);if(r.getUint16(0,!1)!=65496)return t(-2);const s=r.byteLength;let u=2;for(;u<s;){if(r.getUint16(u+2,!1)<=8)return t(-1);const c=r.getUint16(u,!1);if(u+=2,c==65505){if(r.getUint32(u+=2,!1)!=1165519206)return t(-1);const m=r.getUint16(u+=6,!1)==18761;u+=r.getUint32(u+4,m);const d=r.getUint16(u,m);u+=2;for(let p=0;p<d;p++)if(r.getUint16(u+12*p,m)==274)return t(r.getUint16(u+12*p+8,m))}else{if((65280&c)!=65280)break;u+=r.getUint16(u,!1)}}return t(-1)},i.onerror=o=>n(o),i.readAsArrayBuffer(e)})}function Bl(e,t){const{width:n}=e,{height:i}=e,{maxWidthOrHeight:o}=t;let r,s=e;return isFinite(o)&&(n>o||i>o)&&([s,r]=ho(n,i),n>i?(s.width=o,s.height=i/n*o):(s.width=n/i*o,s.height=o),r.drawImage(e,0,0,s.width,s.height),rr(e)),s}function Dl(e,t){const{width:n}=e,{height:i}=e,[o,r]=ho(n,i);switch(t>4&&t<9?(o.width=i,o.height=n):(o.width=n,o.height=i),t){case 2:r.transform(-1,0,0,1,n,0);break;case 3:r.transform(-1,0,0,-1,n,i);break;case 4:r.transform(1,0,0,-1,0,i);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,i,0);break;case 7:r.transform(0,-1,-1,0,i,n);break;case 8:r.transform(0,-1,1,0,0,n)}return r.drawImage(e,0,0,n,i),rr(e),o}function Tl(e,t,n){return n===void 0&&(n=0),new Promise(function(i,o){let r,s,u,c,m,d,p,g,f,w,N,C,y,M,z,G,$,W,Q,x;function k(A){if(A===void 0&&(A=5),t.signal&&t.signal.aborted)throw t.signal.reason;r+=A,t.onProgress(Math.min(r,100))}function H(A){if(t.signal&&t.signal.aborted)throw t.signal.reason;r=Math.min(Math.max(A,r),100),t.onProgress(r)}return r=n,s=t.maxIteration||10,u=1024*t.maxSizeMB*1024,k(),go(e,t).then((function(A){try{return[,c]=A,k(),m=Bl(c,t),k(),new Promise(function(L,B){var F;if(!(F=t.exifOrientation))return Ml(e).then((function(E){try{return F=E,Y.call(this)}catch(I){return B(I)}}).bind(this),B);function Y(){return L(F)}return Y.call(this)}).then((function(L){try{return d=L,k(),Li().then((function(B){try{return p=B?m:Dl(m,d),k(),g=t.initialQuality||1,f=t.fileType||e.type,vo(p,f,e.name,e.lastModified,g).then((function(F){try{{let X=function(){if(s--&&(z>u||z>y)){let tt,gt;return tt=x?.95*Q.width:Q.width,gt=x?.95*Q.height:Q.height,[$,W]=ho(tt,gt),W.drawImage(Q,0,0,tt,gt),g*=f==="image/png"?.85:.95,vo($,f,e.name,e.lastModified,g).then(function(_){try{return G=_,rr(Q),Q=$,z=G.size,H(Math.min(99,Math.floor((M-z)/(M-u)*100))),X}catch(R){return o(R)}},o)}return[1]},J=function(){return rr(Q),rr($),rr(m),rr(p),rr(c),H(100),i(G)};var E=X,I=J;if(w=F,k(),N=w.size>u,C=w.size>e.size,!N&&!C)return H(100),i(w);var Y;return y=e.size,M=w.size,z=M,Q=p,x=!t.alwaysKeepResolution&&N,(Y=(function(tt){for(;tt;){if(tt.then)return void tt.then(Y,o);try{if(tt.pop){if(tt.length)return tt.pop()?J.call(this):tt;tt=X}else tt=tt.call(this)}catch(gt){return o(gt)}}}).bind(this))(X)}}catch(X){return o(X)}}).bind(this),o)}catch(F){return o(F)}}).bind(this),o)}catch(B){return o(B)}}).bind(this),o)}catch(L){return o(L)}}).bind(this),o)})}const vf="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let Bs;function mf(e,t){return new Promise((n,i)=>{Bs||(Bs=function(s){const u=[];return typeof s=="function"?u.push("("+s+")()"):u.push(s),URL.createObjectURL(new Blob(u))}(vf));const o=new Worker(Bs);o.addEventListener("message",function(s){if(t.signal&&t.signal.aborted)o.terminate();else if(s.data.progress===void 0){if(s.data.error)return i(new Error(s.data.error)),void o.terminate();n(s.data.file),o.terminate()}else t.onProgress(s.data.progress)}),o.addEventListener("error",i),t.signal&&t.signal.addEventListener("abort",()=>{i(t.signal.reason),o.terminate()}),o.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function on(e,t){return new Promise(function(n,i){let o,r,s,u,c,m;if(o={...t},s=0,{onProgress:u}=o,o.maxSizeMB=o.maxSizeMB||Number.POSITIVE_INFINITY,c=typeof o.useWebWorker!="boolean"||o.useWebWorker,delete o.useWebWorker,o.onProgress=f=>{s=f,typeof u=="function"&&u(s)},!(e instanceof Blob||e instanceof gf))return i(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return i(new Error("The file given is not an image"));if(m=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!c||typeof Worker!="function"||m)return Tl(e,o).then((function(f){try{return r=f,g.call(this)}catch(w){return i(w)}}).bind(this),i);var d=(function(){try{return g.call(this)}catch(f){return i(f)}}).bind(this),p=function(f){try{return Tl(e,o).then(function(w){try{return r=w,d()}catch(N){return i(N)}},i)}catch(w){return i(w)}};try{return o.libURL=o.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",mf(e,o).then(function(f){try{return r=f,d()}catch(w){return p()}},p)}catch(f){p()}function g(){try{r.name=e.name,r.lastModified=e.lastModified}catch(f){}try{o.preserveExif&&e.type==="image/jpeg"&&(!o.fileType||o.fileType&&o.fileType===e.type)&&(r=Pl(e,r))}catch(f){}return n(r)}})}on.getDataUrlFromFile=Cl,on.getFilefromDataUrl=Ms,on.loadImage=El,on.drawImageInCanvas=Ol,on.drawFileInCanvas=go,on.canvasToFile=vo,on.getExifOrientation=Ml,on.handleMaxWidthOrHeight=Bl,on.followExifOrientation=Dl,on.cleanupCanvasMemory=rr,on.isAutoOrientationInBrowser=Li,on.approximateBelowMaximumCanvasSizeOfBrowser=jl,on.copyExifWithoutOrientation=Pl,on.getBrowserName=Zr,on.version="2.0.2"}}]);
//# sourceMappingURL=lazy-lib-dl-906655530ecd54e72602.js.map