!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(2);e[0]=1;return1===newUint16Array(e.buffer)[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=ve[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}functionM(e){return"boolean"==typeofe}functionE(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+""=="
o("Invalid BlackPoint for "+this.name+", falling back to default");this.XB=this.YB=this.ZB=0}0===this.XB&&0===this.YB&&0===this.ZB||u(this.name+", BlackPoint: XB: "+this.XB+", YB: "+this.YB+", ZB: "+this.ZB+", only default values are supported.");if(this.G<1){o("Invalid Gamma: "+this.G+" for "+this.name+", falling back to default");this.G=1}}functiont(e,t,a,r,i,n){vars=t[a]*n,o=Math.pow(s,e.G),c=e.YW*o,l=0|Math.max(295.8*Math.pow(c,.3333333333333333)-40.8,0);r[i]=l;r[i+1]=l;r[i+2]=l}e.prototype={getRgb:m.prototype.getRgb,getRgbItem:function(e,a,r,i){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]),M=i(T[2]);s[o]=Math.round(255*O);s[o+1]=Math.round(255*P);s[o+2]=Math.round(255*M)}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)
returnb.get(">");case123:this.nextChar();returnb.get("{");case125:this.nextChar();returnb.get("}");case41:this.nextChar();l("Illegal character: "+t)}for(varr=String.fromCharCode(t),i=this.knownCommands,n=i&&void0!==i[r];(t=this.nextChar())>=0&&!a[t];){vars=r+String.fromCharCode(t);if(n&&void0===i[s])break;128===r.length&&l("Command token too long: "+r.length);r=s;n=i&&void0!==i[r]}return"true"===r||"false"!==r&&("null"===r?null:b.get(r))},skipToNextLine:function(){for(vare=this.currentChar;e>=0;){if(13===e){e=this.nextChar();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])}}},constructInter
;returnnewT(!1,h,u,d)},parseEncoding:function(e,t,a,r){vari,n,o,c=Object.create(null),l=this.bytes,h=!1,u=null;if(0===e||1===e){h=!0;i=e;varf=e?v:b;for(n=0,o=r.length;n<o;n++){vard=f.indexOf(r[n]);-1!==d&&(c[d]=n)}}else{varg=e;i=l[e++];switch(127&i){case0:varp=l[e++];for(n=1;n<=p;n++)c[l[e++]]=n;break;case1:varm=l[e++],y=1;for(n=0;n<m;n++)for(vark=l[e++],w=l[e++],C=k;C<=k+w;C++)c[C]=y++;break;default:s("Unknown encoding format: "+i+" in CFF")}varx=e;if(128&i){l[g]&=127;!function(){vart=l[e++];for(n=0;n<t;n++){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
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.decompositionLevelsCount)){varn=e.resolutions[a],s=n.precinctParameters.numprecincts;if(!(i>=s)){for(;t<l;){varf=d(n,i,t);t++;returnf}t=0}}}r=0}i=0}o("JPX Error: Out of packets")}}functionb(e){vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=k(r),c=s,l=0,h=0,u=0,f=0,g=0;this.nextPacket=function(){for(;g<c.maxNumHigh;g++){for(;f<c.maxNumWide;f++){for(;u<n;u++){for(vare=r.components[u],t=e.codingStyleParameters.decompositionLevelsCount;h<=t;h++){vara=e.resolutions[h],p=s.components[u].resolutions[h],m=y(f,g,p,c,a);if(null!==m){for(;l<i;){varb=d(a,m,l);l++;returnb}l=0}}h=0}u=0}f=0}o("JPX Error: Out of packets")}}functionv(e){vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=k(r),c=0,l=0,h=0,u=0,f=0;this.nextPacket=function(){for(;h<n;++h){for(vare=r.components[h],t=s.components[h],a=e.codingStyleParameters.decompositionLevelsCount;f<t.maxNumHigh;f++){for(;u<t.maxNumWide;u++){for(;l<=a;l++){varg=e.resolutions[l],p=t.resolutions[l],m=y(u,f,p,t,g);if(null!==m){for(;c<i;){varb=d(g,m,c);c++;returnb}c=0}}l=0}u=0}f=0}o("JPX Error: Out of packets")}}functiony(e,t,a,r,i){varn=e*r.minWidth,s=
;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(E(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);M(t,"trailer")||p("Invalid XRef table: could not find trailer dictionary");vara=e.getObj();!E(a)&&a.dict&&(a=a.dict);E(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(M(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();M(c,"f")?o.free=!0:M(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)d=d<<8|e.getByte();varg={};g.offset=f;g.gen=d;switch(u){case0:g.free=!0;break;case1:g.uncompressed=!0;break;case2:break;default:p("Invalid XRef entry type: "+u)}this.entries[l+t]||(this.entries[l+t]=g)}r.entryNum=0;r.streamPos=e.pos;c.splice(0,2)}},indexObjects:function(){functione(e,t,a){for(varr=a.length,i=e.length,n=0;t<i;){for(vars=0;s<r&&e[t+s]===a[s];)++s;if(s>=r)break;t++;n++}returnn}vart=10,a=13,r=60,i=/^(\d+)\s+(\d+)\s+obj\b/,n=newUint8Array([116,114,97,105,108,101,114]),s=newUint8Array([115,116,97,114,116,120,114,101,102]),o=newUint8Array([101,110,100,111,98,106]),c=newUint8Array([47,88,82,101,102]);this.entries.length=0;varh=this.stream;h.pos=0;for(varu=h.getBytes(),f=h.start,d=u.length,g=[],p=[];f<d;){varm=u[f];if(9!==m&&m!==t&&m!==a&&32!==m)if(37!==m){varb,v=function(e,i){for(varn="",s=e[i];s!==t&&s!==a&&s!==r&&!(++i>=e.length);){n+=String.fromCharCode(s);s=e[i]}returnn}(u,f);if(0!==v.indexOf("xref")||4!==v.length&&!/\s/.test(v[4]))if(b=i.exec(v)){void0===this.entries[b[1]]&&(this.entries[b[1]]={offset:f-h.start,gen:0|b[2],uncompressed:!0});vary=e(u,f,o)+7,k=u.subarray(f,f+y),w=e(k,0,c);if(w<y&&k[w+5]<64){p.push(f-h.start);this.xrefstms[f-h.start]=1}f+=y}elseif(0!==v.in
baseFontCharCode:T,accentFontCharCode:M,accentOffset:C}}}}a.seacMap=d}varE=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(E)+"\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=E(),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:newM(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:newM(t.getBytes(c)),length:c};T('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:newM(t.getBytes(a)),length:a}}functiona(e,t){vara=e.getBytes();return{stream:newM(a),length:a.length}}functionr(e,r,i){varn=i.length1,s=i.length2,o=r.peekBytes(6),c=128===o[0]&&1===o[1];if(c){r.skip(6);n=o[5]<<24|o[4]<<16|o[3]<<8|o[2]}varl=t(r,n);n=l.length;newK(l.stream,!1,le).extractFontHeader(i);if(c){o=r.getBytes(6);s=o[5]<<24|o[4]<<16|o[3]<<8|o[2]}varh=a(r,s);s=h.length;varu=newK(h.stream,!0,le),f=u.extractFontProgram();for(vardinf.properties)i[d]=f.properties[d];varg=f.charstrings,p=this.getType2Charstrings(g),m=this.getType2Subrs(f.subrs);this.charstrings=g;this.data=this.wrap(e,p,this.charstrings,m,i);this.seacs=this.getSeacs(f.charstrings)}r.prototype={getnumGlyphs(){returnthis.charstrings.length+1},getChars
IFELSE:5},h=function(){functione(e,t){this.type=e;this.value=t}vart=Object.create(null);e.getOperator=function(a){varr=t[a];returnr||(t[a]=newe(l.OPERATOR,a))};e.LBRACE=newe(l.LBRACE,"{");e.RBRACE=newe(l.RBRACE,"}");e.IF=newe(l.IF,"IF");e.IFELSE=newe(l.IFELSE,"IFELSE");returne}(),u=function(){functione(e){this.stream=e;this.nextChar();this.strBuf=[]}e.prototype={nextChar:function(){returnthis.currentChar=this.stream.getByte()},getToken:function(){for(vare=!1,t=this.currentChar;;){if(t<0)returno;if(e)10!==t&&13!==t||(e=!1);elseif(37===t)e=!0;elseif(!s(t))break;t=this.nextChar()}switch(0|t){case48:case49:case50:case51:case52:case53:case54:case55:case56:case57:case43:case45:case46:returnnewh(l.NUMBER,this.getNumber());case123:this.nextChar();returnh.LBRACE;case125:this.nextChar();returnh.RBRACE}vara=this.strBuf;a.length=0;a[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)a.push(String.fromCharCode(t));varr=a.join("");switch(r.toLowerCase()){case"if":returnh.IF;case"ifelse":returnh.IFELSE;default:returnh.getOperator(r)}},getNumber:function(){vare=this.currentChar,t=this.strBuf;t.length=0;t[0]=String.fromCharCode(e);for(;(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));vara=parseFloat(t.join(""));isNaN(a)&&n("Invalid floating point number: "+a);returna}};returne}();t.PostScriptLexer=u;t.PostScriptParser=c},function(e,t,a){"use strict";varr=a(0),i=a(2),n=a(4),s=r.warn,o=r.isSpace,c=i.Stream,l=n.getEncoding,h=function(){functione(){this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}vart={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};e.prototype={convert:function(e,a,r){for(vari,n,o,c=e.length,l=!1,h=0;h<c;h++){varu=e[h];if(u<32){12===u&&(u=(u<<8)+e[++h]);switch(u){case1:case3:this.stack=[];break;case4:if(this.flexing){if(this.stack.length<1){l=!0;break}varf=this.stack.pop();this.stack.push(0,f);break}l=this.executeCommand(1,t.vmoveto);break;case5:l=this.executeCommand(2,t.rlineto);break;case6:l=this.executeCommand(1,t.hlineto);break;case7:l=this.executeCommand(1,t.vlineto);break;case8:l=this.executeCommand(6,t.rrcurveto);break;case9:this.stack=[];break;case10:if(this.stack.length<1){l=!0;break}o=this.stack.pop();l=this.convert(a[o],a,r);break;case11:returnl;case13:if(this.stack.length<2){l=!0;break}i=this.stack.pop();n=this.stack.pop();this.lsb=n;this.width=i;this.stack.push(i,n);l=this.executeCommand(2,t.hmoveto);break;case14:this.output.push(t.endchar[0]);break;case21:if(this.flexing)break;l=this.executeCommand(2,t.rmoveto);break;case22:if(this.flexing){this.stack.push(0);break}l=this.executeCommand(1,t.hmoveto);break;case30:l=this.executeCommand(4,t.vhcurveto);break;case31:l=this.executeCommand(4,t.hvcurveto);break;case3072:case3073:case3074:this.stack=[];break;case3078:if(r){this.seac=this.stack.splice(-4,4);l=this.executeCommand(0,t.endchar)}elsel=this.executeCommand(4,t.endchar);break;case3079:if(this.stack.length<4){l=!0;break}this.stack.pop();i=this.stack.pop();vard=this.stack.pop();n=this.stack.pop();this.lsb=n;this.width=i;this.stack.push(i,n,d);l=this.executeCommand(3,t.rmoveto);break;case3084:if(this.stack.length<2){l=!0;break}varg=this.stack.pop(),p=this.stack.pop();this.stack.push(p/g);break;case3088:if(this.stack.length<2){l=!0;break}o=this.stack.pop();varm=this.stack.pop();if(0===o&&3===m){varb=this.stack.splice(this.stack.length-17,17);this.stack.push(b[2]+b[0],b[3]+b[1],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14]);l=this.executeCommand(13,t.flex,!0);this.flexing=!1;this.stack.push(b[15],b[16])}else1===o&&0===m&&(this.flexing=!0);break;case3089:break;case3105:this.stack=[];break;default:s('Unknown type 1 charstring command of "'+u+'"')}if(l)break}else{u<=246?u-=139:u=u<=250?256*(u-247)+e[++h]+108:u<=254?-256*(u-251)-e[++h]-108:(255&e[++h])<<24|(255&e[++h])<<16|(255&e[++h])<<8|(2