!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsDistBuildPdfWorker=t()}(this,function(){returnfunction(e){functiont(r){if(a[r])returna[r].exports;vari=a[r]={i:r,l:!1,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=!0;returni.exports}vara={};t.m=e;t.c=a;t.i=function(e){returne};t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})};t.n=function(e){vara=e&&e.__esModule?function(){returne.default}:function(){returne};t.d(a,"a",a);returna};t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)};t.p="";returnt(t.s=36)}([function(e,t,a){"use strict";(function(e){functionr(e){ae=e}functioni(){returnae}functionn(e){ae>=$.infos&&console.log("Info: "+e)}functions(e){ae>=$.warnings&&console.log("Warning: "+e)}functiono(e){console.log("Deprecated API usage: "+e)}functionc(e){if(ae>=$.errors){console.log("Error: "+e);console.log(l())}thrownewError(e)}functionl(){try{thrownewError}catch(e){returne.stack?e.stack.split("\n").slice(2).join("\n"):""}}functionh(e,t){e||c(t)}functionu(e,t){try{vara=newURL(e);if(!a.origin||"null"===a.origin)return!1}catch(e){return!1}varr=newURL(t,a);returna.origin===r.origin}functionf(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functiond(e,t){if(!e)returnnull;try{vara=t?newURL(e,t):newURL(e);if(f(a))returna}catch(e){}returnnull}functiong(e,t,a){Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!1});returna}functionp(e){vart;returnfunction(){if(e){t=Object.create(null);e(t);e=null}returnt}}functionm(e){if("string"!=typeofe){s("The argument for removeNullCharacters must be a string.");returne}returne.replace(de,"")}functionb(e){h(null!==e&&"object"==typeofe&&void0!==e.length,"Invalid argument for bytesToString");vart=e.length;if(t<8192)returnString.fromCharCode.apply(null,e);for(vara=[],r=0;r<t;r+=8192){vari=Math.min(r+8192,t),n=e.subarray(r,i);a.push(String.fromCharCode.apply(null,n))}returna.join("")}functionv(e){h("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,a=newUint8Array(t),r=0;r<t;++r)a[r]=255&e.charCodeAt(r);returna}functiony(e){if(void0!==e.length)returne.length;h(void0!==e.byteLength);returne.byteLength}functionk(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,a,r,i=0,n=e.length;for(t=0;t<n;t++){a=e[t];r=y(a);i+=r}vars=0,o=newUint8Array(i);for(t=0;t<n;t++){a=e[t];ainstanceofUint8Array||(a="string"==typeofa?v(a):newUint8Array(a));r=a.byteLength;o.set(a,s);s+=r}returno}functionw(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionC(e){for(vart=1,a=0;e>t;){t<<=1;a++}returna}functionx(e,t){returne[t]<<24>>24}functionS(e,t){returne[t]<<8|e[t+1]}functionA(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionI(){vare=newUint8Array(4);e[0]=1;return1===newUint32Array(e.buffer,0,1)[0]}functionB(){try{newFunction("");return!0}catch(e){return!1}}functionR(e){vart,a=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<a;t+=2)r.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<a;++t){vari=be[e.charCodeAt(t)];r.push(i?String.fromCharCode(i):e.charAt(t))}returnr.join("")}functionT(e){returndecodeURIComponent(escape(e))}functionO(e){returnunescape(encodeURIComponent(e))}functionP(e){for(vartine)return!1;return!0}functionE(e){return"boolean"==typeofe}functionM(e){return"number"==typeofe&&(0|e)===e}functionL(e){return"number"==typeofe}functionD(e){return"string"==typeofe}functionF(e){returneinstanceofArray}functionq(e){return"object"==typeofe&&null!==e&&void0!==e.byteLength}functionU(e){return32===e||9===e||13===e||10===e}functionN(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"==typeofprocess&&process+"
t(this,e,a,r,i,1)},getRgbBuffer:function(e,a,r,i,n,s,o){for(varc=1/((1<<s)-1),l=0;l<r;++l){t(this,e,a,i,n,c);a+=1;n+=3+o}},getOutputLength:function(e,t){returne*(3+t)},isPassthrough:m.prototype.isPassthrough,fillRgb:m.prototype.fillRgb,isDefaultDecode:function(e){returnm.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returne}(),S=function(){functione(e,t,a,r){this.name="CalRGB";this.numComps=3;this.defaultColor=newFloat32Array(this.numComps);e||s("WhitePoint missing - required for color space CalRGB");t=t||newFloat32Array(3);a=a||newFloat32Array([1,1,1]);r=r||newFloat32Array([1,0,0,0,1,0,0,0,1]);vari=e[0],n=e[1],c=e[2];this.whitePoint=e;varl=t[0],h=t[1],u=t[2];this.blackPoint=t;this.GR=a[0];this.GG=a[1];this.GB=a[2];this.MXA=r[0];this.MYA=r[1];this.MZA=r[2];this.MXB=r[3];this.MYB=r[4];this.MZB=r[5];this.MXC=r[6];this.MYC=r[7];this.MZC=r[8];(i<0||c<0||1!==n)&&s("Invalid WhitePoint components for "+this.name+", no fallback available");if(l<0||h<0||u<0){o("Invalid BlackPoint for "+this.name+" ["+l+", "+h+", "+u+"], falling back to default");this.blackPoint=newFloat32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){o("Invalid Gamma ["+this.GR+", "+this.GG+", "+this.GB+"] for "+this.name+", falling back to default");this.GR=this.GG=this.GB=1}if(this.MXA<0||this.MYA<0||this.MZA<0||this.MXB<0||this.MYB<0||this.MZB<0||this.MXC<0||this.MYC<0||this.MZC<0){o("Invalid Matrix for "+this.name+" ["+this.MXA+", "+this.MYA+", "+this.MZA+this.MXB+", "+this.MYB+", "+this.MZB+this.MXC+", "+this.MYC+", "+this.MZC+"], falling back to default");this.MXA=this.MYB=this.MZC=1;this.MXB=this.MYA=this.MZA=this.MXC=this.MYC=this.MZB=0}}functiont(e,t,a){a[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];a[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2];a[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}functiona(e,t,a){a[0]=1*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1*t[2]/e[2]}functionr(e,t,a){a[0]=.95047*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1.08883*t[2]/e[2]}functioni(e){returne<=.0031308?n(0,1,12.92*e):n(0,1,1.055*Math.pow(e,1/2.4)-.055)}functionn(e,t,a){returnMath.max(e,Math.min(t,a))}functionc(e){returne<0?-c(-e):e>8?Math.pow((e+16)/116,3):e*w}functionl(e,t,a){if(0!==e[0]||0!==e[1]||0!==e[2]){varr=c(0),i=r,n=c(e[0]),s=r,o=c(e[1]),l=r,h=c(e[2]),u=(1-i)/(1-n),f=1-u,d=(1-s)/(1-o),g=1-d,p=(1-l)/(1-h),m=1-p;a[0]=t[0]*u+f;a[1]=t[1]*d+g;a[2]=t[2]*p+m}else{a[0]=t[0];a[1]=t[1];a[2]=t[2]}}functionh(e,r,i){if(1!==e[0]||1!==e[2]){varn=i;t(d,r,n);vars=v;a(e,n,s);t(g,s,i)}else{i[0]=r[0];i[1]=r[1];i[2]=r[2]}}functionu(e,a,i){varn=i;t(d,a,n);vars=v;r(e,n,s);t(g,s,i)}functionf(e,a,r,s,o,c){varf=n(0,1,a[r]*c),d=n(0,1,a[r+1]*c),g=n(0,1,a[r+2]*c),m=Math.pow(f,e.GR),v=Math.pow(d,e.GG),w=Math.pow(g,e.GB),C=e.MXA*m+e.MXB*v+e.MXC*w,x=e.MYA*m+e.MYB*v+e.MYC*w,S=e.MZA*m+e.MZB*v+e.MZC*w,A=y;A[0]=C;A[1]=x;A[2]=S;varI=k;h(e.whitePoint,A,I);varB=y;l(e.blackPoint,I,B);varR=k;u(b,B,R);varT=y;t(p,R,T);varO=i(T[0]),P=i(T[1]),E=i(T[2]);s[o]=Math.round(255*O);s[o+1]=Math.round(255*P);s[o+2]=Math.round(255*E)}vard=newFloat32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),g=newFloat32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),p=newFloat32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),b=newFloat32Array([1,1,1]),v=newFloat32Array(3),y=newFloat32Array(3),k=newFloat32Array(3),w=Math.pow(24/116,3)/8;e.prototype={getRgb:function(e,t){vara=newUint8Array(3);this.getRgbItem(e,t,a,0);returna},getRgbItem:function(e,t,a,r){f(this,e,t,a,r,1)},getRgbBuffer:function(e,t,a,r,i,n,s){for(varo=1/((1<<n)-1),c=0;c<a;++c){f(this,e,t,r,i,o);t+=3;i+=3+s}},getOutputLength:function(e,t){returne*(3+t)/3|0},isPassthrough:m.prototype.isPassthrough,fillRgb:m.prototype.fillRgb,isDefaultDecode:function(e){returnm.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returne}(),A=function(){functione(e,t,a){this.name="Lab";this.numComps=3;this.defaultColor=newFloat32Array(this.numComps);e||s("WhitePoint missing - required for color space Lab");t=t||[0,0,0];a=a||[-100,100,-100,100];this.XW=e[0];this.
;10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}};returne}(),U={create:function(e){functiont(e,t){vara=c.get(e);if(f(a)&&(t?a>=0:a>0))returna;thrownewError('The "'+e+'" parameter in the linearization dictionary is invalid.')}vara,r,i=newF(newq(e),!1,null),n=i.getObj(),s=i.getObj(),o=i.getObj(),c=i.getObj();if(!(f(n)&&f(s)&&C(o,"obj")&&x(c)&&d(a=c.get("Linearized"))&&a>0))returnnull;if((r=t("L"))!==e.length)thrownewError('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:r,hints:function(){vare,t,a=c.get("H");if(u(a)&&(2===(e=a.length)||4===e)){for(varr=0;r<e;r++)if(!(f(t=a[r])&&t>0))thrownewError("Hint ("+r+") in the linearization dictionary is invalid.");returna}thrownewError("Hint array in the linearization dictionary is invalid.")}(),objectNumberFirst:t("O"),endFirst:t("E"),numPages:t("N"),mainXRefEntriesOffset:t("T"),pageFirst:c.has("P")?t("P",!0):0}}};t.Lexer=q;t.Linearization=U;t.Parser=F},function(e,t,a){"use strict";functionr(e){vart;if("object"!=typeofe)return!1;if(u(e))t=e;else{if(!f(e))return!1;t=e.dict}returnt.has("FunctionType")}vari=a(0),n=a(1),s=a(34),o=i.error,c=i.info,l=i.isArray,h=i.isBool,u=n.isDict,f=n.isStream,d=s.PostScriptLexer,g=s.PostScriptParser,p=function(){return{getSampleArray:function(e,t,a,r){vari,n,s=1;for(i=0,n=e.length;i<n;i++)s*=e[i];s*=t;varo=newArray(s),c=0,l=0,h=1/(Math.pow(2,a)-1),u=r.getBytes((s*a+7)/8),f=0;for(i=0;i<s;i++){for(;c<a;){l<<=8;l|=u[f++];c+=8}c-=a;o[i]=(l>>c)*h;l&=(1<<c)-1}returno},getIR:function(e,t){vara=t.dict;a||(a=t);varr=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],i=a.get("FunctionType"),n=r[i];n||o("Unknown type of function");returnn.call(this,t,a,e)},fromIR:function(e){switch(e[0]){case0:returnthis.constructSampledFromIR(e);case2:returnthis.constructInterpolatedFromIR(e);case3:returnthis.constructStichedFromIR(e);default:returnthis.constructPostScriptFromIR(e)}},parse:function(e,t){vara=this.getIR(e,t);returnthis.fromIR(a)},parseArray:function(e,t){if(!l(t))returnthis.parse(e,t);for(vara=[],r=0,i=t.length;r<i;r++){varn=e.fetchIfRef(t[r]);a.push(p.parse(e,n))}returnfunction(e,t,r,i){for(varn=0,s=a.length;n<s;n++)a[n](e,t,r,i+n)}},constructSampled:function(e,t){functiona(e){for(vart=e.length,a=[],r=0,i=0;i<t;i+=2){a[r]=[e[i],e[i+1]];++r}returna}varr=t.getArray("Domain"),i=t.getArray("Range");r&&i||o("No domain or range");varn=r.length/2,s=i.length/2;r=a(r);i=a(i);varl=t.get("Size"),h=t.get("BitsPerSample"),u=t.get("Order")||1;1!==u&&c("No support for cubic spline interpolation: "+u);varf=t.getArray("Encode");if(!f){f=[];for(vard=0;d<n;++d){f.push(0);f.push(l[d]-1)}}f=a(f);varg=t.getArray("Decode");g=g?a(g):i;return[0,n,r,f,g,this.getSampleArray(l,s,h,e),l,s,Math.pow(2,h)-1,i]},constructSampledFromIR:function(e){functiont(e,t,a,r,i){returnr+(i-r)/(a-t)*(e-t)}returnfunction(a,r,i,n){vars,o,c=e[1],l=e[2],h=e[3],u=e[4],f=e[5],d=e[6],g=e[7],p=e[9],m=1<<c,b=newFloat64Array(m),v=newUint32Array(m);for(o=0;o<m;o++)b[o]=1;vary=g,k=1;for(s=0;s<c;++s){varw=l[s][0],C=l[s][1],x=Math.min(Math.max(a[r+s],w),C),S=t(x,w,C,h[s][0],h[s][1]),A=d[s];S=Math.min(Math.max(S,0),A-1);varI=S<A-1?Math.floor(S):S-1,B=I+1-S,R=S-I,T=I*y,O=T+y;for(o=0;o<m;o++)if(o&k){b[o]*=R;v[o]+=O}else{b[o]*=B;v[o]+=T}y*=A;k<<=1}for(o=0;o<g;++o){varP=0;for(s=0;s<m;s++)P+=f[v[s]+o]*b[s];P=t(P,0,1,u[o][0],u[o][1]);i[n+o]=Math.min(Math.max(P,p[o][0]),p[o][1])}}},constructInterpolated:function(e,t){vara=t.getArray("C0")||[0],r=t.getArray("C1")||[1],i=t.get("N");l(a)&&l(r)||o("Illegal dictionary for interpolated function");for(varn=a.length,s=[],c=0;c<n;++c)s.push(r[c]-a[c]);return[2,a,s,i]},constructInterpolatedFromIR:function(e){vart=e[1],a=e[2],r=e[3],i=a.length;returnfunction(e,n,s,o){for(varc=1===r?e[n]:Math.pow(e[n],r),l=0;l<i;++l)s[o+l]=t[l]+c*a[l]}},constructStiched:function(e,t,a){varr=t.getArray("Domain");r||o("No domain");1!=r.length/2&&o("Bad domain for stiched function");for(vari=t.get("Fun
vari=l[e++],s=(l[e++]<<8)+(255&l[e++]);c[i]=r.indexOf(a.get(s))}}()}u=l.subarray(g,x)}i&=127;returnnewO(h,i,c,u)},parseFDSelect:function(e,t){vara,r,i=e,n=this.bytes,o=n[e++],c=[],h=!1;switch(o){case0:for(r=0;r<t;++r){varu=n[e++];c.push(u)}a=n.subarray(i,e);break;case3:varf=n[e++]<<8|n[e++];for(r=0;r<f;++r){varg=n[e++]<<8|n[e++];if(0===r&&0!==g){l("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");h=!0;g=0}for(varp=n[e++],m=n[e]<<8|n[e+1],b=g;b<m;++b)c.push(p)}e+=2;a=n.subarray(i,e);h&&(a[3]=a[4]=0);break;default:s('parseFDSelect: Unknown format "'+o+'".')}d(c.length===t,"parseFDSelect: Invalid font data.");returnnewP(c,a)}};returne}(),w=function(){functione(){this.header=null;this.names=[];this.topDict=null;this.strings=newx;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}returne}(),C=function(){functione(e,t,a,r){this.major=e;this.minor=t;this.hdrSize=a;this.offSize=r}returne}(),x=function(){functione(){this.strings=[]}e.prototype={get:function(e){returne>=0&&e<=390?y[e]:e-391<=this.strings.length?this.strings[e-391]:y[0]},add:function(e){this.strings.push(e)},getcount(){returnthis.strings.length}};returne}(),S=function(){functione(){this.objects=[];this.length=0}e.prototype={add:function(e){this.length+=e.length;this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length;this.objects[e]=t},get:function(e){returnthis.objects[e]},getcount(){returnthis.objects.length}};returne}(),A=function(){functione(e,t){this.keyToNameMap=e.keyToNameMap;this.nameToKeyMap=e.nameToKeyMap;this.defaults=e.defaults;this.types=e.types;this.opcodes=e.opcodes;this.order=e.order;this.strings=t;this.values=Object.create(null)}e.prototype={setByKey:function(e,t){if(!(einthis.keyToNameMap))return!1;vara=t.length;if(0===a)return!0;for(varr=0;r<a;r++)if(isNaN(t[r])){l('Invalid CFFDict value: "'+t+'" for key "'+e+'".');return!0}vari=this.types[e];"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]);this.values[e]=t;return!0},setByName:function(e,t){einthis.nameToKeyMap||s('Invalid dictionary name "'+e+'"');this.values[this.nameToKeyMap[e]]=t},hasName:function(e){returnthis.nameToKeyMap[e]inthis.values},getByName:function(e){einthis.nameToKeyMap||s('Invalid dictionary name "'+e+'"');vart=this.nameToKeyMap[e];returntinthis.values?this.values[t]:this.defaults[t]},removeByName:function(e){deletethis.values[this.nameToKeyMap[e]]}};e.createTables=function(e){for(vart={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},a=0,r=e.length;a<r;++a){vari=e[a],n=h(i[0])?(i[0][0]<<8)+i[0][1]:i[0];t.keyToNameMap[n]=i[1];t.nameToKeyMap[i[1]]=n;t.types[n]=i[2];t.defaults[n]=i[3];t.opcodes[n]=h(i[0])?i[0]:[i[0]];t.order.push(n)}returnt};returne}(),I=function(){functione(e){null===a&&(a=A.createTables(t));A.call(this,a,e);this.privateDict=null}vart=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],
;if(!g.read(w))break;varC=w.args,x=w.fn;switch(0|x){caseS.paintXObject:if(C[0].code)break;varA=C[0].name;if(!A){F("XObject must be referred to by name.");continue}if(void0!==h[A]){i.addOp(h[A].fn,h[A].args);C=null;continue}varI=u.get(A);if(I){R(G(I),"XObject should be a stream");varB=I.dict.get("Subtype");R(z(B),"XObject should have a Name subtype");if("Form"===B.name){d.save();m(c.buildFormXObject(r,I,null,i,t,d.state.clone()).then(function(){d.restore()}));return}if("Image"===B.name){c.buildPaintImageXObject(r,I,!1,i,A,h);C=null;continue}if("PS"===B.name){P("Ignored XObject subtype PS");continue}O("Unhandled XObject subtype "+B.name)}break;caseS.setFont:varT=C[1];m(c.handleSetFont(r,C,null,i,t,d.state).then(function(e){i.addDependency(e);i.addOp(S.setFont,[e,T])}));return;caseS.endInlineImage:varE=C[0].cacheKey;if(E){varD=h[E];if(void0!==D){i.addOp(D.fn,D.args);C=null;continue}}c.buildPaintImageXObject(r,C[0],!0,i,E,h);C=null;continue;caseS.showText:C[0]=c.handleText(C[0],d.state);break;caseS.showSpacedText:varU=C[0],N=[],j=U.length,H=d.state;for(v=0;v<j;++v){varX=U[v];L(X)?Array.prototype.push.apply(N,c.handleText(X,H)):M(X)&&N.push(X)}C[0]=N;x=S.showText;break;caseS.nextLineShowText:i.addOp(S.nextLine);C[0]=c.handleText(C[0],d.state);x=S.showText;break;caseS.nextLineSetSpacingShowText:i.addOp(S.nextLine);i.addOp(S.setWordSpacing,[C.shift()]);i.addOp(S.setCharSpacing,[C.shift()]);C[0]=c.handleText(C[0],d.state);x=S.showText;break;caseS.setTextRenderingMode:d.state.textRenderingMode=C[0];break;caseS.setFillColorSpace:d.state.fillColorSpace=Z.parse(C[0],l,r);continue;caseS.setStrokeColorSpace:d.state.strokeColorSpace=Z.parse(C[0],l,r);continue;caseS.setFillColor:k=d.state.fillColorSpace;C=k.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeColor:k=d.state.strokeColorSpace;C=k.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.setFillGray:d.state.fillColorSpace=Z.singletons.gray;C=Z.singletons.gray.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeGray:d.state.strokeColorSpace=Z.singletons.gray;C=Z.singletons.gray.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.setFillCMYKColor:d.state.fillColorSpace=Z.singletons.cmyk;C=Z.singletons.cmyk.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeCMYKColor:d.state.strokeColorSpace=Z.singletons.cmyk;C=Z.singletons.cmyk.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.setFillRGBColor:d.state.fillColorSpace=Z.singletons.rgb;C=Z.singletons.rgb.getRgb(C,0);break;caseS.setStrokeRGBColor:d.state.strokeColorSpace=Z.singletons.rgb;C=Z.singletons.rgb.getRgb(C,0);break;caseS.setFillColorN:k=d.state.fillColorSpace;if("Pattern"===k.name){m(c.handleColorN(i,S.setFillColorN,C,k,f,r,t));return}C=k.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeColorN:k=d.state.strokeColorSpace;if("Pattern"===k.name){m(c.handleColorN(i,S.setStrokeColorN,C,k,f,r,t));return}C=k.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.shadingFill:varV=r.get("Shading");R(V,"No shading resource found");varW=V.get(C[0].name);R(W,"No shading object found");C=[oe.parseShading(W,null,l,r,c.handler).getIR()];x=S.shadingFill;break;caseS.setGState:varK=C[0],Y=r.get("ExtGState");if(!_(Y)||!Y.has(K.name))break;varJ=Y.get(K.name);m(c.setGState(r,J,i,t,d));return;caseS.moveTo:caseS.lineTo:caseS.curveTo:caseS.curveTo2:caseS.curveTo3:caseS.closePath:caseS.rectangle:c.buildPath(i,x,C);continue;caseS.markPoint:caseS.markPointProps:caseS.beginMarkedContent:caseS.beginMarkedContentProps:caseS.endMarkedContent:caseS.beginCompat:caseS.endCompat:continue;default:if(null!==C){for(v=0,y=C.length;v<y&&!(C[v]instanceofq);v++);if(v<y){F("getOperatorList - ignoring operator: "+x);continue}}}i.addOp(x,C)}if(b)m(n);else{o();a()}}).catch(function(e){if(!this.options.ignoreErrors)throwe;this.handler.send("UnsupportedFeature",{featureId:C.unknown});F("getOperatorList - ignoring errors during task: "+t.name);o()}.bind(this))},getTextContent:function(e,t,r,i,s,o){functionc(){if(b.initialized)returnb;vare=I.font;e.loadedNameinm.styles||(m.styles[e.loadedName]={fontFamily:e.fallbackName,ascent:e.ascen
for(vara,r=e.SIZ,i=[],n=Math.ceil((r.Xsiz-r.XTOsiz)/r.XTsiz),s=Math.ceil((r.Ysiz-r.YTOsiz)/r.YTsiz),o=0;o<s;o++)for(varc=0;c<n;c++){a={};a.tx0=Math.max(r.XTOsiz+c*r.XTsiz,r.XOsiz);a.ty0=Math.max(r.YTOsiz+o*r.YTsiz,r.YOsiz);a.tx1=Math.min(r.XTOsiz+(c+1)*r.XTsiz,r.Xsiz);a.ty1=Math.min(r.YTOsiz+(o+1)*r.YTsiz,r.Ysiz);a.width=a.tx1-a.tx0;a.height=a.ty1-a.ty0;a.components=[];i.push(a)}e.tiles=i;for(varl=r.Csiz,h=0,u=l;h<u;h++)for(varf=t[h],d=0,g=i.length;d<g;d++){varp={};a=i[d];p.tcx0=Math.ceil(a.tx0/f.XRsiz);p.tcy0=Math.ceil(a.ty0/f.YRsiz);p.tcx1=Math.ceil(a.tx1/f.XRsiz);p.tcy1=Math.ceil(a.ty1/f.YRsiz);p.width=p.tcx1-p.tcx0;p.height=p.tcy1-p.tcy0;a.components[h]=p}}functionr(e,t,a){varr=t.codingStyleParameters,i={};if(r.entropyCoderWithCustomPrecincts){i.PPx=r.precinctsSizes[a].PPx;i.PPy=r.precinctsSizes[a].PPy}else{i.PPx=15;i.PPy=15}i.xcb_=a>0?Math.min(r.xcb,i.PPx-1):Math.min(r.xcb,i.PPx);i.ycb_=a>0?Math.min(r.ycb,i.PPy-1):Math.min(r.ycb,i.PPy);returni}functioni(e,t,a){varr=1<<a.PPx,i=1<<a.PPy,n=0===t.resLevel,s=1<<a.PPx+(n?0:-1),o=1<<a.PPy+(n?0:-1),c=t.trx1>t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,l=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,h=c*l;t.precinctParameters={precinctWidth:r,precinctHeight:i,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:s,precinctHeightInSubband:o}}functionf(e,t,a){varr,i,n,s,o=a.xcb_,c=a.ycb_,l=1<<o,h=1<<c,u=t.tbx0>>o,f=t.tby0>>c,d=t.tbx1+l-1>>o,g=t.tby1+h-1>>c,p=t.resolution.precinctParameters,m=[],b=[];for(i=f;i<g;i++)for(r=u;r<d;r++){n={cbx:r,cby:i,tbx0:l*r,tby0:h*i,tbx1:l*(r+1),tby1:h*(i+1)};n.tbx0_=Math.max(t.tbx0,n.tbx0);n.tby0_=Math.max(t.tby0,n.tby0);n.tbx1_=Math.min(t.tbx1,n.tbx1);n.tby1_=Math.min(t.tby1,n.tby1);varv=Math.floor((n.tbx0_-t.tbx0)/p.precinctWidthInSubband),y=Math.floor((n.tby0_-t.tby0)/p.precinctHeightInSubband);s=v+y*p.numprecinctswide;n.precinctNumber=s;n.subbandType=t.type;n.Lblock=3;if(!(n.tbx1_<=n.tbx0_||n.tby1_<=n.tby0_)){m.push(n);vark=b[s];if(void0!==k){r<k.cbxMin?k.cbxMin=r:r>k.cbxMax&&(k.cbxMax=r);i<k.cbyMin?k.cbxMin=i:i>k.cbyMax&&(k.cbyMax=i)}elseb[s]=k={cbxMin:r,cbyMin:i,cbxMax:r,cbyMax:i};n.precinct=k}}t.codeblockParameters={codeblockWidth:o,codeblockHeight:c,numcodeblockwide:d-u+1,numcodeblockhigh:g-f+1};t.codeblocks=m;t.precincts=b}functiond(e,t,a){for(varr=[],i=e.subbands,n=0,s=i.length;n<s;n++)for(varo=i[n],c=o.codeblocks,l=0,h=c.length;l<h;l++){varu=c[l];u.precinctNumber===t&&r.push(u)}return{layerNumber:a,codeblocks:r}}functiong(e){for(vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=0,c=0;c<n;c++)s=Math.max(s,r.components[c].codingStyleParameters.decompositionLevelsCount);varl=0,h=0,u=0,f=0;this.nextPacket=function(){for(;l<i;l++){for(;h<=s;h++){for(;u<n;u++){vare=r.components[u];if(!(h>e.codingStyleParameters.decompositionLevelsCount)){for(vart=e.resolutions[h],a=t.precinctParameters.numprecincts;f<a;){varc=d(t,f,l);f++;returnc}f=0}}u=0}h=0}o("JPX Error: Out of packets")}}functionp(e){for(vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=0,c=0;c<n;c++)s=Math.max(s,r.components[c].codingStyleParameters.decompositionLevelsCount);varl=0,h=0,u=0,f=0;this.nextPacket=function(){for(;l<=s;l++){for(;h<i;h++){for(;u<n;u++){vare=r.components[u];if(!(l>e.codingStyleParameters.decompositionLevelsCount)){for(vart=e.resolutions[l],a=t.precinctParameters.numprecincts;f<a;){varc=d(t,f,h);f++;returnc}f=0}}u=0}h=0}o("JPX Error: Out of packets")}}functionm(e){vart,a,r,i,n=e.SIZ,s=e.currentTile.index,c=e.tiles[s],l=c.codingStyleDefaultParameters.layersCount,h=n.Csiz,u=0;for(r=0;r<h;r++){varf=c.components[r];u=Math.max(u,f.codingStyleParameters.decompositionLevelsCount)}varg=newInt32Array(u+1);for(a=0;a<=u;++a){varp=0;for(r=0;r<h;++r){varm=c.components[r].resolutions;a<m.length&&(p=Math.max(p,m[a].precinctParameters.numprecincts))}g[a]=p}t=0;a=0;r=0;i=0;this.nextPacket=function(){for(;a<=u;a++){for(;i<g[a];i++){for(;r<h;r++){vare=c.components[r];if(!(a>e.codingStyleParameters.
varr=this.xref,i=0;returna(e)}};e.parseDestDictionary=function(e){vart=e.destDict;if(M(t)){vara=e.resultObj;if("object"==typeofa){varr,i,n=e.docBaseUrl||null,s=t.get("A");if(M(s)){varo=s.get("S").name;switch(o){case"URI":r=s.get("URI");P(r)?r="/"+r.name:k(r)&&(r=function(e){return0===e.indexOf("www.")?"http://"+e:e}(r));break;case"GoTo":i=s.get("D");break;case"Launch":case"GoToR":varc=s.get("F");M(c)?r=c.get("F")||null:k(c)&&(r=c);varl=s.get("D");if(l){P(l)&&(l=l.name);if(k(r)){varh=r.split("#")[0];k(l)?r=h+"#"+(/^\d+$/.test(l)?"nameddest=":"")+l:b(l)&&(r=h+"#"+JSON.stringify(l))}}varu=s.get("NewWindow");v(u)&&(a.newWindow=u);break;case"Named":varf=s.get("N");P(f)&&(a.action=f.name);break;case"JavaScript":varg,p=s.get("JS");F(p)?g=d(p.getBytes()):k(p)&&(g=p);if(g){varm=["app.launchURL","window.open"],y=newRegExp("^\\s*("+m.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i"),w=y.exec(C(g));if(w&&w[2]){r=w[2];"true"===w[3]&&"app.launchURL"===w[1]&&(a.newWindow=!0);break}}default:S('Catalog_parseDestDictionary: Unrecognized link type "'+o+'".')}}elset.has("Dest")&&(i=t.get("Dest"));if(k(r)){r=function(e){try{returnx(e)}catch(t){returne}}(r);varI=A(r,n);I&&(a.url=I.href);a.unsafeUrl=r}if(i){P(i)&&(i=i.name);(k(i)||b(i))&&(a.dest=i)}}elseS('Catalog_parseDestDictionary: "resultObj" must be an object.')}elseS('Catalog_parseDestDictionary: "destDict" must be a dictionary.')};returne}(),H=function(){functione(e,t){this.stream=e;this.pdfManager=t;this.entries=[];this.xrefstms=Object.create(null);this.cache=[];this.stats={streamTypes:[],fontTypes:[]}}e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){vart;if(e){S("Indexing all PDF objects");t=this.indexObjects()}elset=this.readXRef();t.assignXref(this);this.trailer=t;vara=t.get("Encrypt");if(M(a)){varr=t.get("ID"),i=r&&r.length?r[0]:"";a.suppressEncryption=!0;this.encrypt=newq(a,i,this.pdfManager.password)}(this.root=t.get("Root"))||p("Invalid root reference")},processXRefTable:function(e){"tableState"inthis||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});vart=this.readXRefTable(e);E(t,"trailer")||p("Invalid XRef table: could not find trailer dictionary");vara=e.getObj();!M(a)&&a.dict&&(a=a.dict);M(a)||p("Invalid XRef table: could not parse trailer dictionary");deletethis.tableState;returna},readXRefTable:function(e){vart=e.lexer.stream,a=this.tableState;t.pos=a.streamPos;e.buf1=a.parserBuf1;e.buf2=a.parserBuf2;for(varr;;){if(!("firstEntryNum"ina&&"entryCount"ina)){if(E(r=e.getObj(),"trailer"))break;a.firstEntryNum=r;a.entryCount=e.getObj()}vari=a.firstEntryNum,n=a.entryCount;y(i)&&y(n)||p("Invalid XRef table: wrong types in subsection header");for(vars=a.entryNum;s<n;s++){a.streamPos=t.pos;a.entryNum=s;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;varo={};o.offset=e.getObj();o.gen=e.getObj();varc=e.getObj();E(c,"f")?o.free=!0:E(c,"n")&&(o.uncompressed=!0);y(o.offset)&&y(o.gen)&&(o.free||o.uncompressed)||p("Invalid entry in XRef subsection: "+i+", "+n);0===s&&o.free&&1===i&&(i=0);this.entries[s+i]||(this.entries[s+i]=o)}a.entryNum=0;a.streamPos=t.pos;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;deletea.firstEntryNum;deletea.entryCount}this.entries[0]&&!this.entries[0].free&&p("Invalid XRef table: unexpected first object");returnr},processXRefStream:function(e){if(!("streamState"inthis)){vart=e.dict,a=t.get("W"),r=t.get("Index");r||(r=[0,t.get("Size")]);this.streamState={entryRanges:r,byteWidths:a,entryNum:0,streamPos:e.pos}}this.readXRefStream(e);deletethis.streamState;returne.dict},readXRefStream:function(e){vart,a,r=this.streamState;e.pos=r.streamPos;for(vari=r.byteWidths,n=i[0],s=i[1],o=i[2],c=r.entryRanges;c.length>0;){varl=c[0],h=c[1];y(l)&&y(h)||p("Invalid XRef range fields: "+l+", "+h);y(n)&&y(s)&&y(o)||p("Invalid XRef entry fields length: "+l+", "+h);for(t=r.entryNum;t<h;++t){r.entryNum=t;r.streamPos=e.pos;varu=0,f=0,d=0;for(a=0;a<n;++a)u=u<<8|e.getByte();0===n&&(u=1);for(a=0;a<s;++a)f=f<<8|e.getByte();for(a=0;a<o;
;a.builtInEncoding&&i(a,a.builtInEncoding);varn=t.getGlyphMapping(a),s=p(n,a);this.toFontChar=s.toFontChar;varo=t.numGlyphs,h=t.seacs;if(le&&h&&h.length){varu=a.fontMatrix||b,f=t.getCharset(),d=Object.create(null);for(varginh){g|=0;varm=h[g],v=F[m[2]],y=F[m[3]],k=f.indexOf(v),w=f.indexOf(y);if(!(k<0||w<0)){varC={x:m[0]*u[0]+m[1]*u[2]+u[4],y:m[0]*u[1]+m[1]*u[3]+u[5]},S=function(e,t){vara=null;for(varrine)if(t===e[r]){a||(a=[]);a.push(0|r)}returna}(n,g);if(S)for(varA=0,I=S.length;A<I;A++){varB=S[A],R=s.charCodeToGlyphId,T=r(R,k),E=r(R,w);d[B]={baseFontCharCode:T,accentFontCharCode:E,accentOffset:C}}}}a.seacMap=d}varM=1/(a.fontMatrix||b)[0],L=newpe("OTTO");L.addTable("CFF ",t.data);L.addTable("OS/2",O(a,s.charCodeToGlyphId));L.addTable("cmap",x(s.charCodeToGlyphId,o));L.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+l(M)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+l(a.descent)+"ÿ"+l(a.ascent)+c(a.italicAngle?2:0)+"\0\0\0\0\0\0\0");L.addTable("hhea","\0\0\0"+l(a.ascent)+l(a.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+l(a.capHeight)+l(Math.tan(a.italicAngle)*a.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+c(o));L.addTable("hmtx",function(){for(vare=t.charstrings,a=t.cff?t.cff.widths:null,r="\0\0\0\0",i=1,n=o;i<n;i++){vars=0;if(e){varl=e[i-1];s="width"inl?l.width:0}elsea&&(s=Math.ceil(a[i]||0));r+=c(s)+c(0)}returnr}());L.addTable("maxp","\0\0P\0"+c(o));L.addTable("name",K(e));L.addTable("post",P(a));returnL.toArray()},getspaceWidth(){if("_shadowWidth"inthis)returnthis._shadowWidth;for(vare,t=["space","minus","one","i","I"],a=0,r=t.length;a<r;a++){vari=t[a];if(iinthis.widths){e=this.widths[i];break}varn=M(),s=n[i],o=0;this.composite&&this.cMap.contains(s)&&(o=this.cMap.lookup(s));!o&&this.toUnicode&&(o=this.toUnicode.charCodeOf(s));o<=0&&(o=s);e=this.widths[o];if(e)break}e=e||this.defaultWidth;this._shadowWidth=e;returne},charToGlyph:function(e,t){vara,r,i,n=e;this.cMap&&this.cMap.contains(e)&&(n=this.cMap.lookup(e));r=this.widths[n];r=A(r)?r:this.defaultWidth;vars=this.vmetrics&&this.vmetrics[n],o=this.toUnicode.get(e)||e;"number"==typeofo&&(o=String.fromCharCode(o));varc=einthis.toFontChar;a=this.toFontChar[e]||e;this.missingFile&&(a=V(a));this.isType3Font&&(i=a);varl=null;if(this.seacMap&&this.seacMap[e]){c=!0;varh=this.seacMap[e];a=h.baseFontCharCode;l={fontChar:String.fromCharCode(h.accentFontCharCode),offset:h.accentOffset}}varu=String.fromCharCode(a),f=this.glyphCache[e];if(!f||!f.matchesForCache(u,o,l,r,s,i,t,c)){f=newfe(u,o,l,r,s,i,t,c);this.glyphCache[e]=f}returnf},charsToGlyphs:function(e){vart,a,r,i=this.charsCache;if(i){t=i[e];if(t)returnt}i||(i=this.charsCache=Object.create(null));t=[];varn,s=e,o=0;if(this.cMap)for(varc=Object.create(null);o<e.length;){this.cMap.readCharCode(e,o,c);r=c.charcode;varl=c.length;o+=l;varh=1===l&&32===e.charCodeAt(o-1);a=this.charToGlyph(r,h);t.push(a)}elsefor(o=0,n=e.length;o<n;++o){r=e.charCodeAt(o);a=this.charToGlyph(r,32===r);t.push(a)}returni[s]=t}};returne}(),ve=function(){functione(e){this.error=e;this.loadedName="g_font_error";this.loading=!1}e.prototype={charsToGlyphs:function(){return[]},exportData:function(){return{error:this.error}}};returne}(),ye=function(){functione(e,t,a){for(varr,i=e.length,n=t.length,s=i-n,o=a,c=!1;o<s;){r=0;for(;r<n&&e[o+r]===t[r];)r++;if(r>=n){o+=r;for(;o<i&&P(e[o]);)o++;c=!0;break}o++}return{found:c,length:o}}functiont(t,a){varr,i,n,s=[101,101,120,101,99],o=t.pos;try{r=t.getBytes(a);i=r.length}catch(e){if(einstanceofO)throwe}if(i===a){n=e(r,s,a-2*s.length);if(n.found&&n.length===a)return{stream:newE(r),length:a}}T('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=o;for(varc;;){n=e(t.peekBytes(2048),s,0);if(0===n.length)break;t.pos+=n.length;if(n.found){c=t.pos-o;break}}t.pos=o;if(c)return{stream:newE(t.getBytes(c)),length:c};T('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:newE(t.getBytes(a)),length:a}}functiona(e,t){vara=e.getBytes();return{stream:newE(a),length:a.length}}functionr(e,r,i){varn=i.length1,s=i.length2,o=r.peekBytes(6),c=128===o[0
varh=newUint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),u=4017,f=799,d=3406,g=2276,p=1567,m=3784,b=5793,v=2896;e.prototype={parse:function(e){functiona(){vart=e[u]<<8|e[u+1];u+=2;returnt}vars,c,u=0,f=null,d=null,g=[],p=[],m=[],b=a();65496!==b&&n("JPEG error: SOI not found");b=a();for(;65497!==b;){varv,y,k;switch(b){case65504:case65505:case65506:case65507:case65508:case65509:case65510:case65511:case65512:case65513:case65514:case65515:case65516:case65517:case65518:case65519:case65534:varw=function(){vart=a(),r=u+t-2,n=l(e,r,u);if(n&&n.invalid){i("readDataBlock - incorrect length, next marker is: "+n.invalid);r=n.offset}vars=e.subarray(u,r);u+=s.length;returns}();65504===b&&74===w[0]&&70===w[1]&&73===w[2]&&70===w[3]&&0===w[4]&&(f={version:{major:w[5],minor:w[6]},densityUnits:w[7],xDensity:w[8]<<8|w[9],yDensity:w[10]<<8|w[11],thumbWidth:w[12],thumbHeight:w[13],thumbData:w.subarray(14,14+3*w[12]*w[13])});65518===b&&65===w[0]&&100===w[1]&&111===w[2]&&98===w[3]&&101===w[4]&&(d={version:w[5]<<8|w[6],flags0:w[7]<<8|w[8],flags1:w[9]<<8|w[10],transformCode:w[11]});break;case65499:for(varC,x=a(),S=x+u-2;u<S;){varA=e[u++],I=newUint16Array(64);if(A>>4==0)for(y=0;y<64;y++){C=h[y];I[C]=e[u++]}elseif(A>>4==1)for(y=0;y<64;y++){C=h[y];I[C]=a()}elsen("JPEG error: DQT - invalid table spec");g[15&A]=I}break;case65472:case65473:case65474:s&&n("JPEG error: Only single frame JPEGs supported");a();s={};s.extended=65473===b;s.progressive=65474===b;s.precision=e[u++];s.scanLines=a();s.samplesPerLine=a();s.components=[];s.componentIds={};varB,R=e[u++],T=0,O=0;for(v=0;v<R;v++){B=e[u];varP=e[u+1]>>4,E=15&e[u+1];T<P&&(T=P);O<E&&(O=E);varM=e[u+2];k=s.components.push({h:P,v:E,quantizationId:M,quantizationTable:null});s.componentIds[B]=k-1;u+=3}s.maxH=T;s.maxV=O;!function(e){for(vart=Math.ceil(e.samplesPerLine/8/e.maxH),a=Math.ceil(e.scanLines/8/e.maxV),r=0;r<e.components.length;r++){N=e.components[r];vari=Math.ceil(Math.ceil(e.samplesPerLine/8)*N.h/e.maxH),n=Math.ceil(Math.ceil(e.scanLines/8)*N.v/e.maxV),s=t*N.h,o=a*N.v,c=64*o*(s+1);N.blockData=newInt16Array(c);N.blocksPerLine=i;N.blocksPerColumn=n}e.mcusPerLine=t;e.mcusPerColumn=a}(s);break;case65476:varL=a();for(v=2;v<L;){varD=e[u++],F=newUint8Array(16),q=0;for(y=0;y<16;y++,u++)q+=F[y]=e[u];varU=newUint8Array(q);for(y=0;y<q;y++,u++)U[y]=e[u];v+=17+q;(D>>4==0?m:p)[15&D]=t(F,U)}break;case65501:a();c=a();break;case65498:a();varN,j=e[u++],_=[];for(v=0;v<j;v++){varz=s.componentIds[e[u++]];N=s.components[z];varH=e[u++];N.huffmanTableDC=m[H>>4];N.huffmanTableAC=p[15&H];_.push(N)}varG=e[u++],X=e[u++],V=e[u++],W=r(e,u,s,_,c,G,X,V>>4,15&V);u+=W;break;case65535:255!==e[u]&&u--;break;default:if(255===e[u-3]&&e[u-2]>=192&&e[u-2]<=254){u-=3;break}n("JPEG error: unknown marker "+b.toString(16))}b=a()}this.width=s.samplesPerLine;this.height=s.scanLines;this.jfif=f;this.adobe=d;this.components=[];for(v=0;v<s.components.length;v++){N=s.components[v];varK=g[N.quantizationId];K&&(N.quantizationTable=K);this.components.push({output:o(s,N),scaleX:N.h/s.maxH,scaleY:N.v/s.maxV,blocksPerLine:N.blocksPerLine,blocksPerColumn:N.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){vara,r,i,n,s,o,c,l,h,u,f,d=this.width/e,g=this.height/t,p=0,m=this.components.length,b=e*t*m,v=newUint8Array(b),y=newUint32Array(e);for(c=0;c<m;c++){a=this.components[c];r=a.scaleX*d;i=a.scaleY*g;p=c;f=a.output;n=a.blocksPerLine+1<<3;for(s=0;s<e;s++){l=0|s*r;y[s]=(4294967288&l)<<3|7&l}for(o=0;o<t;o++){l=0|o*i;u=n*(4294967288&l)|(7&l)<<3;for(s=0;s<e;s++){v[p]=f[u+y[s]];p+=m}}}vark=this.decodeTransform;if(k)for(c=0;c<b;)for(l=0,h=0;l<m;l++,c++,h+=2)v[c]=(v[c]*k[h]>>8)+k[h+1];returnv},_isColorConversionNeeded:function(){return!(!this.adobe||!this.adobe.transformCode)||(3===this.numComponents?!(!this.adobe&&0===this.colorTransform):!this.adobe&&1===this.colorTransform)},_convertYccToRgb:function(e){for(var