!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],e):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=e():t["pdfjs-dist/build/pdf"]=t.pdfjsDistBuildPdf=e()}(this,function(){returnfunction(t){functione(r){if(n[r])returnn[r].exports;vari=n[r]={i:r,l:!1,exports:{}};returnt[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}varn={};returne.m=t,e.c=n,e.i=function(t){returnt},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=13)}([function(t,e,n){"use strict";(function(t){functionn(t){$=t}functionr(){return$}functioni(t){$>=K.infos&&console.log("Info: "+t)}functiona(t){$>=K.warnings&&console.log("Warning: "+t)}functions(t){console.log("Deprecated API usage: "+t)}functiono(t){throw$>=K.errors&&(console.log("Error: "+t),console.log(c())),newError(t)}functionc(){try{thrownewError}catch(t){returnt.stack?t.stack.split("\n").slice(2).join("\n"):""}}functionl(t,e){t||o(e)}functionh(t,e){try{varn=newURL(t);if(!n.origin||"null"===n.origin)return!1}catch(t){return!1}varr=newURL(e,n);returnn.origin===r.origin}functionu(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functiond(t,e){if(!t)returnnull;try{varn=e?newURL(t,e):newURL(t);if(u(n))returnn}catch(t){}returnnull}functionf(t,e,n){returnObject.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}functionp(t){vare;returnfunction(){returnt&&(e=Object.create(null),t(e),t=null),e}}functiong(t){return"string"!=typeoft?(a("The argument for removeNullCharacters must be a string."),t):t.replace(ht,"")}functionm(t){l(null!==t&&"object"==typeoft&&void0!==t.length,"Invalid argument for bytesToString");vare=t.length,n=8192;if(e<n)returnString.fromCharCode.apply(null,t);for(varr=[],i=0;i<e;i+=n){vara=Math.min(i+n,e),s=t.subarray(i,a);r.push(String.fromCharCode.apply(null,s))}returnr.join("")}functionA(t){l("string"==typeoft,"Invalid argument for stringToBytes");for(vare=t.length,n=newUint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);returnn}functionv(t){returnvoid0!==t.length?t.length:(l(void0!==t.byteLength),t.byteLength)}functionb(t){if(1===t.length&&t[0]instanceofUint8Array)returnt[0];vare,n,r,i=0,a=t.length;for(e=0;e<a;e++)n=t[e],r=v(n),i+=r;vars=0,o=newUint8Array(i);for(e=0;e<a;e++)n=t[e],ninstanceofUint8Array||(n="string"==typeofn?A(n):newUint8Array(n)),r=n.byteLength,o.set(n,s),s+=r;returno}functiony(t){returnString.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}functionx(t){for(vare=1,n=0;t>e;)e<<=1,n++;returnn}functionS(t,e){returnt[e]<<24>>24}functionk(t,e){returnt[e]<<8|t[e+1]}function_(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}functionw(){vart=newUint8Array(2);t[0]=1;vare=newUint16Array(t.buffer);return1===e[0]}functionC(){try{returnnewFunction(""),!0}catch(t){return!1}}functionT(t){vare,n=t.length,r=[];if("þ"===t[0]&&"ÿ"===t[1])for(e=2;e<n;e+=2)r.push(String.fromCharCode(t.charCodeAt(e)<<8|t.charCodeAt(e+1)));elsefor(e=0;e<n;++e){vari=gt[t.charCodeAt(e)];r.push(i?String.fromCharCode(i):t.charAt(e))}returnr.join("")}functionL(t){returndecodeURIComponent(escape(t))}functionP(t){returnunescape(encodeURIComponent(t))}functionE(t){for(vareint)return!1;return!0}functionR(t){return"boolean"==typeoft}functionI(t){return"number"==typeoft&&(0|t)===t}functionF(t){return"number"==typeoft}functionO(t){return"string"==typeoft}functionM(t){returntinstanceofArray}functionD(t){return"object"==typeoft&&null!==t&&void0!==t.byteLength}functionN(t){return32===t||9===t||13===t||10===t}functionj(){vart={};returnt.promise=newPromise(function(e,n){t.resolve=e,t.reject=n}),t}functionU(t,e,n){this.sourceName=t,this.targetName=e,thi
i.onload=function(){vare=i.width,r=i.height,a=e*r,s=4*a,o=newUint8Array(a*n),c=document.createElement("canvas");c.width=e,c.height=r;varl=c.getContext("2d");l.drawImage(i,0,0);varh,u,d=l.getImageData(0,0,e,r).data;if(3===n)for(h=0,u=0;h<s;h+=4,u+=3)o[u]=d[h],o[u+1]=d[h+1],o[u+2]=d[h+2];elseif(1===n)for(h=0,u=0;h<s;h+=4,u++)o[u]=d[h];t({data:o,width:e,height:r})},i.onerror=function(){r(newError("JpegDecode failed to load image"))},i.src=e})},this)},getData:function(){returnthis.messageHandler.sendWithPromise("GetData",null)},getPage:function(t,e){if(!w(t)||t<=0||t>this.numPages)returnPromise.reject(newError("Invalid page request"));varn=t-1;if(ninthis.pagePromises)returnthis.pagePromises[n];varr=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(t){if(this.destroyed)thrownewError("Transport destroyed");vare=newJ(n,t,this);returnthis.pageCache[n]=e,e}.bind(this));returnthis.pagePromises[n]=r,r},getPageIndex:function(t){returnthis.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch(function(t){returnPromise.reject(newError(t))})},getAnnotations:function(t,e){returnthis.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})},getDestinations:function(){returnthis.messageHandler.sendWithPromise("GetDestinations",null)},getDestination:function(t){returnthis.messageHandler.sendWithPromise("GetDestination",{id:t})},getPageLabels:function(){returnthis.messageHandler.sendWithPromise("GetPageLabels",null)},getAttachments:function(){returnthis.messageHandler.sendWithPromise("GetAttachments",null)},getJavaScript:function(){returnthis.messageHandler.sendWithPromise("GetJavaScript",null)},getOutline:function(){returnthis.messageHandler.sendWithPromise("GetOutline",null)},getMetadata:function(){returnthis.messageHandler.sendWithPromise("GetMetadata",null).then(function(t){return{info:t[0],metadata:t[1]?newD(t[1]):null}})},getStats:function(){returnthis.messageHandler.sendWithPromise("GetStats",null)},startCleanup:function(){this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(vart=0,e=this.pageCache.length;t<e;t++){varn=this.pageCache[t];n&&n.cleanup()}this.commonObjs.clear(),this.fontLoader.clear()}.bind(this))}},t}(),Z=function(){functiont(){this.objs=Object.create(null)}returnt.prototype={ensureObj:function(t){if(this.objs[t])returnthis.objs[t];vare={capability:y(),data:null,resolved:!1};returnthis.objs[t]=e,e},get:function(t,e){if(e)returnthis.ensureObj(t).capability.promise.then(e),null;varn=this.objs[t];returnn&&n.resolved||x("Requesting object that isn't resolved yet "+t),n.data},resolve:function(t,e){varn=this.ensureObj(t);n.resolved=!0,n.data=e,n.capability.resolve(e)},isResolved:function(t){vare=this.objs;return!!e[t]&&e[t].resolved},hasData:function(t){returnthis.isResolved(t)},getData:function(t){vare=this.objs;returne[t]&&e[t].resolved?e[t].data:null},clear:function(){this.objs=Object.create(null)}},t}(),$=function(){functiont(t){this._internalRenderTask=t,this.onContinue=null}returnt.prototype={getpromise(){returnthis._internalRenderTask.capability.promise},cancel:function(){this._internalRenderTask.cancel()},then:function(t,e){returnthis.promise.then.apply(this.promise,arguments)}},t}(),tt=function(){functiont(t,e,n,r,i,a,s){this.callback=t,this.params=e,this.objs=n,this.commonObjs=r,this.operatorListIdx=null,this.operatorList=i,this.pageNumber=a,this.canvasFactory=s,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this.useRequestAnimationFrame=!1,this.cancelled=!1,this.capability=y(),this.task=new$(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this)}returnt.prototype={initializeGraphics:function(t){if(!this.cancelled){N("pdfBug")&&R.StepperManager&&R.StepperManager.enabled&&(this.stepper=R.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());vare=this.params;this.gfx=newM(e.canvasContext,this.commonO
"use strict";varr=n(0),i=n(1),a=r.shadow,s=i.getDefaultSetting,o=function(){functiont(t,e,n){varr=t.createShader(n);t.shaderSource(r,e),t.compileShader(r);vari=t.getShaderParameter(r,t.COMPILE_STATUS);if(!i){vara=t.getShaderInfoLog(r);thrownewError("Error during shader compilation: "+a)}returnr}functione(e,n){returnt(e,n,e.VERTEX_SHADER)}functionn(e,n){returnt(e,n,e.FRAGMENT_SHADER)}functionr(t,e){for(varn=t.createProgram(),r=0,i=e.length;r<i;++r)t.attachShader(n,e[r]);t.linkProgram(n);vara=t.getProgramParameter(n,t.LINK_STATUS);if(!a){vars=t.getProgramInfoLog(n);thrownewError("Error during program linking: "+s)}returnn}functioni(t,e,n){t.activeTexture(n);varr=t.createTexture();returnt.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),r}functiono(){f||(p=document.createElement("canvas"),f=p.getContext("webgl",{premultipliedalpha:!1}))}functionc(){vart,i;o(),t=p,p=null,i=f,f=null;vara=e(i,g),s=n(i,m),c=r(i,[a,s]);i.useProgram(c);varl={};l.gl=i,l.canvas=t,l.resolutionLocation=i.getUniformLocation(c,"u_resolution"),l.positionLocation=i.getAttribLocation(c,"a_position"),l.backdropLocation=i.getUniformLocation(c,"u_backdrop"),l.subtypeLocation=i.getUniformLocation(c,"u_subtype");varh=i.getAttribLocation(c,"a_texCoord"),u=i.getUniformLocation(c,"u_image"),d=i.getUniformLocation(c,"u_mask"),v=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,v),i.bufferData(i.ARRAY_BUFFER,newFloat32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(h),i.vertexAttribPointer(h,2,i.FLOAT,!1,0,0),i.uniform1i(u,0),i.uniform1i(d,1),A=l}functionl(t,e,n){varr=t.width,a=t.height;A||c();vars=A,o=s.canvas,l=s.gl;o.width=r,o.height=a,l.viewport(0,0,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform2f(s.resolutionLocation,r,a),n.backdrop?l.uniform4f(s.resolutionLocation,n.backdrop[0],n.backdrop[1],n.backdrop[2],1):l.uniform4f(s.resolutionLocation,0,0,0,0),l.uniform1i(s.subtypeLocation,"Luminosity"===n.subtype?1:0);varh=i(l,t,l.TEXTURE0),u=i(l,e,l.TEXTURE1),d=l.createBuffer();returnl.bindBuffer(l.ARRAY_BUFFER,d),l.bufferData(l.ARRAY_BUFFER,newFloat32Array([0,0,r,0,0,a,0,a,r,0,r,a]),l.STATIC_DRAW),l.enableVertexAttribArray(s.positionLocation),l.vertexAttribPointer(s.positionLocation,2,l.FLOAT,!1,0,0),l.clearColor(0,0,0,0),l.enable(l.BLEND),l.blendFunc(l.ONE,l.ONE_MINUS_SRC_ALPHA),l.clear(l.COLOR_BUFFER_BIT),l.drawArrays(l.TRIANGLES,0,6),l.flush(),l.deleteTexture(h),l.deleteTexture(u),l.deleteBuffer(d),o}functionh(){vart,i;o(),t=p,p=null,i=f,f=null;vara=e(i,v),s=n(i,b),c=r(i,[a,s]);i.useProgram(c);varl={};l.gl=i,l.canvas=t,l.resolutionLocation=i.getUniformLocation(c,"u_resolution"),l.scaleLocation=i.getUniformLocation(c,"u_scale"),l.offsetLocation=i.getUniformLocation(c,"u_offset"),l.positionLocation=i.getAttribLocation(c,"a_position"),l.colorLocation=i.getAttribLocation(c,"a_color"),y=l}functionu(t,e,n,r,i){y||h();vara=y,s=a.canvas,o=a.gl;s.width=t,s.height=e,o.viewport(0,0,o.drawingBufferWidth,o.drawingBufferHeight),o.uniform2f(a.resolutionLocation,t,e);varc,l,u,d=0;for(c=0,l=r.length;c<l;c++)switch(r[c].type){case"lattice":u=r[c].coords.length/r[c].verticesPerRow|0,d+=(u-1)*(r[c].verticesPerRow-1)*6;break;case"triangles":d+=r[c].coords.length}varf=newFloat32Array(2*d),p=newUint8Array(3*d),g=i.coords,m=i.colors,A=0,v=0;for(c=0,l=r.length;c<l;c++){varb=r[c],x=b.coords,S=b.colors;switch(b.type){case"lattice":vark=b.verticesPerRow;u=x.length/k|0;for(var_=1;_<u;_++)for(varw=_*k+1,C=1;C<k;C++,w++)f[A]=g[x[w-k-1]],f[A+1]=g[x[w-k-1]+1],f[A+2]=g[x[w-k]],f[A+3]=g[x[w-k]+1],f[A+4]=g[x[w-1]],f[A+5]=g[x[w-1]+1],p[v]=m[S[w-k-1]],p[v+1]=m[S[w-k-1]+1],p[v+2]=m[S[w-k-1]+2],p[v+3]=m[S[w-k]],p[v+4]=m[S[w-k]+1],p[v+5]=m[S[w-k]+2],p[v+6]=m[S[w-1]],p[v+7]=m[S[w-1]+1],p[v+8]=m[S[w-1]+2],f[A+6]=f[A+2],f[A+7]=f[A+3],f[A+8]=f[A+4],
varU=F*g+P*c;S+=U,L&&i.restore()}}u?e.y-=S*l:e.x+=S*l,i.restore()}},showType3Text:function(t){vare,n,r,i,a=this.ctx,s=this.current,o=s.font,c=s.fontSize,h=s.fontDirection,u=o.vertical?1:-1,d=s.charSpacing,p=s.wordSpacing,m=s.textHScale*h,A=s.fontMatrix||l,b=t.length,y=s.textRenderingMode===f.INVISIBLE;if(!y&&0!==c){for(this.cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,s.textMatrix),a.translate(s.x,s.y),a.scale(m,h),e=0;e<b;++e)if(n=t[e],v(n))i=u*n*c/1e3,this.ctx.translate(i,0),s.x+=i*m;else{varx=(n.isSpace?p:0)+d,S=o.charProcOperatorList[n.operatorListId];if(S){this.processingType3=n,this.save(),a.scale(c,c),a.transform.apply(a,A),this.executeOperatorList(S),this.restore();var_=g.applyTransform([n.width,0],A);r=_[0]*c+x,a.translate(r,0),s.x+=r*m}elsek('Type3 character "'+n.operatorListId+'" is not available')}a.restore(),this.processingType3=null}},setCharWidth:function(t,e){},setCharWidthAndBounds:function(t,e,n,r,i,a){this.ctx.rect(n,r,i-n,a-r),this.clip(),this.endPath()},getColorN_Pattern:function(e){varn;if("TilingPattern"===e[0]){varr=e[1],i=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a=this,s={createCanvasGraphics:function(e){returnnewt(e,a.commonObjs,a.objs,a.canvasFactory)}};n=new_(e,r,this.ctx,s,i)}elsen=w(e);returnn},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(t,e,n){varr=g.makeCssRgb(t,e,n);this.ctx.strokeStyle=r,this.current.strokeColor=r},setFillRGBColor:function(t,e,n){varr=g.makeCssRgb(t,e,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1},shadingFill:function(t){vare=this.ctx;this.save();varn=w(t);e.fillStyle=n.getPattern(e,this,!0);varr=e.mozCurrentTransformInverse;if(r){vari=e.canvas,a=i.width,s=i.height,o=g.applyTransform([0,0],r),c=g.applyTransform([0,s],r),l=g.applyTransform([a,0],r),h=g.applyTransform([a,s],r),u=Math.min(o[0],c[0],l[0],h[0]),d=Math.min(o[1],c[1],l[1],h[1]),f=Math.max(o[0],c[0],l[0],h[0]),p=Math.max(o[1],c[1],l[1],h[1]);this.ctx.fillRect(u,d,f-u,p-d)}elsethis.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){x("Should not call beginInlineImage")},beginImageData:function(){x("Should not call beginImageData")},paintFormXObjectBegin:function(t,e){if(this.save(),this.baseTransformStack.push(this.baseTransform),b(t)&&6===t.length&&this.transform.apply(this,t),this.baseTransform=this.ctx.mozCurrentTransform,b(e)&&4===e.length){varn=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(t){this.save();vare=this.ctx;t.isolated||A("TODO: Support non-isolated groups."),t.knockout&&k("Knockout groups not supported.");varn=e.mozCurrentTransform;t.matrix&&e.transform.apply(e,t.matrix),m(t.bbox,"Bounding box is required.");varr=g.getAxialAlignedBoundingBox(t.bbox,e.mozCurrentTransform),i=[0,0,e.canvas.width,e.canvas.height];r=g.intersect(r,i)||[0,0,0,0];vars=Math.floor(r[0]),o=Math.floor(r[1]),c=Math.max(Math.ceil(r[2])-s,1),l=Math.max(Math.ceil(r[3])-o,1),h=1,u=1;c>E&&(h=c/E,c=E),l>E&&(u=l/E,l=E);vard="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);varf=this.cachedCanvases.getCanvas(d,c,l,!0),p=f.context;p.scale(1/h,1/u),p.translate(-s,-o),p.transform.apply(p,n),t.smask?this.smaskStack.push({canvas:f.canvas,context:p,offsetX:s,offsetY:o,scaleX:h,scaleY:u,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(s,o),e.scale(h,u)),a(e,p),this.ctx=p,this.setGState([["BM","Normal"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null},endGroup:function(t){this.groupLevel--;vare=this.ctx;this.ctx=this.groupStack.pop(),void0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmooth