!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=t():e["pdfjs-dist/build/pdf"]=e.pdfjsDistBuildPdf=t()}(this,function(){returnfunction(e){functiont(n){if(r[n])returnr[n].exports;vari=r[n]={i:n,l:!1,exports:{}};returne[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}varr={};returnt.m=e,t.c=r,t.i=function(e){returne},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){varr=e&&e.__esModule?function(){returne.default}:function(){returne};returnt.d(r,"a",r),r},t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(e,t,r){"use strict";(function(e){functionn(e){ae=e}functioni(){returnae}functiona(e){ae>=re.infos&&console.log("Info: "+e)}functiono(e){ae>=re.warnings&&console.log("Warning: "+e)}functions(e){console.log("Deprecated API usage: "+e)}functionl(e){throwae>=re.errors&&(console.log("Error: "+e),console.log(c())),newError(e)}functionc(){try{thrownewError}catch(e){returne.stack?e.stack.split("\n").slice(2).join("\n"):""}}functionu(e,t){e||l(t)}functiond(e,t){try{varr=newURL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}varn=newURL(t,r);returnr.origin===n.origin}functionh(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionf(e,t){if(!e)returnnull;try{varr=t?newURL(e,t):newURL(e);if(h(r))returnr}catch(e){}returnnull}functionp(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}functionm(e){vart;returnfunction(){returne&&(t=Object.create(null),e(t),e=null),t}}functiong(e){return"string"!=typeofe?(o("The argument for removeNullCharacters must be a string."),e):e.replace(ge,"")}functionv(e){u(null!==e&&"object"===(void0===e?"undefined":z(e))&&void0!==e.length,"Invalid argument for bytesToString");vart=e.length;if(t<8192)returnString.fromCharCode.apply(null,e);for(varr=[],n=0;n<t;n+=8192){vari=Math.min(n+8192,t),a=e.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}returnr.join("")}functionb(e){u("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,r=newUint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);returnr}functiony(e){returnvoid0!==e.length?e.length:(u(void0!==e.byteLength),e.byteLength)}functionA(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,r,n,i=0,a=e.length;for(t=0;t<a;t++)r=e[t],n=y(r),i+=n;varo=0,s=newUint8Array(i);for(t=0;t<a;t++)r=e[t],rinstanceofUint8Array||(r="string"==typeofr?b(r):newUint8Array(r)),n=r.byteLength,s.set(r,o),o+=n;returns}function_(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionS(e){for(vart=1,r=0;e>t;)t<<=1,r++;returnr}functionw(e,t){returne[t]<<24>>24}functionP(e,t){returne[t]<<8|e[t+1]}functionx(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionT(){vare=newUint8Array(4);returne[0]=1,1===newUint32Array(e.buffer,0,1)[0]}functionk(){try{returnnewFunction(""),!0}catch(e){return!1}}functionC(e){vart,r=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)n.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<r;++t){vari=Ae[e.charCodeAt(t)];n.push(i?String.fromCharCode(i):e.charAt(t))}returnn.join("")}functionR(e){returndecodeURIComponent(escape(e))}functionE(e){returnunescape(encodeURIComponent(e))}functionL(e){for(vartine)return!1;return!0}functionO(e){return"boolean"==typeofe}functionI(e){return"number"==typeofe&&(0|e)===e}functionj(e){return"number"==typeofe}functionD(e){return"string"==typeofe}functionF(e){returneinstanceofArray}functionN(e){return"object"===(void0===e?"undefined":z(e))&&null!==e&&void0!==e.byteLength}functionM(e){return32===e||9===e||13===e||10===e}functionW(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"===("undefined"==typeofproce
returne}functiond(){functione(t){varr=e._stream,n=e._teeState;if(n.canceled1=!0,n.reason1=t,!0===n.canceled2){vari=je([n.reason1,n.reason2]),a=m(r,i);n._resolve(a)}returnn.promise}returne}functionh(){functione(t){varr=e._stream,n=e._teeState;if(n.canceled2=!0,n.reason2=t,!0===n.canceled1){vari=je([n.reason1,n.reason2]),a=m(r,i);n._resolve(a)}returnn.promise}returne}functionf(e){returnMe(!0===P(e._reader)),Me("readable"===e._state||"closed"===e._state),newPromise(function(t,r){varn={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)})}functionp(e){returnMe(!0===x(e._reader)),Me("readable"===e._state),newPromise(function(t,r){varn={_resolve:t,_reject:r};e._reader._readRequests.push(n)})}functionm(e,t){returne._disturbed=!0,"closed"===e._state?Promise.resolve(void0):"errored"===e._state?Promise.reject(e._storedError):(g(e),e._readableStreamController.__cancelSteps(t).then(function(){}))}functiong(e){Me("readable"===e._state),e._state="closed";vart=e._reader;if(void0!==t){if(!0===x(t)){for(varr=0;r<t._readRequests.length;r++){(0,t._readRequests[r])(Te(void0,!0))}t._readRequests=[]}ve(t)}}functionv(e,t){Me(!0===o(e),"stream must be ReadableStream"),Me("readable"===e._state,"state must be readable"),e._state="errored",e._storedError=t;varr=e._reader;if(void0!==r){if(!0===x(r)){for(varn=0;n<r._readRequests.length;n++){r._readRequests[n]._reject(t)}r._readRequests=[]}else{Me(P(r),"reader must be ReadableStreamBYOBReader");for(vari=0;i<r._readIntoRequests.length;i++){r._readIntoRequests[i]._reject(t)}r._readIntoRequests=[]}me(r,t),r._closedPromise.catch(function(){})}}functionb(e,t,r){varn=e._reader;Me(n._readIntoRequests.length>0),n._readIntoRequests.shift()._resolve(Te(t,r))}functiony(e,t,r){varn=e._reader;Me(n._readRequests.length>0),n._readRequests.shift()._resolve(Te(t,r))}functionA(e){returne._reader._readIntoRequests.length}function_(e){returne._reader._readRequests.length}functionS(e){vart=e._reader;returnvoid0!==t&&!1!==P(t)}functionw(e){vart=e._reader;returnvoid0!==t&&!1!==x(t)}functionP(e){return!!Fe(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}functionx(e){return!!Fe(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}functionT(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?he(e):"closed"===t._state?pe(e):(Me("errored"===t._state,"state must be errored"),fe(e,t._storedError),e._closedPromise.catch(function(){}))}functionk(e,t){varr=e._ownerReadableStream;returnMe(void0!==r),m(r,t)}functionC(e){Me(void0!==e._ownerReadableStream),Me(e._ownerReadableStream._reader===e),"readable"===e._ownerReadableStream._state?me(e,newTypeError("Reader was released and can no longer be used to monitor the stream's closedness")):ge(e,newTypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._closedPromise.catch(function(){}),e._ownerReadableStream._reader=void0,e._ownerReadableStream=void0}functionR(e,t){varr=e._ownerReadableStream;returnMe(void0!==r),r._disturbed=!0,"errored"===r._state?Promise.reject(r._storedError):K(r._readableStreamController,t)}functionE(e){vart=e._ownerReadableStream;returnMe(void0!==t),t._disturbed=!0,"closed"===t._state?Promise.resolve(Te(void0,!0)):"errored"===t._state?Promise.reject(t._storedError):(Me("readable"===t._state),t._readableStreamController.__pullSteps())}functionL(e){return!!Fe(e)&&!!Object.prototype.hasOwnProperty.call(e,"_underlyingSource")}functionO(e){if(!1!==I(e)){if(!0===e._pulling)returnvoid(e._pullAgain=!0);Me(!1===e._pullAgain),e._pulling=!0,Re(e._underlyingSource,"pull",[e]).then(function(){if(e._pulling=!1,!0===e._pullAgain)returne._pullAgain=!1,O(e)},function(t){N(e,t)}).catch(We)}}functionI(e){vart=e._controlledReadableStream;return"closed"!==t._state&&"errored"!==t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===l(t)&&_(t)>0||M(e)>0)))}functionj(e){vart=e._controlledReadableStream;Me(!1===e._closeRequested),Me("readable"===t._state),e._closeRequested=!0,0===e._queue.length&&g(t)}functionD(e,t){varr
varh=u.createFontFaceRule();h&&(this.insertRule(h),r.push(h),a.push(u))}}varf=this.queueLoadingCallback(t);s?Promise.all(o).then(function(){f.complete()}):r.length>0&&!n.isSyncFontLoadingSupported?this.prepareFontLoadEvent(r,a,f):f.complete()},n.prototype.queueLoadingCallback=function(e){functiont(){for((0,i.assert)(!a.end,"completeRequest() cannot be called twice"),a.end=Date.now();r.requests.length>0&&r.requests[0].end;){vare=r.requests.shift();setTimeout(e.callback,0)}}varr=this.loadingContext,n="pdfjs-font-loading-"+r.nextRequestId++,a={id:n,complete:t,callback:e,started:Date.now()};returnr.requests.push(a),a},n.prototype.prepareFontLoadEvent=function(e,t,r){functionn(e,t){returne.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}functiona(e,t,r,n){returne.substr(0,t)+n+e.substr(t+r)}functiono(e,t){return++d>30?((0,i.warn)("Load test font never loaded."),voidt()):(u.font="30px "+e,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?voidt():voidsetTimeout(o.bind(null,e,t)))}vars,l,c=document.createElement("canvas");c.width=1,c.height=1;varu=c.getContext("2d"),d=0,h="lt"+Date.now()+this.loadTestFontId++,f=this.loadTestFont;f=a(f,976,h.length,h);varp=n(f,16);for(s=0,l=h.length-3;s<l;s+=4)p=p-1482184792+n(h,s)|0;s<h.length&&(p=p-1482184792+n(h+"XXX",s)|0),f=a(f,16,4,(0,i.string32)(p));varm="url(data:font/opentype;base64,"+btoa(f)+");",g='@font-face { font-family:"'+h+'";src:'+m+"}";this.insertRule(g);varv=[];for(s=0,l=t.length;s<l;s++)v.push(t[s].loadedName);v.push(h);varb=document.createElement("div");for(b.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;"),s=0,l=v.length;s<l;++s){vary=document.createElement("span");y.textContent="Hi",y.style.fontFamily=v[s],b.appendChild(y)}document.body.appendChild(b),o(h,function(){document.body.removeChild(b),r.complete()})},n.isFontLoadingAPISupported="undefined"!=typeofdocument&&!!document.fonts;varo=function(){if("undefined"==typeofnavigator)return!0;vare=!1,t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);returnt&&t[1]>=14&&(e=!0),e};Object.defineProperty(n,"isSyncFontLoadingSupported",{get:function(){return(0,i.shadow)(n,"isSyncFontLoadingSupported",o())},enumerable:!0,configurable:!0});vars={getvalue(){return(0,i.shadow)(this,"value",(0,i.isEvalSupported)())}},l=function(){functione(e,t){this.compiledGlyphs=Object.create(null);for(varrine)this[r]=e[r];this.options=t}returne.prototype={createNativeFontFace:function(){if(!this.data)returnnull;if(this.options.disableFontFace)returnthis.disableFontFace=!0,null;vare=newFontFace(this.loadedName,this.data,{});returnthis.options.fontRegistry&&this.options.fontRegistry.registerFont(this),e},createFontFaceRule:function(){if(!this.data)returnnull;if(this.options.disableFontFace)returnthis.disableFontFace=!0,null;vare=(0,i.bytesToString)(newUint8Array(this.data)),t=this.loadedName,r="url(data:"+this.mimetype+";base64,"+btoa(e)+");",n='@font-face { font-family:"'+t+'";src:'+r+"}";returnthis.options.fontRegistry&&this.options.fontRegistry.registerFont(this,r),n},getPathGenerator:function(e,t){if(!(tinthis.compiledGlyphs)){varr,n,i,a=e.get(this.loadedName+"_path_"+t);if(this.options.isEvalSupported&&s.value){varo,l="";for(n=0,i=a.length;n<i;n++)r=a[n],o=void0!==r.args?r.args.join(","):"",l+="c."+r.cmd+"("+o+");\n";this.compiledGlyphs[t]=newFunction("c","size",l)}elsethis.compiledGlyphs[t]=function(e,t){for(n=0,i=a.length;n<i;n++)r=a[n],"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}returnthis.compiledGlyphs[t]}},e}();t.FontFaceObject=l,t.FontLoader=n},function(e,t,r){"use strict";functionn(e){vart=o[e[0]];returnt||(0,i.error)("Unknown IR type: "+e[0]),t.fromIR(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.getShadingPatternFromIR=void0;vari=r(0),a=r(8),o={};o.RadialAxial={fromIR:function(e){vart=e[1],r=e[2],n=e[3],i=e[4],a=e[5],o=e[6];return{type:"Pattern",getPattern:function(e){vars;"axial"===t?s=e.createLinearGradient(n[0],n[1],i[0],i[1]):"